@ozdao/martyrs 0.2.603 → 0.2.604

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 (163) hide show
  1. package/dist/martyrs/src/components/EditImages/{EditImages.vue.js → EditImages.vue2.js} +2 -2
  2. package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -0
  3. package/dist/martyrs/src/components/Feed/Carousel.vue.js +1 -1
  4. package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
  5. package/dist/martyrs/src/components/Loader/{Loader.vue2.js → Loader.vue.js} +2 -2
  6. package/dist/martyrs/src/components/Loader/Loader.vue.js.map +1 -0
  7. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  8. package/dist/martyrs/src/components/Media/Media.vue.js +1 -1
  9. package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
  10. package/dist/martyrs/src/components/Tab/Tab.vue2.js.map +1 -0
  11. package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js +1 -1
  12. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  13. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  14. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +1 -1
  15. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  16. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +3 -3
  17. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  18. package/dist/martyrs/src/modules/auth/views/store/auth.js +1 -1
  19. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  20. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +1 -1
  21. package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +1 -1
  22. package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +1 -1
  23. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +2 -2
  24. package/dist/martyrs/src/modules/core/views/components/sections/{Filters.vue.js → Filters.vue2.js} +2 -2
  25. package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +1 -0
  26. package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +1 -1
  27. package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +1 -1
  28. package/dist/martyrs/src/modules/core/views/store/core.store.js +1 -1
  29. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  30. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +2 -2
  31. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
  32. package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
  33. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  34. package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js +2 -2
  35. package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js +2 -2
  36. package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js +2 -2
  37. package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js +2 -2
  38. package/dist/martyrs/src/modules/governance/views/components/pages/Initiative.vue.js +2 -2
  39. package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeCreate.vue.js +2 -2
  40. package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeSprints.vue.js +2 -2
  41. package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +2 -2
  42. package/dist/martyrs/src/modules/governance/views/components/pages/Sprint.vue.js +2 -2
  43. package/dist/martyrs/src/modules/governance/views/components/pages/SprintCreate.vue.js +2 -2
  44. package/dist/martyrs/src/modules/governance/views/components/pages/Task.vue.js +2 -2
  45. package/dist/martyrs/src/modules/governance/views/components/pages/TaskCreate.vue.js +2 -2
  46. package/dist/martyrs/src/modules/governance/views/components/pages/Tasks.vue.js +2 -2
  47. package/dist/martyrs/src/modules/governance/views/components/pages/Voting.vue.js +2 -2
  48. package/dist/martyrs/src/modules/governance/views/components/pages/VotingCreate.vue.js +2 -2
  49. package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js +2 -2
  50. package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js +2 -2
  51. package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js +1 -1
  52. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
  53. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
  54. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +1 -1
  55. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +1 -1
  56. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +1 -1
  57. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +1 -1
  58. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +1 -1
  59. package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +1 -1
  60. package/dist/martyrs/src/modules/notifications/notifications.client.js +2 -2
  61. package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
  62. package/dist/martyrs/src/modules/notifications/store/notifications.store.js +1 -1
  63. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  64. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
  65. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
  66. package/dist/martyrs/src/modules/orders/store/shopcart.js +1 -1
  67. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  68. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  69. package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +1 -1
  70. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  71. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +1 -1
  72. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  73. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +2 -2
  74. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
  75. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  76. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +1 -1
  77. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
  78. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
  79. package/dist/martyrs.es101.js +39 -0
  80. package/dist/martyrs.es102.js +24 -32
  81. package/dist/martyrs.es104.js +27 -0
  82. package/dist/martyrs.es105.js +6 -25
  83. package/dist/martyrs.es106.js +6 -5
  84. package/dist/martyrs.es107.js +76 -6
  85. package/dist/martyrs.es108.js +5 -77
  86. package/dist/martyrs.es109.js +119 -5
  87. package/dist/martyrs.es112.js +2 -119
  88. package/dist/martyrs.es113.js +169 -0
  89. package/dist/martyrs.es114.js +460 -0
  90. package/dist/martyrs.es115.js +40 -2
  91. package/dist/martyrs.es116.js +9 -22
  92. package/dist/martyrs.es117.js +49 -4
  93. package/dist/martyrs.es118.js +12 -8
  94. package/dist/martyrs.es119.js +41 -163
  95. package/dist/martyrs.es120.js +4 -457
  96. package/dist/martyrs.es121.js +125 -36
  97. package/dist/martyrs.es122.js +100 -9
  98. package/dist/martyrs.es123.js +76 -39
  99. package/dist/martyrs.es124.js +36 -10
  100. package/dist/martyrs.es125.js +10 -43
  101. package/dist/martyrs.es126.js +39 -4
  102. package/dist/martyrs.es127.js +8 -128
  103. package/dist/martyrs.es128.js +22 -100
  104. package/dist/martyrs.es129.js +4 -86
  105. package/dist/martyrs.es130.js +8 -38
  106. package/dist/martyrs.es131.js +115 -10
  107. package/dist/martyrs.es132.js +16 -38
  108. package/dist/martyrs.es133.js +15 -8
  109. package/dist/martyrs.es135.js +28 -112
  110. package/dist/martyrs.es136.js +9 -17
  111. package/dist/martyrs.es137.js +19 -14
  112. package/dist/martyrs.es138.js +9 -32
  113. package/dist/martyrs.es139.js +8 -9
  114. package/dist/martyrs.es140.js +43 -19
  115. package/dist/martyrs.es141.js +480 -9
  116. package/dist/martyrs.es142.js +5 -8
  117. package/dist/martyrs.es143.js +2 -45
  118. package/dist/martyrs.es144.js +29 -479
  119. package/dist/martyrs.es145.js +11 -5
  120. package/dist/martyrs.es146.js +17 -2
  121. package/dist/martyrs.es147.js +19 -11
  122. package/dist/martyrs.es148.js +27 -29
  123. package/dist/martyrs.es149.js +20 -16
  124. package/dist/martyrs.es54.js +2 -2
  125. package/dist/martyrs.es71.js +2 -2
  126. package/dist/martyrs.es74.js +1 -1
  127. package/dist/martyrs.es75.js +1 -1
  128. package/dist/martyrs.es76.js +6 -6
  129. package/dist/martyrs.es77.js +1 -1
  130. package/dist/martyrs.es78.js +1 -1
  131. package/dist/martyrs.es91.js +1 -1
  132. package/dist/martyrs.es92.js +33 -5
  133. package/dist/martyrs.es94.js +41 -0
  134. package/dist/martyrs.es95.js +46 -28
  135. package/dist/martyrs.es96.js +116 -52
  136. package/dist/martyrs.es97.js +33 -113
  137. package/dist/martyrs.es98.js +76 -33
  138. package/dist/martyrs.es99.js +24 -77
  139. package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +1 -1
  140. package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +1 -1
  141. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js +1 -1
  142. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js +1 -1
  143. package/package.json +1 -1
  144. package/dist/martyrs/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js +0 -487
  145. package/dist/martyrs/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +0 -1
  146. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/index.js +0 -8
  147. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/index.js.map +0 -1
  148. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/web.js +0 -73
  149. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/web.js.map +0 -1
  150. package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +0 -1
  151. package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +0 -1
  152. package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
  153. package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue.js.map +0 -1
  154. package/dist/martyrs.es100.js +0 -33
  155. package/dist/martyrs.es103.js +0 -31
  156. package/dist/martyrs.es110.js +0 -54
  157. package/dist/martyrs.es111.js +0 -327
  158. package/dist/martyrs.es150.js +0 -22
  159. package/dist/martyrs.es151.js +0 -31
  160. package/dist/martyrs.es152.js +0 -23
  161. package/dist/martyrs.es93.js +0 -35
  162. package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js +0 -487
  163. package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +0 -1
