@odus/checkout 1.18.0 → 1.19.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/dist/checkout.es.js +241 -231
- package/dist/components/checkout/form/AddressSection.d.ts.map +1 -1
- package/dist/components/checkout/form/CardSection.d.ts.map +1 -1
- package/dist/components/checkout/form/CardUnavailableNotice.d.ts.map +1 -1
- package/dist/components/checkout/form/CardholderSection.d.ts.map +1 -1
- package/dist/components/checkout/form/Form.d.ts.map +1 -1
- package/dist/components/checkout/form/FormComponentManager.d.ts.map +1 -1
- package/dist/components/checkout/form/PhoneCountrySelector.d.ts.map +1 -1
- package/dist/components/checkout/form/PhoneNumberField.d.ts.map +1 -1
- package/dist/components/common/CountryDialCodeDropdown.d.ts.map +1 -1
- package/dist/components/common/Input.d.ts.map +1 -1
- package/dist/components/common/Select.d.ts.map +1 -1
- package/dist/core/constants/fontSize.constants.d.ts +7 -0
- package/dist/core/constants/fontSize.constants.d.ts.map +1 -0
- package/dist/core/vgs/VGSCollectService.d.ts +0 -7
- package/dist/core/vgs/VGSCollectService.d.ts.map +1 -1
- package/dist/elements/ApplePayElement.d.ts.map +1 -1
- package/dist/elements/EmailElement.d.ts.map +1 -1
- package/dist/elements/PayPalElement.d.ts.map +1 -1
- package/dist/elements/PhoneElement.d.ts.map +1 -1
- package/dist/elements/card/VgsCardAdapter.d.ts.map +1 -1
- package/dist/elements/cardElement.constants.d.ts.map +1 -1
- package/dist/elements/theme/index.d.ts.map +1 -1
- package/dist/elements.es.js +267 -267
- package/dist/factories/createCheckoutProfile.d.ts.map +1 -1
- package/dist/loader.es.js +1 -1
- package/dist/phone.js +477 -474
- package/dist/shared.js +79 -110
- package/dist/types/common/FormData.type.d.ts +0 -2
- package/dist/types/common/FormData.type.d.ts.map +1 -1
- package/dist/types/telemetry/TelemetryEvents.type.d.ts +2 -2
- package/dist/types/telemetry/TelemetryEvents.type.d.ts.map +1 -1
- package/dist/utils/dom/fontFamily.util.d.ts +23 -0
- package/dist/utils/dom/fontFamily.util.d.ts.map +1 -0
- package/dist/utils/dom/googleFontUrl.d.ts +5 -5
- package/dist/utils/dom/googleFontUrl.d.ts.map +1 -1
- package/dist/utils/dom/index.d.ts +1 -0
- package/dist/utils/dom/index.d.ts.map +1 -1
- package/dist/utils/phone/countryDialCodes.d.ts +6 -0
- package/dist/utils/phone/countryDialCodes.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/phone.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { H as e, g as t, h as n, m as r, v as i, w as a, x as o } from "./shared.js";
|
|
2
|
+
import { t as s } from "./shared2.js";
|
|
3
3
|
//#region libs/checkout/src/utils/dom/restoreCursorAfterFormat.util.ts
|
|
4
|
-
var
|
|
4
|
+
var c = (e, t, n) => {
|
|
5
5
|
let r = 0, i = n.length;
|
|
6
6
|
for (let e = 0; e < n.length; e++) if (/\d/.test(n[e]) && r++, r === t) {
|
|
7
7
|
i = e + 1;
|
|
8
8
|
break;
|
|
9
9
|
}
|
|
10
10
|
e.setSelectionRange(i, i);
|
|
11
|
-
},
|
|
11
|
+
}, l = {
|
|
12
12
|
version: 4,
|
|
13
13
|
country_calling_codes: {
|
|
14
14
|
1: [
|
|
@@ -7436,13 +7436,13 @@ var s = (e, t, n) => {
|
|
|
7436
7436
|
};
|
|
7437
7437
|
//#endregion
|
|
7438
7438
|
//#region node_modules/libphonenumber-js/min/exports/withMetadataArgument.js
|
|
7439
|
-
function
|
|
7439
|
+
function u(e, t) {
|
|
7440
7440
|
var n = Array.prototype.slice.call(t);
|
|
7441
|
-
return n.push(
|
|
7441
|
+
return n.push(l), e.apply(this, n);
|
|
7442
7442
|
}
|
|
7443
7443
|
//#endregion
|
|
7444
7444
|
//#region node_modules/libphonenumber-js/es6/tools/semver-compare.js
|
|
7445
|
-
function
|
|
7445
|
+
function d(e, t) {
|
|
7446
7446
|
e = e.split("-"), t = t.split("-");
|
|
7447
7447
|
for (var n = e[0].split("."), r = t[0].split("."), i = 0; i < 3; i++) {
|
|
7448
7448
|
var a = Number(n[i]), o = Number(r[i]);
|
|
@@ -7455,57 +7455,57 @@ function u(e, t) {
|
|
|
7455
7455
|
}
|
|
7456
7456
|
//#endregion
|
|
7457
7457
|
//#region node_modules/libphonenumber-js/es6/helpers/isObject.js
|
|
7458
|
-
var
|
|
7459
|
-
function
|
|
7460
|
-
return e != null && e.constructor ===
|
|
7458
|
+
var f = {}.constructor;
|
|
7459
|
+
function p(e) {
|
|
7460
|
+
return e != null && e.constructor === f;
|
|
7461
7461
|
}
|
|
7462
7462
|
//#endregion
|
|
7463
7463
|
//#region node_modules/libphonenumber-js/es6/helpers/isCallingCode.js
|
|
7464
|
-
var
|
|
7465
|
-
function
|
|
7466
|
-
return
|
|
7464
|
+
var m = /^\d+$/;
|
|
7465
|
+
function h(e) {
|
|
7466
|
+
return m.test(e);
|
|
7467
7467
|
}
|
|
7468
7468
|
//#endregion
|
|
7469
7469
|
//#region node_modules/libphonenumber-js/es6/metadata.js
|
|
7470
|
-
function
|
|
7470
|
+
function g(e) {
|
|
7471
7471
|
"@babel/helpers - typeof";
|
|
7472
|
-
return
|
|
7472
|
+
return g = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7473
7473
|
return typeof e;
|
|
7474
7474
|
} : function(e) {
|
|
7475
7475
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7476
|
-
},
|
|
7476
|
+
}, g(e);
|
|
7477
7477
|
}
|
|
7478
|
-
function
|
|
7478
|
+
function _(e, t) {
|
|
7479
7479
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
7480
7480
|
}
|
|
7481
|
-
function
|
|
7481
|
+
function v(e, t) {
|
|
7482
7482
|
for (var n = 0; n < t.length; n++) {
|
|
7483
7483
|
var r = t[n];
|
|
7484
7484
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ee(r.key), r);
|
|
7485
7485
|
}
|
|
7486
7486
|
}
|
|
7487
|
-
function
|
|
7488
|
-
return t &&
|
|
7487
|
+
function y(e, t, n) {
|
|
7488
|
+
return t && v(e.prototype, t), n && v(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
7489
7489
|
}
|
|
7490
7490
|
function ee(e) {
|
|
7491
7491
|
var t = te(e, "string");
|
|
7492
|
-
return
|
|
7492
|
+
return g(t) == "symbol" ? t : t + "";
|
|
7493
7493
|
}
|
|
7494
7494
|
function te(e, t) {
|
|
7495
|
-
if (
|
|
7495
|
+
if (g(e) != "object" || !e) return e;
|
|
7496
7496
|
var n = e[Symbol.toPrimitive];
|
|
7497
7497
|
if (n !== void 0) {
|
|
7498
7498
|
var r = n.call(e, t || "default");
|
|
7499
|
-
if (
|
|
7499
|
+
if (g(r) != "object") return r;
|
|
7500
7500
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
7501
7501
|
}
|
|
7502
7502
|
return (t === "string" ? String : Number)(e);
|
|
7503
7503
|
}
|
|
7504
|
-
var ne = "1.2.0", re = "1.7.35", ie = " ext. ",
|
|
7504
|
+
var ne = "1.2.0", re = "1.7.35", ie = " ext. ", b = /*#__PURE__*/ function() {
|
|
7505
7505
|
function e(t) {
|
|
7506
|
-
|
|
7506
|
+
_(this, e), ue(t), this.metadata = t, me.call(this, t);
|
|
7507
7507
|
}
|
|
7508
|
-
return
|
|
7508
|
+
return y(e, [
|
|
7509
7509
|
{
|
|
7510
7510
|
key: "getCountries",
|
|
7511
7511
|
value: function() {
|
|
@@ -7560,7 +7560,7 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", y = /*#__PURE__*/ function() {
|
|
|
7560
7560
|
key: "selectNumberingPlan",
|
|
7561
7561
|
value: function(e, t) {
|
|
7562
7562
|
var n, r;
|
|
7563
|
-
if (e && (
|
|
7563
|
+
if (e && (h(e) ? r = e : n = e), t && (r = t), n && n !== "001") {
|
|
7564
7564
|
var i = this.getCountryMetadata(n);
|
|
7565
7565
|
if (!i) throw Error(`Unknown country: ${n}`);
|
|
7566
7566
|
this.numberingPlan = new ae(i, this);
|
|
@@ -7692,9 +7692,9 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", y = /*#__PURE__*/ function() {
|
|
|
7692
7692
|
]);
|
|
7693
7693
|
}(), ae = /*#__PURE__*/ function() {
|
|
7694
7694
|
function e(t, n) {
|
|
7695
|
-
|
|
7695
|
+
_(this, e), this.globalMetadataObject = n, this.metadata = t, me.call(this, n.metadata);
|
|
7696
7696
|
}
|
|
7697
|
-
return
|
|
7697
|
+
return y(e, [
|
|
7698
7698
|
{
|
|
7699
7699
|
key: "callingCode",
|
|
7700
7700
|
value: function() {
|
|
@@ -7833,9 +7833,9 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", y = /*#__PURE__*/ function() {
|
|
|
7833
7833
|
]);
|
|
7834
7834
|
}(), oe = /*#__PURE__*/ function() {
|
|
7835
7835
|
function e(t, n) {
|
|
7836
|
-
|
|
7836
|
+
_(this, e), this._format = t, this.metadata = n;
|
|
7837
7837
|
}
|
|
7838
|
-
return
|
|
7838
|
+
return y(e, [
|
|
7839
7839
|
{
|
|
7840
7840
|
key: "pattern",
|
|
7841
7841
|
value: function() {
|
|
@@ -7887,9 +7887,9 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", y = /*#__PURE__*/ function() {
|
|
|
7887
7887
|
]);
|
|
7888
7888
|
}(), se = /^\(?\$1\)?$/, ce = /*#__PURE__*/ function() {
|
|
7889
7889
|
function e(t, n) {
|
|
7890
|
-
|
|
7890
|
+
_(this, e), this.type = t, this.metadata = n;
|
|
7891
7891
|
}
|
|
7892
|
-
return
|
|
7892
|
+
return y(e, [{
|
|
7893
7893
|
key: "pattern",
|
|
7894
7894
|
value: function() {
|
|
7895
7895
|
return this.metadata.v1 ? this.type : this.type[0];
|
|
@@ -7917,14 +7917,14 @@ function le(e, t) {
|
|
|
7917
7917
|
}
|
|
7918
7918
|
function ue(e) {
|
|
7919
7919
|
if (!e) throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
7920
|
-
if (!
|
|
7920
|
+
if (!p(e) || !p(e.countries)) throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${p(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + de(e) + ": " + e}.`);
|
|
7921
7921
|
}
|
|
7922
7922
|
/* istanbul ignore next */
|
|
7923
7923
|
var de = function(e) {
|
|
7924
|
-
return
|
|
7924
|
+
return g(e);
|
|
7925
7925
|
};
|
|
7926
7926
|
function fe(e, t) {
|
|
7927
|
-
var n = new
|
|
7927
|
+
var n = new b(t);
|
|
7928
7928
|
if (n.hasCountry(e)) return n.selectNumberingPlan(e).countryCallingCode();
|
|
7929
7929
|
throw Error(`Unknown country: ${e}`);
|
|
7930
7930
|
}
|
|
@@ -7933,7 +7933,7 @@ function pe(e, t) {
|
|
|
7933
7933
|
}
|
|
7934
7934
|
function me(e) {
|
|
7935
7935
|
var t = e.version;
|
|
7936
|
-
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ?
|
|
7936
|
+
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? d(t, ne) === -1 ? this.v2 = !0 : d(t, re) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
7937
7937
|
}
|
|
7938
7938
|
//#endregion
|
|
7939
7939
|
//#region node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
|
|
@@ -7975,11 +7975,11 @@ function ve(e, t) {
|
|
|
7975
7975
|
}
|
|
7976
7976
|
//#endregion
|
|
7977
7977
|
//#region node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js
|
|
7978
|
-
function
|
|
7978
|
+
function x(e, t, n) {
|
|
7979
7979
|
return ye(e, void 0, t, n);
|
|
7980
7980
|
}
|
|
7981
7981
|
function ye(e, t, n, r) {
|
|
7982
|
-
n && (r = new
|
|
7982
|
+
n && (r = new b(r.metadata), r.selectNumberingPlan(n));
|
|
7983
7983
|
var i = r.type(t), a = i && i.possibleLengths() || r.possibleLengths();
|
|
7984
7984
|
if (!a) return "IS_POSSIBLE";
|
|
7985
7985
|
if (t === "FIXED_LINE_OR_MOBILE") {
|
|
@@ -7996,7 +7996,7 @@ function ye(e, t, n, r) {
|
|
|
7996
7996
|
function be(e, t, n) {
|
|
7997
7997
|
/* istanbul ignore if */
|
|
7998
7998
|
t === void 0 && (t = {});
|
|
7999
|
-
var r = new
|
|
7999
|
+
var r = new b(n);
|
|
8000
8000
|
if (t.v2) {
|
|
8001
8001
|
if (!e.countryCallingCode) throw Error("Invalid phone number object passed");
|
|
8002
8002
|
r.selectNumberingPlan(e.country || e.countryCallingCode);
|
|
@@ -8015,14 +8015,14 @@ function be(e, t, n) {
|
|
|
8015
8015
|
throw Error("Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.");
|
|
8016
8016
|
}
|
|
8017
8017
|
function xe(e, t) {
|
|
8018
|
-
switch (
|
|
8018
|
+
switch (x(e, void 0, t)) {
|
|
8019
8019
|
case "IS_POSSIBLE": return !0;
|
|
8020
8020
|
default: return !1;
|
|
8021
8021
|
}
|
|
8022
8022
|
}
|
|
8023
8023
|
//#endregion
|
|
8024
8024
|
//#region node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js
|
|
8025
|
-
function
|
|
8025
|
+
function S(e, t) {
|
|
8026
8026
|
return e ||= "", RegExp("^(?:" + t + ")$").test(e);
|
|
8027
8027
|
}
|
|
8028
8028
|
//#endregion
|
|
@@ -8065,74 +8065,74 @@ var Te = [
|
|
|
8065
8065
|
"UAN",
|
|
8066
8066
|
"VOICEMAIL"
|
|
8067
8067
|
];
|
|
8068
|
-
function
|
|
8068
|
+
function Ee(e, t, n) {
|
|
8069
8069
|
if (t ||= {}, e.country || e.countryCallingCode) {
|
|
8070
|
-
var r = new
|
|
8070
|
+
var r = new b(n);
|
|
8071
8071
|
r.selectNumberingPlan(e.country || e.countryCallingCode);
|
|
8072
8072
|
var i = t.v2 ? e.nationalNumber : e.phone;
|
|
8073
|
-
if (
|
|
8074
|
-
if (
|
|
8073
|
+
if (S(i, r.nationalNumberPattern())) {
|
|
8074
|
+
if (De(i, "FIXED_LINE", r)) return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || De(i, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
8075
8075
|
for (var a = Se(Te), o; !(o = a()).done;) {
|
|
8076
8076
|
var s = o.value;
|
|
8077
|
-
if (
|
|
8077
|
+
if (De(i, s, r)) return s;
|
|
8078
8078
|
}
|
|
8079
8079
|
}
|
|
8080
8080
|
}
|
|
8081
8081
|
}
|
|
8082
|
-
function
|
|
8082
|
+
function De(e, t, n) {
|
|
8083
8083
|
var r = n.type(t);
|
|
8084
|
-
return !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(e.length) < 0 ? !1 :
|
|
8084
|
+
return !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(e.length) < 0 ? !1 : S(e, r.pattern());
|
|
8085
8085
|
}
|
|
8086
8086
|
//#endregion
|
|
8087
8087
|
//#region node_modules/libphonenumber-js/es6/isValid.js
|
|
8088
|
-
function
|
|
8088
|
+
function Oe(e, t, n) {
|
|
8089
8089
|
t ||= {};
|
|
8090
|
-
var r = new
|
|
8091
|
-
return r.selectNumberingPlan(e.country || e.countryCallingCode), r.hasTypes() ?
|
|
8090
|
+
var r = new b(n);
|
|
8091
|
+
return r.selectNumberingPlan(e.country || e.countryCallingCode), r.hasTypes() ? Ee(e, t, r.metadata) !== void 0 : S(t.v2 ? e.nationalNumber : e.phone, r.nationalNumberPattern());
|
|
8092
8092
|
}
|
|
8093
8093
|
//#endregion
|
|
8094
8094
|
//#region node_modules/libphonenumber-js/es6/helpers/isCountryCode.js
|
|
8095
|
-
var
|
|
8096
|
-
function
|
|
8097
|
-
return
|
|
8095
|
+
var ke = /^[A-Z]{2}$/;
|
|
8096
|
+
function Ae(e) {
|
|
8097
|
+
return ke.test(e);
|
|
8098
8098
|
}
|
|
8099
|
-
function
|
|
8100
|
-
var n, r, i = new
|
|
8101
|
-
return
|
|
8099
|
+
function je(e, t) {
|
|
8100
|
+
var n, r, i = new b(t);
|
|
8101
|
+
return Ae(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : r = e, {
|
|
8102
8102
|
country: n,
|
|
8103
8103
|
callingCode: r
|
|
8104
8104
|
};
|
|
8105
8105
|
}
|
|
8106
8106
|
//#endregion
|
|
8107
8107
|
//#region node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
|
|
8108
|
-
function
|
|
8109
|
-
var r = new
|
|
8108
|
+
function Me(e, t, n) {
|
|
8109
|
+
var r = new b(n).getCountryCodesForCallingCode(e);
|
|
8110
8110
|
return r ? r.filter(function(e) {
|
|
8111
|
-
return
|
|
8111
|
+
return Ne(t, e, n);
|
|
8112
8112
|
}) : [];
|
|
8113
8113
|
}
|
|
8114
|
-
function
|
|
8115
|
-
var r = new
|
|
8114
|
+
function Ne(e, t, n) {
|
|
8115
|
+
var r = new b(n);
|
|
8116
8116
|
return r.selectNumberingPlan(t), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
8117
8117
|
}
|
|
8118
8118
|
//#endregion
|
|
8119
8119
|
//#region node_modules/libphonenumber-js/es6/constants.js
|
|
8120
|
-
var C = "0-90-9٠-٩۰-۹", w = "-‐-―−ー-//.. \xA0 ()()[]\\[\\]~⁓∼~", T = "++",
|
|
8121
|
-
function
|
|
8120
|
+
var C = "0-90-9٠-٩۰-۹", w = "-‐-―−ー-//.. \xA0 ()()[]\\[\\]~⁓∼~", T = "++", Pe = RegExp("([" + C + "])");
|
|
8121
|
+
function Fe(e, t, n, r) {
|
|
8122
8122
|
if (t) {
|
|
8123
|
-
var i = new
|
|
8123
|
+
var i = new b(r);
|
|
8124
8124
|
i.selectNumberingPlan(t || n);
|
|
8125
8125
|
var a = new RegExp(i.IDDPrefix());
|
|
8126
8126
|
if (e.search(a) === 0) {
|
|
8127
8127
|
e = e.slice(e.match(a)[0].length);
|
|
8128
|
-
var o = e.match(
|
|
8128
|
+
var o = e.match(Pe);
|
|
8129
8129
|
if (!(o && o[1] != null && o[1].length > 0 && o[1] === "0")) return e;
|
|
8130
8130
|
}
|
|
8131
8131
|
}
|
|
8132
8132
|
}
|
|
8133
8133
|
//#endregion
|
|
8134
8134
|
//#region node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js
|
|
8135
|
-
function
|
|
8135
|
+
function Ie(e, t) {
|
|
8136
8136
|
if (e && t.numberingPlan.nationalPrefixForParsing()) {
|
|
8137
8137
|
var n = RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
|
|
8138
8138
|
if (r) {
|
|
@@ -8158,10 +8158,10 @@ function Fe(e, t) {
|
|
|
8158
8158
|
}
|
|
8159
8159
|
//#endregion
|
|
8160
8160
|
//#region node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
|
|
8161
|
-
function
|
|
8161
|
+
function Le(e, t) {
|
|
8162
8162
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8163
8163
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
8164
|
-
if (Array.isArray(e) || (n =
|
|
8164
|
+
if (Array.isArray(e) || (n = Re(e)) || t && e && typeof e.length == "number") {
|
|
8165
8165
|
n && (e = n);
|
|
8166
8166
|
var r = 0;
|
|
8167
8167
|
return function() {
|
|
@@ -8173,24 +8173,24 @@ function Ie(e, t) {
|
|
|
8173
8173
|
}
|
|
8174
8174
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8175
8175
|
}
|
|
8176
|
-
function
|
|
8176
|
+
function Re(e, t) {
|
|
8177
8177
|
if (e) {
|
|
8178
|
-
if (typeof e == "string") return
|
|
8178
|
+
if (typeof e == "string") return ze(e, t);
|
|
8179
8179
|
var n = {}.toString.call(e).slice(8, -1);
|
|
8180
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
8180
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ze(e, t) : void 0;
|
|
8181
8181
|
}
|
|
8182
8182
|
}
|
|
8183
|
-
function
|
|
8183
|
+
function ze(e, t) {
|
|
8184
8184
|
(t == null || t > e.length) && (t = e.length);
|
|
8185
8185
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8186
8186
|
return r;
|
|
8187
8187
|
}
|
|
8188
|
-
function
|
|
8189
|
-
for (var r = new
|
|
8188
|
+
function Be(e, t, n) {
|
|
8189
|
+
for (var r = new b(n), i = Le(t), a; !(a = i()).done;) {
|
|
8190
8190
|
var o = a.value;
|
|
8191
8191
|
if (r.selectNumberingPlan(o), r.leadingDigits()) {
|
|
8192
8192
|
if (e && e.search(r.leadingDigits()) === 0) return o;
|
|
8193
|
-
} else if (
|
|
8193
|
+
} else if (Ee({
|
|
8194
8194
|
phone: e,
|
|
8195
8195
|
country: o
|
|
8196
8196
|
}, void 0, r.metadata)) return o;
|
|
@@ -8198,25 +8198,25 @@ function ze(e, t, n) {
|
|
|
8198
8198
|
}
|
|
8199
8199
|
function E(e, t) {
|
|
8200
8200
|
var n = t.nationalNumber, r = t.metadata, i = r.getCountryCodesForCallingCode(e);
|
|
8201
|
-
if (i) return i.length === 1 ? i[0] :
|
|
8201
|
+
if (i) return i.length === 1 ? i[0] : Be(n, i, r.metadata);
|
|
8202
8202
|
}
|
|
8203
8203
|
//#endregion
|
|
8204
8204
|
//#region node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js
|
|
8205
|
-
function
|
|
8206
|
-
var r =
|
|
8207
|
-
return a !== e && (!
|
|
8205
|
+
function Ve(e, t, n) {
|
|
8206
|
+
var r = Ie(e, n), i = r.carrierCode, a = r.nationalNumber;
|
|
8207
|
+
return a !== e && (!He(e, a, n) || n.numberingPlan.possibleLengths() && (t ||= E(n.numberingPlan.callingCode(), {
|
|
8208
8208
|
nationalNumber: a,
|
|
8209
8209
|
metadata: n
|
|
8210
|
-
}), !
|
|
8210
|
+
}), !Ue(a, t, n))) ? { nationalNumber: e } : {
|
|
8211
8211
|
nationalNumber: a,
|
|
8212
8212
|
carrierCode: i
|
|
8213
8213
|
};
|
|
8214
8214
|
}
|
|
8215
|
-
function Ve(e, t, n) {
|
|
8216
|
-
return !(x(e, n.nationalNumberPattern()) && !x(t, n.nationalNumberPattern()));
|
|
8217
|
-
}
|
|
8218
8215
|
function He(e, t, n) {
|
|
8219
|
-
|
|
8216
|
+
return !(S(e, n.nationalNumberPattern()) && !S(t, n.nationalNumberPattern()));
|
|
8217
|
+
}
|
|
8218
|
+
function Ue(e, t, n) {
|
|
8219
|
+
switch (x(e, t, n)) {
|
|
8220
8220
|
case "TOO_SHORT":
|
|
8221
8221
|
case "INVALID_LENGTH": return !1;
|
|
8222
8222
|
default: return !0;
|
|
@@ -8224,14 +8224,14 @@ function He(e, t, n) {
|
|
|
8224
8224
|
}
|
|
8225
8225
|
//#endregion
|
|
8226
8226
|
//#region node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js
|
|
8227
|
-
function
|
|
8227
|
+
function We(e, t, n, r, i) {
|
|
8228
8228
|
if (!(t || n || r)) return { number: e };
|
|
8229
8229
|
var a = t || n ? fe(t || n, i) : r;
|
|
8230
8230
|
if (e.indexOf(a) === 0) {
|
|
8231
|
-
var o = new
|
|
8231
|
+
var o = new b(i);
|
|
8232
8232
|
o.selectNumberingPlan(t || n || r);
|
|
8233
|
-
var s = e.slice(a.length), c =
|
|
8234
|
-
if (!
|
|
8233
|
+
var s = e.slice(a.length), c = Ve(s, void 0, o).nationalNumber, l = Ve(e, void 0, o).nationalNumber;
|
|
8234
|
+
if (!S(l, o.nationalNumberPattern()) && S(c, o.nationalNumberPattern()) || x(l, void 0, o) === "TOO_LONG") return {
|
|
8235
8235
|
countryCallingCode: a,
|
|
8236
8236
|
number: s
|
|
8237
8237
|
};
|
|
@@ -8240,15 +8240,15 @@ function Ue(e, t, n, r, i) {
|
|
|
8240
8240
|
}
|
|
8241
8241
|
//#endregion
|
|
8242
8242
|
//#region node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js
|
|
8243
|
-
function
|
|
8243
|
+
function Ge(e, t, n, r, i) {
|
|
8244
8244
|
if (!e) return {};
|
|
8245
8245
|
var a;
|
|
8246
8246
|
if (e[0] !== "+") {
|
|
8247
|
-
var o =
|
|
8247
|
+
var o = Fe(e, t || n, r, i);
|
|
8248
8248
|
if (o && o !== e) a = !0, e = "+" + o;
|
|
8249
8249
|
else {
|
|
8250
8250
|
if (t || n || r) {
|
|
8251
|
-
var s =
|
|
8251
|
+
var s = We(e, t, n, r, i), c = s.countryCallingCode, l = s.number;
|
|
8252
8252
|
if (c) return {
|
|
8253
8253
|
countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
|
|
8254
8254
|
countryCallingCode: c,
|
|
@@ -8259,7 +8259,7 @@ function We(e, t, n, r, i) {
|
|
|
8259
8259
|
}
|
|
8260
8260
|
}
|
|
8261
8261
|
if (e[1] === "0") return {};
|
|
8262
|
-
for (var u = new
|
|
8262
|
+
for (var u = new b(i), d = 2; d - 1 <= 3 && d <= e.length;) {
|
|
8263
8263
|
var f = e.slice(1, d);
|
|
8264
8264
|
if (u.hasCallingCode(f)) return u.selectNumberingPlan(f), {
|
|
8265
8265
|
countryCallingCodeSource: a ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
|
@@ -8272,47 +8272,47 @@ function We(e, t, n, r, i) {
|
|
|
8272
8272
|
}
|
|
8273
8273
|
//#endregion
|
|
8274
8274
|
//#region node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js
|
|
8275
|
-
function
|
|
8275
|
+
function Ke(e) {
|
|
8276
8276
|
return e.replace(RegExp(`[${w}]+`, "g"), " ").trim();
|
|
8277
8277
|
}
|
|
8278
8278
|
//#endregion
|
|
8279
8279
|
//#region node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js
|
|
8280
|
-
var
|
|
8281
|
-
function
|
|
8280
|
+
var qe = /(\$\d)/;
|
|
8281
|
+
function Je(e, t, n) {
|
|
8282
8282
|
var r = n.useInternationalFormat, i = n.withNationalPrefix;
|
|
8283
8283
|
n.carrierCode, n.metadata;
|
|
8284
|
-
var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(
|
|
8285
|
-
return r ?
|
|
8284
|
+
var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(qe, t.nationalPrefixFormattingRule()) : t.format());
|
|
8285
|
+
return r ? Ke(a) : a;
|
|
8286
8286
|
}
|
|
8287
8287
|
//#endregion
|
|
8288
8288
|
//#region node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js
|
|
8289
|
-
var
|
|
8290
|
-
function
|
|
8291
|
-
var r = new
|
|
8289
|
+
var Ye = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
8290
|
+
function Xe(e, t, n) {
|
|
8291
|
+
var r = new b(n);
|
|
8292
8292
|
if (r.selectNumberingPlan(e || t), r.defaultIDDPrefix()) return r.defaultIDDPrefix();
|
|
8293
|
-
if (
|
|
8293
|
+
if (Ye.test(r.IDDPrefix())) return r.IDDPrefix();
|
|
8294
8294
|
}
|
|
8295
8295
|
//#endregion
|
|
8296
8296
|
//#region node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js
|
|
8297
|
-
var
|
|
8297
|
+
var Ze = ";ext=", D = function(e) {
|
|
8298
8298
|
return `([${C}]{1,${e}})`;
|
|
8299
8299
|
};
|
|
8300
|
-
function
|
|
8301
|
-
var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p =
|
|
8300
|
+
function Qe(e) {
|
|
8301
|
+
var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p = Ze + D(t), m = a + c + o + D(t) + s, h = a + l + o + D(r) + s, g = u + D(i) + "#", _ = d + f + o + D(n) + s, v = d + "(?:,)+" + o + D(r) + s;
|
|
8302
8302
|
return p + "|" + m + "|" + h + "|" + g + "|" + _ + "|" + v;
|
|
8303
8303
|
}
|
|
8304
8304
|
//#endregion
|
|
8305
8305
|
//#region node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js
|
|
8306
|
-
var
|
|
8307
|
-
function rt(e) {
|
|
8308
|
-
return e.length >= 2 && nt.test(e);
|
|
8309
|
-
}
|
|
8306
|
+
var $e = "[" + C + "]{2}", et = "[" + T + "]{0,1}(?:[" + w + "]*[" + C + "]){3,}[" + w + C + "]*", tt = RegExp("^[" + T + "]{0,1}(?:[" + w + "]*[" + C + "]){1,2}$", "i"), nt = et + "(?:" + Qe() + ")?", rt = RegExp("^" + $e + "$|^" + nt + "$", "i");
|
|
8310
8307
|
function it(e) {
|
|
8311
|
-
return
|
|
8308
|
+
return e.length >= 2 && rt.test(e);
|
|
8309
|
+
}
|
|
8310
|
+
function at(e) {
|
|
8311
|
+
return tt.test(e);
|
|
8312
8312
|
}
|
|
8313
8313
|
//#endregion
|
|
8314
8314
|
//#region node_modules/libphonenumber-js/es6/helpers/RFC3966.js
|
|
8315
|
-
function
|
|
8315
|
+
function ot(e) {
|
|
8316
8316
|
var t = e.number, n = e.ext;
|
|
8317
8317
|
if (!t) return "";
|
|
8318
8318
|
if (t[0] !== "+") throw Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
|
|
@@ -8320,12 +8320,12 @@ function at(e) {
|
|
|
8320
8320
|
}
|
|
8321
8321
|
//#endregion
|
|
8322
8322
|
//#region node_modules/libphonenumber-js/es6/format.js
|
|
8323
|
-
var
|
|
8323
|
+
var st = { formatExtension: function(e, t, n) {
|
|
8324
8324
|
return `${e}${n.ext()}${t}`;
|
|
8325
8325
|
} };
|
|
8326
|
-
function
|
|
8327
|
-
n = n ? dt({},
|
|
8328
|
-
var i = new
|
|
8326
|
+
function ct(e, t, n, r) {
|
|
8327
|
+
n = n ? dt({}, st, n) : st;
|
|
8328
|
+
var i = new b(r);
|
|
8329
8329
|
if (e.country && e.country !== "001") {
|
|
8330
8330
|
if (!i.hasCountry(e.country)) throw Error(`Unknown country: ${e.country}`);
|
|
8331
8331
|
i.selectNumberingPlan(e.country);
|
|
@@ -8333,39 +8333,39 @@ function st(e, t, n, r) {
|
|
|
8333
8333
|
else return e.phone || "";
|
|
8334
8334
|
var a = i.countryCallingCode(), o = n.v2 ? e.nationalNumber : e.phone, s;
|
|
8335
8335
|
switch (t) {
|
|
8336
|
-
case "NATIONAL": return o ? (s = O(o, e.carrierCode, "NATIONAL", i, n),
|
|
8337
|
-
case "INTERNATIONAL": return o ? (s = O(o, null, "INTERNATIONAL", i, n), s = `+${a} ${s}`,
|
|
8336
|
+
case "NATIONAL": return o ? (s = O(o, e.carrierCode, "NATIONAL", i, n), k(s, e.ext, i, n.formatExtension)) : "";
|
|
8337
|
+
case "INTERNATIONAL": return o ? (s = O(o, null, "INTERNATIONAL", i, n), s = `+${a} ${s}`, k(s, e.ext, i, n.formatExtension)) : `+${a}`;
|
|
8338
8338
|
case "E.164": return `+${a}${o}`;
|
|
8339
|
-
case "RFC3966": return
|
|
8339
|
+
case "RFC3966": return ot({
|
|
8340
8340
|
number: `+${a}${o}`,
|
|
8341
8341
|
ext: e.ext
|
|
8342
8342
|
});
|
|
8343
8343
|
case "IDD":
|
|
8344
8344
|
if (!n.fromCountry) return;
|
|
8345
8345
|
var c = ut(o, e.carrierCode, a, n.fromCountry, i);
|
|
8346
|
-
return c ?
|
|
8346
|
+
return c ? k(c, e.ext, i, n.formatExtension) : void 0;
|
|
8347
8347
|
default: throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`);
|
|
8348
8348
|
}
|
|
8349
8349
|
}
|
|
8350
8350
|
function O(e, t, n, r, i) {
|
|
8351
|
-
var a =
|
|
8352
|
-
return a ?
|
|
8351
|
+
var a = lt(r.formats(), e);
|
|
8352
|
+
return a ? Je(e, a, {
|
|
8353
8353
|
useInternationalFormat: n === "INTERNATIONAL",
|
|
8354
8354
|
withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
|
|
8355
8355
|
carrierCode: t,
|
|
8356
8356
|
metadata: r
|
|
8357
8357
|
}) : e;
|
|
8358
8358
|
}
|
|
8359
|
-
function
|
|
8359
|
+
function lt(e, t) {
|
|
8360
8360
|
return ft(e, function(e) {
|
|
8361
8361
|
if (e.leadingDigitsPatterns().length > 0) {
|
|
8362
8362
|
var n = e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length - 1];
|
|
8363
8363
|
if (t.search(n) !== 0) return !1;
|
|
8364
8364
|
}
|
|
8365
|
-
return
|
|
8365
|
+
return S(t, e.pattern());
|
|
8366
8366
|
});
|
|
8367
8367
|
}
|
|
8368
|
-
function
|
|
8368
|
+
function k(e, t, n, r) {
|
|
8369
8369
|
return t ? r(e, t, n) : e;
|
|
8370
8370
|
}
|
|
8371
8371
|
function ut(e, t, n, r, i) {
|
|
@@ -8373,7 +8373,7 @@ function ut(e, t, n, r, i) {
|
|
|
8373
8373
|
var a = O(e, t, "NATIONAL", i);
|
|
8374
8374
|
return n === "1" ? n + " " + a : a;
|
|
8375
8375
|
}
|
|
8376
|
-
var o =
|
|
8376
|
+
var o = Xe(r, void 0, i.metadata);
|
|
8377
8377
|
if (o) return `${o} ${n} ${O(e, null, "INTERNATIONAL", i)}`;
|
|
8378
8378
|
}
|
|
8379
8379
|
function dt() {
|
|
@@ -8391,13 +8391,13 @@ function ft(e, t) {
|
|
|
8391
8391
|
}
|
|
8392
8392
|
//#endregion
|
|
8393
8393
|
//#region node_modules/libphonenumber-js/es6/PhoneNumber.js
|
|
8394
|
-
function
|
|
8394
|
+
function A(e) {
|
|
8395
8395
|
"@babel/helpers - typeof";
|
|
8396
|
-
return
|
|
8396
|
+
return A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8397
8397
|
return typeof e;
|
|
8398
8398
|
} : function(e) {
|
|
8399
8399
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8400
|
-
},
|
|
8400
|
+
}, A(e);
|
|
8401
8401
|
}
|
|
8402
8402
|
function pt(e, t) {
|
|
8403
8403
|
var n = Object.keys(e);
|
|
@@ -8442,14 +8442,14 @@ function vt(e, t, n) {
|
|
|
8442
8442
|
}
|
|
8443
8443
|
function yt(e) {
|
|
8444
8444
|
var t = bt(e, "string");
|
|
8445
|
-
return
|
|
8445
|
+
return A(t) == "symbol" ? t : t + "";
|
|
8446
8446
|
}
|
|
8447
8447
|
function bt(e, t) {
|
|
8448
|
-
if (
|
|
8448
|
+
if (A(e) != "object" || !e) return e;
|
|
8449
8449
|
var n = e[Symbol.toPrimitive];
|
|
8450
8450
|
if (n !== void 0) {
|
|
8451
8451
|
var r = n.call(e, t || "default");
|
|
8452
|
-
if (
|
|
8452
|
+
if (A(r) != "object") return r;
|
|
8453
8453
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
8454
8454
|
}
|
|
8455
8455
|
return (t === "string" ? String : Number)(e);
|
|
@@ -8459,17 +8459,17 @@ var xt = /*#__PURE__*/ function() {
|
|
|
8459
8459
|
if (gt(this, e), !t) throw TypeError("First argument is required");
|
|
8460
8460
|
if (typeof t != "string") throw TypeError("First argument must be a string");
|
|
8461
8461
|
if (t[0] === "+" && !n) throw TypeError("`metadata` argument not passed");
|
|
8462
|
-
if (
|
|
8462
|
+
if (p(n) && p(n.countries)) {
|
|
8463
8463
|
r = n;
|
|
8464
8464
|
var i = t;
|
|
8465
8465
|
if (!St.test(i)) throw Error("Invalid `number` argument passed: must consist of a \"+\" followed by digits");
|
|
8466
|
-
var a =
|
|
8466
|
+
var a = Ge(i, void 0, void 0, void 0, r), o = a.countryCallingCode;
|
|
8467
8467
|
if (n = a.number, t = o, !n) throw Error("Invalid `number` argument passed: too short");
|
|
8468
8468
|
}
|
|
8469
8469
|
if (!n) throw TypeError("`nationalNumber` argument is required");
|
|
8470
8470
|
if (typeof n != "string") throw TypeError("`nationalNumber` argument must be a string");
|
|
8471
8471
|
ue(r);
|
|
8472
|
-
var s =
|
|
8472
|
+
var s = je(t, r), c = s.country, l = s.callingCode;
|
|
8473
8473
|
this.country = c, this.countryCallingCode = l, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
|
8474
8474
|
return r;
|
|
8475
8475
|
};
|
|
@@ -8484,7 +8484,7 @@ var xt = /*#__PURE__*/ function() {
|
|
|
8484
8484
|
{
|
|
8485
8485
|
key: "getPossibleCountries",
|
|
8486
8486
|
value: function() {
|
|
8487
|
-
return this.country ? [this.country] :
|
|
8487
|
+
return this.country ? [this.country] : Me(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
|
8488
8488
|
}
|
|
8489
8489
|
},
|
|
8490
8490
|
{
|
|
@@ -8496,13 +8496,13 @@ var xt = /*#__PURE__*/ function() {
|
|
|
8496
8496
|
{
|
|
8497
8497
|
key: "isValid",
|
|
8498
8498
|
value: function() {
|
|
8499
|
-
return
|
|
8499
|
+
return Oe(this, { v2: !0 }, this.getMetadata());
|
|
8500
8500
|
}
|
|
8501
8501
|
},
|
|
8502
8502
|
{
|
|
8503
8503
|
key: "isNonGeographic",
|
|
8504
8504
|
value: function() {
|
|
8505
|
-
return new
|
|
8505
|
+
return new b(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode);
|
|
8506
8506
|
}
|
|
8507
8507
|
},
|
|
8508
8508
|
{
|
|
@@ -8514,13 +8514,13 @@ var xt = /*#__PURE__*/ function() {
|
|
|
8514
8514
|
{
|
|
8515
8515
|
key: "getType",
|
|
8516
8516
|
value: function() {
|
|
8517
|
-
return
|
|
8517
|
+
return Ee(this, { v2: !0 }, this.getMetadata());
|
|
8518
8518
|
}
|
|
8519
8519
|
},
|
|
8520
8520
|
{
|
|
8521
8521
|
key: "format",
|
|
8522
8522
|
value: function(e, t) {
|
|
8523
|
-
return
|
|
8523
|
+
return ct(this, e, t ? mt(mt({}, t), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
|
|
8524
8524
|
}
|
|
8525
8525
|
},
|
|
8526
8526
|
{
|
|
@@ -8545,13 +8545,13 @@ var xt = /*#__PURE__*/ function() {
|
|
|
8545
8545
|
}(), St = /^\+\d+$/;
|
|
8546
8546
|
//#endregion
|
|
8547
8547
|
//#region node_modules/libphonenumber-js/es6/ParseError.js
|
|
8548
|
-
function
|
|
8548
|
+
function j(e) {
|
|
8549
8549
|
"@babel/helpers - typeof";
|
|
8550
|
-
return
|
|
8550
|
+
return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8551
8551
|
return typeof e;
|
|
8552
8552
|
} : function(e) {
|
|
8553
8553
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8554
|
-
},
|
|
8554
|
+
}, j(e);
|
|
8555
8555
|
}
|
|
8556
8556
|
function Ct(e, t) {
|
|
8557
8557
|
for (var n = 0; n < t.length; n++) {
|
|
@@ -8564,14 +8564,14 @@ function wt(e, t, n) {
|
|
|
8564
8564
|
}
|
|
8565
8565
|
function Tt(e) {
|
|
8566
8566
|
var t = Et(e, "string");
|
|
8567
|
-
return
|
|
8567
|
+
return j(t) == "symbol" ? t : t + "";
|
|
8568
8568
|
}
|
|
8569
8569
|
function Et(e, t) {
|
|
8570
|
-
if (
|
|
8570
|
+
if (j(e) != "object" || !e) return e;
|
|
8571
8571
|
var n = e[Symbol.toPrimitive];
|
|
8572
8572
|
if (n !== void 0) {
|
|
8573
8573
|
var r = n.call(e, t || "default");
|
|
8574
|
-
if (
|
|
8574
|
+
if (j(r) != "object") return r;
|
|
8575
8575
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
8576
8576
|
}
|
|
8577
8577
|
return (t === "string" ? String : Number)(e);
|
|
@@ -8580,10 +8580,10 @@ function Dt(e, t) {
|
|
|
8580
8580
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
8581
8581
|
}
|
|
8582
8582
|
function Ot(e, t, n) {
|
|
8583
|
-
return t =
|
|
8583
|
+
return t = N(t), kt(e, Pt() ? Reflect.construct(t, n || [], N(e).constructor) : t.apply(e, n));
|
|
8584
8584
|
}
|
|
8585
8585
|
function kt(e, t) {
|
|
8586
|
-
if (t && (
|
|
8586
|
+
if (t && (j(t) == "object" || typeof t == "function")) return t;
|
|
8587
8587
|
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
8588
8588
|
return At(e);
|
|
8589
8589
|
}
|
|
@@ -8597,7 +8597,7 @@ function jt(e, t) {
|
|
|
8597
8597
|
value: e,
|
|
8598
8598
|
writable: !0,
|
|
8599
8599
|
configurable: !0
|
|
8600
|
-
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
8600
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && M(e, t);
|
|
8601
8601
|
}
|
|
8602
8602
|
function Mt(e) {
|
|
8603
8603
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
@@ -8609,14 +8609,14 @@ function Mt(e) {
|
|
|
8609
8609
|
t.set(e, n);
|
|
8610
8610
|
}
|
|
8611
8611
|
function n() {
|
|
8612
|
-
return Nt(e, arguments,
|
|
8612
|
+
return Nt(e, arguments, N(this).constructor);
|
|
8613
8613
|
}
|
|
8614
8614
|
return n.prototype = Object.create(e.prototype, { constructor: {
|
|
8615
8615
|
value: n,
|
|
8616
8616
|
enumerable: !1,
|
|
8617
8617
|
writable: !0,
|
|
8618
8618
|
configurable: !0
|
|
8619
|
-
} }),
|
|
8619
|
+
} }), M(n, e);
|
|
8620
8620
|
}, Mt(e);
|
|
8621
8621
|
}
|
|
8622
8622
|
function Nt(e, t, n) {
|
|
@@ -8624,7 +8624,7 @@ function Nt(e, t, n) {
|
|
|
8624
8624
|
var r = [null];
|
|
8625
8625
|
r.push.apply(r, t);
|
|
8626
8626
|
var i = new (e.bind.apply(e, r))();
|
|
8627
|
-
return n &&
|
|
8627
|
+
return n && M(i, n.prototype), i;
|
|
8628
8628
|
}
|
|
8629
8629
|
function Pt() {
|
|
8630
8630
|
try {
|
|
@@ -8641,23 +8641,23 @@ function Ft(e) {
|
|
|
8641
8641
|
return typeof e == "function";
|
|
8642
8642
|
}
|
|
8643
8643
|
}
|
|
8644
|
-
function
|
|
8645
|
-
return
|
|
8644
|
+
function M(e, t) {
|
|
8645
|
+
return M = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
8646
8646
|
return e.__proto__ = t, e;
|
|
8647
|
-
},
|
|
8647
|
+
}, M(e, t);
|
|
8648
8648
|
}
|
|
8649
|
-
function
|
|
8650
|
-
return
|
|
8649
|
+
function N(e) {
|
|
8650
|
+
return N = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
8651
8651
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
8652
|
-
},
|
|
8652
|
+
}, N(e);
|
|
8653
8653
|
}
|
|
8654
|
-
var
|
|
8654
|
+
var P = /*#__PURE__*/ function(e) {
|
|
8655
8655
|
function t(e) {
|
|
8656
8656
|
var n;
|
|
8657
8657
|
return Dt(this, t), n = Ot(this, t, [e]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
|
|
8658
8658
|
}
|
|
8659
8659
|
return jt(t, e), wt(t);
|
|
8660
|
-
}(/*#__PURE__*/ Mt(Error)), It = RegExp("(?:" +
|
|
8660
|
+
}(/*#__PURE__*/ Mt(Error)), It = RegExp("(?:" + Qe() + ")$", "i");
|
|
8661
8661
|
function Lt(e) {
|
|
8662
8662
|
var t = e.search(It);
|
|
8663
8663
|
if (t < 0) return {};
|
|
@@ -8743,7 +8743,7 @@ var Vt = {
|
|
|
8743
8743
|
function Ht(e) {
|
|
8744
8744
|
return Vt[e];
|
|
8745
8745
|
}
|
|
8746
|
-
function
|
|
8746
|
+
function F(e) {
|
|
8747
8747
|
for (var t = "", n = Rt(e.split("")), r; !(r = n()).done;) {
|
|
8748
8748
|
var i = r.value, a = Ht(i);
|
|
8749
8749
|
a && (t += a);
|
|
@@ -8796,8 +8796,8 @@ function qt(e, t, n) {
|
|
|
8796
8796
|
}
|
|
8797
8797
|
return Ht(e);
|
|
8798
8798
|
}
|
|
8799
|
-
var Jt = "([" + C + "]|[\\-\\.\\(\\)]?)", Yt = "^\\+" + Jt + "*[" + C + "]" + Jt + "*$", Xt = new RegExp(Yt, "g"),
|
|
8800
|
-
function
|
|
8799
|
+
var Jt = "([" + C + "]|[\\-\\.\\(\\)]?)", Yt = "^\\+" + Jt + "*[" + C + "]" + Jt + "*$", Xt = new RegExp(Yt, "g"), Zt = C, Qt = "[" + Zt + "]+((\\-)*[" + Zt + "])*", $t = "[a-zA-Z]+((\\-)*[" + Zt + "])*", en = "^(" + Qt + "\\.)*" + $t + "\\.?$", tn = new RegExp(en, "g"), nn = "tel:", I = ";phone-context=", rn = ";isub=";
|
|
8800
|
+
function an(e) {
|
|
8801
8801
|
var t = e.indexOf(I);
|
|
8802
8802
|
if (t < 0) return null;
|
|
8803
8803
|
var n = t + I.length;
|
|
@@ -8805,55 +8805,55 @@ function rn(e) {
|
|
|
8805
8805
|
var r = e.indexOf(";", n);
|
|
8806
8806
|
return r >= 0 ? e.substring(n, r) : e.substring(n);
|
|
8807
8807
|
}
|
|
8808
|
-
function
|
|
8809
|
-
return e === null ? !0 : e.length === 0 ? !1 : Xt.test(e) ||
|
|
8808
|
+
function on(e) {
|
|
8809
|
+
return e === null ? !0 : e.length === 0 ? !1 : Xt.test(e) || tn.test(e);
|
|
8810
8810
|
}
|
|
8811
8811
|
//#endregion
|
|
8812
8812
|
//#region node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js
|
|
8813
|
-
function
|
|
8814
|
-
var n = t.extractFormattedPhoneNumber, r =
|
|
8815
|
-
if (!
|
|
8813
|
+
function sn(e, t) {
|
|
8814
|
+
var n = t.extractFormattedPhoneNumber, r = an(e);
|
|
8815
|
+
if (!on(r)) throw new P("NOT_A_NUMBER");
|
|
8816
8816
|
var i;
|
|
8817
8817
|
if (r === null) i = n(e) || "";
|
|
8818
8818
|
else {
|
|
8819
8819
|
i = "", r.charAt(0) === "+" && (i += r);
|
|
8820
|
-
var a = e.indexOf(
|
|
8820
|
+
var a = e.indexOf(nn), o = a >= 0 ? a + nn.length : 0, s = e.indexOf(I);
|
|
8821
8821
|
i += e.substring(o, s);
|
|
8822
8822
|
}
|
|
8823
|
-
var c = i.indexOf(
|
|
8823
|
+
var c = i.indexOf(rn);
|
|
8824
8824
|
if (c > 0 && (i = i.substring(0, c)), i !== "") return i;
|
|
8825
8825
|
}
|
|
8826
8826
|
//#endregion
|
|
8827
8827
|
//#region node_modules/libphonenumber-js/es6/parse.js
|
|
8828
|
-
var
|
|
8829
|
-
function
|
|
8828
|
+
var cn = 250, ln = RegExp("[" + T + C + "]"), un = RegExp("[^" + C + "#]+$");
|
|
8829
|
+
function dn(e, t, n) {
|
|
8830
8830
|
t ||= {};
|
|
8831
|
-
var r = new
|
|
8832
|
-
if (t.defaultCountry && !r.hasCountry(t.defaultCountry)) throw t.v2 ? new
|
|
8833
|
-
var i =
|
|
8831
|
+
var r = new b(n);
|
|
8832
|
+
if (t.defaultCountry && !r.hasCountry(t.defaultCountry)) throw t.v2 ? new P("INVALID_COUNTRY") : Error(`Unknown country: ${t.defaultCountry}`);
|
|
8833
|
+
var i = pn(e, t.v2, t.extract), a = i.number, o = i.ext, s = i.error;
|
|
8834
8834
|
if (!a) {
|
|
8835
|
-
if (t.v2) throw s === "TOO_SHORT" ? new
|
|
8835
|
+
if (t.v2) throw s === "TOO_SHORT" ? new P("TOO_SHORT") : new P("NOT_A_NUMBER");
|
|
8836
8836
|
return {};
|
|
8837
8837
|
}
|
|
8838
|
-
var c =
|
|
8838
|
+
var c = hn(a, t.defaultCountry, t.defaultCallingCode, r), l = c.country, u = c.nationalNumber, d = c.countryCallingCode, f = c.countryCallingCodeSource, p = c.carrierCode;
|
|
8839
8839
|
if (!r.hasSelectedNumberingPlan()) {
|
|
8840
|
-
if (t.v2) throw new
|
|
8840
|
+
if (t.v2) throw new P("INVALID_COUNTRY");
|
|
8841
8841
|
return {};
|
|
8842
8842
|
}
|
|
8843
8843
|
if (!u || u.length < 2) {
|
|
8844
8844
|
/* istanbul ignore if */
|
|
8845
|
-
if (t.v2) throw new
|
|
8845
|
+
if (t.v2) throw new P("TOO_SHORT");
|
|
8846
8846
|
return {};
|
|
8847
8847
|
}
|
|
8848
8848
|
if (u.length > 17) {
|
|
8849
|
-
if (t.v2) throw new
|
|
8849
|
+
if (t.v2) throw new P("TOO_LONG");
|
|
8850
8850
|
return {};
|
|
8851
8851
|
}
|
|
8852
8852
|
if (t.v2) {
|
|
8853
8853
|
var m = new xt(d, u, r.metadata);
|
|
8854
8854
|
return l && (m.country = l), p && (m.carrierCode = p), o && (m.ext = o), m.__countryCallingCodeSource = f, m;
|
|
8855
8855
|
}
|
|
8856
|
-
var h = (t.extended ? r.hasSelectedNumberingPlan() : l) ?
|
|
8856
|
+
var h = (t.extended ? r.hasSelectedNumberingPlan() : l) ? S(u, r.nationalNumberPattern()) : !1;
|
|
8857
8857
|
return t.extended ? {
|
|
8858
8858
|
country: l,
|
|
8859
8859
|
countryCallingCode: d,
|
|
@@ -8862,37 +8862,37 @@ function un(e, t, n) {
|
|
|
8862
8862
|
possible: h ? !0 : !!(t.extended === !0 && r.possibleLengths() && xe(u, r)),
|
|
8863
8863
|
phone: u,
|
|
8864
8864
|
ext: o
|
|
8865
|
-
} : h ?
|
|
8865
|
+
} : h ? mn(l, u, o) : {};
|
|
8866
8866
|
}
|
|
8867
|
-
function
|
|
8867
|
+
function fn(e, t, n) {
|
|
8868
8868
|
if (e) {
|
|
8869
|
-
if (e.length >
|
|
8870
|
-
if (n) throw new
|
|
8869
|
+
if (e.length > cn) {
|
|
8870
|
+
if (n) throw new P("TOO_LONG");
|
|
8871
8871
|
} else {
|
|
8872
8872
|
if (t === !1) return e;
|
|
8873
|
-
var r = e.search(
|
|
8874
|
-
if (!(r < 0)) return e.slice(r).replace(
|
|
8873
|
+
var r = e.search(ln);
|
|
8874
|
+
if (!(r < 0)) return e.slice(r).replace(un, "");
|
|
8875
8875
|
}
|
|
8876
8876
|
}
|
|
8877
8877
|
}
|
|
8878
|
-
function
|
|
8879
|
-
var r =
|
|
8880
|
-
return
|
|
8878
|
+
function pn(e, t, n) {
|
|
8879
|
+
var r = sn(e, { extractFormattedPhoneNumber: function(e) {
|
|
8880
|
+
return fn(e, n, t);
|
|
8881
8881
|
} });
|
|
8882
8882
|
if (!r) return {};
|
|
8883
|
-
if (!
|
|
8883
|
+
if (!it(r)) return at(r) ? { error: "TOO_SHORT" } : {};
|
|
8884
8884
|
var i = Lt(r);
|
|
8885
8885
|
return i.ext ? i : { number: r };
|
|
8886
8886
|
}
|
|
8887
|
-
function
|
|
8887
|
+
function mn(e, t, n) {
|
|
8888
8888
|
var r = {
|
|
8889
8889
|
country: e,
|
|
8890
8890
|
phone: t
|
|
8891
8891
|
};
|
|
8892
8892
|
return n && (r.ext = n), r;
|
|
8893
8893
|
}
|
|
8894
|
-
function
|
|
8895
|
-
var i =
|
|
8894
|
+
function hn(e, t, n, r) {
|
|
8895
|
+
var i = Ge(Kt(e), void 0, t, n, r.metadata), a = i.countryCallingCodeSource, o = i.countryCallingCode, s = i.number, c;
|
|
8896
8896
|
if (o) r.selectNumberingPlan(o);
|
|
8897
8897
|
else if (s && (t || n)) t ? (c = t, r.selectNumberingPlan(t), o = r.numberingPlan.callingCode()) : (r.selectNumberingPlan(n), o = n);
|
|
8898
8898
|
else return {};
|
|
@@ -8900,7 +8900,7 @@ function mn(e, t, n, r) {
|
|
|
8900
8900
|
countryCallingCodeSource: a,
|
|
8901
8901
|
countryCallingCode: o
|
|
8902
8902
|
};
|
|
8903
|
-
var l =
|
|
8903
|
+
var l = Ve(Kt(s), void 0, r), u = l.nationalNumber, d = l.carrierCode, f = E(o, {
|
|
8904
8904
|
nationalNumber: u,
|
|
8905
8905
|
metadata: r
|
|
8906
8906
|
});
|
|
@@ -8922,7 +8922,7 @@ function L(e) {
|
|
|
8922
8922
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8923
8923
|
}, L(e);
|
|
8924
8924
|
}
|
|
8925
|
-
function
|
|
8925
|
+
function gn(e, t) {
|
|
8926
8926
|
var n = Object.keys(e);
|
|
8927
8927
|
if (Object.getOwnPropertySymbols) {
|
|
8928
8928
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -8932,30 +8932,30 @@ function hn(e, t) {
|
|
|
8932
8932
|
}
|
|
8933
8933
|
return n;
|
|
8934
8934
|
}
|
|
8935
|
-
function
|
|
8935
|
+
function _n(e) {
|
|
8936
8936
|
for (var t = 1; t < arguments.length; t++) {
|
|
8937
8937
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8938
|
-
t % 2 ?
|
|
8939
|
-
|
|
8940
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
8938
|
+
t % 2 ? gn(Object(n), !0).forEach(function(t) {
|
|
8939
|
+
vn(e, t, n[t]);
|
|
8940
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gn(Object(n)).forEach(function(t) {
|
|
8941
8941
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8942
8942
|
});
|
|
8943
8943
|
}
|
|
8944
8944
|
return e;
|
|
8945
8945
|
}
|
|
8946
|
-
function
|
|
8947
|
-
return (t =
|
|
8946
|
+
function vn(e, t, n) {
|
|
8947
|
+
return (t = yn(t)) in e ? Object.defineProperty(e, t, {
|
|
8948
8948
|
value: n,
|
|
8949
8949
|
enumerable: !0,
|
|
8950
8950
|
configurable: !0,
|
|
8951
8951
|
writable: !0
|
|
8952
8952
|
}) : e[t] = n, e;
|
|
8953
8953
|
}
|
|
8954
|
-
function
|
|
8955
|
-
var t =
|
|
8954
|
+
function yn(e) {
|
|
8955
|
+
var t = bn(e, "string");
|
|
8956
8956
|
return L(t) == "symbol" ? t : t + "";
|
|
8957
8957
|
}
|
|
8958
|
-
function
|
|
8958
|
+
function bn(e, t) {
|
|
8959
8959
|
if (L(e) != "object" || !e) return e;
|
|
8960
8960
|
var n = e[Symbol.toPrimitive];
|
|
8961
8961
|
if (n !== void 0) {
|
|
@@ -8965,8 +8965,8 @@ function yn(e, t) {
|
|
|
8965
8965
|
}
|
|
8966
8966
|
return (t === "string" ? String : Number)(e);
|
|
8967
8967
|
}
|
|
8968
|
-
function
|
|
8969
|
-
return
|
|
8968
|
+
function xn(e, t, n) {
|
|
8969
|
+
return dn(e, _n(_n({}, t), {}, { v2: !0 }), n);
|
|
8970
8970
|
}
|
|
8971
8971
|
//#endregion
|
|
8972
8972
|
//#region node_modules/libphonenumber-js/es6/normalizeArguments.js
|
|
@@ -8978,7 +8978,7 @@ function R(e) {
|
|
|
8978
8978
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8979
8979
|
}, R(e);
|
|
8980
8980
|
}
|
|
8981
|
-
function
|
|
8981
|
+
function Sn(e, t) {
|
|
8982
8982
|
var n = Object.keys(e);
|
|
8983
8983
|
if (Object.getOwnPropertySymbols) {
|
|
8984
8984
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -8988,30 +8988,30 @@ function xn(e, t) {
|
|
|
8988
8988
|
}
|
|
8989
8989
|
return n;
|
|
8990
8990
|
}
|
|
8991
|
-
function
|
|
8991
|
+
function Cn(e) {
|
|
8992
8992
|
for (var t = 1; t < arguments.length; t++) {
|
|
8993
8993
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8994
|
-
t % 2 ?
|
|
8995
|
-
|
|
8996
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
8994
|
+
t % 2 ? Sn(Object(n), !0).forEach(function(t) {
|
|
8995
|
+
wn(e, t, n[t]);
|
|
8996
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sn(Object(n)).forEach(function(t) {
|
|
8997
8997
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8998
8998
|
});
|
|
8999
8999
|
}
|
|
9000
9000
|
return e;
|
|
9001
9001
|
}
|
|
9002
|
-
function
|
|
9003
|
-
return (t =
|
|
9002
|
+
function wn(e, t, n) {
|
|
9003
|
+
return (t = Tn(t)) in e ? Object.defineProperty(e, t, {
|
|
9004
9004
|
value: n,
|
|
9005
9005
|
enumerable: !0,
|
|
9006
9006
|
configurable: !0,
|
|
9007
9007
|
writable: !0
|
|
9008
9008
|
}) : e[t] = n, e;
|
|
9009
9009
|
}
|
|
9010
|
-
function
|
|
9011
|
-
var t =
|
|
9010
|
+
function Tn(e) {
|
|
9011
|
+
var t = En(e, "string");
|
|
9012
9012
|
return R(t) == "symbol" ? t : t + "";
|
|
9013
9013
|
}
|
|
9014
|
-
function
|
|
9014
|
+
function En(e, t) {
|
|
9015
9015
|
if (R(e) != "object" || !e) return e;
|
|
9016
9016
|
var n = e[Symbol.toPrimitive];
|
|
9017
9017
|
if (n !== void 0) {
|
|
@@ -9021,25 +9021,25 @@ function Tn(e, t) {
|
|
|
9021
9021
|
}
|
|
9022
9022
|
return (t === "string" ? String : Number)(e);
|
|
9023
9023
|
}
|
|
9024
|
-
function
|
|
9025
|
-
return
|
|
9024
|
+
function Dn(e, t) {
|
|
9025
|
+
return Mn(e) || jn(e, t) || kn(e, t) || On();
|
|
9026
9026
|
}
|
|
9027
|
-
function
|
|
9027
|
+
function On() {
|
|
9028
9028
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9029
9029
|
}
|
|
9030
|
-
function
|
|
9030
|
+
function kn(e, t) {
|
|
9031
9031
|
if (e) {
|
|
9032
|
-
if (typeof e == "string") return
|
|
9032
|
+
if (typeof e == "string") return An(e, t);
|
|
9033
9033
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9034
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9034
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? An(e, t) : void 0;
|
|
9035
9035
|
}
|
|
9036
9036
|
}
|
|
9037
|
-
function
|
|
9037
|
+
function An(e, t) {
|
|
9038
9038
|
(t == null || t > e.length) && (t = e.length);
|
|
9039
9039
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9040
9040
|
return r;
|
|
9041
9041
|
}
|
|
9042
|
-
function
|
|
9042
|
+
function jn(e, t) {
|
|
9043
9043
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9044
9044
|
if (n != null) {
|
|
9045
9045
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -9060,15 +9060,15 @@ function An(e, t) {
|
|
|
9060
9060
|
return s;
|
|
9061
9061
|
}
|
|
9062
9062
|
}
|
|
9063
|
-
function
|
|
9063
|
+
function Mn(e) {
|
|
9064
9064
|
if (Array.isArray(e)) return e;
|
|
9065
9065
|
}
|
|
9066
|
-
function
|
|
9067
|
-
var t =
|
|
9066
|
+
function Nn(e) {
|
|
9067
|
+
var t = Dn(Array.prototype.slice.call(e), 4), n = t[0], r = t[1], i = t[2], a = t[3], o, s, c;
|
|
9068
9068
|
if (typeof n == "string") o = n;
|
|
9069
9069
|
else throw TypeError("A text for parsing must be a string.");
|
|
9070
|
-
if (!r || typeof r == "string") a ? (s = i, c = a) : (s = void 0, c = i), r && (s =
|
|
9071
|
-
else if (
|
|
9070
|
+
if (!r || typeof r == "string") a ? (s = i, c = a) : (s = void 0, c = i), r && (s = Cn({ defaultCountry: r }, s));
|
|
9071
|
+
else if (p(r)) i ? (s = r, c = i) : c = r;
|
|
9072
9072
|
else throw Error(`Invalid second argument: ${r}`);
|
|
9073
9073
|
return {
|
|
9074
9074
|
text: o,
|
|
@@ -9086,7 +9086,7 @@ function z(e) {
|
|
|
9086
9086
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9087
9087
|
}, z(e);
|
|
9088
9088
|
}
|
|
9089
|
-
function
|
|
9089
|
+
function Pn(e, t) {
|
|
9090
9090
|
var n = Object.keys(e);
|
|
9091
9091
|
if (Object.getOwnPropertySymbols) {
|
|
9092
9092
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -9096,30 +9096,30 @@ function Nn(e, t) {
|
|
|
9096
9096
|
}
|
|
9097
9097
|
return n;
|
|
9098
9098
|
}
|
|
9099
|
-
function
|
|
9099
|
+
function Fn(e) {
|
|
9100
9100
|
for (var t = 1; t < arguments.length; t++) {
|
|
9101
9101
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
9102
|
-
t % 2 ?
|
|
9103
|
-
|
|
9104
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
9102
|
+
t % 2 ? Pn(Object(n), !0).forEach(function(t) {
|
|
9103
|
+
In(e, t, n[t]);
|
|
9104
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Pn(Object(n)).forEach(function(t) {
|
|
9105
9105
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
9106
9106
|
});
|
|
9107
9107
|
}
|
|
9108
9108
|
return e;
|
|
9109
9109
|
}
|
|
9110
|
-
function
|
|
9111
|
-
return (t =
|
|
9110
|
+
function In(e, t, n) {
|
|
9111
|
+
return (t = Ln(t)) in e ? Object.defineProperty(e, t, {
|
|
9112
9112
|
value: n,
|
|
9113
9113
|
enumerable: !0,
|
|
9114
9114
|
configurable: !0,
|
|
9115
9115
|
writable: !0
|
|
9116
9116
|
}) : e[t] = n, e;
|
|
9117
9117
|
}
|
|
9118
|
-
function
|
|
9119
|
-
var t =
|
|
9118
|
+
function Ln(e) {
|
|
9119
|
+
var t = Rn(e, "string");
|
|
9120
9120
|
return z(t) == "symbol" ? t : t + "";
|
|
9121
9121
|
}
|
|
9122
|
-
function
|
|
9122
|
+
function Rn(e, t) {
|
|
9123
9123
|
if (z(e) != "object" || !e) return e;
|
|
9124
9124
|
var n = e[Symbol.toPrimitive];
|
|
9125
9125
|
if (n !== void 0) {
|
|
@@ -9129,20 +9129,20 @@ function Ln(e, t) {
|
|
|
9129
9129
|
}
|
|
9130
9130
|
return (t === "string" ? String : Number)(e);
|
|
9131
9131
|
}
|
|
9132
|
-
function
|
|
9133
|
-
t && t.defaultCountry && !pe(t.defaultCountry, n) && (t =
|
|
9132
|
+
function zn(e, t, n) {
|
|
9133
|
+
t && t.defaultCountry && !pe(t.defaultCountry, n) && (t = Fn(Fn({}, t), {}, { defaultCountry: void 0 }));
|
|
9134
9134
|
try {
|
|
9135
|
-
return
|
|
9135
|
+
return xn(e, t, n);
|
|
9136
9136
|
} catch (e) {
|
|
9137
9137
|
/* istanbul ignore else */
|
|
9138
|
-
if (!(e instanceof
|
|
9138
|
+
if (!(e instanceof P)) throw e;
|
|
9139
9139
|
}
|
|
9140
9140
|
}
|
|
9141
9141
|
//#endregion
|
|
9142
9142
|
//#region node_modules/libphonenumber-js/es6/parsePhoneNumber.js
|
|
9143
|
-
function
|
|
9144
|
-
var e =
|
|
9145
|
-
return
|
|
9143
|
+
function Bn() {
|
|
9144
|
+
var e = Nn(arguments), t = e.text, n = e.options, r = e.metadata;
|
|
9145
|
+
return zn(t, n, r);
|
|
9146
9146
|
}
|
|
9147
9147
|
//#endregion
|
|
9148
9148
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeState.js
|
|
@@ -9154,23 +9154,23 @@ function B(e) {
|
|
|
9154
9154
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9155
9155
|
}, B(e);
|
|
9156
9156
|
}
|
|
9157
|
-
function
|
|
9157
|
+
function Vn(e, t) {
|
|
9158
9158
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9159
9159
|
}
|
|
9160
|
-
function
|
|
9160
|
+
function Hn(e, t) {
|
|
9161
9161
|
for (var n = 0; n < t.length; n++) {
|
|
9162
9162
|
var r = t[n];
|
|
9163
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9163
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Wn(r.key), r);
|
|
9164
9164
|
}
|
|
9165
9165
|
}
|
|
9166
|
-
function
|
|
9167
|
-
return t &&
|
|
9166
|
+
function Un(e, t, n) {
|
|
9167
|
+
return t && Hn(e.prototype, t), n && Hn(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9168
9168
|
}
|
|
9169
|
-
function
|
|
9170
|
-
var t =
|
|
9169
|
+
function Wn(e) {
|
|
9170
|
+
var t = Gn(e, "string");
|
|
9171
9171
|
return B(t) == "symbol" ? t : t + "";
|
|
9172
9172
|
}
|
|
9173
|
-
function
|
|
9173
|
+
function Gn(e, t) {
|
|
9174
9174
|
if (B(e) != "object" || !e) return e;
|
|
9175
9175
|
var n = e[Symbol.toPrimitive];
|
|
9176
9176
|
if (n !== void 0) {
|
|
@@ -9180,12 +9180,12 @@ function Wn(e, t) {
|
|
|
9180
9180
|
}
|
|
9181
9181
|
return (t === "string" ? String : Number)(e);
|
|
9182
9182
|
}
|
|
9183
|
-
var
|
|
9183
|
+
var Kn = /*#__PURE__*/ function() {
|
|
9184
9184
|
function e(t) {
|
|
9185
9185
|
var n = t.onCountryChange, r = t.onCallingCodeChange;
|
|
9186
|
-
|
|
9186
|
+
Vn(this, e), this.onCountryChange = n, this.onCallingCodeChange = r;
|
|
9187
9187
|
}
|
|
9188
|
-
return
|
|
9188
|
+
return Un(e, [
|
|
9189
9189
|
{
|
|
9190
9190
|
key: "reset",
|
|
9191
9191
|
value: function(e) {
|
|
@@ -9260,10 +9260,10 @@ var Gn = /*#__PURE__*/ function() {
|
|
|
9260
9260
|
}();
|
|
9261
9261
|
//#endregion
|
|
9262
9262
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js
|
|
9263
|
-
function
|
|
9263
|
+
function qn(e, t) {
|
|
9264
9264
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9265
9265
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9266
|
-
if (Array.isArray(e) || (n =
|
|
9266
|
+
if (Array.isArray(e) || (n = Jn(e)) || t && e && typeof e.length == "number") {
|
|
9267
9267
|
n && (e = n);
|
|
9268
9268
|
var r = 0;
|
|
9269
9269
|
return function() {
|
|
@@ -9275,28 +9275,28 @@ function Kn(e, t) {
|
|
|
9275
9275
|
}
|
|
9276
9276
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9277
9277
|
}
|
|
9278
|
-
function
|
|
9278
|
+
function Jn(e, t) {
|
|
9279
9279
|
if (e) {
|
|
9280
|
-
if (typeof e == "string") return
|
|
9280
|
+
if (typeof e == "string") return Yn(e, t);
|
|
9281
9281
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9282
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9282
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Yn(e, t) : void 0;
|
|
9283
9283
|
}
|
|
9284
9284
|
}
|
|
9285
|
-
function
|
|
9285
|
+
function Yn(e, t) {
|
|
9286
9286
|
(t == null || t > e.length) && (t = e.length);
|
|
9287
9287
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9288
9288
|
return r;
|
|
9289
9289
|
}
|
|
9290
|
-
var
|
|
9290
|
+
var Xn = /* @__PURE__ */ RegExp("x");
|
|
9291
9291
|
function V(e, t) {
|
|
9292
9292
|
if (t < 1) return "";
|
|
9293
9293
|
for (var n = ""; t > 1;) t & 1 && (n += e), t >>= 1, e += e;
|
|
9294
9294
|
return n + e;
|
|
9295
9295
|
}
|
|
9296
|
-
function
|
|
9297
|
-
return e[t] === ")" && t++,
|
|
9296
|
+
function Zn(e, t) {
|
|
9297
|
+
return e[t] === ")" && t++, Qn(e.slice(0, t));
|
|
9298
9298
|
}
|
|
9299
|
-
function
|
|
9299
|
+
function Qn(e) {
|
|
9300
9300
|
for (var t = [], n = 0; n < e.length;) e[n] === "(" ? t.push(n) : e[n] === ")" && t.pop(), n++;
|
|
9301
9301
|
var r = 0, i = "";
|
|
9302
9302
|
t.push(e.length);
|
|
@@ -9306,54 +9306,54 @@ function Zn(e) {
|
|
|
9306
9306
|
}
|
|
9307
9307
|
return i;
|
|
9308
9308
|
}
|
|
9309
|
-
function
|
|
9310
|
-
for (var r =
|
|
9309
|
+
function $n(e, t, n) {
|
|
9310
|
+
for (var r = qn(n.split("")), i; !(i = r()).done;) {
|
|
9311
9311
|
var a = i.value;
|
|
9312
|
-
if (e.slice(t + 1).search(
|
|
9313
|
-
t = e.search(
|
|
9312
|
+
if (e.slice(t + 1).search(Xn) < 0) return;
|
|
9313
|
+
t = e.search(Xn), e = e.replace(Xn, a);
|
|
9314
9314
|
}
|
|
9315
9315
|
return [e, t];
|
|
9316
9316
|
}
|
|
9317
9317
|
//#endregion
|
|
9318
9318
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js
|
|
9319
|
-
function
|
|
9319
|
+
function er(e, t, n) {
|
|
9320
9320
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
|
|
9321
|
-
if (RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber)) return
|
|
9321
|
+
if (RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber)) return nr(e, t, {
|
|
9322
9322
|
metadata: r,
|
|
9323
9323
|
shouldTryNationalPrefixFormattingRule: i,
|
|
9324
9324
|
getSeparatorAfterNationalPrefix: a
|
|
9325
9325
|
});
|
|
9326
9326
|
}
|
|
9327
|
-
function
|
|
9328
|
-
return
|
|
9327
|
+
function tr(e, t) {
|
|
9328
|
+
return x(e, void 0, t) === "IS_POSSIBLE";
|
|
9329
9329
|
}
|
|
9330
|
-
function
|
|
9330
|
+
function nr(e, t, n) {
|
|
9331
9331
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
|
|
9332
9332
|
if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, i(t)) {
|
|
9333
|
-
var o =
|
|
9333
|
+
var o = rr(e, t, {
|
|
9334
9334
|
useNationalPrefixFormattingRule: !0,
|
|
9335
9335
|
getSeparatorAfterNationalPrefix: a,
|
|
9336
9336
|
metadata: r
|
|
9337
9337
|
});
|
|
9338
9338
|
if (o) return o;
|
|
9339
9339
|
}
|
|
9340
|
-
return
|
|
9340
|
+
return rr(e, t, {
|
|
9341
9341
|
useNationalPrefixFormattingRule: !1,
|
|
9342
9342
|
getSeparatorAfterNationalPrefix: a,
|
|
9343
9343
|
metadata: r
|
|
9344
9344
|
});
|
|
9345
9345
|
}
|
|
9346
|
-
function
|
|
9347
|
-
var r = n.metadata, i = n.useNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o =
|
|
9346
|
+
function rr(e, t, n) {
|
|
9347
|
+
var r = n.metadata, i = n.useNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o = Je(e.nationalSignificantNumber, t, {
|
|
9348
9348
|
carrierCode: e.carrierCode,
|
|
9349
9349
|
useInternationalFormat: e.international,
|
|
9350
9350
|
withNationalPrefix: i,
|
|
9351
9351
|
metadata: r
|
|
9352
9352
|
});
|
|
9353
|
-
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)),
|
|
9353
|
+
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), ir(o, e)) return o;
|
|
9354
9354
|
}
|
|
9355
|
-
function
|
|
9356
|
-
return
|
|
9355
|
+
function ir(e, t) {
|
|
9356
|
+
return F(e) === t.getNationalDigits();
|
|
9357
9357
|
}
|
|
9358
9358
|
//#endregion
|
|
9359
9359
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js
|
|
@@ -9365,23 +9365,23 @@ function H(e) {
|
|
|
9365
9365
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9366
9366
|
}, H(e);
|
|
9367
9367
|
}
|
|
9368
|
-
function
|
|
9368
|
+
function ar(e, t) {
|
|
9369
9369
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9370
9370
|
}
|
|
9371
|
-
function
|
|
9371
|
+
function or(e, t) {
|
|
9372
9372
|
for (var n = 0; n < t.length; n++) {
|
|
9373
9373
|
var r = t[n];
|
|
9374
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9374
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, cr(r.key), r);
|
|
9375
9375
|
}
|
|
9376
9376
|
}
|
|
9377
|
-
function
|
|
9378
|
-
return t &&
|
|
9377
|
+
function sr(e, t, n) {
|
|
9378
|
+
return t && or(e.prototype, t), n && or(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9379
9379
|
}
|
|
9380
|
-
function
|
|
9381
|
-
var t =
|
|
9380
|
+
function cr(e) {
|
|
9381
|
+
var t = lr(e, "string");
|
|
9382
9382
|
return H(t) == "symbol" ? t : t + "";
|
|
9383
9383
|
}
|
|
9384
|
-
function
|
|
9384
|
+
function lr(e, t) {
|
|
9385
9385
|
if (H(e) != "object" || !e) return e;
|
|
9386
9386
|
var n = e[Symbol.toPrimitive];
|
|
9387
9387
|
if (n !== void 0) {
|
|
@@ -9391,11 +9391,11 @@ function cr(e, t) {
|
|
|
9391
9391
|
}
|
|
9392
9392
|
return (t === "string" ? String : Number)(e);
|
|
9393
9393
|
}
|
|
9394
|
-
var
|
|
9394
|
+
var ur = /*#__PURE__*/ function() {
|
|
9395
9395
|
function e() {
|
|
9396
|
-
|
|
9396
|
+
ar(this, e);
|
|
9397
9397
|
}
|
|
9398
|
-
return
|
|
9398
|
+
return sr(e, [
|
|
9399
9399
|
{
|
|
9400
9400
|
key: "parse",
|
|
9401
9401
|
value: function(e) {
|
|
@@ -9406,7 +9406,7 @@ var lr = /*#__PURE__*/ function() {
|
|
|
9406
9406
|
var t = this.context[0], n = t.branches, r = t.instructions;
|
|
9407
9407
|
if (n) return {
|
|
9408
9408
|
op: "|",
|
|
9409
|
-
args: n.concat([
|
|
9409
|
+
args: n.concat([mr(r)])
|
|
9410
9410
|
};
|
|
9411
9411
|
/* istanbul ignore if */
|
|
9412
9412
|
if (r.length === 0) throw Error("Pattern is required");
|
|
@@ -9435,7 +9435,7 @@ var lr = /*#__PURE__*/ function() {
|
|
|
9435
9435
|
key: "parsePattern",
|
|
9436
9436
|
value: function(e) {
|
|
9437
9437
|
if (!e) throw Error("Pattern is required");
|
|
9438
|
-
var t = e.match(
|
|
9438
|
+
var t = e.match(pr);
|
|
9439
9439
|
if (t) {
|
|
9440
9440
|
var n = t[1], r = e.slice(0, t.index), i = e.slice(t.index + n.length);
|
|
9441
9441
|
switch (n) {
|
|
@@ -9450,7 +9450,7 @@ var lr = /*#__PURE__*/ function() {
|
|
|
9450
9450
|
if (!this.getContext().or) throw Error("\")\" operator must be preceded by \"(?:\" operator");
|
|
9451
9451
|
if (r && this.parsePattern(r), this.getContext().instructions.length === 0) throw Error("No instructions found after \"|\" operator in an \"or\" group");
|
|
9452
9452
|
var a = this.getContext().branches;
|
|
9453
|
-
a.push(
|
|
9453
|
+
a.push(mr(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
|
|
9454
9454
|
op: "|",
|
|
9455
9455
|
args: a
|
|
9456
9456
|
});
|
|
@@ -9462,7 +9462,7 @@ var lr = /*#__PURE__*/ function() {
|
|
|
9462
9462
|
if (this.context.length === 1) this.getContext().branches = [];
|
|
9463
9463
|
else throw Error("\"branches\" not found in an \"or\" group context");
|
|
9464
9464
|
}
|
|
9465
|
-
this.getContext().branches.push(
|
|
9465
|
+
this.getContext().branches.push(mr(this.getContext().instructions)), this.getContext().instructions = [];
|
|
9466
9466
|
break;
|
|
9467
9467
|
case "[":
|
|
9468
9468
|
r && this.parsePattern(r), this.startContext({ oneOfSet: !0 });
|
|
@@ -9471,7 +9471,7 @@ var lr = /*#__PURE__*/ function() {
|
|
|
9471
9471
|
if (!this.getContext().oneOfSet) throw Error("\"]\" operator must be preceded by \"[\" operator");
|
|
9472
9472
|
this.endContext(), this.getContext().instructions.push({
|
|
9473
9473
|
op: "[]",
|
|
9474
|
-
args:
|
|
9474
|
+
args: dr(r)
|
|
9475
9475
|
});
|
|
9476
9476
|
break;
|
|
9477
9477
|
/* istanbul ignore next */
|
|
@@ -9479,14 +9479,14 @@ var lr = /*#__PURE__*/ function() {
|
|
|
9479
9479
|
}
|
|
9480
9480
|
i && this.parsePattern(i);
|
|
9481
9481
|
} else {
|
|
9482
|
-
if (
|
|
9482
|
+
if (fr.test(e)) throw Error(`Illegal characters found in a pattern: ${e}`);
|
|
9483
9483
|
this.getContext().instructions = this.getContext().instructions.concat(e.split(""));
|
|
9484
9484
|
}
|
|
9485
9485
|
}
|
|
9486
9486
|
}
|
|
9487
9487
|
]);
|
|
9488
9488
|
}();
|
|
9489
|
-
function
|
|
9489
|
+
function dr(e) {
|
|
9490
9490
|
for (var t = [], n = 0; n < e.length;) {
|
|
9491
9491
|
if (e[n] === "-") {
|
|
9492
9492
|
if (n === 0 || n === e.length - 1) throw Error(`Couldn't parse a one-of set pattern: ${e}`);
|
|
@@ -9496,16 +9496,16 @@ function ur(e) {
|
|
|
9496
9496
|
}
|
|
9497
9497
|
return t;
|
|
9498
9498
|
}
|
|
9499
|
-
var
|
|
9500
|
-
function
|
|
9499
|
+
var fr = /[\(\)\[\]\?\:\|]/, pr = /* @__PURE__ */ RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
|
|
9500
|
+
function mr(e) {
|
|
9501
9501
|
return e.length === 1 ? e[0] : e;
|
|
9502
9502
|
}
|
|
9503
9503
|
//#endregion
|
|
9504
9504
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js
|
|
9505
|
-
function
|
|
9505
|
+
function hr(e, t) {
|
|
9506
9506
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9507
9507
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9508
|
-
if (Array.isArray(e) || (n =
|
|
9508
|
+
if (Array.isArray(e) || (n = gr(e)) || t && e && typeof e.length == "number") {
|
|
9509
9509
|
n && (e = n);
|
|
9510
9510
|
var r = 0;
|
|
9511
9511
|
return function() {
|
|
@@ -9517,14 +9517,14 @@ function mr(e, t) {
|
|
|
9517
9517
|
}
|
|
9518
9518
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9519
9519
|
}
|
|
9520
|
-
function
|
|
9520
|
+
function gr(e, t) {
|
|
9521
9521
|
if (e) {
|
|
9522
|
-
if (typeof e == "string") return
|
|
9522
|
+
if (typeof e == "string") return _r(e, t);
|
|
9523
9523
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9524
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9524
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? _r(e, t) : void 0;
|
|
9525
9525
|
}
|
|
9526
9526
|
}
|
|
9527
|
-
function
|
|
9527
|
+
function _r(e, t) {
|
|
9528
9528
|
(t == null || t > e.length) && (t = e.length);
|
|
9529
9529
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9530
9530
|
return r;
|
|
@@ -9537,23 +9537,23 @@ function U(e) {
|
|
|
9537
9537
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9538
9538
|
}, U(e);
|
|
9539
9539
|
}
|
|
9540
|
-
function
|
|
9540
|
+
function vr(e, t) {
|
|
9541
9541
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9542
9542
|
}
|
|
9543
|
-
function
|
|
9543
|
+
function yr(e, t) {
|
|
9544
9544
|
for (var n = 0; n < t.length; n++) {
|
|
9545
9545
|
var r = t[n];
|
|
9546
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9546
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, xr(r.key), r);
|
|
9547
9547
|
}
|
|
9548
9548
|
}
|
|
9549
|
-
function
|
|
9550
|
-
return t &&
|
|
9549
|
+
function br(e, t, n) {
|
|
9550
|
+
return t && yr(e.prototype, t), n && yr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9551
9551
|
}
|
|
9552
|
-
function
|
|
9553
|
-
var t =
|
|
9552
|
+
function xr(e) {
|
|
9553
|
+
var t = Sr(e, "string");
|
|
9554
9554
|
return U(t) == "symbol" ? t : t + "";
|
|
9555
9555
|
}
|
|
9556
|
-
function
|
|
9556
|
+
function Sr(e, t) {
|
|
9557
9557
|
if (U(e) != "object" || !e) return e;
|
|
9558
9558
|
var n = e[Symbol.toPrimitive];
|
|
9559
9559
|
if (n !== void 0) {
|
|
@@ -9563,21 +9563,21 @@ function xr(e, t) {
|
|
|
9563
9563
|
}
|
|
9564
9564
|
return (t === "string" ? String : Number)(e);
|
|
9565
9565
|
}
|
|
9566
|
-
var
|
|
9566
|
+
var Cr = /*#__PURE__*/ function() {
|
|
9567
9567
|
function e(t) {
|
|
9568
|
-
|
|
9568
|
+
vr(this, e), this.matchTree = new ur().parse(t);
|
|
9569
9569
|
}
|
|
9570
|
-
return
|
|
9570
|
+
return br(e, [{
|
|
9571
9571
|
key: "match",
|
|
9572
9572
|
value: function(e) {
|
|
9573
9573
|
var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).allowOverflow;
|
|
9574
9574
|
if (!e) throw Error("String is required");
|
|
9575
|
-
var n =
|
|
9575
|
+
var n = wr(e.split(""), this.matchTree, !0);
|
|
9576
9576
|
if (n && n.match && delete n.matchedChars, !(n && n.overflow && !t)) return n;
|
|
9577
9577
|
}
|
|
9578
9578
|
}]);
|
|
9579
9579
|
}();
|
|
9580
|
-
function
|
|
9580
|
+
function wr(e, t, n) {
|
|
9581
9581
|
if (typeof t == "string") {
|
|
9582
9582
|
var r = e.join("");
|
|
9583
9583
|
return t.indexOf(r) === 0 ?
|
|
@@ -9592,7 +9592,7 @@ function Cr(e, t, n) {
|
|
|
9592
9592
|
}
|
|
9593
9593
|
if (Array.isArray(t)) {
|
|
9594
9594
|
for (var i = e.slice(), a = 0; a < t.length;) {
|
|
9595
|
-
var o = t[a], s =
|
|
9595
|
+
var o = t[a], s = wr(i, o, n && a === t.length - 1);
|
|
9596
9596
|
if (!s) return;
|
|
9597
9597
|
if (s.overflow) return s;
|
|
9598
9598
|
if (s.match) {
|
|
@@ -9612,8 +9612,8 @@ ${JSON.stringify(s, null, 2)}`);
|
|
|
9612
9612
|
}
|
|
9613
9613
|
switch (t.op) {
|
|
9614
9614
|
case "|":
|
|
9615
|
-
for (var c, l =
|
|
9616
|
-
var d = u.value, f =
|
|
9615
|
+
for (var c, l = hr(t.args), u; !(u = l()).done;) {
|
|
9616
|
+
var d = u.value, f = wr(e, d, n);
|
|
9617
9617
|
if (f) {
|
|
9618
9618
|
if (f.overflow) return f;
|
|
9619
9619
|
if (f.match) return {
|
|
@@ -9627,7 +9627,7 @@ ${JSON.stringify(f, null, 2)}`);
|
|
|
9627
9627
|
}
|
|
9628
9628
|
return c ? { partialMatch: !0 } : void 0;
|
|
9629
9629
|
case "[]":
|
|
9630
|
-
for (var p =
|
|
9630
|
+
for (var p = hr(t.args), m; !(m = p()).done;) {
|
|
9631
9631
|
var h = m.value;
|
|
9632
9632
|
if (e[0] === h) return e.length === 1 ? {
|
|
9633
9633
|
match: !0,
|
|
@@ -9652,10 +9652,10 @@ function W(e) {
|
|
|
9652
9652
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9653
9653
|
}, W(e);
|
|
9654
9654
|
}
|
|
9655
|
-
function
|
|
9655
|
+
function Tr(e, t) {
|
|
9656
9656
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9657
9657
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9658
|
-
if (Array.isArray(e) || (n =
|
|
9658
|
+
if (Array.isArray(e) || (n = Er(e)) || t && e && typeof e.length == "number") {
|
|
9659
9659
|
n && (e = n);
|
|
9660
9660
|
var r = 0;
|
|
9661
9661
|
return function() {
|
|
@@ -9667,35 +9667,35 @@ function wr(e, t) {
|
|
|
9667
9667
|
}
|
|
9668
9668
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9669
9669
|
}
|
|
9670
|
-
function
|
|
9670
|
+
function Er(e, t) {
|
|
9671
9671
|
if (e) {
|
|
9672
|
-
if (typeof e == "string") return
|
|
9672
|
+
if (typeof e == "string") return Dr(e, t);
|
|
9673
9673
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9674
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9674
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Dr(e, t) : void 0;
|
|
9675
9675
|
}
|
|
9676
9676
|
}
|
|
9677
|
-
function
|
|
9677
|
+
function Dr(e, t) {
|
|
9678
9678
|
(t == null || t > e.length) && (t = e.length);
|
|
9679
9679
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9680
9680
|
return r;
|
|
9681
9681
|
}
|
|
9682
|
-
function
|
|
9682
|
+
function Or(e, t) {
|
|
9683
9683
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9684
9684
|
}
|
|
9685
|
-
function
|
|
9685
|
+
function kr(e, t) {
|
|
9686
9686
|
for (var n = 0; n < t.length; n++) {
|
|
9687
9687
|
var r = t[n];
|
|
9688
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9688
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, jr(r.key), r);
|
|
9689
9689
|
}
|
|
9690
9690
|
}
|
|
9691
|
-
function
|
|
9692
|
-
return t &&
|
|
9691
|
+
function Ar(e, t, n) {
|
|
9692
|
+
return t && kr(e.prototype, t), n && kr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9693
9693
|
}
|
|
9694
|
-
function
|
|
9695
|
-
var t =
|
|
9694
|
+
function jr(e) {
|
|
9695
|
+
var t = Mr(e, "string");
|
|
9696
9696
|
return W(t) == "symbol" ? t : t + "";
|
|
9697
9697
|
}
|
|
9698
|
-
function
|
|
9698
|
+
function Mr(e, t) {
|
|
9699
9699
|
if (W(e) != "object" || !e) return e;
|
|
9700
9700
|
var n = e[Symbol.toPrimitive];
|
|
9701
9701
|
if (n !== void 0) {
|
|
@@ -9705,17 +9705,17 @@ function jr(e, t) {
|
|
|
9705
9705
|
}
|
|
9706
9706
|
return (t === "string" ? String : Number)(e);
|
|
9707
9707
|
}
|
|
9708
|
-
var
|
|
9708
|
+
var Nr = "9", Pr = V(Nr, 15), Fr = /[- ]/, G = !0, Ir = G && function() {
|
|
9709
9709
|
return /\[([^\[\]])*\]/g;
|
|
9710
|
-
},
|
|
9710
|
+
}, Lr = G && function() {
|
|
9711
9711
|
return /\d(?=[^,}][^,}])/g;
|
|
9712
|
-
},
|
|
9712
|
+
}, Rr = RegExp("[" + w + "]*\\$1[" + w + "]*(\\$\\d[" + w + "]*)*$"), zr = 3, Br = /*#__PURE__*/ function() {
|
|
9713
9713
|
function e(t) {
|
|
9714
9714
|
t.state;
|
|
9715
9715
|
var n = t.metadata;
|
|
9716
|
-
|
|
9716
|
+
Or(this, e), this.metadata = n, this.resetFormat();
|
|
9717
9717
|
}
|
|
9718
|
-
return
|
|
9718
|
+
return Ar(e, [
|
|
9719
9719
|
{
|
|
9720
9720
|
key: "resetFormat",
|
|
9721
9721
|
value: function() {
|
|
@@ -9732,8 +9732,8 @@ var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
|
|
|
9732
9732
|
key: "format",
|
|
9733
9733
|
value: function(e, t) {
|
|
9734
9734
|
var n = this;
|
|
9735
|
-
if (
|
|
9736
|
-
var a = i.value, o =
|
|
9735
|
+
if (tr(t.nationalSignificantNumber, this.metadata)) for (var r = Tr(this.matchingFormats), i; !(i = r()).done;) {
|
|
9736
|
+
var a = i.value, o = er(t, a, {
|
|
9737
9737
|
metadata: this.metadata,
|
|
9738
9738
|
shouldTryNationalPrefixFormattingRule: function(e) {
|
|
9739
9739
|
return n.shouldTryNationalPrefixFormattingRule(e, {
|
|
@@ -9760,7 +9760,7 @@ var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
|
|
|
9760
9760
|
{
|
|
9761
9761
|
key: "narrowDownMatchingFormats",
|
|
9762
9762
|
value: function(e) {
|
|
9763
|
-
var t = this, n = e.nationalSignificantNumber, r = e.nationalPrefix, i = e.international, a = n, o = a.length -
|
|
9763
|
+
var t = this, n = e.nationalSignificantNumber, r = e.nationalPrefix, i = e.international, a = n, o = a.length - zr;
|
|
9764
9764
|
o < 0 && (o = 0), this.matchingFormats = this.matchingFormats.filter(function(e) {
|
|
9765
9765
|
return t.formatSuits(e, i, r) && t.formatMatches(e, a, o);
|
|
9766
9766
|
}), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
|
|
@@ -9779,8 +9779,8 @@ var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
|
|
|
9779
9779
|
if (r === 0) return !0;
|
|
9780
9780
|
n = Math.min(n, r - 1);
|
|
9781
9781
|
var i = e.leadingDigitsPatterns()[n];
|
|
9782
|
-
if (t.length <
|
|
9783
|
-
return new
|
|
9782
|
+
if (t.length < zr) try {
|
|
9783
|
+
return new Cr(i).match(t, { allowOverflow: !0 }) !== void 0;
|
|
9784
9784
|
} catch (e) /* istanbul ignore next */ {
|
|
9785
9785
|
return console.error(e), !0;
|
|
9786
9786
|
}
|
|
@@ -9801,10 +9801,10 @@ var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
|
|
|
9801
9801
|
var n = a.value;
|
|
9802
9802
|
return t.chosenFormat === n ? 0 :
|
|
9803
9803
|
/* istanbul ignore if */
|
|
9804
|
-
|
|
9804
|
+
Rr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e) ? (t.chosenFormat = n, 0) : (t.matchingFormats = t.matchingFormats.filter(function(e) {
|
|
9805
9805
|
return e !== n;
|
|
9806
9806
|
}), 1) : 1;
|
|
9807
|
-
}, r, i =
|
|
9807
|
+
}, r, i = Tr(this.matchingFormats.slice()), a; !(a = i()).done && (r = n(), r !== 0););
|
|
9808
9808
|
return this.chosenFormat || this.resetFormat(), this.chosenFormat;
|
|
9809
9809
|
}
|
|
9810
9810
|
},
|
|
@@ -9821,7 +9821,7 @@ var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
|
|
|
9821
9821
|
{
|
|
9822
9822
|
key: "getSeparatorAfterNationalPrefix",
|
|
9823
9823
|
value: function(e) {
|
|
9824
|
-
return this.isNANP || e && e.nationalPrefixFormattingRule() &&
|
|
9824
|
+
return this.isNANP || e && e.nationalPrefixFormattingRule() && Fr.test(e.nationalPrefixFormattingRule()) ? " " : "";
|
|
9825
9825
|
}
|
|
9826
9826
|
},
|
|
9827
9827
|
{
|
|
@@ -9836,7 +9836,7 @@ var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
|
|
|
9836
9836
|
value: function(e) {
|
|
9837
9837
|
if (this.template) {
|
|
9838
9838
|
for (var t = -1, n = 0, r = e.international ? this.getInternationalPrefixBeforeCountryCallingCode(e, { spacing: !1 }) : ""; n < r.length + e.getDigitsWithoutInternationalPrefix().length;) t = this.template.indexOf("x", t + 1), n++;
|
|
9839
|
-
return
|
|
9839
|
+
return Zn(this.template, t + 1);
|
|
9840
9840
|
}
|
|
9841
9841
|
}
|
|
9842
9842
|
},
|
|
@@ -9851,31 +9851,31 @@ var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
|
|
|
9851
9851
|
value: function(e, t) {
|
|
9852
9852
|
var n = t.nationalSignificantNumber, r = t.international, i = t.nationalPrefix, a = t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, o = e.pattern();
|
|
9853
9853
|
/* istanbul ignore else */
|
|
9854
|
-
G && (o = o.replace(
|
|
9855
|
-
var s =
|
|
9854
|
+
G && (o = o.replace(Ir(), "\\d").replace(Lr(), "\\d"));
|
|
9855
|
+
var s = Pr.match(o)[0];
|
|
9856
9856
|
if (!(n.length > s.length)) {
|
|
9857
|
-
var c = RegExp("^" + o + "$"), l = n.replace(/\d/g,
|
|
9857
|
+
var c = RegExp("^" + o + "$"), l = n.replace(/\d/g, Nr);
|
|
9858
9858
|
c.test(l) && (s = l);
|
|
9859
9859
|
var u = this.getFormatFormat(e, r), d;
|
|
9860
9860
|
if (this.shouldTryNationalPrefixFormattingRule(e, {
|
|
9861
9861
|
international: r,
|
|
9862
9862
|
nationalPrefix: i
|
|
9863
9863
|
})) {
|
|
9864
|
-
var f = u.replace(
|
|
9864
|
+
var f = u.replace(qe, e.nationalPrefixFormattingRule());
|
|
9865
9865
|
/* istanbul ignore else */
|
|
9866
|
-
if (
|
|
9866
|
+
if (F(e.nationalPrefixFormattingRule()) === (i || "") + F("$1") && (u = f, d = !0, i)) for (var p = i.length; p > 0;) u = u.replace(/\d/, "x"), p--;
|
|
9867
9867
|
}
|
|
9868
|
-
var m = s.replace(new RegExp(o), u).replace(new RegExp(
|
|
9869
|
-
return d || (a ? m = V("x", a.length) + " " + m : i && (m = V("x", i.length) + this.getSeparatorAfterNationalPrefix(e) + m)), r && (m =
|
|
9868
|
+
var m = s.replace(new RegExp(o), u).replace(new RegExp(Nr, "g"), "x");
|
|
9869
|
+
return d || (a ? m = V("x", a.length) + " " + m : i && (m = V("x", i.length) + this.getSeparatorAfterNationalPrefix(e) + m)), r && (m = Ke(m)), m;
|
|
9870
9870
|
}
|
|
9871
9871
|
}
|
|
9872
9872
|
},
|
|
9873
9873
|
{
|
|
9874
9874
|
key: "formatNextNationalNumberDigits",
|
|
9875
9875
|
value: function(e) {
|
|
9876
|
-
var t =
|
|
9876
|
+
var t = $n(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, e);
|
|
9877
9877
|
if (!t) this.resetFormat();
|
|
9878
|
-
else return this.populatedNationalNumberTemplate = t[0], this.populatedNationalNumberTemplatePosition = t[1],
|
|
9878
|
+
else return this.populatedNationalNumberTemplate = t[0], this.populatedNationalNumberTemplatePosition = t[1], Zn(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
9879
9879
|
}
|
|
9880
9880
|
},
|
|
9881
9881
|
{
|
|
@@ -9900,25 +9900,25 @@ function K(e) {
|
|
|
9900
9900
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9901
9901
|
}, K(e);
|
|
9902
9902
|
}
|
|
9903
|
-
function
|
|
9904
|
-
return
|
|
9903
|
+
function Vr(e, t) {
|
|
9904
|
+
return Kr(e) || Gr(e, t) || Ur(e, t) || Hr();
|
|
9905
9905
|
}
|
|
9906
|
-
function
|
|
9906
|
+
function Hr() {
|
|
9907
9907
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9908
9908
|
}
|
|
9909
|
-
function
|
|
9909
|
+
function Ur(e, t) {
|
|
9910
9910
|
if (e) {
|
|
9911
|
-
if (typeof e == "string") return
|
|
9911
|
+
if (typeof e == "string") return Wr(e, t);
|
|
9912
9912
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9913
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9913
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Wr(e, t) : void 0;
|
|
9914
9914
|
}
|
|
9915
9915
|
}
|
|
9916
|
-
function
|
|
9916
|
+
function Wr(e, t) {
|
|
9917
9917
|
(t == null || t > e.length) && (t = e.length);
|
|
9918
9918
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9919
9919
|
return r;
|
|
9920
9920
|
}
|
|
9921
|
-
function
|
|
9921
|
+
function Gr(e, t) {
|
|
9922
9922
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9923
9923
|
if (n != null) {
|
|
9924
9924
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -9939,26 +9939,26 @@ function Wr(e, t) {
|
|
|
9939
9939
|
return s;
|
|
9940
9940
|
}
|
|
9941
9941
|
}
|
|
9942
|
-
function
|
|
9942
|
+
function Kr(e) {
|
|
9943
9943
|
if (Array.isArray(e)) return e;
|
|
9944
9944
|
}
|
|
9945
|
-
function
|
|
9945
|
+
function qr(e, t) {
|
|
9946
9946
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9947
9947
|
}
|
|
9948
|
-
function
|
|
9948
|
+
function Jr(e, t) {
|
|
9949
9949
|
for (var n = 0; n < t.length; n++) {
|
|
9950
9950
|
var r = t[n];
|
|
9951
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9951
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Xr(r.key), r);
|
|
9952
9952
|
}
|
|
9953
9953
|
}
|
|
9954
|
-
function
|
|
9955
|
-
return t &&
|
|
9954
|
+
function Yr(e, t, n) {
|
|
9955
|
+
return t && Jr(e.prototype, t), n && Jr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9956
9956
|
}
|
|
9957
|
-
function
|
|
9958
|
-
var t =
|
|
9957
|
+
function Xr(e) {
|
|
9958
|
+
var t = Zr(e, "string");
|
|
9959
9959
|
return K(t) == "symbol" ? t : t + "";
|
|
9960
9960
|
}
|
|
9961
|
-
function
|
|
9961
|
+
function Zr(e, t) {
|
|
9962
9962
|
if (K(e) != "object" || !e) return e;
|
|
9963
9963
|
var n = e[Symbol.toPrimitive];
|
|
9964
9964
|
if (n !== void 0) {
|
|
@@ -9968,16 +9968,16 @@ function Xr(e, t) {
|
|
|
9968
9968
|
}
|
|
9969
9969
|
return (t === "string" ? String : Number)(e);
|
|
9970
9970
|
}
|
|
9971
|
-
var
|
|
9971
|
+
var Qr = "[" + w + C + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + T + "][" + w + C + "]*|[" + w + C + "]+)", ti = RegExp("[^" + w + C + "]+.*$"), ni = /[^\d\[\]]/, ri = /*#__PURE__*/ function() {
|
|
9972
9972
|
function e(t) {
|
|
9973
9973
|
var n = t.defaultCountry, r = t.defaultCallingCode, i = t.metadata, a = t.onNationalSignificantNumberChange;
|
|
9974
|
-
|
|
9974
|
+
qr(this, e), this.defaultCountry = n, this.defaultCallingCode = r, this.metadata = i, this.onNationalSignificantNumberChange = a;
|
|
9975
9975
|
}
|
|
9976
|
-
return
|
|
9976
|
+
return Yr(e, [
|
|
9977
9977
|
{
|
|
9978
9978
|
key: "input",
|
|
9979
9979
|
value: function(e, t) {
|
|
9980
|
-
var n =
|
|
9980
|
+
var n = Vr(oi(e), 2), r = n[0], i = n[1], a = F(r), o;
|
|
9981
9981
|
return i && (t.digits || (t.startInternationalNumber(void 0, void 0), a || (o = !0))), a && this.inputDigits(a, t), {
|
|
9982
9982
|
digits: a,
|
|
9983
9983
|
justLeadingPlus: o
|
|
@@ -10006,7 +10006,7 @@ var Zr = "[" + w + C + "]+", Qr = RegExp("^" + Zr + "$", "i"), $r = "(?:[" + T +
|
|
|
10006
10006
|
{
|
|
10007
10007
|
key: "extractCountryCallingCode",
|
|
10008
10008
|
value: function(e) {
|
|
10009
|
-
var t =
|
|
10009
|
+
var t = Ge("+" + e.getDigitsWithoutInternationalPrefix(), e.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), n = t.countryCallingCode, r = t.number;
|
|
10010
10010
|
if (n) return e.setCallingCode(n), e.update({ nationalSignificantNumber: r }), !0;
|
|
10011
10011
|
}
|
|
10012
10012
|
},
|
|
@@ -10016,7 +10016,7 @@ var Zr = "[" + w + C + "]+", Qr = RegExp("^" + Zr + "$", "i"), $r = "(?:[" + T +
|
|
|
10016
10016
|
if (e) {
|
|
10017
10017
|
this.hasSelectedNumberingPlan = !0;
|
|
10018
10018
|
var t = e._nationalPrefixForParsing();
|
|
10019
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber = t &&
|
|
10019
|
+
this.couldPossiblyExtractAnotherNationalSignificantNumber = t && ni.test(t);
|
|
10020
10020
|
} else this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
10021
10021
|
}
|
|
10022
10022
|
},
|
|
@@ -10024,7 +10024,7 @@ var Zr = "[" + w + C + "]+", Qr = RegExp("^" + Zr + "$", "i"), $r = "(?:[" + T +
|
|
|
10024
10024
|
key: "extractNationalSignificantNumber",
|
|
10025
10025
|
value: function(e, t) {
|
|
10026
10026
|
if (this.hasSelectedNumberingPlan) {
|
|
10027
|
-
var n =
|
|
10027
|
+
var n = Ie(e, this.metadata), r = n.nationalPrefix, i = n.nationalNumber, a = n.carrierCode;
|
|
10028
10028
|
if (i !== e) return this.onExtractedNationalNumber(r, a, i, e, t), !0;
|
|
10029
10029
|
}
|
|
10030
10030
|
}
|
|
@@ -10034,7 +10034,7 @@ var Zr = "[" + w + C + "]+", Qr = RegExp("^" + Zr + "$", "i"), $r = "(?:[" + T +
|
|
|
10034
10034
|
value: function(e, t, n) {
|
|
10035
10035
|
if (!this.hasExtractedNationalSignificantNumber) return this.extractNationalSignificantNumber(e, n);
|
|
10036
10036
|
if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
|
|
10037
|
-
var r =
|
|
10037
|
+
var r = Ie(e, this.metadata), i = r.nationalPrefix, a = r.nationalNumber, o = r.carrierCode;
|
|
10038
10038
|
/* istanbul ignore if */
|
|
10039
10039
|
if (a !== t) return this.onExtractedNationalNumber(i, o, a, e, n), !0;
|
|
10040
10040
|
}
|
|
@@ -10073,7 +10073,7 @@ var Zr = "[" + w + C + "]+", Qr = RegExp("^" + Zr + "$", "i"), $r = "(?:[" + T +
|
|
|
10073
10073
|
value: function(e) {
|
|
10074
10074
|
var t = e.international, n = e.IDDPrefix, r = e.digits;
|
|
10075
10075
|
if (e.nationalSignificantNumber, !(t || n)) {
|
|
10076
|
-
var i =
|
|
10076
|
+
var i = Fe(r, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
|
|
10077
10077
|
if (i !== void 0 && i !== r) return e.update({ IDDPrefix: r.slice(0, r.length - i.length) }), this.startInternationalNumber(e, {
|
|
10078
10078
|
country: void 0,
|
|
10079
10079
|
callingCode: void 0
|
|
@@ -10085,7 +10085,7 @@ var Zr = "[" + w + C + "]+", Qr = RegExp("^" + Zr + "$", "i"), $r = "(?:[" + T +
|
|
|
10085
10085
|
key: "fixMissingPlus",
|
|
10086
10086
|
value: function(e) {
|
|
10087
10087
|
if (!e.international) {
|
|
10088
|
-
var t =
|
|
10088
|
+
var t = We(e.digits, e.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata).countryCallingCode;
|
|
10089
10089
|
if (t) return e.update({ missingPlus: !0 }), this.startInternationalNumber(e, {
|
|
10090
10090
|
country: e.country,
|
|
10091
10091
|
callingCode: t
|
|
@@ -10110,21 +10110,21 @@ var Zr = "[" + w + C + "]+", Qr = RegExp("^" + Zr + "$", "i"), $r = "(?:[" + T +
|
|
|
10110
10110
|
}
|
|
10111
10111
|
]);
|
|
10112
10112
|
}();
|
|
10113
|
-
function
|
|
10114
|
-
var t = e.search(
|
|
10113
|
+
function ii(e) {
|
|
10114
|
+
var t = e.search(ei);
|
|
10115
10115
|
if (!(t < 0)) {
|
|
10116
10116
|
e = e.slice(t);
|
|
10117
10117
|
var n;
|
|
10118
|
-
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(
|
|
10118
|
+
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(ti, ""), n && (e = "+" + e), e;
|
|
10119
10119
|
}
|
|
10120
10120
|
}
|
|
10121
|
-
function
|
|
10122
|
-
var t =
|
|
10121
|
+
function ai(e) {
|
|
10122
|
+
var t = ii(e) || "";
|
|
10123
10123
|
return t[0] === "+" ? [t.slice(1), !0] : [t];
|
|
10124
10124
|
}
|
|
10125
|
-
function
|
|
10126
|
-
var t =
|
|
10127
|
-
return
|
|
10125
|
+
function oi(e) {
|
|
10126
|
+
var t = Vr(ai(e), 2), n = t[0], r = t[1];
|
|
10127
|
+
return $r.test(n) || (n = ""), [n, r];
|
|
10128
10128
|
}
|
|
10129
10129
|
//#endregion
|
|
10130
10130
|
//#region node_modules/libphonenumber-js/es6/AsYouType.js
|
|
@@ -10136,25 +10136,25 @@ function q(e) {
|
|
|
10136
10136
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
10137
10137
|
}, q(e);
|
|
10138
10138
|
}
|
|
10139
|
-
function
|
|
10140
|
-
return
|
|
10139
|
+
function si(e, t) {
|
|
10140
|
+
return fi(e) || di(e, t) || li(e, t) || ci();
|
|
10141
10141
|
}
|
|
10142
|
-
function
|
|
10142
|
+
function ci() {
|
|
10143
10143
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10144
10144
|
}
|
|
10145
|
-
function
|
|
10145
|
+
function li(e, t) {
|
|
10146
10146
|
if (e) {
|
|
10147
|
-
if (typeof e == "string") return
|
|
10147
|
+
if (typeof e == "string") return ui(e, t);
|
|
10148
10148
|
var n = {}.toString.call(e).slice(8, -1);
|
|
10149
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
10149
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ui(e, t) : void 0;
|
|
10150
10150
|
}
|
|
10151
10151
|
}
|
|
10152
|
-
function
|
|
10152
|
+
function ui(e, t) {
|
|
10153
10153
|
(t == null || t > e.length) && (t = e.length);
|
|
10154
10154
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
10155
10155
|
return r;
|
|
10156
10156
|
}
|
|
10157
|
-
function
|
|
10157
|
+
function di(e, t) {
|
|
10158
10158
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
10159
10159
|
if (n != null) {
|
|
10160
10160
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -10175,26 +10175,26 @@ function ui(e, t) {
|
|
|
10175
10175
|
return s;
|
|
10176
10176
|
}
|
|
10177
10177
|
}
|
|
10178
|
-
function
|
|
10178
|
+
function fi(e) {
|
|
10179
10179
|
if (Array.isArray(e)) return e;
|
|
10180
10180
|
}
|
|
10181
|
-
function
|
|
10181
|
+
function pi(e, t) {
|
|
10182
10182
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
10183
10183
|
}
|
|
10184
|
-
function
|
|
10184
|
+
function mi(e, t) {
|
|
10185
10185
|
for (var n = 0; n < t.length; n++) {
|
|
10186
10186
|
var r = t[n];
|
|
10187
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
10187
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, gi(r.key), r);
|
|
10188
10188
|
}
|
|
10189
10189
|
}
|
|
10190
|
-
function
|
|
10191
|
-
return t &&
|
|
10190
|
+
function hi(e, t, n) {
|
|
10191
|
+
return t && mi(e.prototype, t), n && mi(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
10192
10192
|
}
|
|
10193
|
-
function
|
|
10194
|
-
var t =
|
|
10193
|
+
function gi(e) {
|
|
10194
|
+
var t = _i(e, "string");
|
|
10195
10195
|
return q(t) == "symbol" ? t : t + "";
|
|
10196
10196
|
}
|
|
10197
|
-
function
|
|
10197
|
+
function _i(e, t) {
|
|
10198
10198
|
if (q(e) != "object" || !e) return e;
|
|
10199
10199
|
var n = e[Symbol.toPrimitive];
|
|
10200
10200
|
if (n !== void 0) {
|
|
@@ -10204,18 +10204,18 @@ function gi(e, t) {
|
|
|
10204
10204
|
}
|
|
10205
10205
|
return (t === "string" ? String : Number)(e);
|
|
10206
10206
|
}
|
|
10207
|
-
var
|
|
10207
|
+
var vi = /*#__PURE__*/ function() {
|
|
10208
10208
|
function e(t, n) {
|
|
10209
|
-
|
|
10210
|
-
var r =
|
|
10209
|
+
pi(this, e), this.metadata = new b(n);
|
|
10210
|
+
var r = si(this.getCountryAndCallingCode(t), 2), i = r[0], a = r[1];
|
|
10211
10211
|
this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
|
|
10212
10212
|
}
|
|
10213
|
-
return
|
|
10213
|
+
return hi(e, [
|
|
10214
10214
|
{
|
|
10215
10215
|
key: "getCountryAndCallingCode",
|
|
10216
10216
|
value: function(e) {
|
|
10217
10217
|
var t, n;
|
|
10218
|
-
return e && (
|
|
10218
|
+
return e && (p(e) ? (t = e.defaultCountry, n = e.defaultCallingCode) : t = e), t && !this.metadata.hasCountry(t) && (t = void 0), [t, n];
|
|
10219
10219
|
}
|
|
10220
10220
|
},
|
|
10221
10221
|
{
|
|
@@ -10240,17 +10240,17 @@ var _i = /*#__PURE__*/ function() {
|
|
|
10240
10240
|
key: "reset",
|
|
10241
10241
|
value: function() {
|
|
10242
10242
|
var e = this;
|
|
10243
|
-
return this.state = new
|
|
10243
|
+
return this.state = new Kn({
|
|
10244
10244
|
onCountryChange: function(t) {
|
|
10245
10245
|
e.country = t;
|
|
10246
10246
|
},
|
|
10247
10247
|
onCallingCodeChange: function(t, n) {
|
|
10248
10248
|
e.metadata.selectNumberingPlan(n || t), e.formatter.reset(e.metadata.numberingPlan, e.state), e.parser.reset(e.metadata.numberingPlan);
|
|
10249
10249
|
}
|
|
10250
|
-
}), this.formatter = new
|
|
10250
|
+
}), this.formatter = new Br({
|
|
10251
10251
|
state: this.state,
|
|
10252
10252
|
metadata: this.metadata
|
|
10253
|
-
}), this.parser = new
|
|
10253
|
+
}), this.parser = new ri({
|
|
10254
10254
|
defaultCountry: this.defaultCountry,
|
|
10255
10255
|
defaultCallingCode: this.defaultCallingCode,
|
|
10256
10256
|
metadata: this.metadata,
|
|
@@ -10369,7 +10369,7 @@ var _i = /*#__PURE__*/ function() {
|
|
|
10369
10369
|
var i = this._getCountry();
|
|
10370
10370
|
if (i || r) {
|
|
10371
10371
|
if (i && i === this.defaultCountry) {
|
|
10372
|
-
var a =
|
|
10372
|
+
var a = yi(this.metadata.numberingPlan.callingCode(), t, this.metadata);
|
|
10373
10373
|
a && (i = a);
|
|
10374
10374
|
}
|
|
10375
10375
|
var o = new xt(i || r, t, this.metadata.metadata);
|
|
@@ -10399,7 +10399,7 @@ var _i = /*#__PURE__*/ function() {
|
|
|
10399
10399
|
if (!t) return "NOT_A_NUMBER";
|
|
10400
10400
|
if (!this.metadata.numberingPlan) return "INVALID_COUNTRY";
|
|
10401
10401
|
if (!n) return "TOO_SHORT";
|
|
10402
|
-
var r =
|
|
10402
|
+
var r = x(n, void 0, this.metadata);
|
|
10403
10403
|
if (r !== "IS_POSSIBLE") return r;
|
|
10404
10404
|
}
|
|
10405
10405
|
},
|
|
@@ -10423,46 +10423,46 @@ var _i = /*#__PURE__*/ function() {
|
|
|
10423
10423
|
}
|
|
10424
10424
|
]);
|
|
10425
10425
|
}();
|
|
10426
|
-
function
|
|
10426
|
+
function yi(e, t, n) {
|
|
10427
10427
|
var r = n.getCountryCodesForCallingCode(e);
|
|
10428
|
-
if (r.length > 1) return
|
|
10428
|
+
if (r.length > 1) return Be(t, r, n.metadata);
|
|
10429
10429
|
}
|
|
10430
10430
|
//#endregion
|
|
10431
10431
|
//#region node_modules/libphonenumber-js/es6/getExampleNumber.js
|
|
10432
|
-
function
|
|
10432
|
+
function bi(e, t, n) {
|
|
10433
10433
|
if (t[e]) return new xt(e, t[e], n);
|
|
10434
10434
|
}
|
|
10435
10435
|
//#endregion
|
|
10436
10436
|
//#region node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js
|
|
10437
10437
|
function J() {
|
|
10438
|
-
return
|
|
10438
|
+
return u(Bn, arguments);
|
|
10439
10439
|
}
|
|
10440
10440
|
//#endregion
|
|
10441
10441
|
//#region node_modules/libphonenumber-js/min/exports/AsYouType.js
|
|
10442
10442
|
function Y(e) {
|
|
10443
|
-
return
|
|
10443
|
+
return vi.call(this, e, l);
|
|
10444
10444
|
}
|
|
10445
|
-
Y.prototype = Object.create(
|
|
10445
|
+
Y.prototype = Object.create(vi.prototype, {}), Y.prototype.constructor = Y;
|
|
10446
10446
|
//#endregion
|
|
10447
10447
|
//#region node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js
|
|
10448
|
-
function
|
|
10449
|
-
return
|
|
10448
|
+
function xi() {
|
|
10449
|
+
return u(fe, arguments);
|
|
10450
10450
|
}
|
|
10451
10451
|
//#endregion
|
|
10452
10452
|
//#region node_modules/libphonenumber-js/min/exports/getExampleNumber.js
|
|
10453
|
-
function
|
|
10454
|
-
return
|
|
10453
|
+
function Si() {
|
|
10454
|
+
return u(bi, arguments);
|
|
10455
10455
|
}
|
|
10456
10456
|
//#endregion
|
|
10457
10457
|
//#region libs/checkout/src/utils/phone/countryDialCodes.ts
|
|
10458
10458
|
var X = (e) => {
|
|
10459
10459
|
let t = e.toUpperCase().split("").map((e) => 127397 + e.charCodeAt(0));
|
|
10460
10460
|
return String.fromCodePoint(...t);
|
|
10461
|
-
},
|
|
10461
|
+
}, Ci = (t, n) => {
|
|
10462
10462
|
let r = Object.values(e);
|
|
10463
10463
|
return (t?.length ? r.filter((e) => t.includes(e.toUpperCase())) : r).map((e) => {
|
|
10464
10464
|
try {
|
|
10465
|
-
let t =
|
|
10465
|
+
let t = xi(e);
|
|
10466
10466
|
return {
|
|
10467
10467
|
code: e.toUpperCase(),
|
|
10468
10468
|
name: i(e, n),
|
|
@@ -10473,9 +10473,9 @@ var X = (e) => {
|
|
|
10473
10473
|
return null;
|
|
10474
10474
|
}
|
|
10475
10475
|
}).filter((e) => e !== null).sort((e, t) => e.name.localeCompare(t.name, n));
|
|
10476
|
-
},
|
|
10476
|
+
}, wi = (e) => {
|
|
10477
10477
|
try {
|
|
10478
|
-
let t = e.toUpperCase(), n =
|
|
10478
|
+
let t = e.toUpperCase(), n = xi(t);
|
|
10479
10479
|
return {
|
|
10480
10480
|
code: t,
|
|
10481
10481
|
name: i(t),
|
|
@@ -10485,7 +10485,10 @@ var X = (e) => {
|
|
|
10485
10485
|
} catch {
|
|
10486
10486
|
return null;
|
|
10487
10487
|
}
|
|
10488
|
-
},
|
|
10488
|
+
}, Ti = "US", Ei = (e) => {
|
|
10489
|
+
let t = e?.toUpperCase();
|
|
10490
|
+
return t && wi(t) ? t : Ti;
|
|
10491
|
+
}, Di = {
|
|
10489
10492
|
AC: "40123",
|
|
10490
10493
|
AD: "312345",
|
|
10491
10494
|
AE: "501234567",
|
|
@@ -10737,7 +10740,7 @@ var X = (e) => {
|
|
|
10737
10740
|
} catch {
|
|
10738
10741
|
return e;
|
|
10739
10742
|
}
|
|
10740
|
-
},
|
|
10743
|
+
}, Oi = (e, t) => {
|
|
10741
10744
|
try {
|
|
10742
10745
|
return J(e, t)?.number || null;
|
|
10743
10746
|
} catch {
|
|
@@ -10755,12 +10758,12 @@ var X = (e) => {
|
|
|
10755
10758
|
}
|
|
10756
10759
|
}, $ = (e) => {
|
|
10757
10760
|
try {
|
|
10758
|
-
let t =
|
|
10761
|
+
let t = Si(e, Di);
|
|
10759
10762
|
return t ? t.formatNational() : "";
|
|
10760
10763
|
} catch {
|
|
10761
10764
|
return "";
|
|
10762
10765
|
}
|
|
10763
|
-
},
|
|
10766
|
+
}, ki = (e, t) => {
|
|
10764
10767
|
try {
|
|
10765
10768
|
if (e.startsWith("+")) {
|
|
10766
10769
|
let n = J(e);
|
|
@@ -10770,27 +10773,27 @@ var X = (e) => {
|
|
|
10770
10773
|
} catch {
|
|
10771
10774
|
return !1;
|
|
10772
10775
|
}
|
|
10773
|
-
},
|
|
10776
|
+
}, Ai = (e) => {
|
|
10774
10777
|
try {
|
|
10775
|
-
let t =
|
|
10778
|
+
let t = Si(e, Di);
|
|
10776
10779
|
return t ? t.nationalNumber.length : Infinity;
|
|
10777
10780
|
} catch {
|
|
10778
10781
|
return Infinity;
|
|
10779
10782
|
}
|
|
10780
|
-
},
|
|
10783
|
+
}, ji = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" aria-hidden=\"true\"><path d=\"M2 3.5L5 6.5L8 3.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", Mi = class extends o {
|
|
10781
10784
|
_flagDisplay;
|
|
10782
10785
|
_selectElement;
|
|
10783
10786
|
_locale;
|
|
10784
10787
|
constructor(e) {
|
|
10785
10788
|
super("div", ["country-select-wrapper"]);
|
|
10786
|
-
let { countries: t, selectedCode: n, locale: r, styles: i, ariaLabel:
|
|
10787
|
-
this._locale = r, this._flagDisplay = new
|
|
10788
|
-
let
|
|
10789
|
-
|
|
10790
|
-
|
|
10789
|
+
let { countries: t, selectedCode: n, locale: r, styles: i, ariaLabel: s, onChange: c } = e;
|
|
10790
|
+
this._locale = r, this._flagDisplay = new o("span", ["country-flag"]), this._flagDisplay.setText(X(n)), this._selectElement = new o("select", ["country-select"]), this._selectElement.setAttribute("aria-label", s);
|
|
10791
|
+
let l = this._selectElement.getElement();
|
|
10792
|
+
l.style.fontFamily = a(i.fontFamily), l.style.color = i.textColor, l.style.fontSize = `${i.fontSize}px`, this._buildOptions(t, n), this._selectElement.addEventListener("change", (e) => {
|
|
10793
|
+
c(e.target.value);
|
|
10791
10794
|
});
|
|
10792
|
-
let
|
|
10793
|
-
|
|
10795
|
+
let u = new o("span", ["country-chevron"]);
|
|
10796
|
+
u.getElement().innerHTML = ji, this.appendChild(this._flagDisplay), this.appendChild(u), this.appendChild(this._selectElement);
|
|
10794
10797
|
}
|
|
10795
10798
|
setCountry(e) {
|
|
10796
10799
|
return this._selectElement.getElement().value = e, this._flagDisplay.setText(X(e)), this;
|
|
@@ -10813,7 +10816,7 @@ var X = (e) => {
|
|
|
10813
10816
|
}), n.appendChild(i);
|
|
10814
10817
|
});
|
|
10815
10818
|
}
|
|
10816
|
-
},
|
|
10819
|
+
}, Ni = class extends o {
|
|
10817
10820
|
_countrySelector;
|
|
10818
10821
|
_inputElement;
|
|
10819
10822
|
_countryCodeInput;
|
|
@@ -10827,14 +10830,14 @@ var X = (e) => {
|
|
|
10827
10830
|
_customPlaceholder;
|
|
10828
10831
|
constructor(e) {
|
|
10829
10832
|
super("div", ["input-wrapper", "phone-number-field-wrapper"]);
|
|
10830
|
-
let { value: r, onChange: i, onBlur:
|
|
10831
|
-
this._onChange = i, this._onBlur =
|
|
10833
|
+
let { value: r, onChange: i, onBlur: a, onTab: s, checkoutProfile: c, translationFunc: l, defaultCountry: u, allowedCountries: d, locale: f, label: p, placeholder: m } = e;
|
|
10834
|
+
this._onChange = i, this._onBlur = a, this._translationFunc = l, this._customPlaceholder = m, this._currentCountryCode = Ei(u), this._buildLabel(c, l, p), this._containerElement = this._buildContainer(c), this._countrySelector = this._buildCountrySelector(d, f, c, l), this._containerElement.appendChild(this._countrySelector), this._countryCodeInput = n.createInput("hidden", [], {
|
|
10832
10835
|
name: "phoneCountryCode",
|
|
10833
10836
|
value: this._currentCountryCode
|
|
10834
10837
|
}), this.appendChild(this._countryCodeInput);
|
|
10835
10838
|
let h = this._currentCountryCode, { inputElement: g, initialValue: _ } = this._buildInput(c, r, s);
|
|
10836
10839
|
this._inputElement = g, _ !== r && (this._inputElement.getElement().value = _), this._currentCountryCode !== h && this._syncCountryCodeInput(this._currentCountryCode);
|
|
10837
|
-
let v = new
|
|
10840
|
+
let v = new o("div", ["phone-input-wrapper"]);
|
|
10838
10841
|
v.appendChild(this._inputElement), this._containerElement.appendChild(v), this.appendChild(this._containerElement), this._helperText = new t({
|
|
10839
10842
|
text: e.errorMsg || "",
|
|
10840
10843
|
visible: e.error
|
|
@@ -10852,12 +10855,12 @@ var X = (e) => {
|
|
|
10852
10855
|
this.appendChild(i);
|
|
10853
10856
|
}
|
|
10854
10857
|
_buildContainer(e) {
|
|
10855
|
-
let t = new
|
|
10858
|
+
let t = new o("div", ["phone-number-field-container"]), n = t.getElement();
|
|
10856
10859
|
return n.style.borderRadius = `${e.styles.borderRadius}px`, n.style.setProperty("--phone-border-radius", `${e.styles.borderRadius}px`), t;
|
|
10857
10860
|
}
|
|
10858
10861
|
_buildCountrySelector(e, t, n, r) {
|
|
10859
|
-
return new
|
|
10860
|
-
countries:
|
|
10862
|
+
return new Mi({
|
|
10863
|
+
countries: Ci(e, t),
|
|
10861
10864
|
selectedCode: this._currentCountryCode,
|
|
10862
10865
|
locale: t,
|
|
10863
10866
|
styles: {
|
|
@@ -10877,25 +10880,25 @@ var X = (e) => {
|
|
|
10877
10880
|
let e = Q(t);
|
|
10878
10881
|
e && (this._currentCountryCode = e.countryCode, this._countrySelector.setCountry(e.countryCode), i = Z(t, e.countryCode));
|
|
10879
10882
|
}
|
|
10880
|
-
let
|
|
10883
|
+
let o = n.createInput("tel", ["form-input"], {
|
|
10881
10884
|
id: "phoneNumber",
|
|
10882
10885
|
name: "phoneNumber",
|
|
10883
10886
|
placeholder: this._customPlaceholder ?? $(this._currentCountryCode),
|
|
10884
10887
|
value: i,
|
|
10885
10888
|
autocomplete: "tel",
|
|
10886
10889
|
maxlength: "30"
|
|
10887
|
-
}),
|
|
10888
|
-
return
|
|
10890
|
+
}), s = o.getElement();
|
|
10891
|
+
return s.style.fontFamily = a(e.styles.fontFamily), s.style.color = e.styles.textColor, s.style.fontSize = `${e.styles.fontSize}px`, o.addEventListener("input", (e) => {
|
|
10889
10892
|
this._handleInput(e);
|
|
10890
|
-
}),
|
|
10893
|
+
}), o.addEventListener("focus", () => {
|
|
10891
10894
|
this._containerElement.addClass("focused");
|
|
10892
|
-
}),
|
|
10895
|
+
}), o.addEventListener("blur", (e) => {
|
|
10893
10896
|
this._containerElement.removeClass("focused"), this._validateInput(this._inputElement.getElement().value, !0), this._onBlur(e);
|
|
10894
|
-
}), r &&
|
|
10897
|
+
}), r && o.addEventListener("keydown", (e) => {
|
|
10895
10898
|
let t = e;
|
|
10896
10899
|
t.key === "Tab" && !t.shiftKey && (t.preventDefault(), r());
|
|
10897
10900
|
}), {
|
|
10898
|
-
inputElement:
|
|
10901
|
+
inputElement: o,
|
|
10899
10902
|
initialValue: i
|
|
10900
10903
|
};
|
|
10901
10904
|
}
|
|
@@ -10916,10 +10919,10 @@ var X = (e) => {
|
|
|
10916
10919
|
let r = this._countrySelector.getCountry();
|
|
10917
10920
|
if (r && r !== this._currentCountryCode && (this._currentCountryCode = r, this._countrySelector.setCountry(r), t.placeholder = this._customPlaceholder ?? $(r)), !e) return;
|
|
10918
10921
|
let i = e.slice(0, n).replace(/\D/g, "").length, a = Z(e, this._currentCountryCode);
|
|
10919
|
-
a !== e && (t.value = a,
|
|
10922
|
+
a !== e && (t.value = a, c(t, i, a));
|
|
10920
10923
|
}
|
|
10921
10924
|
_syncCountryCodeInput(e) {
|
|
10922
|
-
this._countryCodeInput.getElement().value = e, this._onChange(
|
|
10925
|
+
this._countryCodeInput.getElement().value = e, this._onChange(s({
|
|
10923
10926
|
type: "input",
|
|
10924
10927
|
target: {
|
|
10925
10928
|
name: "phoneCountryCode",
|
|
@@ -10932,10 +10935,10 @@ var X = (e) => {
|
|
|
10932
10935
|
}
|
|
10933
10936
|
_validateInput(e, t = !1) {
|
|
10934
10937
|
if (!e) this._clearValidationError();
|
|
10935
|
-
else if (
|
|
10938
|
+
else if (ki(e, this._currentCountryCode)) this._clearValidationError();
|
|
10936
10939
|
else {
|
|
10937
10940
|
if (!t) {
|
|
10938
|
-
let t =
|
|
10941
|
+
let t = Ai(this._currentCountryCode), n;
|
|
10939
10942
|
if (e.startsWith("+")) {
|
|
10940
10943
|
let t = Q(e);
|
|
10941
10944
|
n = t ? t.nationalNumber.replace(/\D/g, "").length : 0;
|
|
@@ -10958,7 +10961,7 @@ var X = (e) => {
|
|
|
10958
10961
|
}
|
|
10959
10962
|
getValue() {
|
|
10960
10963
|
let e = this._inputElement.getElement().value;
|
|
10961
|
-
return e ?
|
|
10964
|
+
return e ? Oi(e, this._currentCountryCode) || e : "";
|
|
10962
10965
|
}
|
|
10963
10966
|
setValue(e) {
|
|
10964
10967
|
if (!e) return this._inputElement.getElement().value = "", this._userSelectedCountry = !1, this;
|
|
@@ -10986,4 +10989,4 @@ var X = (e) => {
|
|
|
10986
10989
|
}
|
|
10987
10990
|
};
|
|
10988
10991
|
//#endregion
|
|
10989
|
-
export {
|
|
10992
|
+
export { Ni as PhoneNumberField, Z as formatPhoneAsYouType, Ci as getCountriesForDialSelector, wi as getCountryDialCodeInfo, Ai as getExpectedDigitLength, X as getFlagEmoji, $ as getPlaceholder, ki as isValidPhoneNumber, Q as parseE164, Ei as resolvePhoneDefaultCountry, Oi as toE164 };
|