@odynn/awayz-core 0.10.35 → 0.10.37

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 (34) hide show
  1. package/dist/{TripsService-C6HJZJwL.js → TripsService-Q2jinDQJ.js} +1 -1
  2. package/dist/components/CashValue/CashValue.js +1 -1
  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/context/AwayzContext.js +0 -1
  7. package/dist/hooks/useAwayzAuth/useAwayzAuth.js +100 -96
  8. package/dist/hooks/useBookingManagement/useBookingManagement.js +1 -1
  9. package/dist/hooks/useBookingManagement/useBookingManagement.test.js +1 -1
  10. package/dist/hooks/useFeatureFlags.js +1 -1
  11. package/dist/hooks/useSearchLimit.js +1 -1
  12. package/dist/hooks/useTripManagement/useTripManagement.js +2 -2
  13. package/dist/hooks/useTripManagement/useTripManagement.test.js +2 -2
  14. package/dist/hooks/useWallet/useWallet.js +1 -1
  15. package/dist/hooks/useWallet/useWallet.test.js +1 -1
  16. package/dist/lib/context/AwayzContext.d.ts +0 -1
  17. package/dist/lib/hooks/useAwayzAuth/useAwayzAuth.d.ts +0 -1
  18. package/dist/main.js +1 -1
  19. package/dist/{noRetryInstance-C0lN2R80.js → noRetryInstance-BUtUqKl-.js} +378 -382
  20. package/dist/providers/AwayzProvider.js +1 -1
  21. package/dist/services/account/AccountService.js +1 -1
  22. package/dist/services/bookings/BookingService.js +1 -1
  23. package/dist/services/currency/CurrencyService.js +1 -1
  24. package/dist/services/features/featureService.js +1 -1
  25. package/dist/services/index.js +1 -1
  26. package/dist/services/instance.js +1 -1
  27. package/dist/services/instanceConfig.js +1 -1
  28. package/dist/services/noRetryInstance.js +1 -1
  29. package/dist/services/preferences/PreferencesService.js +1 -1
  30. package/dist/services/rewards/RewardsService.js +1 -1
  31. package/dist/services/trips/TripsService.js +2 -2
  32. package/dist/services/wallet/WalletService.js +1 -1
  33. package/dist/utils/clientPoints.js +1 -1
  34. package/package.json +1 -1
