intl-tel-input 25.0.0 → 25.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intl-tel-input",
3
- "version": "25.0.0",
3
+ "version": "25.0.1",
4
4
  "description": "A JavaScript plugin for entering and validating international telephone numbers",
5
5
  "keywords": [
6
6
  "international",
package/react/README.md CHANGED
@@ -28,7 +28,7 @@ import "intl-tel-input/styles";
28
28
 
29
29
  See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/react/demo/validation/ValidationApp.tsx) for a more fleshed-out example of how to handle validation.
30
30
 
31
- A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/reactWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `utilsScript` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.0.0/build/js/utils.js"`.
31
+ A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/reactWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.0.1/build/js/utils.js"`.
32
32
 
33
33
  ## Props
34
34
  Here's a list of all of the current props you can pass to the IntlTelInput React component.
@@ -2055,18 +2055,28 @@ var Iti = class {
2055
2055
  const telInputName = this.telInput.getAttribute("name") || "";
2056
2056
  const names = hiddenInput(telInputName);
2057
2057
  if (names.phone) {
2058
- this.hiddenInput = createEl("input", {
2059
- type: "hidden",
2060
- name: names.phone
2061
- });
2062
- wrapper.appendChild(this.hiddenInput);
2058
+ const existingInput = this.telInput.form?.querySelector(`input[name="${names.phone}"]`);
2059
+ if (existingInput) {
2060
+ this.hiddenInput = existingInput;
2061
+ } else {
2062
+ this.hiddenInput = createEl("input", {
2063
+ type: "hidden",
2064
+ name: names.phone
2065
+ });
2066
+ wrapper.appendChild(this.hiddenInput);
2067
+ }
2063
2068
  }
2064
2069
  if (names.country) {
2065
- this.hiddenInputCountry = createEl("input", {
2066
- type: "hidden",
2067
- name: names.country
2068
- });
2069
- wrapper.appendChild(this.hiddenInputCountry);
2070
+ const existingInput = this.telInput.form?.querySelector(`input[name="${names.country}"]`);
2071
+ if (existingInput) {
2072
+ this.hiddenInputCountry = existingInput;
2073
+ } else {
2074
+ this.hiddenInputCountry = createEl("input", {
2075
+ type: "hidden",
2076
+ name: names.country
2077
+ });
2078
+ wrapper.appendChild(this.hiddenInputCountry);
2079
+ }
2070
2080
  }
2071
2081
  }
2072
2082
  }
@@ -3129,7 +3139,7 @@ var intlTelInput = Object.assign(
3129
3139
  attachUtils,
3130
3140
  startedLoadingUtilsScript: false,
3131
3141
  startedLoadingAutoCountry: false,
3132
- version: "25.0.0"
3142
+ version: "25.0.1"
3133
3143
  }
3134
3144
  );
3135
3145
  var intl_tel_input_default = intlTelInput;
@@ -2019,18 +2019,28 @@ var Iti = class {
2019
2019
  const telInputName = this.telInput.getAttribute("name") || "";
2020
2020
  const names = hiddenInput(telInputName);
2021
2021
  if (names.phone) {
2022
- this.hiddenInput = createEl("input", {
2023
- type: "hidden",
2024
- name: names.phone
2025
- });
2026
- wrapper.appendChild(this.hiddenInput);
2022
+ const existingInput = this.telInput.form?.querySelector(`input[name="${names.phone}"]`);
2023
+ if (existingInput) {
2024
+ this.hiddenInput = existingInput;
2025
+ } else {
2026
+ this.hiddenInput = createEl("input", {
2027
+ type: "hidden",
2028
+ name: names.phone
2029
+ });
2030
+ wrapper.appendChild(this.hiddenInput);
2031
+ }
2027
2032
  }
2028
2033
  if (names.country) {
2029
- this.hiddenInputCountry = createEl("input", {
2030
- type: "hidden",
2031
- name: names.country
2032
- });
2033
- wrapper.appendChild(this.hiddenInputCountry);
2034
+ const existingInput = this.telInput.form?.querySelector(`input[name="${names.country}"]`);
2035
+ if (existingInput) {
2036
+ this.hiddenInputCountry = existingInput;
2037
+ } else {
2038
+ this.hiddenInputCountry = createEl("input", {
2039
+ type: "hidden",
2040
+ name: names.country
2041
+ });
2042
+ wrapper.appendChild(this.hiddenInputCountry);
2043
+ }
2034
2044
  }
2035
2045
  }
