@intl-tel-input/vue 29.1.1 → 29.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,11 @@ var d = [
12
12
  "ax",
13
13
  "358",
14
14
  1,
15
- ["18", "4"],
15
+ [
16
+ "18",
17
+ "4",
18
+ "50"
19
+ ],
16
20
  "0"
17
21
  ],
18
22
  [
@@ -331,7 +335,7 @@ var d = [
331
335
  "fi",
332
336
  "358",
333
337
  0,
334
- ["4"],
338
+ ["4", "50"],
335
339
  "0"
336
340
  ],
337
341
  [
@@ -405,7 +409,8 @@ var d = [
405
409
  "1481",
406
410
  "7781",
407
411
  "7839",
408
- "7911"
412
+ "79111",
413
+ "79117"
409
414
  ],
410
415
  "0"
411
416
  ],
@@ -505,7 +510,9 @@ var d = [
505
510
  [
506
511
  "1534",
507
512
  "7509",
508
- "7700",
513
+ "77003",
514
+ "77007",
515
+ "77008",
509
516
  "7797",
510
517
  "7829",
511
518
  "7937"
@@ -645,7 +652,12 @@ var d = [
645
652
  "yt",
646
653
  "262",
647
654
  1,
648
- ["269", "639"],
655
+ [
656
+ "2689",
657
+ "269",
658
+ "639",
659
+ "7093"
660
+ ],
649
661
  "0"
650
662
  ],
651
663
  ["mx", "52"],
@@ -1647,7 +1659,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
1647
1659
  isAscii() {
1648
1660
  return !this.#e || this.#e === "ascii";
1649
1661
  }
1650
- }, ye = typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("anchor-name: --x"), be = class e {
1662
+ }, ye = typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("anchor-name: --x"), be = class {
1651
1663
  #e;
1652
1664
  #t;
1653
1665
  #n;
@@ -1656,7 +1668,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
1656
1668
  #a;
1657
1669
  #o = null;
1658
1670
  #s;
1659
- #c;
1671
+ #c = !1;
1660
1672
  #l;
1661
1673
  #u;
1662
1674
  #d;
@@ -1671,11 +1683,12 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
1671
1683
  #b;
1672
1684
  #x;
1673
1685
  #S;
1674
- #C = null;
1686
+ #C;
1675
1687
  #w = null;
1676
- #T = /* @__PURE__ */ new Map();
1677
- #E = null;
1678
- #D;
1688
+ #T = null;
1689
+ #E = /* @__PURE__ */ new Map();
1690
+ #D = null;
1691
+ #O;
1679
1692
  telInputEl;
1680
1693
  hadInitialPlaceholder;
1681
1694
  constructor(e, t, n) {
@@ -1690,10 +1703,10 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
1690
1703
  }
1691
1704
  buildMarkup(e, t) {
1692
1705
  this.#i = e, this.#a = t, this.telInputEl.classList.add("iti__tel-input"), this.telInputEl.hasAttribute("type") || this.telInputEl.setAttribute("type", "tel"), this.telInputEl.hasAttribute("autocomplete") || this.telInputEl.setAttribute("autocomplete", "tel"), this.telInputEl.hasAttribute("inputmode") || this.telInputEl.setAttribute("inputmode", "tel");
1693
- let n = this.#O();
1694
- this.#k(n), n.appendChild(this.telInputEl), this.#N(), this.#L(), this.#P(n), this.ensureDropdownWidthSet();
1706
+ let n = this.#k();
1707
+ this.#A(n), n.appendChild(this.telInputEl), this.#P(), this.#R(), this.#F(n), this.ensureDropdownWidthSet();
1695
1708
  }
1696
- #O() {
1709
+ #k() {
1697
1710
  let { countrySelectorMode: e, showFlags: t, containerClass: n } = this.#e, r = q("div", { class: K({
1698
1711
  iti: !0,
1699
1712
  "iti--input-container": !0,
@@ -1704,63 +1717,59 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
1704
1717
  }) });
1705
1718
  return this.#n && r.setAttribute("dir", "ltr"), this.telInputEl.before(r), r;
1706
1719
  }
1707
- #k(e) {
1720
+ #A(e) {
1708
1721
  let { countrySelectorMode: t, separateDialCode: n, showFlags: r } = this.#e, i = t !== F.OFF;
1709
1722
  if (!i && !r && !n) return;
1710
- this.#c = q("div", { class: `iti__country-container ${_.V_HIDE}` }, e), i ? (this.#l = q("button", {
1723
+ this.#l = q("div", { class: `iti__country-container ${_.V_HIDE}` }, e), i ? (this.#u = q("button", {
1711
1724
  type: "button",
1712
1725
  class: "iti__selected-country",
1713
1726
  [L.EXPANDED]: "false",
1714
1727
  [L.LABEL]: this.#e.uiTranslations.noCountrySelected,
1715
1728
  [L.HASPOPUP]: "dialog",
1716
1729
  [L.CONTROLS]: `iti-${this.#t}__country-selector`
1717
- }, this.#c), this.telInputEl.disabled && this.#l.setAttribute("disabled", "true")) : this.#l = q("div", { class: "iti__selected-country" }, this.#c);
1718
- let a = q("div", { class: "iti__selected-country-primary" }, this.#l);
1719
- this.#u = q("div", { class: _.FLAG }, a), i && (this.#f = q("div", {
1730
+ }, this.#l), this.telInputEl.disabled && this.#u.setAttribute("disabled", "true")) : this.#u = q("div", { class: "iti__selected-country" }, this.#l);
1731
+ let a = q("div", { class: "iti__selected-country-primary" }, this.#u);
1732
+ this.#d = q("div", { class: _.FLAG }, a), i && (this.#p = q("div", {
1720
1733
  class: "iti__arrow",
1721
1734
  [L.HIDDEN]: "true"
1722
- }, a)), n && (this.#d = q("div", { class: "iti__selected-dial-code" }, this.#l)), i && this.#A();
1735
+ }, a)), n && (this.#f = q("div", { class: "iti__selected-dial-code" }, this.#u)), i && this.#j();
1723
1736
  }
