@odynn/awayz-core 0.6.15 → 0.6.17
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/assets/_styles4.css +1 -1
- package/dist/components/Bookings/FlightBooking/FlightBooking.js +1 -1
- package/dist/components/Bookings/HotelBooking/HotelBooking.js +37 -25
- package/dist/components/CashValue/CashValue.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Wallet/Card/Card.js +1 -1
- package/dist/{index-CDh8vAM_.js → index-c5toY3Pm.js} +53 -49
- package/dist/lib/components/Bookings/HotelBooking/HotelBooking.d.ts +9 -1
- package/dist/services/bookings/BookingService.js +16 -13
- package/package.json +1 -1
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";*{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}
|
|
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 .hotel-booking-info{display:flex;flex-direction:column;gap:.5rem}.selected-hotel-card .bottom-content .hotel-title .hotel-booking-info>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}
|
|
@@ -4,7 +4,7 @@ import { E as o } from "../../../DateFormats-DZD30Nea.js";
|
|
|
4
4
|
import { E as r } from "../../../keys-D66VvSIm.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { useTranslation as E } from "react-i18next";
|
|
7
|
-
import { F as D } from "../../../index-
|
|
7
|
+
import { F as D } from "../../../index-c5toY3Pm.js";
|
|
8
8
|
import M from "../../Menu/Menu.js";
|
|
9
9
|
import '../../../assets/_styles3.css';/* empty css */
|
|
10
10
|
const b = ({
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { G as
|
|
3
|
-
import { h as
|
|
4
|
-
import { E as
|
|
2
|
+
import { G as N, b as u } from "../../../index-c5toY3Pm.js";
|
|
3
|
+
import { h as $ } from "../../../arrayExtensions-DlcBOj5a.js";
|
|
4
|
+
import { E as f } from "../../../DateFormats-DZD30Nea.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import '../../../assets/_styles4.css';/* empty css */
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
return
|
|
7
|
+
import x from "../../Menu/Menu.js";
|
|
8
|
+
const n = (r, o, l = o + "s") => r === 1 ? o : l;
|
|
9
|
+
function C(r) {
|
|
10
|
+
return N({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }, child: [] }, { tag: "circle", attr: { cx: "12", cy: "10", r: "3" }, child: [] }] })(r);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const G = ({
|
|
13
13
|
hotelName: r,
|
|
14
14
|
address: o,
|
|
15
|
-
hotelImage:
|
|
16
|
-
numberOfGuests:
|
|
17
|
-
numberOfRooms:
|
|
18
|
-
numberOfNights:
|
|
15
|
+
hotelImage: l,
|
|
16
|
+
numberOfGuests: t,
|
|
17
|
+
numberOfRooms: a,
|
|
18
|
+
numberOfNights: c,
|
|
19
19
|
bookingRef: m,
|
|
20
20
|
cancelledAt: d,
|
|
21
21
|
onClick: p,
|
|
22
|
-
contextOptions: s = []
|
|
22
|
+
contextOptions: s = [],
|
|
23
|
+
startDate: v,
|
|
24
|
+
endDate: g
|
|
23
25
|
}) => {
|
|
24
26
|
var h;
|
|
25
27
|
return /* @__PURE__ */ e("div", { className: "selected-hotel-card", onClick: p, children: [
|
|
@@ -28,17 +30,17 @@ const B = ({
|
|
|
28
30
|
{
|
|
29
31
|
className: "hotel-image",
|
|
30
32
|
style: {
|
|
31
|
-
backgroundImage: `url(${
|
|
33
|
+
backgroundImage: `url(${l})`
|
|
32
34
|
},
|
|
33
35
|
children: [
|
|
34
36
|
/* @__PURE__ */ i("div", {}),
|
|
35
37
|
s.length > 0 && /* @__PURE__ */ i(
|
|
36
38
|
"div",
|
|
37
39
|
{
|
|
38
|
-
onClick: (
|
|
39
|
-
|
|
40
|
+
onClick: (k) => {
|
|
41
|
+
k.stopPropagation();
|
|
40
42
|
},
|
|
41
|
-
children: /* @__PURE__ */ i(
|
|
43
|
+
children: /* @__PURE__ */ i(x, { options: s })
|
|
42
44
|
}
|
|
43
45
|
)
|
|
44
46
|
]
|
|
@@ -48,23 +50,33 @@ const B = ({
|
|
|
48
50
|
d && /* @__PURE__ */ i("div", { className: "cancelled-notice", children: /* @__PURE__ */ e("p", { children: [
|
|
49
51
|
"Cancelled:",
|
|
50
52
|
" ",
|
|
51
|
-
(h =
|
|
53
|
+
(h = $(d)) == null ? void 0 : h.format(f.USStringDateFormat)
|
|
52
54
|
] }) }),
|
|
53
55
|
/* @__PURE__ */ e("div", { className: "hotel-title", children: [
|
|
54
56
|
/* @__PURE__ */ i("p", { children: r }),
|
|
55
|
-
/* @__PURE__ */ e("div", { children: [
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
57
|
+
/* @__PURE__ */ e("div", { className: "hotel-booking-info", children: [
|
|
58
|
+
/* @__PURE__ */ e("div", { children: [
|
|
59
|
+
/* @__PURE__ */ i(C, { className: "location-icon" }),
|
|
60
|
+
/* @__PURE__ */ i("p", { children: o })
|
|
61
|
+
] }),
|
|
62
|
+
/* @__PURE__ */ e("div", { children: [
|
|
63
|
+
/* @__PURE__ */ i(u, {}),
|
|
64
|
+
/* @__PURE__ */ e("p", { children: [
|
|
65
|
+
v,
|
|
66
|
+
" - ",
|
|
67
|
+
g
|
|
68
|
+
] })
|
|
69
|
+
] })
|
|
58
70
|
] })
|
|
59
71
|
] }),
|
|
60
72
|
/* @__PURE__ */ i("hr", {}),
|
|
61
73
|
/* @__PURE__ */ e("div", { className: "hotel-details", children: [
|
|
62
74
|
/* @__PURE__ */ e("div", { children: [
|
|
63
|
-
/* @__PURE__ */ i("p", { children: `${
|
|
75
|
+
/* @__PURE__ */ i("p", { children: `${t} ${n(t, "Guest")}` }),
|
|
64
76
|
/* @__PURE__ */ i("span", {}),
|
|
65
|
-
/* @__PURE__ */ i("p", { children: `${
|
|
77
|
+
/* @__PURE__ */ i("p", { children: `${a} ${n(a, "Room")}` }),
|
|
66
78
|
/* @__PURE__ */ i("span", {}),
|
|
67
|
-
/* @__PURE__ */ i("p", { children: `${
|
|
79
|
+
/* @__PURE__ */ i("p", { children: `${c} ${n(c, "Night")}` })
|
|
68
80
|
] }),
|
|
69
81
|
/* @__PURE__ */ i("div", { className: "id-and-icon", children: /* @__PURE__ */ i("span", { children: m }) })
|
|
70
82
|
] })
|
|
@@ -72,5 +84,5 @@ const B = ({
|
|
|
72
84
|
] });
|
|
73
85
|
};
|
|
74
86
|
export {
|
|
75
|
-
|
|
87
|
+
G as HotelBooking
|
|
76
88
|
};
|
|
@@ -7,7 +7,7 @@ import { useQuery as Ct } from "@tanstack/react-query";
|
|
|
7
7
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
8
8
|
import { a as Et, b as ue, c as j } from "../../cashUtils-BDa0CVyi.js";
|
|
9
9
|
import { E as wt } from "../../AccountService-Cu1fDg5B.js";
|
|
10
|
-
import {
|
|
10
|
+
import { c as pe } from "../../index-c5toY3Pm.js";
|
|
11
11
|
import { EInvalidAmountDisplayOption as S, EToolTipPosition as Pt } from "./CashValueTypes.js";
|
|
12
12
|
import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
13
13
|
import "react-i18next";
|
|
@@ -4,7 +4,7 @@ import Z, { useState as or } from "react";
|
|
|
4
4
|
import { q as ie, d as me, u as T, a as ar, c as R, b as U, e as ir, f as cr, g as Ue, o as sr, s as ur, h as lr, i as dr, j as fr, k as pr, l as vr, m as mr, n as oe, p as Qe, P as Oe } from "../../index-BC-KTkxU.js";
|
|
5
5
|
import { r as hr, R as gr } from "../../index-Cv-wvFlM.js";
|
|
6
6
|
import '../../assets/_styles2.css';/* empty css */
|
|
7
|
-
import {
|
|
7
|
+
import { d as br, e as yr } from "../../index-c5toY3Pm.js";
|
|
8
8
|
// @__NO_SIDE_EFFECTS__
|
|
9
9
|
function ht(e) {
|
|
10
10
|
const t = /* @__PURE__ */ Cr(e), n = a.forwardRef((r, o) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import '../../../assets/_styles.css';/* empty css */
|
|
3
|
-
import { a as l } from "../../../index-
|
|
3
|
+
import { a as l } from "../../../index-c5toY3Pm.js";
|
|
4
4
|
import "../../../arrayExtensions-DlcBOj5a.js";
|
|
5
5
|
import "react";
|
|
6
6
|
const t = (r) => {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import a from "react";
|
|
2
|
-
var
|
|
2
|
+
var m = {
|
|
3
3
|
color: void 0,
|
|
4
4
|
size: void 0,
|
|
5
5
|
className: void 0,
|
|
6
6
|
style: void 0,
|
|
7
7
|
attr: void 0
|
|
8
|
-
},
|
|
8
|
+
}, f = a.createContext && /* @__PURE__ */ a.createContext(m), g = ["attr", "size", "title"];
|
|
9
9
|
function b(t, e) {
|
|
10
10
|
if (t == null) return {};
|
|
11
|
-
var r = O(t, e),
|
|
11
|
+
var r = O(t, e), c, n;
|
|
12
12
|
if (Object.getOwnPropertySymbols) {
|
|
13
|
-
var
|
|
14
|
-
for (
|
|
15
|
-
|
|
13
|
+
var l = Object.getOwnPropertySymbols(t);
|
|
14
|
+
for (n = 0; n < l.length; n++)
|
|
15
|
+
c = l[n], !(e.indexOf(c) >= 0) && Object.prototype.propertyIsEnumerable.call(t, c) && (r[c] = t[c]);
|
|
16
16
|
}
|
|
17
17
|
return r;
|
|
18
18
|
}
|
|
19
19
|
function O(t, e) {
|
|
20
20
|
if (t == null) return {};
|
|
21
21
|
var r = {};
|
|
22
|
-
for (var
|
|
23
|
-
if (Object.prototype.hasOwnProperty.call(t,
|
|
24
|
-
if (e.indexOf(
|
|
25
|
-
r[
|
|
22
|
+
for (var c in t)
|
|
23
|
+
if (Object.prototype.hasOwnProperty.call(t, c)) {
|
|
24
|
+
if (e.indexOf(c) >= 0) continue;
|
|
25
|
+
r[c] = t[c];
|
|
26
26
|
}
|
|
27
27
|
return r;
|
|
28
28
|
}
|
|
@@ -30,29 +30,29 @@ function u() {
|
|
|
30
30
|
return u = Object.assign ? Object.assign.bind() : function(t) {
|
|
31
31
|
for (var e = 1; e < arguments.length; e++) {
|
|
32
32
|
var r = arguments[e];
|
|
33
|
-
for (var
|
|
34
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
33
|
+
for (var c in r)
|
|
34
|
+
Object.prototype.hasOwnProperty.call(r, c) && (t[c] = r[c]);
|
|
35
35
|
}
|
|
36
36
|
return t;
|
|
37
37
|
}, u.apply(this, arguments);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function v(t, e) {
|
|
40
40
|
var r = Object.keys(t);
|
|
41
41
|
if (Object.getOwnPropertySymbols) {
|
|
42
|
-
var
|
|
43
|
-
e && (
|
|
44
|
-
return Object.getOwnPropertyDescriptor(t,
|
|
45
|
-
})), r.push.apply(r,
|
|
42
|
+
var c = Object.getOwnPropertySymbols(t);
|
|
43
|
+
e && (c = c.filter(function(n) {
|
|
44
|
+
return Object.getOwnPropertyDescriptor(t, n).enumerable;
|
|
45
|
+
})), r.push.apply(r, c);
|
|
46
46
|
}
|
|
47
47
|
return r;
|
|
48
48
|
}
|
|
49
49
|
function s(t) {
|
|
50
50
|
for (var e = 1; e < arguments.length; e++) {
|
|
51
51
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
52
|
-
e % 2 ?
|
|
53
|
-
y(t,
|
|
54
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) :
|
|
55
|
-
Object.defineProperty(t,
|
|
52
|
+
e % 2 ? v(Object(r), !0).forEach(function(c) {
|
|
53
|
+
y(t, c, r[c]);
|
|
54
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : v(Object(r)).forEach(function(c) {
|
|
55
|
+
Object.defineProperty(t, c, Object.getOwnPropertyDescriptor(r, c));
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
return t;
|
|
@@ -68,65 +68,69 @@ function P(t, e) {
|
|
|
68
68
|
if (typeof t != "object" || !t) return t;
|
|
69
69
|
var r = t[Symbol.toPrimitive];
|
|
70
70
|
if (r !== void 0) {
|
|
71
|
-
var
|
|
72
|
-
if (typeof
|
|
71
|
+
var c = r.call(t, e);
|
|
72
|
+
if (typeof c != "object") return c;
|
|
73
73
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
74
74
|
}
|
|
75
75
|
return (e === "string" ? String : Number)(t);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function d(t) {
|
|
78
78
|
return t && t.map((e, r) => /* @__PURE__ */ a.createElement(e.tag, s({
|
|
79
79
|
key: r
|
|
80
|
-
}, e.attr),
|
|
80
|
+
}, e.attr), d(e.child)));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function i(t) {
|
|
83
83
|
return (e) => /* @__PURE__ */ a.createElement(j, u({
|
|
84
84
|
attr: s({}, t.attr)
|
|
85
|
-
}, e),
|
|
85
|
+
}, e), d(t.child));
|
|
86
86
|
}
|
|
87
87
|
function j(t) {
|
|
88
88
|
var e = (r) => {
|
|
89
89
|
var {
|
|
90
|
-
attr:
|
|
91
|
-
size:
|
|
92
|
-
title:
|
|
93
|
-
} = t, p = b(t, g),
|
|
94
|
-
return r.className && (
|
|
90
|
+
attr: c,
|
|
91
|
+
size: n,
|
|
92
|
+
title: l
|
|
93
|
+
} = t, p = b(t, g), h = n || r.size || "1em", o;
|
|
94
|
+
return r.className && (o = r.className), t.className && (o = (o ? o + " " : "") + t.className), /* @__PURE__ */ a.createElement("svg", u({
|
|
95
95
|
stroke: "currentColor",
|
|
96
96
|
fill: "currentColor",
|
|
97
97
|
strokeWidth: "0"
|
|
98
|
-
}, r.attr,
|
|
99
|
-
className:
|
|
98
|
+
}, r.attr, c, p, {
|
|
99
|
+
className: o,
|
|
100
100
|
style: s(s({
|
|
101
101
|
color: t.color || r.color
|
|
102
102
|
}, r.style), t.style),
|
|
103
|
-
height:
|
|
104
|
-
width:
|
|
103
|
+
height: h,
|
|
104
|
+
width: h,
|
|
105
105
|
xmlns: "http://www.w3.org/2000/svg"
|
|
106
|
-
}),
|
|
106
|
+
}), l && /* @__PURE__ */ a.createElement("title", null, l), t.children);
|
|
107
107
|
};
|
|
108
|
-
return
|
|
108
|
+
return f !== void 0 ? /* @__PURE__ */ a.createElement(f.Consumer, null, (r) => e(r)) : e(m);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
110
|
+
function x(t) {
|
|
111
|
+
return i({ attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }, child: [] }] })(t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
return
|
|
113
|
+
function L(t) {
|
|
114
|
+
return i({ attr: { viewBox: "0 0 192 512" }, child: [{ tag: "path", attr: { d: "M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z" }, child: [] }] })(t);
|
|
115
115
|
}
|
|
116
116
|
function C(t) {
|
|
117
|
-
return
|
|
117
|
+
return i({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z" }, child: [] }] })(t);
|
|
118
118
|
}
|
|
119
119
|
function E(t) {
|
|
120
|
-
return
|
|
120
|
+
return i({ attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z" }, child: [] }] })(t);
|
|
121
121
|
}
|
|
122
122
|
function _(t) {
|
|
123
|
-
return
|
|
123
|
+
return i({ attr: { viewBox: "0 0 352 512" }, child: [{ tag: "path", attr: { d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }, child: [] }] })(t);
|
|
124
|
+
}
|
|
125
|
+
function H(t) {
|
|
126
|
+
return i({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z" }, child: [] }] })(t);
|
|
124
127
|
}
|
|
125
128
|
export {
|
|
126
129
|
E as F,
|
|
127
|
-
|
|
130
|
+
i as G,
|
|
128
131
|
_ as a,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
L as d
|
|
132
|
+
H as b,
|
|
133
|
+
C as c,
|
|
134
|
+
L as d,
|
|
135
|
+
x as e
|
|
132
136
|
};
|
|
@@ -39,6 +39,14 @@ export interface IHotelBookingProps {
|
|
|
39
39
|
* @default []
|
|
40
40
|
*/
|
|
41
41
|
contextOptions?: IContextOption[];
|
|
42
|
+
/**
|
|
43
|
+
* The start date of the hotel booking (check-in date)
|
|
44
|
+
*/
|
|
45
|
+
startDate?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The end date of the hotel booking (check-out date)
|
|
48
|
+
*/
|
|
49
|
+
endDate?: string;
|
|
42
50
|
}
|
|
43
51
|
/**
|
|
44
52
|
* HotelBooking component displays details of a hotel booking
|
|
@@ -49,4 +57,4 @@ export interface IHotelBookingProps {
|
|
|
49
57
|
*
|
|
50
58
|
* It can display a menu with context options for actions related to the booking.
|
|
51
59
|
*/
|
|
52
|
-
export declare const HotelBooking: ({ hotelName, address, hotelImage, numberOfGuests, numberOfRooms, numberOfNights, bookingRef, cancelledAt, onClick, contextOptions }: IHotelBookingProps) => import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export declare const HotelBooking: ({ hotelName, address, hotelImage, numberOfGuests, numberOfRooms, numberOfNights, bookingRef, cancelledAt, onClick, contextOptions, startDate, endDate }: IHotelBookingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var r = (n, e, a) =>
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var p = (n, e, a) => e in n ? _(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a;
|
|
3
|
+
var r = (n, e, a) => p(n, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
5
|
import { c, a as l } from "../../AccountService-Cu1fDg5B.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { EBookingEndpoints as d } from "../../configs/endpoints.js";
|
|
8
|
-
const
|
|
8
|
+
const g = (n) => {
|
|
9
9
|
const e = /P((\d+)D)?T((\d+)H)?((\d+)M)?/, a = n.match(e);
|
|
10
10
|
if (a) {
|
|
11
11
|
const o = a[2] ? `${a[2]}d ` : "", t = a[4] ? `${a[4]}h ` : "", s = a[6] ? `${a[6]}m` : "";
|
|
@@ -13,7 +13,7 @@ const p = (n) => {
|
|
|
13
13
|
} else
|
|
14
14
|
return n;
|
|
15
15
|
};
|
|
16
|
-
class
|
|
16
|
+
class f {
|
|
17
17
|
constructor() {
|
|
18
18
|
r(this, "getHotelBooking", async (e) => {
|
|
19
19
|
var s;
|
|
@@ -51,11 +51,14 @@ class g {
|
|
|
51
51
|
longitude: a.data.accommodation.location.geographic_coordinates.longitude
|
|
52
52
|
},
|
|
53
53
|
images: a.data.accommodation.photos.map((i) => i.url),
|
|
54
|
-
guests: a.data.guests.map((i,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
guests: a.data.guests.map((i, u) => {
|
|
55
|
+
var m;
|
|
56
|
+
return {
|
|
57
|
+
familyName: i.family_name,
|
|
58
|
+
givenName: i.given_name,
|
|
59
|
+
type: (m = a.data.guest_types[u]) == null ? void 0 : m.type
|
|
60
|
+
};
|
|
61
|
+
}),
|
|
59
62
|
numberOfRooms: (s = a.data.rooms) == null ? void 0 : s.length,
|
|
60
63
|
cancellationTimeline: o.cancellation_timeline.map(
|
|
61
64
|
(i) => ({
|
|
@@ -117,7 +120,7 @@ class g {
|
|
|
117
120
|
arrivingAt: t.segments.getLast().arriving_at,
|
|
118
121
|
numberOfStops: t.segments.length - 1,
|
|
119
122
|
reference: a.data.booking_reference,
|
|
120
|
-
durationInMinutes:
|
|
123
|
+
durationInMinutes: g(t.duration),
|
|
121
124
|
origin: l(t.origin),
|
|
122
125
|
destination: l(t.destination)
|
|
123
126
|
})),
|
|
@@ -160,7 +163,7 @@ class g {
|
|
|
160
163
|
});
|
|
161
164
|
}
|
|
162
165
|
}
|
|
163
|
-
const
|
|
166
|
+
const C = new f();
|
|
164
167
|
export {
|
|
165
|
-
|
|
168
|
+
C as BookingService
|
|
166
169
|
};
|