@odynn/awayz-flights 0.10.13 → 0.10.14
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/utils/flightUtils.js +91 -88
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defaultAwayzConfig as Y, awayzClient as Q } from "@odynn/awayz-core";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { d as
|
|
3
|
+
import { d as q } from "../dateUtils-Cb9VQiIL.js";
|
|
4
4
|
import "../arrayExtensions-Ce8YopTP.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { h as y } from "../moment-BGjjqtLQ.js";
|
|
@@ -8,38 +8,38 @@ import { EFlightEndpoint as V } from "../constants/endpoints.js";
|
|
|
8
8
|
import { mapBaggageType as W } from "../hooks/useFlightSearch/useFlightSearch.types.js";
|
|
9
9
|
import { WalletService as J } from "../services/wallet/WalletService.js";
|
|
10
10
|
import { ERewardProgramCategories as X } from "../services/wallet/WalletService.types.js";
|
|
11
|
-
const f = "https://assets.duffel.com/img/airlines/for-light-background/full-color-lockup/",
|
|
12
|
-
var m, o, c, t,
|
|
13
|
-
const
|
|
11
|
+
const f = "https://assets.duffel.com/img/airlines/for-light-background/full-color-lockup/", Ce = (s) => s == null ? void 0 : s.map((e) => {
|
|
12
|
+
var m, o, c, t, i, p, l, n, r, u, d, g, b, F, A, L, w, h, D, P, I, k, T, O, R, _, v, E, M, N, $, z, G, Z, S, U;
|
|
13
|
+
const a = te(e);
|
|
14
14
|
return {
|
|
15
15
|
id: e.id,
|
|
16
16
|
points: (e == null ? void 0 : e.points) >= 0 ? e.points : -1,
|
|
17
17
|
partial: e == null ? void 0 : e.partial,
|
|
18
18
|
origin: {
|
|
19
19
|
city: ((m = e.slices[0].segments[0].origin) == null ? void 0 : m.cityName) || ((c = (o = e.slices[0].segments[0].origin) == null ? void 0 : o.city) == null ? void 0 : c.name) || "",
|
|
20
|
-
country: ((t = e.slices[0].segments[0].origin) == null ? void 0 : t.iataCountryCode) || ((
|
|
20
|
+
country: ((t = e.slices[0].segments[0].origin) == null ? void 0 : t.iataCountryCode) || ((p = (i = e.slices[0].segments[0].origin) == null ? void 0 : i.city) == null ? void 0 : p.iataCountryCode) || "",
|
|
21
21
|
airportCode: ((l = e.slices[0].segments[0].origin) == null ? void 0 : l.iataCode) || ((r = (n = e.slices[0].segments[0].origin) == null ? void 0 : n.city) == null ? void 0 : r.iataCode) || "",
|
|
22
22
|
coordinates: {
|
|
23
|
-
latitude: ((d = (
|
|
23
|
+
latitude: ((d = (u = e.slices[0].segments[0].origin) == null ? void 0 : u.city) == null ? void 0 : d.latitude) || 0,
|
|
24
24
|
longitude: ((b = (g = e.slices[0].segments[0].origin) == null ? void 0 : g.city) == null ? void 0 : b.longitude) || 0
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
destination: {
|
|
28
|
-
city: ((
|
|
29
|
-
country: ((
|
|
28
|
+
city: ((A = (F = e.slices[0].segments.getLast()) == null ? void 0 : F.destination) == null ? void 0 : A.cityName) || ((h = (w = (L = e.slices[0].segments.getLast()) == null ? void 0 : L.destination) == null ? void 0 : w.city) == null ? void 0 : h.name) || "",
|
|
29
|
+
country: ((P = (D = e.slices[0].segments.getLast()) == null ? void 0 : D.destination) == null ? void 0 : P.iataCountryCode) || ((T = (k = (I = e.slices[0].segments.getLast()) == null ? void 0 : I.destination) == null ? void 0 : k.city) == null ? void 0 : T.iataCountryCode) || "",
|
|
30
30
|
airportCode: ((R = (O = e.slices[0].segments.getLast()) == null ? void 0 : O.destination) == null ? void 0 : R.iataCode) || ((E = (v = (_ = e.slices[0].segments.getLast()) == null ? void 0 : _.destination) == null ? void 0 : v.city) == null ? void 0 : E.iataCode) || "",
|
|
31
31
|
coordinates: {
|
|
32
|
-
latitude: ((
|
|
33
|
-
longitude: ((
|
|
32
|
+
latitude: (($ = (N = (M = e.slices[0].segments.getLast()) == null ? void 0 : M.destination) == null ? void 0 : N.city) == null ? void 0 : $.latitude) || 0,
|
|
33
|
+
longitude: ((Z = (G = (z = e.slices[0].segments.getLast()) == null ? void 0 : z.destination) == null ? void 0 : G.city) == null ? void 0 : Z.longitude) || 0
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
// `airline` is an existing unqualified field; semantics are display-primary carrier.
|
|
37
|
-
airline: (
|
|
38
|
-
airlineLogo: C((
|
|
39
|
-
displayAirlineIataCode: (
|
|
37
|
+
airline: (a == null ? void 0 : a.name) ?? "",
|
|
38
|
+
airlineLogo: C((a == null ? void 0 : a.iataCode) ?? ""),
|
|
39
|
+
displayAirlineIataCode: (a == null ? void 0 : a.iataCode) ?? "",
|
|
40
40
|
cash: e.totalAmount ? parseFloat(e.totalAmount) : 0,
|
|
41
41
|
currency: e.baseCurrency,
|
|
42
|
-
flightNumber:
|
|
42
|
+
flightNumber: ee(e.slices[0].segments[0]),
|
|
43
43
|
awayzGroupId: e.slices[0].comparisonKey || e.awayzRouteId || e.awayzGroupId || e.id,
|
|
44
44
|
departureTime: y(e.slices[0].segments[0].departingAt).toDate(),
|
|
45
45
|
arrivalTime: y(
|
|
@@ -50,11 +50,11 @@ const f = "https://assets.duffel.com/img/airlines/for-light-background/full-colo
|
|
|
50
50
|
duration: e.slices[0].duration,
|
|
51
51
|
airlineProgram: e.airlineProgram,
|
|
52
52
|
paymentOptions: [],
|
|
53
|
-
durationMinutes:
|
|
53
|
+
durationMinutes: q({
|
|
54
54
|
departureTime: y(e.slices[0].segments[0].departingAt),
|
|
55
|
-
arrivalTime: y((
|
|
55
|
+
arrivalTime: y((S = e.slices[0].segments.getLast()) == null ? void 0 : S.arrivingAt),
|
|
56
56
|
originTimeZone: e.slices[0].segments[0].origin.timeZone,
|
|
57
|
-
destinationTimeZone: (
|
|
57
|
+
destinationTimeZone: (U = e.slices[0].segments.getLast()) == null ? void 0 : U.destination.timeZone,
|
|
58
58
|
duration: e.slices[0].duration
|
|
59
59
|
}),
|
|
60
60
|
cashFee: e.cashFee,
|
|
@@ -62,39 +62,42 @@ const f = "https://assets.duffel.com/img/airlines/for-light-background/full-colo
|
|
|
62
62
|
expiresAt: e.expiresAt,
|
|
63
63
|
transferPartners: e.partners
|
|
64
64
|
};
|
|
65
|
-
}),
|
|
66
|
-
const e = s.marketingCarrier ?? s.operatingCarrier,
|
|
67
|
-
return e.iataCode + " " +
|
|
68
|
-
}, ee = (s) => {
|
|
69
|
-
var i;
|
|
70
|
-
const e = (i = s == null ? void 0 : s.segments) == null ? void 0 : i[0];
|
|
71
|
-
return (e == null ? void 0 : e.marketingCarrier) ?? (e == null ? void 0 : e.operatingCarrier);
|
|
65
|
+
}), ee = (s) => {
|
|
66
|
+
const e = s.marketingCarrier ?? s.operatingCarrier, a = s.marketingCarrierFlightNumber ?? s.operatingCarrierFlightNumber;
|
|
67
|
+
return e.iataCode + " " + H(a);
|
|
72
68
|
}, se = (s) => {
|
|
69
|
+
var a;
|
|
70
|
+
const e = (a = s == null ? void 0 : s.segments) == null ? void 0 : a[0];
|
|
71
|
+
return (e == null ? void 0 : e.marketingCarrier) ?? (e == null ? void 0 : e.operatingCarrier);
|
|
72
|
+
}, te = (s) => {
|
|
73
73
|
var e;
|
|
74
|
-
return
|
|
75
|
-
},
|
|
74
|
+
return se((e = s == null ? void 0 : s.slices) == null ? void 0 : e[0]);
|
|
75
|
+
}, be = (s) => !s.operatingCarrier || !s.marketingCarrier ? "" : s.operatingCarrier.iataCode !== s.marketingCarrier.iataCode ? s.operatingCarrier.name : "", Fe = ({
|
|
76
76
|
originCode: s,
|
|
77
77
|
destinationCode: e,
|
|
78
|
-
dates:
|
|
78
|
+
dates: a,
|
|
79
79
|
cabinClass: m,
|
|
80
80
|
passengerCount: o,
|
|
81
81
|
paymentType: c
|
|
82
82
|
}) => {
|
|
83
83
|
let t = `${V.CASH_POINTS_FLIGHT_SEARCH}?`;
|
|
84
|
-
return t += `origin=${s}`, t += `&destination=${e}`, t += `&departure_dates=[${
|
|
85
|
-
},
|
|
84
|
+
return t += `origin=${s}`, t += `&destination=${e}`, t += `&departure_dates=[${a.map((i) => `"${i}"`).join(",")}]`, t += `&cabin_class=${m}`, t += `&adults=${o}`, t += `&cash_or_points=[${c}]`, t;
|
|
85
|
+
}, ae = (s) => s.flightDetails.slices[0].segments.map((a) => ie(a)).join("_") + "_" + y(s.departureTime).format("YYYYMMDD"), ie = (s) => {
|
|
86
|
+
const e = s.operatingCarrier ?? s.marketingCarrier, a = s.operatingCarrierFlightNumber ?? s.marketingCarrierFlightNumber;
|
|
87
|
+
return e.iataCode + " " + H(a);
|
|
88
|
+
}, Ae = (s) => s ? s.replace(/[_-]/g, " ").split(" ").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join(" ") : "", Le = (s) => {
|
|
86
89
|
const e = {};
|
|
87
90
|
s.forEach((t) => {
|
|
88
|
-
var
|
|
89
|
-
const
|
|
90
|
-
if (e[
|
|
91
|
-
const n =
|
|
92
|
-
e[
|
|
93
|
-
const { lowestCash: r, currency:
|
|
94
|
-
e[
|
|
91
|
+
var p, l;
|
|
92
|
+
const i = ae(t);
|
|
93
|
+
if (e[i]) {
|
|
94
|
+
const n = K(t);
|
|
95
|
+
e[i].flight.paymentOptions.push(n);
|
|
96
|
+
const { lowestCash: r, currency: u, lowestPoints: d, cashFee: g } = j(e[i].flight.paymentOptions);
|
|
97
|
+
e[i].flight.points = d, e[i].flight.cashFee = g, e[i].flight.cash = r, u && (e[i].flight.currency = u);
|
|
95
98
|
} else {
|
|
96
|
-
const { origin: n, destination: r } = t,
|
|
97
|
-
e[
|
|
99
|
+
const { origin: n, destination: r } = t, u = [K(t)], d = j(u);
|
|
100
|
+
e[i] = {
|
|
98
101
|
programs: [],
|
|
99
102
|
flight: {
|
|
100
103
|
id: t.awayzGroupId,
|
|
@@ -115,19 +118,19 @@ const f = "https://assets.duffel.com/img/airlines/for-light-background/full-colo
|
|
|
115
118
|
airlineLogo: t.airlineLogo,
|
|
116
119
|
displayAirlineIataCode: t.displayAirlineIataCode,
|
|
117
120
|
flightNumber: t.flightNumber,
|
|
118
|
-
paymentOptions:
|
|
121
|
+
paymentOptions: u,
|
|
119
122
|
numberOfStops: t.numberOfStops,
|
|
120
123
|
departureTime: t.departureTime,
|
|
121
124
|
arrivalTime: t.arrivalTime,
|
|
122
|
-
awayzGroupId:
|
|
125
|
+
awayzGroupId: i,
|
|
123
126
|
duration: t.duration,
|
|
124
127
|
airlineProgram: t.airlineProgram,
|
|
125
|
-
durationMinutes:
|
|
128
|
+
durationMinutes: q({
|
|
126
129
|
departureTime: y(
|
|
127
130
|
t.flightDetails.slices[0].segments[0].departingAt
|
|
128
131
|
),
|
|
129
132
|
arrivalTime: y(
|
|
130
|
-
(
|
|
133
|
+
(p = t.flightDetails.slices[0].segments.getLast()) == null ? void 0 : p.arrivingAt
|
|
131
134
|
),
|
|
132
135
|
originTimeZone: t.flightDetails.slices[0].segments[0].origin.timeZone,
|
|
133
136
|
destinationTimeZone: (l = t.flightDetails.slices[0].segments.getLast()) == null ? void 0 : l.destination.timeZone,
|
|
@@ -144,48 +147,48 @@ const f = "https://assets.duffel.com/img/airlines/for-light-background/full-colo
|
|
|
144
147
|
}
|
|
145
148
|
};
|
|
146
149
|
}
|
|
147
|
-
t.airlineProgram && !e[
|
|
150
|
+
t.airlineProgram && !e[i].programs.includes(t.airlineProgram) && e[i].programs.push(t.airlineProgram);
|
|
148
151
|
});
|
|
149
|
-
const
|
|
152
|
+
const a = [];
|
|
150
153
|
Object.values(e).forEach((t) => {
|
|
151
|
-
const
|
|
154
|
+
const i = t.flight.paymentOptions.filter((n) => n.cash > 0).reduce(
|
|
152
155
|
(n, r) => r.cash < n.cash ? r : n,
|
|
153
156
|
{ cash: 1 / 0, carrier: { name: "", iataCode: "" } }
|
|
154
|
-
),
|
|
157
|
+
), p = {
|
|
155
158
|
iataCode: t.flight.displayAirlineIataCode,
|
|
156
159
|
name: t.flight.airline
|
|
157
|
-
}, l =
|
|
160
|
+
}, l = i.cash !== 1 / 0 ? i.carrier : p;
|
|
158
161
|
t.programs.length > 0 ? t.programs.forEach((n) => {
|
|
159
162
|
const r = t.flight.paymentOptions.filter(
|
|
160
163
|
(d) => d.program === n && d.points > 0
|
|
161
|
-
),
|
|
162
|
-
|
|
164
|
+
), u = r.length > 0 ? Math.min(...r.map((d) => d.points)) : -1;
|
|
165
|
+
a.push({
|
|
163
166
|
...t.flight,
|
|
164
167
|
airline: l.name,
|
|
165
168
|
airlineLogo: C(l.iataCode),
|
|
166
169
|
displayAirlineIataCode: l.iataCode,
|
|
167
170
|
airlineProgram: n,
|
|
168
|
-
cash:
|
|
169
|
-
points:
|
|
171
|
+
cash: i.cash !== 1 / 0 ? i.cash : -1,
|
|
172
|
+
points: u
|
|
170
173
|
});
|
|
171
|
-
}) :
|
|
174
|
+
}) : a.push({
|
|
172
175
|
...t.flight,
|
|
173
176
|
airline: l.name,
|
|
174
177
|
airlineLogo: C(l.iataCode),
|
|
175
178
|
displayAirlineIataCode: l.iataCode,
|
|
176
|
-
cash:
|
|
179
|
+
cash: i.cash !== 1 / 0 ? i.cash : -1
|
|
177
180
|
});
|
|
178
181
|
});
|
|
179
|
-
const { cashlessResults: m, otherResults: o } =
|
|
180
|
-
(t,
|
|
182
|
+
const { cashlessResults: m, otherResults: o } = a.reduce(
|
|
183
|
+
(t, i) => (i.cash <= 0 && i.points > 0 ? t.cashlessResults.push(i) : i.cash > 0 && t.otherResults.push(i), t),
|
|
181
184
|
{ cashlessResults: [], otherResults: [] }
|
|
182
185
|
), c = [...o];
|
|
183
186
|
return m.forEach((t) => {
|
|
184
187
|
(!c.find(
|
|
185
|
-
(
|
|
188
|
+
(p) => p.awayzGroupId === t.awayzGroupId
|
|
186
189
|
) || o.length === 0) && c.push(t);
|
|
187
190
|
}), c;
|
|
188
|
-
},
|
|
191
|
+
}, H = (s) => s ? s.replace(/^0+/, "") : "", we = (s) => `https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/${s}.svg`, C = (s) => `${f}${s}.svg`, B = Y.logoFallbackImageUrl, x = {
|
|
189
192
|
categoryLogo: B,
|
|
190
193
|
programLogo: B,
|
|
191
194
|
awayzActive: [],
|
|
@@ -197,28 +200,28 @@ const f = "https://assets.duffel.com/img/airlines/for-light-background/full-colo
|
|
|
197
200
|
colour: "#fff",
|
|
198
201
|
// Using App Foreground Colour
|
|
199
202
|
url: "https://www.odynn.com"
|
|
200
|
-
},
|
|
203
|
+
}, he = async (s) => {
|
|
201
204
|
const { airlines: e } = await Q.ensureQueryData({
|
|
202
205
|
queryKey: ["walletAwards"],
|
|
203
206
|
queryFn: J.getAwards,
|
|
204
207
|
staleTime: 864e5
|
|
205
208
|
// 24 hours
|
|
206
209
|
});
|
|
207
|
-
let
|
|
210
|
+
let a = e.find(
|
|
208
211
|
(m) => {
|
|
209
|
-
var o, c, t,
|
|
210
|
-
return ((c = (o = m.mainProgram) == null ? void 0 : o.toLowerCase()) == null ? void 0 : c.includes(s == null ? void 0 : s.toLowerCase())) || ((
|
|
212
|
+
var o, c, t, i;
|
|
213
|
+
return ((c = (o = m.mainProgram) == null ? void 0 : o.toLowerCase()) == null ? void 0 : c.includes(s == null ? void 0 : s.toLowerCase())) || ((i = (t = m.displayProgram) == null ? void 0 : t.toLowerCase()) == null ? void 0 : i.includes(s == null ? void 0 : s.toLowerCase()));
|
|
211
214
|
}
|
|
212
215
|
) ?? x;
|
|
213
|
-
return
|
|
216
|
+
return a || (a = {
|
|
214
217
|
...x,
|
|
215
218
|
mainProgram: s,
|
|
216
219
|
displayProgram: s,
|
|
217
220
|
id: s
|
|
218
|
-
}),
|
|
219
|
-
},
|
|
220
|
-
var o, c, t,
|
|
221
|
-
const e = ((t = (c = (o = s.flightDetails.slices.getFirst()) == null ? void 0 : o.segments.getFirst()) == null ? void 0 : c.passengers.getFirst()) == null ? void 0 : t.baggages) ?? [],
|
|
221
|
+
}), a;
|
|
222
|
+
}, K = (s) => {
|
|
223
|
+
var o, c, t, i, p, l, n, r, u, d;
|
|
224
|
+
const e = ((t = (c = (o = s.flightDetails.slices.getFirst()) == null ? void 0 : o.segments.getFirst()) == null ? void 0 : c.passengers.getFirst()) == null ? void 0 : t.baggages) ?? [], a = ((l = (p = (i = s.flightDetails.slices.getFirst()) == null ? void 0 : i.segments.getFirst()) == null ? void 0 : p.passengers.getFirst()) == null ? void 0 : l.cabinClassMarketingName) ?? ((u = (r = (n = s.flightDetails.slices.getFirst()) == null ? void 0 : n.segments.getFirst()) == null ? void 0 : r.passengers.getFirst()) == null ? void 0 : u.cabinClass), m = e.map(
|
|
222
225
|
(g) => ({
|
|
223
226
|
type: W(g.type),
|
|
224
227
|
quantity: g.quantity
|
|
@@ -231,7 +234,7 @@ const f = "https://assets.duffel.com/img/airlines/for-light-background/full-colo
|
|
|
231
234
|
program: s.airlineProgram,
|
|
232
235
|
baseCurrency: s.flightDetails.baseCurrency,
|
|
233
236
|
fareBrandName: ((d = s.flightDetails.slices.getFirst()) == null ? void 0 : d.fareBrandName) ?? "",
|
|
234
|
-
cabinClass:
|
|
237
|
+
cabinClass: a,
|
|
235
238
|
cashFee: s.cashFee,
|
|
236
239
|
conditions: s.flightDetails.conditions,
|
|
237
240
|
baggages: m,
|
|
@@ -241,15 +244,15 @@ const f = "https://assets.duffel.com/img/airlines/for-light-background/full-colo
|
|
|
241
244
|
name: s.airline
|
|
242
245
|
}
|
|
243
246
|
};
|
|
244
|
-
},
|
|
247
|
+
}, j = (s) => {
|
|
245
248
|
const e = s.filter((t) => t.cash > 0);
|
|
246
|
-
let
|
|
249
|
+
let a = { cash: 1 / 0, baseCurrency: "" };
|
|
247
250
|
for (const t of e)
|
|
248
|
-
t.cash <
|
|
251
|
+
t.cash < a.cash && (a = t);
|
|
249
252
|
const o = [...s].filter(
|
|
250
253
|
(t) => t.points > 0
|
|
251
254
|
).reduce(
|
|
252
|
-
(t,
|
|
255
|
+
(t, i) => i.points < t.points ? i : t,
|
|
253
256
|
{
|
|
254
257
|
points: 1 / 0,
|
|
255
258
|
cashFee: {
|
|
@@ -257,14 +260,14 @@ const f = "https://assets.duffel.com/img/airlines/for-light-background/full-colo
|
|
|
257
260
|
currency: ""
|
|
258
261
|
}
|
|
259
262
|
}
|
|
260
|
-
), c =
|
|
263
|
+
), c = a.cash;
|
|
261
264
|
return {
|
|
262
265
|
lowestCash: c === 1 / 0 ? -1 : c,
|
|
263
266
|
lowestPoints: o.points === 1 / 0 ? -1 : o.points,
|
|
264
267
|
cashFee: o.cashFee,
|
|
265
|
-
currency:
|
|
268
|
+
currency: a.baseCurrency === "" ? null : a.baseCurrency
|
|
266
269
|
};
|
|
267
|
-
},
|
|
270
|
+
}, ne = (s) => [
|
|
268
271
|
...Array.from({ length: s.adults }, () => ({
|
|
269
272
|
type: "adult"
|
|
270
273
|
/* ADULT */
|
|
@@ -274,29 +277,29 @@ const f = "https://assets.duffel.com/img/airlines/for-light-background/full-colo
|
|
|
274
277
|
/* CHILD */
|
|
275
278
|
}))
|
|
276
279
|
], De = (s) => {
|
|
277
|
-
const
|
|
280
|
+
const a = {
|
|
278
281
|
adults: (s == null ? void 0 : s.adults) ?? 1,
|
|
279
282
|
children: (s == null ? void 0 : s.children) ?? 0
|
|
280
|
-
}, m =
|
|
283
|
+
}, m = ne(a);
|
|
281
284
|
return {
|
|
282
|
-
passengerCount:
|
|
285
|
+
passengerCount: a.adults + a.children,
|
|
283
286
|
passengerList: m
|
|
284
287
|
};
|
|
285
288
|
};
|
|
286
289
|
export {
|
|
287
290
|
x as DEFAULT_AIRLINE_PROGRAM,
|
|
288
|
-
|
|
289
|
-
|
|
291
|
+
Fe as buildFlightSearchQuery,
|
|
292
|
+
ne as buildPassengerArray,
|
|
290
293
|
Ae as formatCabinClass,
|
|
291
|
-
|
|
292
|
-
|
|
294
|
+
he as getAirlineProgram,
|
|
295
|
+
ee as getFlightNumber,
|
|
293
296
|
C as getFullLogoPath,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
297
|
+
we as getLogoPath,
|
|
298
|
+
be as getOperatedBy,
|
|
299
|
+
te as getPrimaryDisplayCarrierForFlightOffer,
|
|
300
|
+
se as getPrimaryDisplayCarrierForSlice,
|
|
301
|
+
Le as groupFlightResults,
|
|
302
|
+
Ce as mapDataToFlightDetails,
|
|
300
303
|
De as passengerValues,
|
|
301
|
-
|
|
304
|
+
H as removeLeadingZeros
|
|
302
305
|
};
|