@caspeco/casper-ui-library 10.5.0 → 10.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/components/combobox/combobox-button.d.ts +1 -1
  2. package/dist/components/combobox/combobox-button.d.ts.map +1 -1
  3. package/dist/components/combobox/combobox-button.js +117 -83
  4. package/dist/components/combobox/combobox-recipe.d.ts.map +1 -1
  5. package/dist/components/combobox/combobox-recipe.js +16 -0
  6. package/dist/components/combobox/combobox.composition.d.ts.map +1 -1
  7. package/dist/components/combobox/translations.d.ts.map +1 -1
  8. package/dist/components/combobox/translations.js +6 -0
  9. package/dist/components/combobox/types.d.ts +1 -0
  10. package/dist/components/combobox/types.d.ts.map +1 -1
  11. package/dist/components/phone-input/country-data.d.ts +1 -1
  12. package/dist/components/phone-input/country-data.d.ts.map +1 -1
  13. package/dist/components/phone-input/country-data.js +2 -2
  14. package/dist/components/phone-input/country-list.d.ts +1 -1
  15. package/dist/components/phone-input/country-list.d.ts.map +1 -1
  16. package/dist/components/phone-input/country-list.js +1 -0
  17. package/dist/components/phone-input/country-selector.d.ts +1 -1
  18. package/dist/components/phone-input/country-selector.d.ts.map +1 -1
  19. package/dist/components/phone-input/phone-input-helpers.d.ts +1 -1
  20. package/dist/components/phone-input/phone-input-helpers.d.ts.map +1 -1
  21. package/dist/components/phone-input/phone-input-helpers.js +5 -5
  22. package/dist/components/phone-input/types.d.ts +1 -1
  23. package/dist/components/phone-input/types.d.ts.map +1 -1
  24. package/dist/components/phone-input/use-phone-input.d.ts +1 -1
  25. package/dist/components/phone-input/use-phone-input.d.ts.map +1 -1
  26. package/dist/components/phone-input/use-phone-input.js +1 -1
  27. package/dist/node_modules/libphonenumber-js/es6-modern/ParseError.js +8 -0
  28. package/dist/node_modules/libphonenumber-js/es6-modern/PhoneNumber.js +73 -0
  29. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/constants.js +1 -1
  30. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/format.js +22 -22
  31. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/getCountries.js +1 -1
  32. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/RFC3966.js +8 -0
  33. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/applyInternationalSeparatorStyle.js +1 -1
  34. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/checkNumberLength.js +6 -6
  35. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/extension/createExtensionPattern.js +2 -4
  36. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/extension/extractExtension.js +4 -3
  37. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/extractCountryCallingCode.js +15 -14
  38. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +21 -0
  39. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +21 -0
  40. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/extractNationalNumber.js +7 -7
  41. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +27 -0
  42. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/extractPhoneContext.js +4 -3
  43. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/formatNationalNumberUsingFormat.js +9 -0
  44. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/getCountryAndCallingCodeFromOneOfThem.js +2 -1
  45. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/getCountryByCallingCode.js +8 -0
  46. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/getCountryByNationalNumber.js +14 -0
  47. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/getIddPrefix.js +2 -2
  48. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/getNumberType.js +30 -0
  49. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/getPossibleCountriesForNumber.js +12 -0
  50. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/isCallingCode.js +1 -1
  51. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/isCountryCode.js +1 -1
  52. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/isObject.js +1 -1
  53. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/isViablePhoneNumber.js +1 -1
  54. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/matchesEntirely.js +1 -1
  55. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/mergeArrays.js +8 -0
  56. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/helpers/parseDigits.js +1 -1
  57. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/stripIddPrefix.js +16 -0
  58. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/isPossible.js +2 -2
  59. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/isValid.js +3 -3
  60. package/dist/node_modules/libphonenumber-js/es6-modern/isValidPhoneNumber.js +20 -0
  61. package/dist/node_modules/libphonenumber-js/es6-modern/metadata.js +254 -0
  62. package/dist/node_modules/libphonenumber-js/es6-modern/normalizeArguments.js +26 -0
  63. package/dist/node_modules/libphonenumber-js/es6-modern/parse.js +100 -0
  64. package/dist/node_modules/libphonenumber-js/es6-modern/parseIncompletePhoneNumber.js +19 -0
  65. package/dist/node_modules/libphonenumber-js/es6-modern/parsePhoneNumber.js +9 -0
  66. package/dist/node_modules/libphonenumber-js/es6-modern/parsePhoneNumberWithError_.js +16 -0
  67. package/dist/node_modules/libphonenumber-js/es6-modern/parsePhoneNumber_.js +24 -0
  68. package/dist/node_modules/libphonenumber-js/{es6 → es6-modern}/tools/semver-compare.js +1 -1
  69. package/dist/node_modules/libphonenumber-js/max/es6/exports/PhoneNumber.js +10 -0
  70. package/dist/node_modules/libphonenumber-js/max/es6/exports/getCountries.js +8 -0
  71. package/dist/node_modules/libphonenumber-js/max/es6/exports/getCountryCallingCode.js +8 -0
  72. package/dist/node_modules/libphonenumber-js/max/es6/exports/isSupportedCountry.js +8 -0
  73. package/dist/node_modules/libphonenumber-js/max/es6/exports/isValidPhoneNumber.js +8 -0
  74. package/dist/node_modules/libphonenumber-js/max/es6/exports/parsePhoneNumber.js +9 -0
  75. package/dist/node_modules/libphonenumber-js/max/es6/exports/withMetadataArgument.js +10 -0
  76. package/dist/node_modules/libphonenumber-js/{metadata.min.json.js → metadata.max.json.js} +3313 -254
  77. package/package.json +1 -1
  78. package/dist/node_modules/libphonenumber-js/es6/ParseError.js +0 -116
  79. package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.js +0 -164
  80. package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -9
  81. package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -21
  82. package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -18
  83. package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -27
  84. package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -11
  85. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -7
  86. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +0 -43
  87. package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -61
  88. package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -14
  89. package/dist/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +0 -39
  90. package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -18
  91. package/dist/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +0 -62
  92. package/dist/node_modules/libphonenumber-js/es6/metadata.js +0 -474
  93. package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -110
  94. package/dist/node_modules/libphonenumber-js/es6/parse.js +0 -103
  95. package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -48
  96. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -9
  97. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -58
  98. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -66
  99. package/dist/node_modules/libphonenumber-js/min/exports/getCountries.js +0 -8
  100. package/dist/node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js +0 -8
  101. package/dist/node_modules/libphonenumber-js/min/exports/isSupportedCountry.js +0 -8
  102. package/dist/node_modules/libphonenumber-js/min/exports/isValidPhoneNumber.js +0 -8
  103. package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -8
  104. package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caspeco/casper-ui-library",
