@odynn/awayz-core 0.4.9 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccountService-DdcBI9BS.js → AccountService-CtMwRIoL.js} +92 -92
- package/dist/{TripsService-CLvs14Rq.js → TripsService-B9VUFRE1.js} +1 -1
- package/dist/assets/_styles.css +1 -1
- package/dist/assets/_styles2.css +1 -1
- package/dist/assets/_styles3.css +1 -1
- package/dist/assets/_styles4.css +1 -1
- package/dist/assets/_styles5.css +1 -1
- package/dist/components/Bookings/FlightBooking/FlightBooking.js +208 -60
- package/dist/components/Bookings/HotelBooking/HotelBooking.js +1 -1
- package/dist/components/CashValue/CashValue.js +3 -3
- package/dist/components/CashValue/CashValue.stories.js +2 -2
- package/dist/components/Menu/Menu.js +2 -2
- package/dist/components/Wallet/Card/Card.js +1 -1
- package/dist/components/Wallet/Card/Card.stories.js +2 -2
- package/dist/hooks/useAwayzAuth/useAwayzAuth.js +4 -3
- package/dist/hooks/useBookingManagement/useBookingManagement.js +2 -2
- package/dist/hooks/useBookingManagement/useBookingManagement.test.js +2 -2
- package/dist/hooks/useSearchLimit.js +1 -1
- package/dist/hooks/useTripManagement/useTripManagement.js +3 -3
- package/dist/hooks/useTripManagement/useTripManagement.test.js +3 -3
- package/dist/hooks/useWallet/useWallet.js +2 -2
- package/dist/hooks/useWallet/useWallet.test.js +2 -2
- package/dist/{index-CDh8vAM_.js → index-agnspg2e.js} +2 -2
- package/dist/keys-DcSEucOc.js +5 -0
- package/dist/main.js +1 -1
- package/dist/providers/AwayzProvider.js +9 -8
- package/dist/services/account/AccountService.js +3 -2
- package/dist/services/bookings/BookingService.js +1 -1
- package/dist/services/currency/CurrencyService.js +2 -2
- package/dist/services/index.js +1 -1
- package/dist/services/instance.js +4 -3
- package/dist/services/instanceConfig.js +8 -7
- package/dist/services/noRetryInstance.js +1 -1
- package/dist/services/preferences/PreferencesService.js +1 -1
- package/dist/services/rewards/RewardsService.js +1 -1
- package/dist/services/trips/TripsService.js +2 -2
- package/dist/services/wallet/WalletService.js +1 -1
- package/package.json +6 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
var lt = Object.defineProperty;
|
|
2
2
|
var ft = (e, t, n) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var U = (e, t, n) => ft(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import "./arrayExtensions-DlcBOj5a.js";
|
|
5
|
+
import { E as F } from "./keys-DcSEucOc.js";
|
|
5
6
|
import "react";
|
|
6
7
|
import { getBaseUrl as qe } from "./configs/baseUrl.js";
|
|
7
8
|
import { EAuthEndpoints as O } from "./configs/endpoints.js";
|
|
@@ -20,10 +21,10 @@ function ht(e) {
|
|
|
20
21
|
const ge = (e) => Array.isArray(e) ? e.map((t) => ge(t)) : typeof e == "object" && e !== null ? Object.keys(e).reduce((t, n) => {
|
|
21
22
|
const r = ht(n);
|
|
22
23
|
return t[r] = ge(e[n]), t;
|
|
23
|
-
}, {}) : e,
|
|
24
|
+
}, {}) : e, fr = (e) => (Object.keys(e).forEach(
|
|
24
25
|
(t) => !e[t] && delete e[t]
|
|
25
26
|
), e);
|
|
26
|
-
var $ = /* @__PURE__ */ ((e) => (e.LOCATIONS = "LOCATIONS", e.CHECK_USER = "CHECK_USER", e.USER_REGIONS = "USER_REGIONS", e.CONVERT_CURRENCY = "CONVERT_CURRENCY", e.CLIENT_COMPONENT_KEY = "CLIENT_COMPONENT_KEY", e.SEARCH_LIMIT = "SEARCH_LIMIT", e.PROGRAMS = "PROGRAMS", e.USER_PROGRAMS = "USER_PROGRAMS", e.LINKED_USER_PROGRAMS = "LINKED_USER_PROGRAMS", e.BANKS = "BANKS", e.CARDS = "CARDS", e.USER_CARDS = "USER_CARDS", e.TRIPS = "TRIPS", e.UNCATEGORISED_BOOKINGS = "UNCATEGORISED_BOOKINGS", e.BOOKING = "BOOKING", e.VALUE_CENTS = "VALUE_CENTS", e))($ || {}), mt = /* @__PURE__ */ ((e) => (e.HOTEL = "Hotel", e.AIRLINE = "Airline", e.BANK = "Bank", e))(mt || {})
|
|
27
|
+
var $ = /* @__PURE__ */ ((e) => (e.LOCATIONS = "LOCATIONS", e.CHECK_USER = "CHECK_USER", e.USER_REGIONS = "USER_REGIONS", e.CONVERT_CURRENCY = "CONVERT_CURRENCY", e.CLIENT_COMPONENT_KEY = "CLIENT_COMPONENT_KEY", e.SEARCH_LIMIT = "SEARCH_LIMIT", e.PROGRAMS = "PROGRAMS", e.USER_PROGRAMS = "USER_PROGRAMS", e.LINKED_USER_PROGRAMS = "LINKED_USER_PROGRAMS", e.BANKS = "BANKS", e.CARDS = "CARDS", e.USER_CARDS = "USER_CARDS", e.TRIPS = "TRIPS", e.UNCATEGORISED_BOOKINGS = "UNCATEGORISED_BOOKINGS", e.BOOKING = "BOOKING", e.VALUE_CENTS = "VALUE_CENTS", e))($ || {}), mt = /* @__PURE__ */ ((e) => (e.HOTEL = "Hotel", e.AIRLINE = "Airline", e.BANK = "Bank", e))(mt || {});
|
|
27
28
|
function Me(e, t) {
|
|
28
29
|
return function() {
|
|
29
30
|
return e.apply(t, arguments);
|
|
@@ -32,11 +33,11 @@ function Me(e, t) {
|
|
|
32
33
|
const { toString: Et } = Object.prototype, { getPrototypeOf: ye } = Object, { iterator: te, toStringTag: He } = Symbol, ne = /* @__PURE__ */ ((e) => (t) => {
|
|
33
34
|
const n = Et.call(t);
|
|
34
35
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
35
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
36
|
+
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), re = (e) => (t) => typeof t === e, { isArray: j } = Array, G = re("undefined");
|
|
36
37
|
function yt(e) {
|
|
37
|
-
return e !== null && !
|
|
38
|
+
return e !== null && !G(e) && e.constructor !== null && !G(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
38
39
|
}
|
|
39
|
-
const je =
|
|
40
|
+
const je = x("ArrayBuffer");
|
|
40
41
|
function Rt(e) {
|
|
41
42
|
let t;
|
|
42
43
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && je(e.buffer), t;
|
|
@@ -46,12 +47,12 @@ const wt = re("string"), _ = re("function"), ze = re("number"), se = (e) => e !=
|
|
|
46
47
|
return !1;
|
|
47
48
|
const t = ye(e);
|
|
48
49
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(He in e) && !(te in e);
|
|
49
|
-
}, gt =
|
|
50
|
+
}, gt = x("Date"), bt = x("File"), Tt = x("Blob"), Ot = x("FileList"), At = (e) => se(e) && _(e.pipe), _t = (e) => {
|
|
50
51
|
let t;
|
|
51
52
|
return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = ne(e)) === "formdata" || // detect form-data instance
|
|
52
53
|
t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
|
|
53
|
-
}, Nt =
|
|
54
|
-
function
|
|
54
|
+
}, Nt = x("URLSearchParams"), [Ct, xt, Ut, kt] = ["ReadableStream", "Request", "Response", "Headers"].map(x), Pt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
55
|
+
function v(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
55
56
|
if (e === null || typeof e > "u")
|
|
56
57
|
return;
|
|
57
58
|
let r, s;
|
|
@@ -74,17 +75,17 @@ function Ke(e, t) {
|
|
|
74
75
|
return s;
|
|
75
76
|
return null;
|
|
76
77
|
}
|
|
77
|
-
const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, $e = (e) => !
|
|
78
|
+
const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, $e = (e) => !G(e) && e !== q;
|
|
78
79
|
function fe() {
|
|
79
80
|
const { caseless: e } = $e(this) && this || {}, t = {}, n = (r, s) => {
|
|
80
81
|
const o = e && Ke(t, s) || s;
|
|
81
82
|
X(t[o]) && X(r) ? t[o] = fe(t[o], r) : X(r) ? t[o] = fe({}, r) : j(r) ? t[o] = r.slice() : t[o] = r;
|
|
82
83
|
};
|
|
83
84
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
84
|
-
arguments[r] &&
|
|
85
|
+
arguments[r] && v(arguments[r], n);
|
|
85
86
|
return t;
|
|
86
87
|
}
|
|
87
|
-
const Ft = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
88
|
+
const Ft = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, o) => {
|
|
88
89
|
n && _(s) ? e[o] = Me(s, n) : e[o] = s;
|
|
89
90
|
}, { allOwnKeys: r }), e), It = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Lt = (e, t, n, r) => {
|
|
90
91
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -126,19 +127,19 @@ const Ft = (e, t, n, { allOwnKeys: r } = {}) => (G(t, (s, o) => {
|
|
|
126
127
|
for (; (n = e.exec(t)) !== null; )
|
|
127
128
|
r.push(n);
|
|
128
129
|
return r;
|
|
129
|
-
}, zt =
|
|
130
|
+
}, zt = x("HTMLFormElement"), Kt = (e) => e.toLowerCase().replace(
|
|
130
131
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
131
132
|
function(n, r, s) {
|
|
132
133
|
return r.toUpperCase() + s;
|
|
133
134
|
}
|
|
134
|
-
), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), $t =
|
|
135
|
+
), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), $t = x("RegExp"), Ge = (e, t) => {
|
|
135
136
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
136
|
-
|
|
137
|
+
v(n, (s, o) => {
|
|
137
138
|
let i;
|
|
138
139
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
139
140
|
}), Object.defineProperties(e, r);
|
|
140
|
-
},
|
|
141
|
-
|
|
141
|
+
}, Gt = (e) => {
|
|
142
|
+
Ge(e, (t, n) => {
|
|
142
143
|
if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
143
144
|
return !1;
|
|
144
145
|
const r = e[n];
|
|
@@ -152,7 +153,7 @@ const Ft = (e, t, n, { allOwnKeys: r } = {}) => (G(t, (s, o) => {
|
|
|
152
153
|
});
|
|
153
154
|
}
|
|
154
155
|
});
|
|
155
|
-
},
|
|
156
|
+
}, vt = (e, t) => {
|
|
156
157
|
const n = {}, r = (s) => {
|
|
157
158
|
s.forEach((o) => {
|
|
158
159
|
n[o] = !0;
|
|
@@ -172,23 +173,23 @@ const Xt = (e) => {
|
|
|
172
173
|
if (!("toJSON" in r)) {
|
|
173
174
|
t[s] = r;
|
|
174
175
|
const o = j(r) ? [] : {};
|
|
175
|
-
return
|
|
176
|
+
return v(r, (i, c) => {
|
|
176
177
|
const f = n(i, s + 1);
|
|
177
|
-
!
|
|
178
|
+
!G(f) && (o[c] = f);
|
|
178
179
|
}), t[s] = void 0, o;
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
182
|
return r;
|
|
182
183
|
};
|
|
183
184
|
return n(e, 0);
|
|
184
|
-
}, Yt =
|
|
185
|
+
}, Yt = x("AsyncFunction"), Zt = (e) => e && (se(e) || _(e)) && _(e.then) && _(e.catch), ve = ((e, t) => e ? setImmediate : t ? ((n, r) => (q.addEventListener("message", ({ source: s, data: o }) => {
|
|
185
186
|
s === q && o === n && r.length && r.shift()();
|
|
186
187
|
}, !1), (s) => {
|
|
187
188
|
r.push(s), q.postMessage(n, "*");
|
|
188
189
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
189
190
|
typeof setImmediate == "function",
|
|
190
191
|
_(q.postMessage)
|
|
191
|
-
), Qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick ||
|
|
192
|
+
), Qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick || ve, en = (e) => e != null && _(e[te]), a = {
|
|
192
193
|
isArray: j,
|
|
193
194
|
isArrayBuffer: je,
|
|
194
195
|
isBuffer: yt,
|
|
@@ -200,10 +201,10 @@ const Xt = (e) => {
|
|
|
200
201
|
isObject: se,
|
|
201
202
|
isPlainObject: X,
|
|
202
203
|
isReadableStream: Ct,
|
|
203
|
-
isRequest:
|
|
204
|
-
isResponse:
|
|
204
|
+
isRequest: xt,
|
|
205
|
+
isResponse: Ut,
|
|
205
206
|
isHeaders: kt,
|
|
206
|
-
isUndefined:
|
|
207
|
+
isUndefined: G,
|
|
207
208
|
isDate: gt,
|
|
208
209
|
isFile: bt,
|
|
209
210
|
isBlob: Tt,
|
|
@@ -213,7 +214,7 @@ const Xt = (e) => {
|
|
|
213
214
|
isURLSearchParams: Nt,
|
|
214
215
|
isTypedArray: Mt,
|
|
215
216
|
isFileList: Ot,
|
|
216
|
-
forEach:
|
|
217
|
+
forEach: v,
|
|
217
218
|
merge: fe,
|
|
218
219
|
extend: Ft,
|
|
219
220
|
trim: Pt,
|
|
@@ -221,7 +222,7 @@ const Xt = (e) => {
|
|
|
221
222
|
inherits: Lt,
|
|
222
223
|
toFlatObject: Dt,
|
|
223
224
|
kindOf: ne,
|
|
224
|
-
kindOfTest:
|
|
225
|
+
kindOfTest: x,
|
|
225
226
|
endsWith: Bt,
|
|
226
227
|
toArray: qt,
|
|
227
228
|
forEachEntry: Ht,
|
|
@@ -230,9 +231,9 @@ const Xt = (e) => {
|
|
|
230
231
|
hasOwnProperty: be,
|
|
231
232
|
hasOwnProp: be,
|
|
232
233
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
233
|
-
reduceDescriptors:
|
|
234
|
-
freezeMethods:
|
|
235
|
-
toObjectSet:
|
|
234
|
+
reduceDescriptors: Ge,
|
|
235
|
+
freezeMethods: Gt,
|
|
236
|
+
toObjectSet: vt,
|
|
236
237
|
toCamelCase: Kt,
|
|
237
238
|
noop: Jt,
|
|
238
239
|
toFiniteNumber: Vt,
|
|
@@ -243,7 +244,7 @@ const Xt = (e) => {
|
|
|
243
244
|
toJSONObject: Xt,
|
|
244
245
|
isAsyncFn: Yt,
|
|
245
246
|
isThenable: Zt,
|
|
246
|
-
setImmediate:
|
|
247
|
+
setImmediate: ve,
|
|
247
248
|
asap: Qt,
|
|
248
249
|
isIterable: en
|
|
249
250
|
};
|
|
@@ -342,10 +343,10 @@ function oe(e, t, n) {
|
|
|
342
343
|
if (a.endsWith(m, "{}"))
|
|
343
344
|
m = r ? m : m.slice(0, -2), h = JSON.stringify(h);
|
|
344
345
|
else if (a.isArray(h) && nn(h) || (a.isFileList(h) || a.endsWith(m, "[]")) && (w = a.toArray(h)))
|
|
345
|
-
return m = We(m), w.forEach(function(b,
|
|
346
|
+
return m = We(m), w.forEach(function(b, P) {
|
|
346
347
|
!(a.isUndefined(b) || b === null) && t.append(
|
|
347
348
|
// eslint-disable-next-line no-nested-ternary
|
|
348
|
-
i === !0 ? Te([m],
|
|
349
|
+
i === !0 ? Te([m], P, o) : i === null ? m : m + "[]",
|
|
349
350
|
u(b)
|
|
350
351
|
);
|
|
351
352
|
}), !1;
|
|
@@ -929,17 +930,17 @@ const Q = (e, t, n = 3) => {
|
|
|
929
930
|
}
|
|
930
931
|
}
|
|
931
932
|
);
|
|
932
|
-
function
|
|
933
|
+
function xn(e) {
|
|
933
934
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
934
935
|
}
|
|
935
|
-
function
|
|
936
|
+
function Un(e, t) {
|
|
936
937
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
937
938
|
}
|
|
938
939
|
function nt(e, t, n) {
|
|
939
|
-
let r = !
|
|
940
|
-
return e && (r || n == !1) ?
|
|
940
|
+
let r = !xn(t);
|
|
941
|
+
return e && (r || n == !1) ? Un(e, t) : t;
|
|
941
942
|
}
|
|
942
|
-
const
|
|
943
|
+
const xe = (e) => e instanceof N ? { ...e } : e;
|
|
943
944
|
function H(e, t) {
|
|
944
945
|
t = t || {};
|
|
945
946
|
const n = {};
|
|
@@ -997,7 +998,7 @@ function H(e, t) {
|
|
|
997
998
|
socketPath: i,
|
|
998
999
|
responseEncoding: i,
|
|
999
1000
|
validateStatus: c,
|
|
1000
|
-
headers: (u, l, d) => s(
|
|
1001
|
+
headers: (u, l, d) => s(xe(u), xe(l), d, !0)
|
|
1001
1002
|
};
|
|
1002
1003
|
return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
1003
1004
|
const d = f[l] || s, y = d(e[l], t[l], l);
|
|
@@ -1062,16 +1063,16 @@ const rt = (e) => {
|
|
|
1062
1063
|
}, p.onerror = function() {
|
|
1063
1064
|
r(new E("Network Error", E.ERR_NETWORK, e, p)), p = null;
|
|
1064
1065
|
}, p.ontimeout = function() {
|
|
1065
|
-
let
|
|
1066
|
+
let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1066
1067
|
const A = s.transitional || Ze;
|
|
1067
|
-
s.timeoutErrorMessage && (
|
|
1068
|
-
|
|
1068
|
+
s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new E(
|
|
1069
|
+
P,
|
|
1069
1070
|
A.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
|
|
1070
1071
|
e,
|
|
1071
1072
|
p
|
|
1072
1073
|
)), p = null;
|
|
1073
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(
|
|
1074
|
-
p.setRequestHeader(A,
|
|
1074
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(P, A) {
|
|
1075
|
+
p.setRequestHeader(A, P);
|
|
1075
1076
|
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([y, h] = Q(u, !0), p.addEventListener("progress", y)), f && p.upload && ([d, R] = Q(f), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (l = (b) => {
|
|
1076
1077
|
p && (r(!b || b.type ? new z(null, e, p) : b), p.abort(), p = null);
|
|
1077
1078
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
@@ -1133,7 +1134,7 @@ const rt = (e) => {
|
|
|
1133
1134
|
} finally {
|
|
1134
1135
|
await t.cancel();
|
|
1135
1136
|
}
|
|
1136
|
-
},
|
|
1137
|
+
}, Ue = (e, t, n, r) => {
|
|
1137
1138
|
const s = Ln(e, t);
|
|
1138
1139
|
let o = 0, i, c = (f) => {
|
|
1139
1140
|
i || (i = !0, r && r(f));
|
|
@@ -1238,7 +1239,7 @@ const Mn = async (e) => {
|
|
|
1238
1239
|
p,
|
|
1239
1240
|
Q(Ce(f))
|
|
1240
1241
|
);
|
|
1241
|
-
r =
|
|
1242
|
+
r = Ue(A.body, ke, D, V);
|
|
1242
1243
|
}
|
|
1243
1244
|
}
|
|
1244
1245
|
a.isString(d) || (d = d ? "include" : "omit");
|
|
@@ -1264,17 +1265,17 @@ const Mn = async (e) => {
|
|
|
1264
1265
|
Q(Ce(c), !0)
|
|
1265
1266
|
) || [];
|
|
1266
1267
|
g = new Response(
|
|
1267
|
-
|
|
1268
|
+
Ue(g.body, ke, D, () => {
|
|
1268
1269
|
V && V(), m && m();
|
|
1269
1270
|
}),
|
|
1270
1271
|
A
|
|
1271
1272
|
);
|
|
1272
1273
|
}
|
|
1273
1274
|
u = u || "text";
|
|
1274
|
-
let
|
|
1275
|
+
let P = await ee[a.findKey(ee, u) || "text"](g, e);
|
|
1275
1276
|
return !b && m && m(), await new Promise((A, I) => {
|
|
1276
1277
|
tt(A, I, {
|
|
1277
|
-
data:
|
|
1278
|
+
data: P,
|
|
1278
1279
|
headers: N.from(g.headers),
|
|
1279
1280
|
status: g.status,
|
|
1280
1281
|
statusText: g.statusText,
|
|
@@ -1603,12 +1604,12 @@ let $n = class ct {
|
|
|
1603
1604
|
};
|
|
1604
1605
|
}
|
|
1605
1606
|
};
|
|
1606
|
-
function
|
|
1607
|
+
function Gn(e) {
|
|
1607
1608
|
return function(n) {
|
|
1608
1609
|
return e.apply(null, n);
|
|
1609
1610
|
};
|
|
1610
1611
|
}
|
|
1611
|
-
function
|
|
1612
|
+
function vn(e) {
|
|
1612
1613
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1613
1614
|
}
|
|
1614
1615
|
const Ee = {
|
|
@@ -1697,8 +1698,8 @@ S.Cancel = S.CanceledError;
|
|
|
1697
1698
|
S.all = function(t) {
|
|
1698
1699
|
return Promise.all(t);
|
|
1699
1700
|
};
|
|
1700
|
-
S.spread =
|
|
1701
|
-
S.isAxiosError =
|
|
1701
|
+
S.spread = Gn;
|
|
1702
|
+
S.isAxiosError = vn;
|
|
1702
1703
|
S.mergeConfig = H;
|
|
1703
1704
|
S.AxiosHeaders = N;
|
|
1704
1705
|
S.formToJSON = (e) => Qe(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
@@ -1706,23 +1707,23 @@ S.getAdapter = it.getAdapter;
|
|
|
1706
1707
|
S.HttpStatusCode = Ee;
|
|
1707
1708
|
S.default = S;
|
|
1708
1709
|
const {
|
|
1709
|
-
Axios:
|
|
1710
|
+
Axios: hr,
|
|
1710
1711
|
AxiosError: Jn,
|
|
1711
|
-
CanceledError:
|
|
1712
|
-
isCancel:
|
|
1713
|
-
CancelToken:
|
|
1714
|
-
VERSION:
|
|
1715
|
-
all:
|
|
1716
|
-
Cancel:
|
|
1717
|
-
isAxiosError:
|
|
1718
|
-
spread:
|
|
1719
|
-
toFormData:
|
|
1720
|
-
AxiosHeaders:
|
|
1712
|
+
CanceledError: mr,
|
|
1713
|
+
isCancel: Er,
|
|
1714
|
+
CancelToken: yr,
|
|
1715
|
+
VERSION: Rr,
|
|
1716
|
+
all: wr,
|
|
1717
|
+
Cancel: Sr,
|
|
1718
|
+
isAxiosError: gr,
|
|
1719
|
+
spread: br,
|
|
1720
|
+
toFormData: Tr,
|
|
1721
|
+
AxiosHeaders: Or,
|
|
1721
1722
|
HttpStatusCode: B,
|
|
1722
|
-
formToJSON:
|
|
1723
|
-
getAdapter:
|
|
1724
|
-
mergeConfig:
|
|
1725
|
-
} = S, Vn = (e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(
|
|
1723
|
+
formToJSON: Ar,
|
|
1724
|
+
getAdapter: _r,
|
|
1725
|
+
mergeConfig: Nr
|
|
1726
|
+
} = S, Vn = (e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(F.TOKEN), e.headers["client-id"] = localStorage.getItem(F.CLIENT_ID), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Le = (e, t, n) => {
|
|
1726
1727
|
for (const r of e)
|
|
1727
1728
|
t ? r.rej(t) : r.res(n);
|
|
1728
1729
|
}, Wn = async (e) => new Promise((t, n) => {
|
|
@@ -1741,7 +1742,7 @@ const {
|
|
|
1741
1742
|
);
|
|
1742
1743
|
}, Yn = async (e, t, n, r, s) => {
|
|
1743
1744
|
var f, u, l;
|
|
1744
|
-
const o = t.config, i = localStorage.getItem(
|
|
1745
|
+
const o = t.config, i = localStorage.getItem(F.REFRESH_TOKEN), c = ((f = t.response) == null ? void 0 : f.status) || B.InternalServerError;
|
|
1745
1746
|
if (!o || o.__retries === n)
|
|
1746
1747
|
throw t;
|
|
1747
1748
|
if (c === B.Unauthorized && o.url !== O.REFRESH_EMBED_TOKEN && o.url !== O.REFRESH_TOKEN && o.url !== O.SIGN_IN && o.url !== O.SIGN_UP) {
|
|
@@ -1757,7 +1758,7 @@ const {
|
|
|
1757
1758
|
throw p;
|
|
1758
1759
|
});
|
|
1759
1760
|
r = !0;
|
|
1760
|
-
const y = localStorage.getItem(
|
|
1761
|
+
const y = localStorage.getItem(F.AUTH_FLOW) === dt.POST_MESSAGE ? Be.refreshEmbedToken : Be.refreshToken, { data: R, success: h, message: m } = await y(i);
|
|
1761
1762
|
if (!h)
|
|
1762
1763
|
throw (u = o == null ? void 0 : o.url) != null && u.includes(O.EXCHANGE_TOKEN) || De("refresh_token", m), r = !1, Le(e, t), t;
|
|
1763
1764
|
return (l = o.url) != null && l.includes(O.EXCHANGE_TOKEN) && "id_token" in R && (o.data = JSON.stringify({ idToken: R.id_token })), r = !1, o.headers && (o.headers.Authorization = `Bearer ${R.token}`), Le(e, null, R.token), s(o);
|
|
@@ -1776,7 +1777,7 @@ const {
|
|
|
1776
1777
|
// Exponential backoff 50ms, 500ms, 5000ms
|
|
1777
1778
|
);
|
|
1778
1779
|
}, Zn = S.create();
|
|
1779
|
-
Zn.interceptors.request.use((e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(
|
|
1780
|
+
Zn.interceptors.request.use((e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(F.TOKEN), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }));
|
|
1780
1781
|
const C = S.create();
|
|
1781
1782
|
C.interceptors.request.use((e) => (e = Vn(e), e));
|
|
1782
1783
|
const Qn = 3;
|
|
@@ -1791,7 +1792,7 @@ class nr {
|
|
|
1791
1792
|
* @param params - The sign-in parameters containing email and password.
|
|
1792
1793
|
* @returns A promise that resolves to a service response containing authentication data.
|
|
1793
1794
|
*/
|
|
1794
|
-
|
|
1795
|
+
U(this, "login", async (t) => {
|
|
1795
1796
|
var n, r, s, o, i;
|
|
1796
1797
|
try {
|
|
1797
1798
|
const { data: c } = await C.post(O.SIGN_IN, {
|
|
@@ -1801,7 +1802,7 @@ class nr {
|
|
|
1801
1802
|
queryKey: [$.USER_REGIONS],
|
|
1802
1803
|
queryFn: this.getRegions
|
|
1803
1804
|
}), u = L(c.data), l = (n = c.data) == null ? void 0 : n.accessToken;
|
|
1804
|
-
return localStorage.setItem(
|
|
1805
|
+
return localStorage.setItem(F.TOKEN, l), {
|
|
1805
1806
|
success: !0,
|
|
1806
1807
|
data: L({
|
|
1807
1808
|
...c.data,
|
|
@@ -1827,7 +1828,7 @@ class nr {
|
|
|
1827
1828
|
* @param params - The sign-up parameters containing email, password, and region.
|
|
1828
1829
|
* @returns A promise that resolves to a service response containing authentication data.
|
|
1829
1830
|
*/
|
|
1830
|
-
|
|
1831
|
+
U(this, "signUp", async (t) => {
|
|
1831
1832
|
var n, r, s, o, i, c;
|
|
1832
1833
|
try {
|
|
1833
1834
|
const { data: f } = await C.post(O.SIGN_UP, {
|
|
@@ -1843,7 +1844,7 @@ class nr {
|
|
|
1843
1844
|
queryKey: [$.USER_REGIONS],
|
|
1844
1845
|
queryFn: this.getRegions
|
|
1845
1846
|
}), l = L(f.data), d = (n = f.data) == null ? void 0 : n.tokens.accessToken;
|
|
1846
|
-
return localStorage.setItem(
|
|
1847
|
+
return localStorage.setItem(F.TOKEN, d), {
|
|
1847
1848
|
success: !0,
|
|
1848
1849
|
data: {
|
|
1849
1850
|
accessToken: (r = f.data) == null ? void 0 : r.tokens.accessToken,
|
|
@@ -1863,7 +1864,7 @@ class nr {
|
|
|
1863
1864
|
};
|
|
1864
1865
|
}
|
|
1865
1866
|
});
|
|
1866
|
-
|
|
1867
|
+
U(this, "resendVerificationEmail", async (t) => {
|
|
1867
1868
|
var n, r, s;
|
|
1868
1869
|
try {
|
|
1869
1870
|
return (await C.post(
|
|
@@ -1887,7 +1888,7 @@ class nr {
|
|
|
1887
1888
|
* @param idToken - The ID token to authenticate with.
|
|
1888
1889
|
* @returns A promise that resolves to a service response containing authentication data.
|
|
1889
1890
|
*/
|
|
1890
|
-
|
|
1891
|
+
U(this, "authenticateWithToken", async (t) => {
|
|
1891
1892
|
var n, r, s;
|
|
1892
1893
|
try {
|
|
1893
1894
|
const { data: o } = await C.post(O.EXCHANGE_TOKEN, {
|
|
@@ -1920,7 +1921,7 @@ class nr {
|
|
|
1920
1921
|
*
|
|
1921
1922
|
* @returns A promise that resolves to a service response containing the user details.
|
|
1922
1923
|
*/
|
|
1923
|
-
|
|
1924
|
+
U(this, "checkUser", async () => {
|
|
1924
1925
|
try {
|
|
1925
1926
|
const { data: t } = await C.get(O.ME), n = await W.ensureQueryData({
|
|
1926
1927
|
queryKey: [$.USER_REGIONS],
|
|
@@ -1950,7 +1951,7 @@ class nr {
|
|
|
1950
1951
|
*
|
|
1951
1952
|
* @param refreshToken - The refresh token
|
|
1952
1953
|
*/
|
|
1953
|
-
|
|
1954
|
+
U(this, "refreshEmbedToken", async (t) => {
|
|
1954
1955
|
try {
|
|
1955
1956
|
const { data: n } = await C.post(
|
|
1956
1957
|
O.REFRESH_EMBED_TOKEN,
|
|
@@ -1958,7 +1959,7 @@ class nr {
|
|
|
1958
1959
|
refreshToken: t
|
|
1959
1960
|
}
|
|
1960
1961
|
), r = n.data.token;
|
|
1961
|
-
return localStorage.setItem(
|
|
1962
|
+
return localStorage.setItem(F.TOKEN, r), {
|
|
1962
1963
|
success: !0,
|
|
1963
1964
|
data: n.data
|
|
1964
1965
|
};
|
|
@@ -1975,7 +1976,7 @@ class nr {
|
|
|
1975
1976
|
*
|
|
1976
1977
|
* @param refreshToken - The refresh token
|
|
1977
1978
|
*/
|
|
1978
|
-
|
|
1979
|
+
U(this, "refreshToken", async (t) => {
|
|
1979
1980
|
try {
|
|
1980
1981
|
const { data: n } = await C.post(
|
|
1981
1982
|
O.REFRESH_TOKEN,
|
|
@@ -1983,7 +1984,7 @@ class nr {
|
|
|
1983
1984
|
refreshToken: t
|
|
1984
1985
|
}
|
|
1985
1986
|
), r = n.data.accessToken;
|
|
1986
|
-
return localStorage.setItem(
|
|
1987
|
+
return localStorage.setItem(F.TOKEN, r), {
|
|
1987
1988
|
success: !0,
|
|
1988
1989
|
data: {
|
|
1989
1990
|
...n.data,
|
|
@@ -2003,13 +2004,13 @@ class nr {
|
|
|
2003
2004
|
*
|
|
2004
2005
|
* @returns A promise that resolves to a service response containing the request limit data.
|
|
2005
2006
|
*/
|
|
2006
|
-
|
|
2007
|
+
U(this, "getRequestLimit", async () => (await C.get(O.REQUEST_LIMIT)).data);
|
|
2007
2008
|
/**
|
|
2008
2009
|
* Retrieves the regions available for user registration.
|
|
2009
2010
|
*
|
|
2010
2011
|
* @returns A promise that resolves to a service response containing the available regions.
|
|
2011
2012
|
*/
|
|
2012
|
-
|
|
2013
|
+
U(this, "getRegions", async () => {
|
|
2013
2014
|
var n;
|
|
2014
2015
|
const t = await C.get(O.REGIONS);
|
|
2015
2016
|
return L((n = t.data) == null ? void 0 : n.data);
|
|
@@ -2023,16 +2024,15 @@ export {
|
|
|
2023
2024
|
mt as a,
|
|
2024
2025
|
L as b,
|
|
2025
2026
|
C as c,
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2027
|
+
S as d,
|
|
2028
|
+
Jn as e,
|
|
2029
|
+
ge as f,
|
|
2029
2030
|
Vn as g,
|
|
2030
2031
|
Yn as h,
|
|
2031
2032
|
Zn as i,
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
De as m,
|
|
2033
|
+
Wn as j,
|
|
2034
|
+
Xn as k,
|
|
2035
|
+
De as l,
|
|
2036
2036
|
Le as p,
|
|
2037
|
-
|
|
2037
|
+
fr as r
|
|
2038
2038
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _ = Object.defineProperty;
|
|
2
2
|
var g = (a, e, s) => e in a ? _(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
|
|
3
3
|
var r = (a, e, s) => g(a, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
-
import { c as n,
|
|
4
|
+
import { c as n, f as p, b as o, r as T } from "./AccountService-CtMwRIoL.js";
|
|
5
5
|
import { EBookingType as m } from "./services/trips/TripService.types.js";
|
|
6
6
|
import { EMyTripsEndpoints as i } from "./configs/endpoints.js";
|
|
7
7
|
import "./arrayExtensions-DlcBOj5a.js";
|
package/dist/assets/_styles.css
CHANGED
|
@@ -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"
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.currency-conversion svg{fill:var(--primary, #1495f2);transform:scaleX(.75)}.tooltip-content{border-radius:.5rem;border:1px solid var(--border, #e7eef3);padding:1rem;line-height:1;background-color:var(--foreground, #fff);animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);animation-fill-mode:both;will-change:transform,opacity;z-index:500;position:absolute}.currency-conversion-container{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:1rem}.currency-conversion-container>p{font-weight:600}.currency-conversion-container .currency-conversion-amounts{position:relative;display:flex;align-items:center;width:100vw;max-width:300px;border:1px solid var(--border, #e7eef3);border-radius:.5rem}.currency-conversion-container .currency-conversion-amounts div{flex:1;width:50%;padding:1rem;font-weight:600}.currency-conversion-container .currency-conversion-amounts div:first-of-type{border-right:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:var(--foreground, #fff);color:var(--primary, #1495f2);height:2rem;width:2rem;display:flex;align-items:center;justify-content:center;border:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon svg{fill:var(--primary, #1495f2);width:1rem;height:1rem;transform:scaleX(.75)}.currency-conversion-container .currency-conversion-rate{padding:.5rem 1rem;border-radius:.5rem;background-color:var(--border, #e7eef3);font-size:.8rem}.tooltip-arrow{fill:var(--foreground, #fff)}.tooltip-content[data-state=delayed-open][data-side=top]{animation-name:tooltip-down}.tooltip-content[data-state=delayed-open][data-side=right]{animation-name:tooltip-right}.tooltip-content[data-state=delayed-open][data-side=bottom]{animation-name:tooltip-up}.tooltip-content[data-state=delayed-open][data-side=left]{animation-name:tooltip-left}@keyframes tooltip-up{0%{opacity:0;transform:translateY(4px) translate(-50%)}to{opacity:1;transform:translateY(0) translate(-50%)}}@keyframes tooltip-down{0%{opacity:0;transform:translateY(calc(-100% - 4px)) translate(-50%)}to{opacity:1;transform:translateY(-100%) translate(-50%)}}@keyframes tooltip-left{0%{opacity:0;transform:translate(calc(-100% - 4px)) translateY(-50%)}to{opacity:1;transform:translate(-100%) translateY(-50%)}}@keyframes tooltip-right{0%{opacity:0;transform:translate(-4px) translateY(-50%)}to{opacity:1;transform:translate(0) translateY(-50%)}}
|
package/dist/assets/_styles2.css
CHANGED
|
@@ -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"
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.card{background-color:var(--dark, #14181f);padding:1rem;border-radius:1rem;display:flex;justify-content:space-between;height:150px;aspect-ratio:1.8;position:relative;overflow:hidden}.card p{color:var(--light, #f9fdff);font-weight:600;z-index:1}.card p.light{color:var(--dark, #14181f)}.card .remove-button{cursor:pointer;z-index:5;display:none;border-radius:.5rem;position:absolute;top:0;right:0;transform:translate(-50%) translateY(50%);height:1.75rem;width:1.75rem;padding:0;background-color:var(--light, #f9fdff);justify-content:center;align-items:center}.card .remove-button span{position:fixed;color:var(--dark, #14181f);display:flex;justify-content:center;align-items:center}.card:hover .remove-button{display:flex}.card .logo{height:50px;max-width:100px}.card>.logo-watermark-container{position:absolute;left:0;top:0;bottom:0;right:0;overflow:hidden}.card>.logo-watermark-container>.logo-watermark{position:absolute;right:-5%;height:100%;max-width:200px;transform:scale(2);opacity:.1}
|
package/dist/assets/_styles3.css
CHANGED
|
@@ -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"
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}button{all:unset}.menubar-root{display:flex;background-color:var(--foreground, #fff);border-radius:.25rem}.menubar-trigger{border:1px solid var(--border, #e7eef3);padding:.5rem;outline:none;-webkit-user-select:none;user-select:none;font-weight:500;line-height:1;border-radius:4px;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:2px}.menubar-trigger[data-highlighted],.menubar-trigger[data-state=open]{background-color:var(--background, #f9fdff)}.menubar-content,.menubar-sub-content{min-width:220px;background-color:var(--foreground, #fff);border-radius:.25rem;padding:.5rem;animation-duration:.2s;animation-timing-function:cubic-bezier(.16,1,.3,1);will-change:transform,opacity;border:1px solid var(--border, #e7eef3)}.menubar-sub-content{position:inherit;right:0;transform:translate(8px,35px)}.menubar-item,.menubar-sub-trigger,.menubar-checkbox-item,.menubar-radio-item{all:unset;font-size:13px;line-height:1;border-radius:4px;display:flex;align-items:center;height:25px;padding:0 10px;position:relative;-webkit-user-select:none;user-select:none}.menubar-item.inset,.menubar-sub-trigger.inset,.menubar-checkbox-item.inset,.menubar-radio-item.inset{padding-left:20px}.menubar-item[data-state=open],.menubar-sub-trigger[data-state=open]{background-color:var(--background, #f9fdff)}.menubar-item[data-highlighted],.menubar-sub-trigger[data-highlighted],.menubar-checkbox-item[data-highlighted],.menubar-radio-item[data-highlighted]{background-color:var(--background, #f9fdff);cursor:pointer}.menubar-item[data-disabled],.menubar-sub-trigger[data-disabled],.menubar-checkbox-item[data-disabled],.menubar-radio-item[data-disabled]{pointer-events:none;opacity:.3}.menubar-item-indicator{position:absolute;left:0;width:20px;display:inline-flex;align-items:center;justify-content:center}.menubar-separator{height:1px;margin:5px}.right-slot{margin-left:auto;padding-left:20px}
|
package/dist/assets/_styles4.css
CHANGED
|
@@ -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"
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.selected-flight-card{width:380px;padding:1px;border-radius:.5rem;position:relative;overflow:hidden;background:linear-gradient(90deg,transparent 0%,transparent 10%,var(--border, #e7eef3) 10%,var(--border, #e7eef3) 90%,transparent 90%,transparent 100%);animation:fade-in .3s ease-in-out both;transition:all .2s ease-in-out;cursor:pointer}.selected-flight-card:nth-child(1){animation-delay:.1s}.selected-flight-card:nth-child(2){animation-delay:.2s}.selected-flight-card:nth-child(3){animation-delay:.3s}.selected-flight-card:nth-child(4){animation-delay:.4s}.selected-flight-card:nth-child(5){animation-delay:.5s}.selected-flight-card:nth-child(6){animation-delay:.6s}.selected-flight-card:nth-child(7){animation-delay:.7s}.selected-flight-card:nth-child(8){animation-delay:.8s}.selected-flight-card:nth-child(9){animation-delay:.9s}.selected-flight-card:nth-child(10){animation-delay:1s}.selected-flight-card:hover{filter:drop-shadow(0px 0px 20px rgba(2,66,109,.1))}.selected-flight-card:before{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:30px;width:30px;border-radius:100%;border:14rem solid var(--border, #e7eef3);top:180px;left:0;transform:translate(-50%,-50%)}.selected-flight-card:after{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:30px;width:30px;border-radius:100%;border:14rem solid var(--border, #e7eef3);top:180px;right:0;transform:translate(50%,-50%)}.selected-flight-card .cancelled-notice{background-color:rgba(var(--warning, #ff7f2f),.1);font-weight:600;padding:.25rem;border-radius:.5rem;border:2px solid var(--warning, #ff7f2f);color:var(--warning, #ff7f2f);font-size:.8rem;text-align:center;width:fit-content}.selected-flight-card .content{overflow:hidden;padding:1rem;padding-bottom:0;border-radius:.4rem;width:100%;margin:0 auto;position:relative;height:100%;z-index:1;display:flex;flex-direction:column;gap:1rem;background:linear-gradient(90deg,transparent 0%,transparent 10%,var(--foreground, #fff) 10%,var(--foreground, #fff) 90%,transparent 90%,transparent 100%)}.selected-flight-card .content *{z-index:2}.selected-flight-card .content:before{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:31px;width:31px;border-radius:100%;border:14rem solid var(--foreground, #fff);top:179px;left:-1.5px;transform:translate(-50%,-50%)}.selected-flight-card .content:after{content:"";position:absolute;box-sizing:content-box;aspect-ratio:1;height:31px;width:31px;border-radius:100%;border:14rem solid var(--foreground, #fff);top:179px;right:-1px;transform:translate(49.99%,-50%)}.selected-flight-card .top-section{flex:1;min-height:calc(160px - 1rem)}.selected-flight-card .top-section .header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.selected-flight-card .top-section .header>div{display:flex;align-items:center;gap:.5rem}.selected-flight-card .top-section .header .airline-logo,.selected-flight-card .top-section .header .airline-logo img{max-height:20px}.selected-flight-card .top-section .header .id-and-icon{display:flex;align-items:center;gap:1rem}.selected-flight-card .top-section .header .id-and-icon>span{font-weight:700}.selected-flight-card .top-section .header .id-and-icon .context-button{display:flex;border:1px solid var(--border, #e7eef3);border-radius:.5rem;padding:.5rem;color:var(--text-light, rgba(37, 46, 52, .2509803922));cursor:pointer}.selected-flight-card .top-section .header .id-and-icon .context-button:hover{background-color:var(--border, #e7eef3)}.selected-flight-card .top-section .flight{display:flex;align-items:center;font-size:1.8rem;position:relative;justify-content:space-between}.selected-flight-card .top-section .flight *{z-index:2}.selected-flight-card .top-section .flight .flight-trail{margin:5px 0;height:2px;background:repeating-linear-gradient(90deg,var(--border, #e7eef3) 0 20px,rgba(0,0,0,0) 0 30px);width:80%;position:absolute;left:50%;transform:translate(-50%);z-index:1}.selected-flight-card .top-section .flight svg{fill:#d8e3ea}.selected-flight-card .top-section .flight>p{font-weight:600;background-color:var(--foreground, #fff)}.selected-flight-card .top-section .flight .departure-title{padding-right:.5rem}.selected-flight-card .top-section .flight .arrival-title{padding-left:.5rem}.selected-flight-card .top-section .flight-details .destination span{font-size:1rem;font-weight:400}.selected-flight-card .top-section .flight-details .destination span:last-child{text-align:right}.selected-flight-card .top-section .flight-details .time p{color:var(--text-light, rgba(37, 46, 52, .2509803922))}.selected-flight-card .top-section .flight-details .destination,.selected-flight-card .top-section .flight-details .time{display:flex;justify-content:space-between}.selected-flight-card .mid-section{height:10px}.selected-flight-card .mid-section .dashes{position:absolute;top:179px;left:20px;right:20px;border:dashed 2px var(--border, #e7eef3)}.selected-flight-card .bottom-section{display:flex;flex-direction:column;gap:1rem;font-size:.8rem}.selected-flight-card .bottom-section .bottom-header{display:flex;justify-content:space-between;border:1px solid var(--border, #e7eef3);border-radius:.5rem;padding:.5rem}.selected-flight-card .bottom-section .bottom-header .id-and-icon{display:flex;gap:1rem}.selected-flight-card .bottom-section .bottom-header .id-and-icon>span{font-weight:700}.selected-flight-card .bottom-section .bottom-header .id-and-icon .copy-icon{font-size:larger}.selected-flight-card .bottom-section .bottom-section-details{display:flex;gap:1rem}.selected-flight-card .bottom-section .bottom-section-details>div{display:flex;width:50%;justify-content:space-between;margin-bottom:1rem;border:1px solid var(--border, #e7eef3);border-radius:.5rem;padding:.5rem}.selected-flight-card .bottom-section .bottom-section-details>div>span{font-weight:700}
|
package/dist/assets/_styles5.css
CHANGED
|
@@ -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"
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.selected-hotel-card{width:380px;height:auto;border:1px solid var(--border, #e7eef3);border-radius:.5rem;display:flex;flex-direction:column;background-color:var(--foreground, #fff);overflow:hidden;transition:all .2s ease-in-out;animation:fade-in .3s ease-in-out both}.selected-hotel-card:nth-child(1){animation-delay:.1s}.selected-hotel-card:nth-child(2){animation-delay:.2s}.selected-hotel-card:nth-child(3){animation-delay:.3s}.selected-hotel-card:nth-child(4){animation-delay:.4s}.selected-hotel-card:nth-child(5){animation-delay:.5s}.selected-hotel-card:nth-child(6){animation-delay:.6s}.selected-hotel-card:nth-child(7){animation-delay:.7s}.selected-hotel-card:nth-child(8){animation-delay:.8s}.selected-hotel-card:nth-child(9){animation-delay:.9s}.selected-hotel-card:nth-child(10){animation-delay:1s}.selected-hotel-card .cancelled-notice{background-color:rgba(var(--warning, #ff7f2f),.1);font-weight:600;padding:.25rem;border-radius:.5rem;border:2px solid var(--warning, #ff7f2f);color:var(--warning, #ff7f2f);font-size:.8rem;text-align:center;width:fit-content}.selected-hotel-card:hover{box-shadow:0 0 20px #02426d1a;cursor:pointer}.selected-hotel-card:hover .hotel-image{background-size:105%}.selected-hotel-card .hotel-image{width:100%;height:200px;padding:.5rem;background-repeat:no-repeat;background-position:center;background-size:100%;display:flex;justify-content:space-between;align-items:flex-start;transition:all .2s ease-in-out}.selected-hotel-card .hotel-image .hotel-chain{display:flex;justify-content:center;gap:.5rem;border:2px solid #fff;padding:.25rem;border-radius:.25rem;background-color:#fffc;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.selected-hotel-card .hotel-image .context-button{display:flex;right:0;color:var(--text-light, rgba(37, 46, 52, .2509803922));background-color:var(--foreground, #fff);padding:.5rem;border-radius:.25rem;transition:all .3s ease-in-out;cursor:pointer}.selected-hotel-card .hotel-image .context-button:hover{background-color:var(--border, #e7eef3)}.selected-hotel-card .bottom-content{display:flex;flex-direction:column;padding:1rem;flex:1;gap:.5rem}.selected-hotel-card .bottom-content .hotel-title{display:flex;flex-direction:column;gap:.25rem;flex:1}.selected-hotel-card .bottom-content .hotel-title>p{font-size:1rem;font-weight:600}.selected-hotel-card .bottom-content .hotel-title>div{display:flex;align-items:center;gap:.5rem;font-size:.8rem;opacity:.6}.selected-hotel-card .bottom-content span{border-left:1px solid var(--border, #e7eef3);height:100%}.selected-hotel-card .bottom-content .hotel-details{display:flex;justify-content:space-between;font-size:.8rem}.selected-hotel-card .bottom-content .hotel-details>div{display:flex;gap:1rem;align-items:center}.selected-hotel-card .bottom-content .hotel-details>div>hr{height:1rem;border:1px solid var(--border, #e7eef3)}.selected-hotel-card .bottom-content .hotel-details .id-and-icon{font-weight:700}.selected-hotel-card .bottom-content .hotel-details .id-and-icon .copy-icon{font-size:larger}
|