1724
1737
  ensureDropdownWidthSet() {
1725
1738
  let { matchDropdownWidth: e, countrySelectorMode: t } = this.#e;
1726
- if (t === F.OFF || !e || this.#p.style.width) return;
1739
+ if (t === F.OFF || !e || this.#m.style.width) return;
1727
1740
  let n = this.telInputEl.offsetWidth;
1728
- n > 0 && (this.#p.style.width = `${n}px`);
1741
+ n > 0 && (this.#m.style.width = `${n}px`);
1729
1742
  }
1730
- #A() {
1731
- let { matchDropdownWidth: e, countrySelectorMode: t, countrySearch: n, uiTranslations: r, containerClass: i } = this.#e, a = t === F.FULLSCREEN, o = this.#j(), s = e ? "" : "iti--flexible-dropdown-width";
1732
- if (this.#p = q("div", {
1743
+ #j() {
1744
+ let { matchDropdownWidth: e, countrySelectorMode: t, countrySearch: n, uiTranslations: r, containerClass: i } = this.#e, a = t === F.FULLSCREEN, o = this.#M(), s = e ? "" : "iti--flexible-dropdown-width";
1745
+ this.#m = q("div", {
1733
1746
  id: `iti-${this.#t}__country-selector`,
1734
1747
  class: `iti__country-selector ${_.HIDE} ${s}`,
1735
1748
  role: "dialog",
1736
1749
  [L.MODAL]: "true"
1737
- }), this.#n && this.#p.setAttribute("dir", "rtl"), n && this.#M(), this.#_ = q("ul", {
1750
+ }), this.#n && this.#m.setAttribute("dir", "rtl"), n && this.#N(), this.#v = q("ul", {
1738
1751
  class: "iti__country-list",
1739
1752
  id: `iti-${this.#t}__country-listbox`,
1740
1753
  role: "listbox",
1741
1754
  [L.LABEL]: r.countryListAriaLabel
1742
- }, this.#p), this.#F(), n && this.#V(), !a) {
1743
- let { height: t, width: r } = this.#B();
1744
- this.#s = t, n && (this.#p.style.height = `${t}px`, !e && r > 0 && (this.#p.style.width = `${r}px`));
1745
- }
1746
- o ? (this.#S = q("div", { class: K({
1755
+ }, this.#m), this.#I(), n && this.#H(), o ? (this.#C = q("div", { class: K({
1747
1756
  iti: !0,
1748
1757
  "iti--detached-country-selector": !0,
1749
1758
  "iti--fullscreen-popup": a,
1750
1759
  "iti--inline-country-selector": !a,
1751
1760
  [i]: !!i
1752
- }) }), this.#S.appendChild(this.#p), a || this.#oe()) : this.#c.appendChild(this.#p);
1761
+ }) }), this.#C.appendChild(this.#m)) : this.#l.appendChild(this.#m);
1753
1762
  }
1754
- #j() {
1763
+ #M() {
1755
1764
  let { countrySelectorMode: e, dropdownParent: t } = this.#e;
1756
1765
  return e === F.FULLSCREEN ? document.body : e === F.DROPDOWN ? t : null;
1757
1766
  }
1758
- #M() {
1759
- let { uiTranslations: e, searchInputClass: t } = this.#e, n = q("div", { class: "iti__search-input-wrapper" }, this.#p);
1760
- this.#m = q("span", {
1767
+ #N() {
1768
+ let { uiTranslations: e, searchInputClass: t } = this.#e, n = q("div", { class: "iti__search-input-wrapper" }, this.#m);
1769
+ this.#h = q("span", {
1761
1770
  class: "iti__search-icon",
1762
1771
  [L.HIDDEN]: "true"
1763
- }, n), this.#m.appendChild(de()), this.#h = q("input", {
1772
+ }, n), this.#h.appendChild(de()), this.#g = q("input", {
1764
1773
  id: `iti-${this.#t}__search-input`,
1765
1774
  type: "search",
1766
1775
  class: `iti__search-input ${t}`,
@@ -1771,39 +1780,39 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
1771
1780
  [L.CONTROLS]: `iti-${this.#t}__country-listbox`,
1772
1781
  [L.AUTOCOMPLETE]: "list",
1773
1782
  autocomplete: "off"
1774
- }, n), this.#g = q("button", {
1783
+ }, n), this.#_ = q("button", {
1775
1784
  type: "button",
1776
1785
  class: `iti__search-clear ${_.HIDE}`,
1777
1786
  [L.LABEL]: e.clearSearchAriaLabel,
1778
1787
  tabindex: "-1"
1779
- }, n), this.#g.appendChild(fe(this.#t)), this.#x = q("span", { class: "iti__a11y-text" }, this.#p), this.#b = q("div", {
1788
+ }, n), this.#_.appendChild(fe(this.#t)), this.#S = q("span", { class: "iti__a11y-text" }, this.#m), this.#x = q("div", {
1780
1789
  class: `iti__no-results ${_.HIDE}`,
1781
1790
  [L.HIDDEN]: "true"
1782
- }, this.#p), this.#b.textContent = e.searchEmptyState ?? null;
1791
+ }, this.#m), this.#x.textContent = e.searchEmptyState ?? null;
1783
1792
  }
1784
- #N() {
1785
- this.#c && (this.#I(), this.#c.classList.remove(_.V_HIDE));
1793
+ #P() {
1794
+ this.#l && (this.#L(), this.#l.classList.remove(_.V_HIDE));
1786
1795
  }
1787
- #P(e) {
1796
+ #F(e) {
1788
1797
  let { hiddenInputs: t } = this.#e;
1789
1798
  if (!t) return;
1790
1799
  let n = t(this.telInputEl.getAttribute("name") || "");
1791
1800
  if (n.phone) {
1792
1801
  let t = this.telInputEl.form?.querySelector(`input[name="${n.phone}"]`);
1793
- t ? this.#v = t : (this.#v = q("input", {
1802
+ t ? this.#y = t : (this.#y = q("input", {
1794
1803
  type: "hidden",
1795
1804
  name: n.phone
1796
- }), e.appendChild(this.#v));
1805
+ }), e.appendChild(this.#y));
1797
1806
  }
1798
1807
  if (n.country) {
1799
1808
  let t = this.telInputEl.form?.querySelector(`input[name="${n.country}"]`);
1800
- t ? this.#y = t : (this.#y = q("input", {
1809
+ t ? this.#b = t : (this.#b = q("input", {
1801
1810
  type: "hidden",
1802
1811
  name: n.country
1803
- }), e.appendChild(this.#y));
1812
+ }), e.appendChild(this.#b));
1804
1813
  }
1805
1814
  }
1806
- #F() {
1815
+ #I() {
1807
1816
  let e = document.createDocumentFragment();
1808
1817
  for (let t = 0; t < this.#i.length; t++) {
1809
1818
  let n = this.#i[t], r = K({ [_.COUNTRY_ITEM]: !0 }), i = q("li", {
@@ -1813,110 +1822,106 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
1813
1822
  role: "option",
1814
1823
  [L.SELECTED]: "false"
1815
1824
  });
1816
- i.dataset[I.DIAL_CODE] = n.dialCode, i.dataset[I.ISO2] = n.iso2, this.#T.set(n.iso2, i), this.#e.showFlags && q("div", { class: `${_.FLAG} iti__${n.iso2}` }, i);
1825
+ i.dataset[I.DIAL_CODE] = n.dialCode, i.dataset[I.ISO2] = n.iso2, this.#E.set(n.iso2, i), this.#e.showFlags && q("div", { class: `${_.FLAG} iti__${n.iso2}` }, i);
1817
1826
  let a = q("span", { class: "iti__country-name" }, i);
1818
1827
  a.textContent = `${n.name} `;
1819
1828
  let o = q("span", { class: "iti__dial-code" }, a);
1820
1829
  this.#n && o.setAttribute("dir", "ltr"), o.textContent = `(+${n.dialCode})`, e.appendChild(i);
1821
1830
  }
1822
- this.#_.appendChild(e);
1831
+ this.#v.appendChild(e);
1823
1832
  }
