@odynn/awayz-flights 0.2.7 → 0.2.9

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 +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";@media (prefers-color-scheme: dark){body[data-theme=auto]{--background: #14181f;--opaque-background: #20242880;--foreground: #22272d;--text: #c3c9d2;--text-light: #c3c9d260;--border: #3b4048}}@media (prefers-color-scheme: light){body[data-theme=auto]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}}body[data-theme=light]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}*{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}.flight-result{background-color:var(--foreground, #fff);border:1px solid var(--border, #e7eef3);overflow:hidden;border-radius:.5rem;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}.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}.flight-result .content>div{z-index:2}.flight-result .content>div.flight-info{flex:4;display:flex;flex-direction:column;min-height:60%;gap:.5rem;padding:1rem}.flight-result .content>div.flight-info .airlines{position:relative;width:50px;max-width:50px;height:30px}.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)}.flight-result .content>div.flight-info .airlines>div img{width:70%}.flight-result .content>div.flight-info .airlines>div:nth-child(2){top:10px;left:15px}.flight-result .content>div.flight-info .airlines>div:nth-child(3){top:-10px;left:20px}.flight-result .content>div.flight-info .airlines>div span{font-size:.7rem}.flight-result .content>div.flight-info .airlines p{font-weight:600}.flight-result .content>div.flight-info .flight-locations{align-items:center;gap:1rem;display:flex}.flight-result .content>div.flight-info .flight-locations:last-child div p:first-child{font-weight:600}.flight-result .content>div.flight-info .flight-locations>div{flex:1;font-size:.8rem}.flight-result .content>div.flight-info .flight-locations>div:first-child{text-align:left}.flight-result .content>div.flight-info .flight-locations>div:last-child{text-align:right}.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}.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}.flight-result .content>div.flight-info .flight-locations>div{display:flex;flex-direction:column;text-align:center;flex:1;width:100%}.flight-result .content>div.flight-info .flight-locations>div.duration{flex-direction:row;align-items:center;justify-content:center;gap:.5rem}.flight-result .content>div.flight-info .flight-locations>div.duration p{opacity:.4}.flight-result .content>div.flight-info .flight-locations>div.flight-location{text-align:left;align-items:flex-start;max-width:fit-content}.flight-result .content>div.flight-info .flight-locations>div:last-child{text-align:right;align-items:flex-end;max-width:fit-content}.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){.flight-result .content>div.flight-footer{flex-direction:column}}.flight-result .content>div.flight-footer .view-details{display:flex;align-items:center;gap:1rem;cursor:pointer;-webkit-user-select:none;user-select:none}.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){.flight-result .content>div.flight-footer .booking-options{width:100%;flex-direction:column}}.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:1rem;gap:2rem;cursor:pointer;transition:all .2s ease-in-out;background-color:var(--foreground, #fff)}.flight-result .content>div.flight-footer .booking-options>div.points-value{padding:.5rem 1rem}.flight-result .content>div.flight-footer .booking-options>div.points-value img{height:30px;max-width:100px}.flight-result .content>div.flight-footer .booking-options>div.cash-value .currency-conversion{display:flex}.flight-result .content>div.flight-footer .booking-options>div:first-of-type{grid-area:price}.flight-result .content>div.flight-footer .booking-options>div:last-of-type{grid-area:points}.flight-result .content>div.flight-footer .booking-options>div:hover{background-color:var(--background, #f9fdff)}.flight-result .content>div.flight-footer .booking-options>div p:last-child{font-weight:600}@media screen and (max-width: 1024px){.flight-result .content>div.flight-footer .booking-options>div{flex-direction:row;justify-content:space-between;align-items:center}.flight-result .content>div.flight-footer .booking-options>div.points-value{text-align:center}.flight-result .content>div.flight-footer .booking-options>div.points-value img{height:30px;max-width:80px}.flight-result .content>div.flight-footer .booking-options>div p:last-child{font-weight:600;font-size:1rem}}.flight-result .content .flight-detail-container{display:flex;gap:1rem;justify-content:space-between}@media screen and (max-width: 1024px){.flight-result .content .flight-detail-container{width:100%}}.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){.flight-result .content .flight-detail:not(:first-of-type){padding:0 .5rem}}.flight-result .content .flight-detail p{font-size:.8rem}.flight-result .content .flight-detail p:first-of-type{font-size:.7rem;color:var(--text-light, rgba(37, 46, 52, .2509803922))}.flight-result .content .flight-detail p:last-of-type{font-weight:600}.flight-result .content .flight-detail p.chevron-text{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.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}.flight-result .flight-details.is-open{grid-template-rows:1fr;padding:1rem;border-top:1px solid var(--border, #e7eef3)}.flight-result .flight-details.is-open .inner{padding:1rem 0;scale:1;opacity:1}.flight-result .flight-details .inner{overflow:hidden;transition:all .2s ease-in-out;scale:.9;opacity:0;transform-origin:top center}.flight-result .skeleton{margin-bottom:2px}.flight-result:hover{cursor:pointer}.flight-result.skeleton-loader .content>div.flight-info .flight-locations>div.flight-location{max-width:unset}.flight-result.skeleton-loader .content>div.flight-info .flight-locations>div:last-child{max-width:unset}
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";@media (prefers-color-scheme: dark){body[data-theme=auto]{--background: #14181f;--opaque-background: #20242880;--foreground: #22272d;--text: #c3c9d2;--text-light: #c3c9d260;--border: #3b4048}}@media (prefers-color-scheme: light){body[data-theme=auto]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}}body[data-theme=light]{--background: #f9fdff;--opaque-background: #f9fdff95;--foreground: #fff;--text: #252e34;--text-light: #252e3460;--border: #e7eef3}*{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}.flight-result{background-color:var(--foreground, #fff);border:1px solid var(--border, #e7eef3);overflow:hidden;border-radius:.5rem;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}.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}.flight-result .content>div{z-index:2}.flight-result .content>div.flight-info{flex:4;display:flex;flex-direction:column;min-height:60%;gap:.5rem;padding:1rem}.flight-result .content>div.flight-info .airlines{position:relative;width:50px;max-width:50px;height:30px}.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)}.flight-result .content>div.flight-info .airlines>div img{width:70%}.flight-result .content>div.flight-info .airlines>div:nth-child(2){top:10px;left:15px}.flight-result .content>div.flight-info .airlines>div:nth-child(3){top:-10px;left:20px}.flight-result .content>div.flight-info .airlines>div span{font-size:.7rem}.flight-result .content>div.flight-info .airlines p{font-weight:600}.flight-result .content>div.flight-info .flight-locations{align-items:center;gap:1rem;display:flex}.flight-result .content>div.flight-info .flight-locations:last-child div p:first-child{font-weight:600}.flight-result .content>div.flight-info .flight-locations>div{flex:1;font-size:.8rem}.flight-result .content>div.flight-info .flight-locations>div:first-child{text-align:left}.flight-result .content>div.flight-info .flight-locations>div:last-child{text-align:right}.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}.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}.flight-result .content>div.flight-info .flight-locations>div{display:flex;flex-direction:column;text-align:center;flex:1;width:100%}.flight-result .content>div.flight-info .flight-locations>div.duration{flex-direction:row;align-items:center;justify-content:center;gap:.5rem}.flight-result .content>div.flight-info .flight-locations>div.duration p{opacity:.4}.flight-result .content>div.flight-info .flight-locations>div.flight-location{text-align:left;align-items:flex-start;max-width:fit-content}.flight-result .content>div.flight-info .flight-locations>div:last-child{text-align:right;align-items:flex-end;max-width:fit-content}.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){.flight-result .content>div.flight-footer{flex-direction:column}}.flight-result .content>div.flight-footer .view-details{display:flex;align-items:center;gap:1rem;cursor:pointer;-webkit-user-select:none;user-select:none}.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){.flight-result .content>div.flight-footer .booking-options{width:100%;flex-direction:column}}.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)}.flight-result .content>div.flight-footer .booking-options>div img{height:30px;max-width:100px}.flight-result .content>div.flight-footer .booking-options>div>div{display:flex;flex-direction:column}.flight-result .content>div.flight-footer .booking-options>div label{font-size:.7rem;font-weight:600}.flight-result .content>div.flight-footer .booking-options>div.cash-value .currency-conversion{display:flex}.flight-result .content>div.flight-footer .booking-options>div:first-of-type{grid-area:price}.flight-result .content>div.flight-footer .booking-options>div:last-of-type{grid-area:points}.flight-result .content>div.flight-footer .booking-options>div:hover{background-color:var(--background, #f9fdff)}@media screen and (max-width: 1024px){.flight-result .content>div.flight-footer .booking-options>div{flex-direction:row;justify-content:space-between;align-items:center}.flight-result .content>div.flight-footer .booking-options>div.points-value{text-align:center}.flight-result .content>div.flight-footer .booking-options>div.points-value img{height:30px;max-width:80px}.flight-result .content>div.flight-footer .booking-options>div p:last-child{font-weight:600;font-size:1rem}}.flight-result .content .flight-detail-container{display:flex;gap:1rem;justify-content:space-between}@media screen and (max-width: 1024px){.flight-result .content .flight-detail-container{width:100%}}.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){.flight-result .content .flight-detail:not(:first-of-type){padding:0 .5rem}}.flight-result .content .flight-detail p{font-size:.8rem}.flight-result .content .flight-detail p:first-of-type{font-size:.7rem;color:var(--text-light, rgba(37, 46, 52, .2509803922))}.flight-result .content .flight-detail p:last-of-type{font-weight:600}.flight-result .content .flight-detail p.chevron-text{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.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}.flight-result .flight-details.is-open{grid-template-rows:1fr;padding:1rem;border-top:1px solid var(--border, #e7eef3)}.flight-result .flight-details.is-open .inner{padding:1rem 0;scale:1;opacity:1}.flight-result .flight-details .inner{overflow:hidden;transition:all .2s ease-in-out;scale:.9;opacity:0;transform-origin:top center}.flight-result .skeleton{margin-bottom:2px}.flight-result:hover{cursor:pointer}.flight-result.skeleton-loader .content>div.flight-info .flight-locations>div.flight-location{max-width:unset}.flight-result.skeleton-loader .content>div.flight-info .flight-locations>div:last-child{max-width:unset}
@@ -1,96 +1,96 @@
1
- import { jsx as r, jsxs as e, Fragment as I } from "react/jsx-runtime";
2
- import T, { useState as N, useMemo as R } from "react";
3
- import { g as u, E as v, F as B, a as L } from "../../FlightItinerary-DgpK1LYF.js";
4
- import { DEFAULT_AIRLINE_PROGRAM as $, getFlightNumber as x, getLogoPath as M, getAirlineProgram as b } from "../../utils/flightUtils.js";
5
- import { h as F } from "../../arrayExtensions-DWKenJCh.js";
6
- import { g as j } from "../../dateUtils-DeNLG5hw.js";
7
- import { EPaymentType as o } from "../../enums/EPaymentType.js";
8
- import { CashValue as y } from "@odynn/awayz-core";
9
- import '../../assets/FlightResult.css';function H(i) {
1
+ import { jsx as e, jsxs as r, Fragment as I } from "react/jsx-runtime";
2
+ import T, { useState as N, useMemo as B } from "react";
3
+ import { g as v, E as F, F as L, a as R } from "../../FlightItinerary-DgpK1LYF.js";
4
+ import { DEFAULT_AIRLINE_PROGRAM as b, getFlightNumber as $, getLogoPath as x, getAirlineProgram as j } from "../../utils/flightUtils.js";
5
+ import { h as y } from "../../arrayExtensions-DWKenJCh.js";
6
+ import { g as H } from "../../dateUtils-DeNLG5hw.js";
7
+ import { EPaymentType as s } from "../../enums/EPaymentType.js";
8
+ import { CashValue as C } from "@odynn/awayz-core";
9
+ import '../../assets/FlightResult.css';function M(i) {
10
10
  if (!i || isNaN(i) || i < 0) return "N/A";
11
11
  let a = i == null ? void 0 : i.toString().split(".")[0];
12
12
  return a == null ? void 0 : a.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
13
13
  }
14
14
  const Q = ({ details: i, onClick: a }) => {
15
- var d;
16
- const [g, C] = N(!1), c = i.origin, l = i.destination, p = i.flightDetails, S = !i.paymentOptions || i.paymentOptions.length === 1, [D, P] = N($), A = async () => {
17
- const n = await b(i.airlineProgram);
15
+ var f;
16
+ const [g, S] = N(!1), c = i.origin, l = i.destination, p = i.flightDetails, d = !i.paymentOptions || i.paymentOptions.length === 1, [D, P] = N(b), A = async () => {
17
+ const n = await j(i.airlineProgram);
18
18
  P(n);
19
- }, { flightNumbers: h, airlines: O } = R(() => {
20
- const n = [], t = [];
19
+ }, { flightNumbers: h, airlines: O } = B(() => {
20
+ const n = [], o = [];
21
21
  return i.flightDetails.slices.forEach((k) => {
22
- k.segments.forEach((s) => {
23
- const f = x(s);
24
- n.includes(f) || n.push(f);
25
- const m = s.operatingCarrierFlightNumber ? s.operatingCarrier : s.marketingCarrier;
26
- t.some((E) => E.airline === m.name) || t.push({
27
- logo: M(m.iataCode),
22
+ k.segments.forEach((t) => {
23
+ const u = $(t);
24
+ n.includes(u) || n.push(u);
25
+ const m = t.operatingCarrierFlightNumber ? t.operatingCarrier : t.marketingCarrier;
26
+ o.some((E) => E.airline === m.name) || o.push({
27
+ logo: x(m.iataCode),
28
28
  airline: m.name
29
29
  });
30
30
  });
31
- }), A(), { flightNumbers: n, airlines: t };
31
+ }), A(), { flightNumbers: n, airlines: o };
32
32
  }, [i.flightDetails.slices]);
33
- return /* @__PURE__ */ r("div", { className: "flight-result", onClick: () => {
34
- i.cash > 0 ? a(i, o.CASH) : a(i, o.POINTS);
35
- }, children: /* @__PURE__ */ e("div", { className: "content", children: [
36
- /* @__PURE__ */ r("div", { className: "flight-info", children: /* @__PURE__ */ e("div", { className: "flight-locations", children: [
37
- /* @__PURE__ */ r("div", { className: "airlines", children: O.map((n, t) => /* @__PURE__ */ r(T.Fragment, { children: /* @__PURE__ */ r("div", { className: "tip", children: /* @__PURE__ */ r("img", { src: n.logo, alt: n.airline }) }, t) }, t)) }),
38
- /* @__PURE__ */ e("div", { className: "flight-location", children: [
39
- /* @__PURE__ */ e("p", { children: [
33
+ return /* @__PURE__ */ e("div", { className: "flight-result", onClick: () => {
34
+ i.cash > 0 ? a(i, s.CASH) : a(i, s.POINTS);
35
+ }, children: /* @__PURE__ */ r("div", { className: "content", children: [
36
+ /* @__PURE__ */ e("div", { className: "flight-info", children: /* @__PURE__ */ r("div", { className: "flight-locations", children: [
37
+ /* @__PURE__ */ e("div", { className: "airlines", children: O.map((n, o) => /* @__PURE__ */ e(T.Fragment, { children: /* @__PURE__ */ e("div", { className: "tip", children: /* @__PURE__ */ e("img", { src: n.logo, alt: n.airline }) }, o) }, o)) }),
38
+ /* @__PURE__ */ r("div", { className: "flight-location", children: [
39
+ /* @__PURE__ */ r("p", { children: [
40
40
  c.city,
41
41
  ",",
42
- u(c.country)
42
+ v(c.country)
43
43
  ] }),
44
- /* @__PURE__ */ r("p", { children: F(i.departureTime).format(
44
+ /* @__PURE__ */ e("p", { children: y(i.departureTime).format(
45
45
  // isMobile
46
46
  // ? EDateFormats.FlightTime
47
47
  // :
48
- v.FlightShortDate
48
+ F.FlightShortDate
49
49
  ) })
50
50
  ] }),
51
- /* @__PURE__ */ e("div", { className: "flight-duration", children: [
52
- /* @__PURE__ */ r("span", { className: "line" }),
53
- /* @__PURE__ */ e("p", { children: [
54
- j(p.slices[0].duration),
51
+ /* @__PURE__ */ r("div", { className: "flight-duration", children: [
52
+ /* @__PURE__ */ e("span", { className: "line" }),
53
+ /* @__PURE__ */ r("p", { children: [
54
+ H(p.slices[0].duration),
55
55
  " ",
56
56
  " - ",
57
57
  i.numberOfStops > 0 ? `${i.numberOfStops} Stop${i.numberOfStops > 1 ? "s" : ""}` : "Direct"
58
58
  ] }),
59
- /* @__PURE__ */ r("span", { className: "line" })
59
+ /* @__PURE__ */ e("span", { className: "line" })
60
60
  ] }),
61
- /* @__PURE__ */ e("div", { children: [
62
- /* @__PURE__ */ e("p", { children: [
61
+ /* @__PURE__ */ r("div", { children: [
62
+ /* @__PURE__ */ r("p", { children: [
63
63
  l.city,
64
64
  ", ",
65
- u(l.country)
65
+ v(l.country)
66
66
  ] }),
67
- /* @__PURE__ */ e("p", { children: [
68
- F(i.arrivalTime).format(
67
+ /* @__PURE__ */ r("p", { children: [
68
+ y(i.arrivalTime).format(
69
69
  // isMobile
70
70
  // ? EDateFormats.FlightTime
71
71
  // :
72
- v.FlightShortDate
72
+ F.FlightShortDate
73
73
  ),
74
74
  " "
75
75
  ] })
76
76
  ] })
77
77
  ] }) }),
78
- /* @__PURE__ */ e("div", { className: "flight-footer", children: [
79
- /* @__PURE__ */ e("div", { className: "flight-detail-container", children: [
80
- /* @__PURE__ */ e(
78
+ /* @__PURE__ */ r("div", { className: "flight-footer", children: [
79
+ /* @__PURE__ */ r("div", { className: "flight-detail-container", children: [
80
+ /* @__PURE__ */ r(
81
81
  "div",
82
82
  {
83
83
  className: "flight-detail",
84
84
  onClick: (n) => {
85
- n.stopPropagation(), C(!g);
85
+ n.stopPropagation(), S(!g);
86
86
  },
87
87
  children: [
88
- /* @__PURE__ */ r("p", { children: "Aircraft" }),
89
- /* @__PURE__ */ e("p", { className: "chevron-text", children: [
90
- /* @__PURE__ */ r(B, {}),
91
- /* @__PURE__ */ e("span", { children: [
88
+ /* @__PURE__ */ e("p", { children: "Aircraft" }),
89
+ /* @__PURE__ */ r("p", { className: "chevron-text", children: [
90
+ /* @__PURE__ */ e(L, {}),
91
+ /* @__PURE__ */ r("span", { children: [
92
92
  h[0],
93
- h.length > 1 && /* @__PURE__ */ e("sup", { children: [
93
+ h.length > 1 && /* @__PURE__ */ r("sup", { children: [
94
94
  "+",
95
95
  h.length - 1
96
96
  ] })
@@ -99,56 +99,57 @@ const Q = ({ details: i, onClick: a }) => {
99
99
  ]
100
100
  }
101
101
  ),
102
- /* @__PURE__ */ e("div", { className: "flight-detail", children: [
103
- /* @__PURE__ */ r("p", { children: "Class" }),
104
- /* @__PURE__ */ r("p", { children: i.flightDetails.slices[0].fareBrandName })
105
- ] }),
106
- /* @__PURE__ */ e("div", { className: "flight-detail", children: [
107
- /* @__PURE__ */ r("p", { children: "Marketing Carrier" }),
108
- /* @__PURE__ */ r("p", { children: i.airline })
102
+ /* @__PURE__ */ r("div", { className: "flight-detail", children: [
103
+ /* @__PURE__ */ e("p", { children: "Class" }),
104
+ /* @__PURE__ */ e("p", { children: i.flightDetails.slices[0].fareBrandName })
109
105
  ] })
110
106
  ] }),
111
- /* @__PURE__ */ e("div", { className: "booking-options", children: [
112
- i.cash > 0 && // details.showCashOption &&
113
- /* @__PURE__ */ e(
107
+ /* @__PURE__ */ r("div", { className: "booking-options", children: [
108
+ i.cash > 0 && /* @__PURE__ */ r(
114
109
  "div",
115
110
  {
116
111
  className: "cash-value",
117
112
  onClick: (n) => {
118
- n.stopPropagation(), a(i, o.CASH);
113
+ n.stopPropagation(), a(i, s.CASH);
119
114
  },
120
115
  children: [
121
- /* @__PURE__ */ r("p", { children: S ? "Book For" : "From" }),
122
- /* @__PURE__ */ r("p", { children: /* @__PURE__ */ r(
123
- y,
124
- {
125
- amount: i.cash,
126
- currency: i.currency
127
- }
128
- ) })
116
+ /* @__PURE__ */ e("img", { src: i.airlineLogo }),
117
+ /* @__PURE__ */ r("div", { children: [
118
+ /* @__PURE__ */ e("label", { children: d ? "Book For" : "From" }),
119
+ /* @__PURE__ */ e(
120
+ C,
121
+ {
122
+ amount: i.cash,
123
+ currency: i.currency
124
+ }
125
+ )
126
+ ] })
129
127
  ]
130
128
  }
131
129
  ),
132
- i.points > 0 && /* @__PURE__ */ e(
130
+ i.points > 0 && /* @__PURE__ */ r(
133
131
  "div",
134
132
  {
135
133
  className: "points-value",
136
134
  onClick: (n) => {
137
- n.stopPropagation(), a(i, o.POINTS);
135
+ n.stopPropagation(), a(i, s.POINTS);
138
136
  },
139
137
  children: [
140
- /* @__PURE__ */ r("img", { src: D.programLogo }),
141
- /* @__PURE__ */ e("p", { children: [
142
- `${H(i.points)} miles`,
143
- ((d = i.cashFee) == null ? void 0 : d.amount) > 0 && /* @__PURE__ */ e(I, { children: [
144
- " + ",
145
- /* @__PURE__ */ r(
146
- y,
147
- {
148
- amount: i.cashFee.amount,
149
- currency: i.cashFee.currency
150
- }
151
- )
138
+ /* @__PURE__ */ e("img", { src: D.programLogo }),
139
+ /* @__PURE__ */ r("div", { children: [
140
+ /* @__PURE__ */ e("label", { children: d ? "Book For" : "From" }),
141
+ /* @__PURE__ */ r("p", { children: [
142
+ `${M(i.points)} miles`,
143
+ ((f = i.cashFee) == null ? void 0 : f.amount) > 0 && /* @__PURE__ */ r(I, { children: [
144
+ " + ",
145
+ /* @__PURE__ */ e(
146
+ C,
147
+ {
148
+ amount: i.cashFee.amount,
149
+ currency: i.cashFee.currency
150
+ }
151
+ )
152
+ ] })
152
153
  ] })
153
154
  ] })
154
155
  ]
@@ -156,8 +157,8 @@ const Q = ({ details: i, onClick: a }) => {
156
157
  )
157
158
  ] })
158
159
  ] }),
159
- /* @__PURE__ */ r("div", { className: `flight-details ${g ? "is-open" : ""}`, children: /* @__PURE__ */ r("div", { className: "inner", children: /* @__PURE__ */ r(
160
- L,
160
+ /* @__PURE__ */ e("div", { className: `flight-details ${g ? "is-open" : ""}`, children: /* @__PURE__ */ e("div", { className: "inner", children: /* @__PURE__ */ e(
161
+ R,
161
162
  {
162
163
  itinerary: p.slices[0].segments,
163
164
  origin: c,