@konnectio/core 4.0.11 → 4.0.13
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/{ActionField-d1266f8b.js → ActionField-54349124.js} +21 -21
- package/dist/ActionField-54349124.js.br +0 -0
- package/dist/ActionField-74fc14cf.cjs +1 -0
- package/dist/AvailabilitySkeleton-34890eb5.cjs +1 -0
- package/dist/AvailabilitySkeleton-f7c1b363.js +189 -0
- package/dist/AvailabilitySkeleton-f7c1b363.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-41b83959.cjs +5 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-3f5993f7.js → DateField.vue_vue_type_style_index_0_lang-c5873e66.js} +2396 -2396
- package/dist/DateField.vue_vue_type_style_index_0_lang-c5873e66.js.br +0 -0
- package/dist/{Field-ea77905a.js → Field-0b82e3dc.js} +2 -2
- package/dist/Field-0b82e3dc.js.br +0 -0
- package/dist/{Field-028d9987.cjs → Field-c8c55b91.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-d3b3206f.js → NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js} +31 -31
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-8525b2cd.cjs +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b92d158e.cjs +802 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js → SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js} +10432 -10081
- package/dist/SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js.br +0 -0
- package/dist/TextField-52bc45b8.cjs +54 -0
- package/dist/{TextField-4e7defc6.js → TextField-cbed3348.js} +3464 -3538
- package/dist/TextField-cbed3348.js.br +0 -0
- package/dist/{ThankYou-6fc9044f.js → ThankYou-a6b0d51e.js} +48 -47
- package/dist/ThankYou-a6b0d51e.js.br +0 -0
- package/dist/{ThankYou-2c1ee36b.cjs → ThankYou-d4fae82e.cjs} +2 -2
- package/dist/{_-f5a3364b.js → _-66cf2aa1.js} +5 -5
- package/dist/_-66cf2aa1.js.br +0 -0
- package/dist/{_-82677476.cjs → _-f5fc7dd6.cjs} +1 -1
- package/dist/availability.cjs +2 -2
- package/dist/availability.d.ts +0 -2
- package/dist/availability.js +124 -123
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/entries/availability.d.ts +1 -3
- package/dist/event-f2a6108f.cjs +1 -0
- package/dist/{event-46a84617.js → event-f820ba4b.js} +101 -101
- package/dist/event-f820ba4b.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +146 -146
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +6 -6
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +180 -180
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1381 -1370
- package/dist/hotel.js.br +0 -0
- package/dist/index-2018df9e.cjs +1 -0
- package/dist/{index-a3de1ca3.js → index-b69ec10e.js} +83 -83
- package/dist/index-b69ec10e.js.br +0 -0
- package/dist/polyfill.cjs +4 -4
- package/dist/polyfill.js +3311 -3398
- package/dist/polyfill.js.br +0 -0
- package/dist/store/event.d.ts +1 -1
- package/dist/store/hotel.d.ts +5 -2
- package/dist/store/payment.d.ts +1 -1
- package/dist/store/utilities.d.ts +18 -2
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +8 -9
- package/dist/ActionField-8a007a6c.cjs +0 -1
- package/dist/ActionField-d1266f8b.js.br +0 -0
- package/dist/AvailabilitySkeleton-0e6d048b.js +0 -382
- package/dist/AvailabilitySkeleton-0e6d048b.js.br +0 -0
- package/dist/AvailabilitySkeleton-3ba8c412.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-31a9e5dc.cjs +0 -5
- package/dist/DateField.vue_vue_type_style_index_0_lang-3f5993f7.js.br +0 -0
- package/dist/Field-ea77905a.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-d3b3206f.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-d756efc3.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-2b92f88c.cjs +0 -806
- package/dist/SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js.br +0 -0
- package/dist/TextField-4e7defc6.js.br +0 -0
- package/dist/TextField-641e6fd1.cjs +0 -54
- package/dist/ThankYou-6fc9044f.js.br +0 -0
- package/dist/_-f5a3364b.js.br +0 -0
- package/dist/event-46a84617.js.br +0 -0
- package/dist/event-8738e24d.cjs +0 -1
- package/dist/index-a3de1ca3.js.br +0 -0
- package/dist/index-e81b12be.cjs +0 -1
- package/dist/store/recaptcha.d.ts +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
const Qe =
|
|
5
|
-
const se =
|
|
1
|
+
import { d as Ge, s as oe, u as Ve, a as Le, r as s, E as v, b as U, c as a, O as le, S as q, g as Ue, e as C, f as N, i as I } from "./SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js";
|
|
2
|
+
import { u as qe } from "./_-66cf2aa1.js";
|
|
3
|
+
import { u as Ke } from "./NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js";
|
|
4
|
+
const Qe = Ge("event", () => {
|
|
5
|
+
const se = qe(), { voucher: ue } = oe(Ke()), { display: h } = Ve(), { bearerToken: S } = oe(Le()), p = s({}), y = s({}), t = s(void 0), l = s(!0), i = s(v.InitialState), K = s(/* @__PURE__ */ new Date()), F = s(NaN), T = s(1), P = s(NaN), x = s(NaN), E = s(""), $ = U("freshBookingName", "", void 0, { serializer: q.string }), O = U("freshBookingPhone", "", void 0, { serializer: q.string }), R = U("freshBookingEmail", "", void 0, { serializer: q.string }), _ = s(""), A = s({}), m = s({}), B = s("");
|
|
6
6
|
function o(e) {
|
|
7
7
|
return e.templateID !== void 0;
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const re = a(() => p.value.currency), ie = a(() => p.value.maxNumberPerBooking), ve = a(() => p.value.title), ce = a(() => p.value.subtitle), de = a(() => p.value.slideshow), k = a(() => K.value.toISOString()), pe = a(() => o(t.value)), z = a(() => o(t.value) ? t.value.numberOfDays : T.value), me = a(() => o(t.value) ? t.value.packageCount : 0), ge = a(() => o(t.value) ? t.value.fromDate : ""), b = a(() => y.value.events.find((e) => e.id === P.value)), fe = a(() => b.value ? b.value.length : void 0), j = a(() => o(t.value) ? t.value.templateID : 0), he = a(() => y.value.events), ye = a(() => y.value.templates), be = a(() => y.value.events.length > 0), De = a(() => y.value.templates.length > 0), Q = a(() => b.value && b.value.eventRateType ? b.value.eventRateType : le.None), M = a(() => {
|
|
10
10
|
if (!o(t.value))
|
|
11
11
|
return t.value;
|
|
12
12
|
}), H = a(() => {
|
|
@@ -21,75 +21,75 @@ const Qe = _e("event", () => {
|
|
|
21
21
|
}), J = a(() => {
|
|
22
22
|
if (o(t.value))
|
|
23
23
|
return t.value.templateCounts;
|
|
24
|
-
}),
|
|
25
|
-
function
|
|
24
|
+
}), Ie = a(() => (e) => p.value.eventImages.filter((n) => n.eventID === e));
|
|
25
|
+
function G(e, n, u) {
|
|
26
26
|
let c = 0;
|
|
27
27
|
if (o(t.value)) {
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
32
|
-
const f =
|
|
33
|
-
c +=
|
|
28
|
+
const r = t.value.templateCounts[u];
|
|
29
|
+
if (r) {
|
|
30
|
+
const D = r.addons, g = A.value[`${n}.${e}.${u}`] || 0;
|
|
31
|
+
if (g > 0) {
|
|
32
|
+
const f = D?.find((w) => w.addonID === e), d = typeof g == "boolean" ? 1 : g;
|
|
33
|
+
c += Ue(f?.price, f?.quantityStrategy, z.value, r.adultPerRoom) * d;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
} else {
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
const
|
|
40
|
-
|
|
37
|
+
const r = m.value[e] || 0;
|
|
38
|
+
if (r > 0) {
|
|
39
|
+
const D = b.value?.products?.find((g) => g.productID === e);
|
|
40
|
+
D && (c += D.price * r);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
return c;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
let
|
|
45
|
+
function V(e, n) {
|
|
46
|
+
let u = 0;
|
|
47
47
|
if (o(t.value))
|
|
48
|
-
for (const c in
|
|
49
|
-
const
|
|
50
|
-
parseInt(
|
|
48
|
+
for (const c in A.value) {
|
|
49
|
+
const r = c.split(".");
|
|
50
|
+
parseInt(r[0]) === e && parseInt(r[2]) === n && (u += G(parseInt(r[1]), e, n));
|
|
51
51
|
}
|
|
52
52
|
else
|
|
53
|
-
for (const c in
|
|
54
|
-
|
|
55
|
-
return
|
|
53
|
+
for (const c in m.value)
|
|
54
|
+
u += G(parseInt(c)) * T.value;
|
|
55
|
+
return u;
|
|
56
56
|
}
|
|
57
|
-
const W = a(() => o(t.value) && t.value.totalPrice || 0),
|
|
57
|
+
const W = a(() => o(t.value) && t.value.totalPrice || 0), Se = a(() => {
|
|
58
58
|
if (o(t.value))
|
|
59
59
|
return t.value.templateCounts === void 0 ? NaN : t.value.templateCounts.flatMap((e) => e.roomGroupID).reduce(
|
|
60
|
-
(e, n,
|
|
60
|
+
(e, n, u) => e + V(n, u),
|
|
61
61
|
W.value
|
|
62
62
|
) || 0;
|
|
63
63
|
{
|
|
64
|
-
let e =
|
|
64
|
+
let e = V();
|
|
65
65
|
return e += H.value, e;
|
|
66
66
|
}
|
|
67
|
-
}),
|
|
68
|
-
const e =
|
|
67
|
+
}), Pe = a(() => o(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Ae = a(() => o(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), ke = a(() => {
|
|
68
|
+
const e = m.value;
|
|
69
69
|
let n = 0;
|
|
70
|
-
for (const
|
|
71
|
-
n += Number.isNaN(e[
|
|
70
|
+
for (const u in e)
|
|
71
|
+
n += Number.isNaN(e[u]) ? 0 : e[u];
|
|
72
72
|
return n > 0;
|
|
73
|
-
}), X = a(() => o(t.value) ? !1 : Object.keys(
|
|
73
|
+
}), X = a(() => o(t.value) ? !1 : Object.keys(m.value).length > 0), we = a(() => !!($.value !== "" && R.value !== "" && O.value.length >= 5 && (!X.value || ke.value) && (!(!o(t.value) && Q.value !== le.FullDayEvent) || E.value !== "")));
|
|
74
74
|
function Ce(e) {
|
|
75
|
-
return i.value === v.ReservationState &&
|
|
75
|
+
return i.value === v.ReservationState && P.value === e && l.value;
|
|
76
76
|
}
|
|
77
77
|
const Ee = a(() => !(i.value === v.InitialState && l.value)), Ne = a(() => !(i.value === v.AvailabilityState && l.value)), Fe = a(() => t.value !== void 0), Te = a(() => i.value === v.PaymentState && l.value);
|
|
78
78
|
async function Y() {
|
|
79
79
|
try {
|
|
80
|
-
const e = (await C.get("
|
|
80
|
+
const e = (await C.get("http://localhost:91/api/event/metadata", {
|
|
81
81
|
params: {
|
|
82
82
|
language: N()
|
|
83
83
|
},
|
|
84
84
|
headers: {
|
|
85
|
-
Authorization:
|
|
86
|
-
"Fresh-Booking-Ver": "4.0.
|
|
85
|
+
Authorization: S.value,
|
|
86
|
+
"Fresh-Booking-Ver": "4.0.13"
|
|
87
87
|
}
|
|
88
88
|
})).data;
|
|
89
89
|
p.value = e, Z();
|
|
90
90
|
} catch {
|
|
91
91
|
h({
|
|
92
|
-
message:
|
|
92
|
+
message: I.t("alert.error.couldntFetchMetadata"),
|
|
93
93
|
type: "warning"
|
|
94
94
|
});
|
|
95
95
|
}
|
|
@@ -97,20 +97,20 @@ const Qe = _e("event", () => {
|
|
|
97
97
|
async function Z() {
|
|
98
98
|
i.value = v.AvailabilityState, l.value = !0;
|
|
99
99
|
try {
|
|
100
|
-
const e = (await C.get("
|
|
100
|
+
const e = (await C.get("http://localhost:91/api/event/restaurant-events", {
|
|
101
101
|
params: {
|
|
102
102
|
language: N(),
|
|
103
|
-
date:
|
|
103
|
+
date: k.value
|
|
104
104
|
},
|
|
105
105
|
headers: {
|
|
106
|
-
Authorization:
|
|
107
|
-
"Fresh-Booking-Ver": "4.0.
|
|
106
|
+
Authorization: S.value,
|
|
107
|
+
"Fresh-Booking-Ver": "4.0.13"
|
|
108
108
|
}
|
|
109
109
|
})).data;
|
|
110
110
|
y.value = e, l.value = !1;
|
|
111
111
|
} catch {
|
|
112
112
|
h({
|
|
113
|
-
message:
|
|
113
|
+
message: I.t("alert.error.couldntFetchListings"),
|
|
114
114
|
type: "warning"
|
|
115
115
|
});
|
|
116
116
|
}
|
|
@@ -118,25 +118,25 @@ const Qe = _e("event", () => {
|
|
|
118
118
|
async function $e(e) {
|
|
119
119
|
i.value = v.ReservationState, l.value = !0;
|
|
120
120
|
try {
|
|
121
|
-
const n = (await C.get("
|
|
121
|
+
const n = (await C.get("http://localhost:91/api/v3/event/get-availability", {
|
|
122
122
|
params: {
|
|
123
123
|
language: N(),
|
|
124
|
-
date:
|
|
125
|
-
templateId:
|
|
124
|
+
date: k.value,
|
|
125
|
+
templateId: P.value,
|
|
126
126
|
numberOfPeople: F.value
|
|
127
127
|
},
|
|
128
128
|
headers: {
|
|
129
|
-
Authorization:
|
|
130
|
-
"Fresh-Booking-Ver": "4.0.
|
|
129
|
+
Authorization: S.value,
|
|
130
|
+
"Fresh-Booking-Ver": "4.0.13"
|
|
131
131
|
}
|
|
132
132
|
})).data;
|
|
133
133
|
n.templateCounts.length === 0 ? h({
|
|
134
|
-
message:
|
|
134
|
+
message: I.t("alert.error.eventNotAvailable"),
|
|
135
135
|
type: "warning"
|
|
136
136
|
}) : (t.value = n, e()), l.value = !1;
|
|
137
137
|
} catch {
|
|
138
138
|
l.value = !1, i.value = v.AvailabilityState, h({
|
|
139
|
-
message:
|
|
139
|
+
message: I.t("alert.error.couldntFetchEvent"),
|
|
140
140
|
type: "warning"
|
|
141
141
|
});
|
|
142
142
|
}
|
|
@@ -144,44 +144,44 @@ const Qe = _e("event", () => {
|
|
|
144
144
|
async function Oe(e) {
|
|
145
145
|
i.value = v.ReservationState, l.value = !0;
|
|
146
146
|
try {
|
|
147
|
-
const n = (await C.get("
|
|
147
|
+
const n = (await C.get("http://localhost:91/api/v3/event/get-table-availability", {
|
|
148
148
|
params: {
|
|
149
149
|
language: N(),
|
|
150
|
-
date:
|
|
150
|
+
date: k.value,
|
|
151
151
|
numberOfPeople: F.value,
|
|
152
|
-
eventId:
|
|
153
|
-
tableGroupId:
|
|
152
|
+
eventId: P.value,
|
|
153
|
+
tableGroupId: x.value
|
|
154
154
|
},
|
|
155
155
|
headers: {
|
|
156
|
-
Authorization:
|
|
157
|
-
"Fresh-Booking-Ver": "4.0.
|
|
156
|
+
Authorization: S.value,
|
|
157
|
+
"Fresh-Booking-Ver": "4.0.13"
|
|
158
158
|
}
|
|
159
159
|
})).data;
|
|
160
160
|
t.value = n, l.value = !1, e();
|
|
161
161
|
} catch {
|
|
162
162
|
l.value = !1, i.value = v.AvailabilityState, h({
|
|
163
|
-
message:
|
|
163
|
+
message: I.t("alert.error.couldntFetchEvent"),
|
|
164
164
|
type: "warning"
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
async function Re() {
|
|
169
169
|
try {
|
|
170
|
-
const e = (await C.get("
|
|
170
|
+
const e = (await C.get("http://localhost:91/api/v3/event/validate-discount-code", {
|
|
171
171
|
params: {
|
|
172
172
|
language: N(),
|
|
173
|
-
date:
|
|
173
|
+
date: k.value,
|
|
174
174
|
discountCode: B.value
|
|
175
175
|
},
|
|
176
176
|
headers: {
|
|
177
|
-
Authorization:
|
|
178
|
-
"Fresh-Booking-Ver": "4.0.
|
|
177
|
+
Authorization: S.value,
|
|
178
|
+
"Fresh-Booking-Ver": "4.0.13"
|
|
179
179
|
}
|
|
180
180
|
})).data;
|
|
181
181
|
console.log(e);
|
|
182
182
|
} catch (e) {
|
|
183
183
|
console.log(e), h({
|
|
184
|
-
message:
|
|
184
|
+
message: I.t("alert.error.discountCodeValidation"),
|
|
185
185
|
type: "warning"
|
|
186
186
|
});
|
|
187
187
|
}
|
|
@@ -190,63 +190,63 @@ const Qe = _e("event", () => {
|
|
|
190
190
|
i.value = v.PaymentState, l.value = !0;
|
|
191
191
|
const n = () => {
|
|
192
192
|
l.value = !1, i.value = v.ReservationState, h({
|
|
193
|
-
message:
|
|
193
|
+
message: I.t("booking.other.errorMessage"),
|
|
194
194
|
type: "warning"
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
|
-
let
|
|
198
|
-
const
|
|
197
|
+
let u, c, r;
|
|
198
|
+
const D = [];
|
|
199
199
|
if (o(t.value))
|
|
200
200
|
J.value?.forEach((d, w) => {
|
|
201
201
|
const ee = [];
|
|
202
202
|
let te = 0;
|
|
203
|
-
for (const ae in
|
|
204
|
-
const
|
|
205
|
-
parseInt(
|
|
203
|
+
for (const ae in A.value) {
|
|
204
|
+
const L = ae.split("."), ne = A.value[ae];
|
|
205
|
+
parseInt(L[0]) === d.roomGroupID && parseInt(L[2]) === w && ne > 0 && (ee.push({
|
|
206
206
|
id: te,
|
|
207
|
-
addonID: parseInt(
|
|
207
|
+
addonID: parseInt(L[1]),
|
|
208
208
|
quantity: ne
|
|
209
209
|
}), te++);
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
D.push({
|
|
212
212
|
adultPerRoom: d.adultPerRoom,
|
|
213
213
|
count: d.count,
|
|
214
214
|
roomGroupID: d.roomGroupID,
|
|
215
215
|
addons: ee
|
|
216
216
|
});
|
|
217
|
-
}),
|
|
217
|
+
}), u = {
|
|
218
218
|
templateID: j.value,
|
|
219
219
|
numberOfDays: T.value,
|
|
220
|
-
templateCounts:
|
|
220
|
+
templateCounts: D
|
|
221
221
|
};
|
|
222
222
|
else {
|
|
223
|
-
c = [],
|
|
224
|
-
for (const d in
|
|
225
|
-
const w =
|
|
223
|
+
c = [], r = E.value;
|
|
224
|
+
for (const d in m.value) {
|
|
225
|
+
const w = m.value[parseInt(d)];
|
|
226
226
|
w > 0 && c.push({
|
|
227
227
|
id: parseInt(d),
|
|
228
228
|
quantity: w
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
let
|
|
232
|
+
let g = "http://localhost:91/api/v3/event/template-book";
|
|
233
233
|
const f = {
|
|
234
|
-
date:
|
|
234
|
+
date: k.value,
|
|
235
235
|
name: $.value,
|
|
236
236
|
email: R.value,
|
|
237
237
|
phone: O.value,
|
|
238
|
-
remark:
|
|
238
|
+
remark: _.value,
|
|
239
239
|
numberOfPeople: F.value,
|
|
240
240
|
days: z.value,
|
|
241
241
|
discountCode: B.value,
|
|
242
|
-
giftCardCode:
|
|
242
|
+
giftCardCode: ue.value,
|
|
243
243
|
checkoutUrl: window.location.origin,
|
|
244
244
|
privacyUrl: window.location.origin
|
|
245
245
|
};
|
|
246
|
-
o(t.value) ? f.templateGroup =
|
|
246
|
+
o(t.value) ? f.templateGroup = u : (f.time = r, f.eventId = P.value, f.products = c, g = "http://localhost:91/api/v3/event/event-book"), await C.post(g, f, {
|
|
247
247
|
headers: {
|
|
248
|
-
Authorization:
|
|
249
|
-
"Fresh-Booking-Ver": "4.0.
|
|
248
|
+
Authorization: S.value,
|
|
249
|
+
"Fresh-Booking-Ver": "4.0.13"
|
|
250
250
|
}
|
|
251
251
|
}).then((d) => {
|
|
252
252
|
l.value = !1, se.pay({
|
|
@@ -256,7 +256,7 @@ const Qe = _e("event", () => {
|
|
|
256
256
|
}).catch(() => n());
|
|
257
257
|
}
|
|
258
258
|
function ze(e) {
|
|
259
|
-
|
|
259
|
+
A.value = {}, m.value = {}, E.value = "", e();
|
|
260
260
|
}
|
|
261
261
|
function Me() {
|
|
262
262
|
Y();
|
|
@@ -268,42 +268,42 @@ const Qe = _e("event", () => {
|
|
|
268
268
|
availabilityData: t,
|
|
269
269
|
isLoading: l,
|
|
270
270
|
moduleState: i,
|
|
271
|
-
searchDate:
|
|
271
|
+
searchDate: K,
|
|
272
272
|
numberOfPeople: F,
|
|
273
273
|
numberOfDays: T,
|
|
274
|
-
eventId:
|
|
275
|
-
tableGroupId:
|
|
274
|
+
eventId: P,
|
|
275
|
+
tableGroupId: x,
|
|
276
276
|
arrivalTime: E,
|
|
277
|
-
addons:
|
|
278
|
-
products:
|
|
277
|
+
addons: A,
|
|
278
|
+
products: m,
|
|
279
279
|
discountCode: B,
|
|
280
280
|
name: $,
|
|
281
281
|
phone: O,
|
|
282
282
|
email: R,
|
|
283
|
-
remark:
|
|
283
|
+
remark: _,
|
|
284
284
|
isTemplateEvent: pe,
|
|
285
|
-
currency:
|
|
285
|
+
currency: re,
|
|
286
286
|
maxNumberOfPeople: ie,
|
|
287
287
|
title: ve,
|
|
288
288
|
subtitle: ce,
|
|
289
289
|
slideshow: de,
|
|
290
|
-
date:
|
|
290
|
+
date: k,
|
|
291
291
|
numberOfTotalDays: z,
|
|
292
|
-
numberOfRooms:
|
|
293
|
-
fromDate:
|
|
292
|
+
numberOfRooms: me,
|
|
293
|
+
fromDate: ge,
|
|
294
294
|
getEventData: b,
|
|
295
295
|
length: fe,
|
|
296
296
|
templateId: j,
|
|
297
297
|
getEvents: he,
|
|
298
298
|
getTemplates: ye,
|
|
299
299
|
hasEvents: be,
|
|
300
|
-
hasTemplates:
|
|
300
|
+
hasTemplates: De,
|
|
301
301
|
basePrice: W,
|
|
302
|
-
totalPrice:
|
|
302
|
+
totalPrice: Se,
|
|
303
303
|
getTemplateData: J,
|
|
304
304
|
getEventTableData: M,
|
|
305
|
-
roomUpgrade:
|
|
306
|
-
weekendFee:
|
|
305
|
+
roomUpgrade: Ae,
|
|
306
|
+
weekendFee: Pe,
|
|
307
307
|
hasProducts: X,
|
|
308
308
|
eventRateType: Q,
|
|
309
309
|
isReservationFormFilled: we,
|
|
@@ -311,15 +311,15 @@ const Qe = _e("event", () => {
|
|
|
311
311
|
areListingsAvailable: Ne,
|
|
312
312
|
isAvailabilityDataAvailable: Fe,
|
|
313
313
|
isPaymentLoading: Te,
|
|
314
|
-
getEventImages:
|
|
314
|
+
getEventImages: Ie,
|
|
315
315
|
isEventListingLoading: Ce,
|
|
316
316
|
fetchMetaData: Y,
|
|
317
317
|
fetchListings: Z,
|
|
318
318
|
getTemplateAvailability: $e,
|
|
319
319
|
getEventAvailability: Oe,
|
|
320
320
|
validateDiscountCode: Re,
|
|
321
|
-
localAddonPrice:
|
|
322
|
-
totalAddonPrice:
|
|
321
|
+
localAddonPrice: G,
|
|
322
|
+
totalAddonPrice: V,
|
|
323
323
|
createBooking: Be,
|
|
324
324
|
reset: ze,
|
|
325
325
|
initialize: Me
|
|
Binary file
|
package/dist/event.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-2b92f88c.cjs"),b=require("./index-e81b12be.cjs"),w=require("./ThankYou-2c1ee36b.cjs"),x=require("./event-8738e24d.cjs"),ye=require("./ActionField-8a007a6c.cjs"),H=require("./TextField-641e6fd1.cjs"),Be=require("./DateField.vue_vue_type_style_index_0_lang-31a9e5dc.cjs"),A=require("./NumberField.vue_vue_type_script_setup_true_lang-d756efc3.cjs");require("./_commonjsHelpers-6763f629.cjs");require("./_-82677476.cjs");const _e={class:"fresh-booking-event-listing-information"},Ve={key:0},be={key:1},Ne=e.defineComponent({__name:"Event",props:{name:{},type:{},description:{},fromDate:{},toDate:{},listingId:{},tableGroupId:{},days:{},timeFrom:{},timeTo:{},maxOnlineReservationLimit:{},minimumPersonCount:{},fromPrice:{},gallery:{},soldOut:{type:Boolean,default:!1},layout:{},trackingEnabled:{type:Boolean},callback:{}},setup(y){const n=y,{t:a}=e.useI18n(),{display:k}=e.useAlertStore(),{currency:F}=e.storeToRefs(e.useUtilityStore()),{maxNumberOfPeople:B,numberOfPeople:L,eventId:_,tableGroupId:h}=e.storeToRefs(x.useEventStore()),{getTemplateAvailability:S,getEventAvailability:D,isEventListingLoading:g}=x.useEventStore(),m=e.ref(0),T=e.computed(()=>g(n.listingId)),O=()=>{m.value>0?(_.value=n.listingId,L.value=m.value,S(n.callback)):k({type:"error",message:a("alert.error.selectPeople")})},u=()=>{m.value>0?(_.value=n.listingId,h.value=n.tableGroupId,L.value=m.value,D(n.callback)):k({type:"error",message:a("alert.error.selectPeople")})};return(o,c)=>(e.openBlock(),e.createBlock(w.Base,{"listing-id":o.listingId,gallery:o.gallery,name:o.name,description:o.description,layout:e.unref(e.BookingLayout).Event},e.createSlots({action:e.withCtx(()=>[e.createVNode(ye.ActionField,{modelValue:m.value,"onUpdate:modelValue":c[0]||(c[0]=V=>m.value=V),type:"number",label:e.unref(a)("event.numberOfGuests"),buttonLabel:o.soldOut?e.unref(a)("event.soldOut"):e.unref(a)("event.bookNowButton"),buttonDisabled:o.soldOut,"min-value":o.type==="event"?1:o.minimumPersonCount,"max-value":o.type==="event"?o.maxOnlineReservationLimit||1/0:e.unref(B),"is-loading":T.value,"onUpdate:isLoading":c[1]||(c[1]=V=>T.value=V),onAction:c[2]||(c[2]=V=>o.type==="event"?u():O())},null,8,["modelValue","label","buttonLabel","buttonDisabled","min-value","max-value","is-loading"])]),_:2},[o.type==="event"?{name:"description",fn:e.withCtx(()=>[e.createBaseVNode("ul",_e,[e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"calendar-range",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDay)(o.days)),1)]),e.unref(e.daysBetweenDates)(o.fromDate,o.toDate)<180?(e.openBlock(),e.createElementBlock("li",Ve,[e.createVNode(e.Icon,{icon:"calendar-days",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDates)(o.fromDate,o.toDate)),1)])):e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"calendar-clock",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showTimes)(o.timeFrom,o.timeTo)),1)]),o.maxOnlineReservationLimit?(e.openBlock(),e.createElementBlock("li",be,[e.createVNode(e.Icon,{icon:"user-alt",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`1 - ${o.maxOnlineReservationLimit} ${e.unref(a)("general.people")}`),1)])):e.createCommentVNode("",!0)])]),key:"0"}:{name:"description",fn:e.withCtx(()=>[e.createBaseVNode("ul",{class:"fresh-booking-event-listing-information"},[e.unref(e.daysBetweenDates)(o.fromDate,o.toDate)<180?(e.openBlock(),e.createElementBlock("li",{key:0},[e.createVNode(e.Icon,{icon:"calendar-days",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDates)(o.fromDate,o.toDate,!0)),1)])):e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"user-alt",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`${o.minimumPersonCount} - ${e.unref(B)} ${e.unref(a)("general.people")}`),1)]),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"money-bill",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`${e.unref(a)("general.pricesFrom")} ${e.unref(e.showPrice)(o.fromPrice,e.unref(F))}`),1)])])]),key:"1"}]),1032,["listing-id","gallery","name","description","layout"]))}});const J=e._export_sfc(Ne,[["__scopeId","data-v-4a459a74"]]),N=y=>(e.pushScopeId("data-v-b2eee97d"),y=y(),e.popScopeId(),y),he={class:"fresh-booking-panel"},Se={key:0,id:"fresh-booking-event-overview"},De={class:"fresh-booking-event-listings"},Ee={class:"fresh-booking-event-listings"},Ce={key:2,id:"fresh-booking-event-addons"},we={class:"fresh-booking-table"},Fe=N(()=>e.createBaseVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Te={class:"fresh-booking-event-addons-price"},Pe=N(()=>e.createBaseVNode("br",null,null,-1)),$e={class:"fresh-booking-event-addons-input"},xe={class:"fresh-booking-event-addons-price"},Le=N(()=>e.createBaseVNode("td",{colspan:"2"},null,-1)),Oe={class:"fresh-booking-event-addons-price"},Re={key:3},Ue={class:"fresh-booking-label required"},qe={id:"fresh-booking-event-table"},Ae={key:4},Ie={class:"fresh-booking-label required"},Me={class:"fresh-booking-table"},ze=N(()=>e.createBaseVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Ye={class:"fresh-booking-event-addons-price"},Qe=N(()=>e.createBaseVNode("br",null,null,-1)),We=N(()=>e.createBaseVNode("br",null,null,-1)),je={class:"fresh-booking-event-addons-input"},He={class:"fresh-booking-event-addons-price"},Je={key:0},Ke={key:1},Xe={key:2},Ze={key:3},Ge={key:4},et={key:5},tt={key:6},nt=e.defineComponent({name:"EventLayout",__name:"Event",props:{accessToken:{},styling:{}},setup(y){const{t:n}=e.useI18n(),{searchDate:a,addons:k,products:F,numberOfDays:B,discountCode:L,name:_,phone:h,email:S,remark:D,arrivalTime:g,title:m,subtitle:T,slideshow:O,currency:u,numberOfPeople:o,numberOfTotalDays:c,numberOfRooms:V,basePrice:K,totalPrice:X,isPaymentLoading:Z,hasEvents:G,hasTemplates:ee,getEvents:te,getTemplates:ne,getEventData:oe,getTemplateData:P,getEventTableData:le,length:I,roomUpgrade:ae,weekendFee:re,fromDate:M,hasProducts:se,eventRateType:z,isMetaDataAvailable:ie,areListingsAvailable:ue,isReservationFormFilled:ce,isAvailabilityDataAvailable:de,isTemplateEvent:f,tableBasePrice:Y}=e.storeToRefs(x.useEventStore()),{initialize:pe,validateDiscountCode:rt,fetchListings:me,createBooking:fe,localAddonPrice:Q,totalAddonPrice:W,reset:ve}=x.useEventStore(),{hideEvents:ke,hideEventTemplates:ge}=e.storeToRefs(e.useUtilityStore());return e.onMounted(()=>pe()),e.watch(a,()=>me()),(j,l)=>(e.openBlock(),e.createBlock(e._sfc_main,{id:"fresh-booking-event-module",class:"fresh-booking-app",type:"event","access-token":j.accessToken,styling:j.styling},{default:e.withCtx(()=>[e.unref(ie)?(e.openBlock(),e.createBlock(w.MultiStepForm,{key:0,slideshow:e.unref(O),title:e.unref(m),subtitle:e.unref(T)},{availability:e.withCtx(({next:$})=>[e.createBaseVNode("div",he,[e.createVNode(Be._sfc_main,{modelValue:e.unref(a),"onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(a)?a.value=d:null),label:e.unref(n)("event.selectDate"),"min-date":new Date},null,8,["modelValue","label","min-date"])]),e.unref(ue)?(e.openBlock(),e.createElementBlock("div",Se,[e.unref(G)&&!e.unref(ke)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"clock-seven",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("event.eventsTitle")),1)]),e.createBaseVNode("ul",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(te),({id:d,days:t,name:s,timeFrom:p,timeTo:r,fromDate:i,toDate:E,tableGroupID:R,description:U,soldOut:q,maxOnlineReservationLimit:C})=>(e.openBlock(),e.createBlock(J,{key:d,type:"event","listing-id":d,"table-group-id":R,description:U,name:s,days:t,"from-date":i,"to-date":E,"max-online-reservation-limit":C,"time-from":p,"time-to":r,"sold-out":q,callback:$},null,8,["listing-id","table-group-id","description","name","days","from-date","to-date","max-online-reservation-limit","time-from","time-to","sold-out","callback"]))),128))])],64)):e.createCommentVNode("",!0),e.unref(ee)&&!e.unref(ge)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"stars",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("event.stayTitle")),1)]),e.createBaseVNode("ul",Ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ne),({id:d,name:t,fromDate:s,toDate:p,minimumPersonCount:r,fromPrice:i,description:E})=>(e.openBlock(),e.createBlock(J,{key:d,type:"template","listing-id":d,name:t,description:E,"from-date":s,"to-date":p,"minimum-person-count":r,fromPrice:i,callback:$},null,8,["listing-id","name","description","from-date","to-date","minimum-person-count","fromPrice","callback"]))),128))])],64)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),reservation:e.withCtx(({next:$,prev:d})=>[e.unref(de)?(e.openBlock(),e.createBlock(w.ReservationForm,{key:0,remark:e.unref(D),"onUpdate:remark":l[8]||(l[8]=t=>e.isRef(D)?D.value=t:null),"is-filled":e.unref(ce),"is-loading":e.unref(Z),"base-price":e.unref(K),"total-price":e.unref(X),"weekend-fee":e.unref(re),"room-upgrade":e.unref(ae),onPrev:t=>e.unref(ve)(d),onNext:t=>e.unref(fe)($)},{form:e.withCtx(()=>[e.unref(z)===e.unref(e.OctopusEventRateType).FullDayEvent?(e.openBlock(),e.createBlock(A._sfc_main,{key:0,modelValue:e.unref(B),"onUpdate:modelValue":l[1]||(l[1]=t=>e.isRef(B)?B.value=t:null),label:e.unref(n)("event.numberOfDays"),"min-value":1,required:""},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(H.TextField,{modelValue:e.unref(_),"onUpdate:modelValue":l[2]||(l[2]=t=>e.isRef(_)?_.value=t:null),type:"text",label:e.unref(n)("booking.reservation.name"),icon:"user-alt",placeholder:e.unref(n)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(H.TextField,{modelValue:e.unref(S),"onUpdate:modelValue":l[3]||(l[3]=t=>e.isRef(S)?S.value=t:null),label:e.unref(n)("booking.reservation.email"),type:"email",name:"email",autocomplete:"email",icon:"at",placeholder:e.unref(n)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(b.PhoneField,{modelValue:e.unref(h),"onUpdate:modelValue":l[4]||(l[4]=t=>e.isRef(h)?h.value=t:null),label:e.unref(n)("booking.reservation.phone"),icon:"phone-office",placeholder:e.unref(n)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createCommentVNode("",!0),e.unref(P)&&e.unref(P).length>0?(e.openBlock(),e.createElementBlock("ul",Ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(P),({roomGroupID:t,addons:s,adultPerRoom:p},r)=>(e.openBlock(),e.createElementBlock("li",{key:t},[e.createBaseVNode("h5",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.room"))+" #"+e.toDisplayString(r+1),1),e.createTextVNode(" ("),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"header"}),e.createTextVNode(" "+e.toDisplayString(p)+") ",1)]),e.createBaseVNode("table",we,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.addons")),1)]),Fe,e.createBaseVNode("th",Te,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("booking.availability.price")),1)])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,({addonID:i,cardinality:E,name:R,price:U,quantityStrategy:q})=>(e.openBlock(),e.createElementBlock("tr",{key:i},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,e.toDisplayString(R),1),Pe,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(U,e.unref(u)))+" "+e.toDisplayString(e.unref(e.getPriceQuantityLabel)(q)),1)]),e.createBaseVNode("td",$e,[E===3?(e.openBlock(),e.createBlock(A._sfc_main,{key:0,modelValue:e.unref(k)[`${t}.${i}.${r}`],"onUpdate:modelValue":C=>e.unref(k)[`${t}.${i}.${r}`]=C,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(b.Checkbox,{key:1,modelValue:e.unref(k)[`${t}.${i}.${r}`],"onUpdate:modelValue":C=>e.unref(k)[`${t}.${i}.${r}`]=C,numeric:!0},null,8,["modelValue","onUpdate:modelValue"]))]),e.createBaseVNode("td",xe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Q)(i,t,r),e.unref(u))),1)])]))),128))]),e.createBaseVNode("tfoot",null,[e.createBaseVNode("tr",null,[Le,e.createBaseVNode("td",Oe,[e.createBaseVNode("u",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(W)(t,r),e.unref(u))),1)])])])])])]))),128))])):e.createCommentVNode("",!0),e.unref(z)!==e.unref(e.OctopusEventRateType).FullDayEvent&&!e.unref(f)?(e.openBlock(),e.createElementBlock("div",Re,[e.createBaseVNode("label",Ue,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("event.selectArrivalTime")),1)]),e.createBaseVNode("ul",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(le),(t,s)=>(e.openBlock(),e.createElementBlock("li",{key:s},[e.createVNode(b.Checkbox,{modelValue:e.unref(g),"onUpdate:modelValue":l[7]||(l[7]=p=>e.isRef(g)?g.value=p:null),type:"radio",name:"eventTimeTable",val:t.time,label:e.unref(e.showTime)(t.time)},null,8,["modelValue","val","label"])]))),128))])])):e.createCommentVNode("",!0),e.unref(se)?(e.openBlock(),e.createElementBlock("div",Ae,[e.createBaseVNode("label",Ie,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("event.selectProducts")),1)]),e.createBaseVNode("table",Me,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.addons")),1)]),ze,e.createBaseVNode("th",Ye,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("booking.availability.price")),1)])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(oe).products,({productID:t,productName:s,price:p,description:r})=>(e.openBlock(),e.createElementBlock("tr",{key:t},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(s),1)]),Qe,e.createBaseVNode("span",null,e.toDisplayString(r),1),We,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(p,e.unref(u))),1)]),e.createBaseVNode("td",je,[e.createVNode(A._sfc_main,{modelValue:e.unref(F)[t],"onUpdate:modelValue":i=>e.unref(F)[t]=i,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])]),e.createBaseVNode("td",He,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Q)(t),e.unref(u))),1)])]))),128))])])])):e.createCommentVNode("",!0)]),resume:e.withCtx(()=>[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("event.numberOfGuests")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(o)),1)]),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Je,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("event.numberOfRooms")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(V)),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Ke,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("event.numberOfDays")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(c)),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Xe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.arrival")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showDate)(e.unref(M))),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Ze,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.departure")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showDate)(e.unref(M),e.unref(c))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(g)?(e.openBlock(),e.createElementBlock("li",Ge,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("event.startOfEvent")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showTime)(e.unref(g))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(I)?(e.openBlock(),e.createElementBlock("li",et,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("event.lengthOfEvent")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showTime)(e.unref(I))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(Y)>0?(e.openBlock(),e.createElementBlock("li",tt,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("booking.availability.basePrice")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Y),e.unref(u))),1)])):e.createCommentVNode("",!0)]),expenses:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(P),({roomGroupID:t},s)=>(e.openBlock(),e.createElementBlock("li",{key:t},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.addons"))+" - "+e.toDisplayString(e.unref(n)("booking.reservation.room"))+" #"+e.toDisplayString(s+1),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(W)(t,s),e.unref(u))),1)]))),128))]),_:2},1032,["remark","is-filled","is-loading","base-price","total-price","weekend-fee","room-upgrade","onPrev","onNext"])):e.createCommentVNode("",!0)]),payment:e.withCtx(()=>[e.createVNode(b.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(w.ThankYou,{message:e.unref(n)("event.confirmationMessage")},null,8,["message"])]),_:1},8,["slideshow","title","subtitle"])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","styling"]))}});const ot=e._export_sfc(nt,[["__scopeId","data-v-b2eee97d"]]),lt=e.createPinia(),at=e.zo(),v=e.createApp({components:{Event:ot}});v.use(lt);v.use(at);v.use(b.StickyPlugin);v.use(e.instance);v.use(w.xt);v.use(b.install,{bootstrap:!1});v.mount("#konnectio-event-app");module.exports=v;
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-b92d158e.cjs"),b=require("./index-2018df9e.cjs"),w=require("./ThankYou-d4fae82e.cjs"),x=require("./event-f2a6108f.cjs"),ye=require("./ActionField-74fc14cf.cjs"),H=require("./TextField-52bc45b8.cjs"),Be=require("./DateField.vue_vue_type_style_index_0_lang-41b83959.cjs"),A=require("./NumberField.vue_vue_type_script_setup_true_lang-8525b2cd.cjs");require("./_commonjsHelpers-6763f629.cjs");require("./_-f5fc7dd6.cjs");const _e={class:"fresh-booking-event-listing-information"},Ve={key:0},be={key:1},Ne=e.defineComponent({__name:"Event",props:{name:{},type:{},description:{},fromDate:{},toDate:{},listingId:{},tableGroupId:{},days:{},timeFrom:{},timeTo:{},maxOnlineReservationLimit:{},minimumPersonCount:{},fromPrice:{},gallery:{},soldOut:{type:Boolean,default:!1},layout:{},trackingEnabled:{type:Boolean},callback:{}},setup(y){const{t}=e.useI18n(),i=y,{display:k}=e.useAlertStore(),{currency:F}=e.storeToRefs(e.useUtilityStore()),{maxNumberOfPeople:B,numberOfPeople:L,eventId:_,tableGroupId:h}=e.storeToRefs(x.useEventStore()),{getTemplateAvailability:S,getEventAvailability:D,isEventListingLoading:g}=x.useEventStore(),m=e.ref(0),T=e.computed(()=>g(i.listingId)),O=()=>{m.value>0?(_.value=i.listingId,L.value=m.value,S(i.callback)):k({type:"error",message:t("alert.error.selectPeople")})},u=()=>{m.value>0?(_.value=i.listingId,h.value=i.tableGroupId,L.value=m.value,D(i.callback)):k({type:"error",message:t("alert.error.selectPeople")})};return(o,c)=>(e.openBlock(),e.createBlock(w.Base,{"listing-id":o.listingId,gallery:o.gallery,name:o.name,description:o.description,layout:e.unref(e.BookingLayout).Event},e.createSlots({action:e.withCtx(()=>[e.createVNode(ye.ActionField,{modelValue:m.value,"onUpdate:modelValue":c[0]||(c[0]=V=>m.value=V),type:"number",label:e.unref(t)("event.numberOfGuests"),buttonLabel:o.soldOut?e.unref(t)("event.soldOut"):e.unref(t)("event.bookNowButton"),buttonDisabled:o.soldOut,"min-value":o.type==="event"?1:o.minimumPersonCount,"max-value":o.type==="event"?o.maxOnlineReservationLimit||1/0:e.unref(B),"is-loading":T.value,"onUpdate:isLoading":c[1]||(c[1]=V=>T.value=V),onAction:c[2]||(c[2]=V=>o.type==="event"?u():O())},null,8,["modelValue","label","buttonLabel","buttonDisabled","min-value","max-value","is-loading"])]),_:2},[o.type==="event"?{name:"description",fn:e.withCtx(()=>[e.createBaseVNode("ul",_e,[e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"calendar-range",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDay)(o.days)),1)]),e.unref(e.daysBetweenDates)(o.fromDate,o.toDate)<180?(e.openBlock(),e.createElementBlock("li",Ve,[e.createVNode(e.Icon,{icon:"calendar-days",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDates)(o.fromDate,o.toDate)),1)])):e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"calendar-clock",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showTimes)(o.timeFrom,o.timeTo)),1)]),o.maxOnlineReservationLimit?(e.openBlock(),e.createElementBlock("li",be,[e.createVNode(e.Icon,{icon:"user-alt",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`1 - ${o.maxOnlineReservationLimit} ${e.unref(t)("general.people")}`),1)])):e.createCommentVNode("",!0)])]),key:"0"}:{name:"description",fn:e.withCtx(()=>[e.createBaseVNode("ul",{class:"fresh-booking-event-listing-information"},[e.unref(e.daysBetweenDates)(o.fromDate,o.toDate)<180?(e.openBlock(),e.createElementBlock("li",{key:0},[e.createVNode(e.Icon,{icon:"calendar-days",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDates)(o.fromDate,o.toDate,!0)),1)])):e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"user-alt",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`${o.minimumPersonCount} - ${e.unref(B)} ${e.unref(t)("general.people")}`),1)]),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"money-bill",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`${e.unref(t)("general.pricesFrom")} ${e.unref(e.showPrice)(o.fromPrice,e.unref(F))}`),1)])])]),key:"1"}]),1032,["listing-id","gallery","name","description","layout"]))}});const J=e._export_sfc(Ne,[["__scopeId","data-v-4a459a74"]]),N=y=>(e.pushScopeId("data-v-b2eee97d"),y=y(),e.popScopeId(),y),he={class:"fresh-booking-panel"},Se={key:0,id:"fresh-booking-event-overview"},De={class:"fresh-booking-event-listings"},Ee={class:"fresh-booking-event-listings"},Ce={key:2,id:"fresh-booking-event-addons"},we={class:"fresh-booking-table"},Fe=N(()=>e.createBaseVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Te={class:"fresh-booking-event-addons-price"},Pe=N(()=>e.createBaseVNode("br",null,null,-1)),$e={class:"fresh-booking-event-addons-input"},xe={class:"fresh-booking-event-addons-price"},Le=N(()=>e.createBaseVNode("td",{colspan:"2"},null,-1)),Oe={class:"fresh-booking-event-addons-price"},Re={key:3},Ue={class:"fresh-booking-label required"},qe={id:"fresh-booking-event-table"},Ae={key:4},Ie={class:"fresh-booking-label required"},Me={class:"fresh-booking-table"},ze=N(()=>e.createBaseVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Ye={class:"fresh-booking-event-addons-price"},Qe=N(()=>e.createBaseVNode("br",null,null,-1)),We=N(()=>e.createBaseVNode("br",null,null,-1)),je={class:"fresh-booking-event-addons-input"},He={class:"fresh-booking-event-addons-price"},Je={key:0},Ke={key:1},Xe={key:2},Ze={key:3},Ge={key:4},et={key:5},tt={key:6},nt=e.defineComponent({name:"EventLayout",__name:"Event",props:{accessToken:{},styling:{}},setup(y){const{t}=e.useI18n(),{searchDate:i,addons:k,products:F,numberOfDays:B,discountCode:L,name:_,phone:h,email:S,remark:D,arrivalTime:g,title:m,subtitle:T,slideshow:O,currency:u,numberOfPeople:o,numberOfTotalDays:c,numberOfRooms:V,basePrice:K,totalPrice:X,isPaymentLoading:Z,hasEvents:G,hasTemplates:ee,getEvents:te,getTemplates:ne,getEventData:oe,getTemplateData:P,getEventTableData:le,length:I,roomUpgrade:ae,weekendFee:re,fromDate:M,hasProducts:se,eventRateType:z,isMetaDataAvailable:ie,areListingsAvailable:ue,isReservationFormFilled:ce,isAvailabilityDataAvailable:de,isTemplateEvent:f,tableBasePrice:Y}=e.storeToRefs(x.useEventStore()),{initialize:pe,validateDiscountCode:rt,fetchListings:me,createBooking:fe,localAddonPrice:Q,totalAddonPrice:W,reset:ve}=x.useEventStore(),{hideEvents:ke,hideEventTemplates:ge}=e.storeToRefs(e.useUtilityStore());return e.onMounted(()=>pe()),e.watch(i,()=>me()),(j,l)=>(e.openBlock(),e.createBlock(e._sfc_main$1,{id:"fresh-booking-event-module",class:"fresh-booking-app",type:"event","access-token":j.accessToken,styling:j.styling},{default:e.withCtx(()=>[e.unref(ie)?(e.openBlock(),e.createBlock(w.MultiStepForm,{key:0,slideshow:e.unref(O),title:e.unref(m),subtitle:e.unref(T)},{availability:e.withCtx(({next:$})=>[e.createBaseVNode("div",he,[e.createVNode(Be._sfc_main,{modelValue:e.unref(i),"onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(i)?i.value=d:null),label:e.unref(t)("event.selectDate"),"min-date":new Date},null,8,["modelValue","label","min-date"])]),e.unref(ue)?(e.openBlock(),e.createElementBlock("div",Se,[e.unref(G)&&!e.unref(ke)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"clock-seven",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.eventsTitle")),1)]),e.createBaseVNode("ul",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(te),({id:d,days:n,name:r,timeFrom:p,timeTo:a,fromDate:s,toDate:E,tableGroupID:R,description:U,soldOut:q,maxOnlineReservationLimit:C})=>(e.openBlock(),e.createBlock(J,{key:d,type:"event","listing-id":d,"table-group-id":R,description:U,name:r,days:n,"from-date":s,"to-date":E,"max-online-reservation-limit":C,"time-from":p,"time-to":a,"sold-out":q,callback:$},null,8,["listing-id","table-group-id","description","name","days","from-date","to-date","max-online-reservation-limit","time-from","time-to","sold-out","callback"]))),128))])],64)):e.createCommentVNode("",!0),e.unref(ee)&&!e.unref(ge)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"stars",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.stayTitle")),1)]),e.createBaseVNode("ul",Ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ne),({id:d,name:n,fromDate:r,toDate:p,minimumPersonCount:a,fromPrice:s,description:E})=>(e.openBlock(),e.createBlock(J,{key:d,type:"template","listing-id":d,name:n,description:E,"from-date":r,"to-date":p,"minimum-person-count":a,fromPrice:s,callback:$},null,8,["listing-id","name","description","from-date","to-date","minimum-person-count","fromPrice","callback"]))),128))])],64)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),reservation:e.withCtx(({next:$,prev:d})=>[e.unref(de)?(e.openBlock(),e.createBlock(w.ReservationForm,{key:0,remark:e.unref(D),"onUpdate:remark":l[8]||(l[8]=n=>e.isRef(D)?D.value=n:null),"is-filled":e.unref(ce),"is-loading":e.unref(Z),"base-price":e.unref(K),"total-price":e.unref(X),"weekend-fee":e.unref(re),"room-upgrade":e.unref(ae),onPrev:n=>e.unref(ve)(d),onNext:n=>e.unref(fe)($)},{form:e.withCtx(()=>[e.unref(z)===e.unref(e.OctopusEventRateType).FullDayEvent?(e.openBlock(),e.createBlock(A._sfc_main,{key:0,modelValue:e.unref(B),"onUpdate:modelValue":l[1]||(l[1]=n=>e.isRef(B)?B.value=n:null),label:e.unref(t)("event.numberOfDays"),"min-value":1,required:""},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(H.TextField,{modelValue:e.unref(_),"onUpdate:modelValue":l[2]||(l[2]=n=>e.isRef(_)?_.value=n:null),type:"text",label:e.unref(t)("booking.reservation.name"),icon:"user-alt",placeholder:e.unref(t)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(H.TextField,{modelValue:e.unref(S),"onUpdate:modelValue":l[3]||(l[3]=n=>e.isRef(S)?S.value=n:null),label:e.unref(t)("booking.reservation.email"),type:"email",name:"email",autocomplete:"email",icon:"at",placeholder:e.unref(t)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(b.PhoneField,{modelValue:e.unref(h),"onUpdate:modelValue":l[4]||(l[4]=n=>e.isRef(h)?h.value=n:null),label:e.unref(t)("booking.reservation.phone"),icon:"phone-office",placeholder:e.unref(t)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createCommentVNode("",!0),e.unref(P)&&e.unref(P).length>0?(e.openBlock(),e.createElementBlock("ul",Ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(P),({roomGroupID:n,addons:r,adultPerRoom:p},a)=>(e.openBlock(),e.createElementBlock("li",{key:n},[e.createBaseVNode("h5",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.room"))+" #"+e.toDisplayString(a+1),1),e.createTextVNode(" ("),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"header"}),e.createTextVNode(" "+e.toDisplayString(p)+") ",1)]),e.createBaseVNode("table",we,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1)]),Fe,e.createBaseVNode("th",Te,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.price")),1)])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,({addonID:s,cardinality:E,name:R,price:U,quantityStrategy:q})=>(e.openBlock(),e.createElementBlock("tr",{key:s},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,e.toDisplayString(R),1),Pe,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(U,e.unref(u)))+" "+e.toDisplayString(e.unref(e.getPriceQuantityLabel)(q)),1)]),e.createBaseVNode("td",$e,[E===3?(e.openBlock(),e.createBlock(A._sfc_main,{key:0,modelValue:e.unref(k)[`${n}.${s}.${a}`],"onUpdate:modelValue":C=>e.unref(k)[`${n}.${s}.${a}`]=C,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(b.Checkbox,{key:1,modelValue:e.unref(k)[`${n}.${s}.${a}`],"onUpdate:modelValue":C=>e.unref(k)[`${n}.${s}.${a}`]=C,numeric:!0},null,8,["modelValue","onUpdate:modelValue"]))]),e.createBaseVNode("td",xe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Q)(s,n,a),e.unref(u))),1)])]))),128))]),e.createBaseVNode("tfoot",null,[e.createBaseVNode("tr",null,[Le,e.createBaseVNode("td",Oe,[e.createBaseVNode("u",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(W)(n,a),e.unref(u))),1)])])])])])]))),128))])):e.createCommentVNode("",!0),e.unref(z)!==e.unref(e.OctopusEventRateType).FullDayEvent&&!e.unref(f)?(e.openBlock(),e.createElementBlock("div",Re,[e.createBaseVNode("label",Ue,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.selectArrivalTime")),1)]),e.createBaseVNode("ul",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(le),(n,r)=>(e.openBlock(),e.createElementBlock("li",{key:r},[e.createVNode(b.Checkbox,{modelValue:e.unref(g),"onUpdate:modelValue":l[7]||(l[7]=p=>e.isRef(g)?g.value=p:null),type:"radio",name:"eventTimeTable",val:n.time,label:e.unref(e.showTime)(n.time)},null,8,["modelValue","val","label"])]))),128))])])):e.createCommentVNode("",!0),e.unref(se)?(e.openBlock(),e.createElementBlock("div",Ae,[e.createBaseVNode("label",Ie,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.selectProducts")),1)]),e.createBaseVNode("table",Me,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1)]),ze,e.createBaseVNode("th",Ye,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.price")),1)])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(oe).products,({productID:n,productName:r,price:p,description:a})=>(e.openBlock(),e.createElementBlock("tr",{key:n},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(r),1)]),Qe,e.createBaseVNode("span",null,e.toDisplayString(a),1),We,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(p,e.unref(u))),1)]),e.createBaseVNode("td",je,[e.createVNode(A._sfc_main,{modelValue:e.unref(F)[n],"onUpdate:modelValue":s=>e.unref(F)[n]=s,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])]),e.createBaseVNode("td",He,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Q)(n),e.unref(u))),1)])]))),128))])])])):e.createCommentVNode("",!0)]),resume:e.withCtx(()=>[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.numberOfGuests")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(o)),1)]),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Je,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.numberOfRooms")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(V)),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Ke,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.numberOfDays")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(c)),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Xe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.arrival")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showDate)(e.unref(M))),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Ze,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.departure")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showDate)(e.unref(M),e.unref(c))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(g)?(e.openBlock(),e.createElementBlock("li",Ge,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.startOfEvent")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showTime)(e.unref(g))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(I)?(e.openBlock(),e.createElementBlock("li",et,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.lengthOfEvent")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showTime)(e.unref(I))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(Y)>0?(e.openBlock(),e.createElementBlock("li",tt,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.basePrice")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Y),e.unref(u))),1)])):e.createCommentVNode("",!0)]),expenses:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(P),({roomGroupID:n},r)=>(e.openBlock(),e.createElementBlock("li",{key:n},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons"))+" - "+e.toDisplayString(e.unref(t)("booking.reservation.room"))+" #"+e.toDisplayString(r+1),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(W)(n,r),e.unref(u))),1)]))),128))]),_:2},1032,["remark","is-filled","is-loading","base-price","total-price","weekend-fee","room-upgrade","onPrev","onNext"])):e.createCommentVNode("",!0)]),payment:e.withCtx(()=>[e.createVNode(b.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(w.ThankYou,{message:e.unref(t)("event.confirmationMessage")},null,8,["message"])]),_:1},8,["slideshow","title","subtitle"])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","styling"]))}});const ot=e._export_sfc(nt,[["__scopeId","data-v-b2eee97d"]]),lt=e.createPinia(),at=e.zo(),v=e.createApp({components:{Event:ot}});v.use(lt);v.use(at);v.use(b.StickyPlugin);v.use(e.instance);v.use(w.xt);v.use(b.install,{bootstrap:!1});v.mount("#konnectio-event-app");module.exports=v;
|