2036
2046
  }
@@ -3093,7 +3103,7 @@ var intlTelInput = Object.assign(
3093
3103
  attachUtils,
3094
3104
  startedLoadingUtilsScript: false,
3095
3105
  startedLoadingAutoCountry: false,
3096
- version: "25.0.0"
3106
+ version: "25.0.1"
3097
3107
  }
3098
3108
  );
3099
3109
  var intl_tel_input_default = intlTelInput;
@@ -2055,18 +2055,28 @@ var Iti = class {
2055
2055
  const telInputName = this.telInput.getAttribute("name") || "";
2056
2056
  const names = hiddenInput(telInputName);
2057
2057
  if (names.phone) {
2058
- this.hiddenInput = createEl("input", {
2059
- type: "hidden",
2060
- name: names.phone
2061
- });
2062
- wrapper.appendChild(this.hiddenInput);
2058
+ const existingInput = this.telInput.form?.querySelector(`input[name="${names.phone}"]`);
2059
+ if (existingInput) {
2060
+ this.hiddenInput = existingInput;
2061
+ } else {
2062
+ this.hiddenInput = createEl("input", {
2063
+ type: "hidden",
2064
+ name: names.phone
2065
+ });
2066
+ wrapper.appendChild(this.hiddenInput);
2067
+ }
2063
2068
  }
2064
2069
  if (names.country) {
2065
- this.hiddenInputCountry = createEl("input", {
2066
- type: "hidden",
2067
- name: names.country
2068
- });
2069
- wrapper.appendChild(this.hiddenInputCountry);
2070
+ const existingInput = this.telInput.form?.querySelector(`input[name="${names.country}"]`);
2071
+ if (existingInput) {
2072
+ this.hiddenInputCountry = existingInput;
2073
+ } else {
2074
+ this.hiddenInputCountry = createEl("input", {
2075
+ type: "hidden",
2076
+ name: names.country
2077
+ });
2078
+ wrapper.appendChild(this.hiddenInputCountry);
2079
+ }
2070
2080
  }
2071
2081
  }
2072
2082
  }
@@ -3129,7 +3139,7 @@ var intlTelInput = Object.assign(
3129
3139
  attachUtils,
3130
3140
  startedLoadingUtilsScript: false,
3131
3141
  startedLoadingAutoCountry: false,
3132
- version: "25.0.0"
3142
+ version: "25.0.1"
3133
3143
  }
3134
3144
  );
3135
3145
  var intl_tel_input_default = intlTelInput;
@@ -2019,18 +2019,28 @@ var Iti = class {
2019
2019
  const telInputName = this.telInput.getAttribute("name") || "";
2020
2020
  const names = hiddenInput(telInputName);
2021
2021
  if (names.phone) {
2022
- this.hiddenInput = createEl("input", {
2023
- type: "hidden",
2024
- name: names.phone
2025
- });
2026
- wrapper.appendChild(this.hiddenInput);
2022
+ const existingInput = this.telInput.form?.querySelector(`input[name="${names.phone}"]`);
2023
+ if (existingInput) {
2024
+ this.hiddenInput = existingInput;
2025
+ } else {
2026
+ this.hiddenInput = createEl("input", {
2027
+ type: "hidden",
2028
+ name: names.phone
2029
+ });
2030
+ wrapper.appendChild(this.hiddenInput);
2031
+ }
2027
2032
  }
2028
2033
  if (names.country) {
2029
- this.hiddenInputCountry = createEl("input", {
2030
- type: "hidden",
2031
- name: names.country
2032
- });
2033
- wrapper.appendChild(this.hiddenInputCountry);
2034
+ const existingInput = this.telInput.form?.querySelector(`input[name="${names.country}"]`);
2035
+ if (existingInput) {
2036
+ this.hiddenInputCountry = existingInput;
2037
+ } else {
2038
+ this.hiddenInputCountry = createEl("input", {
2039
+ type: "hidden",
2040
+ name: names.country
2041
+ });
2042
+ wrapper.appendChild(this.hiddenInputCountry);
2043
+ }
2034
2044
  }
2035
2045
  }
