@odynn/awayz-core 0.10.21 → 0.10.22

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 (31) hide show
  1. package/dist/{TripsService-Y1EaI44r.js → TripsService-B2m7Yy9W.js} +2 -2
  2. package/dist/components/CashValue/CashValue.js +2 -2
  3. package/dist/components/CashValue/CashValue.stories.js +1 -1
  4. package/dist/components/ClientPointsValue/ClientPointsValue.js +1 -1
  5. package/dist/components/Wallet/Card/Card.stories.js +1 -1
  6. package/dist/hooks/useAwayzAuth/useAwayzAuth.js +2 -2
  7. package/dist/hooks/useBookingManagement/useBookingManagement.js +2 -2
  8. package/dist/hooks/useBookingManagement/useBookingManagement.test.js +2 -2
  9. package/dist/hooks/useFeatureFlags.js +2 -2
  10. package/dist/hooks/useSearchLimit.js +2 -2
  11. package/dist/hooks/useTripManagement/useTripManagement.js +3 -3
  12. package/dist/hooks/useTripManagement/useTripManagement.test.js +3 -3
  13. package/dist/hooks/useWallet/useWallet.js +2 -2
  14. package/dist/hooks/useWallet/useWallet.test.js +1 -1
  15. package/dist/main.js +1 -1
  16. package/dist/{noRetryInstance-BmwUZZ2X.js → noRetryInstance-DNLgOg0E.js} +125 -114
  17. package/dist/providers/AwayzProvider.js +1 -1
  18. package/dist/services/account/AccountService.js +2 -2
  19. package/dist/services/bookings/BookingService.js +2 -2
  20. package/dist/services/currency/CurrencyService.js +2 -2
  21. package/dist/services/features/featureService.js +1 -1
  22. package/dist/services/index.js +1 -1
  23. package/dist/services/instance.js +2 -2
  24. package/dist/services/instanceConfig.js +2 -2
  25. package/dist/services/noRetryInstance.js +1 -1
  26. package/dist/services/preferences/PreferencesService.js +1 -1
  27. package/dist/services/rewards/RewardsService.js +2 -2
  28. package/dist/services/trips/TripsService.js +3 -3
  29. package/dist/services/wallet/WalletService.js +2 -2
  30. package/dist/utils/clientPoints.js +2 -2
  31. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  var v = Object.defineProperty;