1824
- #I() {
1825
- if (this.#l) {
1826
- let e = this.#e.separateDialCode ? S.FALLBACK_SELECTED_COUNTRY_WITH_DIAL_WIDTH : S.FALLBACK_SELECTED_COUNTRY_NO_DIAL_WIDTH, t = (this.#l.offsetWidth || this.#z() || e) + S.INPUT_PADDING_EXTRA_LEFT;
1833
+ #L() {
1834
+ if (this.#u) {
1835
+ let e = this.#e.separateDialCode ? S.FALLBACK_SELECTED_COUNTRY_WITH_DIAL_WIDTH : S.FALLBACK_SELECTED_COUNTRY_NO_DIAL_WIDTH, t = (this.#u.offsetWidth || this.#z() || e) + S.INPUT_PADDING_EXTRA_LEFT;
1827
1836
  this.telInputEl.style.paddingLeft = `${t}px`;
1828
1837
  }
1829
1838
  }
1830
- #L() {
1831
- !this.#l || typeof ResizeObserver > "u" || (this.#D = new ResizeObserver(() => {
1832
- this.#l?.offsetWidth && this.#I();
1833
- }), this.#D.observe(this.#l));
1834
- }
1835
- static #R() {
1836
- let e;
1837
- try {
1838
- e = window.top.document.body;
1839
- } catch {
1840
- e = document.body;
1841
- }
1842
- return e;
1839
+ #R() {
1840
+ !this.#u || typeof ResizeObserver > "u" || (this.#O = new ResizeObserver(() => {
1841
+ this.#u?.offsetWidth && this.#L();
1842
+ }), this.#O.observe(this.#u));
1843
1843
  }
1844
1844
  #z() {
1845
1845
  if (!this.telInputEl.parentNode) return 0;
1846
- let t = e.#R(), n = this.telInputEl.parentNode.cloneNode(!1);
1847
- n.style.visibility = "hidden", t.appendChild(n);
1848
- let r = this.#c.cloneNode();
1846
+ let e = document.body, t = this.telInputEl.parentNode.cloneNode(!1);
1847
+ t.style.visibility = "hidden", e.appendChild(t);
1848
+ let n = this.#l.cloneNode();
1849
+ t.appendChild(n);
1850
+ let r = this.#u.cloneNode(!0);
1849
1851
  n.appendChild(r);
1850
- let i = this.#l.cloneNode(!0);
1851
- r.appendChild(i);
1852
- let a = i.offsetWidth;
1853
- return t.removeChild(n), a;
1852
+ let i = r.offsetWidth;
1853
+ return e.removeChild(t), i;
1854
1854
  }
1855
1855
  #B() {
1856
- let t = e.#R();
1857
- this.#p.classList.remove(_.HIDE);
1858
- let n = q("div", { class: "iti iti--inline-country-selector" });
1859
- n.appendChild(this.#p), n.style.visibility = "hidden", t.appendChild(n);
1860
- let r = this.#p.offsetHeight, i = this.#p.offsetWidth;
1861
- return t.removeChild(n), n.style.visibility = "", this.#p.classList.add(_.HIDE), {
1862
- height: r > 0 ? r : S.FALLBACK_DROPDOWN_HEIGHT,
1863
- width: i
1864
- };
1856
+ if (this.#s !== void 0) return;
1857
+ let { countrySearch: e, matchDropdownWidth: t } = this.#e, { height: n, width: r } = this.#V();
1858
+ this.#s = n, e && (this.#m.style.height = `${n}px`, !t && r > 0 && (this.#m.style.width = `${r}px`));
1865
1859
  }
1866
1860
  #V() {
1867
- let { uiTranslations: e } = this.#e, t = this.#_.childElementCount;
1868
- this.#x.textContent = e.searchSummaryAria(t);
1861
+ let e = document.body, t = this.#m, n = t.parentNode, r = t.nextSibling;
1862
+ t.classList.remove(_.HIDE);
1863
+ let i = q("div", { class: "iti iti--inline-country-selector" });
1864
+ i.appendChild(t), i.style.visibility = "hidden", e.appendChild(i);
1865
+ let a = t.offsetHeight, o = t.offsetWidth;
1866
+ return e.removeChild(i), t.classList.add(_.HIDE), n && n.insertBefore(t, r), {
1867
+ height: a > 0 ? a : S.FALLBACK_DROPDOWN_HEIGHT,
1868
+ width: o
1869
+ };
1869
1870
  }
1870
- #H(e) {
1871
+ #H() {
1872
+ let { uiTranslations: e } = this.#e, t = this.#v.childElementCount;
1873
+ this.#S.textContent = e.searchSummaryAria(t);
1874
+ }
1875
+ #U(e) {
1871
1876
  let t;
1872
1877
  if (e === "") t = this.#i;
1873
1878
  else {
1874
1879
  let n = ve.toAscii(e);
1875
1880
  t = ge(this.#i, this.#a, n);
1876
1881
  }
1877
- this.#re(t);
1882
+ this.#ie(t);
1878
1883
  }
1879
1884
  prefillSearchWithPlus() {
1880
- this.#h.value = "+", this.#h.focus(), this.#H("");
1881
- }
1882
- #U() {
1883
- let e = this.#h.value.trim();
1884
- this.#H(e), this.#h.value ? this.#g.classList.remove(_.HIDE) : this.#g.classList.add(_.HIDE);
1885
+ this.#g.value = "+", this.#g.focus(), this.#U("");
1885
1886
  }
1886
1887
  #W() {
1888
+ let e = this.#g.value.trim();
1889
+ this.#U(e), this.#g.value ? this.#_.classList.remove(_.HIDE) : this.#_.classList.add(_.HIDE);
1890
+ }
1891
+ #G() {
1887
1892
  this.#o && clearTimeout(this.#o), this.#o = setTimeout(() => {
1888
- this.#U(), this.#o = null;
1893
+ this.#W(), this.#o = null;
1889
1894
  }, x.SEARCH_DEBOUNCE_MS);
1890
1895
  }
1891
- #G() {
1892
- this.#h.value = "", this.#h.focus(), this.#U();
1896
+ #K() {
1897
+ this.#g.value = "", this.#g.focus(), this.#W();
1893
1898
  }
1894
- #K(e) {
1895
- let t = this.#_, n = t.getBoundingClientRect(), r = e.getBoundingClientRect(), i = r.top - n.top + t.scrollTop;
1899
+ #q(e) {
1900
+ let t = this.#v, n = t.getBoundingClientRect(), r = e.getBoundingClientRect(), i = r.top - n.top + t.scrollTop;
1896
1901
  r.top < n.top ? t.scrollTop = i : r.bottom > n.bottom && (t.scrollTop = i - n.height + r.height);
1897
1902
  }
1898
- #q(e, t = !0) {
1899
- if (this.#w?.classList.remove(_.HIGHLIGHT), e) {
1903
+ #J(e, t = !0) {
1904
+ if (this.#T?.classList.remove(_.HIGHLIGHT), e) {
1900
1905
  if (e.classList.add(_.HIGHLIGHT), this.#e.countrySearch) {
1901
1906
  let t = e.getAttribute("id") || "";
1902
- this.#h.setAttribute(L.ACTIVE_DESCENDANT, t);
1907
+ this.#g.setAttribute(L.ACTIVE_DESCENDANT, t);
1903
1908
  }
1904
- t && this.#K(e), this.#w = e;
1905
- } else this.#w = null;
1909
+ t && this.#q(e), this.#T = e;
1910
+ } else this.#T = null;
1906
1911
  }
