@quidgest/ui 0.19.0 → 0.20.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 (115) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/json/api.json +1109 -3
  3. package/dist/manifest/components.json +1 -0
  4. package/dist/ui.css +1181 -5
  5. package/dist/ui.esm.js +1444 -843
  6. package/dist/ui.js +1405 -804
  7. package/dist/ui.min.css +2 -1
  8. package/dist/ui.min.js +1405 -804
  9. package/dist/ui.scss +373 -7
  10. package/esm/components/QField/QField.d.ts.map +1 -1
  11. package/esm/components/QField/QField.vue.js +1 -1
  12. package/esm/components/QInputGroup/QInputGroup.d.ts +147 -3
  13. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  14. package/esm/components/QInputGroup/QInputGroup.vue.js +32 -23
  15. package/esm/components/QInputGroup/index.d.ts +81 -4
  16. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  17. package/esm/components/QList/QList.d.ts.map +1 -1
  18. package/esm/components/QList/QList.vue.js +3 -1
  19. package/esm/components/QList/QListItem.d.ts.map +1 -1
  20. package/esm/components/QList/QListItem.vue.js +24 -28
  21. package/esm/components/QList/types.d.ts +1 -1
  22. package/esm/components/QOverlay/types.d.ts +3 -1
  23. package/esm/components/QOverlay/types.d.ts.map +1 -1
  24. package/esm/components/QPhoneField/QPhoneField.d.ts +2263 -0
  25. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -0
  26. package/esm/components/QPhoneField/QPhoneField.vue.js +478 -0
  27. package/esm/components/QPhoneField/QPhoneField2.vue.js +5 -0
  28. package/esm/components/QPhoneField/constants.d.ts +11 -0
  29. package/esm/components/QPhoneField/constants.d.ts.map +1 -0
  30. package/esm/components/QPhoneField/constants.js +14 -0
  31. package/esm/components/QPhoneField/index.d.ts +1253 -0
  32. package/esm/components/QPhoneField/index.d.ts.map +1 -0
  33. package/esm/components/QPhoneField/index.js +6 -0
  34. package/esm/components/QPhoneField/types.d.ts +108 -0
  35. package/esm/components/QPhoneField/types.d.ts.map +1 -0
  36. package/esm/components/QSelect/QSelect.d.ts +16 -1
  37. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  38. package/esm/components/QSelect/QSelect.vue.js +158 -129
  39. package/esm/components/QSelect/index.d.ts +31 -3
  40. package/esm/components/QSelect/index.d.ts.map +1 -1
  41. package/esm/components/QSelect/types.d.ts +13 -0
  42. package/esm/components/QSelect/types.d.ts.map +1 -1
  43. package/esm/components/index.d.ts +1 -0
  44. package/esm/components/index.d.ts.map +1 -1
  45. package/esm/components/index.js +36 -34
  46. package/esm/composables/useDialog/index.d.ts +2 -88
  47. package/esm/composables/useDialog/index.d.ts.map +1 -1
  48. package/esm/composables/useDialog/index.js +6 -6
  49. package/esm/composables/useDialog/types.d.ts +14 -4
  50. package/esm/composables/useDialog/types.d.ts.map +1 -1
  51. package/esm/index.d.ts +1 -0
  52. package/esm/vendors/country-flag-icons/modules/countries.json.js +4 -0
  53. package/esm/vendors/country-flag-icons/modules/hasFlag.js +7 -0
  54. package/esm/vendors/libphonenumber-js/es6/AsYouType.js +312 -0
  55. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +142 -0
  56. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js +145 -0
  57. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +45 -0
  58. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.js +258 -0
  59. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.util.js +57 -0
  60. package/esm/vendors/libphonenumber-js/es6/AsYouTypeParser.js +242 -0
  61. package/esm/vendors/libphonenumber-js/es6/AsYouTypeState.js +115 -0
  62. package/esm/vendors/libphonenumber-js/es6/ParseError.js +116 -0
  63. package/esm/vendors/libphonenumber-js/es6/PhoneNumber.js +164 -0
  64. package/esm/vendors/libphonenumber-js/es6/constants.js +4 -0
  65. package/esm/vendors/libphonenumber-js/es6/format.js +77 -0
  66. package/esm/vendors/libphonenumber-js/es6/formatIncompletePhoneNumber.js +7 -0
  67. package/esm/vendors/libphonenumber-js/es6/getCountries.js +7 -0
  68. package/esm/vendors/libphonenumber-js/es6/getExampleNumber.js +7 -0
  69. package/esm/vendors/libphonenumber-js/es6/helpers/RFC3966.js +9 -0
  70. package/esm/vendors/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +7 -0
  71. package/esm/vendors/libphonenumber-js/es6/helpers/checkNumberLength.js +21 -0
  72. package/esm/vendors/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +11 -0
  73. package/esm/vendors/libphonenumber-js/es6/helpers/extension/extractExtension.js +16 -0
  74. package/esm/vendors/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +36 -0
  75. package/esm/vendors/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +21 -0
  76. package/esm/vendors/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +18 -0
  77. package/esm/vendors/libphonenumber-js/es6/helpers/extractNationalNumber.js +27 -0
  78. package/esm/vendors/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +27 -0
  79. package/esm/vendors/libphonenumber-js/es6/helpers/extractPhoneContext.js +15 -0
  80. package/esm/vendors/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +11 -0
  81. package/esm/vendors/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +13 -0
  82. package/esm/vendors/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +12 -0
  83. package/esm/vendors/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +43 -0
  84. package/esm/vendors/libphonenumber-js/es6/helpers/getIddPrefix.js +10 -0
  85. package/esm/vendors/libphonenumber-js/es6/helpers/getNumberType.js +61 -0
  86. package/esm/vendors/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +14 -0
  87. package/esm/vendors/libphonenumber-js/es6/helpers/isCallingCode.js +7 -0
  88. package/esm/vendors/libphonenumber-js/es6/helpers/isCountryCode.js +7 -0
  89. package/esm/vendors/libphonenumber-js/es6/helpers/isObject.js +7 -0
  90. package/esm/vendors/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +12 -0
  91. package/esm/vendors/libphonenumber-js/es6/helpers/matchesEntirely.js +6 -0
  92. package/esm/vendors/libphonenumber-js/es6/helpers/mergeArrays.js +39 -0
  93. package/esm/vendors/libphonenumber-js/es6/helpers/parseDigits.js +82 -0
  94. package/esm/vendors/libphonenumber-js/es6/helpers/stripIddPrefix.js +18 -0
  95. package/esm/vendors/libphonenumber-js/es6/isPossible.js +32 -0
  96. package/esm/vendors/libphonenumber-js/es6/isValid.js +11 -0
  97. package/esm/vendors/libphonenumber-js/es6/metadata.js +474 -0
  98. package/esm/vendors/libphonenumber-js/es6/normalizeArguments.js +110 -0
  99. package/esm/vendors/libphonenumber-js/es6/parse.js +103 -0
  100. package/esm/vendors/libphonenumber-js/es6/parseIncompletePhoneNumber.js +48 -0
  101. package/esm/vendors/libphonenumber-js/es6/parsePhoneNumber.js +9 -0
  102. package/esm/vendors/libphonenumber-js/es6/parsePhoneNumberWithError_.js +58 -0
  103. package/esm/vendors/libphonenumber-js/es6/parsePhoneNumber_.js +66 -0
  104. package/esm/vendors/libphonenumber-js/es6/tools/semver-compare.js +14 -0
  105. package/esm/vendors/libphonenumber-js/examples.mobile.json.js +250 -0
  106. package/esm/vendors/libphonenumber-js/max/exports/AsYouType.js +9 -0
  107. package/esm/vendors/libphonenumber-js/max/exports/formatIncompletePhoneNumber.js +8 -0
  108. package/esm/vendors/libphonenumber-js/max/exports/getCountries.js +8 -0
  109. package/esm/vendors/libphonenumber-js/max/exports/getCountryCallingCode.js +8 -0
  110. package/esm/vendors/libphonenumber-js/max/exports/getExampleNumber.js +8 -0
  111. package/esm/vendors/libphonenumber-js/max/exports/isSupportedCountry.js +8 -0
  112. package/esm/vendors/libphonenumber-js/max/exports/parsePhoneNumber.js +8 -0
  113. package/esm/vendors/libphonenumber-js/max/exports/withMetadataArgument.js +8 -0
  114. package/esm/vendors/libphonenumber-js/metadata.max.json.js +10489 -0
  115. package/package.json +3 -1
