@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.
- package/dist/{TripsService-C6HJZJwL.js → TripsService-Q2jinDQJ.js} +1 -1
- package/dist/components/CashValue/CashValue.js +1 -1
- package/dist/components/CashValue/CashValue.stories.js +1 -1
- package/dist/components/ClientPointsValue/ClientPointsValue.js +1 -1
- package/dist/components/Wallet/Card/Card.stories.js +1 -1
- package/dist/context/AwayzContext.js +0 -1
- package/dist/hooks/useAwayzAuth/useAwayzAuth.js +100 -96
- package/dist/hooks/useBookingManagement/useBookingManagement.js +1 -1
- package/dist/hooks/useBookingManagement/useBookingManagement.test.js +1 -1
- package/dist/hooks/useFeatureFlags.js +1 -1
- package/dist/hooks/useSearchLimit.js +1 -1
- package/dist/hooks/useTripManagement/useTripManagement.js +2 -2
- package/dist/hooks/useTripManagement/useTripManagement.test.js +2 -2
- package/dist/hooks/useWallet/useWallet.js +1 -1
- package/dist/hooks/useWallet/useWallet.test.js +1 -1
- package/dist/lib/context/AwayzContext.d.ts +0 -1
- package/dist/lib/hooks/useAwayzAuth/useAwayzAuth.d.ts +0 -1
- package/dist/main.js +1 -1
- package/dist/{noRetryInstance-C0lN2R80.js → noRetryInstance-BUtUqKl-.js} +378 -382
- package/dist/providers/AwayzProvider.js +1 -1
- package/dist/services/account/AccountService.js +1 -1
- package/dist/services/bookings/BookingService.js +1 -1
- package/dist/services/currency/CurrencyService.js +1 -1
- package/dist/services/features/featureService.js +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/instance.js +1 -1
- package/dist/services/instanceConfig.js +1 -1
- package/dist/services/noRetryInstance.js +1 -1
- package/dist/services/preferences/PreferencesService.js +1 -1
- package/dist/services/rewards/RewardsService.js +1 -1
- package/dist/services/trips/TripsService.js +2 -2
- package/dist/services/wallet/WalletService.js +1 -1
- package/dist/utils/clientPoints.js +1 -1
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
11
|
+
import "../../../noRetryInstance-BUtUqKl-.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
import "../../../index-Cv-wvFlM.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as H } from "../../cashUtils-DyxlHnod.js";
|
|
2
2
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { e as
|
|
4
|
-
import { a } from "../../keys-C7jV6nZg.js";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { awayzClient as
|
|
7
|
-
import { PreferencesService as
|
|
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
|
|
20
|
-
const
|
|
21
|
-
var
|
|
22
|
-
let
|
|
23
|
-
typeof o == "string" ?
|
|
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: (
|
|
28
|
-
}) :
|
|
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:
|
|
31
|
+
details: { message: u, action: t, info: S }
|
|
32
32
|
},
|
|
33
33
|
"*"
|
|
34
34
|
);
|
|
35
|
-
},
|
|
36
|
-
const [o,
|
|
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
|
-
|
|
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 =
|
|
41
|
+
), l = p(
|
|
42
42
|
async (s, e) => {
|
|
43
|
-
if (t.authFlow ===
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
),
|
|
48
|
+
), R = async (s, e, r) => {
|
|
51
49
|
try {
|
|
52
|
-
const { success:
|
|
50
|
+
const { success: a, data: c, message: y } = await m.authenticateWithToken(
|
|
53
51
|
s,
|
|
54
52
|
e,
|
|
55
53
|
r
|
|
56
54
|
);
|
|
57
|
-
if (!
|
|
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(
|
|
66
|
-
const { data:
|
|
67
|
-
if (!
|
|
68
|
-
console.error({ reqLimitError:
|
|
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
|
-
|
|
72
|
-
(
|
|
69
|
+
d == null || d.forEach(
|
|
70
|
+
(O) => window.parent.postMessage(
|
|
73
71
|
{
|
|
74
72
|
type: "request_limit",
|
|
75
|
-
limit:
|
|
73
|
+
limit: O
|
|
76
74
|
},
|
|
77
75
|
"*"
|
|
78
76
|
)
|
|
79
77
|
);
|
|
80
|
-
} catch (
|
|
81
|
-
console.error("error handling message",
|
|
78
|
+
} catch (a) {
|
|
79
|
+
console.error("error handling message", a);
|
|
82
80
|
} finally {
|
|
83
|
-
|
|
81
|
+
u(!1);
|
|
84
82
|
}
|
|
85
|
-
},
|
|
83
|
+
}, P = async () => {
|
|
86
84
|
try {
|
|
87
|
-
const { success: s, data: e } = await
|
|
88
|
-
queryKey: [
|
|
89
|
-
queryFn:
|
|
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(
|
|
95
|
+
token: localStorage.getItem(n.TOKEN)
|
|
98
96
|
});
|
|
99
97
|
} catch (s) {
|
|
100
98
|
l(s);
|
|
101
99
|
} finally {
|
|
102
|
-
|
|
100
|
+
u(!1);
|
|
103
101
|
}
|
|
104
102
|
};
|
|
105
|
-
|
|
106
|
-
if (t.authFlow !==
|
|
107
|
-
localStorage.getItem(
|
|
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
|
|
111
|
-
|
|
112
|
-
const e = s.map((c) => c.currency),
|
|
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:
|
|
112
|
+
symbol: H(c) || c
|
|
115
113
|
}));
|
|
116
|
-
|
|
114
|
+
F(a);
|
|
117
115
|
};
|
|
118
|
-
return
|
|
116
|
+
return A(() => {
|
|
119
117
|
U();
|
|
120
|
-
}, []),
|
|
121
|
-
if (t.authFlow !==
|
|
122
|
-
const s = new URLSearchParams(window.location.search), e = s.get(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
|
126
|
+
var w;
|
|
128
127
|
if (e.data.type !== "auth") return;
|
|
129
|
-
const r = (
|
|
130
|
-
if (
|
|
131
|
-
const
|
|
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(
|
|
134
|
+
l(O);
|
|
136
135
|
return;
|
|
137
136
|
}
|
|
138
|
-
localStorage.setItem(
|
|
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:
|
|
152
|
-
isMfaPending: _,
|
|
150
|
+
isAuthenticated: S,
|
|
153
151
|
token: T,
|
|
154
|
-
user:
|
|
155
|
-
supportedRegions:
|
|
156
|
-
supportedCurrencies:
|
|
152
|
+
user: i,
|
|
153
|
+
supportedRegions: _,
|
|
154
|
+
supportedCurrencies: v,
|
|
157
155
|
signIn: async (s) => {
|
|
158
|
-
|
|
159
|
-
|
|
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
|
|
161
|
+
const e = await m.signUp(s);
|
|
165
162
|
if (!e.success)
|
|
166
163
|
l(e.message);
|
|
167
164
|
else {
|
|
168
|
-
const
|
|
169
|
-
localStorage.setItem(
|
|
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(
|
|
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
|
|
178
|
-
const r = await
|
|
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 = (
|
|
186
|
-
localStorage.setItem(
|
|
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
|
|
187
|
+
resendVerificationEmail: async (s) => (await m.resendVerificationEmail(s)).success,
|
|
191
188
|
setTokens: (s, e) => {
|
|
192
|
-
localStorage.setItem(
|
|
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
|
|
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 (
|
|
195
|
+
if (i) {
|
|
199
196
|
const r = {
|
|
200
|
-
...
|
|
197
|
+
...i,
|
|
201
198
|
preferences: {
|
|
202
|
-
...
|
|
203
|
-
currency: e.data.currency ||
|
|
199
|
+
...i.preferences,
|
|
200
|
+
currency: e.data.currency || i.preferences.currency
|
|
204
201
|
}
|
|
205
202
|
};
|
|
206
|
-
h(r),
|
|
207
|
-
queryKey: [
|
|
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
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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:
|
|
215
|
+
message: a
|
|
218
216
|
};
|
|
219
217
|
}
|
|
220
|
-
const e = await
|
|
221
|
-
|
|
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
|
-
|
|
227
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
11
|
+
import { c as l } from "../../noRetryInstance-BUtUqKl-.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
import "../../index-Cv-wvFlM.js";
|
|
@@ -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-
|
|
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";
|