1907
1912
  bindHiddenInputSubmitListener(e, t, n) {
1908
1913
  let r = this.telInputEl.form;
1909
- !r || !this.#v && !this.#y || r.addEventListener("submit", () => {
1910
- this.#v && (this.#v.value = t()), this.#y && (this.#y.value = n());
1914
+ !r || !this.#y && !this.#b || r.addEventListener("submit", () => {
1915
+ this.#y && (this.#y.value = t()), this.#b && (this.#b.value = n());
1911
1916
  }, { signal: e });
1912
1917
  }
1913
1918
  bindAllInitialCountrySelectorListeners(e, t, n) {
1914
1919
  let r = this.telInputEl.closest("label");
1915
1920
  r && r.addEventListener("click", (e) => {
1916
1921
  this.isCountrySelectorOpen() ? e.preventDefault() : this.telInputEl.focus();
1917
- }, { signal: e }), this.#l.addEventListener("click", () => {
1922
+ }, { signal: e }), this.#u.addEventListener("click", () => {
1918
1923
  !this.isCountrySelectorOpen() && !this.telInputEl.disabled && !this.telInputEl.readOnly && t();
1919
- }, { signal: e }), this.#c.addEventListener("keydown", (e) => {
1924
+ }, { signal: e }), this.#l.addEventListener("keydown", (e) => {
1920
1925
  let r = [
1921
1926
  v.ARROW_UP,
1922
1927
  v.ARROW_DOWN,
@@ -1928,126 +1933,129 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
1928
1933
  }
1929
1934
  openCountrySelector(e, t) {
1930
1935
  let { countrySearch: n, dropdownAlwaysOpen: r } = this.#e;
1931
- if (this.#E = new AbortController(), this.ensureDropdownWidthSet(), this.#S) this.#ae();
1936
+ if (this.#D = new AbortController(), this.#e.countrySelectorMode !== F.FULLSCREEN && this.#B(), this.ensureDropdownWidthSet(), this.#C) this.#oe();
1932
1937
  else {
1933
- let e = this.#ie(), t = this.telInputEl.offsetHeight + S.DROPDOWN_MARGIN;
1934
- e ? this.#p.style.top = `${t}px` : this.#p.style.bottom = `${t}px`;
1938
+ let e = this.#ae(), t = this.telInputEl.offsetHeight + S.DROPDOWN_MARGIN;
1939
+ e ? this.#m.style.top = `${t}px` : this.#m.style.bottom = `${t}px`;
1935
1940
  }
1936
- this.#p.classList.remove(_.HIDE), this.#l.setAttribute(L.EXPANDED, "true");
1937
- let i = this.#C ?? this.#_.firstElementChild;
1938
- i && this.#q(i), n && !r && this.#h.focus(), this.#e.countrySelectorMode === F.FULLSCREEN && this.#S && window.visualViewport && window.visualViewport.addEventListener("resize", () => {
1939
- this.#se(), this.#w && this.#K(this.#w);
1940
- }, { signal: this.#E.signal }), this.#f.classList.add(_.ARROW_UP), this.#J(e, t);
1941
- }
1942
- #J(e, t) {
1943
- let n = this.#E.signal;
1944
- this.#Y(n), this.#X(n, e), this.#e.dropdownAlwaysOpen || this.#Z(n, t), this.#Q(n, e, t), this.#e.countrySearch && this.#$(n), this.#e.countrySelectorMode === F.DROPDOWN && this.#e.dropdownParent && !ye && document.addEventListener("scroll", t, {
1941
+ this.#m.classList.remove(_.HIDE), this.#u.setAttribute(L.EXPANDED, "true");
1942
+ let i = this.#w ?? this.#v.firstElementChild;
1943
+ i && this.#J(i), n && !r && this.#g.focus(), this.#e.countrySelectorMode === F.FULLSCREEN && this.#C && window.visualViewport && window.visualViewport.addEventListener("resize", () => {
1944
+ this.#ce(), this.#T && this.#q(this.#T);
1945
+ }, { signal: this.#D.signal }), this.#p.classList.add(_.ARROW_UP), this.#Y(e, t);
1946
+ }
1947
+ #Y(e, t) {
1948
+ let n = this.#D.signal;
1949
+ this.#X(n), this.#Z(n, e), this.#e.dropdownAlwaysOpen || this.#Q(n, t), this.#$(n, e, t), this.#e.countrySearch && this.#ee(n), this.#e.countrySelectorMode === F.DROPDOWN && this.#e.dropdownParent && !ye && document.addEventListener("scroll", t, {
1945
1950
  signal: n,
1946
1951
  capture: !0,
1947
1952
  passive: !0
1948
1953
  });
1949
1954
  }
1950
- #Y(e) {
1951
- this.#_.addEventListener("mouseover", (e) => {
1955
+ #X(e) {
1956
+ this.#v.addEventListener("mouseover", (e) => {
1952
1957
  let t = e.target?.closest(`.${_.COUNTRY_ITEM}`);
1953
- t && this.#q(t, !1);
1958
+ t && this.#J(t, !1);
1954
1959
  }, { signal: e });
1955
1960
  }
1956
- #X(e, t) {
1957
- this.#_.addEventListener("click", (e) => {
1961
+ #Z(e, t) {
1962
+ this.#v.addEventListener("click", (e) => {
1958
1963
  let n = e.target?.closest(`.${_.COUNTRY_ITEM}`);
1959
1964
  n && t(n);
1960
1965
  }, { signal: e });
1961
1966
  }
1962
- #Z(e, t) {
1967
+ #Q(e, t) {
1963
1968
  setTimeout(() => {
1964
1969
  document.documentElement.addEventListener("click", (e) => {
1965
- this.#p.contains(e.target) || t();
1970
+ this.#m.contains(e.target) || t();
1966
1971
  }, { signal: e });
1967
1972
  }, 0);
1968
1973
  }
1969
- #Q(e, t, n) {
1974
+ #$(e, t, n) {
1970
1975
  let r = "", i = null, a = (e) => {
1971
1976
  [
1972
1977
  v.ARROW_UP,
1973
1978
  v.ARROW_DOWN,
1974
1979
  v.ENTER,
1975
1980
  v.ESC
1976
- ].includes(e.key) && (e.preventDefault(), e.stopPropagation(), e.key === v.ARROW_UP || e.key === v.ARROW_DOWN ? this.#te(e.key) : e.key === v.ENTER && !e.isComposing ? t(this.#w) : e.key === v.ESC && (n(), this.#l.focus())), !this.#e.countrySearch && b.HIDDEN_SEARCH_CHAR.test(e.key) && (e.stopPropagation(), i && clearTimeout(i), r += e.key.toLowerCase(), this.#ee(r), i = setTimeout(() => {
1981
+ ].includes(e.key) && (e.preventDefault(), e.stopPropagation(), e.key === v.ARROW_UP || e.key === v.ARROW_DOWN ? this.#ne(e.key) : e.key === v.ENTER && !e.isComposing ? t(this.#T) : e.key === v.ESC && (n(), this.#u.focus())), !this.#e.countrySearch && b.HIDDEN_SEARCH_CHAR.test(e.key) && (e.stopPropagation(), i && clearTimeout(i), r += e.key.toLowerCase(), this.#te(r), i = setTimeout(() => {
1977
1982
  r = "";
1978
1983
  }, x.HIDDEN_SEARCH_RESET_MS));
