@odynn/awayz-core 0.6.48 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Combination-Bx3lWLOq.js → Combination-CrPZjD5u.js} +382 -382
- package/dist/{TripsService-DywrB9bi.js → TripsService-ByimRRRe.js} +1 -1
- package/dist/assets/_styles.css +1 -1
- package/dist/assets/_styles3.css +1 -1
- package/dist/components/Bookings/FlightBooking/FlightBooking.js +1 -1
- package/dist/components/Bookings/HotelBooking/HotelBooking.js +2 -2
- package/dist/components/CashValue/CashValue.js +6 -6
- package/dist/components/CashValue/CashValue.stories.js +7 -7
- package/dist/components/ClientPointsValue/ClientPointsValue.js +50 -0
- package/dist/components/Menu/Menu.js +2 -2
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Wallet/Card/Card.js +2 -2
- package/dist/components/Wallet/Card/Card.stories.js +6 -6
- package/dist/components/index.js +13 -11
- package/dist/hooks/useAwayzAuth/useAwayzAuth.js +4 -4
- package/dist/hooks/useBookingManagement/useBookingManagement.js +5 -5
- package/dist/hooks/useBookingManagement/useBookingManagement.test.js +6 -6
- package/dist/hooks/useFeatureFlags.js +35 -31
- package/dist/hooks/useSearchLimit.js +1 -1
- package/dist/hooks/useTripManagement/useTripManagement.js +6 -6
- package/dist/hooks/useTripManagement/useTripManagement.test.js +7 -7
- package/dist/hooks/useWallet/useWallet.js +5 -5
- package/dist/hooks/useWallet/useWallet.test.js +6 -6
- package/dist/{index-Bt2pq2GP.js → index-C8p5kinH.js} +2 -2
- package/dist/lib/components/ClientPointsValue/ClientPointsValue.d.ts +6 -0
- package/dist/lib/components/index.d.ts +4 -3
- package/dist/lib/hooks/useFeatureFlags.d.ts +8 -3
- package/dist/lib/main.d.ts +1 -0
- package/dist/lib/services/instanceConfig.d.ts +2 -2
- package/dist/main.js +44 -39
- package/dist/{noRetryInstance-Y6wcm2ZM.js → noRetryInstance-oiHCni_Z.js} +4 -4
- package/dist/providers/AwayzProvider.js +8 -8
- package/dist/services/account/AccountService.js +1 -1
- package/dist/services/bookings/BookingService.js +1 -1
- package/dist/services/currency/CurrencyService.js +6 -6
- 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 +5 -5
- 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/package.json +1 -1
|
@@ -2,7 +2,7 @@ var m = Object.defineProperty;
|
|
|
2
2
|
var g = (r, e, s) => e in r ? m(r, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[e] = s;
|
|
3
3
|
var t = (r, e, s) => g(r, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import "./arrayExtensions-DlcBOj5a.js";
|
|
5
|
-
import { c as n, f as p, b as c, r as T } from "./noRetryInstance-
|
|
5
|
+
import { c as n, f as p, b as c, r as T } from "./noRetryInstance-oiHCni_Z.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { EMyTripsEndpoints as i } from "./configs/endpoints.js";
|
|
8
8
|
import { EBookingType as l } from "./services/trips/TripService.types.js";
|
package/dist/assets/_styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.card{
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.selected-hotel-card{width:380px;height:auto;border:1px solid var(--border, #e7eef3);border-radius:.5rem;display:flex;flex-direction:column;background-color:var(--foreground, #fff);overflow:hidden;transition:all .2s ease-in-out;animation:fade-in .3s ease-in-out both}.selected-hotel-card:nth-child(1){animation-delay:.1s}.selected-hotel-card:nth-child(2){animation-delay:.2s}.selected-hotel-card:nth-child(3){animation-delay:.3s}.selected-hotel-card:nth-child(4){animation-delay:.4s}.selected-hotel-card:nth-child(5){animation-delay:.5s}.selected-hotel-card:nth-child(6){animation-delay:.6s}.selected-hotel-card:nth-child(7){animation-delay:.7s}.selected-hotel-card:nth-child(8){animation-delay:.8s}.selected-hotel-card:nth-child(9){animation-delay:.9s}.selected-hotel-card:nth-child(10){animation-delay:1s}.selected-hotel-card .cancelled-notice{background-color:rgba(var(--warning, #ff7f2f),.1);font-weight:600;padding:.25rem;border-radius:.5rem;border:2px solid var(--warning, #ff7f2f);color:var(--warning, #ff7f2f);font-size:.8rem;text-align:center;width:fit-content}.selected-hotel-card:hover{box-shadow:0 0 20px #02426d1a;cursor:pointer}.selected-hotel-card:hover .hotel-image{background-size:105%}.selected-hotel-card .hotel-image{width:100%;height:200px;padding:.5rem;background-repeat:no-repeat;background-position:center;background-size:100%;display:flex;justify-content:space-between;align-items:flex-start;transition:all .2s ease-in-out}.selected-hotel-card .hotel-image .hotel-chain{display:flex;justify-content:center;gap:.5rem;border:2px solid #fff;padding:.25rem;border-radius:.25rem;background-color:#fffc;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.selected-hotel-card .hotel-image .context-button{display:flex;right:0;color:var(--text-light, rgba(37, 46, 52, .2509803922));background-color:var(--foreground, #fff);padding:.5rem;border-radius:.25rem;transition:all .3s ease-in-out;cursor:pointer}.selected-hotel-card .hotel-image .context-button:hover{background-color:var(--border, #e7eef3)}.selected-hotel-card .bottom-content{display:flex;flex-direction:column;padding:1rem;flex:1;gap:.5rem}.selected-hotel-card .bottom-content .hotel-title{display:flex;flex-direction:column;gap:.25rem;flex:1}.selected-hotel-card .bottom-content .hotel-title>p{font-size:1rem;font-weight:600}.selected-hotel-card .bottom-content .hotel-title .hotel-booking-info{display:flex;flex-direction:column;gap:.5rem}.selected-hotel-card .bottom-content .hotel-title .hotel-booking-info>div{display:flex;align-items:center;gap:.5rem;font-size:.8rem;opacity:.6}.selected-hotel-card .bottom-content span{border-left:1px solid var(--border, #e7eef3);height:100%}.selected-hotel-card .bottom-content .hotel-details{display:flex;justify-content:space-between;font-size:.8rem}.selected-hotel-card .bottom-content .hotel-details>div{display:flex;gap:1rem;align-items:center}.selected-hotel-card .bottom-content .hotel-details>div>hr{height:1rem;border:1px solid var(--border, #e7eef3)}.selected-hotel-card .bottom-content .hotel-details .id-and-icon{font-weight:700}.selected-hotel-card .bottom-content .hotel-details .id-and-icon .copy-icon{font-size:larger}
|
package/dist/assets/_styles3.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.card{background-color:var(--dark, #14181f);padding:1rem;border-radius:1rem;display:flex;justify-content:space-between;height:150px;aspect-ratio:1.8;position:relative;overflow:hidden}.card p{color:var(--light, #f9fdff);font-weight:600;z-index:1}.card p.light{color:var(--dark, #14181f)}.card .remove-button{cursor:pointer;z-index:5;display:none;border-radius:.5rem;position:absolute;top:0;right:0;transform:translate(-50%) translateY(50%);height:1.75rem;width:1.75rem;padding:0;background-color:var(--light, #f9fdff);justify-content:center;align-items:center}.card .remove-button span{position:fixed;color:var(--dark, #14181f);display:flex;justify-content:center;align-items:center}.card:hover .remove-button{display:flex}.card .logo{height:50px;max-width:100px}.card>.logo-watermark-container{position:absolute;left:0;top:0;bottom:0;right:0;overflow:hidden}.card>.logo-watermark-container>.logo-watermark{position:absolute;right:-5%;height:100%;max-width:200px;transform:scale(2);opacity:.1}
|
|
@@ -4,7 +4,7 @@ import { E as o } from "../../../DateFormats-DZD30Nea.js";
|
|
|
4
4
|
import { E as r } from "../../../_styles.flight-booking-DEUJthTJ.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { useTranslation as E } from "react-i18next";
|
|
7
|
-
import {
|
|
7
|
+
import { F as D } from "../../../index-C8p5kinH.js";
|
|
8
8
|
import M from "../../Menu/Menu.js";
|
|
9
9
|
const U = ({
|
|
10
10
|
airlines: s,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { G as N, c as u } from "../../../index-
|
|
2
|
+
import { G as N, c as u } from "../../../index-C8p5kinH.js";
|
|
3
3
|
import { h as $ } from "../../../arrayExtensions-DlcBOj5a.js";
|
|
4
4
|
import { E as f } from "../../../DateFormats-DZD30Nea.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import '../../../assets/
|
|
6
|
+
import '../../../assets/_styles.css';/* empty css */
|
|
7
7
|
import x from "../../Menu/Menu.js";
|
|
8
8
|
const n = (r, o, l = o + "s") => r === 1 ? o : l;
|
|
9
9
|
function C(r) {
|
|
@@ -2,17 +2,17 @@ import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
|
2
2
|
import { useQuery as E } from "@tanstack/react-query";
|
|
3
3
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
4
4
|
import { g as R, a as N, b as u } from "../../cashUtils-sBirmFfL.js";
|
|
5
|
-
import { E as _ } from "../../noRetryInstance-
|
|
5
|
+
import { E as _ } from "../../noRetryInstance-oiHCni_Z.js";
|
|
6
6
|
import { useMemo as S } from "react";
|
|
7
|
-
import {
|
|
8
|
-
import { EInvalidAmountDisplayOption as o, EToolTipPosition as T } from "./CashValueTypes.js";
|
|
9
|
-
import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
7
|
+
import { a as f } from "../../index-C8p5kinH.js";
|
|
10
8
|
import "react-i18next";
|
|
11
|
-
|
|
9
|
+
import '../../assets/_styles3.css';import '../../assets/_styles.css';import '../../assets/_styles2.css';/* empty css */
|
|
12
10
|
import "../../_styles.flight-booking-DEUJthTJ.js";
|
|
13
11
|
/* empty css */
|
|
14
|
-
import "
|
|
12
|
+
import { EInvalidAmountDisplayOption as o, EToolTipPosition as T } from "./CashValueTypes.js";
|
|
15
13
|
import { useAwayzContext as D } from "../../hooks/useAwayzContext.js";
|
|
14
|
+
import "../../configs/awayzClient.js";
|
|
15
|
+
/* empty css */
|
|
16
16
|
import "../../context/AwayzContext.js";
|
|
17
17
|
import { CurrencyService as I } from "../../services/currency/CurrencyService.js";
|
|
18
18
|
import { Tooltip as M } from "../Tooltip/Tooltip.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { CashValue as n } from "./CashValue.js";
|
|
3
|
-
import { EToolTipPosition as t, EInvalidAmountDisplayOption as o } from "./CashValueTypes.js";
|
|
4
|
-
import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
5
2
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
6
3
|
import "react";
|
|
7
4
|
import "react-i18next";
|
|
8
|
-
|
|
5
|
+
import '../../assets/_styles3.css';import '../../assets/_styles.css';import '../../assets/_styles2.css';/* empty css */
|
|
9
6
|
import "../../_styles.flight-booking-DEUJthTJ.js";
|
|
10
7
|
/* empty css */
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
8
|
+
import { CashValue as n } from "./CashValue.js";
|
|
9
|
+
import { EToolTipPosition as t, EInvalidAmountDisplayOption as o } from "./CashValueTypes.js";
|
|
13
10
|
import "@tanstack/react-query";
|
|
14
|
-
import "../../
|
|
11
|
+
import "../../context/AwayzContext.js";
|
|
12
|
+
import "../../noRetryInstance-oiHCni_Z.js";
|
|
13
|
+
import "../../configs/awayzClient.js";
|
|
14
|
+
/* empty css */
|
|
15
15
|
import { AwayzProvider as a } from "../../providers/AwayzProvider.js";
|
|
16
16
|
import { EAuthFlow as i } from "../../types/EAuthFlow.js";
|
|
17
17
|
const f = {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery as m } from "@tanstack/react-query";
|
|
3
|
+
import "../../arrayExtensions-DlcBOj5a.js";
|
|
4
|
+
import { E as u } from "../../noRetryInstance-oiHCni_Z.js";
|
|
5
|
+
import { useMemo as f } from "react";
|
|
6
|
+
import { useAwayzContext as y } from "../../hooks/useAwayzContext.js";
|
|
7
|
+
import "react-i18next";
|
|
8
|
+
import '../../assets/_styles3.css';import '../../assets/_styles4.css';import '../../assets/_styles.css';import '../../assets/_styles2.css';/* empty css */
|
|
9
|
+
import "../../_styles.flight-booking-DEUJthTJ.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import { CurrencyService as l } from "../../services/currency/CurrencyService.js";
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
import "../../configs/awayzClient.js";
|
|
15
|
+
import "../../context/AwayzContext.js";
|
|
16
|
+
import { useFeatureFlags as C } from "../../hooks/useFeatureFlags.js";
|
|
17
|
+
import { useWallet as d } from "../../hooks/useWallet/useWallet.js";
|
|
18
|
+
function g(t) {
|
|
19
|
+
if (!t || isNaN(t) || t < 0) return "N/A";
|
|
20
|
+
let e = t == null ? void 0 : t.toString().split(".")[0];
|
|
21
|
+
return e == null ? void 0 : e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
22
|
+
}
|
|
23
|
+
const v = (t, e) => {
|
|
24
|
+
var o;
|
|
25
|
+
return ((o = e == null ? void 0 : e.preferences) == null ? void 0 : o.currency) ?? (e == null ? void 0 : e.userRegion.currency) ?? t;
|
|
26
|
+
}, O = ({
|
|
27
|
+
cashAmount: t,
|
|
28
|
+
currency: e
|
|
29
|
+
}) => {
|
|
30
|
+
const { pointsAsCash: r } = d(), { user: o } = y(), { featureFlags: i } = C(), n = f(
|
|
31
|
+
() => v(i.defaultCurrencyFeature, o),
|
|
32
|
+
[o]
|
|
33
|
+
), { data: c } = m({
|
|
34
|
+
queryKey: [u.CONVERT_CURRENCY, e, r.currency],
|
|
35
|
+
queryFn: () => l.convertCurrency({
|
|
36
|
+
baseCurrency: e,
|
|
37
|
+
targetCurrency: r.currency
|
|
38
|
+
}),
|
|
39
|
+
staleTime: 1e3 * 60 * 60,
|
|
40
|
+
// 1 hour
|
|
41
|
+
enabled: !!e && !!n && e !== n && r.currency !== e && !!r.currency
|
|
42
|
+
}), s = t * (c ?? 1), a = Math.floor(s / r.valuePerPoint);
|
|
43
|
+
return /* @__PURE__ */ p("p", { className: "client-points-amount", children: [
|
|
44
|
+
g(a),
|
|
45
|
+
" pts."
|
|
46
|
+
] });
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
O as ClientPointsValue
|
|
50
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as u, jsxs as Me } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import Y from "react";
|
|
4
|
-
import { c as ce, a as ue, u as D, b as bn, d as y, e as X, f as Cn, g as yn, o as En, s as Mn, h as wn, i as Rn, j as Sn, k as Pn, l as _n, m as In, n as Se, p as Q, q as Ne, P as Ce, r as xn, R as An, F as On } from "../../Combination-
|
|
4
|
+
import { c as ce, a as ue, u as D, b as bn, d as y, e as X, f as Cn, g as yn, o as En, s as Mn, h as wn, i as Rn, j as Sn, k as Pn, l as _n, m as In, n as Se, p as Q, q as Ne, P as Ce, r as xn, R as An, F as On } from "../../Combination-CrPZjD5u.js";
|
|
5
5
|
import { r as Nn, R as Tn } from "../../index-Cv-wvFlM.js";
|
|
6
6
|
import '../../assets/_styles2.css';/* empty css */
|
|
7
|
-
import { d as Dn, e as Fn } from "../../index-
|
|
7
|
+
import { d as Dn, e as Fn } from "../../index-C8p5kinH.js";
|
|
8
8
|
// @__NO_SIDE_EFFECTS__
|
|
9
9
|
function Ze(e) {
|
|
10
10
|
const t = /* @__PURE__ */ Ln(e), n = a.forwardRef((r, o) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as p, Fragment as nr, jsxs as te } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { useState as or, useEffect as sr } from "react";
|
|
4
|
-
import { u as A, b as Be, d as M, e as V, a as ie, f as Ue, g as je, n as W, o as Ve, s as Ye, h as Xe, i as Ge, j as ze, k as Ze, l as qe, m as Ke, p as Je, q as Qe, P as et, c as ir, r as ar, R as cr, F as lr } from "../../Combination-
|
|
4
|
+
import { u as A, b as Be, d as M, e as V, a as ie, f as Ue, g as je, n as W, o as Ve, s as Ye, h as Xe, i as Ge, j as ze, k as Ze, l as qe, m as Ke, p as Je, q as Qe, P as et, c as ir, r as ar, R as cr, F as lr } from "../../Combination-CrPZjD5u.js";
|
|
5
5
|
import { r as tt, R as rt } from "../../index-Cv-wvFlM.js";
|
|
6
6
|
import '../../assets/_styles4.css';/* empty css */
|
|
7
7
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import '../../../assets/
|
|
3
|
-
import { b as l } from "../../../index-
|
|
2
|
+
import '../../../assets/_styles3.css';/* empty css */
|
|
3
|
+
import { b as l } from "../../../index-C8p5kinH.js";
|
|
4
4
|
import "../../../arrayExtensions-DlcBOj5a.js";
|
|
5
5
|
import "react";
|
|
6
6
|
const t = (r) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "@tanstack/react-query";
|
|
3
2
|
import "../../../arrayExtensions-DlcBOj5a.js";
|
|
4
3
|
import "react";
|
|
5
|
-
import "../../../configs/awayzClient.js";
|
|
6
|
-
import "../../../noRetryInstance-Y6wcm2ZM.js";
|
|
7
|
-
import '../../../assets/_styles3.css';import '../../../assets/_styles2.css';import '../../../assets/_styles4.css';/* empty css */
|
|
8
|
-
import { Card as a } from "./Card.js";
|
|
9
4
|
import "react-i18next";
|
|
10
|
-
|
|
5
|
+
import '../../../assets/_styles4.css';import '../../../assets/_styles.css';import '../../../assets/_styles2.css';/* empty css */
|
|
11
6
|
import "../../../_styles.flight-booking-DEUJthTJ.js";
|
|
12
7
|
/* empty css */
|
|
8
|
+
import "@tanstack/react-query";
|
|
9
|
+
import "../../../configs/awayzClient.js";
|
|
10
|
+
import "../../../noRetryInstance-oiHCni_Z.js";
|
|
11
|
+
/* empty css */
|
|
13
12
|
import "../../../context/AwayzContext.js";
|
|
13
|
+
import { Card as a } from "./Card.js";
|
|
14
14
|
import { AwayzProvider as r } from "../../../providers/AwayzProvider.js";
|
|
15
15
|
import { EAuthFlow as e } from "../../../types/EAuthFlow.js";
|
|
16
16
|
const y = {
|
package/dist/components/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { FlightBooking as t } from "./Bookings/FlightBooking/FlightBooking.js";
|
|
2
|
+
import { HotelBooking as e } from "./Bookings/HotelBooking/HotelBooking.js";
|
|
3
|
+
import { CashValue as l } from "./CashValue/CashValue.js";
|
|
4
|
+
import { EInvalidAmountDisplayOption as m, EToolTipPosition as a } from "./CashValue/CashValueTypes.js";
|
|
5
|
+
import { ClientPointsValue as x } from "./ClientPointsValue/ClientPointsValue.js";
|
|
6
|
+
import { Card as g } from "./Wallet/Card/Card.js";
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
a as
|
|
12
|
-
|
|
8
|
+
g as Card,
|
|
9
|
+
l as CashValue,
|
|
10
|
+
x as ClientPointsValue,
|
|
11
|
+
m as EInvalidAmountDisplayOption,
|
|
12
|
+
a as EToolTipPosition,
|
|
13
|
+
t as FlightBooking,
|
|
14
|
+
e as HotelBooking
|
|
13
15
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
2
2
|
import { c as P } from "../../cashUtils-sBirmFfL.js";
|
|
3
|
-
import { e as M, A as l, E as N } from "../../noRetryInstance-
|
|
3
|
+
import { e as M, A as l, E as N } from "../../noRetryInstance-oiHCni_Z.js";
|
|
4
4
|
import { a as i } from "../../_styles.flight-booking-DEUJthTJ.js";
|
|
5
5
|
import { useState as f, useCallback as I, useEffect as S } from "react";
|
|
6
6
|
import { awayzClient as O } from "../../configs/awayzClient.js";
|
|
7
7
|
import { PreferencesService as q } from "../../services/preferences/PreferencesService.js";
|
|
8
8
|
import "@tanstack/react-query";
|
|
9
9
|
import "react/jsx-runtime";
|
|
10
|
-
import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles4.css';/* empty css */
|
|
11
|
-
/* empty css */
|
|
12
10
|
import "react-i18next";
|
|
13
|
-
|
|
11
|
+
import '../../assets/_styles3.css';import '../../assets/_styles4.css';import '../../assets/_styles.css';import '../../assets/_styles2.css';/* empty css */
|
|
14
12
|
/* empty css */
|
|
13
|
+
/* empty css */
|
|
15
14
|
import "../../context/AwayzContext.js";
|
|
15
|
+
/* empty css */
|
|
16
16
|
import { EAuthFlow as w } from "../../types/EAuthFlow.js";
|
|
17
17
|
const G = (t, c) => {
|
|
18
18
|
var g, y;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useQuery as h, useMutation as u } from "@tanstack/react-query";
|
|
2
2
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { E as s } from "../../noRetryInstance-
|
|
3
|
+
import { E as s } from "../../noRetryInstance-oiHCni_Z.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
|
-
import { awayzClient as q } from "../../configs/awayzClient.js";
|
|
7
|
-
import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles4.css';/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
6
|
import "react-i18next";
|
|
10
|
-
|
|
7
|
+
import '../../assets/_styles3.css';import '../../assets/_styles4.css';import '../../assets/_styles.css';import '../../assets/_styles2.css';/* empty css */
|
|
11
8
|
import "../../_styles.flight-booking-DEUJthTJ.js";
|
|
12
9
|
/* empty css */
|
|
10
|
+
import { awayzClient as q } from "../../configs/awayzClient.js";
|
|
11
|
+
/* empty css */
|
|
13
12
|
import "../../context/AwayzContext.js";
|
|
14
13
|
import { EBookingType as o } from "../../services/trips/TripService.types.js";
|
|
14
|
+
/* empty css */
|
|
15
15
|
import { BookingService as e } from "../../services/bookings/BookingService.js";
|
|
16
16
|
const $ = (n, t) => {
|
|
17
17
|
const {
|
|
@@ -2,18 +2,18 @@ import { EBookingEndpoints as i } from "../../configs/endpoints.js";
|
|
|
2
2
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
|
-
import "@tanstack/react-query";
|
|
6
|
-
import { c } from "../../noRetryInstance-Y6wcm2ZM.js";
|
|
7
|
-
import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles4.css';/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
5
|
import "react-i18next";
|
|
10
|
-
|
|
6
|
+
import '../../assets/_styles3.css';import '../../assets/_styles4.css';import '../../assets/_styles.css';import '../../assets/_styles2.css';/* empty css */
|
|
11
7
|
import "../../_styles.flight-booking-DEUJthTJ.js";
|
|
12
8
|
/* empty css */
|
|
13
|
-
import "
|
|
9
|
+
import "@tanstack/react-query";
|
|
10
|
+
import { c } from "../../noRetryInstance-oiHCni_Z.js";
|
|
11
|
+
/* empty css */
|
|
14
12
|
import "../../context/AwayzContext.js";
|
|
15
13
|
import { useBookingManagement as t } from "./useBookingManagement.js";
|
|
14
|
+
import "../../configs/awayzClient.js";
|
|
16
15
|
import { EBookingType as r } from "../../services/trips/TripService.types.js";
|
|
16
|
+
/* empty css */
|
|
17
17
|
import { renderHook as a, waitFor as n } from "../../tests/TestWrapper.js";
|
|
18
18
|
import { d as s, v as u, t as l, g as e } from "../../vi.ClIskdbk-k6t29WRA.js";
|
|
19
19
|
const d = { _id: "6811290ef16af25943018944", order_id: "ord_0000AvQk8IXqiCE2o20e00", user_id: "67d82b1c52c4a4dbe4e640c0", void_window_ends_at: null, documents: [{ passenger_ids: ["pas_0000AvQjcLZRvVQivKWRxi"], unique_identifier: "1", type: "electronic_ticket" }], synced_at: "2025-06-23T18:32:48Z", available_actions: ["cancel", "change", "update"], airline_initiated_changes: [], cancellation: null, tax_currency: "USD", base_currency: "USD", base_amount: "77.49", tax_amount: "13.94", total_currency: "USD", offer_id: "off_0000AvQjcLqSuF2bm6U2U7", booking_reference: "GHNRHO", created_at: "2025-06-23T18:31:58.211428Z", payment_status: { paid_at: "2025-06-23T18:31:58Z", price_guarantee_expires_at: null, payment_required_by: null, awaiting_payment: !1 }, live_mode: !1, total_amount: "91.43", slices: [{ destination_type: "airport", origin_type: "airport", fare_brand_name: "Basic", segments: [{ origin_terminal: "2", destination_terminal: "1", aircraft: { iata_code: "773", name: "Boeing 777-300", id: "arc_00009VMF8AhXSSRnQDI6HE" }, departing_at: "2025-07-30T22:27:00", arriving_at: "2025-07-31T00:24:00", operating_carrier: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, marketing_carrier: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, stops: [], operating_carrier_flight_number: "9596", marketing_carrier_flight_number: "9596", distance: "1034.9960998474376", passengers: [{ baggages: [{ quantity: 1, type: "checked" }, { quantity: 1, type: "carry_on" }], cabin_class_marketing_name: "Economy", passenger_id: "pas_0000AvQjcLZRvVQivKWRxi", seat: null, cabin_class: "economy" }], duration: "PT1H57M", destination: { icao_code: "LFPG", iata_country_code: "FR", iata_city_code: "PAR", city_name: "Paris", iata_code: "CDG", latitude: 49.011244, longitude: 2.548962, city: { icao_code: null, iata_country_code: "FR", iata_city_code: "PAR", city_name: null, iata_code: "PAR", latitude: null, longitude: null, time_zone: null, type: "city", name: "Paris", id: "cit_par_fr" }, time_zone: "Europe/Paris", type: "airport", name: "Paris Charles de Gaulle Airport", id: "arp_cdg_fr" }, origin: { icao_code: "LOWW", iata_country_code: "AT", iata_city_code: "VIE", city_name: "Vienna", iata_code: "VIE", latitude: 48.113065, longitude: 16.568137, city: null, time_zone: "Europe/Vienna", type: "airport", name: "Vienna International Airport", id: "arp_vie_at" }, id: "seg_0000AvQjcLqSuF2bm6U2U5" }], conditions: { change_before_departure: { penalty_currency: "GBP", penalty_amount: "10.00", allowed: !0 } }, duration: "PT1H57M", destination: { icao_code: "LFPG", iata_country_code: "FR", iata_city_code: "PAR", city_name: "Paris", iata_code: "CDG", latitude: 49.011244, longitude: 2.548962, city: { icao_code: null, iata_country_code: "FR", iata_city_code: "PAR", city_name: null, iata_code: "PAR", latitude: null, longitude: null, time_zone: null, type: "city", name: "Paris", id: "cit_par_fr" }, time_zone: "Europe/Paris", type: "airport", name: "Paris Charles de Gaulle Airport", id: "arp_cdg_fr" }, origin: { icao_code: "LOWW", iata_country_code: "AT", iata_city_code: "VIE", city_name: "Vienna", iata_code: "VIE", latitude: 48.113065, longitude: 16.568137, city: null, time_zone: "Europe/Vienna", type: "airport", name: "Vienna International Airport", id: "arp_vie_at" }, id: "sli_0000AvQjcLqSuF2bm6U2U6" }], passengers: [{ born_on: "2007-04-29", loyalty_programme_accounts: [], family_name: "Botha", given_name: "Adriaan", gender: "m", infant_passenger_id: null, phone_number: "+12345642342", user_id: null, email: "adriaan.botha@typedev.co.za", title: "mr", type: "adult", id: "pas_0000AvQjcLZRvVQivKWRxi" }], conditions: { refund_before_departure: { penalty_currency: null, penalty_amount: null, allowed: !1 }, change_before_departure: { penalty_currency: "GBP", penalty_amount: "10.00", allowed: !0 } }, cancelled_at: null, changes: [], content: "managed", services: [], users: ["icu_0000Asbm8q0FlWOhf0fDUm"], metadata: null, type: "instant", owner: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, id: "ord_0000AvQk8IXqiCE2o20e00", status: "flight confirmed" }, m = "Flight booking found", g = !0, _ = { internalRequestId: "f6b54196-4d33-434d-9800-d9dc72a074ab" }, h = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import { useState as e, useEffect as
|
|
4
|
-
import { FeatureService as
|
|
5
|
-
const
|
|
2
|
+
import { t as R } from "../noRetryInstance-oiHCni_Z.js";
|
|
3
|
+
import { useState as e, useEffect as I } from "react";
|
|
4
|
+
import { FeatureService as r } from "../services/features/featureService.js";
|
|
5
|
+
const O = [
|
|
6
6
|
"DEFAULT_CURRENCY_FEATURE",
|
|
7
7
|
"TOTAL_DISPLAY_FEATURE",
|
|
8
8
|
"HOTEL_DETAILS_LAYOUT_FEATURE",
|
|
@@ -15,7 +15,8 @@ const r = [
|
|
|
15
15
|
"PAYMENT_TYPE_FEATURE",
|
|
16
16
|
"HOTEL_DETAILS_FEATURES",
|
|
17
17
|
"SEARCH_RADIUS_POSITION_FEATURE",
|
|
18
|
-
"NAVIGATION_FEATURE"
|
|
18
|
+
"NAVIGATION_FEATURE",
|
|
19
|
+
"AMOUNTS_DISPLAY_FEATURE"
|
|
19
20
|
], U = [
|
|
20
21
|
"CURRENCY_FILTER_FEATURE",
|
|
21
22
|
"FREE_HOTEL_NIGHTS_FEATURE",
|
|
@@ -37,48 +38,51 @@ const r = [
|
|
|
37
38
|
"ADD_AIRLINE_HEALTH_PAGE_FEATURE",
|
|
38
39
|
"SHOW_NAVIGATION_POPUP_FEATURE",
|
|
39
40
|
"SHOW_ONLY_BOOKABLE_FEATURE"
|
|
40
|
-
],
|
|
41
|
+
], a = [
|
|
41
42
|
"HOTEL_DETAILS_FEATURE",
|
|
42
43
|
"WALLET_PROGRAM_TYPES_FEATURES",
|
|
43
44
|
"HOTEL_FILTERS_FEATURES",
|
|
44
45
|
"FLIGHT_FILTERS_FEATURES",
|
|
45
46
|
"WALLET_FEATURES"
|
|
46
|
-
]
|
|
47
|
-
|
|
47
|
+
];
|
|
48
|
+
var o = /* @__PURE__ */ ((E) => (E.CASH_ONLY = "Cash Only", E.CASH_AND_TRAVEL_PARTNER_POINTS = "Cash And Travel Partner Points", E.CASH_AND_CLIENT_POINTS = "Cash And Client Points", E))(o || {});
|
|
49
|
+
const c = () => {
|
|
50
|
+
const [E, L] = e({}), [F, t] = e(!1), S = async () => {
|
|
48
51
|
try {
|
|
49
|
-
const
|
|
50
|
-
L(
|
|
51
|
-
} catch (
|
|
52
|
-
console.error("Error fetching feature flags:",
|
|
52
|
+
const A = await r.getFeatureFlags();
|
|
53
|
+
L(A);
|
|
54
|
+
} catch (A) {
|
|
55
|
+
console.error("Error fetching feature flags:", A);
|
|
53
56
|
} finally {
|
|
54
57
|
t(!0);
|
|
55
58
|
}
|
|
56
59
|
};
|
|
57
|
-
return
|
|
58
|
-
|
|
60
|
+
return I(() => {
|
|
61
|
+
S();
|
|
59
62
|
}, []), {
|
|
60
|
-
featureFlags: (
|
|
61
|
-
const
|
|
62
|
-
return
|
|
63
|
-
const _ =
|
|
64
|
-
|
|
63
|
+
featureFlags: (F && E ? (() => {
|
|
64
|
+
const A = {};
|
|
65
|
+
return O.forEach((T) => {
|
|
66
|
+
const _ = R(
|
|
67
|
+
T.toLowerCase()
|
|
65
68
|
);
|
|
66
|
-
|
|
67
|
-
}), U.forEach((
|
|
68
|
-
const _ =
|
|
69
|
-
|
|
69
|
+
E[T] !== void 0 && (A[_] = E[T]);
|
|
70
|
+
}), U.forEach((T) => {
|
|
71
|
+
const _ = R(
|
|
72
|
+
T.toLowerCase()
|
|
70
73
|
);
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
const _ =
|
|
74
|
-
|
|
74
|
+
E[T] !== void 0 && (A[_] = E[T]);
|
|
75
|
+
}), a.forEach((T) => {
|
|
76
|
+
const _ = R(
|
|
77
|
+
T.toLowerCase()
|
|
75
78
|
);
|
|
76
|
-
|
|
77
|
-
}),
|
|
79
|
+
E[T] !== void 0 && (A[_] = E[T]);
|
|
80
|
+
}), A;
|
|
78
81
|
})() : void 0) ?? {},
|
|
79
|
-
loaded:
|
|
82
|
+
loaded: F
|
|
80
83
|
};
|
|
81
84
|
};
|
|
82
85
|
export {
|
|
83
|
-
|
|
86
|
+
o as EAmountsDisplayFeature,
|
|
87
|
+
c as useFeatureFlags
|
|
84
88
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery as u } from "@tanstack/react-query";
|
|
2
2
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { E as m, A as c, b as f } from "../noRetryInstance-
|
|
3
|
+
import { E as m, A as c, b as f } from "../noRetryInstance-oiHCni_Z.js";
|
|
4
4
|
import { useEffect as d } from "react";
|
|
5
5
|
import { useAwayzContext as y } from "./useAwayzContext.js";
|
|
6
6
|
var i = /* @__PURE__ */ ((r) => (r.HOTEL = "Hotel", r.FLIGHT = "Flight", r))(i || {});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useQuery as p, useMutation as u } from "@tanstack/react-query";
|
|
2
2
|
import { h as m } from "../../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { E as e } from "../../noRetryInstance-
|
|
3
|
+
import { E as e } from "../../noRetryInstance-oiHCni_Z.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
|
-
import { awayzClient as o } from "../../configs/awayzClient.js";
|
|
7
|
-
import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles4.css';/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
6
|
import "react-i18next";
|
|
10
|
-
|
|
7
|
+
import '../../assets/_styles3.css';import '../../assets/_styles4.css';import '../../assets/_styles.css';import '../../assets/_styles2.css';/* empty css */
|
|
11
8
|
import "../../_styles.flight-booking-DEUJthTJ.js";
|
|
12
9
|
/* empty css */
|
|
10
|
+
import { awayzClient as o } from "../../configs/awayzClient.js";
|
|
11
|
+
/* empty css */
|
|
13
12
|
import "../../context/AwayzContext.js";
|
|
14
|
-
|
|
13
|
+
/* empty css */
|
|
14
|
+
import { T as n } from "../../TripsService-ByimRRRe.js";
|
|
15
15
|
const b = ({
|
|
16
16
|
tripId: t,
|
|
17
17
|
tripDetails: s
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { h as p } from "../../arrayExtensions-DlcBOj5a.js";
|
|
2
|
-
import { D as f } from "../../TripsService-
|
|
2
|
+
import { D as f } from "../../TripsService-ByimRRRe.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { renderHook as o, waitFor as i } from "../../tests/TestWrapper.js";
|
|
5
5
|
import { EMyTripsEndpoints as c } from "../../configs/endpoints.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
|
-
import "@tanstack/react-query";
|
|
8
|
-
import "../../configs/awayzClient.js";
|
|
9
|
-
import { c as d } from "../../noRetryInstance-Y6wcm2ZM.js";
|
|
10
|
-
import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles4.css';/* empty css */
|
|
11
|
-
/* empty css */
|
|
12
7
|
import "react-i18next";
|
|
13
|
-
|
|
8
|
+
import '../../assets/_styles3.css';import '../../assets/_styles4.css';import '../../assets/_styles.css';import '../../assets/_styles2.css';/* empty css */
|
|
14
9
|
import "../../_styles.flight-booking-DEUJthTJ.js";
|
|
15
10
|
/* empty css */
|
|
11
|
+
import "@tanstack/react-query";
|
|
12
|
+
import "../../configs/awayzClient.js";
|
|
13
|
+
import { c as d } from "../../noRetryInstance-oiHCni_Z.js";
|
|
14
|
+
/* empty css */
|
|
16
15
|
import "../../context/AwayzContext.js";
|
|
17
16
|
import { EBookingType as m } from "../../services/trips/TripService.types.js";
|
|
18
17
|
import { useTripManagement as n } from "./useTripManagement.js";
|
|
18
|
+
/* empty css */
|
|
19
19
|
import { UncategorisedBookings200 as y, PastTrip200 as B, UpcomingTrip200 as b, UpdatedTrip200 as k } from "./mocks/index.js";
|
|
20
20
|
import { d as u, v as T, b as D, t as s, g as e } from "../../vi.ClIskdbk-k6t29WRA.js";
|
|
21
21
|
let g = {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useQuery as n, useMutation as s } from "@tanstack/react-query";
|
|
2
2
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { E as a, d as m } from "../../noRetryInstance-
|
|
3
|
+
import { E as a, d as m } from "../../noRetryInstance-oiHCni_Z.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
|
-
import { awayzClient as i } from "../../configs/awayzClient.js";
|
|
7
|
-
import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles4.css';/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
6
|
import "react-i18next";
|
|
10
|
-
|
|
7
|
+
import '../../assets/_styles3.css';import '../../assets/_styles4.css';import '../../assets/_styles.css';import '../../assets/_styles2.css';/* empty css */
|
|
11
8
|
import "../../_styles.flight-booking-DEUJthTJ.js";
|
|
12
9
|
/* empty css */
|
|
10
|
+
import { awayzClient as i } from "../../configs/awayzClient.js";
|
|
11
|
+
/* empty css */
|
|
13
12
|
import { useAwayzContext as l } from "../useAwayzContext.js";
|
|
13
|
+
/* empty css */
|
|
14
14
|
import "../../context/AwayzContext.js";
|
|
15
15
|
import { WalletService as o } from "../../services/wallet/WalletService.js";
|
|
16
16
|
const W = () => {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { EWalletEndpoints as r } from "../../configs/endpoints.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import "@tanstack/react-query";
|
|
4
3
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
4
|
import "react";
|
|
6
|
-
import "../../configs/awayzClient.js";
|
|
7
|
-
import { c as l } from "../../noRetryInstance-Y6wcm2ZM.js";
|
|
8
|
-
import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles4.css';/* empty css */
|
|
9
|
-
/* empty css */
|
|
10
5
|
import "react-i18next";
|
|
11
|
-
|
|
6
|
+
import '../../assets/_styles3.css';import '../../assets/_styles4.css';import '../../assets/_styles.css';import '../../assets/_styles2.css';/* empty css */
|
|
12
7
|
import "../../_styles.flight-booking-DEUJthTJ.js";
|
|
13
8
|
/* empty css */
|
|
9
|
+
import "@tanstack/react-query";
|
|
10
|
+
import "../../configs/awayzClient.js";
|
|
11
|
+
import { c as l } from "../../noRetryInstance-oiHCni_Z.js";
|
|
12
|
+
/* empty css */
|
|
14
13
|
import "../../context/AwayzContext.js";
|
|
15
14
|
import { useWallet as t } from "./useWallet.js";
|
|
15
|
+
/* empty css */
|
|
16
16
|
import { renderHook as s, waitFor as i } from "../../tests/TestWrapper.js";
|
|
17
17
|
import { d as m, v as c, b as p, t as n, g as o } from "../../vi.ClIskdbk-k6t29WRA.js";
|
|
18
18
|
const _ = !0, v = [{ _id: "AAAviatorBis", name: "AAdvantage Aviator Business", signupBonus: 7e4, cashBonus: 0, minimumSpend: 2e3, daysToSpend: 90, annual_fee: 95, annualFeeWaived: !1, cashPerks: 0, bank: { name: "Barclays" }, rewards_currency: "American Airlines Miles", bisCard: !0, chargeCard: !1, cardFamily: 0, websiteUrl: "https://frequentmiler.com/AviatorBiz/#Goto", network: { name: "Mastercard" }, _modified: "2022-08-30T00:24:55.568Z", colour: "#1A3251", region: "US", faredrop_card_id: "", alternateRegions: [], logoUrl: "https://s3.us-east-1.amazonaws.com/awayz/card_logos/barclays-white.svg" }, { _id: "AARed", name: "AAdvantage Aviator Red", signupBonus: 6e4, cashBonus: 0, minimumSpend: 0, daysToSpend: 30, annual_fee: 99, annualFeeWaived: !0, cashPerks: 0, bank: { name: "Barclays" }, rewards_currency: "American Airlines Miles", bisCard: !1, chargeCard: !1, cardFamily: 1, websiteUrl: "https://frequentmiler.com/AviatorRed/#Goto", network: { name: "Mastercard" }, colour: "#1A3251", region: "US", faredrop_card_id: "", alternateRegions: [], logoUrl: "https://s3.us-east-1.amazonaws.com/awayz/card_logos/barclays-white.svg" }, { _id: "AASilver", name: "AAdvantage Aviator Silver", signupBonus: 0, cashBonus: 0, minimumSpend: 0, daysToSpend: 0, annual_fee: 195, annualFeeWaived: !1, cashPerks: 75, bank: { name: "Barclays" }, rewards_currency: "American Airlines Miles", bisCard: !1, chargeCard: !1, cardFamily: 1, websiteUrl: "https://frequentmiler.boardingarea.com/AviatorSilver/#Goto", network: { name: "Mastercard" }, _modified: "2022-08-30T00:27:10.347Z", updatedAt: "2022-10-26T06:55:01.187Z", colour: "#C8C8C8", region: "US", faredrop_card_id: "", alternateRegions: [], logoUrl: "https://s3.us-east-1.amazonaws.com/awayz/card_logos/barclays-black.svg" }, { _id: "AFKLMcard", name: "Air France KLM Card", signupBonus: 7e4, cashBonus: 0, minimumSpend: 2e3, daysToSpend: 90, annual_fee: 89, annualFeeWaived: !1, cashPerks: 150, bank: { name: "BofA" }, rewards_currency: "Flying Blue Miles", bisCard: !1, chargeCard: !1, cardFamily: 6, websiteUrl: "https://frequentmiler.com/AFKLM/#Goto", network: { name: "Mastercard" }, _modified: "2022-08-30T00:41:10.038Z", colour: "#1A3251", region: "US", faredrop_card_id: "", alternateRegions: [], logoUrl: "https://s3.us-east-1.amazonaws.com/awayz/card_logos/bofa-white.svg" }, { _id: "ASBis", name: "Alaska Airlines Visa Business", signupBonus: 7e4, cashBonus: 0, minimumSpend: 4e3, daysToSpend: 90, annual_fee: 75, annualFeeWaived: !1, cashPerks: 0, bank: { name: "BofA" }, rewards_currency: "Alaska MileagePlan", bisCard: !0, chargeCard: !1, cardFamily: 10, websiteUrl: "https://frequentmiler.com/ASbiz/#Goto", network: { name: "Visa" }, _modified: "2022-08-30T00:41:42.408Z", colour: "#1A3251", region: "US", faredrop_card_id: "", alternateRegions: [], logoUrl: "https://s3.us-east-1.amazonaws.com/awayz/card_logos/bofa-white.svg" }, { _id: "AltReserve", name: "Altitude Reserve", signupBonus: 5e4, cashBonus: 0, minimumSpend: 4500, daysToSpend: 90, annual_fee: 400, annualFeeWaived: !1, cashPerks: 0, bank: { name: "US Bank" }, rewards_currency: "Altitude Reserve Points", bisCard: !1, chargeCard: !1, cardFamily: 28, websiteUrl: "https://frequentmiler.com/USBAR/#Goto", network: { name: "Visa" }, colour: "#3767A2", region: "US", faredrop_card_id: "", points_as_cash_conversion_ratio: 0.015, updatedAt: "2024-10-18T14:47:25.187Z", alternateRegions: [], logoUrl: "https://s3.us-east-1.amazonaws.com/awayz/card_logos/us-bank-white.svg" }], y = {
|
|
@@ -126,9 +126,9 @@ function H(t) {
|
|
|
126
126
|
return i({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z" }, child: [] }] })(t);
|
|
127
127
|
}
|
|
128
128
|
export {
|
|
129
|
-
|
|
129
|
+
E as F,
|
|
130
130
|
i as G,
|
|
131
|
-
|
|
131
|
+
C as a,
|
|
132
132
|
_ as b,
|
|
133
133
|
H as c,
|
|
134
134
|
L as d,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
export { FlightBooking } from './Bookings/FlightBooking/FlightBooking';
|
|
2
|
+
export { HotelBooking } from './Bookings/HotelBooking/HotelBooking';
|
|
1
3
|
export { CashValue } from './CashValue/CashValue';
|
|
4
|
+
export * from './CashValue/CashValueTypes';
|
|
2
5
|
export { EToolTipPosition } from './CashValue/CashValueTypes';
|
|
6
|
+
export { ClientPointsValue } from './ClientPointsValue/ClientPointsValue';
|
|
3
7
|
export { Card } from './Wallet/Card/Card';
|
|
4
|
-
export * from './CashValue/CashValueTypes';
|
|
5
|
-
export { FlightBooking } from './Bookings/FlightBooking/FlightBooking';
|
|
6
|
-
export { HotelBooking } from './Bookings/HotelBooking/HotelBooking';
|