@odynn/awayz-flights 0.5.3 → 0.5.4
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/{FlightItinerary-DpHeFZIB.js → FlightItinerary-Dy-2zMYt.js} +127 -136
- package/dist/{FlightResult-CXnpILXI.js → FlightResult-CBvQEtrI.js} +99 -102
- package/dist/components/FlightItinerary/FlightItinerary.js +1 -1
- package/dist/components/FlightResult/FlightResult.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/main.js +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
2
|
-
import { c as B, a as
|
|
1
|
+
import { jsxs as n, jsx as m, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { c as B, a as w, b as V, D as Q } from "./index-7zRjF0bU.js";
|
|
3
3
|
import { l as X } from "./arrayExtensions-DFLvtO8l.js";
|
|
4
|
-
import
|
|
5
|
-
import { h as
|
|
4
|
+
import h, { useMemo as K } from "react";
|
|
5
|
+
import { h as P } from "./moment-BGjjqtLQ.js";
|
|
6
6
|
import { useTranslation as $ } from "react-i18next";
|
|
7
|
-
import './assets/FlightItinerary.css';const
|
|
7
|
+
import './assets/FlightItinerary.css';const D = (t) => {
|
|
8
8
|
var e;
|
|
9
9
|
if (!t) return "";
|
|
10
10
|
try {
|
|
@@ -13,24 +13,24 @@ import './assets/FlightItinerary.css';const gt = (t, e, r = e + "s") => t === 1
|
|
|
13
13
|
return console.error(r), "";
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
var
|
|
16
|
+
var O = /* @__PURE__ */ ((t) => (t.USStringDateFormat = "MMM DD, YYYY", t.USStringDateTimeFormat = "MMM DD, YYYY, h:mm A (z)", t.FlightShortDate = "MMM DD - h:mm A", t.FlightTime = "h:mm A", t.DateFormat = "MM/DD", t.StringDateFormat = "MMM DD", t.FullDateFormat = "MM/DD/YYYY", t.ServerDate = "YYYY-MM-DD", t.GoogleDateFormat = "YYYYMMDDTHHmmssZ", t.AppleDateFormat = "YYYYMMDDTHHmmss", t.USStringDateWithTimeFormat = "MMM DD, YYYY, h:mm A", t))(O || {}), S = /* @__PURE__ */ ((t) => (t.ISO = "dates:iso", t.DISPLAY_SHORT = "dates:displayShort", t.DISPLAY_MEDIUM = "dates:displayMedium", t.DISPLAY_LONG = "dates:displayLong", t.DISPLAY_FULL = "dates:displayFull", t.DISPLAY_SHORT_WITH_YEAR = "dates:displayShortWithYear", t.DISPLAY_MEDIUM_WITH_YEAR = "dates:displayMediumWithYear", t.DISPLAY_LONG_WITH_YEAR = "dates:displayLongWithYear", t.DISPLAY_FULL_WITH_YEAR = "dates:displayFullWithYear", t.DATE_TIME_SHORT = "dates:dateTimeShort", t.DATE_TIME_MEDIUM = "dates:dateTimeMedium", t.DATE_TIME_LONG = "dates:dateTimeLong", t.DATE_TIME_FULL = "dates:dateTimeFull", t.DATE_TIME_SHORT_WITH_YEAR = "dates:dateTimeShortWithYear", t.DATE_TIME_MEDIUM_WITH_YEAR = "dates:dateTimeMediumWithYear", t.DATE_TIME_LONG_WITH_YEAR = "dates:dateTimeLongWithYear", t.DATE_TIME_FULL_WITH_YEAR = "dates:dateTimeFullWithYear", t.TIME_ONLY = "dates:timeOnly", t.TIME_WITH_SECONDS = "dates:timeWithSeconds", t))(S || {}), k = {
|
|
17
17
|
color: void 0,
|
|
18
18
|
size: void 0,
|
|
19
19
|
className: void 0,
|
|
20
20
|
style: void 0,
|
|
21
21
|
attr: void 0
|
|
22
|
-
}, U =
|
|
23
|
-
function
|
|
22
|
+
}, U = h.createContext && /* @__PURE__ */ h.createContext(k), tt = ["attr", "size", "title"];
|
|
23
|
+
function et(t, e) {
|
|
24
24
|
if (t == null) return {};
|
|
25
|
-
var r =
|
|
25
|
+
var r = rt(t, e), i, o;
|
|
26
26
|
if (Object.getOwnPropertySymbols) {
|
|
27
|
-
var
|
|
28
|
-
for (o = 0; o <
|
|
29
|
-
i =
|
|
27
|
+
var d = Object.getOwnPropertySymbols(t);
|
|
28
|
+
for (o = 0; o < d.length; o++)
|
|
29
|
+
i = d[o], !(e.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(t, i) && (r[i] = t[i]);
|
|
30
30
|
}
|
|
31
31
|
return r;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function rt(t, e) {
|
|
34
34
|
if (t == null) return {};
|
|
35
35
|
var r = {};
|
|
36
36
|
for (var i in t)
|
|
@@ -50,7 +50,7 @@ function F() {
|
|
|
50
50
|
return t;
|
|
51
51
|
}, F.apply(this, arguments);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function x(t, e) {
|
|
54
54
|
var r = Object.keys(t);
|
|
55
55
|
if (Object.getOwnPropertySymbols) {
|
|
56
56
|
var i = Object.getOwnPropertySymbols(t);
|
|
@@ -63,22 +63,22 @@ function z(t, e) {
|
|
|
63
63
|
function j(t) {
|
|
64
64
|
for (var e = 1; e < arguments.length; e++) {
|
|
65
65
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
66
|
-
e % 2 ?
|
|
67
|
-
|
|
68
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) :
|
|
66
|
+
e % 2 ? x(Object(r), !0).forEach(function(i) {
|
|
67
|
+
it(t, i, r[i]);
|
|
68
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : x(Object(r)).forEach(function(i) {
|
|
69
69
|
Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(r, i));
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
return t;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return e =
|
|
74
|
+
function it(t, e, r) {
|
|
75
|
+
return e = at(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
var e =
|
|
77
|
+
function at(t) {
|
|
78
|
+
var e = nt(t, "string");
|
|
79
79
|
return typeof e == "symbol" ? e : e + "";
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function nt(t, e) {
|
|
82
82
|
if (typeof t != "object" || !t) return t;
|
|
83
83
|
var r = t[Symbol.toPrimitive];
|
|
84
84
|
if (r !== void 0) {
|
|
@@ -89,92 +89,92 @@ function ot(t, e) {
|
|
|
89
89
|
return (e === "string" ? String : Number)(t);
|
|
90
90
|
}
|
|
91
91
|
function q(t) {
|
|
92
|
-
return t && t.map((e, r) => /* @__PURE__ */
|
|
92
|
+
return t && t.map((e, r) => /* @__PURE__ */ h.createElement(e.tag, j({
|
|
93
93
|
key: r
|
|
94
94
|
}, e.attr), q(e.child)));
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
return (e) => /* @__PURE__ */
|
|
96
|
+
function W(t) {
|
|
97
|
+
return (e) => /* @__PURE__ */ h.createElement(ot, F({
|
|
98
98
|
attr: j({}, t.attr)
|
|
99
99
|
}, e), q(t.child));
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function ot(t) {
|
|
102
102
|
var e = (r) => {
|
|
103
103
|
var {
|
|
104
104
|
attr: i,
|
|
105
105
|
size: o,
|
|
106
|
-
title:
|
|
107
|
-
} = t, f =
|
|
108
|
-
return r.className && (
|
|
106
|
+
title: d
|
|
107
|
+
} = t, f = et(t, tt), s = o || r.size || "1em", l;
|
|
108
|
+
return r.className && (l = r.className), t.className && (l = (l ? l + " " : "") + t.className), /* @__PURE__ */ h.createElement("svg", F({
|
|
109
109
|
stroke: "currentColor",
|
|
110
110
|
fill: "currentColor",
|
|
111
111
|
strokeWidth: "0"
|
|
112
112
|
}, r.attr, i, f, {
|
|
113
|
-
className:
|
|
113
|
+
className: l,
|
|
114
114
|
style: j(j({
|
|
115
115
|
color: t.color || r.color
|
|
116
116
|
}, r.style), t.style),
|
|
117
|
-
height:
|
|
118
|
-
width:
|
|
117
|
+
height: s,
|
|
118
|
+
width: s,
|
|
119
119
|
xmlns: "http://www.w3.org/2000/svg"
|
|
120
|
-
}),
|
|
120
|
+
}), d && /* @__PURE__ */ h.createElement("title", null, d), t.children);
|
|
121
121
|
};
|
|
122
|
-
return U !== void 0 ? /* @__PURE__ */
|
|
122
|
+
return U !== void 0 ? /* @__PURE__ */ h.createElement(U.Consumer, null, (r) => e(r)) : e(k);
|
|
123
123
|
}
|
|
124
124
|
function J(t) {
|
|
125
|
-
return
|
|
125
|
+
return W({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z" }, child: [] }] })(t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
127
|
+
function gt(t) {
|
|
128
|
+
return W({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" }, child: [] }] })(t);
|
|
129
129
|
}
|
|
130
130
|
function lt(t) {
|
|
131
|
-
return
|
|
131
|
+
return W({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z" }, child: [] }] })(t);
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const ht = ({
|
|
134
134
|
itinerary: t,
|
|
135
135
|
origin: e,
|
|
136
136
|
destination: r,
|
|
137
137
|
onDisableRenderItinerary: i,
|
|
138
138
|
isMultiDayFlight: o
|
|
139
139
|
}) => {
|
|
140
|
-
var
|
|
141
|
-
const
|
|
142
|
-
var
|
|
143
|
-
const a = (
|
|
140
|
+
var s, l, I, C, L, v;
|
|
141
|
+
const d = () => {
|
|
142
|
+
var u, g;
|
|
143
|
+
const a = (g = (u = t[0]) == null ? void 0 : u.passengers) == null ? void 0 : g[0];
|
|
144
144
|
return (a == null ? void 0 : a.cabinClassMarketingName) ?? (a == null ? void 0 : a.cabinClass);
|
|
145
145
|
}, f = K(() => {
|
|
146
|
-
var
|
|
146
|
+
var u, g, T, M, Y, _, A, b, Z, H, E;
|
|
147
147
|
const a = [];
|
|
148
|
-
for (let
|
|
149
|
-
const p = t[
|
|
150
|
-
if (!
|
|
148
|
+
for (let N = 0; N < t.length; N++) {
|
|
149
|
+
const p = t[N], c = t[N + 1];
|
|
150
|
+
if (!c)
|
|
151
151
|
break;
|
|
152
152
|
const y = {
|
|
153
153
|
arrival: {
|
|
154
|
-
airport: (
|
|
155
|
-
city: ((
|
|
156
|
-
country:
|
|
154
|
+
airport: (u = p.destination) == null ? void 0 : u.name,
|
|
155
|
+
city: ((g = p.destination) == null ? void 0 : g.cityName) ?? ((M = (T = p.destination) == null ? void 0 : T.city) == null ? void 0 : M.name),
|
|
156
|
+
country: D((Y = p.destination) == null ? void 0 : Y.iataCountryCode),
|
|
157
157
|
time: p.arrivingAt,
|
|
158
158
|
arrivalTimeZone: p.destination.timeZone
|
|
159
159
|
},
|
|
160
160
|
departure: {
|
|
161
|
-
airport: (_ =
|
|
162
|
-
city: ((
|
|
163
|
-
country:
|
|
164
|
-
time:
|
|
165
|
-
airline:
|
|
166
|
-
airlineCode:
|
|
167
|
-
aircraft: (E =
|
|
168
|
-
flightNumber:
|
|
169
|
-
cabin:
|
|
170
|
-
departureTimeZone:
|
|
161
|
+
airport: (_ = c.origin) == null ? void 0 : _.name,
|
|
162
|
+
city: ((A = c.origin) == null ? void 0 : A.cityName) ?? ((Z = (b = c.origin) == null ? void 0 : b.city) == null ? void 0 : Z.name),
|
|
163
|
+
country: D((H = p.destination) == null ? void 0 : H.iataCountryCode),
|
|
164
|
+
time: c.departingAt,
|
|
165
|
+
airline: c.operatingCarrier.name,
|
|
166
|
+
airlineCode: c.operatingCarrier.iataCode,
|
|
167
|
+
aircraft: (E = c.aircraft) == null ? void 0 : E.name,
|
|
168
|
+
flightNumber: c.operatingCarrierFlightNumber,
|
|
169
|
+
cabin: c.passengers[0].cabinClassMarketingName ?? c.passengers[0].cabinClass ?? d(),
|
|
170
|
+
departureTimeZone: c.origin.timeZone
|
|
171
171
|
},
|
|
172
172
|
layoverTime: B({
|
|
173
173
|
// we need to swap around the departure and arrival times
|
|
174
174
|
departureAt: p.arrivingAt,
|
|
175
175
|
departureTimeZone: p.destination.timeZone,
|
|
176
|
-
arrivalAt:
|
|
177
|
-
arrivalTimeZone:
|
|
176
|
+
arrivalAt: c.departingAt,
|
|
177
|
+
arrivalTimeZone: c.origin.timeZone
|
|
178
178
|
})
|
|
179
179
|
};
|
|
180
180
|
y.layoverTime <= 0 && (i == null || i()), a.push(y);
|
|
@@ -182,28 +182,27 @@ const Tt = ({
|
|
|
182
182
|
return a;
|
|
183
183
|
}, [t]);
|
|
184
184
|
return /* @__PURE__ */ n("div", { className: "flight-itinerary", children: [
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
|
|
185
|
+
/* @__PURE__ */ m(
|
|
186
|
+
z,
|
|
187
187
|
{
|
|
188
188
|
airport: t[0].origin.name,
|
|
189
189
|
city: e.city,
|
|
190
|
-
country:
|
|
190
|
+
country: D(e.country),
|
|
191
191
|
departureAt: t[0].departingAt,
|
|
192
192
|
departureTimeZone: t[0].origin.timeZone,
|
|
193
193
|
arrivalAt: t[0].arrivingAt,
|
|
194
194
|
arrivalTimeZone: t[0].destination.timeZone,
|
|
195
195
|
airline: t[0].operatingCarrier.name,
|
|
196
196
|
airlineCode: t[0].operatingCarrier.iataCode,
|
|
197
|
-
aircraft: (
|
|
197
|
+
aircraft: (s = t[0].aircraft) == null ? void 0 : s.name,
|
|
198
198
|
flightNumber: t[0].operatingCarrierFlightNumber,
|
|
199
|
-
cabin: s(),
|
|
200
199
|
isMultiDayFlight: o
|
|
201
200
|
}
|
|
202
201
|
),
|
|
203
|
-
f.map((a,
|
|
204
|
-
var
|
|
205
|
-
return /* @__PURE__ */ n(
|
|
206
|
-
/* @__PURE__ */
|
|
202
|
+
f.map((a, u) => {
|
|
203
|
+
var g, T, M, Y, _, A, b;
|
|
204
|
+
return /* @__PURE__ */ n(h.Fragment, { children: [
|
|
205
|
+
/* @__PURE__ */ m(
|
|
207
206
|
R,
|
|
208
207
|
{
|
|
209
208
|
airport: a.arrival.airport,
|
|
@@ -212,94 +211,92 @@ const Tt = ({
|
|
|
212
211
|
time: a.arrival.time,
|
|
213
212
|
isLayover: !0,
|
|
214
213
|
layoverTime: V(a.layoverTime),
|
|
215
|
-
arrivalTimeZone:
|
|
214
|
+
arrivalTimeZone: w(
|
|
216
215
|
a.arrival.arrivalTimeZone,
|
|
217
216
|
a.arrival.time
|
|
218
217
|
)
|
|
219
218
|
}
|
|
220
219
|
),
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
|
|
220
|
+
/* @__PURE__ */ m(
|
|
221
|
+
z,
|
|
223
222
|
{
|
|
224
|
-
airport: (
|
|
225
|
-
city: (
|
|
223
|
+
airport: (g = a.departure) == null ? void 0 : g.airport,
|
|
224
|
+
city: (T = a.departure) == null ? void 0 : T.city,
|
|
226
225
|
country: (M = a.departure) == null ? void 0 : M.country,
|
|
227
226
|
departureAt: a.departure.time,
|
|
228
227
|
departureTimeZone: a.departure.departureTimeZone,
|
|
229
|
-
arrivalAt: t[
|
|
230
|
-
arrivalTimeZone: t[
|
|
228
|
+
arrivalAt: t[u + 1].arrivingAt,
|
|
229
|
+
arrivalTimeZone: t[u + 1].destination.timeZone,
|
|
231
230
|
airline: (Y = a.departure) == null ? void 0 : Y.airline,
|
|
232
231
|
airlineCode: (_ = a.departure) == null ? void 0 : _.airlineCode,
|
|
233
|
-
aircraft: (
|
|
234
|
-
flightNumber: (
|
|
235
|
-
cabin: (O = a.departure) == null ? void 0 : O.cabin
|
|
232
|
+
aircraft: (A = a.departure) == null ? void 0 : A.aircraft,
|
|
233
|
+
flightNumber: (b = a.departure) == null ? void 0 : b.flightNumber
|
|
236
234
|
}
|
|
237
235
|
)
|
|
238
|
-
] }, a.departure.flightNumber ||
|
|
236
|
+
] }, a.departure.flightNumber || u);
|
|
239
237
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ m(
|
|
241
239
|
R,
|
|
242
240
|
{
|
|
243
|
-
airport: (
|
|
241
|
+
airport: (I = (l = t.getLast()) == null ? void 0 : l.destination) == null ? void 0 : I.name,
|
|
244
242
|
city: r.city,
|
|
245
|
-
country:
|
|
246
|
-
time: (
|
|
247
|
-
arrivalTimeZone:
|
|
243
|
+
country: D(r.country),
|
|
244
|
+
time: (C = t.getLast()) == null ? void 0 : C.arrivingAt,
|
|
245
|
+
arrivalTimeZone: w(
|
|
248
246
|
(L = t.getLast()) == null ? void 0 : L.destination.timeZone,
|
|
249
|
-
(
|
|
247
|
+
(v = t.getLast()) == null ? void 0 : v.arrivingAt
|
|
250
248
|
),
|
|
251
249
|
isMultiDayFlight: o
|
|
252
250
|
}
|
|
253
251
|
)
|
|
254
252
|
] });
|
|
255
|
-
},
|
|
253
|
+
}, z = ({
|
|
256
254
|
airport: t,
|
|
257
255
|
city: e,
|
|
258
256
|
country: r,
|
|
259
257
|
airline: i,
|
|
260
258
|
airlineCode: o,
|
|
261
|
-
flightNumber:
|
|
259
|
+
flightNumber: d,
|
|
262
260
|
aircraft: f,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
departureTimeZone: T,
|
|
261
|
+
departureAt: s,
|
|
262
|
+
departureTimeZone: l,
|
|
266
263
|
arrivalAt: I,
|
|
267
|
-
arrivalTimeZone:
|
|
268
|
-
isMultiDayFlight:
|
|
264
|
+
arrivalTimeZone: C,
|
|
265
|
+
isMultiDayFlight: L
|
|
269
266
|
}) => {
|
|
270
|
-
const { t:
|
|
271
|
-
departureAt:
|
|
272
|
-
departureTimeZone:
|
|
267
|
+
const { t: v } = $(), a = B({
|
|
268
|
+
departureAt: s,
|
|
269
|
+
departureTimeZone: l,
|
|
273
270
|
arrivalAt: I,
|
|
274
|
-
arrivalTimeZone:
|
|
271
|
+
arrivalTimeZone: C
|
|
275
272
|
});
|
|
276
273
|
return /* @__PURE__ */ n("div", { className: "departure", children: [
|
|
277
274
|
/* @__PURE__ */ n("p", { children: [
|
|
278
|
-
|
|
279
|
-
|
|
275
|
+
P(s).format(
|
|
276
|
+
v(S.TIME_ONLY, O.FlightTime)
|
|
280
277
|
),
|
|
281
278
|
" ",
|
|
282
279
|
/* @__PURE__ */ n("span", { className: "time-zone", children: [
|
|
283
280
|
"(",
|
|
284
|
-
|
|
281
|
+
w(l, s),
|
|
285
282
|
")"
|
|
286
283
|
] }),
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
-
|
|
289
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ m("br", {}),
|
|
285
|
+
L ? /* @__PURE__ */ n("div", { className: "travel-time", children: [
|
|
286
|
+
/* @__PURE__ */ m(J, {}),
|
|
290
287
|
/* @__PURE__ */ n("span", { children: [
|
|
291
288
|
"Departure:",
|
|
292
289
|
" ",
|
|
293
|
-
|
|
294
|
-
|
|
290
|
+
P(s).format(
|
|
291
|
+
v(S.DISPLAY_MEDIUM, O.StringDateFormat)
|
|
295
292
|
)
|
|
296
293
|
] })
|
|
297
|
-
] }) : /* @__PURE__ */
|
|
294
|
+
] }) : /* @__PURE__ */ m(G, {}),
|
|
298
295
|
/* @__PURE__ */ n("div", { className: "travel-time", children: [
|
|
299
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ m(lt, {}),
|
|
300
297
|
/* @__PURE__ */ n("span", { children: [
|
|
301
298
|
"Travel Time: ",
|
|
302
|
-
V(
|
|
299
|
+
V(a)
|
|
303
300
|
] })
|
|
304
301
|
] })
|
|
305
302
|
] }),
|
|
@@ -311,23 +308,18 @@ const Tt = ({
|
|
|
311
308
|
", ",
|
|
312
309
|
r
|
|
313
310
|
] }),
|
|
314
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ m("img", { src: `${Q}${o}.svg`, alt: i }),
|
|
315
312
|
/* @__PURE__ */ n("p", { children: [
|
|
316
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ m("strong", { children: "Aircraft:" }),
|
|
317
314
|
" ",
|
|
318
315
|
f
|
|
319
316
|
] }),
|
|
320
317
|
/* @__PURE__ */ n("p", { children: [
|
|
321
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ m("strong", { children: "Flight:" }),
|
|
322
319
|
" ",
|
|
323
320
|
o,
|
|
324
321
|
" ",
|
|
325
|
-
|
|
326
|
-
] }),
|
|
327
|
-
/* @__PURE__ */ n("p", { children: [
|
|
328
|
-
/* @__PURE__ */ l("strong", { children: "Cabin:" }),
|
|
329
|
-
" ",
|
|
330
|
-
tt(u ?? "")
|
|
322
|
+
d
|
|
331
323
|
] })
|
|
332
324
|
] })
|
|
333
325
|
] });
|
|
@@ -337,30 +329,30 @@ const Tt = ({
|
|
|
337
329
|
country: r,
|
|
338
330
|
time: i,
|
|
339
331
|
isLayover: o,
|
|
340
|
-
layoverTime:
|
|
332
|
+
layoverTime: d,
|
|
341
333
|
arrivalTimeZone: f,
|
|
342
|
-
isMultiDayFlight:
|
|
334
|
+
isMultiDayFlight: s
|
|
343
335
|
}) => {
|
|
344
|
-
const { t:
|
|
336
|
+
const { t: l } = $("dates");
|
|
345
337
|
return /* @__PURE__ */ n("div", { className: `arrival ${o ? "layover" : ""}`, children: [
|
|
346
338
|
/* @__PURE__ */ n("p", { children: [
|
|
347
|
-
|
|
339
|
+
P(i).format(l(S.TIME_ONLY, O.FlightTime)),
|
|
348
340
|
" ",
|
|
349
341
|
/* @__PURE__ */ n("span", { className: "time-zone", children: [
|
|
350
342
|
"(",
|
|
351
343
|
f,
|
|
352
344
|
")"
|
|
353
345
|
] }),
|
|
354
|
-
|
|
355
|
-
/* @__PURE__ */
|
|
346
|
+
s && !o ? /* @__PURE__ */ n("div", { className: "travel-time", children: [
|
|
347
|
+
/* @__PURE__ */ m(J, {}),
|
|
356
348
|
/* @__PURE__ */ n("span", { children: [
|
|
357
349
|
"Arrival:",
|
|
358
350
|
" ",
|
|
359
|
-
|
|
360
|
-
|
|
351
|
+
P(i).format(
|
|
352
|
+
l(S.DISPLAY_MEDIUM, O.StringDateFormat)
|
|
361
353
|
)
|
|
362
354
|
] })
|
|
363
|
-
] }) : /* @__PURE__ */
|
|
355
|
+
] }) : /* @__PURE__ */ m(G, {})
|
|
364
356
|
] }),
|
|
365
357
|
/* @__PURE__ */ n("div", { children: [
|
|
366
358
|
/* @__PURE__ */ n("p", { children: [
|
|
@@ -372,16 +364,15 @@ const Tt = ({
|
|
|
372
364
|
", ",
|
|
373
365
|
r
|
|
374
366
|
] }),
|
|
375
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ m("i", { children: o ? d : "" })
|
|
376
368
|
] })
|
|
377
369
|
] });
|
|
378
370
|
};
|
|
379
371
|
export {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
gt as p
|
|
372
|
+
O as E,
|
|
373
|
+
gt as F,
|
|
374
|
+
W as G,
|
|
375
|
+
S as a,
|
|
376
|
+
ht as b,
|
|
377
|
+
D as g
|
|
387
378
|
};
|
|
@@ -1,97 +1,98 @@
|
|
|
1
|
-
import { jsx as r, jsxs as s, Fragment as
|
|
2
|
-
import { RewardsService as
|
|
3
|
-
import { useQuery as
|
|
4
|
-
import {
|
|
5
|
-
import { g as ii } from "./
|
|
1
|
+
import { jsx as r, jsxs as s, Fragment as J } from "react/jsx-runtime";
|
|
2
|
+
import { RewardsService as W, CashValue as C, EToolTipPosition as M, EInvalidAmountDisplayOption as X } from "@odynn/awayz-core";
|
|
3
|
+
import { useQuery as Z } from "@tanstack/react-query";
|
|
4
|
+
import { g as w } from "./index-7zRjF0bU.js";
|
|
5
|
+
import { G as V, g as b, a as u, E as v, F as B, b as ii } from "./FlightItinerary-Dy-2zMYt.js";
|
|
6
6
|
import { E as ri } from "./enums-B584l_96.js";
|
|
7
7
|
import "./arrayExtensions-DFLvtO8l.js";
|
|
8
|
-
import ei, { useState as
|
|
8
|
+
import ei, { useState as L, useMemo as _ } from "react";
|
|
9
9
|
import { h as y } from "./moment-BGjjqtLQ.js";
|
|
10
10
|
import { useTranslation as si } from "react-i18next";
|
|
11
11
|
import { EPaymentType as P } from "./enums/EPaymentType.js";
|
|
12
|
-
import { isSameDayFlight as
|
|
13
|
-
import { DEFAULT_AIRLINE_PROGRAM as
|
|
14
|
-
import './assets/FlightResult.css';
|
|
12
|
+
import { isSameDayFlight as ni } from "./utils/flightDateUtils.js";
|
|
13
|
+
import { DEFAULT_AIRLINE_PROGRAM as ai, getFlightNumber as oi, getLogoPath as $, getAirlineProgram as ti } from "./utils/flightUtils.js";
|
|
14
|
+
import './assets/FlightResult.css';const ci = (i, a, t = a + "s") => i === 1 ? a : t;
|
|
15
|
+
function li(i) {
|
|
15
16
|
if (!i || isNaN(i) || i < 0) return "N/A";
|
|
16
|
-
let
|
|
17
|
-
return
|
|
17
|
+
let a = i == null ? void 0 : i.toString().split(".")[0];
|
|
18
|
+
return a == null ? void 0 : a.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
return
|
|
20
|
+
function S(i) {
|
|
21
|
+
return V({ 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: [] }] })(i);
|
|
21
22
|
}
|
|
22
|
-
const
|
|
23
|
+
const Di = ({
|
|
23
24
|
details: i,
|
|
24
|
-
onClick:
|
|
25
|
-
showBestValue:
|
|
26
|
-
onShowBestValueCalculation:
|
|
25
|
+
onClick: a,
|
|
26
|
+
showBestValue: t = !1,
|
|
27
|
+
onShowBestValueCalculation: o,
|
|
27
28
|
customStyling: R = !1
|
|
28
29
|
}) => {
|
|
29
|
-
const { t: c } = si(), [O,
|
|
30
|
-
const e = await
|
|
31
|
-
|
|
32
|
-
}, { flightNumbers: F, airlines:
|
|
33
|
-
const e = [],
|
|
30
|
+
const { t: c } = si(), [O, z] = L(!1), p = i.origin, h = i.destination, k = i.flightDetails, A = i.paymentOptions || [], U = A.filter((e) => e.points === -1).length === 1, x = A.filter((e) => e.points > -1).length === 1, [G, K] = L(ai), j = async () => {
|
|
31
|
+
const e = await ti(i.airlineProgram);
|
|
32
|
+
K(e);
|
|
33
|
+
}, { flightNumbers: F, airlines: q } = _(() => {
|
|
34
|
+
const e = [], n = [];
|
|
34
35
|
return i.flightDetails.slices.forEach((f) => {
|
|
35
36
|
f.segments.forEach((d) => {
|
|
36
|
-
const l =
|
|
37
|
+
const l = oi(d);
|
|
37
38
|
e.includes(l) || e.push(l);
|
|
38
39
|
const m = d.marketingCarrier, N = d.operatingCarrier;
|
|
39
|
-
|
|
40
|
-
logo:
|
|
40
|
+
n.some((E) => E.airline === N.name) || n.push({
|
|
41
|
+
logo: $(N.iataCode),
|
|
41
42
|
airline: N.name
|
|
42
|
-
}), m && N.name !== m.name && !
|
|
43
|
-
logo:
|
|
43
|
+
}), m && N.name !== m.name && !n.some((E) => E.airline === m.name) && n.push({
|
|
44
|
+
logo: $(m.iataCode),
|
|
44
45
|
airline: m.name
|
|
45
46
|
});
|
|
46
47
|
});
|
|
47
|
-
}),
|
|
48
|
-
}, [i.flightDetails.slices]),
|
|
49
|
-
i.cash > 0 ?
|
|
50
|
-
},
|
|
48
|
+
}), j(), { flightNumbers: e, airlines: n };
|
|
49
|
+
}, [i.flightDetails.slices]), H = () => {
|
|
50
|
+
i.cash > 0 ? a(i, P.CASH) : a(i, P.POINTS);
|
|
51
|
+
}, Q = !ni(
|
|
51
52
|
i.departureTime,
|
|
52
53
|
i.arrivalTime
|
|
53
|
-
), T = i == null ? void 0 : i.airlineProgram, { data:
|
|
54
|
+
), T = i == null ? void 0 : i.airlineProgram, { data: I } = Z({
|
|
54
55
|
queryKey: [ri.VALUE_CENTS, T],
|
|
55
|
-
queryFn: () =>
|
|
56
|
+
queryFn: () => W.getPointsPerCent(T ?? ""),
|
|
56
57
|
staleTime: 1 / 0,
|
|
57
58
|
placeholderData: 0,
|
|
58
|
-
enabled: !!T &&
|
|
59
|
-
}),
|
|
59
|
+
enabled: !!T && t
|
|
60
|
+
}), Y = () => {
|
|
60
61
|
var l;
|
|
61
|
-
if (!i || !
|
|
62
|
+
if (!i || !I || !i.points || !i.cash)
|
|
62
63
|
return {
|
|
63
64
|
pointsCashValue: 0,
|
|
64
65
|
isBestValue: !1
|
|
65
66
|
};
|
|
66
|
-
const e =
|
|
67
|
+
const e = I * i.points / 100, n = ((l = i.cashFee) == null ? void 0 : l.amount) || 0;
|
|
67
68
|
return {
|
|
68
|
-
isPointsBestValue: e +
|
|
69
|
+
isPointsBestValue: e + n < i.cash
|
|
69
70
|
};
|
|
70
|
-
}, { isPointsBestValue: g } =
|
|
71
|
-
var e,
|
|
72
|
-
return (
|
|
71
|
+
}, { isPointsBestValue: g } = Y(), D = _(() => {
|
|
72
|
+
var e, n;
|
|
73
|
+
return (n = (e = i.paymentOptions) == null ? void 0 : e.find(
|
|
73
74
|
(f) => f.program === i.airlineProgram
|
|
74
|
-
)) == null ? void 0 :
|
|
75
|
+
)) == null ? void 0 : n.cashFee;
|
|
75
76
|
}, [i.paymentOptions, i.airlineProgram]);
|
|
76
77
|
return /* @__PURE__ */ r(
|
|
77
78
|
"div",
|
|
78
79
|
{
|
|
79
80
|
className: `${R ? "" : "awayz-"}flight-result`,
|
|
80
|
-
onClick:
|
|
81
|
+
onClick: H,
|
|
81
82
|
children: /* @__PURE__ */ s("div", { className: "content", children: [
|
|
82
83
|
/* @__PURE__ */ r("div", { className: "flight-info", children: /* @__PURE__ */ s("div", { className: "flight-locations", children: [
|
|
83
|
-
/* @__PURE__ */ r("div", { className: "airlines", children:
|
|
84
|
+
/* @__PURE__ */ r("div", { className: "airlines", children: q.map((e, n) => /* @__PURE__ */ r(ei.Fragment, { children: /* @__PURE__ */ s("div", { className: "tip", children: [
|
|
84
85
|
/* @__PURE__ */ r("img", { src: e.logo, alt: e.airline }),
|
|
85
86
|
/* @__PURE__ */ r("span", { className: "right", children: e.airline })
|
|
86
|
-
] },
|
|
87
|
+
] }, n) }, n)) }),
|
|
87
88
|
/* @__PURE__ */ s("div", { className: "flight-location", children: [
|
|
88
89
|
/* @__PURE__ */ s("p", { className: "show-desktop", children: [
|
|
89
90
|
p.city,
|
|
90
91
|
",",
|
|
91
|
-
|
|
92
|
+
b(p.country)
|
|
92
93
|
] }),
|
|
93
94
|
/* @__PURE__ */ r("p", { className: "show-desktop", children: y(i.departureTime).format(
|
|
94
|
-
c(u.
|
|
95
|
+
c(u.DATE_TIME_MEDIUM, v.FlightShortDate)
|
|
95
96
|
) }),
|
|
96
97
|
/* @__PURE__ */ r("p", { className: "show-mobile", children: p.airportCode }),
|
|
97
98
|
/* @__PURE__ */ r("p", { className: "show-mobile", children: y(i.departureTime).format(
|
|
@@ -101,10 +102,10 @@ const Ti = ({
|
|
|
101
102
|
/* @__PURE__ */ s("div", { className: "flight-duration", children: [
|
|
102
103
|
/* @__PURE__ */ r("span", { className: "line" }),
|
|
103
104
|
/* @__PURE__ */ s("p", { children: [
|
|
104
|
-
|
|
105
|
+
w(k.slices[0].duration),
|
|
105
106
|
" ",
|
|
106
107
|
" - ",
|
|
107
|
-
i.numberOfStops > 0 ? `${i.numberOfStops} ${
|
|
108
|
+
i.numberOfStops > 0 ? `${i.numberOfStops} ${ci(
|
|
108
109
|
i.numberOfStops,
|
|
109
110
|
"Stop"
|
|
110
111
|
)}` : "Direct"
|
|
@@ -115,11 +116,11 @@ const Ti = ({
|
|
|
115
116
|
/* @__PURE__ */ s("p", { className: "show-desktop", children: [
|
|
116
117
|
h.city,
|
|
117
118
|
", ",
|
|
118
|
-
|
|
119
|
+
b(h.country)
|
|
119
120
|
] }),
|
|
120
121
|
/* @__PURE__ */ s("p", { className: "show-desktop", children: [
|
|
121
122
|
y(i.arrivalTime).format(
|
|
122
|
-
c(u.
|
|
123
|
+
c(u.DATE_TIME_MEDIUM, v.FlightShortDate)
|
|
123
124
|
),
|
|
124
125
|
" "
|
|
125
126
|
] }),
|
|
@@ -130,65 +131,60 @@ const Ti = ({
|
|
|
130
131
|
] })
|
|
131
132
|
] }) }),
|
|
132
133
|
/* @__PURE__ */ s("div", { className: "flight-footer", children: [
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
children:
|
|
142
|
-
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
F.length - 1
|
|
150
|
-
] })
|
|
134
|
+
/* @__PURE__ */ r("div", { className: "flight-detail-container", children: /* @__PURE__ */ s(
|
|
135
|
+
"div",
|
|
136
|
+
{
|
|
137
|
+
className: "flight-detail",
|
|
138
|
+
onClick: (e) => {
|
|
139
|
+
e.stopPropagation(), z(!O);
|
|
140
|
+
},
|
|
141
|
+
children: [
|
|
142
|
+
/* @__PURE__ */ r("p", { children: "Aircraft" }),
|
|
143
|
+
/* @__PURE__ */ s("p", { className: "chevron-text", children: [
|
|
144
|
+
/* @__PURE__ */ r(B, {}),
|
|
145
|
+
/* @__PURE__ */ s("span", { children: [
|
|
146
|
+
F[0],
|
|
147
|
+
F.length > 1 && /* @__PURE__ */ s("sup", { children: [
|
|
148
|
+
"+",
|
|
149
|
+
F.length - 1
|
|
151
150
|
] })
|
|
152
151
|
] })
|
|
153
|
-
]
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
/* @__PURE__ */ r("p", { children: "Class" }),
|
|
158
|
-
/* @__PURE__ */ r("p", { children: i.cabinClass })
|
|
159
|
-
] })
|
|
160
|
-
] }),
|
|
152
|
+
] })
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
) }),
|
|
161
156
|
/* @__PURE__ */ s("div", { className: "booking-options ", children: [
|
|
162
157
|
i.cash > 0 && /* @__PURE__ */ s(
|
|
163
158
|
"div",
|
|
164
159
|
{
|
|
165
|
-
className: `amount-value ${!g &&
|
|
160
|
+
className: `amount-value ${!g && t ? "show-best-value-flag" : ""}`,
|
|
166
161
|
onClick: (e) => {
|
|
167
|
-
e.stopPropagation(),
|
|
162
|
+
e.stopPropagation(), a(i, P.CASH);
|
|
168
163
|
},
|
|
169
164
|
children: [
|
|
170
165
|
/* @__PURE__ */ r("img", { src: i.airlineLogo }),
|
|
171
166
|
/* @__PURE__ */ s("div", { children: [
|
|
172
|
-
/* @__PURE__ */ r("label", { children:
|
|
167
|
+
/* @__PURE__ */ r("label", { children: U ? "Book For" : "From" }),
|
|
173
168
|
/* @__PURE__ */ r(
|
|
174
|
-
|
|
169
|
+
C,
|
|
175
170
|
{
|
|
176
171
|
amount: i.cash,
|
|
177
|
-
currency: i.currency
|
|
172
|
+
currency: i.currency,
|
|
173
|
+
position: M.LEFT
|
|
178
174
|
}
|
|
179
175
|
)
|
|
180
176
|
] }),
|
|
181
|
-
!g &&
|
|
177
|
+
!g && t && /* @__PURE__ */ s(
|
|
182
178
|
"div",
|
|
183
179
|
{
|
|
184
180
|
className: "best-value-flag tip",
|
|
185
181
|
onClick: (e) => {
|
|
186
|
-
e.stopPropagation(),
|
|
182
|
+
e.stopPropagation(), o == null || o(i);
|
|
187
183
|
},
|
|
188
184
|
children: [
|
|
189
|
-
|
|
185
|
+
o && /* @__PURE__ */ r(S, {}),
|
|
190
186
|
/* @__PURE__ */ r("p", { children: "Best Value" }),
|
|
191
|
-
|
|
187
|
+
o && /* @__PURE__ */ r("span", { children: "Click to learn more" })
|
|
192
188
|
]
|
|
193
189
|
}
|
|
194
190
|
)
|
|
@@ -198,39 +194,40 @@ const Ti = ({
|
|
|
198
194
|
i.points > 0 && /* @__PURE__ */ s(
|
|
199
195
|
"div",
|
|
200
196
|
{
|
|
201
|
-
className: `amount-value ${g &&
|
|
197
|
+
className: `amount-value ${g && t ? "show-best-value-flag" : ""}`,
|
|
202
198
|
onClick: (e) => {
|
|
203
|
-
e.stopPropagation(),
|
|
199
|
+
e.stopPropagation(), a(i, P.POINTS);
|
|
204
200
|
},
|
|
205
201
|
children: [
|
|
206
|
-
g &&
|
|
202
|
+
g && t && /* @__PURE__ */ s(
|
|
207
203
|
"div",
|
|
208
204
|
{
|
|
209
205
|
className: "best-value-flag tip",
|
|
210
206
|
onClick: (e) => {
|
|
211
|
-
e.stopPropagation(),
|
|
207
|
+
e.stopPropagation(), o == null || o(i);
|
|
212
208
|
},
|
|
213
209
|
children: [
|
|
214
|
-
|
|
210
|
+
o && /* @__PURE__ */ r(S, {}),
|
|
215
211
|
/* @__PURE__ */ r("p", { children: "Best Value" }),
|
|
216
|
-
|
|
212
|
+
o && /* @__PURE__ */ r("span", { children: "Click to learn more" })
|
|
217
213
|
]
|
|
218
214
|
}
|
|
219
215
|
),
|
|
220
|
-
/* @__PURE__ */ r("img", { src:
|
|
216
|
+
/* @__PURE__ */ r("img", { src: G.programLogo }),
|
|
221
217
|
/* @__PURE__ */ s("div", { children: [
|
|
222
218
|
/* @__PURE__ */ r("label", { children: x ? "Book For" : "From" }),
|
|
223
219
|
/* @__PURE__ */ s("p", { children: [
|
|
224
|
-
`${
|
|
225
|
-
!!D && /* @__PURE__ */ s(
|
|
220
|
+
`${li(i.points)} ${c("miles")}`,
|
|
221
|
+
!!D && /* @__PURE__ */ s(J, { children: [
|
|
226
222
|
" + ",
|
|
227
223
|
/* @__PURE__ */ r(
|
|
228
|
-
|
|
224
|
+
C,
|
|
229
225
|
{
|
|
230
226
|
amount: D.amount,
|
|
231
227
|
currency: D.currency,
|
|
232
228
|
customDisplay: "No fee",
|
|
233
|
-
zeroDisplayOption:
|
|
229
|
+
zeroDisplayOption: X.CUSTOM,
|
|
230
|
+
position: M.LEFT
|
|
234
231
|
}
|
|
235
232
|
)
|
|
236
233
|
] })
|
|
@@ -242,12 +239,12 @@ const Ti = ({
|
|
|
242
239
|
] })
|
|
243
240
|
] }),
|
|
244
241
|
/* @__PURE__ */ r("div", { className: `flight-details ${O ? "is-open" : ""}`, children: /* @__PURE__ */ r("div", { className: "inner", children: /* @__PURE__ */ r(
|
|
245
|
-
|
|
242
|
+
ii,
|
|
246
243
|
{
|
|
247
|
-
itinerary:
|
|
244
|
+
itinerary: k.slices[0].segments,
|
|
248
245
|
origin: p,
|
|
249
246
|
destination: h,
|
|
250
|
-
isMultiDayFlight:
|
|
247
|
+
isMultiDayFlight: Q
|
|
251
248
|
}
|
|
252
249
|
) }) })
|
|
253
250
|
] })
|
|
@@ -255,6 +252,6 @@ const Ti = ({
|
|
|
255
252
|
);
|
|
256
253
|
};
|
|
257
254
|
export {
|
|
258
|
-
|
|
259
|
-
|
|
255
|
+
Di as F,
|
|
256
|
+
li as c
|
|
260
257
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { b as f } from "../../FlightItinerary-DpHeFZIB.js";
|
|
3
2
|
import "../../index-7zRjF0bU.js";
|
|
3
|
+
import { b as f } from "../../FlightItinerary-Dy-2zMYt.js";
|
|
4
4
|
import "../../arrayExtensions-DFLvtO8l.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../../moment-BGjjqtLQ.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@odynn/awayz-core";
|
|
3
3
|
import "@tanstack/react-query";
|
|
4
|
-
import "../../
|
|
4
|
+
import { F as x } from "../../FlightResult-CBvQEtrI.js";
|
|
5
5
|
import "../../index-7zRjF0bU.js";
|
|
6
|
-
import
|
|
6
|
+
import "../../FlightItinerary-Dy-2zMYt.js";
|
|
7
7
|
import "../../enums-B584l_96.js";
|
|
8
8
|
import "../../arrayExtensions-DFLvtO8l.js";
|
|
9
9
|
import "react";
|
package/dist/components/index.js
CHANGED
package/dist/main.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useFlightSearch as o } from "./hooks/useFlightSearch/useFlightSearch.js";
|
|
2
2
|
import { useAirportSearch as g } from "./hooks/useAirportSearch/useAirportSearch.js";
|
|
3
3
|
import { EBaggage as s } from "./hooks/useFlightSearch/useFlightSearch.types.js";
|
|
4
|
-
import { F as f, c as l } from "./FlightResult-
|
|
4
|
+
import { F as f, c as l } from "./FlightResult-CBvQEtrI.js";
|
|
5
5
|
import { EPaymentType as x } from "./enums/EPaymentType.js";
|
|
6
6
|
import { DEFAULT_AIRLINE_PROGRAM as C, getAirlineProgram as E, getFlightNumber as F, getLogoPath as c } from "./utils/flightUtils.js";
|
|
7
7
|
import { isSameDayFlight as y } from "./utils/flightDateUtils.js";
|
|
8
8
|
import { EFlightPaymentType as T, EFlightType as A } from "./types/enums.js";
|
|
9
9
|
import { ECabinClass as L, getCabinClassLabel as P, getCabinClassList as S } from "./types/ECabinClass.js";
|
|
10
10
|
import { c as R, g as d, b as O, a as B } from "./index-7zRjF0bU.js";
|
|
11
|
-
import { E as _, g as z } from "./FlightItinerary-
|
|
11
|
+
import { E as _, g as z } from "./FlightItinerary-Dy-2zMYt.js";
|
|
12
12
|
import "./arrayExtensions-DFLvtO8l.js";
|
|
13
13
|
import "react";
|
|
14
14
|
export {
|