intl-tel-input 25.4.7 → 25.5.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.
Files changed (273) hide show
  1. package/README.md +5 -5
  2. package/angular/build/IntlTelInput.cjs +9 -9
  3. package/angular/build/IntlTelInput.d.ts +1 -1
  4. package/angular/build/IntlTelInput.js +9 -9
  5. package/angular/build/IntlTelInputWithUtils.cjs +9 -9
  6. package/angular/build/IntlTelInputWithUtils.js +9 -9
  7. package/angular/build/intl-tel-input/angular.js +205 -0
  8. package/angular/build/intl-tel-input/angularWithUtils.js +206 -0
  9. package/angular/build/intl-tel-input/data.js +1096 -0
  10. package/angular/build/intl-tel-input/i18n/ar/countries.js +245 -0
  11. package/angular/build/intl-tel-input/i18n/ar/index.js +5 -0
  12. package/angular/build/intl-tel-input/i18n/ar/interface.js +13 -0
  13. package/angular/build/intl-tel-input/i18n/bg/countries.js +245 -0
  14. package/angular/build/intl-tel-input/i18n/bg/index.js +5 -0
  15. package/angular/build/intl-tel-input/i18n/bg/interface.js +13 -0
  16. package/angular/build/intl-tel-input/i18n/bn/countries.js +245 -0
  17. package/angular/build/intl-tel-input/i18n/bn/index.js +5 -0
  18. package/angular/build/intl-tel-input/i18n/bn/interface.js +13 -0
  19. package/angular/build/intl-tel-input/i18n/bs/countries.js +245 -0
  20. package/angular/build/intl-tel-input/i18n/bs/index.js +5 -0
  21. package/angular/build/intl-tel-input/i18n/bs/interface.js +13 -0
  22. package/angular/build/intl-tel-input/i18n/ca/countries.js +245 -0
  23. package/angular/build/intl-tel-input/i18n/ca/index.js +5 -0
  24. package/angular/build/intl-tel-input/i18n/ca/interface.js +13 -0
  25. package/angular/build/intl-tel-input/i18n/cs/countries.js +245 -0
  26. package/angular/build/intl-tel-input/i18n/cs/index.js +5 -0
  27. package/angular/build/intl-tel-input/i18n/cs/interface.js +13 -0
  28. package/angular/build/intl-tel-input/i18n/da/countries.js +245 -0
  29. package/angular/build/intl-tel-input/i18n/da/index.js +5 -0
  30. package/angular/build/intl-tel-input/i18n/da/interface.js +13 -0
  31. package/angular/build/intl-tel-input/i18n/de/countries.js +245 -0
  32. package/angular/build/intl-tel-input/i18n/de/index.js +5 -0
  33. package/angular/build/intl-tel-input/i18n/de/interface.js +13 -0
  34. package/angular/build/intl-tel-input/i18n/ee/countries.js +245 -0
  35. package/angular/build/intl-tel-input/i18n/ee/index.js +5 -0
  36. package/angular/build/intl-tel-input/i18n/ee/interface.js +13 -0
  37. package/angular/build/intl-tel-input/i18n/el/countries.js +245 -0
  38. package/angular/build/intl-tel-input/i18n/el/index.js +5 -0
  39. package/angular/build/intl-tel-input/i18n/el/interface.js +13 -0
  40. package/angular/build/intl-tel-input/i18n/en/countries.js +245 -0
  41. package/angular/build/intl-tel-input/i18n/en/index.js +5 -0
  42. package/angular/build/intl-tel-input/i18n/en/interface.js +13 -0
  43. package/angular/build/intl-tel-input/i18n/es/countries.js +245 -0
  44. package/angular/build/intl-tel-input/i18n/es/index.js +5 -0
  45. package/angular/build/intl-tel-input/i18n/es/interface.js +13 -0
  46. package/angular/build/intl-tel-input/i18n/fa/countries.js +245 -0
  47. package/angular/build/intl-tel-input/i18n/fa/index.js +5 -0
  48. package/angular/build/intl-tel-input/i18n/fa/interface.js +13 -0
  49. package/angular/build/intl-tel-input/i18n/fi/countries.js +245 -0
  50. package/angular/build/intl-tel-input/i18n/fi/index.js +5 -0
  51. package/angular/build/intl-tel-input/i18n/fi/interface.js +13 -0
  52. package/angular/build/intl-tel-input/i18n/fr/countries.js +245 -0
  53. package/angular/build/intl-tel-input/i18n/fr/index.js +5 -0
  54. package/angular/build/intl-tel-input/i18n/fr/interface.js +13 -0
  55. package/angular/build/intl-tel-input/i18n/hi/countries.js +245 -0
  56. package/angular/build/intl-tel-input/i18n/hi/index.js +5 -0
  57. package/angular/build/intl-tel-input/i18n/hi/interface.js +13 -0
  58. package/angular/build/intl-tel-input/i18n/hr/countries.js +245 -0
  59. package/angular/build/intl-tel-input/i18n/hr/index.js +5 -0
  60. package/angular/build/intl-tel-input/i18n/hr/interface.js +13 -0
  61. package/angular/build/intl-tel-input/i18n/hu/countries.js +245 -0
  62. package/angular/build/intl-tel-input/i18n/hu/index.js +5 -0
  63. package/angular/build/intl-tel-input/i18n/hu/interface.js +13 -0
  64. package/angular/build/intl-tel-input/i18n/id/countries.js +245 -0
  65. package/angular/build/intl-tel-input/i18n/id/index.js +5 -0
  66. package/angular/build/intl-tel-input/i18n/id/interface.js +13 -0
  67. package/angular/build/intl-tel-input/i18n/index.js +40 -0
  68. package/angular/build/intl-tel-input/i18n/it/countries.js +245 -0
  69. package/angular/build/intl-tel-input/i18n/it/index.js +5 -0
  70. package/angular/build/intl-tel-input/i18n/it/interface.js +13 -0
  71. package/angular/build/intl-tel-input/i18n/ja/countries.js +245 -0
  72. package/angular/build/intl-tel-input/i18n/ja/index.js +5 -0
  73. package/angular/build/intl-tel-input/i18n/ja/interface.js +13 -0
  74. package/angular/build/intl-tel-input/i18n/ko/countries.js +245 -0
  75. package/angular/build/intl-tel-input/i18n/ko/index.js +5 -0
  76. package/angular/build/intl-tel-input/i18n/ko/interface.js +13 -0
  77. package/angular/build/intl-tel-input/i18n/mr/countries.js +245 -0
  78. package/angular/build/intl-tel-input/i18n/mr/index.js +5 -0
  79. package/angular/build/intl-tel-input/i18n/mr/interface.js +13 -0
  80. package/angular/build/intl-tel-input/i18n/nl/countries.js +245 -0
  81. package/angular/build/intl-tel-input/i18n/nl/index.js +5 -0
  82. package/angular/build/intl-tel-input/i18n/nl/interface.js +13 -0
  83. package/angular/build/intl-tel-input/i18n/no/countries.js +245 -0
  84. package/angular/build/intl-tel-input/i18n/no/index.js +5 -0
  85. package/angular/build/intl-tel-input/i18n/no/interface.js +13 -0
  86. package/angular/build/intl-tel-input/i18n/pl/countries.js +245 -0
  87. package/angular/build/intl-tel-input/i18n/pl/index.js +5 -0
  88. package/angular/build/intl-tel-input/i18n/pl/interface.js +24 -0
  89. package/angular/build/intl-tel-input/i18n/pt/countries.js +245 -0
  90. package/angular/build/intl-tel-input/i18n/pt/index.js +5 -0
  91. package/angular/build/intl-tel-input/i18n/pt/interface.js +13 -0
  92. package/angular/build/intl-tel-input/i18n/ro/countries.js +245 -0
  93. package/angular/build/intl-tel-input/i18n/ro/index.js +5 -0
  94. package/angular/build/intl-tel-input/i18n/ro/interface.js +13 -0
  95. package/angular/build/intl-tel-input/i18n/ru/countries.js +245 -0
  96. package/angular/build/intl-tel-input/i18n/ru/index.js +5 -0
  97. package/angular/build/intl-tel-input/i18n/ru/interface.js +13 -0
  98. package/angular/build/intl-tel-input/i18n/sk/countries.js +245 -0
  99. package/angular/build/intl-tel-input/i18n/sk/index.js +5 -0
  100. package/angular/build/intl-tel-input/i18n/sk/interface.js +13 -0
  101. package/angular/build/intl-tel-input/i18n/sv/countries.js +245 -0
  102. package/angular/build/intl-tel-input/i18n/sv/index.js +5 -0
  103. package/angular/build/intl-tel-input/i18n/sv/interface.js +13 -0
  104. package/angular/build/intl-tel-input/i18n/te/countries.js +245 -0
  105. package/angular/build/intl-tel-input/i18n/te/index.js +5 -0
  106. package/angular/build/intl-tel-input/i18n/te/interface.js +13 -0
  107. package/angular/build/intl-tel-input/i18n/th/countries.js +245 -0
  108. package/angular/build/intl-tel-input/i18n/th/index.js +5 -0
  109. package/angular/build/intl-tel-input/i18n/th/interface.js +13 -0
  110. package/angular/build/intl-tel-input/i18n/tr/countries.js +245 -0
  111. package/angular/build/intl-tel-input/i18n/tr/index.js +5 -0
  112. package/angular/build/intl-tel-input/i18n/tr/interface.js +13 -0
  113. package/angular/build/intl-tel-input/i18n/types.js +1 -0
  114. package/angular/build/intl-tel-input/i18n/uk/countries.js +245 -0
  115. package/angular/build/intl-tel-input/i18n/uk/index.js +5 -0
  116. package/angular/build/intl-tel-input/i18n/uk/interface.js +13 -0
  117. package/angular/build/intl-tel-input/i18n/ur/countries.js +245 -0
  118. package/angular/build/intl-tel-input/i18n/ur/index.js +5 -0
  119. package/angular/build/intl-tel-input/i18n/ur/interface.js +13 -0
  120. package/angular/build/intl-tel-input/i18n/uz/countries.js +245 -0
  121. package/angular/build/intl-tel-input/i18n/uz/index.js +5 -0
  122. package/angular/build/intl-tel-input/i18n/uz/interface.js +13 -0
  123. package/angular/build/intl-tel-input/i18n/vi/countries.js +245 -0
  124. package/angular/build/intl-tel-input/i18n/vi/index.js +5 -0
  125. package/angular/build/intl-tel-input/i18n/vi/interface.js +13 -0
  126. package/angular/build/intl-tel-input/i18n/zh/countries.js +245 -0
  127. package/angular/build/intl-tel-input/i18n/zh/index.js +5 -0
  128. package/angular/build/intl-tel-input/i18n/zh/interface.js +13 -0
  129. package/angular/build/intl-tel-input/intlTelInputWithUtils.js +4 -0
  130. package/angular/build/intl-tel-input/utils.js +1341 -0
  131. package/angular/build/intl-tel-input.js +1812 -0
  132. package/angular/build/types/intl-tel-input/angular.d.ts +40 -0
  133. package/angular/build/types/intl-tel-input/angularWithUtils.d.ts +40 -0
  134. package/angular/build/types/intl-tel-input/data.d.ts +11 -0
  135. package/angular/build/types/intl-tel-input/i18n/ar/countries.d.ts +3 -0
  136. package/angular/build/types/intl-tel-input/i18n/ar/index.d.ts +6 -0
  137. package/angular/build/types/intl-tel-input/i18n/ar/interface.d.ts +3 -0
  138. package/angular/build/types/intl-tel-input/i18n/bg/countries.d.ts +3 -0
  139. package/angular/build/types/intl-tel-input/i18n/bg/index.d.ts +6 -0
  140. package/angular/build/types/intl-tel-input/i18n/bg/interface.d.ts +3 -0
  141. package/angular/build/types/intl-tel-input/i18n/bn/countries.d.ts +3 -0
  142. package/angular/build/types/intl-tel-input/i18n/bn/index.d.ts +6 -0
  143. package/angular/build/types/intl-tel-input/i18n/bn/interface.d.ts +3 -0
  144. package/angular/build/types/intl-tel-input/i18n/bs/countries.d.ts +3 -0
  145. package/angular/build/types/intl-tel-input/i18n/bs/index.d.ts +6 -0
  146. package/angular/build/types/intl-tel-input/i18n/bs/interface.d.ts +3 -0
  147. package/angular/build/types/intl-tel-input/i18n/ca/countries.d.ts +3 -0
  148. package/angular/build/types/intl-tel-input/i18n/ca/index.d.ts +6 -0
  149. package/angular/build/types/intl-tel-input/i18n/ca/interface.d.ts +3 -0
  150. package/angular/build/types/intl-tel-input/i18n/cs/countries.d.ts +3 -0
  151. package/angular/build/types/intl-tel-input/i18n/cs/index.d.ts +6 -0
  152. package/angular/build/types/intl-tel-input/i18n/cs/interface.d.ts +3 -0
  153. package/angular/build/types/intl-tel-input/i18n/da/countries.d.ts +3 -0
  154. package/angular/build/types/intl-tel-input/i18n/da/index.d.ts +6 -0
  155. package/angular/build/types/intl-tel-input/i18n/da/interface.d.ts +3 -0
  156. package/angular/build/types/intl-tel-input/i18n/de/countries.d.ts +3 -0
  157. package/angular/build/types/intl-tel-input/i18n/de/index.d.ts +6 -0
  158. package/angular/build/types/intl-tel-input/i18n/de/interface.d.ts +3 -0
  159. package/angular/build/types/intl-tel-input/i18n/ee/countries.d.ts +3 -0
  160. package/angular/build/types/intl-tel-input/i18n/ee/index.d.ts +6 -0
  161. package/angular/build/types/intl-tel-input/i18n/ee/interface.d.ts +3 -0
  162. package/angular/build/types/intl-tel-input/i18n/el/countries.d.ts +3 -0
  163. package/angular/build/types/intl-tel-input/i18n/el/index.d.ts +6 -0
  164. package/angular/build/types/intl-tel-input/i18n/el/interface.d.ts +3 -0
  165. package/angular/build/types/intl-tel-input/i18n/en/countries.d.ts +3 -0
  166. package/angular/build/types/intl-tel-input/i18n/en/index.d.ts +6 -0
  167. package/angular/build/types/intl-tel-input/i18n/en/interface.d.ts +3 -0
  168. package/angular/build/types/intl-tel-input/i18n/es/countries.d.ts +3 -0
  169. package/angular/build/types/intl-tel-input/i18n/es/index.d.ts +6 -0
  170. package/angular/build/types/intl-tel-input/i18n/es/interface.d.ts +3 -0
  171. package/angular/build/types/intl-tel-input/i18n/fa/countries.d.ts +3 -0
  172. package/angular/build/types/intl-tel-input/i18n/fa/index.d.ts +6 -0
  173. package/angular/build/types/intl-tel-input/i18n/fa/interface.d.ts +3 -0
  174. package/angular/build/types/intl-tel-input/i18n/fi/countries.d.ts +3 -0
  175. package/angular/build/types/intl-tel-input/i18n/fi/index.d.ts +6 -0
  176. package/angular/build/types/intl-tel-input/i18n/fi/interface.d.ts +3 -0
  177. package/angular/build/types/intl-tel-input/i18n/fr/countries.d.ts +3 -0
  178. package/angular/build/types/intl-tel-input/i18n/fr/index.d.ts +6 -0
  179. package/angular/build/types/intl-tel-input/i18n/fr/interface.d.ts +3 -0
  180. package/angular/build/types/intl-tel-input/i18n/hi/countries.d.ts +3 -0
  181. package/angular/build/types/intl-tel-input/i18n/hi/index.d.ts +6 -0
  182. package/angular/build/types/intl-tel-input/i18n/hi/interface.d.ts +3 -0
  183. package/angular/build/types/intl-tel-input/i18n/hr/countries.d.ts +3 -0
  184. package/angular/build/types/intl-tel-input/i18n/hr/index.d.ts +6 -0
  185. package/angular/build/types/intl-tel-input/i18n/hr/interface.d.ts +3 -0
  186. package/angular/build/types/intl-tel-input/i18n/hu/countries.d.ts +3 -0
  187. package/angular/build/types/intl-tel-input/i18n/hu/index.d.ts +6 -0
  188. package/angular/build/types/intl-tel-input/i18n/hu/interface.d.ts +3 -0
  189. package/angular/build/types/intl-tel-input/i18n/id/countries.d.ts +3 -0
  190. package/angular/build/types/intl-tel-input/i18n/id/index.d.ts +6 -0
  191. package/angular/build/types/intl-tel-input/i18n/id/interface.d.ts +3 -0
  192. package/angular/build/types/intl-tel-input/i18n/index.d.ts +39 -0
  193. package/angular/build/types/intl-tel-input/i18n/it/countries.d.ts +3 -0
  194. package/angular/build/types/intl-tel-input/i18n/it/index.d.ts +6 -0
  195. package/angular/build/types/intl-tel-input/i18n/it/interface.d.ts +3 -0
  196. package/angular/build/types/intl-tel-input/i18n/ja/countries.d.ts +3 -0
  197. package/angular/build/types/intl-tel-input/i18n/ja/index.d.ts +6 -0
  198. package/angular/build/types/intl-tel-input/i18n/ja/interface.d.ts +3 -0
  199. package/angular/build/types/intl-tel-input/i18n/ko/countries.d.ts +3 -0
  200. package/angular/build/types/intl-tel-input/i18n/ko/index.d.ts +6 -0
  201. package/angular/build/types/intl-tel-input/i18n/ko/interface.d.ts +3 -0
  202. package/angular/build/types/intl-tel-input/i18n/mr/countries.d.ts +3 -0
  203. package/angular/build/types/intl-tel-input/i18n/mr/index.d.ts +6 -0
  204. package/angular/build/types/intl-tel-input/i18n/mr/interface.d.ts +3 -0
  205. package/angular/build/types/intl-tel-input/i18n/nl/countries.d.ts +3 -0
  206. package/angular/build/types/intl-tel-input/i18n/nl/index.d.ts +6 -0
  207. package/angular/build/types/intl-tel-input/i18n/nl/interface.d.ts +3 -0
  208. package/angular/build/types/intl-tel-input/i18n/no/countries.d.ts +3 -0
  209. package/angular/build/types/intl-tel-input/i18n/no/index.d.ts +6 -0
  210. package/angular/build/types/intl-tel-input/i18n/no/interface.d.ts +3 -0
  211. package/angular/build/types/intl-tel-input/i18n/pl/countries.d.ts +3 -0
  212. package/angular/build/types/intl-tel-input/i18n/pl/index.d.ts +6 -0
  213. package/angular/build/types/intl-tel-input/i18n/pl/interface.d.ts +3 -0
  214. package/angular/build/types/intl-tel-input/i18n/pt/countries.d.ts +3 -0
  215. package/angular/build/types/intl-tel-input/i18n/pt/index.d.ts +6 -0
  216. package/angular/build/types/intl-tel-input/i18n/pt/interface.d.ts +3 -0
  217. package/angular/build/types/intl-tel-input/i18n/ro/countries.d.ts +3 -0
  218. package/angular/build/types/intl-tel-input/i18n/ro/index.d.ts +6 -0
  219. package/angular/build/types/intl-tel-input/i18n/ro/interface.d.ts +3 -0
  220. package/angular/build/types/intl-tel-input/i18n/ru/countries.d.ts +3 -0
  221. package/angular/build/types/intl-tel-input/i18n/ru/index.d.ts +6 -0
  222. package/angular/build/types/intl-tel-input/i18n/ru/interface.d.ts +3 -0
  223. package/angular/build/types/intl-tel-input/i18n/sk/countries.d.ts +3 -0
  224. package/angular/build/types/intl-tel-input/i18n/sk/index.d.ts +6 -0
  225. package/angular/build/types/intl-tel-input/i18n/sk/interface.d.ts +3 -0
  226. package/angular/build/types/intl-tel-input/i18n/sv/countries.d.ts +3 -0
  227. package/angular/build/types/intl-tel-input/i18n/sv/index.d.ts +6 -0
  228. package/angular/build/types/intl-tel-input/i18n/sv/interface.d.ts +3 -0
  229. package/angular/build/types/intl-tel-input/i18n/te/countries.d.ts +3 -0
  230. package/angular/build/types/intl-tel-input/i18n/te/index.d.ts +6 -0
  231. package/angular/build/types/intl-tel-input/i18n/te/interface.d.ts +3 -0
  232. package/angular/build/types/intl-tel-input/i18n/th/countries.d.ts +3 -0
  233. package/angular/build/types/intl-tel-input/i18n/th/index.d.ts +6 -0
  234. package/angular/build/types/intl-tel-input/i18n/th/interface.d.ts +3 -0
  235. package/angular/build/types/intl-tel-input/i18n/tr/countries.d.ts +3 -0
  236. package/angular/build/types/intl-tel-input/i18n/tr/index.d.ts +6 -0
  237. package/angular/build/types/intl-tel-input/i18n/tr/interface.d.ts +3 -0
  238. package/angular/build/types/intl-tel-input/i18n/types.d.ts +254 -0
  239. package/angular/build/types/intl-tel-input/i18n/uk/countries.d.ts +3 -0
  240. package/angular/build/types/intl-tel-input/i18n/uk/index.d.ts +6 -0
  241. package/angular/build/types/intl-tel-input/i18n/uk/interface.d.ts +3 -0
  242. package/angular/build/types/intl-tel-input/i18n/ur/countries.d.ts +3 -0
  243. package/angular/build/types/intl-tel-input/i18n/ur/index.d.ts +6 -0
  244. package/angular/build/types/intl-tel-input/i18n/ur/interface.d.ts +3 -0
  245. package/angular/build/types/intl-tel-input/i18n/uz/countries.d.ts +3 -0
  246. package/angular/build/types/intl-tel-input/i18n/uz/index.d.ts +6 -0
  247. package/angular/build/types/intl-tel-input/i18n/uz/interface.d.ts +3 -0
  248. package/angular/build/types/intl-tel-input/i18n/vi/countries.d.ts +3 -0
  249. package/angular/build/types/intl-tel-input/i18n/vi/index.d.ts +6 -0
  250. package/angular/build/types/intl-tel-input/i18n/vi/interface.d.ts +3 -0
  251. package/angular/build/types/intl-tel-input/i18n/zh/countries.d.ts +3 -0
  252. package/angular/build/types/intl-tel-input/i18n/zh/index.d.ts +6 -0
  253. package/angular/build/types/intl-tel-input/i18n/zh/interface.d.ts +3 -0
  254. package/angular/build/types/intl-tel-input/intlTelInputWithUtils.d.ts +2 -0
  255. package/angular/build/types/intl-tel-input/utils.d.ts +2 -0
  256. package/angular/build/types/intl-tel-input.d.ts +199 -0
  257. package/build/js/data.js +1 -1
  258. package/build/js/data.min.js +1 -1
  259. package/build/js/intlTelInput.d.ts +1 -1
  260. package/build/js/intlTelInput.js +46 -17
  261. package/build/js/intlTelInput.min.js +2 -2
  262. package/build/js/intlTelInputWithUtils.js +46 -17
  263. package/build/js/intlTelInputWithUtils.min.js +2 -2
  264. package/package.json +5 -7
  265. package/react/README.md +1 -1
  266. package/react/build/IntlTelInput.cjs +45 -16
  267. package/react/build/IntlTelInput.d.ts +1 -1
  268. package/react/build/IntlTelInput.js +45 -16
  269. package/react/build/IntlTelInputWithUtils.cjs +45 -16
  270. package/react/build/IntlTelInputWithUtils.js +45 -16
  271. package/vue/README.md +1 -1
  272. package/vue/build/IntlTelInput.mjs +160 -153
  273. package/vue/build/IntlTelInputWithUtils.mjs +543 -536
