@odynn/awayz-flights 0.6.6 → 0.7.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/{FlightResult-Ci2XCEPV.js → FlightResult-Caes2vM3.js} +146 -127
- package/dist/assets/FlightResult.css +1 -1
- package/dist/components/FlightResult/FlightResult.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/constants/endpoints.js +1 -1
- package/dist/enums-D9aZqf8G.js +4 -0
- package/dist/hooks/useFlightSearch/useFlightSearch.js +77 -75
- package/dist/lib/constants/endpoints.d.ts +2 -1
- package/dist/lib/hooks/useFlightSearch/useFlightSearch.types.d.ts +5 -10
- package/dist/lib/services/flights/FlightsService.types.d.ts +1 -1
- package/dist/lib/utils/flightUtils.d.ts +2 -2
- package/dist/main.js +1 -1
- package/dist/utils/flightUtils.js +89 -86
- package/package.json +1 -1
- package/dist/enums-DxmoBOKL.js +0 -4
|
@@ -1,130 +1,144 @@
|
|
|
1
|
-
import { jsx as i, jsxs as n, Fragment as
|
|
2
|
-
import { useAwayzContext as
|
|
3
|
-
import { useQuery as
|
|
4
|
-
import { g as
|
|
5
|
-
import { G as
|
|
6
|
-
import { E as
|
|
1
|
+
import { jsx as i, jsxs as n, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { useAwayzContext as ir, RewardsService as S, CashValue as U, EToolTipPosition as _, EInvalidAmountDisplayOption as nr, awayzClient as q, CurrencyService as tr } from "@odynn/awayz-core";
|
|
3
|
+
import { useQuery as sr } from "@tanstack/react-query";
|
|
4
|
+
import { g as ar } from "./index-7zRjF0bU.js";
|
|
5
|
+
import { G as or, g as L, a as N, E as v, F as cr, b as lr } from "./FlightItinerary-Dy-2zMYt.js";
|
|
6
|
+
import { E as O } from "./enums-D9aZqf8G.js";
|
|
7
7
|
import "./arrayExtensions-DFLvtO8l.js";
|
|
8
|
-
import
|
|
9
|
-
import { h as
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
import { EPaymentType as
|
|
12
|
-
import { isSameDayFlight as
|
|
13
|
-
import { DEFAULT_AIRLINE_PROGRAM as
|
|
14
|
-
import './assets/FlightResult.css';const yr = (r,
|
|
15
|
-
function
|
|
8
|
+
import mr, { useState as P, useMemo as R, useEffect as $ } from "react";
|
|
9
|
+
import { h as m } from "./moment-BGjjqtLQ.js";
|
|
10
|
+
import { useTranslation as pr } from "react-i18next";
|
|
11
|
+
import { EPaymentType as E } from "./enums/EPaymentType.js";
|
|
12
|
+
import { isSameDayFlight as hr } from "./utils/flightDateUtils.js";
|
|
13
|
+
import { DEFAULT_AIRLINE_PROGRAM as gr, getFlightNumber as fr, getLogoPath as ur, getAirlineProgram as dr } from "./utils/flightUtils.js";
|
|
14
|
+
import './assets/FlightResult.css';const yr = (r, s, o = s + "s") => r === 1 ? s : o;
|
|
15
|
+
function Nr(r) {
|
|
16
16
|
if (!r || isNaN(r) || r < 0) return "N/A";
|
|
17
|
-
let
|
|
18
|
-
return
|
|
17
|
+
let s = r == null ? void 0 : r.toString().split(".")[0];
|
|
18
|
+
return s == null ? void 0 : s.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
20
|
+
function A(r) {
|
|
21
|
+
return or({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z" }, child: [] }] })(r);
|
|
22
22
|
}
|
|
23
|
-
async function
|
|
24
|
-
if (!r ||
|
|
25
|
-
const
|
|
26
|
-
queryKey: [
|
|
23
|
+
async function z(r, s, o) {
|
|
24
|
+
if (!r || s === o) return r;
|
|
25
|
+
const a = await q.ensureQueryData({
|
|
26
|
+
queryKey: [O.CONVERT_CURRENCY, s, o],
|
|
27
27
|
staleTime: 1e3 * 60 * 60,
|
|
28
28
|
// 1 hour
|
|
29
|
-
queryFn: () =>
|
|
30
|
-
baseCurrency:
|
|
29
|
+
queryFn: () => tr.convertCurrency({
|
|
30
|
+
baseCurrency: s,
|
|
31
31
|
targetCurrency: o
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
|
-
return r *
|
|
34
|
+
return r * a;
|
|
35
35
|
}
|
|
36
36
|
const Mr = ({
|
|
37
37
|
details: r,
|
|
38
|
-
onClick:
|
|
38
|
+
onClick: s,
|
|
39
39
|
showBestValue: o = !1,
|
|
40
|
-
onShowBestValueCalculation:
|
|
41
|
-
customStyling:
|
|
40
|
+
onShowBestValueCalculation: a,
|
|
41
|
+
customStyling: w = !1
|
|
42
42
|
}) => {
|
|
43
|
-
const { t:
|
|
43
|
+
const { t: h } = pr(), [I, K] = P(!1), [f, Q] = P(
|
|
44
44
|
"none"
|
|
45
45
|
/* NONE */
|
|
46
|
-
), { config: F } =
|
|
47
|
-
const e = await
|
|
48
|
-
|
|
49
|
-
}, { flightNumbers: T, airlines:
|
|
50
|
-
const e = [],
|
|
46
|
+
), [G, Y] = P(!1), { config: F } = ir(), u = r.origin, d = r.destination, b = r.flightDetails, x = r.paymentOptions || [], j = x.filter((e) => e.points === -1).length === 1, H = x.filter((e) => e.points > -1).length === 1, [J, W] = P(gr), X = async () => {
|
|
47
|
+
const e = await dr(r.airlineProgram);
|
|
48
|
+
W(e);
|
|
49
|
+
}, { flightNumbers: T, airlines: Z } = R(() => {
|
|
50
|
+
const e = [], t = [];
|
|
51
51
|
return r.flightDetails.slices.forEach((c) => {
|
|
52
|
-
c.segments.forEach((
|
|
53
|
-
const
|
|
54
|
-
e.includes(
|
|
55
|
-
const y =
|
|
56
|
-
|
|
57
|
-
logo:
|
|
52
|
+
c.segments.forEach((l) => {
|
|
53
|
+
const p = fr(l);
|
|
54
|
+
e.includes(p) || e.push(p);
|
|
55
|
+
const y = l.operatingCarrier;
|
|
56
|
+
t.some((D) => D.airline === y.name) || t.push({
|
|
57
|
+
logo: ur(y.iataCode),
|
|
58
58
|
airline: y.name
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
}),
|
|
62
|
-
}, [r.flightDetails.slices]),
|
|
63
|
-
r.cash > 0 ?
|
|
64
|
-
},
|
|
61
|
+
}), X(), { flightNumbers: e, airlines: t };
|
|
62
|
+
}, [r.flightDetails.slices]), V = () => {
|
|
63
|
+
r.cash > 0 ? s(r, E.CASH) : s(r, E.POINTS);
|
|
64
|
+
}, B = !hr(
|
|
65
65
|
r.departureTime,
|
|
66
66
|
r.arrivalTime
|
|
67
|
-
),
|
|
68
|
-
queryKey: [
|
|
69
|
-
queryFn: () =>
|
|
67
|
+
), C = r == null ? void 0 : r.airlineProgram, { data: k } = sr({
|
|
68
|
+
queryKey: [O.VALUE_CENTS, C, "test"],
|
|
69
|
+
queryFn: () => S.getCentPerPoint(C),
|
|
70
70
|
staleTime: 1 / 0,
|
|
71
|
-
enabled: !!
|
|
72
|
-
}), g =
|
|
73
|
-
var e,
|
|
74
|
-
return (
|
|
75
|
-
(c) =>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
71
|
+
enabled: !!C && o
|
|
72
|
+
}), g = R(() => {
|
|
73
|
+
var e, t;
|
|
74
|
+
return (t = (e = r.paymentOptions) == null ? void 0 : e.find(
|
|
75
|
+
(c) => {
|
|
76
|
+
var l;
|
|
77
|
+
return c.program === r.airlineProgram && ((l = c.cashFee) == null ? void 0 : l.amount) !== 0;
|
|
78
|
+
}
|
|
79
|
+
)) == null ? void 0 : t.cashFee;
|
|
80
|
+
}, [r.paymentOptions, r.airlineProgram]), rr = async () => {
|
|
81
|
+
if (!r || !k || !r.points || !r.cash)
|
|
80
82
|
return;
|
|
81
83
|
const e = r.currency;
|
|
82
|
-
let
|
|
84
|
+
let t = {
|
|
83
85
|
valueCents: 1,
|
|
84
86
|
currency: e
|
|
85
87
|
};
|
|
86
88
|
try {
|
|
87
|
-
|
|
88
|
-
queryKey: [
|
|
89
|
+
t = await q.ensureQueryData({
|
|
90
|
+
queryKey: [O.VALUE_CENTS, r.airlineProgram],
|
|
89
91
|
staleTime: 1e3 * 60 * 60,
|
|
90
92
|
// 1 hour
|
|
91
|
-
queryFn: () =>
|
|
93
|
+
queryFn: () => S.getCentPerPoint(r.airlineProgram)
|
|
92
94
|
});
|
|
93
|
-
} catch (
|
|
95
|
+
} catch (er) {
|
|
94
96
|
console.warn(
|
|
95
97
|
"Failed to fetch value cents for airline program:",
|
|
96
98
|
r.airlineProgram,
|
|
97
|
-
|
|
99
|
+
er
|
|
98
100
|
);
|
|
99
101
|
}
|
|
100
|
-
const c =
|
|
101
|
-
(D) => D.program === r.airlineProgram
|
|
102
|
-
)) == null ? void 0 : S.cashFee) ?? {
|
|
102
|
+
const c = g ?? {
|
|
103
103
|
amount: 0,
|
|
104
104
|
currency: e
|
|
105
|
-
}, [
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
}, [l, p] = await Promise.all([
|
|
106
|
+
z(
|
|
107
|
+
c.amount,
|
|
108
|
+
c.currency,
|
|
109
|
+
e
|
|
110
|
+
),
|
|
111
|
+
z(
|
|
112
|
+
t.valueCents,
|
|
113
|
+
t.currency,
|
|
110
114
|
e
|
|
111
115
|
)
|
|
112
|
-
]),
|
|
116
|
+
]), D = p * r.points / 100 + l < r.cash;
|
|
113
117
|
Q(
|
|
114
|
-
|
|
118
|
+
D ? "points" : "cash"
|
|
115
119
|
/* CASH */
|
|
116
120
|
);
|
|
117
121
|
};
|
|
118
|
-
return
|
|
119
|
-
|
|
120
|
-
}, [r,
|
|
122
|
+
return $(() => {
|
|
123
|
+
rr();
|
|
124
|
+
}, [r, k, g]), $(() => {
|
|
125
|
+
const e = m(r.expiresAt), t = m();
|
|
126
|
+
if (!(e.year() === m(0).year()) && e.isAfter(t)) {
|
|
127
|
+
const l = e.diff(t), p = setTimeout(() => {
|
|
128
|
+
Y(!0);
|
|
129
|
+
}, l);
|
|
130
|
+
return () => {
|
|
131
|
+
clearTimeout(p);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}, [r.expiresAt]), /* @__PURE__ */ i(
|
|
121
135
|
"div",
|
|
122
136
|
{
|
|
123
|
-
className: `${
|
|
124
|
-
onClick:
|
|
137
|
+
className: `${w ? "" : "awayz-"}flight-result`,
|
|
138
|
+
onClick: V,
|
|
125
139
|
children: /* @__PURE__ */ n("div", { className: "content", children: [
|
|
126
140
|
/* @__PURE__ */ i("div", { className: "flight-info", children: /* @__PURE__ */ n("div", { className: "flight-locations", children: [
|
|
127
|
-
/* @__PURE__ */ i("div", { className: "airlines", children:
|
|
141
|
+
/* @__PURE__ */ i("div", { className: "airlines", children: Z.map((e, t) => /* @__PURE__ */ i(mr.Fragment, { children: /* @__PURE__ */ n("div", { className: "tip", children: [
|
|
128
142
|
/* @__PURE__ */ i(
|
|
129
143
|
"img",
|
|
130
144
|
{
|
|
@@ -134,25 +148,25 @@ const Mr = ({
|
|
|
134
148
|
}
|
|
135
149
|
),
|
|
136
150
|
/* @__PURE__ */ i("span", { className: "right", children: e.airline })
|
|
137
|
-
] },
|
|
151
|
+
] }, t) }, t)) }),
|
|
138
152
|
/* @__PURE__ */ n("div", { className: "flight-location", children: [
|
|
139
153
|
/* @__PURE__ */ n("p", { className: "show-desktop", children: [
|
|
140
|
-
|
|
154
|
+
u.city,
|
|
141
155
|
",",
|
|
142
|
-
|
|
156
|
+
L(u.country)
|
|
143
157
|
] }),
|
|
144
|
-
/* @__PURE__ */ i("p", { className: "show-desktop", children:
|
|
145
|
-
|
|
158
|
+
/* @__PURE__ */ i("p", { className: "show-desktop", children: m(r.departureTime).format(
|
|
159
|
+
h(N.DATE_TIME_MEDIUM, v.FlightShortDate)
|
|
146
160
|
) }),
|
|
147
|
-
/* @__PURE__ */ i("p", { className: "show-mobile", children:
|
|
148
|
-
/* @__PURE__ */ i("p", { className: "show-mobile", children:
|
|
149
|
-
|
|
161
|
+
/* @__PURE__ */ i("p", { className: "show-mobile", children: u.airportCode }),
|
|
162
|
+
/* @__PURE__ */ i("p", { className: "show-mobile", children: m(r.departureTime).format(
|
|
163
|
+
h(N.TIME_ONLY, v.FlightTime)
|
|
150
164
|
) })
|
|
151
165
|
] }),
|
|
152
166
|
/* @__PURE__ */ n("div", { className: "flight-duration", children: [
|
|
153
167
|
/* @__PURE__ */ i("span", { className: "line" }),
|
|
154
168
|
/* @__PURE__ */ n("p", { children: [
|
|
155
|
-
|
|
169
|
+
ar(b.slices[0].duration),
|
|
156
170
|
" ",
|
|
157
171
|
" - ",
|
|
158
172
|
r.numberOfStops > 0 ? `${r.numberOfStops} ${yr(
|
|
@@ -164,19 +178,19 @@ const Mr = ({
|
|
|
164
178
|
] }),
|
|
165
179
|
/* @__PURE__ */ n("div", { children: [
|
|
166
180
|
/* @__PURE__ */ n("p", { className: "show-desktop", children: [
|
|
167
|
-
|
|
181
|
+
d.city,
|
|
168
182
|
", ",
|
|
169
|
-
|
|
183
|
+
L(d.country)
|
|
170
184
|
] }),
|
|
171
185
|
/* @__PURE__ */ n("p", { className: "show-desktop", children: [
|
|
172
|
-
|
|
173
|
-
|
|
186
|
+
m(r.arrivalTime).format(
|
|
187
|
+
h(N.DATE_TIME_MEDIUM, v.FlightShortDate)
|
|
174
188
|
),
|
|
175
189
|
" "
|
|
176
190
|
] }),
|
|
177
|
-
/* @__PURE__ */ i("p", { className: "show-mobile", children:
|
|
178
|
-
/* @__PURE__ */ i("p", { className: "show-mobile", children:
|
|
179
|
-
|
|
191
|
+
/* @__PURE__ */ i("p", { className: "show-mobile", children: d.airportCode }),
|
|
192
|
+
/* @__PURE__ */ i("p", { className: "show-mobile", children: m(r.arrivalTime).format(
|
|
193
|
+
h(N.TIME_ONLY, v.FlightTime)
|
|
180
194
|
) })
|
|
181
195
|
] })
|
|
182
196
|
] }) }),
|
|
@@ -186,12 +200,12 @@ const Mr = ({
|
|
|
186
200
|
{
|
|
187
201
|
className: "flight-detail",
|
|
188
202
|
onClick: (e) => {
|
|
189
|
-
e.stopPropagation(),
|
|
203
|
+
e.stopPropagation(), K(!I);
|
|
190
204
|
},
|
|
191
205
|
children: [
|
|
192
206
|
/* @__PURE__ */ i("p", { children: "Aircraft" }),
|
|
193
207
|
/* @__PURE__ */ n("p", { className: "chevron-text", children: [
|
|
194
|
-
/* @__PURE__ */ i(
|
|
208
|
+
/* @__PURE__ */ i(cr, {}),
|
|
195
209
|
/* @__PURE__ */ n("span", { children: [
|
|
196
210
|
T[0],
|
|
197
211
|
T.length > 1 && /* @__PURE__ */ n("sup", { children: [
|
|
@@ -203,38 +217,41 @@ const Mr = ({
|
|
|
203
217
|
]
|
|
204
218
|
}
|
|
205
219
|
) }),
|
|
206
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ i("div", { className: "booking-options ", children: G ? /* @__PURE__ */ n("div", { className: "offer-expiry", children: [
|
|
221
|
+
/* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(A, {}) }),
|
|
222
|
+
/* @__PURE__ */ i("p", { className: "expired-tip", children: "Offer Expired" })
|
|
223
|
+
] }) : /* @__PURE__ */ n(M, { children: [
|
|
207
224
|
r.cash > 0 && /* @__PURE__ */ n(
|
|
208
225
|
"div",
|
|
209
226
|
{
|
|
210
|
-
className: `amount-value ${
|
|
227
|
+
className: `amount-value ${f === "cash" && o ? "show-best-value-flag" : ""}`,
|
|
211
228
|
onClick: (e) => {
|
|
212
|
-
e.stopPropagation(),
|
|
229
|
+
e.stopPropagation(), s(r, E.CASH);
|
|
213
230
|
},
|
|
214
231
|
children: [
|
|
215
232
|
/* @__PURE__ */ i("b", { children: "Cash" }),
|
|
216
233
|
/* @__PURE__ */ n("div", { children: [
|
|
217
|
-
/* @__PURE__ */ i("label", { children:
|
|
234
|
+
/* @__PURE__ */ i("label", { children: j ? "Book For" : "From" }),
|
|
218
235
|
/* @__PURE__ */ i(
|
|
219
|
-
|
|
236
|
+
U,
|
|
220
237
|
{
|
|
221
238
|
amount: r.cash,
|
|
222
239
|
currency: r.currency,
|
|
223
|
-
position:
|
|
240
|
+
position: _.LEFT
|
|
224
241
|
}
|
|
225
242
|
)
|
|
226
243
|
] }),
|
|
227
|
-
|
|
244
|
+
f === "cash" && o && /* @__PURE__ */ n(
|
|
228
245
|
"div",
|
|
229
246
|
{
|
|
230
247
|
className: "best-value-flag tip",
|
|
231
248
|
onClick: (e) => {
|
|
232
|
-
e.stopPropagation(),
|
|
249
|
+
e.stopPropagation(), a == null || a(r);
|
|
233
250
|
},
|
|
234
251
|
children: [
|
|
235
|
-
|
|
252
|
+
a && /* @__PURE__ */ i(A, {}),
|
|
236
253
|
/* @__PURE__ */ i("p", { children: "Best Value" }),
|
|
237
|
-
|
|
254
|
+
a && /* @__PURE__ */ i("span", { children: "Click to learn more" })
|
|
238
255
|
]
|
|
239
256
|
}
|
|
240
257
|
)
|
|
@@ -244,40 +261,42 @@ const Mr = ({
|
|
|
244
261
|
r.points > 0 && /* @__PURE__ */ n(
|
|
245
262
|
"div",
|
|
246
263
|
{
|
|
247
|
-
className: `amount-value ${
|
|
264
|
+
className: `amount-value ${f === "points" && o ? "show-best-value-flag" : ""}`,
|
|
248
265
|
onClick: (e) => {
|
|
249
|
-
e.stopPropagation(),
|
|
266
|
+
e.stopPropagation(), s(r, E.POINTS);
|
|
250
267
|
},
|
|
251
268
|
children: [
|
|
252
|
-
|
|
269
|
+
f === "points" && o && /* @__PURE__ */ n(
|
|
253
270
|
"div",
|
|
254
271
|
{
|
|
255
272
|
className: "best-value-flag tip",
|
|
256
273
|
onClick: (e) => {
|
|
257
|
-
e.stopPropagation(),
|
|
274
|
+
e.stopPropagation(), a == null || a(r);
|
|
258
275
|
},
|
|
259
276
|
children: [
|
|
260
|
-
|
|
277
|
+
a && /* @__PURE__ */ i(A, {}),
|
|
261
278
|
/* @__PURE__ */ i("p", { children: "Best Value" }),
|
|
262
|
-
|
|
279
|
+
a && /* @__PURE__ */ i("span", { children: "Click to learn more" })
|
|
263
280
|
]
|
|
264
281
|
}
|
|
265
282
|
),
|
|
266
|
-
/* @__PURE__ */ i("img", { src:
|
|
283
|
+
/* @__PURE__ */ i("img", { src: J.programLogo }),
|
|
267
284
|
/* @__PURE__ */ n("div", { children: [
|
|
268
|
-
/* @__PURE__ */ i("label", { children:
|
|
285
|
+
/* @__PURE__ */ i("label", { children: H ? "Book For" : "From" }),
|
|
269
286
|
/* @__PURE__ */ n("p", { children: [
|
|
270
|
-
`${
|
|
271
|
-
|
|
287
|
+
`${Nr(r.points)} ${h(
|
|
288
|
+
"miles"
|
|
289
|
+
)}`,
|
|
290
|
+
!!g && /* @__PURE__ */ n(M, { children: [
|
|
272
291
|
" + ",
|
|
273
292
|
/* @__PURE__ */ i(
|
|
274
|
-
|
|
293
|
+
U,
|
|
275
294
|
{
|
|
276
295
|
amount: g.amount,
|
|
277
296
|
currency: g.currency,
|
|
278
297
|
customDisplay: "No fee",
|
|
279
|
-
zeroDisplayOption:
|
|
280
|
-
position:
|
|
298
|
+
zeroDisplayOption: nr.CUSTOM,
|
|
299
|
+
position: _.LEFT
|
|
281
300
|
}
|
|
282
301
|
)
|
|
283
302
|
] })
|
|
@@ -286,15 +305,15 @@ const Mr = ({
|
|
|
286
305
|
]
|
|
287
306
|
}
|
|
288
307
|
)
|
|
289
|
-
] })
|
|
308
|
+
] }) })
|
|
290
309
|
] }),
|
|
291
|
-
/* @__PURE__ */ i("div", { className: `flight-details ${
|
|
292
|
-
|
|
310
|
+
/* @__PURE__ */ i("div", { className: `flight-details ${I ? "is-open" : ""}`, children: /* @__PURE__ */ i("div", { className: "inner", children: /* @__PURE__ */ i(
|
|
311
|
+
lr,
|
|
293
312
|
{
|
|
294
|
-
itinerary:
|
|
295
|
-
origin:
|
|
296
|
-
destination:
|
|
297
|
-
isMultiDayFlight:
|
|
313
|
+
itinerary: b.slices[0].segments,
|
|
314
|
+
origin: u,
|
|
315
|
+
destination: d,
|
|
316
|
+
isMultiDayFlight: B
|
|
298
317
|
}
|
|
299
318
|
) }) })
|
|
300
319
|
] })
|
|
@@ -303,5 +322,5 @@ const Mr = ({
|
|
|
303
322
|
};
|
|
304
323
|
export {
|
|
305
324
|
Mr as F,
|
|
306
|
-
|
|
325
|
+
Nr as c
|
|
307
326
|
};
|
|
@@ -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}.tip{position:relative}.tip>span{background-color:var(--dark, #14181f);color:#fff;padding:.5rem;border-radius:.25rem;position:absolute;bottom:110%;left:50%;transform:translate(-50%);display:none;transition:all .2s ease-in-out;z-index:100;width:max-content;font-size:.6rem;font-weight:600;text-transform:uppercase;line-height:.8rem;text-align:center;box-sizing:border-box;pointer-events:none}@media screen and (max-width: 480px){.tip>span{width:fit-content}}.tip>span.left{right:100%;top:50%;bottom:auto;left:auto;transform:translateY(-50%)}.tip>span.left:before{left:auto;right:-7.5px;top:50%;transform:translateY(-50%) rotate(-90deg)}.tip>span.right{left:100%;top:50%;bottom:auto;right:auto;transform:translateY(-50%)}.tip>span.right:before{left:-7.5px;right:auto;top:50%;transform:translateY(-50%) rotate(90deg)}.tip>span.bottom{top:100%;left:50%;right:auto;bottom:auto;transform:translate(-50%)}.tip>span.bottom:before{left:50%;right:auto;top:-5px;transform:translate(-50%) rotate(180deg)}.tip>span:before{content:"";position:absolute;bottom:-5px;left:50%;transform:translate(-50%);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--dark, #14181f)}.tip:hover>span,.tip:focus>span{display:flex;animation:tip-fade-up .2s ease-in-out}.tip:hover>span.right,.tip:focus>span.right{animation:tip-fade-right .2s ease-in-out}.tip:hover>span.left,.tip:focus>span.left{animation:tip-fade-left .2s ease-in-out}.tip:hover>span.bottom,.tip:focus>span.bottom{animation:tip-fade-down .2s ease-in-out}@keyframes slide-in-right{0%{opacity:0;transform:translate(0)}50%{transform:translate(-100vw);opacity:0}50.001%{opacity:0;transform:translate(105vw)}50.002%{opacity:1;transform:translate(100vw)}to{transform:translate(0)}}@keyframes slide-in-left{0%{opacity:0;transform:translate(0)}50%{transform:translate(100vw);opacity:0}50.001%{opacity:0;transform:translate(-100vw)}50.002%{opacity:1;transform:translate(-100vw)}to{transform:translate(0)}}@keyframes slide-out-right{0%{transform:translate(0)}to{transform:translate(100vw);opacity:1}}@keyframes slide-out-left{0%{transform:translate(0)}to{transform:translate(-100vw);opacity:1}}@keyframes slide-up{0%{transform:translateY(100%)}to{transform:translate(0);opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes fade-in{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}@keyframes scale-out{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes scale-in{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes no-no{0%{transform:translate(0)}20%{transform:translate(-20px)}40%{transform:translate(15px)}60%{transform:translate(-10px)}80%{transform:translate(5px)}to{transform:translate(0)}}@keyframes loading-track{0%{transform:translate(-100%);opacity:0}25%{opacity:1}75%{opacity:1}to{opacity:0;transform:translate(100%)}}@keyframes loading-in{0%{height:0}to{height:5px}}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shine{0%{background-position:right}}@keyframes text-pulse{0%{opacity:.75}35%{opacity:1}65%{opacity:1}to{opacity:.75}}@keyframes pulse{0%{opacity:.85}35%{opacity:1}65%{opacity:1}to{opacity:.85}}@keyframes shimmer{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes fade-up{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-down{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-right{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes spring-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes ripple{0%{transform:scale(1)}to{transform:scale(1.1,1.4)}}@keyframes tip-fade-right{0%{opacity:0;transform:translate(-20px,-50%)}to{opacity:1;transform:translateY(-50%)}}@keyframes tip-fade-left{0%{opacity:0;transform:translate(20px,-50%)}to{opacity:1;transform:translateY(-50%)}}@keyframes tip-fade-down{0%{opacity:0;transform:translate(-50%,-20px)}to{opacity:1;transform:translate(-50%)}}@keyframes tip-fade-up{0%{opacity:0;transform:translate(-50%,5px)}to{opacity:1;transform:translate(-50%)}}@keyframes slide-in{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slide-out{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}@keyframes scale-fade-in{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes scroll-horizontally{0%{transform:translate(0)}to{transform:translate(-50%)}}.awayz-flight-result{background-color:var(--foreground, #fff);border-radius:.5rem;border:1px solid var(--border, #e7eef3);overflow:hidden;width:100%;margin:0 auto;position:relative;height:fit-content;padding:1px;transition:all .2s ease-in-out;z-index:10;animation:fade-up .2s ease-in-out both;backface-visibility:hidden}.awayz-flight-result .content{overflow:hidden;border-radius:.4rem;width:100%;margin:0 auto;position:relative;height:fit-content;z-index:1;display:flex;flex-direction:column}.awayz-flight-result .content>div{z-index:2}.awayz-flight-result .content>div.flight-info{flex:4;display:flex;flex-direction:column;min-height:60%;gap:.5rem;padding:1rem}.awayz-flight-result .content>div.flight-info .airlines{position:relative;width:50px;max-width:50px;height:30px}.awayz-flight-result .content>div.flight-info .airlines>div{position:absolute;display:flex;align-items:center;gap:.5rem;border:1px solid var(--border, #e7eef3);border-radius:50%;height:30px;width:30px;justify-content:center;background-color:var(--foreground, #fff)}.awayz-flight-result .content>div.flight-info .airlines>div img{width:70%}.awayz-flight-result .content>div.flight-info .airlines>div:nth-child(2){top:10px;left:15px}.awayz-flight-result .content>div.flight-info .airlines>div:nth-child(3){top:-10px;left:20px}.awayz-flight-result .content>div.flight-info .airlines>div span{font-size:.7rem}.awayz-flight-result .content>div.flight-info .airlines p{font-weight:600}.awayz-flight-result .content>div.flight-info .flight-locations{align-items:center;gap:1rem;display:flex}.awayz-flight-result .content>div.flight-info .flight-locations .show-desktop{display:none}@media screen and (min-width: 768px){.awayz-flight-result .content>div.flight-info .flight-locations .show-desktop{display:flex}}.awayz-flight-result .content>div.flight-info .flight-locations .show-mobile{display:none}@media screen and (max-width: 768px){.awayz-flight-result .content>div.flight-info .flight-locations .show-mobile{display:flex}}.awayz-flight-result .content>div.flight-info .flight-locations:last-child div p:first-child{font-weight:600}.awayz-flight-result .content>div.flight-info .flight-locations>div{flex:1;font-size:.8rem}.awayz-flight-result .content>div.flight-info .flight-locations>div:first-child{text-align:left}.awayz-flight-result .content>div.flight-info .flight-locations>div:last-child{text-align:right}.awayz-flight-result .content>div.flight-info .flight-locations .flight-duration{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:1rem;font-weight:600;font-size:.7rem}.awayz-flight-result .content>div.flight-info .flight-locations .line{height:2px;flex:1;background:repeating-linear-gradient(90deg,var(--border, #e7eef3) 0 20px,rgba(0,0,0,0) 0 30px);z-index:1}.awayz-flight-result .content>div.flight-info .flight-locations>div{display:flex;flex-direction:column;text-align:center;flex:1;width:100%}.awayz-flight-result .content>div.flight-info .flight-locations>div.duration{flex-direction:row;align-items:center;justify-content:center;gap:.5rem}.awayz-flight-result .content>div.flight-info .flight-locations>div.duration p{opacity:.4}.awayz-flight-result .content>div.flight-info .flight-locations>div.flight-location{text-align:left;align-items:flex-start;max-width:fit-content}.awayz-flight-result .content>div.flight-info .flight-locations>div:last-child{text-align:right;align-items:flex-end;max-width:fit-content}.awayz-flight-result .content>div.flight-footer{flex:2;display:flex;justify-content:space-between;align-items:center;padding:1rem;gap:1rem;background-color:var(--background, #f9fdff);border-top:1px solid var(--border, #e7eef3)}@media screen and (max-width: 1024px){.awayz-flight-result .content>div.flight-footer{flex-direction:column}}.awayz-flight-result .content>div.flight-footer .view-details{display:flex;align-items:center;gap:1rem;cursor:pointer;-webkit-user-select:none;user-select:none}.awayz-flight-result .content>div.flight-footer .booking-options{display:flex;justify-content:flex-end;gap:1rem;font-size:.8rem;flex:3}@media screen and (max-width: 1024px){.awayz-flight-result .content>div.flight-footer .booking-options{width:100%;flex-direction:column}}.awayz-flight-result .content>div.flight-footer .booking-options>div{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border, #e7eef3);border-radius:50rem;padding:.5rem 1rem;gap:2rem;cursor:pointer;transition:all .2s ease-in-out;background-color:var(--foreground, #fff)}.awayz-flight-result .content>div.flight-footer .booking-options>div img{height:30px;max-width:100px}.awayz-flight-result .content>div.flight-footer .booking-options>div>div{display:flex;flex-direction:column}.awayz-flight-result .content>div.flight-footer .booking-options>div label{font-size:.7rem;font-weight:600}.awayz-flight-result .content>div.flight-footer .booking-options>div.amount-value{position:relative}.awayz-flight-result .content>div.flight-footer .booking-options>div.amount-value .currency-conversion{display:flex}.awayz-flight-result .content>div.flight-footer .booking-options>div.amount-value .best-value-flag{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:.25rem;position:absolute;right:-1px;padding:.25rem .5rem;top:-1rem;color:var(--foreground, #fff);border-radius:50rem;font-weight:600;background-color:var(--primary, #1495f2);border-bottom-right-radius:0;font-size:.7rem}.awayz-flight-result .content>div.flight-footer .booking-options>div.amount-value .best-value-flag p{color:var(--foreground, #fff)}.awayz-flight-result .content>div.flight-footer .booking-options>div.amount-value.show-best-value-flag{border-color:var(--primary, #1495f2);border-top-right-radius:0}.awayz-flight-result .content>div.flight-footer .booking-options>div.amount-value p{display:flex;gap:.25rem}.awayz-flight-result .content>div.flight-footer .booking-options>div:first-of-type{grid-area:price}.awayz-flight-result .content>div.flight-footer .booking-options>div:last-of-type{grid-area:points}.awayz-flight-result .content>div.flight-footer .booking-options>div:hover{background-color:var(--background, #f9fdff)}@media screen and (max-width: 1024px){.awayz-flight-result .content>div.flight-footer .booking-options>div{flex-direction:row;justify-content:space-between;align-items:center}.awayz-flight-result .content>div.flight-footer .booking-options>div.amount-value{text-align:center}.awayz-flight-result .content>div.flight-footer .booking-options>div.amount-value img{height:30px;max-width:80px}.awayz-flight-result .content>div.flight-footer .booking-options>div p:last-child{font-weight:600;font-size:1rem}}.awayz-flight-result .content .flight-detail-container{display:flex;gap:1rem;justify-content:space-between}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-detail-container{width:100%}}.awayz-flight-result .content .flight-detail:not(:first-of-type){border-left:1px solid var(--border, #e7eef3);padding:0 2rem}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-detail:not(:first-of-type){padding:0 .5rem}}.awayz-flight-result .content .flight-detail p{font-size:.8rem}.awayz-flight-result .content .flight-detail p:first-of-type{font-size:.7rem;color:var(--text-light, rgba(37, 46, 52, .2509803922))}.awayz-flight-result .content .flight-detail p:last-of-type{font-weight:600}.awayz-flight-result .content .flight-detail p.chevron-text{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.awayz-flight-result .flight-details{display:grid;grid-template-rows:0fr;transition:all .2s ease-in-out;background-color:var(--foreground, #fff);border-top:1px solid var(--border, #e7eef3);border-width:0}.awayz-flight-result .flight-details.is-open{grid-template-rows:1fr;padding:1rem;border-top:1px solid var(--border, #e7eef3)}.awayz-flight-result .flight-details.is-open .inner{padding:1rem 0;scale:1;opacity:1}.awayz-flight-result .flight-details .inner{overflow:hidden;transition:all .2s ease-in-out;scale:.9;opacity:0;transform-origin:top center}.awayz-flight-result:hover{cursor:pointer}
|
|
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}.tip{position:relative}.tip>span{background-color:var(--dark, #14181f);color:#fff;padding:.5rem;border-radius:.25rem;position:absolute;bottom:110%;left:50%;transform:translate(-50%);display:none;transition:all .2s ease-in-out;z-index:100;width:max-content;font-size:.6rem;font-weight:600;text-transform:uppercase;line-height:.8rem;text-align:center;box-sizing:border-box;pointer-events:none}@media screen and (max-width: 480px){.tip>span{width:fit-content}}.tip>span.left{right:100%;top:50%;bottom:auto;left:auto;transform:translateY(-50%)}.tip>span.left:before{left:auto;right:-7.5px;top:50%;transform:translateY(-50%) rotate(-90deg)}.tip>span.right{left:100%;top:50%;bottom:auto;right:auto;transform:translateY(-50%)}.tip>span.right:before{left:-7.5px;right:auto;top:50%;transform:translateY(-50%) rotate(90deg)}.tip>span.bottom{top:100%;left:50%;right:auto;bottom:auto;transform:translate(-50%)}.tip>span.bottom:before{left:50%;right:auto;top:-5px;transform:translate(-50%) rotate(180deg)}.tip>span:before{content:"";position:absolute;bottom:-5px;left:50%;transform:translate(-50%);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--dark, #14181f)}.tip:hover>span,.tip:focus>span{display:flex;animation:tip-fade-up .2s ease-in-out}.tip:hover>span.right,.tip:focus>span.right{animation:tip-fade-right .2s ease-in-out}.tip:hover>span.left,.tip:focus>span.left{animation:tip-fade-left .2s ease-in-out}.tip:hover>span.bottom,.tip:focus>span.bottom{animation:tip-fade-down .2s ease-in-out}@keyframes slide-in-right{0%{opacity:0;transform:translate(0)}50%{transform:translate(-100vw);opacity:0}50.001%{opacity:0;transform:translate(105vw)}50.002%{opacity:1;transform:translate(100vw)}to{transform:translate(0)}}@keyframes slide-in-left{0%{opacity:0;transform:translate(0)}50%{transform:translate(100vw);opacity:0}50.001%{opacity:0;transform:translate(-100vw)}50.002%{opacity:1;transform:translate(-100vw)}to{transform:translate(0)}}@keyframes slide-out-right{0%{transform:translate(0)}to{transform:translate(100vw);opacity:1}}@keyframes slide-out-left{0%{transform:translate(0)}to{transform:translate(-100vw);opacity:1}}@keyframes slide-up{0%{transform:translateY(100%)}to{transform:translate(0);opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes fade-in{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}@keyframes scale-out{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes scale-in{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes no-no{0%{transform:translate(0)}20%{transform:translate(-20px)}40%{transform:translate(15px)}60%{transform:translate(-10px)}80%{transform:translate(5px)}to{transform:translate(0)}}@keyframes loading-track{0%{transform:translate(-100%);opacity:0}25%{opacity:1}75%{opacity:1}to{opacity:0;transform:translate(100%)}}@keyframes loading-in{0%{height:0}to{height:5px}}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shine{0%{background-position:right}}@keyframes text-pulse{0%{opacity:.75}35%{opacity:1}65%{opacity:1}to{opacity:.75}}@keyframes pulse{0%{opacity:.85}35%{opacity:1}65%{opacity:1}to{opacity:.85}}@keyframes shimmer{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes fade-up{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-down{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-right{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes spring-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes ripple{0%{transform:scale(1)}to{transform:scale(1.1,1.4)}}@keyframes tip-fade-right{0%{opacity:0;transform:translate(-20px,-50%)}to{opacity:1;transform:translateY(-50%)}}@keyframes tip-fade-left{0%{opacity:0;transform:translate(20px,-50%)}to{opacity:1;transform:translateY(-50%)}}@keyframes tip-fade-down{0%{opacity:0;transform:translate(-50%,-20px)}to{opacity:1;transform:translate(-50%)}}@keyframes tip-fade-up{0%{opacity:0;transform:translate(-50%,5px)}to{opacity:1;transform:translate(-50%)}}@keyframes slide-in{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slide-out{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}@keyframes scale-fade-in{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes scroll-horizontally{0%{transform:translate(0)}to{transform:translate(-50%)}}.awayz-flight-result{background-color:var(--foreground, #fff);border-radius:.5rem;border:1px solid var(--border, #e7eef3);overflow:hidden;width:100%;margin:0 auto;position:relative;height:fit-content;padding:1px;transition:all .2s ease-in-out;z-index:10;animation:fade-up .2s ease-in-out both;backface-visibility:hidden}.awayz-flight-result .content{overflow:hidden;border-radius:.4rem;width:100%;margin:0 auto;position:relative;height:fit-content;z-index:1;display:flex;flex-direction:column}.awayz-flight-result .content>div{z-index:2}.awayz-flight-result .content>div.flight-info{flex:4;display:flex;flex-direction:column;min-height:60%;gap:.5rem;padding:1rem}.awayz-flight-result .content>div.flight-info .airlines{position:relative;width:50px;max-width:50px;height:30px}.awayz-flight-result .content>div.flight-info .airlines>div{position:absolute;display:flex;align-items:center;gap:.5rem;border:1px solid var(--border, #e7eef3);border-radius:50%;height:30px;width:30px;justify-content:center;background-color:var(--foreground, #fff)}.awayz-flight-result .content>div.flight-info .airlines>div img{width:70%}.awayz-flight-result .content>div.flight-info .airlines>div:nth-child(2){top:10px;left:15px}.awayz-flight-result .content>div.flight-info .airlines>div:nth-child(3){top:-10px;left:20px}.awayz-flight-result .content>div.flight-info .airlines>div span{font-size:.7rem}.awayz-flight-result .content>div.flight-info .airlines p{font-weight:600}.awayz-flight-result .content>div.flight-info .flight-locations{align-items:center;gap:1rem;display:flex}.awayz-flight-result .content>div.flight-info .flight-locations .show-desktop{display:none}@media screen and (min-width: 768px){.awayz-flight-result .content>div.flight-info .flight-locations .show-desktop{display:flex}}.awayz-flight-result .content>div.flight-info .flight-locations .show-mobile{display:none}@media screen and (max-width: 768px){.awayz-flight-result .content>div.flight-info .flight-locations .show-mobile{display:flex}}.awayz-flight-result .content>div.flight-info .flight-locations:last-child div p:first-child{font-weight:600}.awayz-flight-result .content>div.flight-info .flight-locations>div{flex:1;font-size:.8rem}.awayz-flight-result .content>div.flight-info .flight-locations>div:first-child{text-align:left}.awayz-flight-result .content>div.flight-info .flight-locations>div:last-child{text-align:right}.awayz-flight-result .content>div.flight-info .flight-locations .flight-duration{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:1rem;font-weight:600;font-size:.7rem}.awayz-flight-result .content>div.flight-info .flight-locations .line{height:2px;flex:1;background:repeating-linear-gradient(90deg,var(--border, #e7eef3) 0 20px,rgba(0,0,0,0) 0 30px);z-index:1}.awayz-flight-result .content>div.flight-info .flight-locations>div{display:flex;flex-direction:column;text-align:center;flex:1;width:100%}.awayz-flight-result .content>div.flight-info .flight-locations>div.duration{flex-direction:row;align-items:center;justify-content:center;gap:.5rem}.awayz-flight-result .content>div.flight-info .flight-locations>div.duration p{opacity:.4}.awayz-flight-result .content>div.flight-info .flight-locations>div.flight-location{text-align:left;align-items:flex-start;max-width:fit-content}.awayz-flight-result .content>div.flight-info .flight-locations>div:last-child{text-align:right;align-items:flex-end;max-width:fit-content}.awayz-flight-result .content>div.flight-footer{flex:2;display:flex;justify-content:space-between;align-items:center;padding:1rem;gap:1rem;background-color:var(--background, #f9fdff);border-top:1px solid var(--border, #e7eef3)}@media screen and (max-width: 1024px){.awayz-flight-result .content>div.flight-footer{flex-direction:column}}.awayz-flight-result .content>div.flight-footer .view-details{display:flex;align-items:center;gap:1rem;cursor:pointer;-webkit-user-select:none;user-select:none}.awayz-flight-result .content>div.flight-footer .booking-options{display:flex;justify-content:flex-end;gap:1rem;font-size:.8rem;flex:3}@media screen and (max-width: 1024px){.awayz-flight-result .content>div.flight-footer .booking-options{width:100%;flex-direction:column}}.awayz-flight-result .content>div.flight-footer .booking-options .offer-expiry{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border, #e7eef3);border-radius:50rem;padding:1rem;gap:1rem;transition:all .2s ease-in-out;background-color:var(--foreground, #fff);font-weight:600}.awayz-flight-result .content>div.flight-footer .booking-options .offer-expiry span{display:flex;align-items:center;justify-content:center;font-size:1rem;color:var(--warning, #ff7f2f)}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border, #e7eef3);border-radius:50rem;padding:.5rem 1rem;gap:2rem;cursor:pointer;transition:all .2s ease-in-out;background-color:var(--foreground, #fff)}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value img{height:30px;max-width:100px}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value>div{display:flex;flex-direction:column}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value label{font-size:.7rem;font-weight:600}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.amount-value{position:relative}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.amount-value .currency-conversion{display:flex}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.amount-value .best-value-flag{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:.25rem;position:absolute;right:-1px;padding:.25rem .5rem;top:-1rem;color:var(--foreground, #fff);border-radius:50rem;font-weight:600;background-color:var(--primary, #1495f2);border-bottom-right-radius:0;font-size:.7rem}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.amount-value .best-value-flag p{color:var(--foreground, #fff)}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.amount-value.show-best-value-flag{border-color:var(--primary, #1495f2);border-top-right-radius:0}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.amount-value p{display:flex;gap:.25rem}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value:first-of-type{grid-area:price}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value:last-of-type{grid-area:points}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value:hover{background-color:var(--background, #f9fdff)}@media screen and (max-width: 1024px){.awayz-flight-result .content>div.flight-footer .booking-options .amount-value{flex-direction:row;justify-content:space-between;align-items:center}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.amount-value{text-align:center}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value.amount-value img{height:30px;max-width:80px}.awayz-flight-result .content>div.flight-footer .booking-options .amount-value p:last-child{font-weight:600;font-size:1rem}}.awayz-flight-result .content .flight-detail-container{display:flex;gap:1rem;justify-content:space-between}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-detail-container{width:100%}}.awayz-flight-result .content .flight-detail:not(:first-of-type){border-left:1px solid var(--border, #e7eef3);padding:0 2rem}@media screen and (max-width: 1024px){.awayz-flight-result .content .flight-detail:not(:first-of-type){padding:0 .5rem}}.awayz-flight-result .content .flight-detail p{font-size:.8rem}.awayz-flight-result .content .flight-detail p:first-of-type{font-size:.7rem;color:var(--text-light, rgba(37, 46, 52, .2509803922))}.awayz-flight-result .content .flight-detail p:last-of-type{font-weight:600}.awayz-flight-result .content .flight-detail p.chevron-text{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.awayz-flight-result .flight-details{display:grid;grid-template-rows:0fr;transition:all .2s ease-in-out;background-color:var(--foreground, #fff);border-top:1px solid var(--border, #e7eef3);border-width:0}.awayz-flight-result .flight-details.is-open{grid-template-rows:1fr;padding:1rem;border-top:1px solid var(--border, #e7eef3)}.awayz-flight-result .flight-details.is-open .inner{padding:1rem 0;scale:1;opacity:1}.awayz-flight-result .flight-details .inner{overflow:hidden;transition:all .2s ease-in-out;scale:.9;opacity:0;transform-origin:top center}.awayz-flight-result:hover{cursor:pointer}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@odynn/awayz-core";
|
|
3
3
|
import "@tanstack/react-query";
|
|
4
|
-
import { F as x } from "../../FlightResult-
|
|
4
|
+
import { F as x } from "../../FlightResult-Caes2vM3.js";
|
|
5
5
|
import "../../index-7zRjF0bU.js";
|
|
6
6
|
import "../../FlightItinerary-Dy-2zMYt.js";
|
|
7
|
-
import "../../enums-
|
|
7
|
+
import "../../enums-D9aZqf8G.js";
|
|
8
8
|
import "../../arrayExtensions-DFLvtO8l.js";
|
|
9
9
|
import "react";
|
|
10
10
|
import "../../moment-BGjjqtLQ.js";
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var s = /* @__PURE__ */ ((r) => (r.GET_AIRPORTS = "/flights/search/airports", r.CASH_FLIGHT_SEARCH = "/flights/search/one-way/cash", r.CASH_OUTBOUND_SEARCH = "/flights/search/multi/outbound", r.CASH_INBOUND_SEARCH = "/flights/search/multi/inbound", r.ROUND_TRIP_FARES = "/flights/search/multi/fares", r))(s || {}), a = /* @__PURE__ */ ((r) => (r.GET_AWARDS = "user/rewards", r.GET_USER_CARDS = "user/cards", r))(a || {});
|
|
1
|
+
var s = /* @__PURE__ */ ((r) => (r.GET_AIRPORTS = "/flights/search/airports", r.CASH_FLIGHT_SEARCH = "/flights/search/multi/one-way/cash/", r.CASH_POINTS_FLIGHT_SEARCH = "/flights/search/multi/one-way/points-cash/", r.CASH_OUTBOUND_SEARCH = "/flights/search/multi/outbound", r.CASH_INBOUND_SEARCH = "/flights/search/multi/inbound", r.ROUND_TRIP_FARES = "/flights/search/multi/fares", r))(s || {}), a = /* @__PURE__ */ ((r) => (r.GET_AWARDS = "user/rewards", r.GET_USER_CARDS = "user/cards", r))(a || {});
|
|
2
2
|
export {
|
|
3
3
|
s as EFlightEndpoint,
|
|
4
4
|
a as EWalletEndpoints
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var R = /* @__PURE__ */ ((S) => (S.LOCATIONS = "LOCATIONS", S.CHECK_USER = "CHECK_USER", S.USER_REGIONS = "USER_REGIONS", S.CONVERT_CURRENCY = "CONVERT_CURRENCY", S.CLIENT_COMPONENT_KEY = "CLIENT_COMPONENT_KEY", S.SEARCH_LIMIT = "SEARCH_LIMIT", S.PROGRAMS = "PROGRAMS", S.USER_PROGRAMS = "USER_PROGRAMS", S.LINKED_USER_PROGRAMS = "LINKED_USER_PROGRAMS", S.BANKS = "BANKS", S.CARDS = "CARDS", S.USER_CARDS = "USER_CARDS", S.TRIPS = "TRIPS", S.UNCATEGORISED_BOOKINGS = "UNCATEGORISED_BOOKINGS", S.BOOKING = "BOOKING", S.VALUE_CENTS = "VALUE_CENTS", S.AVAILABILITY_ALERTS = "AVAILABILITY_ALERTS", S.ALERT_NOTIFICATIONS = "ALERT_NOTIFICATIONS", S.POINTS_AS_CASH = "POINTS_AS_CASH", S))(R || {});
|
|
2
|
+
export {
|
|
3
|
+
R as E
|
|
4
|
+
};
|