@@ -1,42 +1,131 @@
1
- import o from "./martyrs.es120.js";
2
- import l from "./martyrs.es147.js";
3
- function u(e, n, r) {
4
- if (n === void 0 && (n = {}), r = new o(r), n.v2) {
5
- if (!e.countryCallingCode)
6
- throw new Error("Invalid phone number object passed");
7
- r.selectNumberingPlan(e.countryCallingCode);
8
- } else {
9
- if (!e.phone)
10
- return !1;
11
- if (e.country) {
12
- if (!r.hasCountry(e.country))
13
- throw new Error("Unknown country: ".concat(e.country));
14
- r.country(e.country);
15
- } else {
16
- if (!e.countryCallingCode)
17
- throw new Error("Invalid phone number object passed");
18
- r.selectNumberingPlan(e.countryCallingCode);
19
- }
1
+ import g from "./martyrs.es134.js";
2
+ import O from "./martyrs.es128.js";
3
+ import b, { getCountryCallingCode as N } from "./martyrs.es114.js";
4
+ import v from "./martyrs.es138.js";
5
+ import { formatRFC3966 as d } from "./martyrs.es127.js";
6
+ function h(r, n) {
7
+ var e = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
8
+ if (e) return (e = e.call(r)).next.bind(e);
9
+ if (Array.isArray(r) || (e = A(r)) || n) {
10
+ e && (r = e);
11
+ var t = 0;
12
+ return function() {
13
+ return t >= r.length ? { done: !0 } : { done: !1, value: r[t++] };
14
+ };
15
+ }
16
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
17
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
18
+ }
19
+ function A(r, n) {
20
+ if (r) {
21
+ if (typeof r == "string") return l(r, n);
22
+ var e = Object.prototype.toString.call(r).slice(8, -1);
23
+ if (e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set") return Array.from(r);
24
+ if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return l(r, n);
25
+ }
26
+ }
27
+ function l(r, n) {
28
+ (n == null || n > r.length) && (n = r.length);
29
+ for (var e = 0, t = new Array(n); e < n; e++)
30
+ t[e] = r[e];
31
+ return t;
32
+ }
33
+ function s(r, n) {
34
+ var e = Object.keys(r);
35
+ if (Object.getOwnPropertySymbols) {
36
+ var t = Object.getOwnPropertySymbols(r);
37
+ n && (t = t.filter(function(o) {
38
+ return Object.getOwnPropertyDescriptor(r, o).enumerable;
39
+ })), e.push.apply(e, t);
40
+ }
41
+ return e;
42
+ }
43
+ function y(r) {
44
+ for (var n = 1; n < arguments.length; n++) {
45
+ var e = arguments[n] != null ? arguments[n] : {};
46
+ n % 2 ? s(Object(e), !0).forEach(function(t) {
47
+ I(r, t, e[t]);
48
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : s(Object(e)).forEach(function(t) {
49
+ Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(e, t));
50
+ });
20
51
  }
21
- if (r.possibleLengths())
22
- return s(e.phone || e.nationalNumber, r);
23
- if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode))
24
- return !0;
25
- throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
26
- }
27
- function s(e, n) {
28
- switch (l(e, n)) {
29
- case "IS_POSSIBLE":
30
- return !0;
31
- // This library ignores "local-only" phone numbers (for simplicity).
32
- // See the readme for more info on what are "local-only" phone numbers.
33
- // case 'IS_POSSIBLE_LOCAL_ONLY':
34
- // return !isInternational
52
+ return r;
53
+ }
54
+ function I(r, n, e) {
55
+ return n in r ? Object.defineProperty(r, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[n] = e, r;
56
+ }
57
+ var m = {
58
+ formatExtension: function(n, e, t) {
59
+ return "".concat(n).concat(t.ext()).concat(e);
60
+ }
61
+ };
62
+ function D(r, n, e, t) {
63
+ if (e ? e = y(y({}, m), e) : e = m, t = new b(t), r.country && r.country !== "001") {
64
+ if (!t.hasCountry(r.country))
65
+ throw new Error("Unknown country: ".concat(r.country));
66
+ t.country(r.country);
67
+ } else if (r.countryCallingCode)
68
+ t.selectNumberingPlan(r.countryCallingCode);
69
+ else return r.phone || "";
70
+ var o = t.countryCallingCode(), a = e.v2 ? r.nationalNumber : r.phone, c;
71
+ switch (n) {
72
+ case "NATIONAL":
73
+ return a ? (c = f(a, r.carrierCode, "NATIONAL", t, e), u(c, r.ext, t, e.formatExtension)) : "";
74
+ case "INTERNATIONAL":
75
+ return a ? (c = f(a, null, "INTERNATIONAL", t, e), c = "+".concat(o, " ").concat(c), u(c, r.ext, t, e.formatExtension)) : "+".concat(o);
76
+ case "E.164":
77
+ return "+".concat(o).concat(a);
78
+ case "RFC3966":
79
+ return d({
80
+ number: "+".concat(o).concat(a),
81
+ ext: r.ext
82
+ });
83
+ // For reference, here's Google's IDD formatter:
84
+ // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
85
+ // Not saying that this IDD formatter replicates it 1:1, but it seems to work.
86
+ // Who would even need to format phone numbers in IDD format anyway?
87
+ case "IDD":
88
+ if (!e.fromCountry)
89
+ return;
90
+ var i = P(a, r.carrierCode, o, e.fromCountry, t);
91
+ return u(i, r.ext, t, e.formatExtension);
35
92
  default:
36
- return !1;
93
+ throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(n, '"'));
94
+ }
95
+ }
96
+ function f(r, n, e, t, o) {
97
+ var a = w(t.formats(), r);
98
+ return a ? O(r, a, {
99
+ useInternationalFormat: e === "INTERNATIONAL",
100
+ withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && o && o.nationalPrefix === !1)
101
+ }) : r;
102
+ }
103
+ function w(r, n) {
104
+ for (var e = h(r), t; !(t = e()).done; ) {
105
+ var o = t.value;
106
+ if (o.leadingDigitsPatterns().length > 0) {
107
+ var a = o.leadingDigitsPatterns()[o.leadingDigitsPatterns().length - 1];
108
+ if (n.search(a) !== 0)
109
+ continue;
110
+ }
111
+ if (g(n, o.pattern()))
112
+ return o;
113
+ }
114
+ }
115
+ function u(r, n, e, t) {
116
+ return n ? t(r, n, e) : r;
117
+ }
118
+ function P(r, n, e, t, o) {
119
+ var a = N(t, o.metadata);
120
+ if (a === e) {
121
+ var c = f(r, n, "NATIONAL", o);
122
+ return e === "1" ? e + " " + c : c;
37
123
  }
124
+ var i = v(t, void 0, o.metadata);
125
+ if (i)
126
+ return "".concat(i, " ").concat(e, " ").concat(f(r, null, "INTERNATIONAL", o));
38
127
  }
39
128
  export {
40
- u as default,
41
- s as isPossibleNumber
129
+ w as chooseFormatForNumber,
130
+ D as default
42
131
  };
@@ -1,12 +1,103 @@
1
- import m from "./martyrs.es120.js";
2
- import o from "./martyrs.es134.js";
3
- import u from "./martyrs.es123.js";
4
- function b(e, n, r) {
5
- if (n = n || {}, r = new m(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
6
- return u(e, n, r.metadata) !== void 0;
7
- var l = n.v2 ? e.nationalNumber : e.phone;
8
- return o(l, r.nationalNumberPattern());
1
+ function a(e) {
2
+ "@babel/helpers - typeof";
3
+ return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4
+ return typeof t;
5
+ } : function(t) {
6
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
7
+ }, a(e);
9
8
  }
9
+ function v(e, t, o) {
10
+ return Object.defineProperty(e, "prototype", { writable: !1 }), e;
11
+ }
12
+ function d(e, t) {
13
+ if (!(e instanceof t))
14
+ throw new TypeError("Cannot call a class as a function");
15
+ }
16
+ function O(e, t) {
17
+ if (typeof t != "function" && t !== null)
18
+ throw new TypeError("Super expression must either be null or a function");
19
+ e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && u(e, t);
20
+ }
21
+ function m(e) {
22
+ var t = b();
23
+ return function() {
24
+ var r = c(e), n;
25
+ if (t) {
26
+ var f = c(this).constructor;
27
+ n = Reflect.construct(r, arguments, f);
28
+ } else
29
+ n = r.apply(this, arguments);
30
+ return w(this, n);
31
+ };
32
+ }
33
+ function w(e, t) {
34
+ if (t && (a(t) === "object" || typeof t == "function"))
35
+ return t;
36
+ if (t !== void 0)
37
+ throw new TypeError("Derived constructors may only return object or undefined");
38
+ return _(e);
39
+ }
40
+ function _(e) {
41
+ if (e === void 0)
42
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
43
+ return e;
44
+ }
45
+ function y(e) {
46
+ var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
47
+ return y = function(r) {
48
+ if (r === null || !P(r)) return r;
49
+ if (typeof r != "function")
50
+ throw new TypeError("Super expression must either be null or a function");
51
+ if (typeof t < "u") {
52
+ if (t.has(r)) return t.get(r);
53
+ t.set(r, n);
54
+ }
55
+ function n() {
56
+ return i(r, arguments, c(this).constructor);
57
+ }
58
+ return n.prototype = Object.create(r.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), u(n, r);
59
+ }, y(e);
60
+ }
61
+ function i(e, t, o) {
62
+ return b() ? i = Reflect.construct : i = function(n, f, l) {
63
+ var p = [null];
64
+ p.push.apply(p, f);
65
+ var h = Function.bind.apply(n, p), s = new h();
66
+ return l && u(s, l.prototype), s;
67
+ }, i.apply(null, arguments);
68
+ }
69
+ function b() {
70
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
71
+ if (typeof Proxy == "function") return !0;
72
+ try {
73
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
74
+ })), !0;
75
+ } catch {
76
+ return !1;
77
+ }
78
+ }
79
+ function P(e) {
80
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
81
+ }
82
+ function u(e, t) {
83
+ return u = Object.setPrototypeOf || function(r, n) {
84
+ return r.__proto__ = n, r;
85
+ }, u(e, t);
86
+ }
87
+ function c(e) {
88
+ return c = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
89
+ return o.__proto__ || Object.getPrototypeOf(o);
90
+ }, c(e);
91
+ }
92
+ var g = /* @__PURE__ */ (function(e) {
93
+ O(o, e);
94
+ var t = m(o);
95
+ function o(r) {
96
+ var n;
97
+ return d(this, o), n = t.call(this, r), Object.setPrototypeOf(_(n), o.prototype), n.name = n.constructor.name, n;
98
+ }
99
+ return v(o);
100
+ })(/* @__PURE__ */ y(Error));
10
101
  export {
11
- b as default
102
+ g as default
12
103
  };