@@ -1323,9 +1323,9 @@ const N = [
1323
1323
  "263"
1324
1324
  ]
1325
1325
  ], I = [];
1326
- for (let u = 0; u < N.length; u++) {
1327
- const t = N[u];
1328
- I[u] = {
1326
+ for (let h = 0; h < N.length; h++) {
1327
+ const t = N[h];
1328
+ I[h] = {
1329
1329
  name: "",
1330
1330
  // this is now populated in the plugin
1331
1331
  iso2: t[0],
@@ -1591,8 +1591,8 @@ const j = {
1591
1591
  ac: "Ascension Island",
1592
1592
  xk: "Kosovo"
1593
1593
  }, k = { ...j, ...$ };
1594
- for (let u = 0; u < I.length; u++)
1595
- I[u].name = k[I[u].iso2];
1594
+ for (let h = 0; h < I.length; h++)
1595
+ I[h].name = k[I[h].iso2];
1596
1596
  let U = 0;
1597
1597
  const T = {
1598
1598
  //* Whether or not to allow the dropdown.
@@ -1667,32 +1667,32 @@ const T = {
1667
1667
  "887",
1668
1668
  "888",
1669
1669
  "889"
1670
- ], v = (u) => u.replace(/\D/g, ""), A = (u = "") => u.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), S = (u) => {
1671
- const t = v(u);
1670
+ ], v = (h) => h.replace(/\D/g, ""), A = (h = "") => h.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), S = (h) => {
1671
+ const t = v(h);
1672
1672
  if (t.charAt(0) === "1") {
1673
1673
  const e = t.substr(1, 3);
1674
1674
  return H.includes(e);
1675
1675
  }
1676
1676
  return !1;
1677
- }, K = (u, t, e, i) => {
1677
+ }, K = (h, t, e, i) => {
1678
1678
  if (e === 0 && !i)
1679
1679
  return 0;
1680
1680
  let s = 0;
1681
1681
  for (let n = 0; n < t.length; n++) {
1682
- if (/[+0-9]/.test(t[n]) && s++, s === u && !i)
1682
+ if (/[+0-9]/.test(t[n]) && s++, s === h && !i)
1683
1683
  return n + 1;
1684
- if (i && s === u + 1)
1684
+ if (i && s === h + 1)
1685
1685
  return n;
1686
1686
  }
1687
1687
  return t.length;
1688
- }, y = (u, t, e) => {
1689
- const i = document.createElement(u);
1688
+ }, m = (h, t, e) => {
1689
+ const i = document.createElement(h);
1690
1690
  return t && Object.entries(t).forEach(([s, n]) => i.setAttribute(s, n)), e && e.appendChild(i), i;
1691
- }, w = (u, ...t) => {
1692
- const { instances: e } = l;
1693
- Object.values(e).forEach((i) => i[u](...t));
1691
+ }, w = (h, ...t) => {
1692
+ const { instances: e } = u;
1693
+ Object.values(e).forEach((i) => i[h](...t));
1694
1694
  };
1695
- class G {
1695
+ class W {
1696
1696
  constructor(t, e = {}) {
1697
1697
  this.id = U++, this.telInput = t, this.highlightedItem = null, this.options = Object.assign({}, T, e), this.hadInitialPlaceholder = !!t.getAttribute("placeholder");
1698
1698
  }
@@ -1787,7 +1787,7 @@ class G {
1787
1787
  }
1788
1788
  //* Generate all of the markup for the plugin: the selected country overlay, and the dropdown.
1789
1789
  _generateMarkup() {
1790
- var h, m, b;
1790
+ var l, d, 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: t,
@@ -1799,17 +1799,17 @@ class G {
1799
1799
  fixDropdownWidth: r,
1800
1800
  useFullscreenPopup: a,
1801
1801
  countrySearch: c,
1802
- i18n: d
1802
+ i18n: y
1803
1803
  } = this.options;
1804
- let C = "iti";
1805
- t && (C += " iti--allow-dropdown"), i && (C += " iti--show-flags"), s && (C += ` ${s}`), a || (C += " iti--inline-dropdown");
1806
- const p = y("div", { class: C });
1807
- if ((h = this.telInput.parentNode) == null || h.insertBefore(p, this.telInput), t || i || e) {
1808
- this.countryContainer = y(
1804
+ let p = "iti";
1805
+ t && (p += " iti--allow-dropdown"), i && (p += " iti--show-flags"), s && (p += ` ${s}`), a || (p += " iti--inline-dropdown");
1806
+ const C = m("div", { class: p });
1807
+ if ((l = this.telInput.parentNode) == null || l.insertBefore(C, this.telInput), t || i || e) {
1808
+ this.countryContainer = m(
1809
1809
  "div",
1810
1810
  { class: "iti__country-container" },
1811
- p
1812
- ), this.showSelectedCountryOnLeft ? this.countryContainer.style.left = "0px" : this.countryContainer.style.right = "0px", t ? (this.selectedCountry = y(
1811
+ C
1812
+ ), this.showSelectedCountryOnLeft ? this.countryContainer.style.left = "0px" : this.countryContainer.style.right = "0px", t ? (this.selectedCountry = m(
1813
1813
  "button",
1814
1814
  {
1815
1815
  type: "button",
@@ -1821,85 +1821,85 @@ class G {
1821
1821
  role: "combobox"
1822
1822
  },
1823
1823
  this.countryContainer
1824
- ), this.telInput.disabled && this.selectedCountry.setAttribute("disabled", "true")) : this.selectedCountry = y(
1824
+ ), this.telInput.disabled && this.selectedCountry.setAttribute("disabled", "true")) : this.selectedCountry = m(
1825
1825
  "div",
1826
1826
  { class: "iti__selected-country" },
1827
1827
  this.countryContainer
1828
1828
  );
1829
- const _ = y("div", { class: "iti__selected-country-primary" }, this.selectedCountry);
1830
- if (this.selectedCountryInner = y("div", { class: "iti__flag" }, _), this.selectedCountryA11yText = y(
1829
+ const b = m("div", { class: "iti__selected-country-primary" }, this.selectedCountry);
1830
+ if (this.selectedCountryInner = m("div", { class: "iti__flag" }, b), this.selectedCountryA11yText = m(
1831
1831
  "span",
1832
1832
  { class: "iti__a11y-text" },
1833
1833
  this.selectedCountryInner
1834
- ), t && (this.dropdownArrow = y(
1834
+ ), t && (this.dropdownArrow = m(
1835
1835
  "div",
1836
1836
  { class: "iti__arrow", "aria-hidden": "true" },
1837
- _
1838
- )), e && (this.selectedDialCode = y(
1837
+ b
1838
+ )), e && (this.selectedDialCode = m(
1839
1839
  "div",
1840
1840
  { class: "iti__selected-dial-code" },
1841
1841
  this.selectedCountry
1842
1842
  )), t) {
1843
1843
  const f = r ? "" : "iti--flexible-dropdown-width";
1844
- if (this.dropdownContent = y("div", {
1844
+ if (this.dropdownContent = m("div", {
1845
1845
  id: `iti-${this.id}__dropdown-content`,
1846
1846
  class: `iti__dropdown-content iti__hide ${f}`
1847
- }), c && (this.searchInput = y(
1847
+ }), c && (this.searchInput = m(
1848
1848
  "input",
1849
1849
  {
1850
1850
  type: "text",
1851
1851
  class: "iti__search-input",
1852
- placeholder: d.searchPlaceholder,
1852
+ placeholder: y.searchPlaceholder,
1853
1853
  role: "combobox",
1854
1854
  "aria-expanded": "true",
1855
- "aria-label": d.searchPlaceholder,
1855
+ "aria-label": y.searchPlaceholder,
1856
1856
  "aria-controls": `iti-${this.id}__country-listbox`,
1857
1857
  "aria-autocomplete": "list",
1858
1858
  autocomplete: "off"
1859
1859
  },
1860
1860
  this.dropdownContent
1861
- ), this.searchResultsA11yText = y(
1861
+ ), this.searchResultsA11yText = m(
1862
1862
  "span",
1863
1863
  { class: "iti__a11y-text" },
1864
1864
  this.dropdownContent
1865
- )), this.countryList = y(
1865
+ )), this.countryList = m(
1866
1866
  "ul",
1867
1867
  {
1868
1868
  class: "iti__country-list",
1869
1869
  id: `iti-${this.id}__country-listbox`,
1870
1870
  role: "listbox",
1871
- "aria-label": d.countryListAriaLabel
1871
+ "aria-label": y.countryListAriaLabel
1872
1872
  },
1873
1873
  this.dropdownContent
1874
1874
  ), this._appendListItems(), c && this._updateSearchResultsText(), o) {
1875
- let g = "iti iti--container";
1876
- s && (g += ` ${s}`), a ? g += " iti--fullscreen-popup" : g += " iti--inline-dropdown", this.dropdown = y("div", { class: g }), this.dropdown.appendChild(this.dropdownContent);
1875
+ let _ = "iti iti--container";
1876
+ s && (_ += ` ${s}`), a ? _ += " iti--fullscreen-popup" : _ += " iti--inline-dropdown", this.dropdown = m("div", { class: _ }), this.dropdown.appendChild(this.dropdownContent);
1877
1877
  } else
1878
1878
  this.countryContainer.appendChild(this.dropdownContent);
1879
1879
  }
1880
1880
  }
1881
- if (p.appendChild(this.telInput), this._updateInputPadding(), n) {
1882
- const _ = this.telInput.getAttribute("name") || "", f = n(_);
1881
+ if (C.appendChild(this.telInput), this._updateInputPadding(), n) {
1882
+ const b = this.telInput.getAttribute("name") || "", f = n(b);
1883
1883
  if (f.phone) {
1884
- const g = (m = this.telInput.form) == null ? void 0 : m.querySelector(`input[name="${f.phone}"]`);
1885
- g ? this.hiddenInput = g : (this.hiddenInput = y("input", {
1884
+ const _ = (d = this.telInput.form) == null ? void 0 : d.querySelector(`input[name="${f.phone}"]`);
1885
+ _ ? this.hiddenInput = _ : (this.hiddenInput = m("input", {
1886
1886
  type: "hidden",
1887
1887
  name: f.phone
1888
- }), p.appendChild(this.hiddenInput));
1888
+ }), C.appendChild(this.hiddenInput));
1889
1889
  }
1890
1890
  if (f.country) {
1891
- const g = (b = this.telInput.form) == null ? void 0 : b.querySelector(`input[name="${f.country}"]`);
1892
- g ? this.hiddenInputCountry = g : (this.hiddenInputCountry = y("input", {
1891
+ const _ = (g = this.telInput.form) == null ? void 0 : g.querySelector(`input[name="${f.country}"]`);
1892
+ _ ? this.hiddenInputCountry = _ : (this.hiddenInputCountry = m("input", {
1893
1893
  type: "hidden",
1894
1894
  name: f.country
1895
- }), p.appendChild(this.hiddenInputCountry));
1895
+ }), C.appendChild(this.hiddenInputCountry));
1896
1896
  }
1897
1897
  }
1898
1898
  }
1899
1899
  //* For each country: add a country list item <li> to the countryList <ul> container.
1900
1900
  _appendListItems() {
1901
1901
  for (let t = 0; t < this.countries.length; t++) {
1902
- const e = this.countries[t], i = t === 0 ? "iti__highlight" : "", s = y(
1902
+ const e = this.countries[t], i = t === 0 ? "iti__highlight" : "", s = m(
1903
1903
  "li",
1904
1904
  {
1905
1905
  id: `iti-${this.id}__item-${e.iso2}`,
@@ -1921,12 +1921,12 @@ class G {
1921
1921
  //* 1. Extracting a dial code from the given number
1922
1922
  //* 2. Using explicit initialCountry
1923
1923
  _setInitialState(t = !1) {
1924
- const e = this.telInput.getAttribute("value"), i = this.telInput.value, n = e && e.charAt(0) === "+" && (!i || i.charAt(0) !== "+") ? e : i, o = this._getDialCode(n), r = S(n), { initialCountry: a, geoIpLookup: c } = this.options, d = a === "auto" && c;
1924
+ const e = this.telInput.getAttribute("value"), i = this.telInput.value, n = e && e.charAt(0) === "+" && (!i || i.charAt(0) !== "+") ? e : i, o = this._getDialCode(n), r = S(n), { initialCountry: a, geoIpLookup: c } = this.options, y = a === "auto" && c;
1925
1925
  if (o && !r)
1926
1926
  this._updateCountryFromNumber(n);
1927
- else if (!d || t) {
1928
- const C = a ? a.toLowerCase() : "";
1929
- C && this._getCountryData(C, !0) ? this._setCountry(C) : o && r ? this._setCountry("us") : this._setCountry();
1927
+ else if (!y || t) {
1928
+ const p = a ? a.toLowerCase() : "";
1929
+ p && this._getCountryData(p, !0) ? this._setCountry(p) : o && r ? this._setCountry("us") : this._setCountry();
1930
1930
  }
1931
1931
  n && this._updateValFromNumber(n);
1932
1932
  }
@@ -1962,18 +1962,18 @@ class G {
1962
1962
  //* Init many requests: utils script / geo ip lookup.
1963
1963
  _initRequests() {
1964
1964
  let { loadUtils: t, initialCountry: e, geoIpLookup: i } = this.options;
1965
- t && !l.utils ? (this._handlePageLoad = () => {
1965
+ t && !u.utils ? (this._handlePageLoad = () => {
1966
1966
  var n;
1967
- window.removeEventListener("load", this._handlePageLoad), (n = l.attachUtils(t)) == null || n.catch(() => {
1967
+ window.removeEventListener("load", this._handlePageLoad), (n = u.attachUtils(t)) == null || n.catch(() => {
1968
1968
  });
1969
- }, l.documentReady() ? this._handlePageLoad() : window.addEventListener("load", this._handlePageLoad)) : this.resolveUtilsScriptPromise(), e === "auto" && i && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
1969
+ }, u.documentReady() ? this._handlePageLoad() : window.addEventListener("load", this._handlePageLoad)) : this.resolveUtilsScriptPromise(), e === "auto" && i && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
1970
1970
  }
1971
1971
  //* Perform the geo ip lookup.
1972
1972
  _loadAutoCountry() {
1973
- l.autoCountry ? this.handleAutoCountry() : l.startedLoadingAutoCountry || (l.startedLoadingAutoCountry = !0, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(
1973
+ u.autoCountry ? this.handleAutoCountry() : u.startedLoadingAutoCountry || (u.startedLoadingAutoCountry = !0, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(
1974
1974
  (t = "") => {
1975
1975
  const e = t.toLowerCase();
1976
- e && this._getCountryData(e, !0) ? (l.autoCountry = e, setTimeout(() => w("handleAutoCountry"))) : (this._setInitialState(!0), w("rejectAutoCountryPromise"));
1976
+ e && this._getCountryData(e, !0) ? (u.autoCountry = e, setTimeout(() => w("handleAutoCountry"))) : (this._setInitialState(!0), w("rejectAutoCountryPromise"));
1977
1977
  },
1978
1978
  () => {
1979
1979
  this._setInitialState(!0), w("rejectAutoCountryPromise");
@@ -1989,17 +1989,17 @@ class G {
1989
1989
  let r = !1;
1990
1990
  new RegExp("\\p{L}", "u").test(this.telInput.value) && (r = !0), this._handleInputEvent = (a) => {
1991
1991
  if (this.isAndroid && (a == null ? void 0 : a.data) === "+" && i && n && o) {
1992
- const p = this.telInput.selectionStart || 0, h = this.telInput.value.substring(0, p - 1), m = this.telInput.value.substring(p);
1993
- this.telInput.value = h + m, this._openDropdownWithPlus();
1992
+ const C = this.telInput.selectionStart || 0, l = this.telInput.value.substring(0, C - 1), d = this.telInput.value.substring(C);
1993
+ this.telInput.value = l + d, this._openDropdownWithPlus();
1994
1994
  return;
1995
1995
  }
1996
1996
  this._updateCountryFromNumber(this.telInput.value) && this._triggerCountryChange();
1997
- const c = (a == null ? void 0 : a.data) && /[^+0-9]/.test(a.data), d = (a == null ? void 0 : a.inputType) === "insertFromPaste" && this.telInput.value;
1998
- c || d && !t ? r = !0 : /[^+0-9]/.test(this.telInput.value) || (r = !1);
1999
- const C = (a == null ? void 0 : a.detail) && a.detail.isSetNumber && !s;
2000
- if (e && !r && !C) {
2001
- const p = this.telInput.selectionStart || 0, m = this.telInput.value.substring(0, p).replace(/[^+0-9]/g, "").length, b = (a == null ? void 0 : a.inputType) === "deleteContentForward", _ = this._formatNumberAsYouType(), f = K(m, _, p, b);
2002
- this.telInput.value = _, this.telInput.setSelectionRange(f, f);
1997
+ const c = (a == null ? void 0 : a.data) && /[^+0-9]/.test(a.data), y = (a == null ? void 0 : a.inputType) === "insertFromPaste" && this.telInput.value;
1998
+ c || y && !t ? r = !0 : /[^+0-9]/.test(this.telInput.value) || (r = !1);
1999
+ const p = (a == null ? void 0 : a.detail) && a.detail.isSetNumber && !s;
2000
+ if (e && !r && !p) {
2001
+ const C = this.telInput.selectionStart || 0, d = this.telInput.value.substring(0, C).replace(/[^+0-9]/g, "").length, g = (a == null ? void 0 : a.inputType) === "deleteContentForward", b = this._formatNumberAsYouType(), f = K(d, b, C, g);
2002
+ this.telInput.value = b, this.telInput.setSelectionRange(f, f);
2003
2003
  }
2004
2004
  }, this.telInput.addEventListener("input", this._handleInputEvent), (t || i) && (this._handleKeydownEvent = (a) => {
2005
2005
  if (a.key && a.key.length === 1 && !a.altKey && !a.ctrlKey && !a.metaKey) {
@@ -2008,13 +2008,8 @@ class G {
2008
2008
  return;
2009
2009
  }
2010
2010
  if (t) {
2011
- const c = this.telInput.value, d = c.charAt(0) === "+", C = !d && this.telInput.selectionStart === 0 && a.key === "+", p = /^[0-9]$/.test(a.key), h = i ? p : C || p, m = c.slice(0, this.telInput.selectionStart) + a.key + c.slice(this.telInput.selectionEnd), b = this._getFullNumber(m), _ = l.utils.getCoreNumber(b, this.selectedCountryData.iso2), f = this.maxCoreNumberLength && _.length > this.maxCoreNumberLength;
2012
- let g = !1;
2013
- if (d) {
2014
- const P = this.selectedCountryData.iso2;
2015
- g = this._getCountryFromNumber(b) !== P;
2016
- }
2017
- (!h || f && !g && !C) && a.preventDefault();
2011
+ const c = this.telInput.value, p = !(c.charAt(0) === "+") && this.telInput.selectionStart === 0 && a.key === "+", C = /^[0-9]$/.test(a.key), l = i ? C : p || C, d = c.slice(0, this.telInput.selectionStart) + a.key + c.slice(this.telInput.selectionEnd), g = this._getFullNumber(d), b = u.utils.getCoreNumber(g, this.selectedCountryData.iso2), f = this.maxCoreNumberLength && b.length > this.maxCoreNumberLength, P = this._getNewCountryFromNumber(g) !== null;
2012
+ (!l || f && !P && !p) && a.preventDefault();
2018
2013
  }
2019
2014
  }
2020
2015
  }, this.telInput.addEventListener("keydown", this._handleKeydownEvent));
@@ -2103,13 +2098,22 @@ class G {
2103
2098
  _filterCountries(t, e = !1) {
2104
2099
  let i = !0;
2105
2100
  this.countryList.innerHTML = "";
2106
- const s = A(t);
2107
- for (let n = 0; n < this.countries.length; n++) {
2108
- const o = this.countries[n], r = A(o.name), a = o.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((d) => d[0]).join("").toLowerCase(), c = `+${o.dialCode}`;
2109
- if (e || r.includes(s) || c.includes(s) || o.iso2.includes(s) || a.includes(s)) {
2110
- const d = o.nodeById[this.id];
2111
- d && this.countryList.appendChild(d), i && (this._highlightListItem(d, !1), i = !1);
2112
- }
2101
+ const s = A(t), n = s.length, o = [], r = [], a = [], c = [], y = [], p = [];
2102
+ for (let l = 0; l < this.countries.length; l++) {
2103
+ const d = this.countries[l], g = A(d.name), b = d.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((f) => f[0]).join("").toLowerCase();
2104
+ e || n === 0 ? a.push(d) : d.iso2.toLowerCase() === s ? o.push(d) : g.startsWith(s) ? r.push(d) : g.includes(s) ? a.push(d) : s === d.dialCode || s === `+${d.dialCode}` ? c.push(d) : `+${d.dialCode}`.includes(s) ? y.push(d) : b.includes(s) && p.push(d);
2105
+ }
2106
+ const C = [
2107
+ ...o.sort((l, d) => l.priority - d.priority),
2108
+ ...r.sort((l, d) => l.priority - d.priority),
2109
+ ...a.sort((l, d) => l.priority - d.priority),
2110
+ ...c.sort((l, d) => l.priority - d.priority),
2111
+ ...y.sort((l, d) => l.priority - d.priority),
2112
+ ...p.sort((l, d) => l.priority - d.priority)
2113
+ ];
2114
+ for (const l of C) {
2115
+ const d = l.nodeById[this.id];
2116
+ d && (this.countryList.appendChild(d), i && (this._highlightListItem(d, !1), i = !1));
2113
2117
  }
2114
2118
  i && this._highlightListItem(null, !1), this.countryList.scrollTop = 0, this._updateSearchResultsText();
2115
2119
  }
@@ -2133,9 +2137,9 @@ class G {
2133
2137
  //* NOTE: this is called from _setInitialState, handleUtils and setNumber.
2134
2138
  _updateValFromNumber(t) {
2135
2139
  let e = t;
2136
- if (this.options.formatOnDisplay && l.utils && this.selectedCountryData) {
2137
- const i = this.options.nationalMode || e.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: s, INTERNATIONAL: n } = l.utils.numberFormat, o = i ? s : n;
2138
- e = l.utils.formatNumber(
2140
+ if (this.options.formatOnDisplay && u.utils && this.selectedCountryData) {
2141
+ const i = this.options.nationalMode || e.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: s, INTERNATIONAL: n } = u.utils.numberFormat, o = i ? s : n;
2142
+ e = u.utils.formatNumber(
2139
2143
  e,
2140
2144
  this.selectedCountryData.iso2,
2141
2145
  o
@@ -2146,7 +2150,7 @@ class G {
2146
2150
  //* Check if need to select a new country based on the given number
2147
2151
  //* Note: called from _setInitialState, keyup handler, setNumber.
2148
2152
  _updateCountryFromNumber(t) {
2149
- const e = this._getCountryFromNumber(t);
2153
+ const e = this._getNewCountryFromNumber(t);
2150
2154
  return e !== null ? this._setCountry(e) : !1;
2151
2155
  }
2152
2156
  _ensureHasDialCode(t) {
@@ -2156,7 +2160,10 @@ class G {
2156
2160
  const o = i && t.charAt(0) === i && !this.options.separateDialCode ? t.substring(1) : t;
2157
2161
  return `+${e}${o}`;
2158
2162
  }
2159
- _getCountryFromNumber(t) {
2163
+ // Get the country ISO2 code from the given number
2164
+ // BUT ONLY IF ITS CHANGED FROM THE CURRENTLY SELECTED COUNTRY
2165
+ // NOTE: consider refactoring this to be more clear
2166
+ _getNewCountryFromNumber(t) {
2160
2167
  const e = t.indexOf("+");
2161
2168
  let i = e ? t.substring(e) : t;
2162
2169
  const s = this.selectedCountryData.iso2, n = this.selectedCountryData.dialCode;
@@ -2166,11 +2173,11 @@ class G {
2166
2173
  const a = v(o), c = this.dialCodeToIso2Map[a];
2167
2174
  if (!s && this.defaultCountry && c.includes(this.defaultCountry))
2168
2175
  return this.defaultCountry;
2169
- const d = s && c.includes(s) && (r.length === a.length || !this.selectedCountryData.areaCodes);
2170
- if (!(n === "1" && S(r)) && !d) {
2171
- for (let p = 0; p < c.length; p++)
2172
- if (c[p])
2173
- return c[p];
2176
+ const y = this.selectedCountryData.areaCodes && r.length > a.length, p = s && c.includes(s) && !y;
2177
+ if (!(n === "1" && S(r)) && !p) {
2178
+ for (let l = 0; l < c.length; l++)
2179
+ if (c[l])
2180
+ return c[l];
2174
2181
  }
2175
2182
  } else {
2176
2183
  if (i.charAt(0) === "+" && r.length)
@@ -2224,18 +2231,18 @@ class G {
2224
2231
  //* Update the maximum valid number length for the currently selected country.
2225
2232
  _updateMaxLength() {
2226
2233
  const { strictMode: t, placeholderNumberType: e, validationNumberTypes: i } = this.options, { iso2: s } = this.selectedCountryData;
2227
- if (t && l.utils)
2234
+ if (t && u.utils)
2228
2235
  if (s) {
2229
- const n = l.utils.numberType[e];
2230
- let o = l.utils.getExampleNumber(
2236
+ const n = u.utils.numberType[e];
2237
+ let o = u.utils.getExampleNumber(
2231
2238
  s,
2232
2239
  !1,
2233
2240
  n,
2234
2241
  !0
2235
2242
  ), r = o;
2236
- for (; l.utils.isPossibleNumber(o, s, i); )
2243
+ for (; u.utils.isPossibleNumber(o, s, i); )
2237
2244
  r = o, o += "0";
2238
- const a = l.utils.getCoreNumber(r, s);
2245
+ const a = u.utils.getCoreNumber(r, s);
2239
2246
  this.maxCoreNumberLength = a.length, s === "by" && (this.maxCoreNumberLength = a.length + 1);
2240
2247
  } else
2241
2248
  this.maxCoreNumberLength = null;
@@ -2271,9 +2278,9 @@ class G {
2271
2278
  nationalMode: i,
2272
2279
  customPlaceholder: s
2273
2280
  } = this.options, n = t === "aggressive" || !this.hadInitialPlaceholder && t === "polite";
2274
- if (l.utils && n) {
2275
- const o = l.utils.numberType[e];
2276
- let r = this.selectedCountryData.iso2 ? l.utils.getExampleNumber(
2281
+ if (u.utils && n) {
2282
+ const o = u.utils.numberType[e];
2283
+ let r = this.selectedCountryData.iso2 ? u.utils.getExampleNumber(
2277
2284
  this.selectedCountryData.iso2,
2278
2285
  i,
2279
2286
  o
@@ -2300,12 +2307,12 @@ class G {
2300
2307
  }
2301
2308
  //* Check if an element is visible within it's container, else scroll until it is.
2302
2309
  _scrollTo(t) {
2303
- const e = this.countryList, i = document.documentElement.scrollTop, s = e.offsetHeight, n = e.getBoundingClientRect().top + i, o = n + s, r = t.offsetHeight, a = t.getBoundingClientRect().top + i, c = a + r, d = a - n + e.scrollTop;
2310
+ const e = this.countryList, i = document.documentElement.scrollTop, s = e.offsetHeight, n = e.getBoundingClientRect().top + i, o = n + s, r = t.offsetHeight, a = t.getBoundingClientRect().top + i, c = a + r, y = a - n + e.scrollTop;
2304
2311
  if (a < n)
2305
- e.scrollTop = d;
2312
+ e.scrollTop = y;
2306
2313
  else if (c > o) {
2307
- const C = s - r;
2308
- e.scrollTop = d - C;
2314
+ const p = s - r;
2315
+ e.scrollTop = y - p;
2309
2316
  }
2310
2317
  }
2311
2318
  //* Replace any existing dial code with the new one
@@ -2366,7 +2373,7 @@ class G {
2366
2373
  }
2367
2374
  //* Format the number as the user types.
2368
2375
  _formatNumberAsYouType() {
2369
- const t = this._getFullNumber(), e = l.utils ? l.utils.formatNumberAsYouType(t, this.selectedCountryData.iso2) : t, { dialCode: i } = this.selectedCountryData;
2376
+ const t = this._getFullNumber(), e = u.utils ? u.utils.formatNumberAsYouType(t, this.selectedCountryData.iso2) : t, { dialCode: i } = this.selectedCountryData;
2370
2377
  return this.options.separateDialCode && this.telInput.value.charAt(0) !== "+" && e.includes(`+${i}`) ? (e.split(`+${i}`)[1] || "").trim() : e;
2371
2378
  }
2372
2379
  //**************************
@@ -2374,11 +2381,11 @@ class G {
2374
2381
  //**************************
2375
2382
  //* This is called when the geoip call returns.
2376
2383
  handleAutoCountry() {
2377
- this.options.initialCountry === "auto" && l.autoCountry && (this.defaultCountry = l.autoCountry, this.selectedCountryData.iso2 || this.selectedCountryInner.classList.contains("iti__globe") || this.setCountry(this.defaultCountry), this.resolveAutoCountryPromise());
2384
+ this.options.initialCountry === "auto" && u.autoCountry && (this.defaultCountry = u.autoCountry, this.selectedCountryData.iso2 || this.selectedCountryInner.classList.contains("iti__globe") || this.setCountry(this.defaultCountry), this.resolveAutoCountryPromise());
2378
2385
  }
2379
2386
  //* This is called when the utils request completes.
2380
2387
  handleUtils() {
2381
- l.utils && (this.telInput.value && this._updateValFromNumber(this.telInput.value), this.selectedCountryData.iso2 && (this._updatePlaceholder(), this._updateMaxLength())), this.resolveUtilsScriptPromise();
2388
+ u.utils && (this.telInput.value && this._updateValFromNumber(this.telInput.value), this.selectedCountryData.iso2 && (this._updatePlaceholder(), this._updateMaxLength())), this.resolveUtilsScriptPromise();
2382
2389
  }
2383
2390
  //********************
2384
2391
  //* PUBLIC METHODS
@@ -2402,20 +2409,20 @@ class G {
2402
2409
  const { form: i } = this.telInput;
2403
2410
  this._handleHiddenInputSubmit && i && i.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this.telInput.removeAttribute("data-intl-tel-input-id"), e && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
2404
2411
  const s = this.telInput.parentNode;
2405
- (n = s == null ? void 0 : s.parentNode) == null || n.insertBefore(this.telInput, s), (o = s == null ? void 0 : s.parentNode) == null || o.removeChild(s), delete l.instances[this.id];
2412
+ (n = s == null ? void 0 : s.parentNode) == null || n.insertBefore(this.telInput, s), (o = s == null ? void 0 : s.parentNode) == null || o.removeChild(s), delete u.instances[this.id];
2406
2413
  }
2407
2414
  //* Get the extension from the current number.
2408
2415
  getExtension() {
2409
- return l.utils ? l.utils.getExtension(
2416
+ return u.utils ? u.utils.getExtension(
2410
2417
  this._getFullNumber(),
2411
2418
  this.selectedCountryData.iso2
2412
2419
  ) : "";
2413
2420
  }
2414
2421
  //* Format the number to the given format.
2415
2422
  getNumber(t) {
2416
- if (l.utils) {
2423
+ if (u.utils) {
2417
2424
  const { iso2: e } = this.selectedCountryData;
2418
- return l.utils.formatNumber(
2425
+ return u.utils.formatNumber(
2419
2426
  this._getFullNumber(),
2420
2427
  e,
2421
2428
  t
@@ -2425,7 +2432,7 @@ class G {
2425
2432
  }
2426
2433
  //* Get the type of the entered number e.g. landline/mobile.
2427
2434
  getNumberType() {
2428
- return l.utils ? l.utils.getNumberType(
2435
+ return u.utils ? u.utils.getNumberType(
2429
2436
  this._getFullNumber(),
2430
2437
  this.selectedCountryData.iso2
2431
2438
  ) : -99;
@@ -2436,9 +2443,9 @@ class G {
2436
2443
  }
2437
2444
  //* Get the validation error.
2438
2445
  getValidationError() {
2439
- if (l.utils) {
2446
+ if (u.utils) {
2440
2447
  const { iso2: t } = this.selectedCountryData;
2441
- return l.utils.getValidationError(this._getFullNumber(), t);
2448
+ return u.utils.getValidationError(this._getFullNumber(), t);
2442
2449
  }
2443
2450
  return -99;
2444
2451
  }
@@ -2454,7 +2461,7 @@ class G {
2454
2461
  return this._utilsIsPossibleNumber(t);
2455
2462
  }
2456
2463
  _utilsIsPossibleNumber(t) {
2457
- return l.utils ? l.utils.isPossibleNumber(t, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
2464
+ return u.utils ? u.utils.isPossibleNumber(t, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
2458
2465
  }
2459
2466
  //* Validate the input val (precise)
2460
2467
  isValidNumberPrecise() {
@@ -2468,7 +2475,7 @@ class G {
2468
2475
  return this._utilsIsValidNumber(t);
2469
2476
  }
2470
2477
  _utilsIsValidNumber(t) {
2471
- return l.utils ? l.utils.isValidNumber(t, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
2478
+ return u.utils ? u.utils.isValidNumber(t, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
2472
2479
  }
2473
2480
  //* Update the selected country, and update the input val accordingly.
2474
2481
  setCountry(t) {
@@ -2488,31 +2495,31 @@ class G {
2488
2495
  this.telInput.disabled = t, t ? this.selectedCountry.setAttribute("disabled", "true") : this.selectedCountry.removeAttribute("disabled");
2489
2496
  }
2490
2497
  }
2491
- const W = (u) => {
2492
- if (!l.utils && !l.startedLoadingUtilsScript) {
2498
+ const G = (h) => {
2499
+ if (!u.utils && !u.startedLoadingUtilsScript) {
2493
2500
  let t;
2494
- if (typeof u == "function")
2501
+ if (typeof h == "function")
2495
2502
  try {
2496
- t = Promise.resolve(u());
2503
+ t = Promise.resolve(h());
2497
2504
  } catch (e) {
2498
2505
  return Promise.reject(e);
2499
2506
  }
2500
2507
  else
2501
- return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof u}`));
2502
- return l.startedLoadingUtilsScript = !0, t.then((e) => {
2508
+ return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof h}`));
2509
+ return u.startedLoadingUtilsScript = !0, t.then((e) => {
2503
2510
  const i = e == null ? void 0 : e.default;
2504
2511
  if (!i || typeof i != "object")
2505
2512
  throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");
2506
- return l.utils = i, w("handleUtils"), !0;
2513
+ return u.utils = i, w("handleUtils"), !0;
2507
2514
  }).catch((e) => {
2508
2515
  throw w("rejectUtilsScriptPromise", e), e;
2509
2516
  });
2510
2517
  }
2511
2518
  return null;
2512
- }, l = Object.assign(
2513
- (u, t) => {
2514
- const e = new G(u, t);
2515
- return e._init(), u.setAttribute("data-intl-tel-input-id", e.id.toString()), l.instances[e.id] = e, u.iti = e, e;
2519
+ }, u = Object.assign(
2520
+ (h, t) => {
2521
+ const e = new W(h, t);
2522
+ return e._init(), h.setAttribute("data-intl-tel-input-id", e.id.toString()), u.instances[e.id] = e, h.iti = e, e;
2516
2523
  },
2517
2524
  {
2518
2525
  defaults: T,
@@ -2521,18 +2528,18 @@ const W = (u) => {
2521
2528
  //* Get the country data object.
2522
2529
  getCountryData: () => I,
2523
2530
  //* A getter for the plugin instance.
2524
- getInstance: (u) => {
2525
- const t = u.getAttribute("data-intl-tel-input-id");
2526
- return t ? l.instances[t] : null;
2531
+ getInstance: (h) => {
2532
+ const t = h.getAttribute("data-intl-tel-input-id");
2533
+ return t ? u.instances[t] : null;
2527
2534
  },
2528
2535
  //* A map from instance ID to instance object.
2529
2536
  instances: {},
2530
- attachUtils: W,
2537
+ attachUtils: G,
2531
2538
  startedLoadingUtilsScript: !1,
2532
2539
  startedLoadingAutoCountry: !1,
2533
- version: "25.4.7"
2540
+ version: "25.5.0"
2534
2541
  }
2535
- ), J = {
2542
+ ), Y = {
2536
2543
  __name: "IntlTelInput",
2537
2544
  props: /* @__PURE__ */ D({
2538
2545
  disabled: {
@@ -2564,39 +2571,39 @@ const W = (u) => {
2564
2571
  "changeValidity",
2565
2572
  "changeErrorCode"
2566
2573
  ], ["update:modelValue"]),
2567
- setup(u, { expose: t, emit: e }) {
2568
- const i = x(u, "modelValue"), s = u, n = e, o = L(), r = L(), a = L(!1), c = () => r.value ? s.options.strictMode ? r.value.isValidNumberPrecise() : r.value.isValidNumber() : null, d = () => {
2569
- let h = c();
2570
- a.value !== h && (a.value = h, n("changeValidity", !!h), n(
2574
+ setup(h, { expose: t, emit: e }) {
2575
+ const i = x(h, "modelValue"), s = h, n = e, o = L(), r = L(), a = L(!1), c = () => r.value ? s.options.strictMode ? r.value.isValidNumberPrecise() : r.value.isValidNumber() : null, y = () => {
2576
+ let l = c();
2577
+ a.value !== l && (a.value = l, n("changeValidity", !!l), n(
2571
2578
  "changeErrorCode",
2572
- h ? null : r.value.getValidationError()
2579
+ l ? null : r.value.getValidationError()
2573
2580
  ));
2574
- }, C = () => {
2575
- var h;
2576
- n("changeNumber", ((h = r.value) == null ? void 0 : h.getNumber()) ?? ""), d();
2577
2581
  }, p = () => {
2578
- var h;
2579
- n("changeCountry", ((h = r.value) == null ? void 0 : h.getSelectedCountryData().iso2) ?? ""), C(), d();
2582
+ var l;
2583
+ n("changeNumber", ((l = r.value) == null ? void 0 : l.getNumber()) ?? ""), y();
2584
+ }, C = () => {
2585
+ var l;
2586
+ n("changeCountry", ((l = r.value) == null ? void 0 : l.getSelectedCountryData().iso2) ?? ""), p(), y();
2580
2587
  };
2581
2588
  return E(() => {
2582
- o.value && (r.value = l(o.value, s.options), s.value && r.value.setNumber(s.value), s.disabled && r.value.setDisabled(s.disabled), a.value = c());
2589
+ o.value && (r.value = u(o.value, s.options), s.value && r.value.setNumber(s.value), s.disabled && r.value.setDisabled(s.disabled), a.value = c());
2583
2590
  }), M(
2584
2591
  () => s.disabled,
2585
- (h) => {
2586
- var m;
2587
- return (m = r.value) == null ? void 0 : m.setDisabled(h);
2592
+ (l) => {
2593
+ var d;
2594
+ return (d = r.value) == null ? void 0 : d.setDisabled(l);
2588
2595
  }
2589
2596
  ), F(() => {
2590
- var h;
2591
- return (h = r.value) == null ? void 0 : h.destroy();
2592
- }), t({ instance: r, input: o }), (h, m) => B((z(), V("input", R({
2597
+ var l;
2598
+ return (l = r.value) == null ? void 0 : l.destroy();
2599
+ }), t({ instance: r, input: o }), (l, d) => B((z(), V("input", R({
2593
2600
  ref_key: "input",
2594
2601
  ref: o,
2595
- "onUpdate:modelValue": m[0] || (m[0] = (b) => i.value = b),
2602
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => i.value = g),
2596
2603
  type: "tel",
2597
- onCountrychange: p,
2598
- onInput: C
2599
- }, u.inputProps), null, 16)), [
2604
+ onCountrychange: C,
2605
+ onInput: p
2606
+ }, h.inputProps), null, 16)), [
2600
2607
  [
2601
2608
  O,
2602
2609
  i.value,
@@ -2607,5 +2614,5 @@ const W = (u) => {
2607
2614
  }
2608
2615
  };
2609
2616
  export {
2610
- J as default
2617
+ Y as default
2611
2618
  };