@@ -3,7 +3,7 @@ var f = (s, e, a) => e in s ? v(s, e, { enumerable: !0, configurable: !0, writab
3
3
  var n = (s, e, a) => f(s, typeof e != "symbol" ? e + "" : e, a);
4
4
  import "react/jsx-runtime";
5
5
  import "./arrayExtensions-DlcBOj5a.js";
6
- import { c as i, f as u, b as d, r as D } from "./noRetryInstance-C0lN2R80.js";
6
+ import { c as i, f as u, b as d, r as D } from "./noRetryInstance-BUtUqKl-.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";
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
2
  import { useQuery as _ } from "@tanstack/react-query";
3
3
  import { g as u, a as S, b as f } from "../../cashUtils-DyxlHnod.js";
4
4
  import "../../arrayExtensions-DlcBOj5a.js";
5
- import { E as T } from "../../noRetryInstance-C0lN2R80.js";
5
+ import { E as T } from "../../noRetryInstance-BUtUqKl-.js";
6
6
  import { useMemo as I } from "react";
7
7
  import { a as v } 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-C0lN2R80.js";
12
+ import "../../noRetryInstance-BUtUqKl-.js";
13
13
  import "../../configs/awayzClient.js";
14
14
  import { EAuthFlow as a } from "../../types/EAuthFlow.js";
15
15
  /* empty css */
@@ -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-C0lN2R80.js";
5
+ import { E as f } from "../../noRetryInstance-BUtUqKl-.js";
6
6
  import { useMemo as C } from "react";
7
7
  import { useAwayzContext as l } from "../../hooks/useAwayzContext.js";
8
8
  import "react-i18next";
@@ -8,7 +8,7 @@ import '../../../assets/_styles6.css';import '../../../assets/_styles5.css';impo
8
8
  import "@tanstack/react-query";
9
9
  import "../../../configs/awayzClient.js";
10
10
  import { EAuthFlow as a } from "../../../types/EAuthFlow.js";
11
- import "../../../noRetryInstance-C0lN2R80.js";
11
+ import "../../../noRetryInstance-BUtUqKl-.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  import "../../../index-Cv-wvFlM.js";
@@ -2,7 +2,6 @@ import { createContext as e } from "react";
2
2
  const a = e({
3
3
  isAuthenticated: !1,
4
4
  isAuthenticating: !1,
5
- isMfaPending: !1,
6
5
  supportedRegions: [],
7
6
  supportedCurrencies: [],
8
7
  featureFlags: {},
@@ -1,10 +1,10 @@
1
- import { c as q } from "../../cashUtils-DyxlHnod.js";
1
+ import { c as H } from "../../cashUtils-DyxlHnod.js";
2
2
  import "../../arrayExtensions-DlcBOj5a.js";
3
- import { e as x, A as f, E as K } from "../../noRetryInstance-C0lN2R80.js";
4
- import { a } from "../../keys-C7jV6nZg.js";
5
- import { useState as m, useCallback as v, useEffect as k } from "react";
6
- import { awayzClient as C } from "../../configs/awayzClient.js";
7
- import { PreferencesService as G } from "../../services/preferences/PreferencesService.js";
3
+ import { e as M, A as m, E as C } from "../../noRetryInstance-BUtUqKl-.js";
4
+ import { a as n } from "../../keys-C7jV6nZg.js";
5
+ import { useState as f, useCallback as p, useEffect as A } from "react";
6
+ import { awayzClient as I } from "../../configs/awayzClient.js";
7
+ import { PreferencesService as q } from "../../services/preferences/PreferencesService.js";
8
8
  import "@tanstack/react-query";
9
9
  import "react/jsx-runtime";
10
10
  import "react-i18next";
@@ -16,45 +16,43 @@ import '../../assets/_styles4.css';import '../../assets/_styles6.css';import '..
16
16
  import "../../index-Cv-wvFlM.js";
17
17
  import "../../context/AwayzContext.js";
18
18
  /* empty css */
19
- import { EAuthFlow as R } from "../../types/EAuthFlow.js";
20
- const V = (t, o) => {
21
- var d, T;
22
- let i = "", w = o;
23
- typeof o == "string" ? i = o : o instanceof x ? (i = o.message, w = {
19
+ import { EAuthFlow as k } from "../../types/EAuthFlow.js";
20
+ const x = (t, o) => {
21
+ var g, T;
22
+ let u = "", S = o;
23
+ typeof o == "string" ? u = o : o instanceof M ? (u = o.message, S = {
24
24
  message: o.message,
25
25
  cause: o.cause,
26
26
  status: o.status,
27
- data: (d = o == null ? void 0 : o.response) == null ? void 0 : d.data
28
- }) : i = o.message, (T = window.parent) == null || T.postMessage(
27
+ data: (g = o == null ? void 0 : o.response) == null ? void 0 : g.data
28
+ }) : u = o.message, (T = window.parent) == null || T.postMessage(
29
29
  {
30
30
  type: "auth_error",
31
- details: { message: i, action: t, info: w }
31
+ details: { message: u, action: t, info: S }
32
32
  },
33
33
  "*"
34
34
  );
35
- }, ge = (t) => {
36
- const [o, i] = m(!0), [w, d] = m(!1), [T, A] = m(), [u, h] = m(), [_, O] = m(!1), [p, F] = m([]), [P, M] = m([]), E = v(
35
+ }, de = (t) => {
36
+ const [o, u] = f(!0), [S, g] = f(!1), [T, N] = f(), [i, h] = f(), [_, K] = f([]), [v, F] = f([]), E = p(
37
37
  async (s) => {
38
- s.token && localStorage.setItem(a.TOKEN, s.token), s.refreshToken && localStorage.setItem(a.REFRESH_TOKEN, s.refreshToken), t != null && t.onSuccess && (t == null || t.onSuccess(s)), t != null && t.onSuccessAsync && await (t == null ? void 0 : t.onSuccessAsync(s)), i(!1), O(!1), d(!0), A(s.token), h(s.user), C.invalidateQueries();
38
+ t != null && t.onSuccess && (t == null || t.onSuccess(s)), t != null && t.onSuccessAsync && await (t == null ? void 0 : t.onSuccessAsync(s)), u(!1), g(!0), N(s.token), h(s.user), I.invalidateQueries();
39
39
  },
40
40
  [t]
41
- ), l = v(
41
+ ), l = p(
42
42
  async (s, e) => {
43
- if (t.authFlow === R.POST_MESSAGE) {
44
- V(e ?? "exchange_token", s), i(!1);
45
- return;
46
- }
47
- t != null && t.onError && (t == null || t.onError(s)), t != null && t.onErrorAsync && await (t == null ? void 0 : t.onErrorAsync(s)), i(!1);
43
+ if (t.authFlow === k.POST_MESSAGE)
44
+ return x(e ?? "exchange_token", s);
45
+ t != null && t.onError && (t == null || t.onError(s)), t != null && t.onErrorAsync && await (t == null ? void 0 : t.onErrorAsync(s)), u(!1);
48
46
  },
49
47
  [t]
50
- ), I = async (s, e, r) => {
48
+ ), R = async (s, e, r) => {
51
49
  try {
52
- const { success: n, data: c, message: y } = await f.authenticateWithToken(
50
+ const { success: a, data: c, message: y } = await m.authenticateWithToken(
53
51
  s,
54
52
  e,
55
53
  r
56
54
  );
57
- if (!n) {
55
+ if (!a) {
58
56
  l(y);
59
57
  return;
60
58
  }
@@ -62,31 +60,31 @@ const V = (t, o) => {
62
60
  l("no awayz token returned after exchanging id token");
63
61
  return;
64
62
  }
65
- localStorage.setItem(a.TOKEN, c.token), await E(c);
66
- const { data: g, ...S } = await f.getRequestLimit();
67
- if (!S.success) {
68
- console.error({ reqLimitError: S });
63
+ localStorage.setItem(n.TOKEN, c.token), await E(c);
64
+ const { data: d, ...w } = await m.getRequestLimit();
65
+ if (!w.success) {
66
+ console.error({ reqLimitError: w });
69
67
  return;
70
68
  }
71
- g == null || g.forEach(
72
- (N) => window.parent.postMessage(
69
+ d == null || d.forEach(
70
+ (O) => window.parent.postMessage(
73
71
  {
74
72
  type: "request_limit",
75
- limit: N
73
+ limit: O
76
74
  },
77
75
  "*"
78
76
  )
79
77
  );
80
- } catch (n) {
81
- console.error("error handling message", n);
78
+ } catch (a) {
79
+ console.error("error handling message", a);
82
80
  } finally {
83
- i(!1);
81
+ u(!1);
84
82
  }
85
- }, H = async () => {
83
+ }, P = async () => {
86
84
  try {
87
- const { success: s, data: e } = await C.ensureQueryData({
88
- queryKey: [K.CHECK_USER],
89
- queryFn: f.checkUser
85
+ const { success: s, data: e } = await I.ensureQueryData({
86
+ queryKey: [C.CHECK_USER],
87
+ queryFn: m.checkUser
90
88
  });
91
89
  if (!s) {
92
90
  l(e);
@@ -94,48 +92,49 @@ const V = (t, o) => {
94
92
  }
95
93
  await E({
96
94
  user: e,
97
- token: localStorage.getItem(a.TOKEN)
95
+ token: localStorage.getItem(n.TOKEN)
98
96
  });
99
97
  } catch (s) {
100
98
  l(s);
101
99
  } finally {
102
- i(!1);
100
+ u(!1);
103
101
  }
104
102
  };
105
- k(() => {
106
- if (t.authFlow !== R.STANDARD) return;
107
- localStorage.getItem(a.TOKEN) ? H() : i(!1);
103
+ A(() => {
104
+ if (t.authFlow !== k.STANDARD) return;
105
+ localStorage.getItem(n.TOKEN) ? P() : u(!1);
108
106
  }, []);
109
107
  const U = async () => {
110
- const s = await f.getRegions();
111
- F(s);
112
- const e = s.map((c) => c.currency), n = Array.from(new Set(e)).map((c) => ({
108
+ const s = await m.getRegions();
109
+ K(s);
110
+ const e = s.map((c) => c.currency), a = Array.from(new Set(e)).map((c) => ({
113
111
  code: c,
114
- symbol: q(c) || c
112
+ symbol: H(c) || c
115
113
  }));
116
- M(n);
114
+ F(a);
117
115
  };
118
- return k(() => {
116
+ return A(() => {
119
117
  U();
120
- }, []), k(() => {
121
- if (t.authFlow !== R.QUERY) return;
122
- const s = new URLSearchParams(window.location.search), e = s.get(a.TOKEN), r = s.get(a.REFRESH_TOKEN), n = (t.isTestMode ? s.get(a.OVERRIDE_TOKEN_EXCHANGE_ENDPOINT) : void 0) || void 0;
123
- e && I(e, r ?? "", n);
124
- }, []), k(() => {
125
- if (t.authFlow !== R.POST_MESSAGE) return;
118
+ }, []), A(() => {
119
+ if (t.authFlow !== k.QUERY) return;
120
+ const s = new URLSearchParams(window.location.search), e = s.get(n.TOKEN), r = s.get(n.REFRESH_TOKEN);
121
+ let a = (t.isTestMode ? s.get(n.OVERRIDE_TOKEN_EXCHANGE_ENDPOINT) : void 0) || void 0;
122
+ e && R(e, r ?? "", a);
123
+ }, []), A(() => {
124
+ if (t.authFlow !== k.POST_MESSAGE) return;
126
125
  const s = async (e) => {
127
- var S;
126
+ var w;
128
127
  if (e.data.type !== "auth") return;
129
- const r = (S = e.data) == null ? void 0 : S.idToken, n = e.data.refreshToken, c = t.isTestMode ? e.data.overrideTokenExchangeEndpoint : void 0, y = t.isTestMode ? e.data.overridePACEndpoint : void 0, g = typeof y == "string" && y.trim() ? y.trim() : void 0;
130
- if (g ? localStorage.setItem(a.OVERRIDE_PAC_ENDPOINT, g) : localStorage.removeItem(a.OVERRIDE_PAC_ENDPOINT), !r) {
131
- const N = `received message ${JSON.stringify(
128
+ const r = (w = e.data) == null ? void 0 : w.idToken, a = e.data.refreshToken, c = t.isTestMode ? e.data.overrideTokenExchangeEndpoint : void 0, y = t.isTestMode ? e.data.overridePACEndpoint : void 0, d = typeof y == "string" && y.trim() ? y.trim() : void 0;
129
+ if (d ? localStorage.setItem(n.OVERRIDE_PAC_ENDPOINT, d) : localStorage.removeItem(n.OVERRIDE_PAC_ENDPOINT), !r) {
130
+ const O = `received message ${JSON.stringify(
132
131
  e.data
133
132
  )}
134
133
  no idToken in body`;
135
- l(N);
134
+ l(O);
136
135
  return;
137
136
  }
138
- localStorage.setItem(a.REFRESH_TOKEN, n), await I(r, n, c);
137
+ localStorage.setItem(n.REFRESH_TOKEN, a), await R(r, a, c);
139
138
  };
140
139
  return window.addEventListener("message", s), window.parent && window.parent.postMessage(
141
140
  {
@@ -148,81 +147,86 @@ const V = (t, o) => {
148
147
  };
149
148
  }, []), {
150
149
  isAuthenticating: o,
151
- isAuthenticated: w,
152
- isMfaPending: _,
150
+ isAuthenticated: S,
153
151
  token: T,
154
- user: u,
155
- supportedRegions: p,
156
- supportedCurrencies: P,
152
+ user: i,
153
+ supportedRegions: _,
154
+ supportedCurrencies: v,
157
155
  signIn: async (s) => {
158
- i(!0);
159
- const e = await f.login(s);
160
- return e.success ? (localStorage.removeItem(a.TOKEN), localStorage.removeItem(a.REFRESH_TOKEN), A(void 0), d(!1), h(e.data.user), O(!0), i(!1), { success: !0, message: "OTP sent to email" }) : (i(!1), l(e.message), { success: !1, message: e.message });
156
+ const e = await m.login(s);
157
+ return e.success ? (h(e.data.user), { success: !0, message: "OTP sent to email" }) : (l(e.message), { success: !1, message: e.message });
161
158
  },
162
159
  signUp: async (s) => {
163
160
  var r;
164
- const e = await f.signUp(s);
161
+ const e = await m.signUp(s);
165
162
  if (!e.success)
166
163
  l(e.message);
167
164
  else {
168
- const n = (r = e.data) == null ? void 0 : r.refreshToken;
169
- localStorage.setItem(a.REFRESH_TOKEN, n), await E(e.data);
165
+ const a = (r = e.data) == null ? void 0 : r.refreshToken;
166
+ localStorage.setItem(n.REFRESH_TOKEN, a), await E(e.data);
170
167
  }
171
168
  return e;
172
169
  },
173
170
  signOut: () => {
174
- localStorage.removeItem(a.TOKEN), localStorage.removeItem(a.REFRESH_TOKEN), d(!1), O(!1), A(void 0), h(void 0);
171
+ localStorage.removeItem(n.TOKEN), localStorage.removeItem(n.REFRESH_TOKEN), g(!1), N(void 0), h(void 0);
175
172
  },
176
173
  continueWithGoogle: async (s, e) => {
177
- var n;
178
- const r = await f.getOrCreateGoogleUser(
174
+ var a;
175
+ const r = await m.getOrCreateGoogleUser(
179
176
  s,
180
177
  e
181
178
  );
182
179
  if (!r.success)
183
180
  l(r.message);
184
181
  else {
185
- const c = (n = r.data) == null ? void 0 : n.refreshToken;
186
- localStorage.setItem(a.REFRESH_TOKEN, c), await E(r.data);
182
+ const c = (a = r.data) == null ? void 0 : a.refreshToken;
183
+ localStorage.setItem(n.REFRESH_TOKEN, c), await E(r.data);
187
184
  }
188
185
  return r;
189
186
  },
190
- resendVerificationEmail: async (s) => (await f.resendVerificationEmail(s)).success,
187
+ resendVerificationEmail: async (s) => (await m.resendVerificationEmail(s)).success,
191
188
  setTokens: (s, e) => {
192
- localStorage.setItem(a.TOKEN, s), localStorage.setItem(a.REFRESH_TOKEN, e), I(s, e);
189
+ localStorage.setItem(n.TOKEN, s), localStorage.setItem(n.REFRESH_TOKEN, e), R(s, e);
193
190
  },
194
191
  setPreferredCurrency: async (s) => {
195
- const e = await G.setCurrency(s);
192
+ const e = await q.setCurrency(s);
196
193
  if (!e.success || !e.data)
197
194
  return console.error("Failed to set preferred currency:", e), !1;
198
- if (u) {
195
+ if (i) {
199
196
  const r = {
200
- ...u,
197
+ ...i,
201
198
  preferences: {
202
- ...u.preferences,
203
- currency: e.data.currency || u.preferences.currency
199
+ ...i.preferences,
200
+ currency: e.data.currency || i.preferences.currency
204
201
  }
205
202
  };
206
- h(r), C.invalidateQueries({
207
- queryKey: [K.CHECK_USER]
203
+ h(r), I.invalidateQueries({
204
+ queryKey: [C.CHECK_USER]
208
205
  });
209
206
  }
210
207
  return !0;
211
208
  },
212
209
  verify2FA: async (s) => {
213
- if (!(u != null && u.emailAddress)) {
214
- const r = "No email address associated with user for 2FA verification";
215
- return l(r), {
210
+ var r;
211
+ if (!(i != null && i.emailAddress)) {
212
+ const a = "No email address associated with user for 2FA verification";
213
+ return l(a), {
216
214
  success: !1,
217
- message: r
215
+ message: a
218
216
  };
219
217
  }
220
- const e = await f.validate2FA(u == null ? void 0 : u.emailAddress, s);
221
- return e.success ? await E(e.data) : l(e.message), e;
218
+ const e = await m.validate2FA(i == null ? void 0 : i.emailAddress, s);
219
+ if (!e.success)
220
+ l(e.message);
221
+ else {
222
+ const a = (r = e.data) == null ? void 0 : r.refreshToken;
223
+ localStorage.setItem(n.REFRESH_TOKEN, a), await E(e.data);
224
+ }
225
+ return e;
222
226
  }
223
227
  };
224
228
  };
225
229
  export {
226
- V as authFailurePostMessage,
227
- ge as useAwayzAuth
230
+ x as authFailurePostMessage,
231
+ de as useAwayzAuth
228
232
  };
@@ -1,7 +1,7 @@
1
1
  import { useQuery as S, useMutation as E } from "@tanstack/react-query";
2
2
  import "react/jsx-runtime";
3
3
  import "../../arrayExtensions-DlcBOj5a.js";
4
- import { E as a } from "../../noRetryInstance-C0lN2R80.js";
4
+ import { E as a } from "../../noRetryInstance-BUtUqKl-.js";
5
5
  import { useState as j } 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 */
@@ -3,7 +3,7 @@ import "react/jsx-runtime";
3
3
  import "../../arrayExtensions-DlcBOj5a.js";
4
4
  import "react";
5
5
  import "../../configs/awayzClient.js";
6
- import { c } from "../../noRetryInstance-C0lN2R80.js";
6
+ import { c } from "../../noRetryInstance-BUtUqKl-.js";
7
7
  import "react-i18next";
8
8
  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 */
9
9
  /* empty css */
@@ -1,7 +1,7 @@
1
1
  import { useQuery as U } from "@tanstack/react-query";
2
2
  import "react/jsx-runtime";
3
3
  import "../arrayExtensions-DlcBOj5a.js";
4
- import { E as N, t as F } from "../noRetryInstance-C0lN2R80.js";
4
+ import { E as N, t as F } from "../noRetryInstance-BUtUqKl-.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
2
  import "react/jsx-runtime";
3
3
  import "../arrayExtensions-DlcBOj5a.js";
4
- import { E as m, A as c, b as f } from "../noRetryInstance-C0lN2R80.js";
4
+ import { E as m, A as c, b as f } from "../noRetryInstance-BUtUqKl-.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
2
  import "react/jsx-runtime";
3
3
  import { h as m } from "../../arrayExtensions-DlcBOj5a.js";
4
- import { E as e } from "../../noRetryInstance-C0lN2R80.js";
4
+ import { E as e } from "../../noRetryInstance-BUtUqKl-.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-C6HJZJwL.js";
16
+ import { T as n } from "../../TripsService-Q2jinDQJ.js";
17
17
  const b = ({
18
18
  tripId: t,
19
19
  tripDetails: s
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import { h as p } from "../../arrayExtensions-DlcBOj5a.js";
3
- import { D as f } from "../../TripsService-C6HJZJwL.js";
3
+ import { D as f } from "../../TripsService-Q2jinDQJ.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-C0lN2R80.js";
13
+ import { c as d } from "../../noRetryInstance-BUtUqKl-.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 s, useMutation as i } from "@tanstack/react-query";
2
2
  import "react/jsx-runtime";
3
3
  import "../../arrayExtensions-DlcBOj5a.js";
4
- import { E as a, d as l } from "../../noRetryInstance-C0lN2R80.js";
4
+ import { E as a, d as l } from "../../noRetryInstance-BUtUqKl-.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-C0lN2R80.js";
11
+ import { c as l } from "../../noRetryInstance-BUtUqKl-.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  import "../../index-Cv-wvFlM.js";
@@ -9,7 +9,6 @@ export interface IAwayzContext {
9
9
  user?: IUser;
10
10
  isAuthenticated: boolean;
11
11
  isAuthenticating: boolean;
12
- isMfaPending: boolean;
13
12
  featureFlags: FeatureFlags;
14
13
  featureFlagsLoaded: boolean;
15
14
  supportedRegions: IRegion[];
@@ -10,7 +10,6 @@ export declare const authFailurePostMessage: (action: ETokenType, error: any) =>
10
10
  export declare const useAwayzAuth: (options: TEmbeddedAuthOptions) => {
11
11
  isAuthenticating: boolean;
12
12
  isAuthenticated: boolean;
13
- isMfaPending: boolean;
14
13
  token: string | undefined;
15
14
  user: IUser | undefined;
16
15
  supportedRegions: IRegion[];
package/dist/main.js CHANGED
@@ -13,7 +13,7 @@ import { ETripStatus as d, useTripManagement as v } from "./hooks/useTripManagem
13
13
  import { useWallet as k } 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
- import { A as R, c as V, a as H, g as L, i as N } from "./noRetryInstance-C0lN2R80.js";
16
+ import { A as R, c as V, a as H, g as L, i as N } from "./noRetryInstance-BUtUqKl-.js";
17
17
  import { ESource as U } from "./services/account/AccountServices.types.js";
18
18
  import { CurrencyService as b } from "./services/currency/CurrencyService.js";
19
19
  import { RewardsService as q } from "./services/rewards/RewardsService.js";