@odynn/awayz-flights 0.7.0 → 0.7.2

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.
@@ -1,24 +1,24 @@
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";
1
+ import { jsx as e, jsxs as n, Fragment as M } from "react/jsx-runtime";
2
+ import { useAwayzContext as tr, RewardsService as S, CashValue as U, EToolTipPosition as _, EInvalidAmountDisplayOption as sr, awayzClient as q, CurrencyService as ar } from "@odynn/awayz-core";
3
+ import { useQuery as or } from "@tanstack/react-query";
4
+ import { g as cr } from "./index-7zRjF0bU.js";
5
+ import { G as lr, g as L, a as N, E as v, F as mr, b as pr } from "./FlightItinerary-Dy-2zMYt.js";
6
6
  import { E as O } from "./enums-D9aZqf8G.js";
7
7
  import "./arrayExtensions-DFLvtO8l.js";
8
- import mr, { useState as P, useMemo as R, useEffect as $ } from "react";
8
+ import hr, { useState as P, useMemo as R, useEffect as $ } from "react";
9
9
  import { h as m } from "./moment-BGjjqtLQ.js";
10
- import { useTranslation as pr } from "react-i18next";
10
+ import { useTranslation as gr } from "react-i18next";
11
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) {
12
+ import { isSameDayFlight as fr } from "./utils/flightDateUtils.js";
13
+ import { DEFAULT_AIRLINE_PROGRAM as ur, getFlightNumber as dr, getLogoPath as yr, getAirlineProgram as Nr } from "./utils/flightUtils.js";
14
+ import './assets/FlightResult.css';const vr = (r, s, o = s + "s") => r === 1 ? s : o;
15
+ function Pr(r) {
16
16
  if (!r || isNaN(r) || r < 0) return "N/A";
17
17
  let s = r == null ? void 0 : r.toString().split(".")[0];
18
18
  return s == null ? void 0 : s.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
19
19
  }
20
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);
21
+ return lr({ 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
23
  async function z(r, s, o) {
24
24
  if (!r || s === o) return r;
@@ -26,64 +26,66 @@ async function z(r, s, o) {
26
26
  queryKey: [O.CONVERT_CURRENCY, s, o],
27
27
  staleTime: 1e3 * 60 * 60,
28
28
  // 1 hour
29
- queryFn: () => tr.convertCurrency({
29
+ queryFn: () => ar.convertCurrency({
30
30
  baseCurrency: s,
31
31
  targetCurrency: o
32
32
  })
33
33
  });
34
34
  return r * a;
35
35
  }
36
- const Mr = ({
36
+ const Ur = ({
37
37
  details: r,
38
38
  onClick: s,
39
39
  showBestValue: o = !1,
40
40
  onShowBestValueCalculation: a,
41
- customStyling: w = !1
41
+ customStyling: w = !1,
42
+ customCashComponent: K,
43
+ customPointsComponent: Q
42
44
  }) => {
43
- const { t: h } = pr(), [I, K] = P(!1), [f, Q] = P(
45
+ const { t: h } = gr(), [I, G] = P(!1), [f, Y] = P(
44
46
  "none"
45
47
  /* NONE */
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 = [];
48
+ ), [j, H] = P(!1), { config: F } = tr(), u = r.origin, d = r.destination, b = r.flightDetails, x = r.paymentOptions || [], J = x.filter((i) => i.points === -1).length === 1, W = x.filter((i) => i.points > -1).length === 1, [X, Z] = P(ur), V = async () => {
49
+ const i = await Nr(r.airlineProgram);
50
+ Z(i);
51
+ }, { flightNumbers: T, airlines: B } = R(() => {
52
+ const i = [], t = [];
51
53
  return r.flightDetails.slices.forEach((c) => {
52
54
  c.segments.forEach((l) => {
53
- const p = fr(l);
54
- e.includes(p) || e.push(p);
55
+ const p = dr(l);
56
+ i.includes(p) || i.push(p);
55
57
  const y = l.operatingCarrier;
56
58
  t.some((D) => D.airline === y.name) || t.push({
57
- logo: ur(y.iataCode),
59
+ logo: yr(y.iataCode),
58
60
  airline: y.name
59
61
  });
60
62
  });
61
- }), X(), { flightNumbers: e, airlines: t };
62
- }, [r.flightDetails.slices]), V = () => {
63
+ }), V(), { flightNumbers: i, airlines: t };
64
+ }, [r.flightDetails.slices]), rr = () => {
63
65
  r.cash > 0 ? s(r, E.CASH) : s(r, E.POINTS);
64
- }, B = !hr(
66
+ }, er = !fr(
65
67
  r.departureTime,
66
68
  r.arrivalTime
67
- ), C = r == null ? void 0 : r.airlineProgram, { data: k } = sr({
69
+ ), C = r == null ? void 0 : r.airlineProgram, { data: k } = or({
68
70
  queryKey: [O.VALUE_CENTS, C, "test"],
69
71
  queryFn: () => S.getCentPerPoint(C),
70
72
  staleTime: 1 / 0,
71
73
  enabled: !!C && o
72
74
  }), g = R(() => {
73
- var e, t;
74
- return (t = (e = r.paymentOptions) == null ? void 0 : e.find(
75
+ var i, t;
76
+ return (t = (i = r.paymentOptions) == null ? void 0 : i.find(
75
77
  (c) => {
76
78
  var l;
77
79
  return c.program === r.airlineProgram && ((l = c.cashFee) == null ? void 0 : l.amount) !== 0;
78
80
  }
79
81
  )) == null ? void 0 : t.cashFee;
80
- }, [r.paymentOptions, r.airlineProgram]), rr = async () => {
82
+ }, [r.paymentOptions, r.airlineProgram]), ir = async () => {
81
83
  if (!r || !k || !r.points || !r.cash)
82
84
  return;
83
- const e = r.currency;
85
+ const i = r.currency;
84
86
  let t = {
85
87
  valueCents: 1,
86
- currency: e
88
+ currency: i
87
89
  };
88
90
  try {
89
91
  t = await q.ensureQueryData({
@@ -92,62 +94,62 @@ const Mr = ({
92
94
  // 1 hour
93
95
  queryFn: () => S.getCentPerPoint(r.airlineProgram)
94
96
  });
95
- } catch (er) {
97
+ } catch (nr) {
96
98
  console.warn(
97
99
  "Failed to fetch value cents for airline program:",
98
100
  r.airlineProgram,
99
- er
101
+ nr
100
102
  );
101
103
  }
102
104
  const c = g ?? {
103
105
  amount: 0,
104
- currency: e
106
+ currency: i
105
107
  }, [l, p] = await Promise.all([
106
108
  z(
107
109
  c.amount,
108
110
  c.currency,
109
- e
111
+ i
110
112
  ),
111
113
  z(
112
114
  t.valueCents,
113
115
  t.currency,
114
- e
116
+ i
115
117
  )
116
118
  ]), D = p * r.points / 100 + l < r.cash;
117
- Q(
119
+ Y(
118
120
  D ? "points" : "cash"
119
121
  /* CASH */
120
122
  );
121
123
  };
122
124
  return $(() => {
123
- rr();
125
+ ir();
124
126
  }, [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);
127
+ const i = m(r.expiresAt), t = m();
128
+ if (!(i.year() === m(0).year()) && i.isAfter(t)) {
129
+ const l = i.diff(t), p = setTimeout(() => {
130
+ H(!0);
129
131
  }, l);
130
132
  return () => {
131
133
  clearTimeout(p);
132
134
  };
133
135
  }
134
- }, [r.expiresAt]), /* @__PURE__ */ i(
136
+ }, [r.expiresAt]), /* @__PURE__ */ e(
135
137
  "div",
136
138
  {
137
139
  className: `${w ? "" : "awayz-"}flight-result`,
138
- onClick: V,
140
+ onClick: rr,
139
141
  children: /* @__PURE__ */ n("div", { className: "content", children: [
140
- /* @__PURE__ */ i("div", { className: "flight-info", children: /* @__PURE__ */ n("div", { className: "flight-locations", children: [
141
- /* @__PURE__ */ i("div", { className: "airlines", children: Z.map((e, t) => /* @__PURE__ */ i(mr.Fragment, { children: /* @__PURE__ */ n("div", { className: "tip", children: [
142
- /* @__PURE__ */ i(
142
+ /* @__PURE__ */ e("div", { className: "flight-info", children: /* @__PURE__ */ n("div", { className: "flight-locations", children: [
143
+ /* @__PURE__ */ e("div", { className: "airlines", children: B.map((i, t) => /* @__PURE__ */ e(hr.Fragment, { children: /* @__PURE__ */ n("div", { className: "tip", children: [
144
+ /* @__PURE__ */ e(
143
145
  "img",
144
146
  {
145
- src: e.logo,
146
- alt: e.airline,
147
+ src: i.logo,
148
+ alt: i.airline,
147
149
  onError: (c) => c.currentTarget.src = (F == null ? void 0 : F.logoFallbackImageUrl) ?? ""
148
150
  }
149
151
  ),
150
- /* @__PURE__ */ i("span", { className: "right", children: e.airline })
152
+ /* @__PURE__ */ e("span", { className: "right", children: i.airline })
151
153
  ] }, t) }, t)) }),
152
154
  /* @__PURE__ */ n("div", { className: "flight-location", children: [
153
155
  /* @__PURE__ */ n("p", { className: "show-desktop", children: [
@@ -155,26 +157,26 @@ const Mr = ({
155
157
  ",",
156
158
  L(u.country)
157
159
  ] }),
158
- /* @__PURE__ */ i("p", { className: "show-desktop", children: m(r.departureTime).format(
160
+ /* @__PURE__ */ e("p", { className: "show-desktop", children: m(r.departureTime).format(
159
161
  h(N.DATE_TIME_MEDIUM, v.FlightShortDate)
160
162
  ) }),
161
- /* @__PURE__ */ i("p", { className: "show-mobile", children: u.airportCode }),
162
- /* @__PURE__ */ i("p", { className: "show-mobile", children: m(r.departureTime).format(
163
+ /* @__PURE__ */ e("p", { className: "show-mobile", children: u.airportCode }),
164
+ /* @__PURE__ */ e("p", { className: "show-mobile", children: m(r.departureTime).format(
163
165
  h(N.TIME_ONLY, v.FlightTime)
164
166
  ) })
165
167
  ] }),
166
168
  /* @__PURE__ */ n("div", { className: "flight-duration", children: [
167
- /* @__PURE__ */ i("span", { className: "line" }),
169
+ /* @__PURE__ */ e("span", { className: "line" }),
168
170
  /* @__PURE__ */ n("p", { children: [
169
- ar(b.slices[0].duration),
171
+ cr(b.slices[0].duration),
170
172
  " ",
171
173
  " - ",
172
- r.numberOfStops > 0 ? `${r.numberOfStops} ${yr(
174
+ r.numberOfStops > 0 ? `${r.numberOfStops} ${vr(
173
175
  r.numberOfStops,
174
176
  "Stop"
175
177
  )}` : "Direct"
176
178
  ] }),
177
- /* @__PURE__ */ i("span", { className: "line" })
179
+ /* @__PURE__ */ e("span", { className: "line" })
178
180
  ] }),
179
181
  /* @__PURE__ */ n("div", { children: [
180
182
  /* @__PURE__ */ n("p", { className: "show-desktop", children: [
@@ -188,24 +190,24 @@ const Mr = ({
188
190
  ),
189
191
  " "
190
192
  ] }),
191
- /* @__PURE__ */ i("p", { className: "show-mobile", children: d.airportCode }),
192
- /* @__PURE__ */ i("p", { className: "show-mobile", children: m(r.arrivalTime).format(
193
+ /* @__PURE__ */ e("p", { className: "show-mobile", children: d.airportCode }),
194
+ /* @__PURE__ */ e("p", { className: "show-mobile", children: m(r.arrivalTime).format(
193
195
  h(N.TIME_ONLY, v.FlightTime)
194
196
  ) })
195
197
  ] })
196
198
  ] }) }),
197
199
  /* @__PURE__ */ n("div", { className: "flight-footer", children: [
198
- /* @__PURE__ */ i("div", { className: "flight-detail-container", children: /* @__PURE__ */ n(
200
+ /* @__PURE__ */ e("div", { className: "flight-detail-container", children: /* @__PURE__ */ n(
199
201
  "div",
200
202
  {
201
203
  className: "flight-detail",
202
- onClick: (e) => {
203
- e.stopPropagation(), K(!I);
204
+ onClick: (i) => {
205
+ i.stopPropagation(), G(!I);
204
206
  },
205
207
  children: [
206
- /* @__PURE__ */ i("p", { children: "Aircraft" }),
208
+ /* @__PURE__ */ e("p", { children: "Aircraft" }),
207
209
  /* @__PURE__ */ n("p", { className: "chevron-text", children: [
208
- /* @__PURE__ */ i(cr, {}),
210
+ /* @__PURE__ */ e(mr, {}),
209
211
  /* @__PURE__ */ n("span", { children: [
210
212
  T[0],
211
213
  T.length > 1 && /* @__PURE__ */ n("sup", { children: [
@@ -217,22 +219,22 @@ const Mr = ({
217
219
  ]
218
220
  }
219
221
  ) }),
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" })
222
+ /* @__PURE__ */ e("div", { className: "booking-options ", children: j ? /* @__PURE__ */ n("div", { className: "offer-expiry", children: [
223
+ /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(A, {}) }),
224
+ /* @__PURE__ */ e("p", { className: "expired-tip", children: "Offer Expired" })
223
225
  ] }) : /* @__PURE__ */ n(M, { children: [
224
- r.cash > 0 && /* @__PURE__ */ n(
226
+ K || r.cash > 0 && /* @__PURE__ */ n(
225
227
  "div",
226
228
  {
227
229
  className: `amount-value ${f === "cash" && o ? "show-best-value-flag" : ""}`,
228
- onClick: (e) => {
229
- e.stopPropagation(), s(r, E.CASH);
230
+ onClick: (i) => {
231
+ i.stopPropagation(), s(r, E.CASH);
230
232
  },
231
233
  children: [
232
- /* @__PURE__ */ i("b", { children: "Cash" }),
234
+ /* @__PURE__ */ e("b", { children: "Cash" }),
233
235
  /* @__PURE__ */ n("div", { children: [
234
- /* @__PURE__ */ i("label", { children: j ? "Book For" : "From" }),
235
- /* @__PURE__ */ i(
236
+ /* @__PURE__ */ e("label", { children: J ? "Book For" : "From" }),
237
+ /* @__PURE__ */ e(
236
238
  U,
237
239
  {
238
240
  amount: r.cash,
@@ -245,57 +247,57 @@ const Mr = ({
245
247
  "div",
246
248
  {
247
249
  className: "best-value-flag tip",
248
- onClick: (e) => {
249
- e.stopPropagation(), a == null || a(r);
250
+ onClick: (i) => {
251
+ i.stopPropagation(), a == null || a(r);
250
252
  },
251
253
  children: [
252
- a && /* @__PURE__ */ i(A, {}),
253
- /* @__PURE__ */ i("p", { children: "Best Value" }),
254
- a && /* @__PURE__ */ i("span", { children: "Click to learn more" })
254
+ a && /* @__PURE__ */ e(A, {}),
255
+ /* @__PURE__ */ e("p", { children: "Best Value" }),
256
+ a && /* @__PURE__ */ e("span", { children: "Click to learn more" })
255
257
  ]
256
258
  }
257
259
  )
258
260
  ]
259
261
  }
260
262
  ),
261
- r.points > 0 && /* @__PURE__ */ n(
263
+ Q || r.points > 0 && /* @__PURE__ */ n(
262
264
  "div",
263
265
  {
264
266
  className: `amount-value ${f === "points" && o ? "show-best-value-flag" : ""}`,
265
- onClick: (e) => {
266
- e.stopPropagation(), s(r, E.POINTS);
267
+ onClick: (i) => {
268
+ i.stopPropagation(), s(r, E.POINTS);
267
269
  },
268
270
  children: [
269
271
  f === "points" && o && /* @__PURE__ */ n(
270
272
  "div",
271
273
  {
272
274
  className: "best-value-flag tip",
273
- onClick: (e) => {
274
- e.stopPropagation(), a == null || a(r);
275
+ onClick: (i) => {
276
+ i.stopPropagation(), a == null || a(r);
275
277
  },
276
278
  children: [
277
- a && /* @__PURE__ */ i(A, {}),
278
- /* @__PURE__ */ i("p", { children: "Best Value" }),
279
- a && /* @__PURE__ */ i("span", { children: "Click to learn more" })
279
+ a && /* @__PURE__ */ e(A, {}),
280
+ /* @__PURE__ */ e("p", { children: "Best Value" }),
281
+ a && /* @__PURE__ */ e("span", { children: "Click to learn more" })
280
282
  ]
281
283
  }
282
284
  ),
283
- /* @__PURE__ */ i("img", { src: J.programLogo }),
285
+ /* @__PURE__ */ e("div", { className: "amount-airline-logo", children: /* @__PURE__ */ e("img", { src: X.programLogo }) }),
284
286
  /* @__PURE__ */ n("div", { children: [
285
- /* @__PURE__ */ i("label", { children: H ? "Book For" : "From" }),
287
+ /* @__PURE__ */ e("label", { children: W ? "Book For" : "From" }),
286
288
  /* @__PURE__ */ n("p", { children: [
287
- `${Nr(r.points)} ${h(
289
+ `${Pr(r.points)} ${h(
288
290
  "miles"
289
291
  )}`,
290
292
  !!g && /* @__PURE__ */ n(M, { children: [
291
293
  " + ",
292
- /* @__PURE__ */ i(
294
+ /* @__PURE__ */ e(
293
295
  U,
294
296
  {
295
297
  amount: g.amount,
296
298
  currency: g.currency,
297
299
  customDisplay: "No fee",
298
- zeroDisplayOption: nr.CUSTOM,
300
+ zeroDisplayOption: sr.CUSTOM,
299
301
  position: _.LEFT
300
302
  }
301
303
  )
@@ -307,13 +309,13 @@ const Mr = ({
307
309
  )
308
310
  ] }) })
309
311
  ] }),
310
- /* @__PURE__ */ i("div", { className: `flight-details ${I ? "is-open" : ""}`, children: /* @__PURE__ */ i("div", { className: "inner", children: /* @__PURE__ */ i(
311
- lr,
312
+ /* @__PURE__ */ e("div", { className: `flight-details ${I ? "is-open" : ""}`, children: /* @__PURE__ */ e("div", { className: "inner", children: /* @__PURE__ */ e(
313
+ pr,
312
314
  {
313
315
  itinerary: b.slices[0].segments,
314
316
  origin: u,
315
317
  destination: d,
316
- isMultiDayFlight: B
318
+ isMultiDayFlight: er
317
319
  }
318
320
  ) }) })
319
321
  ] })
@@ -321,6 +323,6 @@ const Mr = ({
321
323
  );
322
324
  };
323
325
  export {
324
- Mr as F,
325
- Nr as c
326
+ Ur as F,
327
+ Pr as c
326
328
  };
@@ -1,7 +1,7 @@
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-Caes2vM3.js";
4
+ import { F as x } from "../../FlightResult-_TYrfbuH.js";
5
5
  import "../../index-7zRjF0bU.js";
6
6
  import "../../FlightItinerary-Dy-2zMYt.js";
7
7
  import "../../enums-D9aZqf8G.js";
@@ -1,4 +1,4 @@
1
- import { F as l } from "../FlightResult-Caes2vM3.js";
1
+ import { F as l } from "../FlightResult-_TYrfbuH.js";
2
2
  export {
3
3
  l as FlightResult
4
4
  };
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { EPaymentType } from '../../enums';
2
3
  import { IFlightResult } from '../../hooks/useFlightSearch/useFlightSearch.types';
3
4
  export interface IFlightResultProps {
@@ -25,5 +26,13 @@ export interface IFlightResultProps {
25
26
  * Flag to determine if custom styling should be used. If `false`, the component will use the default Awayz Style.
26
27
  */
27
28
  customStyling?: boolean;
29
+ /**
30
+ * Optional custom component to display cash value
31
+ */
32
+ customCashComponent?: React.ReactNode;
33
+ /**
34
+ * Optional custom component to display points value
35
+ */
36
+ customPointsComponent?: React.ReactNode;
28
37
  }
29
- export declare const FlightResult: ({ details, onClick, showBestValue, onShowBestValueCalculation, customStyling }: IFlightResultProps) => import("react/jsx-runtime").JSX.Element;
38
+ export declare const FlightResult: ({ details, onClick, showBestValue, onShowBestValueCalculation, customStyling, customCashComponent, customPointsComponent }: IFlightResultProps) => import("react/jsx-runtime").JSX.Element;
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
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-Caes2vM3.js";
4
+ import { F as f, c as l } from "./FlightResult-_TYrfbuH.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-flights",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"