2
2
  var f = (s, e, a) => e in s ? v(s, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : s[e] = a;
3
3
  var n = (s, e, a) => f(s, typeof e != "symbol" ? e + "" : e, a);
4
- import "./arrayExtensions-DlcBOj5a.js";
5
4
  import "react/jsx-runtime";
6
- import { c as i, f as u, b as d, r as D } from "./noRetryInstance-BmwUZZ2X.js";
5
+ import "./arrayExtensions-DlcBOj5a.js";
6
+ import { c as i, f as u, b as d, r as D } from "./noRetryInstance-DNLgOg0E.js";
7
7
  import "react";
8
8
  import { DEFAULT_LOGO as S } from "./configs/defaultAwayzConfig.js";
9
9
  import { EMyTripsEndpoints as o } from "./configs/endpoints.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
2
  import { useQuery as R } from "@tanstack/react-query";
3
- import "../../arrayExtensions-DlcBOj5a.js";
4
3
  import { g as m, a as _, b as N } from "../../cashUtils-Dlce3Uj_.js";
5
- import { E as S } from "../../noRetryInstance-BmwUZZ2X.js";
4
+ import "../../arrayExtensions-DlcBOj5a.js";
5
+ import { E as S } from "../../noRetryInstance-DNLgOg0E.js";
6
6
  import { useMemo as T } from "react";
7
7
  import { a as f } from "../../index-C8p5kinH.js";
8
8
  import "react-i18next";
@@ -9,7 +9,7 @@ import { CashValue as n } from "./CashValue.js";
9
9
  import { EToolTipPosition as t, EInvalidAmountDisplayOption as o } from "./CashValueTypes.js";
10
10
  import "@tanstack/react-query";
11
11
  import "../../context/AwayzContext.js";
12
- import "../../noRetryInstance-BmwUZZ2X.js";
12
+ import "../../noRetryInstance-DNLgOg0E.js";
13
13
  import "../../configs/awayzClient.js";
14
14
  /* empty css */
15
15
  import { AwayzProvider as a } from "../../providers/AwayzProvider.js";
@@ -2,7 +2,7 @@ import { jsxs as u } from "react/jsx-runtime";
2
2
  import { useQuery as c } from "@tanstack/react-query";
3
3
  import "../../arrayExtensions-DlcBOj5a.js";
4
4
  import { c as p } from "../../numberUtils-B4wd-SGR.js";
5
- import { E as f } from "../../noRetryInstance-BmwUZZ2X.js";
5
+ import { E as f } from "../../noRetryInstance-DNLgOg0E.js";
6
6
  import { useMemo as C } from "react";
7
7
  import { useAwayzContext as l } from "../../hooks/useAwayzContext.js";
8
8
  import "react-i18next";
@@ -7,7 +7,7 @@ import '../../../assets/_styles6.css';import '../../../assets/_styles5.css';impo
7
7
  /* empty css */
8
8
  import "@tanstack/react-query";
9
9
  import "../../../configs/awayzClient.js";
10
- import "../../../noRetryInstance-BmwUZZ2X.js";
10
+ import "../../../noRetryInstance-DNLgOg0E.js";
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  import "../../../index-Cv-wvFlM.js";
@@ -1,6 +1,6 @@
1
- import "../../arrayExtensions-DlcBOj5a.js";
2
1
  import { c as P } from "../../cashUtils-Dlce3Uj_.js";
3
- import { e as M, A as m, E as N } from "../../noRetryInstance-BmwUZZ2X.js";
2
+ import "../../arrayExtensions-DlcBOj5a.js";
3
+ import { e as M, A as m, E as N } from "../../noRetryInstance-DNLgOg0E.js";
4
4
  import { a as i } from "../../keys-BcBfU51M.js";
5
5
  import { useState as f, useCallback as F, useEffect as T } from "react";
6
6
  import { awayzClient as R } from "../../configs/awayzClient.js";
@@ -1,7 +1,7 @@
1
1
  import { useQuery as g, useMutation as u } from "@tanstack/react-query";
2
- import "../../arrayExtensions-DlcBOj5a.js";
3
2
  import "react/jsx-runtime";
4
- import { E as s } from "../../noRetryInstance-BmwUZZ2X.js";
3
+ import "../../arrayExtensions-DlcBOj5a.js";
4
+ import { E as s } from "../../noRetryInstance-DNLgOg0E.js";
5
5
  import { useState as x } from "react";
6
6
  import "react-i18next";
7
7
  import '../../assets/_styles4.css';import '../../assets/_styles6.css';import '../../assets/_styles5.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles3.css';/* empty css */
@@ -1,6 +1,6 @@
1
1
  import { EBookingEndpoints as i } from "../../configs/endpoints.js";
2
- import "../../arrayExtensions-DlcBOj5a.js";
3
2
  import "react/jsx-runtime";
3
+ import "../../arrayExtensions-DlcBOj5a.js";
4
4
  import "react";
5
5
  import "react-i18next";
6
6
  import '../../assets/_styles4.css';import '../../assets/_styles6.css';import '../../assets/_styles5.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles3.css';/* empty css */
@@ -10,7 +10,7 @@ import "@tanstack/react-query";
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import "../../index-Cv-wvFlM.js";
13
- import { c } from "../../noRetryInstance-BmwUZZ2X.js";
13
+ import { c } from "../../noRetryInstance-DNLgOg0E.js";
14
14
  import "../../context/AwayzContext.js";
15
15
  import { useBookingManagement as t } from "./useBookingManagement.js";
16
16
  import "../../configs/awayzClient.js";
@@ -1,7 +1,7 @@
1
1
  import { useQuery as U } from "@tanstack/react-query";
2
- import "../arrayExtensions-DlcBOj5a.js";
3
2
  import "react/jsx-runtime";
4
- import { E as N, t as F } from "../noRetryInstance-BmwUZZ2X.js";
3
+ import "../arrayExtensions-DlcBOj5a.js";
4
+ import { E as N, t as F } from "../noRetryInstance-DNLgOg0E.js";
5
5
  import { useMemo as r } from "react";
6
6
  import { FeatureService as e } from "../services/features/featureService.js";
7
7
  const L = [
@@ -1,7 +1,7 @@
1
1
  import { useQuery as u } from "@tanstack/react-query";
2
- import "../arrayExtensions-DlcBOj5a.js";
3
2
  import "react/jsx-runtime";
4
- import { E as m, A as c, b as f } from "../noRetryInstance-BmwUZZ2X.js";
3
+ import "../arrayExtensions-DlcBOj5a.js";
4
+ import { E as m, A as c, b as f } from "../noRetryInstance-DNLgOg0E.js";
5
5
  import { useEffect as d } from "react";
6
6
  import { useAwayzContext as y } from "./useAwayzContext.js";
7
7
  var s = /* @__PURE__ */ ((r) => (r.HOTEL = "Hotel", r.FLIGHT = "Flight", r))(s || {});
@@ -1,7 +1,7 @@
1
1
  import { useQuery as u, useMutation as p } from "@tanstack/react-query";
2
- import { h as m } from "../../arrayExtensions-DlcBOj5a.js";
3
2
  import "react/jsx-runtime";
4
- import { E as e } from "../../noRetryInstance-BmwUZZ2X.js";
3
+ import { h as m } from "../../arrayExtensions-DlcBOj5a.js";
4
+ import { E as e } from "../../noRetryInstance-DNLgOg0E.js";
5
5
  import "react";
6
6
  import "react-i18next";
7
7
  import '../../assets/_styles4.css';import '../../assets/_styles6.css';import '../../assets/_styles5.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles3.css';/* empty css */
@@ -13,7 +13,7 @@ import { awayzClient as o } from "../../configs/awayzClient.js";
13
13
  import "../../index-Cv-wvFlM.js";
14
14
  import "../../context/AwayzContext.js";
15
15
  /* empty css */
16
- import { T as n } from "../../TripsService-Y1EaI44r.js";
16
+ import { T as n } from "../../TripsService-B2m7Yy9W.js";
17
17
  const b = ({
18
18
  tripId: t,
19
19
  tripDetails: s
@@ -1,6 +1,6 @@
1
- import { h as p } from "../../arrayExtensions-DlcBOj5a.js";
2
1
  import "react/jsx-runtime";
3
- import { D as f } from "../../TripsService-Y1EaI44r.js";
2
+ import { h as p } from "../../arrayExtensions-DlcBOj5a.js";
3
+ import { D as f } from "../../TripsService-B2m7Yy9W.js";
4
4
  import "react";
5
5
  import { renderHook as o, waitFor as i } from "../../tests/TestWrapper.js";
6
6
  import { EMyTripsEndpoints as c } from "../../configs/endpoints.js";
@@ -10,7 +10,7 @@ import '../../assets/_styles4.css';import '../../assets/_styles6.css';import '..
10
10
  /* empty css */
11
11
  import "@tanstack/react-query";
12
12
  import "../../configs/awayzClient.js";
13
- import { c as d } from "../../noRetryInstance-BmwUZZ2X.js";
13
+ import { c as d } from "../../noRetryInstance-DNLgOg0E.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  import "../../index-Cv-wvFlM.js";
@@ -1,7 +1,7 @@
1
1
  import { useQuery as n, useMutation as s } from "@tanstack/react-query";
2
- import "../../arrayExtensions-DlcBOj5a.js";
3
2
  import "react/jsx-runtime";
4
- import { E as a, d as u } from "../../noRetryInstance-BmwUZZ2X.js";
3
+ import "../../arrayExtensions-DlcBOj5a.js";
4
+ import { E as a, d as u } from "../../noRetryInstance-DNLgOg0E.js";
5
5
  import "react";
6
6
  import "react-i18next";
7
7
  import '../../assets/_styles4.css';import '../../assets/_styles6.css';import '../../assets/_styles5.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles3.css';/* empty css */
@@ -8,7 +8,7 @@ import '../../assets/_styles4.css';import '../../assets/_styles6.css';import '..
8
8
  /* empty css */
9
9
  import "@tanstack/react-query";
10
10
  import "../../configs/awayzClient.js";
11
- import { c as l } from "../../noRetryInstance-BmwUZZ2X.js";
11
+ import { c as l } from "../../noRetryInstance-DNLgOg0E.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  import "../../index-Cv-wvFlM.js";
package/dist/main.js CHANGED
@@ -14,7 +14,7 @@ import { useWallet as P } from "./hooks/useWallet/useWallet.js";
14
14
  import { ECancelStatus as z } from "./hooks/useBookingManagement/useBookingManagement.types.js";
15
15
  import { AwayzProvider as M } from "./providers/AwayzProvider.js";
16
16
  import { CurrencyService as R } from "./services/currency/CurrencyService.js";
17
- import { c as H, a as L, g as N, i as O } from "./noRetryInstance-BmwUZZ2X.js";
17
+ import { c as H, a as L, g as N, i as O } from "./noRetryInstance-DNLgOg0E.js";
18
18
  import { RewardsService as W } from "./services/rewards/RewardsService.js";
19
19
  import { EBookingType as j } from "./services/trips/TripService.types.js";
20
20
  import { EAuthFlow as G } from "./types/EAuthFlow.js";
@@ -1,8 +1,8 @@
1
1
  import './assets/_styles4.css';import './assets/_styles6.css';import './assets/_styles5.css';import './assets/_styles2.css';import './assets/_styles.css';import './assets/_styles3.css';import './assets/noRetryInstance.css';var pt = Object.defineProperty;
2
2
  var ht = (e, t, n) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var I = (e, t, n) => ht(e, typeof t != "symbol" ? t + "" : t, n);
4
- import "./arrayExtensions-DlcBOj5a.js";
5
4
  import "react/jsx-runtime";
5
+ import "./arrayExtensions-DlcBOj5a.js";
6
6
  import { a as U } from "./keys-BcBfU51M.js";
7
7
  import "react";
8
8
  import { getBaseUrl as He } from "./configs/baseUrl.js";
@@ -13,7 +13,7 @@ import "react-i18next";
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  /* empty css */
16
- import { awayzClient as $ } from "./configs/awayzClient.js";
16
+ import { awayzClient as G } from "./configs/awayzClient.js";
17
17
  /* empty css */
18
18
  /* empty css */
19
19
  import "./index-Cv-wvFlM.js";
@@ -21,7 +21,7 @@ import "./context/AwayzContext.js";
21
21
  /* empty css */
22
22
  import { EAuthFlow as Et } from "./types/EAuthFlow.js";
23
23
  const L = (e) => Array.isArray(e) ? e.map((t) => L(t)) : typeof e == "object" && e !== null ? Object.keys(e).reduce((t, n) => {
24
- const r = gt(n);
24
+ const r = St(n);
25
25
  return t[r] = L(e[n]), t;
26
26
  }, {}) : e;
27
27
  function Rt(e) {
@@ -30,31 +30,31 @@ function Rt(e) {
30
30
  const Te = (e) => Array.isArray(e) ? e.map((t) => Te(t)) : typeof e == "object" && e !== null ? Object.keys(e).reduce((t, n) => {
31
31
  const r = Rt(n);
32
32
  return t[r] = Te(e[n]), t;
33
- }, {}) : e, St = (e) => (Object.keys(e).forEach(
33
+ }, {}) : e, gt = (e) => (Object.keys(e).forEach(
34
34
  (t) => !e[t] && delete e[t]
35
- ), e), gt = (e) => (e = e.replace(/^_+/, ""), e.replace(/_([a-z])/gi, (t, n) => n.toUpperCase()));
36
- var j = /* @__PURE__ */ ((e) => (e.LOCATIONS = "LOCATIONS", e.CHECK_USER = "CHECK_USER", e.USER_REGIONS = "USER_REGIONS", e.CONVERT_CURRENCY = "CONVERT_CURRENCY", e.CLIENT_COMPONENT_KEY = "CLIENT_COMPONENT_KEY", e.SEARCH_LIMIT = "SEARCH_LIMIT", e.PROGRAMS = "PROGRAMS", e.USER_PROGRAMS = "USER_PROGRAMS", e.LINKED_USER_PROGRAMS = "LINKED_USER_PROGRAMS", e.BANKS = "BANKS", e.CARDS = "CARDS", e.USER_CARDS = "USER_CARDS", e.TRIPS = "TRIPS", e.UNCATEGORISED_BOOKINGS = "UNCATEGORISED_BOOKINGS", e.BOOKING = "BOOKING", e.VALUE_CENTS = "VALUE_CENTS", e.AVAILABILITY_ALERTS = "AVAILABILITY_ALERTS", e.ALERT_NOTIFICATIONS = "ALERT_NOTIFICATIONS", e.POINTS_AS_CASH = "POINTS_AS_CASH", e.GET_USER_REGION = "get_user_region", e.PRICING = "pricing", e.FAQS = "faqs", e.FEATURES = "features", e.AIRLINE_HEALTH = "airline_health", e.SUPPORTED_AIRLINE_PROGRAMS = "supported_airline_programs", e.CLIENT_DETAILS = "client-details", e))(j || {}), yt = /* @__PURE__ */ ((e) => (e.HOTEL = "Hotel", e.AIRLINE = "Airline", e.BANK = "Bank", e))(yt || {});
35
+ ), e), St = (e) => (e = e.replace(/^_+/, ""), e.replace(/_([a-z])/gi, (t, n) => n.toUpperCase()));
36
+ var q = /* @__PURE__ */ ((e) => (e.LOCATIONS = "LOCATIONS", e.CHECK_USER = "CHECK_USER", e.USER_REGIONS = "USER_REGIONS", e.CONVERT_CURRENCY = "CONVERT_CURRENCY", e.CLIENT_COMPONENT_KEY = "CLIENT_COMPONENT_KEY", e.SEARCH_LIMIT = "SEARCH_LIMIT", e.PROGRAMS = "PROGRAMS", e.USER_PROGRAMS = "USER_PROGRAMS", e.LINKED_USER_PROGRAMS = "LINKED_USER_PROGRAMS", e.BANKS = "BANKS", e.CARDS = "CARDS", e.USER_CARDS = "USER_CARDS", e.TRIPS = "TRIPS", e.UNCATEGORISED_BOOKINGS = "UNCATEGORISED_BOOKINGS", e.BOOKING = "BOOKING", e.VALUE_CENTS = "VALUE_CENTS", e.AVAILABILITY_ALERTS = "AVAILABILITY_ALERTS", e.ALERT_NOTIFICATIONS = "ALERT_NOTIFICATIONS", e.POINTS_AS_CASH = "POINTS_AS_CASH", e.GET_USER_REGION = "get_user_region", e.PRICING = "pricing", e.FAQS = "faqs", e.FEATURES = "features", e.AIRLINE_HEALTH = "airline_health", e.SUPPORTED_AIRLINE_PROGRAMS = "supported_airline_programs", e.CLIENT_DETAILS = "client-details", e))(q || {}), yt = /* @__PURE__ */ ((e) => (e.HOTEL = "Hotel", e.AIRLINE = "Airline", e.BANK = "Bank", e))(yt || {});
37
37
  function Me(e, t) {
38
38
  return function() {
39
39
  return e.apply(t, arguments);
40
40
  };
41
41
  }
42
- const { toString: wt } = Object.prototype, { getPrototypeOf: Se } = Object, { iterator: te, toStringTag: je } = Symbol, ne = /* @__PURE__ */ ((e) => (t) => {
42
+ const { toString: wt } = Object.prototype, { getPrototypeOf: ge } = Object, { iterator: te, toStringTag: je } = Symbol, ne = /* @__PURE__ */ ((e) => (t) => {
43
43
  const n = wt.call(t);
44
44
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
45
45
  })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), re = (e) => (t) => typeof t === e, { isArray: z } = Array, v = re("undefined");
46
46
  function Tt(e) {
47
47
  return e !== null && !v(e) && e.constructor !== null && !v(e.constructor) && N(e.constructor.isBuffer) && e.constructor.isBuffer(e);
48
48
  }
49
- const ze = x("ArrayBuffer");
49
+ const Ge = x("ArrayBuffer");
50
50
  function bt(e) {
51
51
  let t;
52
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ze(e.buffer), t;
52
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ge(e.buffer), t;
53
53
  }
54
- const Ot = re("string"), N = re("function"), Ge = re("number"), se = (e) => e !== null && typeof e == "object", At = (e) => e === !0 || e === !1, X = (e) => {
54
+ const Ot = re("string"), N = re("function"), ze = re("number"), se = (e) => e !== null && typeof e == "object", At = (e) => e === !0 || e === !1, X = (e) => {
55
55
  if (ne(e) !== "object")
56
56
  return !1;
57
- const t = Se(e);
57
+ const t = ge(e);
58
58
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(je in e) && !(te in e);
59
59
  }, _t = x("Date"), Nt = x("File"), Ct = x("Blob"), It = x("FileList"), Ut = (e) => se(e) && N(e.pipe), Lt = (e) => {
60
60
  let t;
@@ -84,7 +84,7 @@ function $e(e, t) {
84
84
  return s;
85
85
  return null;
86
86
  }
87
- const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ke = (e) => !v(e) && e !== q;
87
+ const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ke = (e) => !v(e) && e !== H;
88
88
  function fe() {
89
89
  const { caseless: e } = Ke(this) && this || {}, t = {}, n = (r, s) => {
90
90
  const o = e && $e(t, s) || s;
@@ -107,23 +107,23 @@ const qt = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
107
107
  do {
108
108
  for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
109
109
  i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
110
- e = n !== !1 && Se(e);
110
+ e = n !== !1 && ge(e);
111
111
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
112
112
  return t;
113
- }, zt = (e, t, n) => {
113
+ }, Gt = (e, t, n) => {
114
114
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
115
115
  const r = e.indexOf(t, n);
116
116
  return r !== -1 && r === n;
117
- }, Gt = (e) => {
117
+ }, zt = (e) => {
118
118
  if (!e) return null;
119
119
  if (z(e)) return e;
120
120
  let t = e.length;
121
- if (!Ge(t)) return null;
121
+ if (!ze(t)) return null;
122
122
  const n = new Array(t);
123
123
  for (; t-- > 0; )
124
124
  n[t] = e[t];
125
125
  return n;
126
- }, $t = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Se(Uint8Array)), Kt = (e, t) => {
126
+ }, $t = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ge(Uint8Array)), Kt = (e, t) => {
127
127
  const r = (e && e[te]).call(e);
128
128
  let s;
129
129
  for (; (s = r.next()) && !s.done; ) {
@@ -191,21 +191,21 @@ const tn = (e) => {
191
191
  return r;
192
192
  };
193
193
  return n(e, 0);
194
- }, nn = x("AsyncFunction"), rn = (e) => e && (se(e) || N(e)) && N(e.then) && N(e.catch), Ve = ((e, t) => e ? setImmediate : t ? ((n, r) => (q.addEventListener("message", ({ source: s, data: o }) => {
195
- s === q && o === n && r.length && r.shift()();
194
+ }, nn = x("AsyncFunction"), rn = (e) => e && (se(e) || N(e)) && N(e.then) && N(e.catch), Ve = ((e, t) => e ? setImmediate : t ? ((n, r) => (H.addEventListener("message", ({ source: s, data: o }) => {
195
+ s === H && o === n && r.length && r.shift()();
196
196
  }, !1), (s) => {
197
- r.push(s), q.postMessage(n, "*");
197
+ r.push(s), H.postMessage(n, "*");
198
198
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
199
199
  typeof setImmediate == "function",
200
- N(q.postMessage)
201
- ), sn = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick || Ve, on = (e) => e != null && N(e[te]), a = {
200
+ N(H.postMessage)
201
+ ), sn = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || Ve, on = (e) => e != null && N(e[te]), a = {
202
202
  isArray: z,
203
- isArrayBuffer: ze,
203
+ isArrayBuffer: Ge,
204
204
  isBuffer: Tt,
205
205
  isFormData: Lt,
206
206
  isArrayBufferView: bt,
207
207
  isString: Ot,
208
- isNumber: Ge,
208
+ isNumber: ze,
209
209
  isBoolean: At,
210
210
  isObject: se,
211
211
  isPlainObject: X,
@@ -232,8 +232,8 @@ const tn = (e) => {
232
232
  toFlatObject: jt,
233
233
  kindOf: ne,
234
234
  kindOfTest: x,
235
- endsWith: zt,
236
- toArray: Gt,
235
+ endsWith: Gt,
236
+ toArray: zt,
237
237
  forEachEntry: Kt,
238
238
  matchAll: vt,
239
239
  isHTMLForm: Vt,
@@ -247,7 +247,7 @@ const tn = (e) => {
247
247
  noop: Zt,
248
248
  toFiniteNumber: Qt,
249
249
  findKey: $e,
250
- global: q,
250
+ global: H,
251
251
  isContextDefined: Ke,
252
252
  isSpecCompliantForm: en,
253
253
  toJSONObject: tn,
@@ -367,7 +367,7 @@ function oe(e, t, n) {
367
367
  convertValue: u,
368
368
  isVisitable: de
369
369
  });
370
- function S(h, m) {
370
+ function g(h, m) {
371
371
  if (!a.isUndefined(h)) {
372
372
  if (d.indexOf(h) !== -1)
373
373
  throw Error("Circular reference detected in " + m.join("."));
@@ -378,13 +378,13 @@ function oe(e, t, n) {
378
378
  a.isString(w) ? w.trim() : w,
379
379
  m,
380
380
  R
381
- )) === !0 && S(y, m ? m.concat(w) : [w]);
381
+ )) === !0 && g(y, m ? m.concat(w) : [w]);
382
382
  }), d.pop();
383
383
  }
384
384
  }
385
385
  if (!a.isObject(e))
386
386
  throw new TypeError("data must be an object");
387
- return S(e), t;
387
+ return g(e), t;
388
388
  }
389
389
  function Ae(e) {
390
390
  const t = {
@@ -400,10 +400,10 @@ function Ae(e) {
400
400
  return t[r];
401
401
  });
402
402
  }
403
- function ge(e, t) {
403
+ function Se(e, t) {
404
404
  this._pairs = [], e && oe(e, this, t);
405
405
  }
406
- const Ye = ge.prototype;
406
+ const Ye = Se.prototype;
407
407
  Ye.append = function(t, n) {
408
408
  this._pairs.push([t, n]);
409
409
  };
@@ -427,7 +427,7 @@ function Ze(e, t, n) {
427
427
  });
428
428
  const s = n && n.serialize;
429
429
  let o;
430
- if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ge(t, n).toString(r), o) {
430
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Se(t, n).toString(r), o) {
431
431
  const i = e.indexOf("#");
432
432
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
433
433
  }
@@ -491,7 +491,7 @@ const Qe = {
491
491
  silentJSONParsing: !0,
492
492
  forcedJSONParsing: !0,
493
493
  clarifyTimeoutError: !1
494
- }, fn = typeof URLSearchParams < "u" ? URLSearchParams : ge, dn = typeof FormData < "u" ? FormData : null, pn = typeof Blob < "u" ? Blob : null, hn = {
494
+ }, fn = typeof URLSearchParams < "u" ? URLSearchParams : Se, dn = typeof FormData < "u" ? FormData : null, pn = typeof Blob < "u" ? Blob : null, hn = {
495
495
  isBrowser: !0,
496
496
  classes: {
497
497
  URLSearchParams: fn,
@@ -500,7 +500,7 @@ const Qe = {
500
500
  },
501
501
  protocols: ["http", "https", "file", "blob", "url", "data"]
502
502
  }, ye = typeof window < "u" && typeof document < "u", pe = typeof navigator == "object" && navigator || void 0, mn = ye && (!pe || ["ReactNative", "NativeScript", "NS"].indexOf(pe.product) < 0), En = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
503
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Rn = ye && window.location.href || "http://localhost", Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
503
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Rn = ye && window.location.href || "http://localhost", gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
504
504
  __proto__: null,
505
505
  hasBrowserEnv: ye,
506
506
  hasStandardBrowserEnv: mn,
@@ -508,10 +508,10 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Rn
508
508
  navigator: pe,
509
509
  origin: Rn
510
510
  }, Symbol.toStringTag, { value: "Module" })), O = {
511
- ...Sn,
511
+ ...gn,
512
512
  ...hn
513
513
  };
514
- function gn(e, t) {
514
+ function Sn(e, t) {
515
515
  return oe(e, new O.classes.URLSearchParams(), Object.assign({
516
516
  visitor: function(n, r, s, o) {
517
517
  return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
@@ -571,7 +571,7 @@ const J = {
571
571
  let c;
572
572
  if (o) {
573
573
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
574
- return gn(t, this.formSerializer).toString();
574
+ return Sn(t, this.formSerializer).toString();
575
575
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
576
576
  const f = this.env && this.env.FormData;
577
577
  return oe(
@@ -835,10 +835,10 @@ function ue(e, t) {
835
835
  function tt(e) {
836
836
  return !!(e && e.__CANCEL__);
837
837
  }
838
- function G(e, t, n) {
838
+ function $(e, t, n) {
839
839
  E.call(this, e ?? "canceled", E.ERR_CANCELED, t, n), this.name = "CanceledError";
840
840
  }
841
- a.inherits(G, E, {
841
+ a.inherits($, E, {
842
842
  __CANCEL__: !0
843
843
  });
844
844
  function nt(e, t, n) {
@@ -867,8 +867,8 @@ function Un(e, t) {
867
867
  R += n[d++], d = d % e;
868
868
  if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
869
869
  return;
870
- const S = l && u - l;
871
- return S ? Math.round(R * 1e3 / S) : void 0;
870
+ const g = l && u - l;
871
+ return g ? Math.round(R * 1e3 / g) : void 0;
872
872
  };
873
873
  }
874
874
  function Ln(e, t) {
@@ -950,7 +950,7 @@ function rt(e, t, n) {
950
950
  return e && (r || n == !1) ? Fn(e, t) : t;
951
951
  }
952
952
  const Ue = (e) => e instanceof C ? { ...e } : e;
953
- function M(e, t) {
953
+ function j(e, t) {
954
954
  t = t || {};
955
955
  const n = {};
956
956
  function r(u, l, d, R) {
@@ -1015,7 +1015,7 @@ function M(e, t) {
1015
1015
  }), n;
1016
1016
  }
1017
1017
  const st = (e) => {
1018
- const t = M({}, e);
1018
+ const t = j({}, e);
1019
1019
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
1020
1020
  t.headers = i = C.from(i), t.url = Ze(rt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
1021
1021
  "Authorization",
@@ -1040,9 +1040,9 @@ const st = (e) => {
1040
1040
  const s = st(e);
1041
1041
  let o = s.data;
1042
1042
  const i = C.from(s.headers).normalize();
1043
- let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, R, S, h;
1043
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, R, g, h;
1044
1044
  function m() {
1045
- S && S(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1045
+ g && g(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1046
1046
  }
1047
1047
  let p = new XMLHttpRequest();
1048
1048
  p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
@@ -1082,8 +1082,8 @@ const st = (e) => {
1082
1082
  )), p = null;
1083
1083
  }, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(k, _) {
1084
1084
  p.setRequestHeader(_, k);
1085
- }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([R, h] = Q(u, !0), p.addEventListener("progress", R)), f && p.upload && ([d, S] = Q(f), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (l = (b) => {
1086
- p && (r(!b || b.type ? new G(null, e, p) : b), p.abort(), p = null);
1085
+ }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([R, h] = Q(u, !0), p.addEventListener("progress", R)), f && p.upload && ([d, g] = Q(f), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (b) => {
1086
+ p && (r(!b || b.type ? new $(null, e, p) : b), p.abort(), p = null);
1087
1087
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1088
1088
  const w = In(s.url);
1089
1089
  if (w && O.protocols.indexOf(w) === -1) {
@@ -1100,7 +1100,7 @@ const st = (e) => {
1100
1100
  if (!s) {
1101
1101
  s = !0, c();
1102
1102
  const l = u instanceof Error ? u : this.reason;
1103
- r.abort(l instanceof E ? l : new G(l instanceof Error ? l.message : l));
1103
+ r.abort(l instanceof E ? l : new $(l instanceof Error ? l.message : l));
1104
1104
  }
1105
1105
  };
1106
1106
  let i = t && setTimeout(() => {
@@ -1172,13 +1172,13 @@ const st = (e) => {
1172
1172
  }, {
1173
1173
  highWaterMark: 2
1174
1174
  });
1175
- }, ie = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ot = ie && typeof ReadableStream == "function", zn = ie && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), it = (e, ...t) => {
1175
+ }, ie = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ot = ie && typeof ReadableStream == "function", Gn = ie && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), it = (e, ...t) => {
1176
1176
  try {
1177
1177
  return !!e(...t);
1178
1178
  } catch {
1179
1179
  return !1;
1180
1180
  }
1181
- }, Gn = ot && it(() => {
1181
+ }, zn = ot && it(() => {
1182
1182
  let e = !1;
1183
1183
  const t = new Request(O.origin, {
1184
1184
  body: new ReadableStream(),
@@ -1211,7 +1211,7 @@ const $n = async (e) => {
1211
1211
  if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1212
1212
  return e.byteLength;
1213
1213
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1214
- return (await zn(e)).byteLength;
1214
+ return (await Gn(e)).byteLength;
1215
1215
  }, Kn = async (e, t) => {
1216
1216
  const n = a.toFiniteNumber(e.getContentLength());
1217
1217
  return n ?? $n(t);
@@ -1231,13 +1231,13 @@ const $n = async (e) => {
1231
1231
  fetchOptions: R
1232
1232
  } = st(e);
1233
1233
  u = u ? (u + "").toLowerCase() : "text";
1234
- let S = qn([s, o && o.toAbortSignal()], i), h;
1235
- const m = S && S.unsubscribe && (() => {
1236
- S.unsubscribe();
1234
+ let g = qn([s, o && o.toAbortSignal()], i), h;
1235
+ const m = g && g.unsubscribe && (() => {
1236
+ g.unsubscribe();
1237
1237
  });
1238
1238
  let p;
1239
1239
  try {
1240
- if (f && Gn && n !== "get" && n !== "head" && (p = await Kn(l, r)) !== 0) {
1240
+ if (f && zn && n !== "get" && n !== "head" && (p = await Kn(l, r)) !== 0) {
1241
1241
  let _ = new Request(t, {
1242
1242
  method: "POST",
1243
1243
  body: r,
@@ -1255,7 +1255,7 @@ const $n = async (e) => {
1255
1255
  const y = "credentials" in Request.prototype;
1256
1256
  h = new Request(t, {
1257
1257
  ...R,
1258
- signal: S,
1258
+ signal: g,
1259
1259
  method: n.toUpperCase(),
1260
1260
  headers: l.normalize().toJSON(),
1261
1261
  body: r,
@@ -1347,7 +1347,7 @@ const Pe = (e) => `- ${e}`, Vn = (e) => a.isFunction(e) || e === null || e === !
1347
1347
  };
1348
1348
  function le(e) {
1349
1349
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1350
- throw new G(null, e);
1350
+ throw new $(null, e);
1351
1351
  }
1352
1352
  function ke(e) {
1353
1353
  return le(e), e.headers = C.from(e.headers), e.data = ue.call(
@@ -1416,7 +1416,7 @@ const Z = {
1416
1416
  assertOptions: Jn,
1417
1417
  validators: ae
1418
1418
  }, P = Z.validators;
1419
- let H = class {
1419
+ let M = class {
1420
1420
  constructor(t) {
1421
1421
  this.defaults = t || {}, this.interceptors = {
1422
1422
  request: new _e(),
@@ -1449,7 +1449,7 @@ let H = class {
1449
1449
  }
1450
1450
  }
1451
1451
  _request(t, n) {
1452
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = M(this.defaults, n);
1452
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = j(this.defaults, n);
1453
1453
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1454
1454
  r !== void 0 && Z.assertOptions(r, {
1455
1455
  silentJSONParsing: P.transitional(P.boolean),
@@ -1491,18 +1491,18 @@ let H = class {
1491
1491
  return l;
1492
1492
  }
1493
1493
  R = c.length;
1494
- let S = n;
1494
+ let g = n;
1495
1495
  for (d = 0; d < R; ) {
1496
1496
  const h = c[d++], m = c[d++];
1497
1497
  try {
1498
- S = h(S);
1498
+ g = h(g);
1499
1499
  } catch (p) {
1500
1500
  m.call(this, p);
1501
1501
  break;
1502
1502
  }
1503
1503
  }
1504
1504
  try {
1505
- l = ke.call(this, S);
1505
+ l = ke.call(this, g);
1506
1506
  } catch (h) {
1507
1507
  return Promise.reject(h);
1508
1508
  }
@@ -1511,14 +1511,14 @@ let H = class {
1511
1511
  return l;
1512
1512
  }
1513
1513
  getUri(t) {
1514
- t = M(this.defaults, t);
1514
+ t = j(this.defaults, t);
1515
1515
  const n = rt(t.baseURL, t.url, t.allowAbsoluteUrls);
1516
1516
  return Ze(n, t.params, t.paramsSerializer);
1517
1517
  }
1518
1518
  };
1519
1519
  a.forEach(["delete", "get", "head", "options"], function(t) {
1520
- H.prototype[t] = function(n, r) {
1521
- return this.request(M(r || {}, {
1520
+ M.prototype[t] = function(n, r) {
1521
+ return this.request(j(r || {}, {
1522
1522
  method: t,
1523
1523
  url: n,
1524
1524
  data: (r || {}).data
@@ -1528,7 +1528,7 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
1528
1528
  a.forEach(["post", "put", "patch"], function(t) {
1529
1529
  function n(r) {
1530
1530
  return function(o, i, c) {
1531
- return this.request(M(c || {}, {
1531
+ return this.request(j(c || {}, {
1532
1532
  method: t,
1533
1533
  headers: r ? {
1534
1534
  "Content-Type": "multipart/form-data"
@@ -1538,7 +1538,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1538
1538
  }));
1539
1539
  };
1540
1540
  }
1541
- H.prototype[t] = n(), H.prototype[t + "Form"] = n(!0);
1541
+ M.prototype[t] = n(), M.prototype[t + "Form"] = n(!0);
1542
1542
  });
1543
1543
  let Wn = class ut {
1544
1544
  constructor(t) {
@@ -1564,7 +1564,7 @@ let Wn = class ut {
1564
1564
  r.unsubscribe(o);
1565
1565
  }, i;
1566
1566
  }, t(function(o, i, c) {
1567
- r.reason || (r.reason = new G(o, i, c), n(r.reason));
1567
+ r.reason || (r.reason = new $(o, i, c), n(r.reason));
1568
1568
  });
1569
1569
  }
1570
1570
  /**
@@ -1690,31 +1690,31 @@ Object.entries(Ee).forEach(([e, t]) => {
1690
1690
  Ee[t] = e;
1691
1691
  });
1692
1692
  function lt(e) {
1693
- const t = new H(e), n = Me(H.prototype.request, t);
1694
- return a.extend(n, H.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1695
- return lt(M(e, s));
1693
+ const t = new M(e), n = Me(M.prototype.request, t);
1694
+ return a.extend(n, M.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1695
+ return lt(j(e, s));
1696
1696
  }, n;
1697
1697
  }
1698
- const g = lt(J);
1699
- g.Axios = H;
1700
- g.CanceledError = G;
1701
- g.CancelToken = Wn;
1702
- g.isCancel = tt;
1703
- g.VERSION = ct;
1704
- g.toFormData = oe;
1705
- g.AxiosError = E;
1706
- g.Cancel = g.CanceledError;
1707
- g.all = function(t) {
1698
+ const S = lt(J);
1699
+ S.Axios = M;
1700
+ S.CanceledError = $;
1701
+ S.CancelToken = Wn;
1702
+ S.isCancel = tt;
1703
+ S.VERSION = ct;
1704
+ S.toFormData = oe;
1705
+ S.AxiosError = E;
1706
+ S.Cancel = S.CanceledError;
1707
+ S.all = function(t) {
1708
1708
  return Promise.all(t);
1709
1709
  };
1710
- g.spread = Xn;
1711
- g.isAxiosError = Yn;
1712
- g.mergeConfig = M;
1713
- g.AxiosHeaders = C;
1714
- g.formToJSON = (e) => et(a.isHTMLForm(e) ? new FormData(e) : e);
1715
- g.getAdapter = at.getAdapter;
1716
- g.HttpStatusCode = Ee;
1717
- g.default = g;
1710
+ S.spread = Xn;
1711
+ S.isAxiosError = Yn;
1712
+ S.mergeConfig = j;
1713
+ S.AxiosHeaders = C;
1714
+ S.formToJSON = (e) => et(a.isHTMLForm(e) ? new FormData(e) : e);
1715
+ S.getAdapter = at.getAdapter;
1716
+ S.HttpStatusCode = Ee;
1717
+ S.default = S;
1718
1718
  const {
1719
1719
  Axios: Pr,
1720
1720
  AxiosError: Zn,
@@ -1726,13 +1726,13 @@ const {
1726
1726
  Cancel: Hr,
1727
1727
  isAxiosError: Mr,
1728
1728
  spread: jr,
1729
- toFormData: zr,
1730
- AxiosHeaders: Gr,
1729
+ toFormData: Gr,
1730
+ AxiosHeaders: zr,
1731
1731
  HttpStatusCode: F,
1732
1732
  formToJSON: $r,
1733
1733
  getAdapter: Kr,
1734
1734
  mergeConfig: vr
1735
- } = g, ft = (e) => (e.baseURL = He(), e.headers.Authorization = localStorage.getItem(U.TOKEN), e.headers["client-id"] = localStorage.getItem(U.CLIENT_ID), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Qn = (e) => (e.baseURL = mt(), e.headers.Authorization = localStorage.getItem(U.TOKEN), e.headers["client-id"] = localStorage.getItem(U.CLIENT_ID), e.headers["Api-Version"] = "1.0", e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), De = (e, t, n) => {
1735
+ } = S, ft = (e) => (e.baseURL = He(), e.headers.Authorization = localStorage.getItem(U.TOKEN), e.headers["client-id"] = localStorage.getItem(U.CLIENT_ID), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Qn = (e) => (e.baseURL = mt(), e.headers.Authorization = localStorage.getItem(U.TOKEN), e.headers["client-id"] = localStorage.getItem(U.CLIENT_ID), e.headers["Api-Version"] = "1.0", e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), De = (e, t, n) => {
1736
1736
  for (const r of e)
1737
1737
  t ? r.rej(t) : r.res(n);
1738
1738
  }, er = async (e) => new Promise((t, n) => {
@@ -1767,10 +1767,10 @@ const {
1767
1767
  throw p;
1768
1768
  });
1769
1769
  r = !0;
1770
- const R = localStorage.getItem(U.AUTH_FLOW) === Et.POST_MESSAGE ? qe.refreshEmbedToken : qe.refreshToken, { data: S, success: h, message: m } = await R(i);
1770
+ const R = localStorage.getItem(U.AUTH_FLOW) === Et.POST_MESSAGE ? qe.refreshEmbedToken : qe.refreshToken, { data: g, success: h, message: m } = await R(i);
1771
1771
  if (!h)
1772
1772
  throw (u = o == null ? void 0 : o.url) != null && u.includes(T.EXCHANGE_TOKEN) || Be("refresh_token", m), r = !1, De(e, t), t;
1773
- return (l = o.url) != null && l.includes(T.EXCHANGE_TOKEN) && "id_token" in S && (o.data = JSON.stringify({ idToken: S.id_token })), r = !1, o.headers && (o.headers.Authorization = `Bearer ${S.token}`), De(e, null, S.token), s(o);
1773
+ return (l = o.url) != null && l.includes(T.EXCHANGE_TOKEN) && "id_token" in g && (o.data = JSON.stringify({ idToken: g.id_token })), r = !1, o.headers && (o.headers.Authorization = `Bearer ${g.token}`), De(e, null, g.token), s(o);
1774
1774
  }
1775
1775
  if ([
1776
1776
  F.BadRequest,
@@ -1787,11 +1787,11 @@ const {
1787
1787
  Math.pow(10, o.__retries + 1) / 2
1788
1788
  // Exponential backoff 50ms, 500ms, 5000ms
1789
1789
  );
1790
- }, nr = g.create();
1790
+ }, nr = S.create();
1791
1791
  nr.interceptors.request.use((e) => (e.baseURL = He(), e.headers.Authorization = localStorage.getItem(U.TOKEN), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }));
1792
- const A = g.create();
1792
+ const A = S.create();
1793
1793
  A.interceptors.request.use((e) => (e = ft(e), e));
1794
- const rr = g.create();
1794
+ const rr = S.create();
1795
1795
  rr.interceptors.request.use((e) => (e = Qn(e), e));
1796
1796
  const sr = 3;
1797
1797
  let or = !1;
@@ -1820,8 +1820,8 @@ class ar {
1820
1820
  const { data: i } = await A.post(T.SIGN_IN, {
1821
1821
  email_address: t.email,
1822
1822
  password: t.password
1823
- }), c = await $.ensureQueryData({
1824
- queryKey: [j.USER_REGIONS],
1823
+ }), c = await G.ensureQueryData({
1824
+ queryKey: [q.USER_REGIONS],
1825
1825
  queryFn: this.getRegions
1826
1826
  }), f = L(i.data), u = (n = i.data) == null ? void 0 : n.accessToken;
1827
1827
  return localStorage.setItem(U.TOKEN, u), {
@@ -1862,8 +1862,8 @@ class ar {
1862
1862
  success_url: t.successUrl,
1863
1863
  cancel_url: t.cancelUrl,
1864
1864
  price_id: t.priceId
1865
- }), f = await $.ensureQueryData({
1866
- queryKey: [j.USER_REGIONS],
1865
+ }), f = await G.ensureQueryData({
1866
+ queryKey: [q.USER_REGIONS],
1867
1867
  queryFn: this.getRegions
1868
1868
  }), u = L(c.data), l = (n = c.data) == null ? void 0 : n.tokens.accessToken;
1869
1869
  return localStorage.setItem(U.TOKEN, l), {
@@ -1892,8 +1892,8 @@ class ar {
1892
1892
  const { data: f } = await A.post(T.GOOGLE_AUTH, {
1893
1893
  google_access_token: t,
1894
1894
  user_region: n
1895
- }), u = await $.ensureQueryData({
1896
- queryKey: [j.USER_REGIONS],
1895
+ }), u = await G.ensureQueryData({
1896
+ queryKey: [q.USER_REGIONS],
1897
1897
  queryFn: this.getRegions
1898
1898
  }), l = L(f.data), d = (r = f.data) == null ? void 0 : r.tokens.accessToken;
1899
1899
  return localStorage.setItem(U.TOKEN, d), {
@@ -1946,13 +1946,13 @@ class ar {
1946
1946
  try {
1947
1947
  const { data: c } = await A.post(
1948
1948
  T.EXCHANGE_TOKEN,
1949
- St({
1949
+ gt({
1950
1950
  idToken: t,
1951
1951
  refreshToken: n,
1952
1952
  exchangeTokenEndPoint: r
1953
1953
  })
1954
- ), f = await $.ensureQueryData({
1955
- queryKey: [j.USER_REGIONS],
1954
+ ), f = await G.ensureQueryData({
1955
+ queryKey: [q.USER_REGIONS],
1956
1956
  queryFn: this.getRegions
1957
1957
  }), u = L(c.data);
1958
1958
  return {
@@ -1981,8 +1981,8 @@ class ar {
1981
1981
  */
1982
1982
  I(this, "checkUser", async () => {
1983
1983
  try {
1984
- const { data: t } = await A.get(T.ME), n = await $.ensureQueryData({
1985
- queryKey: [j.USER_REGIONS],
1984
+ const { data: t } = await A.get(T.ME), n = await G.ensureQueryData({
1985
+ queryKey: [q.USER_REGIONS],
1986
1986
  queryFn: this.getRegions
1987
1987
  }), r = {
1988
1988
  ...t.data,
@@ -2083,8 +2083,19 @@ class ar {
2083
2083
  const { data: i } = await A.post(T.OTP, {
2084
2084
  email_address: t,
2085
2085
  otp: n
2086
+ }), c = await G.ensureQueryData({
2087
+ queryKey: [q.USER_REGIONS],
2088
+ queryFn: this.getRegions
2086
2089
  });
2087
- return { success: !0, data: L(i.data) };
2090
+ return { success: !0, data: L({
2091
+ ...i.data,
2092
+ user: {
2093
+ ...i.data.user,
2094
+ userRegion: c.find(
2095
+ (u) => u.code === i.data.user.user_region
2096
+ )
2097
+ }
2098
+ }) };
2088
2099
  } catch (i) {
2089
2100
  return console.error(i), {
2090
2101
  success: !1,
@@ -2094,7 +2105,7 @@ class ar {
2094
2105
  });
2095
2106
  }
2096
2107
  }
2097
- const qe = new ar(), Re = g.create();
2108
+ const qe = new ar(), Re = S.create();
2098
2109
  Re.interceptors.request.use((e) => (e = ft(e), e));
2099
2110
  const cr = 1;
2100
2111
  let ur = !1;
@@ -2102,7 +2113,7 @@ const lr = [];
2102
2113
  Re.interceptors.response.use(null, (e) => dt(lr, e, cr, ur, Re));
2103
2114
  export {
2104
2115
  qe as A,
2105
- j as E,
2116
+ q as E,
2106
2117
  Re as a,
2107
2118
  L as b,
2108
2119
  A as c,
@@ -2118,6 +2129,6 @@ export {
2118
2129
  Be as m,
2119
2130
  dt as n,
2120
2131
  De as p,
2121
- St as r,
2122
- gt as t
2132
+ gt as r,
2133
+ St as t
2123
2134
  };
@@ -13,7 +13,7 @@ import '../assets/_styles4.css';import '../assets/_styles6.css';import '../asset
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  import { awayzClient as y } from "../configs/awayzClient.js";
16
- import "../noRetryInstance-BmwUZZ2X.js";
16
+ import "../noRetryInstance-DNLgOg0E.js";
17
17
  /* empty css */
18
18
  /* empty css */
19
19
  import "../index-Cv-wvFlM.js";
@@ -1,6 +1,6 @@
1
- import "../../arrayExtensions-DlcBOj5a.js";
2
1
  import "react/jsx-runtime";
3
- import { A } from "../../noRetryInstance-BmwUZZ2X.js";
2
+ import "../../arrayExtensions-DlcBOj5a.js";
3
+ import { A } from "../../noRetryInstance-DNLgOg0E.js";
4
4
  import "../../keys-BcBfU51M.js";
5
5
  import "react";
6
6
  import "../../configs/awayzClient.js";
@@ -1,10 +1,10 @@
1
1
  var g = Object.defineProperty;
2
2
  var f = (r, t, a) => t in r ? g(r, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[t] = a;
3
3
  var i = (r, t, a) => f(r, typeof t != "symbol" ? t + "" : t, a);
4
+ import "react/jsx-runtime";
4
5
  import "../../arrayExtensions-DlcBOj5a.js";
5
6
  import { t as y } from "../../numberUtils-B4wd-SGR.js";
6
- import "react/jsx-runtime";
7
- import { c as l, b as u, g as p } from "../../noRetryInstance-BmwUZZ2X.js";
7
+ import { c as l, b as u, g as p } from "../../noRetryInstance-DNLgOg0E.js";
8
8
  import "react";
9
9
  import { EBookingEndpoints as c } from "../../configs/endpoints.js";
10
10
  const h = (r) => {
@@ -1,9 +1,9 @@
1
1
  import '../../assets/_styles4.css';import '../../assets/_styles6.css';import '../../assets/_styles5.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles3.css';var f = Object.defineProperty;
2
2
  var l = (c, r, t) => r in c ? f(c, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[r] = t;
3
3
  var o = (c, r, t) => l(c, typeof r != "symbol" ? r + "" : r, t);
4
- import "../../arrayExtensions-DlcBOj5a.js";
5
4
  import "react/jsx-runtime";
6
- import { A as i, E as u, c as y } from "../../noRetryInstance-BmwUZZ2X.js";
5
+ import "../../arrayExtensions-DlcBOj5a.js";
6
+ import { A as i, E as u, c as y } from "../../noRetryInstance-DNLgOg0E.js";
7
7
  import "react";
8
8
  import { ECurrencyEndpoints as p } from "../../configs/endpoints.js";
9
9
  import "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { EAuthEndpoints as a } from "../../configs/endpoints.js";
2
- import { c as o } from "../../noRetryInstance-BmwUZZ2X.js";
2
+ import { c as o } from "../../noRetryInstance-DNLgOg0E.js";
3
3
  class i {
4
4
  static async getFeatures() {
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { CurrencyService as a } from "./currency/CurrencyService.js";
2
- import { c as t, a as o, g as c, i as s } from "../noRetryInstance-BmwUZZ2X.js";
2
+ import { c as t, a as o, g as c, i as s } from "../noRetryInstance-DNLgOg0E.js";
3
3
  import { RewardsService as p } from "./rewards/RewardsService.js";
4
4
  import { EBookingType as m } from "./trips/TripService.types.js";
5
5
  export {
@@ -1,8 +1,8 @@
1
- import "../arrayExtensions-DlcBOj5a.js";
2
1
  import "react/jsx-runtime";
2
+ import "../arrayExtensions-DlcBOj5a.js";
3
3
  import "../keys-BcBfU51M.js";
4
4
  import "react";
5
- import { c as m, g as p, i as s } from "../noRetryInstance-BmwUZZ2X.js";
5
+ import { c as m, g as p, i as s } from "../noRetryInstance-DNLgOg0E.js";
6
6
  import "../configs/baseUrl.js";
7
7
  export {
8
8
  m as clientInstance,
@@ -1,8 +1,8 @@
1
- import "../arrayExtensions-DlcBOj5a.js";
2
1
  import "react/jsx-runtime";
2
+ import "../arrayExtensions-DlcBOj5a.js";
3
3
  import "../keys-BcBfU51M.js";
4
4
  import "react";
5
- import { m as j, k, l as q, h as w, j as A, n as D, p as E } from "../noRetryInstance-BmwUZZ2X.js";
5
+ import { m as j, k, l as q, h as w, j as A, n as D, p as E } from "../noRetryInstance-DNLgOg0E.js";
6
6
  import "../configs/baseUrl.js";
7
7
  import "../configs/endpoints.js";
8
8
  import "../configs/gatewayBaseUrl.js";
@@ -1,4 +1,4 @@
1
- import { a } from "../noRetryInstance-BmwUZZ2X.js";
1
+ import { a } from "../noRetryInstance-DNLgOg0E.js";
2
2
  export {
3
3
  a as clientNoRetryInstance
4
4
  };
@@ -2,7 +2,7 @@ var a = Object.defineProperty;
2
2
  var o = (s, e, r) => e in s ? a(s, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : s[e] = r;
3
3
  var n = (s, e, r) => o(s, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { EPreferencesEndpoints as u } from "../../configs/endpoints.js";
5
- import { c as i } from "../../noRetryInstance-BmwUZZ2X.js";
5
+ import { c as i } from "../../noRetryInstance-DNLgOg0E.js";
6
6
  class E {
7
7
  constructor() {
8
8
  n(this, "setCurrency", async (e) => {
@@ -1,9 +1,9 @@
1
1
  var s = Object.defineProperty;
2
2
  var o = (t, e, a) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
3
  var r = (t, e, a) => o(t, typeof e != "symbol" ? e + "" : e, a);
4
- import "../../arrayExtensions-DlcBOj5a.js";
5
4
  import "react/jsx-runtime";
6
- import { c as n, b as i } from "../../noRetryInstance-BmwUZZ2X.js";
5
+ import "../../arrayExtensions-DlcBOj5a.js";
6
+ import { c as n, b as i } from "../../noRetryInstance-DNLgOg0E.js";
7
7
  import "react";
8
8
  import { ERewardsEndpoints as c } from "../../configs/endpoints.js";
9
9
  class m {
@@ -1,7 +1,7 @@
1
- import "../../arrayExtensions-DlcBOj5a.js";
2
1
  import "react/jsx-runtime";
3
- import "../../noRetryInstance-BmwUZZ2X.js";
4
- import { T as a } from "../../TripsService-Y1EaI44r.js";
2
+ import "../../arrayExtensions-DlcBOj5a.js";
3
+ import "../../noRetryInstance-DNLgOg0E.js";
4
+ import { T as a } from "../../TripsService-B2m7Yy9W.js";
5
5
  import "react";
6
6
  import "../../configs/defaultAwayzConfig.js";
7
7
  import "../../configs/endpoints.js";
@@ -1,9 +1,9 @@
1
1
  var d = Object.defineProperty;
2
2
  var i = (o, a, t) => a in o ? d(o, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[a] = t;
3
3
  var r = (o, a, t) => i(o, typeof a != "symbol" ? a + "" : a, t);
4
- import "../../arrayExtensions-DlcBOj5a.js";
5
4
  import "react/jsx-runtime";
6
- import { c as e, b as c, g as A } from "../../noRetryInstance-BmwUZZ2X.js";
5
+ import "../../arrayExtensions-DlcBOj5a.js";
6
+ import { c as e, b as c, g as A } from "../../noRetryInstance-DNLgOg0E.js";
7
7
  import "react";
8
8
  import { EWalletEndpoints as s } from "../../configs/endpoints.js";
9
9
  class u {
@@ -1,6 +1,6 @@
1
- import "../arrayExtensions-DlcBOj5a.js";
2
1
  import "react/jsx-runtime";
3
- import { E as m } from "../noRetryInstance-BmwUZZ2X.js";
2
+ import "../arrayExtensions-DlcBOj5a.js";
3
+ import { E as m } from "../noRetryInstance-DNLgOg0E.js";
4
4
  import "react";
5
5
  import "react-i18next";
6
6
  import '../assets/_styles4.css';import '../assets/_styles6.css';import '../assets/_styles5.css';import '../assets/_styles2.css';import '../assets/_styles.css';import '../assets/_styles3.css';/* empty css */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-core",
3
- "version": "0.10.21",
3
+ "version": "0.10.22",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"