@@ -0,0 +1,110 @@
1
+ import e from "./helpers/isObject.js";
2
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/es6/normalizeArguments.js
3
+ function t(e) {
4
+ "@babel/helpers - typeof";
5
+ return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
6
+ return typeof e;
7
+ } : function(e) {
8
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
9
+ }, t(e);
10
+ }
11
+ function n(e, t) {
12
+ var n = Object.keys(e);
13
+ if (Object.getOwnPropertySymbols) {
14
+ var r = Object.getOwnPropertySymbols(e);
15
+ t && (r = r.filter(function(t) {
16
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
17
+ })), n.push.apply(n, r);
18
+ }
19
+ return n;
20
+ }
21
+ function r(e) {
22
+ for (var t = 1; t < arguments.length; t++) {
23
+ var r = arguments[t] == null ? {} : arguments[t];
24
+ t % 2 ? n(Object(r), !0).forEach(function(t) {
25
+ i(e, t, r[t]);
26
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : n(Object(r)).forEach(function(t) {
27
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
28
+ });
29
+ }
30
+ return e;
31
+ }
32
+ function i(e, t, n) {
33
+ return (t = a(t)) in e ? Object.defineProperty(e, t, {
34
+ value: n,
35
+ enumerable: !0,
36
+ configurable: !0,
37
+ writable: !0
38
+ }) : e[t] = n, e;
39
+ }
40
+ function a(e) {
41
+ var n = o(e, "string");
42
+ return t(n) == "symbol" ? n : n + "";
43
+ }
44
+ function o(e, n) {
45
+ if (t(e) != "object" || !e) return e;
46
+ var r = e[Symbol.toPrimitive];
47
+ if (r !== void 0) {
48
+ var i = r.call(e, n || "default");
49
+ if (t(i) != "object") return i;
50
+ throw TypeError("@@toPrimitive must return a primitive value.");
51
+ }
52
+ return (n === "string" ? String : Number)(e);
53
+ }
54
+ function s(e, t) {
55
+ return f(e) || d(e, t) || l(e, t) || c();
56
+ }
57
+ function c() {
58
+ throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
59
+ }
60
+ function l(e, t) {
61
+ if (e) {
62
+ if (typeof e == "string") return u(e, t);
63
+ var n = {}.toString.call(e).slice(8, -1);
64
+ 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) ? u(e, t) : void 0;
65
+ }
66
+ }
67
+ function u(e, t) {
68
+ (t == null || t > e.length) && (t = e.length);
69
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
70
+ return r;
71
+ }
72
+ function d(e, t) {
73
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
74
+ if (n != null) {
75
+ var r, i, a, o, s = [], c = !0, l = !1;
76
+ try {
77
+ if (a = (n = n.call(e)).next, t === 0) {
78
+ if (Object(n) !== n) return;
79
+ c = !1;
80
+ } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
81
+ } catch (e) {
82
+ l = !0, i = e;
83
+ } finally {
84
+ try {
85
+ if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
86
+ } finally {
87
+ if (l) throw i;
88
+ }
89
+ }
90
+ return s;
91
+ }
92
+ }
93
+ function f(e) {
94
+ if (Array.isArray(e)) return e;
95
+ }
96
+ function p(t) {
97
+ var n = s(Array.prototype.slice.call(t), 4), i = n[0], a = n[1], o = n[2], c = n[3], l, u, d;
98
+ if (typeof i == "string") l = i;
99
+ else throw TypeError("A text for parsing must be a string.");
100
+ if (!a || typeof a == "string") c ? (u = o, d = c) : (u = void 0, d = o), a && (u = r({ defaultCountry: a }, u));
101
+ else if (e(a)) o ? (u = a, d = o) : d = a;
102
+ else throw Error(`Invalid second argument: ${a}`);
103
+ return {
104
+ text: l,
105
+ options: u,
106
+ metadata: d
107
+ };
108
+ }
109
+ //#endregion
110
+ export { p as default };
@@ -0,0 +1,103 @@
1
+ import { PLUS_CHARS as e, VALID_DIGITS as t } from "./constants.js";
2
+ import n from "./ParseError.js";
3
+ import r from "./metadata.js";
4
+ import i, { isViablePhoneNumberStart as a } from "./helpers/isViablePhoneNumber.js";
5
+ import o from "./helpers/extension/extractExtension.js";
6
+ import s from "./parseIncompletePhoneNumber.js";
7
+ import { isPossibleNumber as c } from "./isPossible.js";
8
+ import l from "./helpers/matchesEntirely.js";
9
+ import u from "./helpers/getCountryByCallingCode.js";
10
+ import d from "./helpers/extractNationalNumber.js";
11
+ import f from "./helpers/extractCountryCallingCode.js";
12
+ import p from "./PhoneNumber.js";
13
+ import m from "./helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js";
14
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/es6/parse.js
15
+ var h = 250, g = RegExp("[" + e + t + "]"), _ = RegExp("[^" + t + "#]+$"), v = !1;
16
+ function y(e, t, i) {
17
+ t ||= {};
18
+ var a = new r(i);
19
+ if (t.defaultCountry && !a.hasCountry(t.defaultCountry)) throw t.v2 ? new n("INVALID_COUNTRY") : Error(`Unknown country: ${t.defaultCountry}`);
20
+ var o = x(e, t.v2, t.extract), s = o.number, u = o.ext, d = o.error;
21
+ if (!s) {
22
+ if (t.v2) throw d === "TOO_SHORT" ? new n("TOO_SHORT") : new n("NOT_A_NUMBER");
23
+ return {};
24
+ }
25
+ var f = C(s, t.defaultCountry, t.defaultCallingCode, a), m = f.country, h = f.nationalNumber, g = f.countryCallingCode, _ = f.countryCallingCodeSource, v = f.carrierCode;
26
+ if (!a.hasSelectedNumberingPlan()) {
27
+ if (t.v2) throw new n("INVALID_COUNTRY");
28
+ return {};
29
+ }
30
+ if (!h || h.length < 2) {
31
+ /* istanbul ignore if */
32
+ if (t.v2) throw new n("TOO_SHORT");
33
+ return {};
34
+ }
35
+ if (h.length > 17) {
36
+ if (t.v2) throw new n("TOO_LONG");
37
+ return {};
38
+ }
39
+ if (t.v2) {
40
+ var y = new p(g, h, a.metadata);
41
+ return m && (y.country = m), v && (y.carrierCode = v), u && (y.ext = u), y.__countryCallingCodeSource = _, y;
42
+ }
43
+ var b = (t.extended ? a.hasSelectedNumberingPlan() : m) ? l(h, a.nationalNumberPattern()) : !1;
44
+ return t.extended ? {
45
+ country: m,
46
+ countryCallingCode: g,
47
+ carrierCode: v,
48
+ valid: b,
49
+ possible: b ? !0 : !!(t.extended === !0 && a.possibleLengths() && c(h, a)),
50
+ phone: h,
51
+ ext: u
52
+ } : b ? S(m, h, u) : {};
53
+ }
54
+ function b(e, t, r) {
55
+ if (e) {
56
+ if (e.length > h) {
57
+ if (r) throw new n("TOO_LONG");
58
+ return;
59
+ }
60
+ if (t === !1) return e;
61
+ var i = e.search(g);
62
+ if (!(i < 0)) return e.slice(i).replace(_, "");
63
+ }
64
+ }
65
+ function x(e, t, n) {
66
+ var r = m(e, { extractFormattedPhoneNumber: function(e) {
67
+ return b(e, n, t);
68
+ } });
69
+ if (!r) return {};
70
+ if (!i(r)) return a(r) ? { error: "TOO_SHORT" } : {};
71
+ var s = o(r);
72
+ return s.ext ? s : { number: r };
73
+ }
74
+ function S(e, t, n) {
75
+ var r = {
76
+ country: e,
77
+ phone: t
78
+ };
79
+ return n && (r.ext = n), r;
80
+ }
81
+ function C(e, t, n, r) {
82
+ var i = f(s(e), void 0, t, n, r.metadata), a = i.countryCallingCodeSource, o = i.countryCallingCode, c = i.number, l;
83
+ if (o) r.selectNumberingPlan(o);
84
+ else if (c && (t || n)) t ? (l = t, r.selectNumberingPlan(t), o = r.numberingPlan.callingCode()) : (r.selectNumberingPlan(n), o = n, v && r.isNonGeographicCallingCode(o) && (l = "001"));
85
+ else return {};
86
+ if (!c) return {
87
+ countryCallingCodeSource: a,
88
+ countryCallingCode: o
89
+ };
90
+ var p = d(s(c), void 0, r), m = p.nationalNumber, h = p.carrierCode, g = u(o, {
91
+ nationalNumber: m,
92
+ metadata: r
93
+ });
94
+ return g && (l = g, g === "001" || r.selectNumberingPlan(l)), {
95
+ country: l,
96
+ countryCallingCode: o,
97
+ countryCallingCodeSource: a,
98
+ nationalNumber: m,
99
+ carrierCode: h
100
+ };
101
+ }
102
+ //#endregion
103
+ export { y as default };
@@ -0,0 +1,48 @@
1
+ import { parseDigit as e } from "./helpers/parseDigits.js";
2
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js
3
+ function t(e, t) {
4
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
5
+ if (r) return (r = r.call(e)).next.bind(r);
6
+ if (Array.isArray(e) || (r = n(e)) || t && e && typeof e.length == "number") {
7
+ r && (e = r);
8
+ var i = 0;
9
+ return function() {
10
+ return i >= e.length ? { done: !0 } : {
11
+ done: !1,
12
+ value: e[i++]
13
+ };
14
+ };
15
+ }
16
+ throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17
+ }
18
+ function n(e, t) {
19
+ if (e) {
20
+ if (typeof e == "string") return r(e, t);
21
+ var n = {}.toString.call(e).slice(8, -1);
22
+ 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;
23
+ }
24
+ }
25
+ function r(e, t) {
26
+ (t == null || t > e.length) && (t = e.length);
27
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
28
+ return r;
29
+ }
30
+ function i(e) {
31
+ for (var n = "", r = t(e.split("")), i; !(i = r()).done;) {
32
+ var o = i.value;
33
+ n += a(o, n) || "";
34
+ }
35
+ return n;
36
+ }
37
+ function a(t, n, r) {
38
+ if (t === "+") {
39
+ if (n) {
40
+ typeof r == "function" && r("end");
41
+ return;
42
+ }
43
+ return "+";
44
+ }
45
+ return e(t);
46
+ }
47
+ //#endregion
48
+ export { i as default, a as parsePhoneNumberCharacter };
@@ -0,0 +1,9 @@
1
+ import e from "./normalizeArguments.js";
2
+ import t from "./parsePhoneNumber_.js";
3
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/es6/parsePhoneNumber.js
4
+ function n() {
5
+ var n = e(arguments), r = n.text, i = n.options, a = n.metadata;
6
+ return t(r, i, a);
7
+ }
8
+ //#endregion
9
+ export { n as default };
@@ -0,0 +1,58 @@
1
+ import e from "./parse.js";
2
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js
3
+ function t(e) {
4
+ "@babel/helpers - typeof";
5
+ return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
6
+ return typeof e;
7
+ } : function(e) {
8
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
9
+ }, t(e);
10
+ }
11
+ function n(e, t) {
12
+ var n = Object.keys(e);
13
+ if (Object.getOwnPropertySymbols) {
14
+ var r = Object.getOwnPropertySymbols(e);
15
+ t && (r = r.filter(function(t) {
16
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
17
+ })), n.push.apply(n, r);
18
+ }
19
+ return n;
20
+ }
21
+ function r(e) {
22
+ for (var t = 1; t < arguments.length; t++) {
23
+ var r = arguments[t] == null ? {} : arguments[t];
24
+ t % 2 ? n(Object(r), !0).forEach(function(t) {
25
+ i(e, t, r[t]);
26
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : n(Object(r)).forEach(function(t) {
27
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
28
+ });
29
+ }
30
+ return e;
31
+ }
32
+ function i(e, t, n) {
33
+ return (t = a(t)) in e ? Object.defineProperty(e, t, {
34
+ value: n,
35
+ enumerable: !0,
36
+ configurable: !0,
37
+ writable: !0
38
+ }) : e[t] = n, e;
39
+ }
40
+ function a(e) {
41
+ var n = o(e, "string");
42
+ return t(n) == "symbol" ? n : n + "";
43
+ }
44
+ function o(e, n) {
45
+ if (t(e) != "object" || !e) return e;
46
+ var r = e[Symbol.toPrimitive];
47
+ if (r !== void 0) {
48
+ var i = r.call(e, n || "default");
49
+ if (t(i) != "object") return i;
50
+ throw TypeError("@@toPrimitive must return a primitive value.");
51
+ }
52
+ return (n === "string" ? String : Number)(e);
53
+ }
54
+ function s(t, n, i) {
55
+ return e(t, r(r({}, n), {}, { v2: !0 }), i);
56
+ }
57
+ //#endregion
58
+ export { s as default };
@@ -0,0 +1,66 @@
1
+ import e from "./ParseError.js";
2
+ import { isSupportedCountry as t } from "./metadata.js";
3
+ import n from "./parsePhoneNumberWithError_.js";
4
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js
5
+ function r(e) {
6
+ "@babel/helpers - typeof";
7
+ return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
8
+ return typeof e;
9
+ } : function(e) {
10
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
11
+ }, r(e);
12
+ }
13
+ function i(e, t) {
14
+ var n = Object.keys(e);
15
+ if (Object.getOwnPropertySymbols) {
16
+ var r = Object.getOwnPropertySymbols(e);
17
+ t && (r = r.filter(function(t) {
18
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
19
+ })), n.push.apply(n, r);
20
+ }
21
+ return n;
22
+ }
23
+ function a(e) {
24
+ for (var t = 1; t < arguments.length; t++) {
25
+ var n = arguments[t] == null ? {} : arguments[t];
26
+ t % 2 ? i(Object(n), !0).forEach(function(t) {
27
+ o(e, t, n[t]);
28
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i(Object(n)).forEach(function(t) {
29
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
30
+ });
31
+ }
32
+ return e;
33
+ }
34
+ function o(e, t, n) {
35
+ return (t = s(t)) in e ? Object.defineProperty(e, t, {
36
+ value: n,
37
+ enumerable: !0,
38
+ configurable: !0,
39
+ writable: !0
40
+ }) : e[t] = n, e;
41
+ }
42
+ function s(e) {
43
+ var t = c(e, "string");
44
+ return r(t) == "symbol" ? t : t + "";
45
+ }
46
+ function c(e, t) {
47
+ if (r(e) != "object" || !e) return e;
48
+ var n = e[Symbol.toPrimitive];
49
+ if (n !== void 0) {
50
+ var i = n.call(e, t || "default");
51
+ if (r(i) != "object") return i;
52
+ throw TypeError("@@toPrimitive must return a primitive value.");
53
+ }
54
+ return (t === "string" ? String : Number)(e);
55
+ }
56
+ function l(r, i, o) {
57
+ i && i.defaultCountry && !t(i.defaultCountry, o) && (i = a(a({}, i), {}, { defaultCountry: void 0 }));
58
+ try {
59
+ return n(r, i, o);
60
+ } catch (t) {
61
+ /* istanbul ignore else */
62
+ if (!(t instanceof e)) throw t;
63
+ }
64
+ }
65
+ //#endregion
66
+ export { l as default };
@@ -0,0 +1,14 @@
1
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/es6/tools/semver-compare.js
2
+ function e(e, t) {
3
+ e = e.split("-"), t = t.split("-");
4
+ for (var n = e[0].split("."), r = t[0].split("."), i = 0; i < 3; i++) {
5
+ var a = Number(n[i]), o = Number(r[i]);
6
+ if (a > o) return 1;
7
+ if (o > a) return -1;
8
+ if (!isNaN(a) && isNaN(o)) return 1;
9
+ if (isNaN(a) && !isNaN(o)) return -1;
10
+ }
11
+ return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
12
+ }
13
+ //#endregion
14
+ export { e as default };
@@ -0,0 +1,250 @@
1
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/examples.mobile.json.js
2
+ var e = {
3
+ AC: "40123",
4
+ AD: "312345",
5
+ AE: "501234567",
6
+ AF: "701234567",
7
+ AG: "2684641234",
8
+ AI: "2642351234",
9
+ AL: "672123456",
10
+ AM: "77123456",
11
+ AO: "923123456",
12
+ AR: "91123456789",
13
+ AS: "6847331234",
14
+ AT: "664123456",
15
+ AU: "412345678",
16
+ AW: "5601234",
17
+ AX: "412345678",
18
+ AZ: "401234567",
19
+ BA: "61123456",
20
+ BB: "2462501234",
21
+ BD: "1812345678",
22
+ BE: "450001234",
23
+ BF: "70123456",
24
+ BG: "43012345",
25
+ BH: "36001234",
26
+ BI: "79561234",
27
+ BJ: "0195123456",
28
+ BL: "690001234",
29
+ BM: "4413701234",
30
+ BN: "7123456",
31
+ BO: "71234567",
32
+ BQ: "3181234",
33
+ BR: "11961234567",
34
+ BS: "2423591234",
35
+ BT: "17123456",
36
+ BW: "71123456",
37
+ BY: "294911911",
38
+ BZ: "6221234",
39
+ CA: "5062345678",
40
+ CC: "412345678",
41
+ CD: "991234567",
42
+ CF: "70012345",
43
+ CG: "061234567",
44
+ CH: "781234567",
45
+ CI: "0123456789",
46
+ CK: "71234",
47
+ CL: "221234567",
48
+ CM: "671234567",
49
+ CN: "13123456789",
50
+ CO: "3211234567",
51
+ CR: "83123456",
52
+ CU: "51234567",
53
+ CV: "9911234",
54
+ CW: "95181234",
55
+ CX: "412345678",
56
+ CY: "96123456",
57
+ CZ: "601123456",
58
+ DE: "15123456789",
59
+ DJ: "77831001",
60
+ DK: "34412345",
61
+ DM: "7672251234",
62
+ DO: "8092345678",
63
+ DZ: "551234567",
64
+ EC: "991234567",
65
+ EE: "51234567",
66
+ EG: "1001234567",
67
+ EH: "650123456",
68
+ ER: "7123456",
69
+ ES: "612345678",
70
+ ET: "911234567",
71
+ FI: "412345678",
72
+ FJ: "7012345",
73
+ FK: "51234",
74
+ FM: "3501234",
75
+ FO: "211234",
76
+ FR: "612345678",
77
+ GA: "06031234",
78
+ GB: "7400123456",
79
+ GD: "4734031234",
80
+ GE: "555123456",
81
+ GF: "694201234",
82
+ GG: "7781123456",
83
+ GH: "231234567",
84
+ GI: "57123456",
85
+ GL: "221234",
86
+ GM: "3012345",
87
+ GN: "601123456",
88
+ GP: "690001234",
89
+ GQ: "222123456",
90
+ GR: "6912345678",
91
+ GT: "51234567",
92
+ GU: "6713001234",
93
+ GW: "955012345",
94
+ GY: "6091234",
95
+ HK: "51234567",
96
+ HN: "91234567",
97
+ HR: "921234567",
98
+ HT: "34101234",
99
+ HU: "201234567",
100
+ ID: "812345678",
101
+ IE: "850123456",
102
+ IL: "502345678",
103
+ IM: "7924123456",
104
+ IN: "8123456789",
105
+ IO: "3801234",
106
+ IQ: "7912345678",
107
+ IR: "9123456789",
108
+ IS: "6111234",
109
+ IT: "3123456789",
110
+ JE: "7797712345",
111
+ JM: "8762101234",
112
+ JO: "790123456",
113
+ JP: "9012345678",
114
+ KE: "712123456",
115
+ KG: "700123456",
116
+ KH: "91234567",
117
+ KI: "72001234",
118
+ KM: "3212345",
119
+ KN: "8697652917",
120
+ KP: "1921234567",
121
+ KR: "1020000000",
122
+ KW: "50012345",
123
+ KY: "3453231234",
124
+ KZ: "7710009998",
125
+ LA: "2023123456",
126
+ LB: "71123456",
127
+ LC: "7582845678",
128
+ LI: "660234567",
129
+ LK: "712345678",
130
+ LR: "770123456",
131
+ LS: "50123456",
132
+ LT: "61234567",
133
+ LU: "628123456",
134
+ LV: "21234567",
135
+ LY: "912345678",
136
+ MA: "650123456",
137
+ MC: "612345678",
138
+ MD: "62112345",
139
+ ME: "60123456",
140
+ MF: "690001234",
141
+ MG: "321234567",
142
+ MH: "2351234",
143
+ MK: "72345678",
144
+ ML: "65012345",
145
+ MM: "92123456",
146
+ MN: "88123456",
147
+ MO: "66123456",
148
+ MP: "6702345678",
149
+ MQ: "696201234",
150
+ MR: "22123456",
151
+ MS: "6644923456",
152
+ MT: "96961234",
153
+ MU: "52512345",
154
+ MV: "7712345",
155
+ MW: "991234567",
156
+ MX: "2221234567",
157
+ MY: "123456789",
158
+ MZ: "821234567",
159
+ NA: "811234567",
160
+ NC: "751234",
161
+ NE: "93123456",
162
+ NF: "381234",
163
+ NG: "8021234567",
164
+ NI: "81234567",
165
+ NL: "612345678",
166
+ NO: "40612345",
167
+ NP: "9841234567",
168
+ NR: "5551234",
169
+ NU: "8884012",
170
+ NZ: "211234567",
171
+ OM: "92123456",
172
+ PA: "61234567",
173
+ PE: "912345678",
174
+ PF: "87123456",
175
+ PG: "70123456",
176
+ PH: "9051234567",
177
+ PK: "3012345678",
178
+ PL: "512345678",
179
+ PM: "551234",
180
+ PR: "7872345678",
181
+ PS: "599123456",
182
+ PT: "912345678",
183
+ PW: "6201234",
184
+ PY: "961456789",
185
+ QA: "33123456",
186
+ RE: "692123456",
187
+ RO: "712034567",
188
+ RS: "601234567",
189
+ RU: "9123456789",
190
+ RW: "720123456",
191
+ SA: "512345678",
192
+ SB: "7421234",
193
+ SC: "2510123",
194
+ SD: "911231234",
195
+ SE: "701234567",
196
+ SG: "81234567",
197
+ SH: "51234",
198
+ SI: "31234567",
199
+ SJ: "41234567",
200
+ SK: "912123456",
201
+ SL: "25123456",
202
+ SM: "66661212",
203
+ SN: "701234567",
204
+ SO: "71123456",
205
+ SR: "7412345",
206
+ SS: "977123456",
207
+ ST: "9812345",
208
+ SV: "70123456",
209
+ SX: "7215205678",
210
+ SY: "944567890",
211
+ SZ: "76123456",
212
+ TA: "8999",
213
+ TC: "6492311234",
214
+ TD: "63012345",
215
+ TG: "90112345",
216
+ TH: "812345678",
217
+ TJ: "917123456",
218
+ TK: "7290",
219
+ TL: "77212345",
220
+ TM: "66123456",
221
+ TN: "20123456",
222
+ TO: "7715123",
223
+ TR: "5012345678",
224
+ TT: "8682911234",
225
+ TV: "901234",
226
+ TW: "912345678",
227
+ TZ: "621234567",
228
+ UA: "501234567",
229
+ UG: "712345678",
230
+ US: "2015550123",
231
+ UY: "94231234",
232
+ UZ: "912345678",
233
+ VA: "3123456789",
234
+ VC: "7844301234",
235
+ VE: "4121234567",
236
+ VG: "2843001234",
237
+ VI: "3406421234",
238
+ VN: "912345678",
239
+ VU: "5912345",
240
+ WF: "821234",
241
+ WS: "7212345",
242
+ XK: "43201234",
243
+ YE: "712345678",
244
+ YT: "639012345",
245
+ ZA: "711234567",
246
+ ZM: "955123456",
247
+ ZW: "712345678"
248
+ };
249
+ //#endregion
250
+ export { e as default };
@@ -0,0 +1,9 @@
1
+ import e from "../../metadata.max.json.js";
2
+ import t from "../../es6/AsYouType.js";
3
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/max/exports/AsYouType.js
4
+ function n(n) {
5
+ return t.call(this, n, e);
6
+ }
7
+ n.prototype = Object.create(t.prototype, {}), n.prototype.constructor = n;
8
+ //#endregion
9
+ export { n as AsYouType };
@@ -0,0 +1,8 @@
1
+ import e from "./withMetadataArgument.js";
2
+ import t from "../../es6/formatIncompletePhoneNumber.js";
3
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/max/exports/formatIncompletePhoneNumber.js
4
+ function n() {
5
+ return e(t, arguments);
6
+ }
7
+ //#endregion
8
+ export { n as formatIncompletePhoneNumber };
@@ -0,0 +1,8 @@
1
+ import e from "./withMetadataArgument.js";
2
+ import t from "../../es6/getCountries.js";
3
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.13.7/node_modules/libphonenumber-js/max/exports/getCountries.js
4
+ function n() {
5
+ return e(t, arguments);
6
+ }
7
+ //#endregion
8
+ export { n as getCountries };