3
- "version": "10.5.0",
3
+ "version": "10.6.0",
4
4
  "prettier": "@caspeco/prettier-config",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,116 +0,0 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/ParseError.js
2
- function e(t) {
3
- "@babel/helpers - typeof";
4
- return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
5
- return typeof e;
6
- } : function(e) {
7
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
8
- }, e(t);
9
- }
10
- function t(e, t) {
11
- for (var n = 0; n < t.length; n++) {
12
- var i = t[n];
13
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, r(i.key), i);
14
- }
15
- }
16
- function n(e, n, r) {
17
- return n && t(e.prototype, n), r && t(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
18
- }
19
- function r(t) {
20
- var n = i(t, "string");
21
- return e(n) == "symbol" ? n : n + "";
22
- }
23
- function i(t, n) {
24
- if (e(t) != "object" || !t) return t;
25
- var r = t[Symbol.toPrimitive];
26
- if (r !== void 0) {
27
- var i = r.call(t, n || "default");
28
- if (e(i) != "object") return i;
29
- throw TypeError("@@toPrimitive must return a primitive value.");
30
- }
31
- return (n === "string" ? String : Number)(t);
32
- }
33
- function a(e, t) {
34
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
35
- }
36
- function o(e, t, n) {
37
- return t = h(t), s(e, f() ? Reflect.construct(t, n || [], h(e).constructor) : t.apply(e, n));
38
- }
39
- function s(t, n) {
40
- if (n && (e(n) == "object" || typeof n == "function")) return n;
41
- if (n !== void 0) throw TypeError("Derived constructors may only return object or undefined");
42
- return c(t);
43
- }
44
- function c(e) {
45
- if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
46
- return e;
47
- }
48
- function l(e, t) {
49
- if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
50
- e.prototype = Object.create(t && t.prototype, { constructor: {
51
- value: e,
52
- writable: !0,
53
- configurable: !0
54
- } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && m(e, t);
55
- }
56
- function u(e) {
57
- var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
58
- return u = function(e) {
59
- if (e === null || !p(e)) return e;
60
- if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
61
- if (t !== void 0) {
62
- if (t.has(e)) return t.get(e);
63
- t.set(e, n);
64
- }
65
- function n() {
66
- return d(e, arguments, h(this).constructor);
67
- }
68
- return n.prototype = Object.create(e.prototype, { constructor: {
69
- value: n,
70
- enumerable: !1,
71
- writable: !0,
72
- configurable: !0
73
- } }), m(n, e);
74
- }, u(e);
75
- }
76
- function d(e, t, n) {
77
- if (f()) return Reflect.construct.apply(null, arguments);
78
- var r = [null];
79
- r.push.apply(r, t);
80
- var i = new (e.bind.apply(e, r))();
81
- return n && m(i, n.prototype), i;
82
- }
83
- function f() {
84
- try {
85
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
86
- } catch {}
87
- return (f = function() {
88
- return !!e;
89
- })();
90
- }
91
- function p(e) {
92
- try {
93
- return Function.toString.call(e).indexOf("[native code]") !== -1;
94
- } catch {
95
- return typeof e == "function";
96
- }
97
- }
98
- function m(e, t) {
99
- return m = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
100
- return e.__proto__ = t, e;
101
- }, m(e, t);
102
- }
103
- function h(e) {
104
- return h = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
105
- return e.__proto__ || Object.getPrototypeOf(e);
106
- }, h(e);
107
- }
108
- var g = /*#__PURE__*/ function(e) {
109
- function t(e) {
110
- var n;
111
- return a(this, t), n = o(this, t, [e]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
112
- }
113
- return l(t, e), n(t);
114
- }(/*#__PURE__*/ u(Error));
115
- //#endregion
116
- export { g as default };
@@ -1,164 +0,0 @@
1
- import e from "./helpers/isObject.js";
2
- import t, { validateMetadata as n } from "./metadata.js";
3
- import r from "./isPossible.js";
4
- import i from "./helpers/getNumberType.js";
5
- import a from "./isValid.js";
6
- import o from "./helpers/getCountryAndCallingCodeFromOneOfThem.js";
7
- import s from "./helpers/getPossibleCountriesForNumber.js";
8
- import c from "./helpers/extractCountryCallingCode.js";
9
- import l from "./format.js";
10
- //#region ../../node_modules/libphonenumber-js/es6/PhoneNumber.js
11
- function u(e) {
12
- "@babel/helpers - typeof";
13
- return u = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
14
- return typeof e;
15
- } : function(e) {
16
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
17
- }, u(e);
18
- }
19
- function d(e, t) {
20
- var n = Object.keys(e);
21
- if (Object.getOwnPropertySymbols) {
22
- var r = Object.getOwnPropertySymbols(e);
23
- t && (r = r.filter(function(t) {
24
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
25
- })), n.push.apply(n, r);
26
- }
27
- return n;
28
- }
29
- function f(e) {
30
- for (var t = 1; t < arguments.length; t++) {
31
- var n = arguments[t] == null ? {} : arguments[t];
32
- t % 2 ? d(Object(n), !0).forEach(function(t) {
33
- p(e, t, n[t]);
34
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d(Object(n)).forEach(function(t) {
35
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
36
- });
37
- }
38
- return e;
39
- }
40
- function p(e, t, n) {
41
- return (t = _(t)) in e ? Object.defineProperty(e, t, {
42
- value: n,
43
- enumerable: !0,
44
- configurable: !0,
45
- writable: !0
46
- }) : e[t] = n, e;
47
- }
48
- function m(e, t) {
49
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
50
- }
51
- function h(e, t) {
52
- for (var n = 0; n < t.length; n++) {
53
- var r = t[n];
54
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, _(r.key), r);
55
- }
56
- }
57
- function g(e, t, n) {
58
- return t && h(e.prototype, t), n && h(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
59
- }
60
- function _(e) {
61
- var t = v(e, "string");
62
- return u(t) == "symbol" ? t : t + "";
63
- }
64
- function v(e, t) {
65
- if (u(e) != "object" || !e) return e;
66
- var n = e[Symbol.toPrimitive];
67
- if (n !== void 0) {
68
- var r = n.call(e, t || "default");
69
- if (u(r) != "object") return r;
70
- throw TypeError("@@toPrimitive must return a primitive value.");
71
- }
72
- return (t === "string" ? String : Number)(e);
73
- }
74
- var y = /*#__PURE__*/ function() {
75
- function u(t, r, i) {
76
- if (m(this, u), !t) throw TypeError("First argument is required");
77
- if (typeof t != "string") throw TypeError("First argument must be a string");
78
- if (t[0] === "+" && !r) throw TypeError("`metadata` argument not passed");
79
- if (e(r) && e(r.countries)) {
80
- i = r;
81
- var a = t;
82
- if (!b.test(a)) throw Error("Invalid `number` argument passed: must consist of a \"+\" followed by digits");
83
- var s = c(a, void 0, void 0, void 0, i), l = s.countryCallingCode;
84
- if (r = s.number, t = l, !r) throw Error("Invalid `number` argument passed: too short");
85
- }
86
- if (!r) throw TypeError("`nationalNumber` argument is required");
87
- if (typeof r != "string") throw TypeError("`nationalNumber` argument must be a string");
88
- n(i);
89
- var d = o(t, i), f = d.country, p = d.callingCode;
90
- this.country = f, this.countryCallingCode = p, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
91
- return i;
92
- };
93
- }
94
- return g(u, [
95
- {
96
- key: "setExt",
97
- value: function(e) {
98
- this.ext = e;
99
- }
100
- },
101
- {
102
- key: "getPossibleCountries",
103
- value: function() {
104
- return this.country ? [this.country] : s(this.countryCallingCode, this.nationalNumber, this.getMetadata());
105
- }
106
- },
107
- {
108
- key: "isPossible",
109
- value: function() {
110
- return r(this, { v2: !0 }, this.getMetadata());
111
- }
112
- },
113
- {
114
- key: "isValid",
115
- value: function() {
116
- return a(this, { v2: !0 }, this.getMetadata());
117
- }
118
- },
119
- {
120
- key: "isNonGeographic",
121
- value: function() {
122
- return new t(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode);
123
- }
124
- },
125
- {
126
- key: "isEqual",
127
- value: function(e) {
128
- return this.number === e.number && this.ext === e.ext;
129
- }
130
- },
131
- {
132
- key: "getType",
133
- value: function() {
134
- return i(this, { v2: !0 }, this.getMetadata());
135
- }
136
- },
137
- {
138
- key: "format",
139
- value: function(e, t) {
140
- return l(this, e, t ? f(f({}, t), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
141
- }
142
- },
143
- {
144
- key: "formatNational",
145
- value: function(e) {
146
- return this.format("NATIONAL", e);
147
- }
148
- },
149
- {
150
- key: "formatInternational",
151
- value: function(e) {
152
- return this.format("INTERNATIONAL", e);
153
- }
154
- },
155
- {
156
- key: "getURI",
157
- value: function(e) {
158
- return this.format("RFC3966", e);
159
- }
160
- }
161
- ]);
162
- }(), b = /^\+\d+$/;
163
- //#endregion
164
- export { y as default };
@@ -1,9 +0,0 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/helpers/RFC3966.js
2
- function e(e) {
3
- var t = e.number, n = e.ext;
4
- if (!t) return "";
5
- if (t[0] !== "+") throw Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
6
- return `tel:${t}${n ? ";ext=" + n : ""}`;
7
- }
8
- //#endregion
9
- export { e as formatRFC3966 };
@@ -1,21 +0,0 @@
1
- import e, { getCountryCallingCode as t } from "../metadata.js";
2
- import n from "./checkNumberLength.js";
3
- import r from "./matchesEntirely.js";
4
- import i from "./extractNationalNumber.js";
5
- //#region ../../node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js
6
- function a(a, o, s, c, l) {
7
- if (!(o || s || c)) return { number: a };
8
- var u = o || s ? t(o || s, l) : c;
9
- if (a.indexOf(u) === 0) {
10
- var d = new e(l);
11
- d.selectNumberingPlan(o || s || c);
12
- var f = a.slice(u.length), p = i(f, void 0, d).nationalNumber, m = i(a, void 0, d).nationalNumber;
13
- if (!r(m, d.nationalNumberPattern()) && r(p, d.nationalNumberPattern()) || n(m, void 0, d) === "TOO_LONG") return {
14
- countryCallingCode: u,
15
- number: f
16
- };
17
- }
18
- return { number: a };
19
- }
20
- //#endregion
21
- export { a as default };
@@ -1,18 +0,0 @@
1
- import e from "../ParseError.js";
2
- import t, { RFC3966_ISDN_SUBADDRESS_ as n, RFC3966_PHONE_CONTEXT_ as r, RFC3966_PREFIX_ as i, isPhoneContextValid as a } from "./extractPhoneContext.js";
3
- //#region ../../node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js
4
- function o(o, s) {
5
- var c = s.extractFormattedPhoneNumber, l = t(o);
6
- if (!a(l)) throw new e("NOT_A_NUMBER");
7
- var u;
8
- if (l === null) u = c(o) || "";
9
- else {
10
- u = "", l.charAt(0) === "+" && (u += l);
11
- var d = o.indexOf(i), f = d >= 0 ? d + i.length : 0, p = o.indexOf(r);
12
- u += o.substring(f, p);
13
- }
14
- var m = u.indexOf(n);
15
- if (m > 0 && (u = u.substring(0, m)), u !== "") return u;
16
- }
17
- //#endregion
18
- export { o as default };
@@ -1,27 +0,0 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js
2
- function e(e, t) {
3
- if (e && t.numberingPlan.nationalPrefixForParsing()) {
4
- var n = RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
5
- if (r) {
6
- var i, a, o = r.length - 1, s = o > 0 && r[o];
7
- if (t.nationalPrefixTransformRule() && s) i = e.replace(n, t.nationalPrefixTransformRule()), o > 1 && (a = r[1]);
8
- else {
9
- var c = r[0];
10
- i = e.slice(c.length), s && (a = r[1]);
11
- }
12
- var l;
13
- if (s) {
14
- var u = e.indexOf(r[1]);
15
- e.slice(0, u) === t.numberingPlan.nationalPrefix() && (l = t.numberingPlan.nationalPrefix());
16
- } else l = r[0];
17
- return {
18
- nationalNumber: i,
19
- nationalPrefix: l,
20
- carrierCode: a
21
- };
22
- }
23
- }
24
- return { nationalNumber: e };
25
- }
26
- //#endregion
27
- export { e as default };
@@ -1,11 +0,0 @@
1
- import e from "./applyInternationalSeparatorStyle.js";
2
- //#region ../../node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js
3
- var t = /(\$\d)/;
4
- function n(n, r, i) {
5
- var a = i.useInternationalFormat, o = i.withNationalPrefix;
6
- i.carrierCode, i.metadata;
7
- var s = n.replace(new RegExp(r.pattern()), a ? r.internationalFormat() : o && r.nationalPrefixFormattingRule() ? r.format().replace(t, r.nationalPrefixFormattingRule()) : r.format());
8
- return a ? e(s) : s;
9
- }
10
- //#endregion
11
- export { t as FIRST_GROUP_PATTERN, n as default };
@@ -1,7 +0,0 @@
1
- import e from "./getCountryByNationalNumber.js";
2
- function t(t, n) {
3
- var r = n.nationalNumber, i = n.metadata, a = i.getCountryCodesForCallingCode(t);
4
- if (a) return a.length === 1 ? a[0] : e(r, a, i.metadata);
5
- }
6
- //#endregion
7
- export { t as default };
@@ -1,43 +0,0 @@
1
- import e from "../metadata.js";
2
- import t from "./getNumberType.js";
3
- //#region ../../node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
4
- function n(e, t) {
5
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
6
- if (n) return (n = n.call(e)).next.bind(n);
7
- if (Array.isArray(e) || (n = r(e)) || t && e && typeof e.length == "number") {
8
- n && (e = n);
9
- var i = 0;
10
- return function() {
11
- return i >= e.length ? { done: !0 } : {
12
- done: !1,
13
- value: e[i++]
14
- };
15
- };
16
- }
17
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18
- }
19
- function r(e, t) {
20
- if (e) {
21
- if (typeof e == "string") return i(e, t);
22
- var n = {}.toString.call(e).slice(8, -1);
23
- 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) ? i(e, t) : void 0;
24
- }
25
- }
26
- function i(e, t) {
27
- (t == null || t > e.length) && (t = e.length);
28
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
29
- return r;
30
- }
31
- function a(r, i, a) {
32
- for (var o = new e(a), s = n(i), c; !(c = s()).done;) {
33
- var l = c.value;
34
- if (o.selectNumberingPlan(l), o.leadingDigits()) {
35
- if (r && r.search(o.leadingDigits()) === 0) return l;
36
- } else if (t({
37
- phone: r,
38
- country: l
39
- }, void 0, o.metadata)) return l;
40
- }
41
- }
42
- //#endregion
43
- export { a as default };
@@ -1,61 +0,0 @@
1
- import e from "../metadata.js";
2
- import t from "./matchesEntirely.js";
3
- //#region ../../node_modules/libphonenumber-js/es6/helpers/getNumberType.js
4
- function n(e, t) {
5
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
6
- if (n) return (n = n.call(e)).next.bind(n);
7
- if (Array.isArray(e) || (n = r(e)) || t && e && typeof e.length == "number") {
8
- n && (e = n);
9
- var i = 0;
10
- return function() {
11
- return i >= e.length ? { done: !0 } : {
12
- done: !1,
13
- value: e[i++]
14
- };
15
- };
16
- }
17
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18
- }
19
- function r(e, t) {
20
- if (e) {
21
- if (typeof e == "string") return i(e, t);
22
- var n = {}.toString.call(e).slice(8, -1);
23
- 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) ? i(e, t) : void 0;
24
- }
25
- }
26
- function i(e, t) {
27
- (t == null || t > e.length) && (t = e.length);
28
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
29
- return r;
30
- }
31
- var a = [
32
- "MOBILE",
33
- "PREMIUM_RATE",
34
- "TOLL_FREE",
35
- "SHARED_COST",
36
- "VOIP",
37
- "PERSONAL_NUMBER",
38
- "PAGER",
39
- "UAN",
40
- "VOICEMAIL"
41
- ];
42
- function o(r, i, o) {
43
- if (i ||= {}, !(!r.country && !r.countryCallingCode)) {
44
- var c = new e(o);
45
- c.selectNumberingPlan(r.country || r.countryCallingCode);
46
- var l = i.v2 ? r.nationalNumber : r.phone;
47
- if (t(l, c.nationalNumberPattern())) {
48
- if (s(l, "FIXED_LINE", c)) return c.type("MOBILE") && c.type("MOBILE").pattern() === "" || !c.type("MOBILE") || s(l, "MOBILE", c) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
49
- for (var u = n(a), d; !(d = u()).done;) {
50
- var f = d.value;
51
- if (s(l, f, c)) return f;
52
- }
53
- }
54
- }
55
- }
56
- function s(e, n, r) {
57
- var i = r.type(n);
58
- return !i || !i.pattern() || i.possibleLengths() && i.possibleLengths().indexOf(e.length) < 0 ? !1 : t(e, i.pattern());
59
- }
60
- //#endregion
61
- export { o as default, s as isNumberTypeEqualTo };
@@ -1,14 +0,0 @@
1
- import e from "../metadata.js";
2
- //#region ../../node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
3
- function t(t, r, i) {
4
- var a = new e(i).getCountryCodesForCallingCode(t);
5
- return a ? a.filter(function(e) {
6
- return n(r, e, i);
7
- }) : [];
8
- }
9
- function n(t, n, r) {
10
- var i = new e(r);
11
- return i.selectNumberingPlan(n), i.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
12
- }
13
- //#endregion
14
- export { t as default };
@@ -1,39 +0,0 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
2
- function e(e, n) {
3
- var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
4
- if (r) return (r = r.call(e)).next.bind(r);
5
- if (Array.isArray(e) || (r = t(e)) || n && e && typeof e.length == "number") {
6
- r && (e = r);
7
- var i = 0;
8
- return function() {
9
- return i >= e.length ? { done: !0 } : {
10
- done: !1,
11
- value: e[i++]
12
- };
13
- };
14
- }
15
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16
- }
17
- function t(e, t) {
18
- if (e) {
19
- if (typeof e == "string") return n(e, t);
20
- var r = {}.toString.call(e).slice(8, -1);
21
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? n(e, t) : void 0;
22
- }
23
- }
24
- function n(e, t) {
25
- (t == null || t > e.length) && (t = e.length);
26
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
27
- return r;
28
- }
29
- function r(t, n) {
30
- for (var r = t.slice(), i = e(n), a; !(a = i()).done;) {
31
- var o = a.value;
32
- t.indexOf(o) < 0 && r.push(o);
33
- }
34
- return r.sort(function(e, t) {
35
- return e - t;
36
- });
37
- }
38
- //#endregion
39
- export { r as default };
@@ -1,18 +0,0 @@
1
- import e from "../metadata.js";
2
- import { VALID_DIGITS as t } from "../constants.js";
3
- //#region ../../node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js
4
- var n = RegExp("([" + t + "])");
5
- function r(t, r, i, a) {
6
- if (r) {
7
- var o = new e(a);
8
- o.selectNumberingPlan(r || i);
9
- var s = new RegExp(o.IDDPrefix());
10
- if (t.search(s) === 0) {
11
- t = t.slice(t.match(s)[0].length);
12
- var c = t.match(n);
13
- if (!(c && c[1] != null && c[1].length > 0 && c[1] === "0")) return t;
14
- }
15
- }
16
- }
17
- //#endregion
18
- export { r as default };
@@ -1,62 +0,0 @@
1
- import e from "./normalizeArguments.js";
2
- import t from "./parsePhoneNumber_.js";
3
- //#region ../../node_modules/libphonenumber-js/es6/isValidPhoneNumber.js
4
- function n(e) {
5
- "@babel/helpers - typeof";
6
- return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
7
- return typeof e;
8
- } : function(e) {
9
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
10
- }, n(e);
11
- }
12
- function r(e, t) {
13
- var n = Object.keys(e);
14
- if (Object.getOwnPropertySymbols) {
15
- var r = Object.getOwnPropertySymbols(e);
16
- t && (r = r.filter(function(t) {
17
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
18
- })), n.push.apply(n, r);
19
- }
20
- return n;
21
- }
22
- function i(e) {
23
- for (var t = 1; t < arguments.length; t++) {
24
- var n = arguments[t] == null ? {} : arguments[t];
25
- t % 2 ? r(Object(n), !0).forEach(function(t) {
26
- a(e, t, n[t]);
27
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach(function(t) {
28
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
29
- });
30
- }
31
- return e;
32
- }
33
- function a(e, t, n) {
34
- return (t = o(t)) in e ? Object.defineProperty(e, t, {
35
- value: n,
36
- enumerable: !0,
37
- configurable: !0,
38
- writable: !0
39
- }) : e[t] = n, e;
40
- }
41
- function o(e) {
42
- var t = s(e, "string");
43
- return n(t) == "symbol" ? t : t + "";
44
- }
45
- function s(e, t) {
46
- if (n(e) != "object" || !e) return e;
47
- var r = e[Symbol.toPrimitive];
48
- if (r !== void 0) {
49
- var i = r.call(e, t || "default");
50
- if (n(i) != "object") return i;
51
- throw TypeError("@@toPrimitive must return a primitive value.");
52
- }
53
- return (t === "string" ? String : Number)(e);
54
- }
55
- function c() {
56
- var n = e(arguments), r = n.text, a = n.options, o = n.metadata;
57
- a = i(i({}, a), {}, { extract: !1 });
58
- var s = t(r, a, o);
59
- return s && s.isValid() || !1;
60
- }
61
- //#endregion
62
- export { c as default };