@@ -1,52 +1,89 @@
1
- import a from "./martyrs.es120.js";
2
- import l from "./martyrs.es134.js";
3
- function I(e, n) {
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 = c(e)) || n) {
7
- r && (e = r);
8
- var t = 0;
9
- return function() {
10
- return t >= e.length ? { done: !0 } : { done: !1, value: e[t++] };
11
- };
1
+ import p from "./martyrs.es120.js";
2
+ function c(r, e) {
3
+ var t = Object.keys(r);
4
+ if (Object.getOwnPropertySymbols) {
5
+ var n = Object.getOwnPropertySymbols(r);
6
+ e && (n = n.filter(function(a) {
7
+ return Object.getOwnPropertyDescriptor(r, a).enumerable;
8
+ })), t.push.apply(t, n);
12
9
  }
13
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
10
+ return t;
11
+ }
12
+ function y(r) {
13
+ for (var e = 1; e < arguments.length; e++) {
14
+ var t = arguments[e] != null ? arguments[e] : {};
15
+ e % 2 ? c(Object(t), !0).forEach(function(n) {
16
+ b(r, n, t[n]);
17
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : c(Object(t)).forEach(function(n) {
18
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
19
+ });
20
+ }
21
+ return r;
22
+ }
23
+ function b(r, e, t) {
24
+ return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
25
+ }
26
+ function d(r, e) {
27
+ return _(r) || O(r, e) || m(r, e) || g();
28
+ }
29
+ function g() {
30
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
31
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15
32
  }
16
- function c(e, n) {
17
- if (e) {
18
- if (typeof e == "string") return f(e, n);
19
- var r = Object.prototype.toString.call(e).slice(8, -1);
20
- if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
21
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return f(e, n);
33
+ function m(r, e) {
34
+ if (r) {
35
+ if (typeof r == "string") return s(r, e);
36
+ var t = Object.prototype.toString.call(r).slice(8, -1);
37
+ if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
38
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return s(r, e);
22
39
  }
23
40
  }
24
- function f(e, n) {
25
- (n == null || n > e.length) && (n = e.length);
26
- for (var r = 0, t = new Array(n); r < n; r++)
27
- t[r] = e[r];
28
- return t;
41
+ function s(r, e) {
42
+ (e == null || e > r.length) && (e = r.length);
43
+ for (var t = 0, n = new Array(e); t < e; t++)
44
+ n[t] = r[t];
45
+ return n;
29
46
  }
30
- var s = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
31
- function _(e, n, r) {
32
- if (n = n || {}, !(!e.country && !e.countryCallingCode)) {
33
- r = new a(r), r.selectNumberingPlan(e.country, e.countryCallingCode);
34
- var t = n.v2 ? e.nationalNumber : e.phone;
35
- if (l(t, r.nationalNumberPattern())) {
36
- if (i(t, "FIXED_LINE", r))
37
- return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || i(t, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
38
- for (var E = I(s), o; !(o = E()).done; ) {
39
- var u = o.value;
40
- if (i(t, u, r))
41
- return u;
47
+ function O(r, e) {
48
+ var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
49
+ if (t != null) {
50
+ var n = [], a = !0, i = !1, u, f;
51
+ try {
52
+ for (t = t.call(r); !(a = (u = t.next()).done) && (n.push(u.value), !(e && n.length === e)); a = !0)
53
+ ;
54
+ } catch (o) {
55
+ i = !0, f = o;
56
+ } finally {
57
+ try {
58
+ !a && t.return != null && t.return();
59
+ } finally {
60
+ if (i) throw f;
42
61
  }
43
62
  }
63
+ return n;
44
64
  }
45
65
  }
46
- function i(e, n, r) {
47
- return n = r.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : l(e, n.pattern());
66
+ function _(r) {
67
+ if (Array.isArray(r)) return r;
68
+ }
69
+ function h(r) {
70
+ var e = Array.prototype.slice.call(r), t = d(e, 4), n = t[0], a = t[1], i = t[2], u = t[3], f, o, l;
71
+ if (typeof n == "string")
72
+ f = n;
73
+ else throw new TypeError("A text for parsing must be a string.");
74
+ if (!a || typeof a == "string")
75
+ u ? (o = i, l = u) : (o = void 0, l = i), a && (o = y({
76
+ defaultCountry: a
77
+ }, o));
78
+ else if (p(a))
79
+ i ? (o = a, l = i) : l = a;
80
+ else throw new Error("Invalid second argument: ".concat(a));
81
+ return {
82
+ text: f,
83
+ options: o,
84
+ metadata: l
85
+ };
48
86
  }
49
87
  export {
50
- _ as default,
51
- i as isNumberTypeEqualTo
88
+ h as default
52
89
  };
@@ -1,14 +1,40 @@
1
- import u from "./martyrs.es120.js";
2
- function s(r, t, e) {
3
- var n = new u(e), o = n.getCountryCodesForCallingCode(r);
4
- return o ? o.filter(function(a) {
5
- return i(t, a, e);
6
- }) : [];
1
+ import c from "./martyrs.es144.js";
2
+ import i from "./martyrs.es122.js";
3
+ import { isSupportedCountry as p } from "./martyrs.es114.js";
4
+ function u(e, r) {
5
+ var t = Object.keys(e);
6
+ if (Object.getOwnPropertySymbols) {
7
+ var n = Object.getOwnPropertySymbols(e);
8
+ r && (n = n.filter(function(o) {
9
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
10
+ })), t.push.apply(t, n);
11
+ }
12
+ return t;
7
13
  }
8
- function i(r, t, e) {
9
- var n = new u(e);
10
- return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(r.length) >= 0;
14
+ function f(e) {
15
+ for (var r = 1; r < arguments.length; r++) {
16
+ var t = arguments[r] != null ? arguments[r] : {};
17
+ r % 2 ? u(Object(t), !0).forEach(function(n) {
18
+ a(e, n, t[n]);
19
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : u(Object(t)).forEach(function(n) {
20
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
21
+ });
22
+ }
23
+ return e;
24
+ }
25
+ function a(e, r, t) {
26
+ return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
27
+ }
28
+ function y(e, r, t) {
29
+ r && r.defaultCountry && !p(r.defaultCountry, t) && (r = f(f({}, r), {}, {
30
+ defaultCountry: void 0
31
+ }));
32
+ try {
33
+ return c(e, r, t);
34
+ } catch (n) {
35
+ if (!(n instanceof i)) throw n;
36
+ }
11
37
  }
12
38
  export {
13
- s as default
39
+ y as default
14
40
  };
@@ -1,47 +1,14 @@
1
- import s from "./martyrs.es149.js";
2
- import M from "./martyrs.es150.js";
3
- import u from "./martyrs.es120.js";
4
- import { MAX_LENGTH_COUNTRY_CODE as I } from "./martyrs.es118.js";
5
- function p(r, o, f, i) {
6
- if (!r)
7
- return {};
8
- var n;
9
- if (r[0] !== "+") {
10
- var l = s(r, o, f, i);
11
- if (l && l !== r)
12
- n = !0, r = "+" + l;
13
- else {
14
- if (o || f) {
15
- var _ = M(r, o, f, i), C = _.countryCallingCode, N = _.number;
16
- if (C)
17
- return {
18
- countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
19
- countryCallingCode: C,
20
- number: N
21
- };
22
- }
23
- return {
24
- // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
25
- // countryCallingCodeSource: 'UNSPECIFIED',
26
- number: r
27
- };
28
- }
1
+ function f(r, t) {
2
+ r = r.split("-"), t = t.split("-");
3
+ for (var N = r[0].split("."), s = t[0].split("."), e = 0; e < 3; e++) {
4
+ var i = Number(N[e]), u = Number(s[e]);
5
+ if (i > u) return 1;
6
+ if (u > i) return -1;
7
+ if (!isNaN(i) && isNaN(u)) return 1;
8
+ if (isNaN(i) && !isNaN(u)) return -1;
29
9
  }
30
- if (r[1] === "0")
31
- return {};
32
- i = new u(i);
33
- for (var e = 2; e - 1 <= I && e <= r.length; ) {
34
- var t = r.slice(1, e);
35
- if (i.hasCallingCode(t))
36
- return i.selectNumberingPlan(t), {
37
- countryCallingCodeSource: n ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
38
- countryCallingCode: t,
39
- number: r.slice(e)
40
- };
41
- e++;
42
- }
43
- return {};
10
+ return r[1] && t[1] ? r[1] > t[1] ? 1 : r[1] < t[1] ? -1 : 0 : !r[1] && t[1] ? 1 : r[1] && !t[1] ? -1 : 0;
44
11
  }
45
12
  export {
46
- p as default
13
+ f as default
47
14
  };
@@ -1,7 +1,42 @@
1
- var t = {}.constructor;
2
- function n(r) {
3
- return r != null && r.constructor === t;
1
+ import { parseDigit as o } from "./martyrs.es107.js";
2
+ function u(r, e) {
3
+ var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
4
+ if (t) return (t = t.call(r)).next.bind(t);
5
+ if (Array.isArray(r) || (t = f(r)) || e) {
6
+ t && (r = t);
7
+ var n = 0;
8
+ return function() {
9
+ return n >= r.length ? { done: !0 } : { done: !1, value: r[n++] };
10
+ };
11
+ }
12
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14
+ }
15
+ function f(r, e) {
16
+ if (r) {
17
+ if (typeof r == "string") return a(r, e);
18
+ var t = Object.prototype.toString.call(r).slice(8, -1);
19
+ if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
20
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return a(r, e);
21
+ }
22
+ }
23
+ function a(r, e) {
24
+ (e == null || e > r.length) && (e = r.length);
25
+ for (var t = 0, n = new Array(e); t < e; t++)
26
+ n[t] = r[t];
27
+ return n;
28
+ }
29
+ function s(r) {
30
+ for (var e = "", t = u(r.split("")), n; !(n = t()).done; ) {
31
+ var i = n.value;
32
+ e += l(i, e) || "";
33
+ }
34
+ return e;
35
+ }
36
+ function l(r, e, t) {
37
+ return r === "+" ? e ? void 0 : "+" : o(r);
4
38
  }
5
39
  export {
6
- n as default
40
+ s as default,
41
+ l as parsePhoneNumberCharacter
7
42
  };