1979
1984
  };
1980
- this.#l?.addEventListener("keydown", a, { signal: e }), this.#p?.addEventListener("keydown", a, { signal: e });
1981
- }
1982
- #$(e) {
1983
- this.#h.addEventListener("input", () => this.#W(), { signal: e }), this.#g.addEventListener("click", () => this.#G(), { signal: e });
1985
+ this.#u?.addEventListener("keydown", a, { signal: e }), this.#m?.addEventListener("keydown", a, { signal: e });
1984
1986
  }
1985
1987
  #ee(e) {
1988
+ this.#g.addEventListener("input", () => this.#G(), { signal: e }), this.#_.addEventListener("click", () => this.#K(), { signal: e });
1989
+ }
1990
+ #te(e) {
1986
1991
  let t = _e(this.#i, this.#a, e);
1987
1992
  if (t) {
1988
- let e = this.#T.get(t.iso2);
1989
- this.#q(e);
1993
+ let e = this.#E.get(t.iso2);
1994
+ this.#J(e);
1990
1995
  }
1991
1996
  }
1992
- #te(e) {
1993
- let t = e === v.ARROW_UP ? this.#w?.previousElementSibling : this.#w?.nextElementSibling;
1994
- !t && this.#_.childElementCount > 1 && (t = e === v.ARROW_UP ? this.#_.lastElementChild : this.#_.firstElementChild), t && this.#q(t);
1995
- }
1996
1997
  #ne(e) {
1997
- if (this.#C && this.#C.dataset[I.ISO2] !== e && (this.#C.setAttribute(L.SELECTED, "false"), this.#C.querySelector(".iti__country-check")?.remove(), this.#C = null), e && !this.#C) {
1998
- let t = this.#_.querySelector(`[data-iso2="${e}"]`);
1998
+ let t = e === v.ARROW_UP ? this.#T?.previousElementSibling : this.#T?.nextElementSibling;
1999
+ !t && this.#v.childElementCount > 1 && (t = e === v.ARROW_UP ? this.#v.lastElementChild : this.#v.firstElementChild), t && this.#J(t);
2000
+ }
2001
+ #re(e) {
2002
+ if (this.#w && this.#w.dataset[I.ISO2] !== e && (this.#w.setAttribute(L.SELECTED, "false"), this.#w.querySelector(".iti__country-check")?.remove(), this.#w = null), e && !this.#w) {
2003
+ let t = this.#v.querySelector(`[data-iso2="${e}"]`);
1999
2004
  t && (t.setAttribute(L.SELECTED, "true"), q("span", {
2000
2005
  class: "iti__country-check",
2001
2006
  [L.HIDDEN]: "true"
2002
- }, t).appendChild(pe()), this.#C = t, this.#e.dropdownAlwaysOpen && this.#q(t));
2007
+ }, t).appendChild(pe()), this.#w = t, this.#e.dropdownAlwaysOpen && this.#J(t));
2003
2008
  }
2004
2009
  }
2005
- #re(e) {
2006
- this.#_.replaceChildren();
2010
+ #ie(e) {
2011
+ this.#v.replaceChildren();
2007
2012
  let t = !0;