2036
2046
  }
@@ -3093,7 +3103,7 @@ var intlTelInput = Object.assign(
3093
3103
  attachUtils,
3094
3104
  startedLoadingUtilsScript: false,
3095
3105
  startedLoadingAutoCountry: false,
3096
- version: "25.0.0"
3106
+ version: "25.0.1"
3097
3107
  }
3098
3108
  );
3099
3109
  var intl_tel_input_default = intlTelInput;
package/vue/README.md CHANGED
@@ -34,7 +34,7 @@ See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master
34
34
  "vue:demo": "vite --config vue/demo/[demo variant]/vite.config.js"
35
35
  ```
36
36
 
37
- A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` import, then you should couple this with the `utilsScript` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.0.0/build/js/utils.js"`.
37
+ A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.0.1/build/js/utils.js"`.
38
38
 
39
39
  ## Props
40
40
  Here's a list of all of the current props you can pass to the IntlTelInput Vue component.
@@ -1,4 +1,4 @@
1
- import { mergeModels as D, useModel as x, ref as v, onMounted as E, watch as M, onUnmounted as F, withDirectives as B, openBlock as O, createElementBlock as V, mergeProps as z, vModelText as R } from "vue";
1
+ import { mergeModels as D, useModel as x, ref as L, onMounted as E, watch as M, onUnmounted as F, withDirectives as B, openBlock as O, createElementBlock as V, mergeProps as z, vModelText as R } from "vue";
2
2
  const N = [
3
3
  [
4
4
  "af",
@@ -1305,10 +1305,10 @@ const N = [
1305
1305
  // Zimbabwe
1306
1306
  "263"
1307
1307
  ]
1308
- ], b = [];
1308
+ ], I = [];
1309
1309
  for (let u = 0; u < N.length; u++) {
1310
1310
  const t = N[u];
1311
- b[u] = {
1311
+ I[u] = {
1312
1312
  name: "",
1313
1313
  // this is now populated in the plugin
1314
1314
  iso2: t[0],
@@ -1573,8 +1573,8 @@ const j = {
1573
1573
  ac: "Ascension Island",
1574
1574
  xk: "Kosovo"
1575
1575
  }, k = { ...j, ...$ };
1576
- for (let u = 0; u < b.length; u++)
1577
- b[u].name = k[b[u].iso2];
1576
+ for (let u = 0; u < I.length; u++)
1577
+ I[u].name = k[I[u].iso2];
1578
1578
  let U = 0;
1579
1579
  const T = {
1580
1580
  //* Whether or not to allow the dropdown.
@@ -1649,8 +1649,8 @@ const T = {
1649
1649
  "887",
1650
1650
  "888",
1651
1651
  "889"
1652
- ], I = (u) => u.replace(/\D/g, ""), A = (u = "") => u.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), S = (u) => {
1653
- const t = I(u);
1652
+ ], v = (u) => u.replace(/\D/g, ""), A = (u = "") => u.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), S = (u) => {
1653
+ const t = v(u);
1654
1654
  if (t.charAt(0) === "1") {
1655
1655
  const e = t.substr(1, 3);
1656
1656
  return K.indexOf(e) !== -1;
@@ -1670,7 +1670,7 @@ const T = {
1670
1670
  }, y = (u, t, e) => {
1671
1671
  const i = document.createElement(u);
1672
1672
  return t && Object.entries(t).forEach(([s, n]) => i.setAttribute(s, n)), e && e.appendChild(i), i;
1673
- }, _ = (u, ...t) => {
1673
+ }, w = (u, ...t) => {
1674
1674
  const { instances: e } = l;
1675
1675
  Object.values(e).forEach((i) => i[u](...t));
1676
1676
  };
@@ -1725,18 +1725,18 @@ class G {
1725
1725
  const i = t.map(
1726
1726
  (s) => s.toLowerCase()
1727
1727
  );
1728
- this.countries = b.filter(
1728
+ this.countries = I.filter(
1729
1729
  (s) => i.indexOf(s.iso2) > -1
1730
1730
  );
1731
1731
  } else if (e.length) {
1732
1732
  const i = e.map(
1733
1733
  (s) => s.toLowerCase()
1734
1734
  );
1735
- this.countries = b.filter(
1735
+ this.countries = I.filter(
1736
1736
  (s) => i.indexOf(s.iso2) === -1
1737
1737
  );
1738
1738
  } else
1739
- this.countries = b;
1739
+ this.countries = I;
1740
1740
  }
1741
1741
  //* Translate Countries by object literal provided on config.
1742
1742
  _translateCountryNames() {
@@ -1769,7 +1769,7 @@ class G {
1769
1769
  }
1770
1770
  //* Generate all of the markup for the plugin: the selected country overlay, and the dropdown.
1771
1771
  _generateMarkup() {
1772
- var h;
1772
+ var h, m, b;
1773
1773
  this.telInput.classList.add("iti__tel-input"), !this.telInput.hasAttribute("autocomplete") && !(this.telInput.form && this.telInput.form.hasAttribute("autocomplete")) && this.telInput.setAttribute("autocomplete", "off");
1774
1774
  const {
1775
1775
  allowDropdown: t,
@@ -1808,15 +1808,15 @@ class G {
1808
1808
  { class: "iti__selected-country" },
1809
1809
  this.countryContainer
1810
1810
  );
1811
- const m = y("div", { class: "iti__selected-country-primary" }, this.selectedCountry);
1812
- if (this.selectedCountryInner = y("div", { class: "iti__flag" }, m), this.selectedCountryA11yText = y(
1811
+ const _ = y("div", { class: "iti__selected-country-primary" }, this.selectedCountry);
1812
+ if (this.selectedCountryInner = y("div", { class: "iti__flag" }, _), this.selectedCountryA11yText = y(
1813
1813
  "span",
1814
1814
  { class: "iti__a11y-text" },
1815
1815
  this.selectedCountryInner
1816
1816
  ), t && (this.dropdownArrow = y(
1817
1817
  "div",
1818
1818
  { class: "iti__arrow", "aria-hidden": "true" },
1819
- m
1819
+ _
1820
1820
  )), e && (this.selectedDialCode = y(
1821
1821
  "div",
1822
1822
  { class: "iti__selected-dial-code" },
@@ -1861,14 +1861,21 @@ class G {
1861
1861
  }
1862
1862
  }
1863
1863
  if (C.appendChild(this.telInput), this._updateInputPadding(), n) {
1864
- const m = this.telInput.getAttribute("name") || "", f = n(m);
1865
- f.phone && (this.hiddenInput = y("input", {
1866
- type: "hidden",
1867
- name: f.phone
1868
- }), C.appendChild(this.hiddenInput)), f.country && (this.hiddenInputCountry = y("input", {
1869
- type: "hidden",
1870
- name: f.country
1871
- }), C.appendChild(this.hiddenInputCountry));
1864
+ const _ = this.telInput.getAttribute("name") || "", f = n(_);
1865
+ if (f.phone) {
1866
+ const g = (m = this.telInput.form) == null ? void 0 : m.querySelector(`input[name="${f.phone}"]`);
1867
+ g ? this.hiddenInput = g : (this.hiddenInput = y("input", {
1868
+ type: "hidden",
1869
+ name: f.phone
1870
+ }), C.appendChild(this.hiddenInput));
1871
+ }
1872
+ if (f.country) {
1873
+ const g = (b = this.telInput.form) == null ? void 0 : b.querySelector(`input[name="${f.country}"]`);
1874
+ g ? this.hiddenInputCountry = g : (this.hiddenInputCountry = y("input", {
1875
+ type: "hidden",
1876
+ name: f.country
1877
+ }), C.appendChild(this.hiddenInputCountry));
1878
+ }
1872
1879
  }
1873
1880
  }
1874
1881
  //* For each country: add a country list item <li> to the countryList <ul> container.
@@ -1948,10 +1955,10 @@ class G {
1948
1955
  l.autoCountry ? this.handleAutoCountry() : l.startedLoadingAutoCountry || (l.startedLoadingAutoCountry = !0, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(
1949
1956
  (t = "") => {
1950
1957
  const e = t.toLowerCase();
1951
- e && this._getCountryData(e, !0) ? (l.autoCountry = e, setTimeout(() => _("handleAutoCountry"))) : (this._setInitialState(!0), _("rejectAutoCountryPromise"));
1958
+ e && this._getCountryData(e, !0) ? (l.autoCountry = e, setTimeout(() => w("handleAutoCountry"))) : (this._setInitialState(!0), w("rejectAutoCountryPromise"));
1952
1959
  },
1953
1960
  () => {
1954
- this._setInitialState(!0), _("rejectAutoCountryPromise");
1961
+ this._setInitialState(!0), w("rejectAutoCountryPromise");
1955
1962
  }
1956
1963
  ));
1957
1964
  }
@@ -1973,8 +1980,8 @@ class G {
1973
1980
  p || c && !t ? a = !0 : /[^+0-9]/.test(this.telInput.value) || (a = !1);
1974
1981
  const d = (r == null ? void 0 : r.detail) && r.detail.isSetNumber && !s;
1975
1982
  if (e && !a && !d) {
1976
- const C = this.telInput.selectionStart || 0, m = this.telInput.value.substring(0, C).replace(/[^+0-9]/g, "").length, f = (r == null ? void 0 : r.inputType) === "deleteContentForward", g = this._formatNumberAsYouType(), w = H(m, g, C, f);
1977
- this.telInput.value = g, this.telInput.setSelectionRange(w, w);
1983
+ const C = this.telInput.selectionStart || 0, m = this.telInput.value.substring(0, C).replace(/[^+0-9]/g, "").length, b = (r == null ? void 0 : r.inputType) === "deleteContentForward", _ = this._formatNumberAsYouType(), f = H(m, _, C, b);
1984
+ this.telInput.value = _, this.telInput.setSelectionRange(f, f);
1978
1985
  }
1979
1986
  }, this.telInput.addEventListener("input", this._handleInputEvent), (t || i) && (this._handleKeydownEvent = (r) => {
1980
1987
  if (r.key && r.key.length === 1 && !r.altKey && !r.ctrlKey && !r.metaKey) {
@@ -1983,13 +1990,13 @@ class G {
1983
1990
  return;
1984
1991
  }
1985
1992
  if (t) {
1986
- const p = this.telInput.value, c = p.charAt(0) === "+", d = !c && this.telInput.selectionStart === 0 && r.key === "+", C = /^[0-9]$/.test(r.key), h = i ? C : d || C, m = p.slice(0, this.telInput.selectionStart) + r.key + p.slice(this.telInput.selectionEnd), f = this._getFullNumber(m), g = l.utils.getCoreNumber(f, this.selectedCountryData.iso2), w = this.maxCoreNumberLength && g.length > this.maxCoreNumberLength;
1987
- let L = !1;
1993
+ const p = this.telInput.value, c = p.charAt(0) === "+", d = !c && this.telInput.selectionStart === 0 && r.key === "+", C = /^[0-9]$/.test(r.key), h = i ? C : d || C, m = p.slice(0, this.telInput.selectionStart) + r.key + p.slice(this.telInput.selectionEnd), b = this._getFullNumber(m), _ = l.utils.getCoreNumber(b, this.selectedCountryData.iso2), f = this.maxCoreNumberLength && _.length > this.maxCoreNumberLength;
1994
+ let g = !1;
1988
1995
  if (c) {
1989
1996
  const P = this.selectedCountryData.iso2;
1990
- L = this._getCountryFromNumber(f) !== P;
1997
+ g = this._getCountryFromNumber(b) !== P;
1991
1998
  }
1992
- (!h || w && !L && !d) && r.preventDefault();
1999
+ (!h || f && !g && !d) && r.preventDefault();
1993
2000
  }
1994
2001
  }
1995
2002
  }, this.telInput.addEventListener("keydown", this._handleKeydownEvent));
@@ -2129,9 +2136,9 @@ class G {
2129
2136
  let i = e ? t.substring(e) : t;
2130
2137
  const s = this.selectedCountryData.dialCode;
2131
2138
  i && s === "1" && i.charAt(0) !== "+" && (i.charAt(0) !== "1" && (i = `1${i}`), i = `+${i}`), this.options.separateDialCode && s && i.charAt(0) !== "+" && (i = `+${s}${i}`);
2132
- const o = this._getDialCode(i, !0), a = I(i);
2139
+ const o = this._getDialCode(i, !0), a = v(i);
2133
2140
  if (o) {
2134
- const r = this.dialCodeToIso2Map[I(o)], p = r.indexOf(this.selectedCountryData.iso2) !== -1 && a.length <= o.length - 1;
2141
+ const r = this.dialCodeToIso2Map[v(o)], p = r.indexOf(this.selectedCountryData.iso2) !== -1 && a.length <= o.length - 1;
2135
2142
  if (!(s === "1" && S(a)) && !p) {
2136
2143
  for (let d = 0; d < r.length; d++)
2137
2144
  if (r[d])
@@ -2309,7 +2316,7 @@ class G {
2309
2316
  _getFullNumber(t) {
2310
2317
  const e = t || this.telInput.value.trim(), { dialCode: i } = this.selectedCountryData;
2311
2318
  let s;
2312
- const n = I(e);
2319
+ const n = v(e);
2313
2320
  return this.options.separateDialCode && e.charAt(0) !== "+" && i && n ? s = `+${i}` : s = "", s + e;
2314
2321
  }
2315
2322
  //* Remove the dial code if separateDialCode is enabled also cap the length if the input has a maxlength attribute
@@ -2467,9 +2474,9 @@ const W = (u) => {
2467
2474
  const i = e == null ? void 0 : e.default;
2468
2475
  if (!i || typeof i != "object")
2469
2476
  throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");
2470
- return l.utils = i, _("handleUtils"), !0;
2477
+ return l.utils = i, w("handleUtils"), !0;
2471
2478
  }).catch((e) => {
2472
- throw _("rejectUtilsScriptPromise", e), e;
2479
+ throw w("rejectUtilsScriptPromise", e), e;
2473
2480
  });
2474
2481
  }
2475
2482
  return null;
@@ -2483,7 +2490,7 @@ const W = (u) => {
2483
2490
  //* Using a static var like this allows us to mock it in the tests.
2484
2491
  documentReady: () => document.readyState === "complete",
2485
2492
  //* Get the country data object.
2486
- getCountryData: () => b,
2493
+ getCountryData: () => I,
2487
2494
  //* A getter for the plugin instance.
2488
2495
  getInstance: (u) => {
2489
2496
  const t = u.getAttribute("data-intl-tel-input-id");
@@ -2494,7 +2501,7 @@ const W = (u) => {
2494
2501
  attachUtils: W,
2495
2502
  startedLoadingUtilsScript: !1,
2496
2503
  startedLoadingAutoCountry: !1,
2497
- version: "25.0.0"
2504
+ version: "25.0.1"
2498
2505
  }
2499
2506
  ), J = {
2500
2507
  __name: "IntlTelInput",
@@ -2529,7 +2536,7 @@ const W = (u) => {
2529
2536
  "changeErrorCode"
2530
2537
  ], ["update:modelValue"]),
2531
2538
  setup(u, { expose: t, emit: e }) {
2532
- const i = x(u, "modelValue"), s = u, n = e, o = v(), a = v(), r = v(!1), p = () => a.value ? s.options.strictMode ? a.value.isValidNumberPrecise() : a.value.isValidNumber() : null, c = () => {
2539
+ const i = x(u, "modelValue"), s = u, n = e, o = L(), a = L(), r = L(!1), p = () => a.value ? s.options.strictMode ? a.value.isValidNumberPrecise() : a.value.isValidNumber() : null, c = () => {
2533
2540
  let h = p();
2534
2541
  r.value !== h && (r.value = h, n("changeValidity", !!h), n(
2535
2542
  "changeErrorCode",
@@ -2556,7 +2563,7 @@ const W = (u) => {
2556
2563
  }), t({ instance: a, input: o }), (h, m) => B((O(), V("input", z({
2557
2564
  ref_key: "input",
2558
2565
  ref: o,
2559
- "onUpdate:modelValue": m[0] || (m[0] = (f) => i.value = f),
2566
+ "onUpdate:modelValue": m[0] || (m[0] = (b) => i.value = b),
2560
2567
  type: "tel",
2561
2568
  onCountrychange: C,
2562
2569
  onInput: d