2008
2013
  for (let n of e) {
2009
- let e = this.#T.get(n.iso2);
2010
- e && (this.#_.appendChild(e), t &&= (this.#q(e, !1), !1));
2014
+ let e = this.#E.get(n.iso2);
2015
+ e && (this.#v.appendChild(e), t &&= (this.#J(e, !1), !1));
2011
2016
  }
2012
- t ? (this.#q(null), this.#b && this.#b.classList.remove(_.HIDE)) : this.#b && this.#b.classList.add(_.HIDE), this.#_.scrollTop = 0, this.#V();
2017
+ t ? (this.#J(null), this.#x && this.#x.classList.remove(_.HIDE)) : this.#x && this.#x.classList.add(_.HIDE), this.#v.scrollTop = 0, this.#H();
2013
2018
  }
2014
2019
  closeCountrySelector() {
2015
2020
  let { countrySearch: e } = this.#e;
2016
- this.#E.abort(), this.#E = null, this.#p.classList.add(_.HIDE), this.#l.setAttribute(L.EXPANDED, "false"), e && (this.#h.removeAttribute(L.ACTIVE_DESCENDANT), this.#h.value = "", this.#U(), this.#w &&= (this.#w.classList.remove(_.HIGHLIGHT), null)), this.#f.classList.remove(_.ARROW_UP), this.#S ? (this.#S.remove(), this.#S.style.top = "", this.#S.style.bottom = "", this.#S.style.paddingLeft = "", this.#S.style.paddingRight = "") : (this.#p.style.top = "", this.#p.style.bottom = "");
2021
+ this.#D.abort(), this.#D = null, this.#m.classList.add(_.HIDE), this.#u.setAttribute(L.EXPANDED, "false"), e && (this.#g.removeAttribute(L.ACTIVE_DESCENDANT), this.#g.value = "", this.#W(), this.#T &&= (this.#T.classList.remove(_.HIGHLIGHT), null)), this.#p.classList.remove(_.ARROW_UP), this.#C ? (this.#C.remove(), this.#C.style.top = "", this.#C.style.bottom = "", this.#C.style.paddingLeft = "", this.#C.style.paddingRight = "") : (this.#m.style.top = "", this.#m.style.bottom = "");
2017
2022
  }
2018
- #ie() {
2023
+ #ae() {
2019
2024
  if (this.#e.dropdownAlwaysOpen) return !0;
2020
2025
  let e = this.telInputEl.getBoundingClientRect(), t = e.top, n = window.innerHeight - e.bottom;
2021
2026
  return n >= this.#s || n >= t;
2022
2027
  }
2023
- #ae() {
2024
- let e = this.#e.countrySelectorMode === F.FULLSCREEN, t = this.#j();
2028
+ #oe() {
2029
+ let e = this.#e.countrySelectorMode === F.FULLSCREEN, t = this.#M();
2025
2030
  if (e) {
2026
2031
  if (window.innerWidth >= S.NARROW_VIEWPORT_WIDTH) {
2027
2032
  let e = this.telInputEl.getBoundingClientRect();
2028
- this.#S.style.paddingLeft = `${e.left}px`, this.#S.style.paddingRight = `${window.innerWidth - e.right}px`;
2033
+ this.#C.style.paddingLeft = `${e.left}px`, this.#C.style.paddingRight = `${window.innerWidth - e.right}px`;
2029
2034
  }
2030
- } else if (!ye) {
2035
+ } else this.#se();
2036
+ if (!e && !ye) {
2031
2037
  let e = this.telInputEl.getBoundingClientRect();
2032
- this.#S.style.left = `${e.left}px`, this.#ie() ? this.#S.style.top = `${e.bottom + S.DROPDOWN_MARGIN}px` : (this.#S.style.top = "unset", this.#S.style.bottom = `${window.innerHeight - e.top + S.DROPDOWN_MARGIN}px`);
2038
+ this.#C.style.left = `${e.left}px`, this.#ae() ? this.#C.style.top = `${e.bottom + S.DROPDOWN_MARGIN}px` : (this.#C.style.top = "unset", this.#C.style.bottom = `${window.innerHeight - e.top + S.DROPDOWN_MARGIN}px`);
2033
2039
  }
2034
- t.appendChild(this.#S);
2040
+ t.appendChild(this.#C);
2035
2041
  }
2036
- #oe() {
2042
+ #se() {
2043
+ if (this.#c) return;
2044
+ this.#c = !0;
2037
2045
  let e = `--iti-anchor-${this.#t}`, t = getComputedStyle(this.telInputEl).anchorName;
2038
- this.telInputEl.style.anchorName = t && t !== "none" ? `${t}, ${e}` : e, this.#S.style.positionAnchor = e;
2046
+ this.telInputEl.style.anchorName = t && t !== "none" ? `${t}, ${e}` : e, this.#C.style.positionAnchor = e;
2039
2047
  }
2040
- #se() {
2048
+ #ce() {
2041
2049
  let e = window.visualViewport;
2042
- if (!e || !this.#S) return;
2050
+ if (!e || !this.#C) return;
2043
2051
  let t = window.innerHeight - e.height;
2044
- this.#S.style.bottom = `${t}px`;
2052
+ this.#C.style.bottom = `${t}px`;
2045
2053
  }
2046
2054
  isCountrySelectorOpen() {
2047
- return !this.#p.classList.contains(_.HIDE);
2055
+ return !this.#m.classList.contains(_.HIDE);
2048
2056
  }
2049
2057
  setLoading(e) {
2050
- this.#u.classList.toggle(_.LOADING, e);
2058
+ this.#d.classList.toggle(_.LOADING, e);
2051
2059
  }
2052
2060
  playStrictRejectAnimation() {
2053
2061
  if (!this.#e.strictRejectAnimation) return;
@@ -2055,29 +2063,29 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
2055
2063
  e && (e.classList.remove(_.STRICT_REJECT_ANIMATION), e.offsetWidth, e.classList.add(_.STRICT_REJECT_ANIMATION), e.addEventListener("animationend", () => e.classList.remove(_.STRICT_REJECT_ANIMATION), { once: !0 }));
2056
2064
  }
2057
2065
  isLoading() {
2058
- return this.#u.classList.contains(_.LOADING);
2066
+ return this.#d.classList.contains(_.LOADING);
2059
2067
  }
2060
2068
  setDisabled(e) {
2061
- this.telInputEl.disabled = e, this.#l && (e ? this.#l.setAttribute("disabled", "true") : this.#l.removeAttribute("disabled"));
2069
+ this.telInputEl.disabled = e, this.#u && (e ? this.#u.setAttribute("disabled", "true") : this.#u.removeAttribute("disabled"));
2062
2070
  }
2063
2071
  setReadonly(e) {
2064
- this.telInputEl.readOnly = e, this.#l && (e ? this.#l.setAttribute("disabled", "true") : this.#l.removeAttribute("disabled"));
2072
+ this.telInputEl.readOnly = e, this.#u && (e ? this.#u.setAttribute("disabled", "true") : this.#u.removeAttribute("disabled"));
2065
2073
  }
2066
2074
  setSelectedCountry(e) {
2067
2075
  let { countrySelectorMode: t, showFlags: n, separateDialCode: r, uiTranslations: i } = this.#e, a = e?.name, o = e?.dialCode, s = e?.iso2 ?? "";
2068
- if (t !== F.OFF && this.#ne(s), this.#l) {
2076
+ if (t !== F.OFF && this.#re(s), this.#u) {
2069
2077
  let e = s && n ? `${_.FLAG} iti__${s}` : `${_.FLAG} ${_.GLOBE}`, t, r, c = null;
2070
- s ? (r = a, t = i.selectedCountryAriaLabel.replace("${countryName}", a).replace("${dialCode}", `+${o}`), n || (c = me())) : (r = i.noCountrySelected, t = i.noCountrySelected, c = me()), this.#u.className = e, this.#l.setAttribute("title", r), this.#l.setAttribute(L.LABEL, t), c ? this.#u.replaceChildren(c) : this.#u.replaceChildren();
2078
+ s ? (r = a, t = i.selectedCountryAriaLabel.replace("${countryName}", a).replace("${dialCode}", `+${o}`), n || (c = me())) : (r = i.noCountrySelected, t = i.noCountrySelected, c = me()), this.#d.className = e, this.#u.setAttribute("title", r), this.#u.setAttribute(L.LABEL, t), c ? this.#d.replaceChildren(c) : this.#d.replaceChildren();
2071
2079
  }
2072
2080
  if (r) {
2073
2081
  let e = o ? `+${o}` : "";
2074
- this.#d.textContent = e, this.#I();
2082
+ this.#f.textContent = e, this.#L();
2075
2083
  }
2076
2084
  }
2077
2085
  destroy() {
2078
- this.telInputEl.iti = void 0, delete this.telInputEl.dataset[I.INSTANCE_ID], this.#D?.disconnect(), this.telInputEl.style.paddingLeft = this.#r;
2086
+ this.telInputEl.iti = void 0, delete this.telInputEl.dataset[I.INSTANCE_ID], this.#O?.disconnect(), this.telInputEl.style.paddingLeft = this.#r;
2079
2087
  let e = this.telInputEl.parentNode;
2080
- e && (e.before(this.telInputEl), e.remove()), this.#T.clear();
2088
+ e && (e.before(this.telInputEl), e.remove()), this.#E.clear();
2081
2089
  }
2082
2090
  }, xe = (e) => {
2083
2091
  let { onlyCountries: t, excludeCountries: n } = e;
@@ -2682,7 +2690,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
2682
2690
  },
2683
2691
  startedLoadingUtils: !1,
2684
2692
  startedLoadingAutoCountry: !1,
2685
- version: "29.1.1",
2693
+ version: "29.1.3",
2686
2694
  NUMBER_FORMAT: M,
2687
2695
  NUMBER_TYPE: N,
2688
2696
  VALIDATION_ERROR: P,
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./IntlTelInput-D_-tAfWX.js";
1
+ import { n as e, t } from "./IntlTelInput-CZQ25gGC.js";
2
2
  //#region packages/vue/src/index.ts
3
3
  var n = t;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./IntlTelInput-D_-tAfWX.js";
1
+ import { n as e, t } from "./IntlTelInput-CZQ25gGC.js";
2
2
  //#region packages/core/dist/js/utils.js
3
3
  var n = {};
4
4
  //#endregion
@@ -777,7 +777,7 @@ var n = {};
777
777
  [
778
778
  ,
779
779
  ,
780
- "(?:[01589]\\d|[46])\\d{4}",
780
+ "(?:[01589]\\d|[2-467])\\d{4}",
781
781
  ,
782
782
  ,
783
783
  ,
@@ -789,7 +789,7 @@ var n = {};
789
789
  [
790
790
  ,
791
791
  ,
792
- "6[2-467]\\d{3}",
792
+ "6\\d{4}",
793
793
  ,
794
794
  ,
795
795
  ,
@@ -801,7 +801,7 @@ var n = {};
801
801
  [
802
802
  ,
803
803
  ,
804
- "4\\d{4}",
804
+ "[2-47]\\d{4}",
805
805
  ,
806
806
  ,
807
807
  ,
@@ -4504,7 +4504,7 @@ var n = {};
4504
4504
  [
4505
4505
  ,
4506
4506
  ,
4507
- "96(?:0[469]|1[0-47]|3[389]|43|6[69]|7[78])\\d{6}",
4507
+ "96(?:0[1-69]|1[0-479]|2[278]|3[13-9]|4[013]|54|6[69]|7[78]|88)\\d{6}",
4508
4508
  ,
4509
4509
  ,
4510
4510
  ,
@@ -9444,7 +9444,7 @@ var n = {};
9444
9444
  [
9445
9445
  ,
9446
9446
  ,
9447
- "(?:24[23]|6(?:[25-9]\\d|4[01]))\\d{6}",
9447
+ "(?:24[23]|6(?:[25-9]\\d|4[0-2]))\\d{6}",
9448
9448
  ,
9449
9449
  ,
9450
9450
  ,
@@ -9629,7 +9629,7 @@ var n = {};
9629
9629
  [
9630
9630
  ,
9631
9631
  ,
9632
- "1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",
9632
+ "1(?:610\\d|740[0-5])\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",
9633
9633
  ,
9634
9634
  ,
9635
9635
  ,
@@ -13399,7 +13399,7 @@ var n = {};
13399
13399
  [
13400
13400
  ,
13401
13401
  ,
13402
- "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}",
13402
+ "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}",
13403
13403
  ,
13404
13404
  ,
13405
13405
  ,
@@ -13694,7 +13694,7 @@ var n = {};
13694
13694
  [
13695
13695
  ,
13696
13696
  ,
13697
- "[5-9]\\d{8}",
13697
+ "(?:400|[5-9]\\d\\d)\\d{6}",
13698
13698
  ,
13699
13699
  ,
13700
13700
  ,
@@ -13706,7 +13706,7 @@ var n = {};
13706
13706
  [
13707
13707
  ,
13708
13708
  ,
13709
- "96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}",
13709
+ "96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:400|8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}",
13710
13710
  ,
13711
13711
  ,
13712
13712
  ,
@@ -13802,7 +13802,7 @@ var n = {};
13802
13802
  ,
13803
13803
  "(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
13804
13804
  "$1 $2 $3 $4",
13805
- ["[5-9]"]
13805
+ ["[4-9]"]
13806
13806
  ]
13807
13807
  ],
13808
13808
  [[
@@ -13814,7 +13814,7 @@ var n = {};
13814
13814
  ,
13815
13815
  "(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
13816
13816
  "$1 $2 $3 $4",
13817
- ["[5-9]"]
13817
+ ["[4-9]"]
13818
13818
  ]],
13819
13819
  [
13820
13820
  ,
@@ -14866,7 +14866,7 @@ var n = {};
14866
14866
  [
14867
14867
  ,
14868
14868
  ,
14869
- "(?:6[0-36]|88)\\d{4}",
14869
+ "6[0-36]\\d{4}",
14870
14870
  ,
14871
14871
  ,
14872
14872
  ,
@@ -14884,8 +14884,8 @@ var n = {};
14884
14884
  ,
14885
14885
  [[
14886
14886
  ,
14887
- "(\\d{6})",
14888
- "$1",
14887
+ "(\\d{2})(\\d{2})(\\d{2})",
14888
+ "$1 $2 $3",
14889
14889
  ["[2-9]"],
14890
14890
  ,
14891
14891
  "$CC $1"
@@ -15743,7 +15743,7 @@ var n = {};
15743
15743
  [
15744
15744
  ,
15745
15745
  ,
15746
- "5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0(?:1[09]|70)|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|1[12]|22|3[0-6]|44|5[05]|77|88|9[09])|(?:[14]\\d|77)\\d|22[02])|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-6])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200|333|4(?:44|55))|6[89]\\d\\d|7(?:(?:[0147-9]\\d|22)\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}",
15746
+ "5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0(?:1[09]|70)|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|4(?:0[04]0|411)|5222|9000)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|1[12]|2[02]|3[0-6]|4[04]|5[05]|77|88|9[09])|(?:[14]\\d|77)\\d|22[02])|1(?:1(?:[03][01]|[124]\\d|5[02-6]|7[0-6])|4\\d\\d)|2(?:228|555)|3555|4(?:4(?:[02-9]\\d|14)|555)|5(?:[0157-9]\\d\\d|200|333|4(?:44|55))|6[89]\\d\\d|7(?:(?:[0147-9]\\d|22)\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}",
15747
15747
  ,
15748
15748
  ,
15749
15749
  ,
@@ -18095,7 +18095,7 @@ var n = {};
18095
18095
  [
18096
18096
  ,
18097
18097
  ,
18098
- "(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[0-79]|70))\\d{4}",
18098
+ "(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[0-79]|[78]0))\\d{4}",
18099
18099
  ,
18100
18100
  ,
18101
18101
  ,
@@ -18440,7 +18440,7 @@ var n = {};
18440
18440
  [
18441
18441
  ,
18442
18442
  ,
18443
- "2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-7]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589])|5(?:0[2357-9]|1[1-356]|4[03-5]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",
18443
+ "2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-8]|5[57]|6[2458]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589]|80)|5(?:0[2357-9]|1[1-6]|4[03-58]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|2[01]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",
18444
18444
  ,
18445
18445
  ,
18446
18446
  ,
@@ -19777,7 +19777,7 @@ var n = {};
19777
19777
  [
19778
19778
  ,
19779
19779
  ,
19780
- "55(?:4(?:0[0-3]|[16]0)|57[0-289])\\d{4}|5(?:(?:[0-2][02-9]|[36]\\d|[49][2-9]|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[3-5]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",
19780
+ "55(?:4(?:0[0-3]|10|6[015-9])|57[0-289]|8[06][0-2])\\d{4}|5(?:(?:[0-2][02-9]|[36]\\d|[49][2-9]|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[3-5]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",
19781
19781
  ,
19782
19782
  ,
19783
19783
  ,
@@ -19837,7 +19837,7 @@ var n = {};
19837
19837
  [
19838
19838
  ,
19839
19839
  ,
19840
- "7(?:38(?:[05]\\d|8[0138])|8(?:33|55|77|81)\\d)\\d{4}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",
19840
+ "7(?:280[01]|38(?:[05]\\d|8[01358])|8(?:33|55|77|81)\\d)\\d{4}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",
19841
19841
  ,
19842
19842
  ,
19843
19843
  ,
@@ -20881,7 +20881,7 @@ var n = {};
20881
20881
  [
20882
20882
  ,
20883
20883
  ,
20884
- "9(?:(?:0[0-5]|[13]\\d|2[0-3])\\d\\d|9(?:[0-46]\\d\\d|5(?:10|5\\d)|8(?:[12]\\d|88)|9(?:[01359]\\d|21|69|77|8[7-9])))\\d{5}",
20884
+ "9(?:(?:0[0-5]|[13]\\d|2[0-3])\\d\\d|9(?:[0-46]\\d\\d|5(?:10|5\\d)|8(?:[12]\\d|3[0-2]|88)|9(?:[01359]\\d|21|69|77|8[7-9])))\\d{5}",
20885
20885
  ,
20886
20886
  ,
20887
20887
  ,
@@ -22403,7 +22403,7 @@ var n = {};
22403
22403
  [
22404
22404
  ,
22405
22405
  ,
22406
- "(?:1(?:0[0-8]|1\\d|2[014]|30|4[0-5])|7\\d\\d)\\d{6}",
22406
+ "(?:1(?:0[0-8]|[18]\\d|2[014]|30|4[0-5])|7\\d\\d)\\d{6}",
22407
22407
  ,
22408
22408
  ,
22409
22409
  ,
@@ -24975,7 +24975,7 @@ var n = {};
24975
24975
  [
24976
24976
  ,
24977
24977
  ,
24978
- "(?:6(?:(?:4[5-9]|5\\d)\\d|6(?:[024-68]\\d|1[01]|3[7-9]|70))\\d|7(?:[37-9]\\d|42|56))\\d{4}",
24978
+ "(?:6(?:(?:4[5-9]|5\\d)\\d|6(?:[024-68]\\d|1[01]|3[7-9]|7[02]))\\d|7(?:[37-9]\\d|42|56))\\d{4}",
24979
24979
  ,
24980
24980
  ,
24981
24981
  ,
@@ -26426,7 +26426,7 @@ var n = {};
26426
26426
  [
26427
26427
  ,
26428
26428
  ,
26429
- "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}",
26429
+ "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}",
26430
26430
  ,
26431
26431
  ,
26432
26432
  ,
@@ -27774,7 +27774,7 @@ var n = {};
27774
27774
  [
27775
27775
  ,
27776
27776
  ,
27777
- "2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-59]))\\d{5}",
27777
+ "2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-69]))\\d{5}",
27778
27778
  ,
27779
27779
  ,
27780
27780
  ,
@@ -30286,7 +30286,7 @@ var n = {};
30286
30286
  [
30287
30287
  ,
30288
30288
  ,
30289
- "8[2-79]\\d{7}",
30289
+ "8(?:[2-79]\\d|80)\\d{6}",
30290
30290
  ,
30291
30291
  ,
30292
30292
  ,
@@ -30369,7 +30369,7 @@ var n = {};
30369
30369
  ,
30370
30370
  "(\\d{2})(\\d{3})(\\d{3,4})",
30371
30371
  "$1 $2 $3",
30372
- ["2|8[2-79]"]
30372
+ ["2|8[2-9]"]
30373
30373
  ], [
30374
30374
  ,
30375
30375
  "(\\d{3})(\\d{3})(\\d{3})",
@@ -31797,7 +31797,7 @@ var n = {};
31797
31797
  [
31798
31798
  ,
31799
31799
  ,
31800
- "[49]\\d{7}",
31800
+ "(?:4[015-9]|9\\d)\\d{6}",
31801
31801
  ,
31802
31802
  ,
31803
31803
  ,
@@ -37341,7 +37341,7 @@ var n = {};
37341
37341
  [
37342
37342
  ,
37343
37343
  ,
37344
- "7[02369]\\d{7}",
37344
+ "7[023689]\\d{7}",
37345
37345
  ,
37346
37346
  ,
37347
37347
  ,
@@ -38254,7 +38254,7 @@ var n = {};
38254
38254
  [
38255
38255
  ,
38256
38256
  ,
38257
- "[49]\\d{7}",
38257
+ "(?:4[015-9]|9\\d)\\d{6}",
38258
38258
  ,
38259
38259
  ,
38260
38260
  ,
@@ -39383,7 +39383,7 @@ var n = {};
39383
39383
  [
39384
39384
  ,
39385
39385
  ,
39386
- "(?:6[08]|7[124-7]|8[1-9])\\d{5}",
39386
+ "(?:6[08]|7[1-7]|8[1-9])\\d{5}",
39387
39387
  ,
39388
39388
  ,
39389
39389
  ,
@@ -41923,7 +41923,7 @@ var n = {};
41923
41923
  [
41924
41924
  ,
41925
41925
  ,
41926
- "(?:[1-6]\\d|71)\\d{6}",
41926
+ "[1-7]\\d{7}",
41927
41927
  ,
41928
41928
  ,
41929
41929
  ,
@@ -41944,7 +41944,7 @@ var n = {};
41944
41944
  [
41945
41945
  ,
41946
41946
  ,
41947
- "(?:6\\d|71)\\d{6}",
41947
+ "(?:6\\d|7[12])\\d{6}",
41948
41948
  ,
41949
41949
  ,
41950
41950
  ,
@@ -43283,7 +43283,7 @@ var n = {};
43283
43283
  [
43284
43284
  ,
43285
43285
  ,
43286
- "(?:6[1-35-9]|7[013-9])\\d{7}",
43286
+ "(?:6[1-35-9]|7\\d)\\d{7}",
43287
43287
  ,
43288
43288
  ,
43289
43289
  ,
@@ -43658,7 +43658,7 @@ var n = {};
43658
43658
  [
43659
43659
  ,
43660
43660
  ,
43661
- "7280\\d{5}|7(?:[014-8]\\d|2[01467]|3[016]|9[0-589])\\d{6}",
43661
+ "7280\\d{5}|7(?:[014-8]\\d|2[01467]|3[0167]|9[0-589])\\d{6}",
43662
43662
  ,
43663
43663
  ,
43664
43664
  ,
@@ -43823,7 +43823,7 @@ var n = {};
43823
43823
  [
43824
43824
  ,
43825
43825
  ,
43826
- "(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
43826
+ "(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
43827
43827
  ,
43828
43828
  ,
43829
43829
  ,
@@ -43836,7 +43836,7 @@ var n = {};
43836
43836
  [
43837
43837
  ,
43838
43838
  ,
43839
- "(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
43839
+ "(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
43840
43840
  ,
43841
43841
  ,
43842
43842
  ,
@@ -44246,7 +44246,7 @@ var n = {};
44246
44246
  [
44247
44247
  ,
44248
44248
  ,
44249
- "(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|[168]\\d\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}",
44249
+ "(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:[168]\\d\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}",
44250
44250
  ,
44251
44251
  ,
44252
44252
  ,
@@ -46987,7 +46987,7 @@ var n = {};
46987
46987
  [
46988
46988
  ,
46989
46989
  ,
46990
- "7(?:[1278]\\d|3[1-9])\\d{6}",
46990
+ "7(?:[1278]\\d|3[1-9]|9[01])\\d{6}",
46991
46991
  ,
46992
46992
  ,
46993
46993
  ,
@@ -1,3 +1,4 @@
1
1
  import { default as intlTelInput } from 'intl-tel-input';
2
2
  export { intlTelInput };
3
3
  export { default } from './IntlTelInput.vue';
4
+ export type { Props } from './props';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intl-tel-input/vue",
3
- "version": "29.1.1",
3
+ "version": "29.1.3",
4
4
  "description": "A Vue component for intl-tel-input, for entering, formatting, and validating international telephone numbers",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "README.md"
25
25
  ],
26
26
  "dependencies": {
27
- "intl-tel-input": "^29.1.1"
27
+ "intl-tel-input": "^29.1.3"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "vue": "^3.0.0"