@konnectio/core 4.0.56-rc60 → 4.0.56-rc62
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-M9Xn2IjF.js → ActionField-BAmWCmNj.js} +3 -3
- package/dist/ActionField-BAmWCmNj.js.br +0 -0
- package/dist/{AvailabilitySkeleton-CmB18GBl.js → AvailabilitySkeleton-hnj2IB72.js} +44 -44
- package/dist/AvailabilitySkeleton-hnj2IB72.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DNhFVa3I.js} +6 -6
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DNhFVa3I.js.br +0 -0
- package/dist/{CheckoutWindow-Bhwi8Nxq.js → CheckoutWindow-D-2StEA9.js} +5 -5
- package/dist/CheckoutWindow-D-2StEA9.js.br +0 -0
- package/dist/{ErrorMessage-Cf84tBwS.js → ErrorMessage-meGV_pjV.js} +3 -3
- package/dist/ErrorMessage-meGV_pjV.js.br +0 -0
- package/dist/{EventAvailabilityForm-ayhrj2Dh.js → EventAvailabilityForm-8BS4vRPQ.js} +5 -5
- package/dist/EventAvailabilityForm-8BS4vRPQ.js.br +0 -0
- package/dist/{Field-w5TiS3qQ.js → Field-cQkCPR1i.js} +3 -3
- package/dist/Field-cQkCPR1i.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CaK9Vq45.js} +509 -510
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CaK9Vq45.js.br +0 -0
- package/dist/{TermsOfService-DG9RmJhS.js → TermsOfService-C4NdU9pI.js} +9 -9
- package/dist/TermsOfService-C4NdU9pI.js.br +0 -0
- package/dist/{_-C3cdq-vi.js → _-DKwTcGqD.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-DUgEPbV0.js → _.vue_vue_type_style_index_0_lang-D3ANvLnT.js} +9 -9
- package/dist/_.vue_vue_type_style_index_0_lang-D3ANvLnT.js.br +0 -0
- package/dist/{_commonjsHelpers-Bwmg5gQN.js → _commonjsHelpers-DH5UFFrM.js} +2 -2
- package/dist/{_sentry-release-injection-file-Bs1oW58-.js → _sentry-release-injection-file-Bm35dIRL.js} +3 -3
- package/dist/_sentry-release-injection-file-Bm35dIRL.js.br +0 -0
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +2 -2
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +359 -350
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +9 -9
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +10 -10
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-BvD5QzCq.js → giftCard-h9CkNr7M.js} +17 -17
- package/dist/giftCard-h9CkNr7M.js.br +0 -0
- package/dist/hotel.js +90 -90
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-C_Lw26Pq.js → masonry.plugin-CKtOKvjw.js} +517 -508
- package/dist/masonry.plugin-CKtOKvjw.js.br +0 -0
- package/dist/{mitt-Djl3HvxD.js → mitt-CtCsoiRh.js} +2 -2
- package/dist/mitt-CtCsoiRh.js.br +0 -0
- package/dist/polyfill.js +95 -95
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-M9Xn2IjF.js.br +0 -0
- package/dist/AvailabilitySkeleton-CmB18GBl.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js.br +0 -0
- package/dist/CheckoutWindow-Bhwi8Nxq.js.br +0 -0
- package/dist/ErrorMessage-Cf84tBwS.js.br +0 -0
- package/dist/EventAvailabilityForm-ayhrj2Dh.js.br +0 -0
- package/dist/Field-w5TiS3qQ.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js.br +0 -0
- package/dist/TermsOfService-DG9RmJhS.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DUgEPbV0.js.br +0 -0
- package/dist/_sentry-release-injection-file-Bs1oW58-.js.br +0 -0
- package/dist/giftCard-BvD5QzCq.js.br +0 -0
- package/dist/masonry.plugin-C_Lw26Pq.js.br +0 -0
- package/dist/mitt-Djl3HvxD.js.br +0 -0
package/dist/event.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { d as Y, r as qe, c as le, a, b as
|
|
2
|
-
import { u as ae, s as
|
|
3
|
-
import { a as
|
|
4
|
-
import { B as rt, R as ct, L as Oe, S as
|
|
5
|
-
import { t as
|
|
6
|
-
import { _ as ht } from "./_.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { C as kt, P as yt, a as _t } from "./CheckoutWindow-
|
|
8
|
-
import { E as $t } from "./EventAvailabilityForm-
|
|
1
|
+
import { d as Y, r as qe, c as le, a as l, b as D, w as v, l as ne, u as e, e as t, f as h, g as m, i as k, t as o, m as ze, q as He, s as z, F as B, v as I, S as je, x as ye, h as _e, p as Ye, j as Ze, k as Qe } from "./_sentry-release-injection-file-Bm35dIRL.js";
|
|
2
|
+
import { u as ae, s as F, c as We, i as Je, m as Ke } from "./mitt-CtCsoiRh.js";
|
|
3
|
+
import { a as Pe, l as Xe, b as oe, c as pe, B as xe, _ as se, d as ge, e as Ae, I as ve, s as et, f as $e, g as be, h as U, u as tt, i as nt, T as ee, O as ot, C as lt, j as at, k as st, m as it } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CaK9Vq45.js";
|
|
4
|
+
import { B as rt, R as ct, L as Oe, S as dt, M as ut, C as mt, T as pt, V as vt, G as bt } from "./masonry.plugin-CKtOKvjw.js";
|
|
5
|
+
import { t as H, e as gt, g as we, m as Ve, a as De, b as Ee, c as ft, d as Te, u as j } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DNhFVa3I.js";
|
|
6
|
+
import { _ as ht } from "./_.vue_vue_type_style_index_0_lang-D3ANvLnT.js";
|
|
7
|
+
import { C as kt, P as yt, a as _t } from "./CheckoutWindow-D-2StEA9.js";
|
|
8
|
+
import { E as $t } from "./EventAvailabilityForm-8BS4vRPQ.js";
|
|
9
9
|
(function() {
|
|
10
10
|
try {
|
|
11
|
-
var
|
|
12
|
-
n && (
|
|
11
|
+
var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
12
|
+
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "1876a2d6-68bc-4a65-ad6c-dd210ea31a15", d._sentryDebugIdIdentifier = "sentry-dbid-1876a2d6-68bc-4a65-ad6c-dd210ea31a15");
|
|
13
13
|
} catch {
|
|
14
14
|
}
|
|
15
15
|
})();
|
|
16
|
-
function wt(
|
|
17
|
-
const
|
|
18
|
-
return
|
|
16
|
+
function wt(d, n) {
|
|
17
|
+
const a = H(d), u = H(n), p = a.getTime() - u.getTime();
|
|
18
|
+
return p < 0 ? -1 : p > 0 ? 1 : p;
|
|
19
19
|
}
|
|
20
|
-
function Vt(
|
|
20
|
+
function Vt(d) {
|
|
21
21
|
return (n) => {
|
|
22
|
-
const
|
|
23
|
-
return
|
|
22
|
+
const u = (d ? Math[d] : Math.trunc)(n);
|
|
23
|
+
return u === 0 ? 0 : u;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function Dt(
|
|
27
|
-
const
|
|
28
|
-
if (isNaN(
|
|
26
|
+
function Dt(d, n, a) {
|
|
27
|
+
const u = ft(), p = a?.locale ?? u.locale ?? gt, s = wt(d, n);
|
|
28
|
+
if (isNaN(s))
|
|
29
29
|
throw new RangeError("Invalid time value");
|
|
30
|
-
const
|
|
31
|
-
addSuffix:
|
|
32
|
-
comparison:
|
|
30
|
+
const b = Object.assign({}, a, {
|
|
31
|
+
addSuffix: a?.addSuffix,
|
|
32
|
+
comparison: s
|
|
33
33
|
});
|
|
34
34
|
let w, c;
|
|
35
|
-
|
|
36
|
-
const
|
|
35
|
+
s > 0 ? (w = H(n), c = H(d)) : (w = H(d), c = H(n));
|
|
36
|
+
const g = Vt(a?.roundingMethod ?? "round"), _ = c.getTime() - w.getTime(), $ = _ / Te, A = we(c) - we(w), P = (_ - A) / Te, O = a?.unit;
|
|
37
37
|
let r;
|
|
38
|
-
if (O ? r = O :
|
|
39
|
-
const
|
|
40
|
-
return
|
|
38
|
+
if (O ? r = O : $ < 1 ? r = "second" : $ < 60 ? r = "minute" : $ < Ve ? r = "hour" : P < De ? r = "day" : P < Ee ? r = "month" : r = "year", r === "second") {
|
|
39
|
+
const f = g(_ / 1e3);
|
|
40
|
+
return p.formatDistance("xSeconds", f, b);
|
|
41
41
|
} else if (r === "minute") {
|
|
42
|
-
const
|
|
43
|
-
return
|
|
42
|
+
const f = g($);
|
|
43
|
+
return p.formatDistance("xMinutes", f, b);
|
|
44
44
|
} else if (r === "hour") {
|
|
45
|
-
const
|
|
46
|
-
return
|
|
45
|
+
const f = g($ / 60);
|
|
46
|
+
return p.formatDistance("xHours", f, b);
|
|
47
47
|
} else if (r === "day") {
|
|
48
|
-
const
|
|
49
|
-
return
|
|
48
|
+
const f = g(P / Ve);
|
|
49
|
+
return p.formatDistance("xDays", f, b);
|
|
50
50
|
} else if (r === "month") {
|
|
51
|
-
const
|
|
52
|
-
return
|
|
51
|
+
const f = g(P / De);
|
|
52
|
+
return f === 12 && O !== "month" ? p.formatDistance("xYears", 1, b) : p.formatDistance("xMonths", f, b);
|
|
53
53
|
} else {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
54
|
+
const f = g(P / Ee);
|
|
55
|
+
return p.formatDistance("xYears", f, b);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const Et = { class: "konnectio-event-listing-action" }, Tt = { class: "konnectio-event-listing-action-button" }, Pt = /* @__PURE__ */ Y({
|
|
59
59
|
__name: "_",
|
|
60
60
|
props: {
|
|
61
61
|
name: {},
|
|
@@ -77,28 +77,28 @@ const Tt = { class: "konnectio-event-listing-action" }, Et = { class: "konnectio
|
|
|
77
77
|
trackingEnabled: { type: Boolean },
|
|
78
78
|
callback: {}
|
|
79
79
|
},
|
|
80
|
-
setup(
|
|
81
|
-
const { t: n } = ae(),
|
|
82
|
-
maxNumberOfPeople:
|
|
83
|
-
numberOfPeople:
|
|
84
|
-
eventId:
|
|
80
|
+
setup(d) {
|
|
81
|
+
const { t: n } = ae(), a = d, { display: u } = Pe(), {
|
|
82
|
+
maxNumberOfPeople: p,
|
|
83
|
+
numberOfPeople: s,
|
|
84
|
+
eventId: b,
|
|
85
85
|
tableGroupId: w
|
|
86
|
-
} =
|
|
86
|
+
} = F(j()), {
|
|
87
87
|
getTemplateAvailability: c,
|
|
88
|
-
getEventAvailability:
|
|
89
|
-
isEventListingLoading:
|
|
90
|
-
} = j(),
|
|
91
|
-
|
|
88
|
+
getEventAvailability: g,
|
|
89
|
+
isEventListingLoading: _
|
|
90
|
+
} = j(), $ = qe(0), A = le(() => _(a.listingId)), P = () => {
|
|
91
|
+
$.value > 0 ? (b.value = a.listingId, s.value = $.value, c(a.callback)) : u({
|
|
92
92
|
type: "error",
|
|
93
93
|
message: n("alert.error.selectPeople")
|
|
94
94
|
});
|
|
95
95
|
}, O = () => {
|
|
96
|
-
|
|
96
|
+
$.value > 0 ? (b.value = a.listingId, w.value = a.tableGroupId, s.value = $.value, g(a.callback)) : u({
|
|
97
97
|
type: "error",
|
|
98
98
|
message: n("alert.error.selectPeople")
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
|
-
return (r,
|
|
101
|
+
return (r, f) => (l(), D(rt, {
|
|
102
102
|
type: "event",
|
|
103
103
|
"listing-id": r.listingId,
|
|
104
104
|
gallery: r.gallery,
|
|
@@ -106,30 +106,30 @@ const Tt = { class: "konnectio-event-listing-action" }, Et = { class: "konnectio
|
|
|
106
106
|
description: r.description,
|
|
107
107
|
"prices-from": r.fromPrice,
|
|
108
108
|
"to-date": r.toDate,
|
|
109
|
-
layout: e(
|
|
109
|
+
layout: e(xe).Event
|
|
110
110
|
}, {
|
|
111
|
-
description:
|
|
112
|
-
ne(r.$slots, "description", { maxNumberOfPeople: e(
|
|
111
|
+
description: v(() => [
|
|
112
|
+
ne(r.$slots, "description", { maxNumberOfPeople: e(p) }, void 0, !0)
|
|
113
113
|
]),
|
|
114
|
-
action:
|
|
115
|
-
t("div",
|
|
116
|
-
|
|
117
|
-
modelValue:
|
|
118
|
-
"onUpdate:modelValue":
|
|
114
|
+
action: v(() => [
|
|
115
|
+
t("div", Et, [
|
|
116
|
+
h(oe, {
|
|
117
|
+
modelValue: $.value,
|
|
118
|
+
"onUpdate:modelValue": f[0] || (f[0] = (S) => $.value = S),
|
|
119
119
|
label: e(n)("event.numberOfGuests"),
|
|
120
120
|
icon: "users",
|
|
121
121
|
"icon-type": "fas",
|
|
122
122
|
"icon-placement": "label",
|
|
123
|
-
description: r.maxGuests <= 20 ? `${e(n)("general.availableFor")}: 1 - ${r.maxGuests} ${e(
|
|
123
|
+
description: r.maxGuests <= 20 ? `${e(n)("general.availableFor")}: 1 - ${r.maxGuests} ${e(Xe)(e(n)("general.guests"))}` : void 0,
|
|
124
124
|
"min-value": 0,
|
|
125
|
-
"max-value": r.maxOnlineReservationLimit || r.maxGuests || e(
|
|
125
|
+
"max-value": r.maxOnlineReservationLimit || r.maxGuests || e(p) || 1 / 0
|
|
126
126
|
}, null, 8, ["modelValue", "label", "description", "max-value"]),
|
|
127
|
-
t("div",
|
|
128
|
-
|
|
127
|
+
t("div", Tt, [
|
|
128
|
+
h(pe, {
|
|
129
129
|
label: r.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
|
|
130
130
|
disabled: r.soldOut,
|
|
131
|
-
"is-loading":
|
|
132
|
-
onClickEvent:
|
|
131
|
+
"is-loading": A.value,
|
|
132
|
+
onClickEvent: f[1] || (f[1] = (S) => r.type === "event" ? O() : P())
|
|
133
133
|
}, null, 8, ["label", "disabled", "is-loading"])
|
|
134
134
|
])
|
|
135
135
|
])
|
|
@@ -137,8 +137,11 @@ const Tt = { class: "konnectio-event-listing-action" }, Et = { class: "konnectio
|
|
|
137
137
|
_: 3
|
|
138
138
|
}, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout"]));
|
|
139
139
|
}
|
|
140
|
-
}),
|
|
141
|
-
const
|
|
140
|
+
}), Se = /* @__PURE__ */ se(Pt, [["__scopeId", "data-v-a29b3262"]]), At = ["innerHTML"], Ot = { class: "konnectio-event-listing-information-new" };
|
|
141
|
+
const St = {
|
|
142
|
+
key: 1,
|
|
143
|
+
class: "konnectio-pill-button"
|
|
144
|
+
}, Ct = { class: "konnectio-pill-button" }, Lt = /* @__PURE__ */ Y({
|
|
142
145
|
__name: "Event",
|
|
143
146
|
props: {
|
|
144
147
|
name: {},
|
|
@@ -159,59 +162,59 @@ const Ct = { class: "konnectio-pill-button" }, St = { class: "konnectio-pill-but
|
|
|
159
162
|
trackingEnabled: { type: Boolean },
|
|
160
163
|
callback: {}
|
|
161
164
|
},
|
|
162
|
-
setup(
|
|
163
|
-
const n =
|
|
164
|
-
const
|
|
165
|
-
return console.log(
|
|
166
|
-
new Date(2e3, 0, 1, Number(
|
|
165
|
+
setup(d) {
|
|
166
|
+
const n = d, { t: a } = ae(), { hideEventLength: u } = F(ge()), p = le(() => {
|
|
167
|
+
const s = n.length.split(":");
|
|
168
|
+
return console.log(s), Dt(
|
|
169
|
+
new Date(2e3, 0, 1, Number(s[0]), Number(s[1]), 0),
|
|
167
170
|
new Date(2e3, 0, 1, 0, 0, 0)
|
|
168
171
|
);
|
|
169
172
|
});
|
|
170
|
-
return (
|
|
171
|
-
"listing-id":
|
|
172
|
-
name:
|
|
173
|
-
description:
|
|
174
|
-
gallery:
|
|
175
|
-
"prices-from":
|
|
176
|
-
"table-group-id":
|
|
177
|
-
"max-guests":
|
|
178
|
-
"to-date":
|
|
173
|
+
return (s, b) => (l(), D(Se, {
|
|
174
|
+
"listing-id": s.listingId,
|
|
175
|
+
name: s.name,
|
|
176
|
+
description: s.description,
|
|
177
|
+
gallery: s.gallery,
|
|
178
|
+
"prices-from": s.fromPrice,
|
|
179
|
+
"table-group-id": s.tableGroupId,
|
|
180
|
+
"max-guests": s.maxOnlineReservationLimit,
|
|
181
|
+
"to-date": s.toDate,
|
|
179
182
|
type: "event",
|
|
180
|
-
callback:
|
|
183
|
+
callback: s.callback
|
|
181
184
|
}, {
|
|
182
|
-
description:
|
|
183
|
-
|
|
185
|
+
description: v(() => [
|
|
186
|
+
s.description ? (l(), m("p", {
|
|
184
187
|
key: 0,
|
|
185
|
-
innerHTML: e(
|
|
186
|
-
}, null, 8,
|
|
187
|
-
t("ul",
|
|
188
|
+
innerHTML: e(Ae)(s.description)
|
|
189
|
+
}, null, 8, At)) : k("", !0),
|
|
190
|
+
t("ul", Ot, [
|
|
188
191
|
k("", !0),
|
|
189
|
-
|
|
192
|
+
e(u) ? k("", !0) : (l(), m("li", St, [
|
|
190
193
|
t("div", null, [
|
|
191
|
-
|
|
194
|
+
h(ve, {
|
|
192
195
|
icon: "calendar-clock",
|
|
193
196
|
color: "header"
|
|
194
197
|
}),
|
|
195
|
-
t("span", null, o(e(
|
|
198
|
+
t("span", null, o(e(a)("event.lengthOfEvent")), 1)
|
|
196
199
|
]),
|
|
197
|
-
t("span", null, o(
|
|
198
|
-
]),
|
|
199
|
-
t("li",
|
|
200
|
+
t("span", null, o(p.value), 1)
|
|
201
|
+
])),
|
|
202
|
+
t("li", Ct, [
|
|
200
203
|
t("div", null, [
|
|
201
|
-
|
|
204
|
+
h(ve, {
|
|
202
205
|
icon: "calendar-clock",
|
|
203
206
|
color: "header"
|
|
204
207
|
}),
|
|
205
|
-
t("span", null, o(e(
|
|
208
|
+
t("span", null, o(e(a)("event.startAndEndTime")), 1)
|
|
206
209
|
]),
|
|
207
|
-
t("span", null, o(e(et)(
|
|
210
|
+
t("span", null, o(e(et)(s.timeFrom, s.timeTo)), 1)
|
|
208
211
|
])
|
|
209
212
|
])
|
|
210
213
|
]),
|
|
211
214
|
_: 1
|
|
212
215
|
}, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "to-date", "callback"]));
|
|
213
216
|
}
|
|
214
|
-
}), Bt = /* @__PURE__ */ se(Lt, [["__scopeId", "data-v-
|
|
217
|
+
}), Bt = /* @__PURE__ */ se(Lt, [["__scopeId", "data-v-93456ccd"]]), It = ["innerHTML"], Nt = /* @__PURE__ */ Y({
|
|
215
218
|
__name: "Template",
|
|
216
219
|
props: {
|
|
217
220
|
name: {},
|
|
@@ -227,8 +230,8 @@ const Ct = { class: "konnectio-pill-button" }, St = { class: "konnectio-pill-but
|
|
|
227
230
|
trackingEnabled: { type: Boolean },
|
|
228
231
|
callback: {}
|
|
229
232
|
},
|
|
230
|
-
setup(
|
|
231
|
-
const n =
|
|
233
|
+
setup(d) {
|
|
234
|
+
const n = d, a = le(() => {
|
|
232
235
|
if (n.image)
|
|
233
236
|
return [{
|
|
234
237
|
large: n.image,
|
|
@@ -237,113 +240,113 @@ const Ct = { class: "konnectio-pill-button" }, St = { class: "konnectio-pill-but
|
|
|
237
240
|
url: n.image
|
|
238
241
|
}];
|
|
239
242
|
});
|
|
240
|
-
return (
|
|
241
|
-
"listing-id":
|
|
242
|
-
gallery:
|
|
243
|
-
name:
|
|
244
|
-
description:
|
|
245
|
-
"prices-from":
|
|
246
|
-
"to-date":
|
|
243
|
+
return (u, p) => (l(), D(Se, {
|
|
244
|
+
"listing-id": u.listingId,
|
|
245
|
+
gallery: a.value,
|
|
246
|
+
name: u.name,
|
|
247
|
+
description: u.description,
|
|
248
|
+
"prices-from": u.fromPrice,
|
|
249
|
+
"to-date": u.toDate,
|
|
247
250
|
type: "template",
|
|
248
|
-
callback:
|
|
251
|
+
callback: u.callback
|
|
249
252
|
}, {
|
|
250
|
-
description:
|
|
251
|
-
|
|
253
|
+
description: v(() => [
|
|
254
|
+
u.description ? (l(), m("p", {
|
|
252
255
|
key: 0,
|
|
253
|
-
innerHTML: e(
|
|
256
|
+
innerHTML: e(Ae)(u.description)
|
|
254
257
|
}, null, 8, It)) : k("", !0)
|
|
255
258
|
]),
|
|
256
259
|
_: 1
|
|
257
260
|
}, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
|
|
258
261
|
}
|
|
259
|
-
}), Mt = { key: 0 }, Rt = { key: 1 }, Ut = { key: 2 }, Ft = { key: 3 }, Gt = { key: 4 }, qt = { key: 5 }, zt = { key: 0 },
|
|
262
|
+
}), Mt = { key: 0 }, Rt = { key: 1 }, Ut = { key: 2 }, Ft = { key: 3 }, Gt = { key: 4 }, qt = { key: 5 }, zt = { key: 0 }, me = /* @__PURE__ */ Y({
|
|
260
263
|
__name: "EventReservationForm",
|
|
261
264
|
props: {
|
|
262
265
|
showGiftCard: { type: Boolean, default: !1 },
|
|
263
266
|
showTermsNotice: { type: Boolean, default: !1 }
|
|
264
267
|
},
|
|
265
|
-
setup(
|
|
266
|
-
const { t: n } = ae(),
|
|
267
|
-
areListingsAvailable:
|
|
268
|
-
arrivalTime:
|
|
269
|
-
numberOfPeople:
|
|
270
|
-
numberOfRooms:
|
|
268
|
+
setup(d) {
|
|
269
|
+
const { t: n } = ae(), a = ze(), {
|
|
270
|
+
areListingsAvailable: u,
|
|
271
|
+
arrivalTime: p,
|
|
272
|
+
numberOfPeople: s,
|
|
273
|
+
numberOfRooms: b,
|
|
271
274
|
numberOfTotalDays: w,
|
|
272
275
|
isTemplateEvent: c,
|
|
273
|
-
length:
|
|
274
|
-
fromDate:
|
|
275
|
-
tableBasePrice:
|
|
276
|
-
getTemplateData:
|
|
276
|
+
length: g,
|
|
277
|
+
fromDate: _,
|
|
278
|
+
tableBasePrice: $,
|
|
279
|
+
getTemplateData: A,
|
|
277
280
|
basePrice: P,
|
|
278
281
|
totalPrice: O,
|
|
279
282
|
weekendFee: r,
|
|
280
|
-
roomUpgrade:
|
|
281
|
-
discountCode:
|
|
282
|
-
} =
|
|
283
|
-
return (N,
|
|
284
|
-
"discount-code": e(
|
|
285
|
-
"onUpdate:discountCode":
|
|
283
|
+
roomUpgrade: f,
|
|
284
|
+
discountCode: S
|
|
285
|
+
} = F(j()), { totalAddonPrice: ie, validateDiscountCode: re } = j(), { currency: K, hideEventLength: ce } = F(ge());
|
|
286
|
+
return (N, X) => (l(), D(ct, {
|
|
287
|
+
"discount-code": e(S),
|
|
288
|
+
"onUpdate:discountCode": X[0] || (X[0] = (q) => I(S) ? S.value = q : null),
|
|
286
289
|
"validate-discount-code": e(re),
|
|
287
290
|
"show-gift-card": N.showGiftCard,
|
|
288
291
|
"show-terms-notice": N.showTermsNotice,
|
|
289
|
-
"is-sidebar-loading": !e(
|
|
292
|
+
"is-sidebar-loading": !e(u),
|
|
290
293
|
"base-price": e(P),
|
|
291
294
|
"total-price": e(O),
|
|
292
295
|
"weekend-fee": e(r),
|
|
293
|
-
"room-upgrade": e(
|
|
294
|
-
notice: e(n)("
|
|
296
|
+
"room-upgrade": e(f),
|
|
297
|
+
notice: e(n)("event.reservationNotice")
|
|
295
298
|
}, He({
|
|
296
|
-
form:
|
|
299
|
+
form: v(() => [
|
|
297
300
|
ne(N.$slots, "form")
|
|
298
301
|
]),
|
|
299
|
-
"reservation-summary":
|
|
300
|
-
e(c) ? (
|
|
302
|
+
"reservation-summary": v(() => [
|
|
303
|
+
e(c) ? (l(), m("li", Mt, [
|
|
301
304
|
t("span", null, o(e(n)("booking.reservation.arrival")), 1),
|
|
302
|
-
t("b", null, o(e(
|
|
305
|
+
t("b", null, o(e($e)(e(_))), 1)
|
|
303
306
|
])) : k("", !0),
|
|
304
|
-
e(c) ? (
|
|
307
|
+
e(c) ? (l(), m("li", Rt, [
|
|
305
308
|
t("span", null, o(e(n)("booking.reservation.departure")), 1),
|
|
306
|
-
t("b", null, o(e(
|
|
309
|
+
t("b", null, o(e($e)(e(_), e(w))), 1)
|
|
307
310
|
])) : k("", !0),
|
|
308
311
|
t("li", null, [
|
|
309
312
|
t("span", null, o(e(n)("event.numberOfGuests")), 1),
|
|
310
|
-
t("b", null, o(e(
|
|
313
|
+
t("b", null, o(e(s)), 1)
|
|
311
314
|
]),
|
|
312
|
-
e(c) ? (
|
|
315
|
+
e(c) ? (l(), m("li", Ut, [
|
|
313
316
|
t("span", null, o(e(n)("event.numberOfRooms")), 1),
|
|
314
|
-
t("b", null, o(e(
|
|
317
|
+
t("b", null, o(e(b)), 1)
|
|
315
318
|
])) : k("", !0),
|
|
316
|
-
e(c) ? (
|
|
319
|
+
e(c) ? (l(), m("li", Ft, [
|
|
317
320
|
t("span", null, o(e(n)("event.numberOfDays")), 1),
|
|
318
321
|
t("b", null, o(e(w)), 1)
|
|
319
322
|
])) : k("", !0),
|
|
320
|
-
!e(c) && e(
|
|
323
|
+
!e(c) && e(p) ? (l(), m("li", Gt, [
|
|
321
324
|
t("span", null, o(e(n)("event.startOfEvent")), 1),
|
|
322
|
-
t("b", null, o(e(
|
|
325
|
+
t("b", null, o(e(be)(e(p))), 1)
|
|
323
326
|
])) : k("", !0),
|
|
324
|
-
!e(c) && e(
|
|
327
|
+
!e(c) && e(g) && !e(ce) ? (l(), m("li", qt, [
|
|
325
328
|
t("span", null, o(e(n)("event.lengthOfEvent")), 1),
|
|
326
|
-
t("b", null, o(e(
|
|
329
|
+
t("b", null, o(e(be)(e(g))), 1)
|
|
327
330
|
])) : k("", !0)
|
|
328
331
|
]),
|
|
329
|
-
"price-summary":
|
|
330
|
-
!e(c) && e(
|
|
332
|
+
"price-summary": v(() => [
|
|
333
|
+
!e(c) && e($) > 0 ? (l(), m("li", zt, [
|
|
331
334
|
t("span", null, o(e(n)("booking.availability.basePrice")), 1),
|
|
332
|
-
t("b", null, o(e(U)(e(
|
|
335
|
+
t("b", null, o(e(U)(e($), e(K))), 1)
|
|
333
336
|
])) : k("", !0),
|
|
334
|
-
e(
|
|
335
|
-
t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(
|
|
336
|
-
t("b", null, o(e(U)(e(ie)(
|
|
337
|
+
e(A) ? (l(!0), m(B, { key: 1 }, z(e(A), ({ roomGroupId: q }, x) => (l(), m("li", { key: q }, [
|
|
338
|
+
t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(x + 1), 1),
|
|
339
|
+
t("b", null, o(e(U)(e(ie)(q, x), e(K))), 1)
|
|
337
340
|
]))), 128)) : k("", !0)
|
|
338
341
|
]),
|
|
339
|
-
navigation:
|
|
342
|
+
navigation: v(() => [
|
|
340
343
|
ne(N.$slots, "navigation")
|
|
341
344
|
]),
|
|
342
345
|
_: 2
|
|
343
346
|
}, [
|
|
344
|
-
e(
|
|
347
|
+
e(a).sidebar ? {
|
|
345
348
|
name: "sidebar",
|
|
346
|
-
fn:
|
|
349
|
+
fn: v(() => [
|
|
347
350
|
ne(N.$slots, "sidebar")
|
|
348
351
|
]),
|
|
349
352
|
key: "0"
|
|
@@ -352,26 +355,29 @@ const Ct = { class: "konnectio-pill-button" }, St = { class: "konnectio-pill-but
|
|
|
352
355
|
}
|
|
353
356
|
}), Ht = { class: "event-skeleton" }, jt = { class: "event-skeleton-content" }, Yt = { class: "event-skeleton-sidebar" }, Zt = /* @__PURE__ */ Y({
|
|
354
357
|
__name: "EventSkeleton",
|
|
355
|
-
setup(
|
|
356
|
-
return (n,
|
|
358
|
+
setup(d) {
|
|
359
|
+
return (n, a) => (l(), m("div", Ht, [
|
|
357
360
|
t("div", jt, [
|
|
358
|
-
|
|
361
|
+
h(Oe)
|
|
359
362
|
]),
|
|
360
363
|
t("div", Yt, [
|
|
361
364
|
k("", !0),
|
|
362
|
-
|
|
365
|
+
h(dt)
|
|
363
366
|
])
|
|
364
367
|
]));
|
|
365
368
|
}
|
|
366
|
-
}),
|
|
369
|
+
}), Qt = /* @__PURE__ */ se(Zt, [["__scopeId", "data-v-3e15c4e3"]]), G = (d) => (Ye("data-v-8a514bc9"), d = d(), Ze(), d), Wt = {
|
|
367
370
|
key: 0,
|
|
368
371
|
id: "konnectio-event-listings-wrapper"
|
|
369
372
|
};
|
|
370
|
-
const
|
|
371
|
-
const
|
|
373
|
+
const Jt = { class: "konnectio-event-listings" };
|
|
374
|
+
const Kt = { class: "konnectio-event-listings" }, Xt = {
|
|
375
|
+
key: 2,
|
|
376
|
+
class: "konnectio-panel"
|
|
377
|
+
}, xt = { class: "konnectio-panel" }, en = {
|
|
372
378
|
key: 0,
|
|
373
379
|
id: "konnectio-event-addons"
|
|
374
|
-
},
|
|
380
|
+
}, tn = { class: "konnectio-table with-lines" }, nn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), on = { class: "konnectio-event-addons-price" }, ln = /* @__PURE__ */ G(() => /* @__PURE__ */ t("br", null, null, -1)), an = { class: "konnectio-event-addons-input" }, sn = { class: "konnectio-event-addons-price" }, rn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("td", null, null, -1)), cn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("td", null, null, -1)), dn = { class: "konnectio-event-addons-price" }, un = { key: 1 }, mn = { class: "konnectio-label required" }, pn = { class: "konnectio-table with-lines" }, vn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), bn = { class: "konnectio-event-addons-price" }, gn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("br", null, null, -1)), fn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("br", null, null, -1)), hn = { class: "konnectio-event-addons-input" }, kn = { class: "konnectio-event-addons-price" }, yn = ["onClick"], _n = { class: "konnectio-panel" }, $n = ["onClick"], wn = /* @__PURE__ */ Y({
|
|
375
381
|
name: "EventLayout",
|
|
376
382
|
__name: "Event",
|
|
377
383
|
props: {
|
|
@@ -380,40 +386,40 @@ const Jt = { class: "konnectio-event-listings" }, Kt = { class: "konnectio-panel
|
|
|
380
386
|
selectedLocation: {},
|
|
381
387
|
styling: {}
|
|
382
388
|
},
|
|
383
|
-
setup(
|
|
389
|
+
setup(d) {
|
|
384
390
|
const { t: n } = ae(), {
|
|
385
|
-
addons:
|
|
386
|
-
products:
|
|
387
|
-
numberOfDays:
|
|
388
|
-
name:
|
|
389
|
-
phone:
|
|
391
|
+
addons: a,
|
|
392
|
+
products: u,
|
|
393
|
+
numberOfDays: p,
|
|
394
|
+
name: s,
|
|
395
|
+
phone: b,
|
|
390
396
|
email: w,
|
|
391
397
|
remark: c,
|
|
392
|
-
allergies:
|
|
393
|
-
arrivalTime:
|
|
394
|
-
hasEvents:
|
|
395
|
-
hasTemplates:
|
|
398
|
+
allergies: g,
|
|
399
|
+
arrivalTime: _,
|
|
400
|
+
hasEvents: $,
|
|
401
|
+
hasTemplates: A,
|
|
396
402
|
getEvents: P,
|
|
397
403
|
getTemplates: O,
|
|
398
404
|
getEventData: r,
|
|
399
|
-
getTemplateData:
|
|
400
|
-
getEventTableData:
|
|
405
|
+
getTemplateData: f,
|
|
406
|
+
getEventTableData: S,
|
|
401
407
|
hasProducts: ie,
|
|
402
408
|
eventRateType: re,
|
|
403
|
-
areListingsAvailable:
|
|
404
|
-
isAvailabilityDataAvailable:
|
|
405
|
-
hasListingData:
|
|
406
|
-
isPaymentLoading:
|
|
407
|
-
isReservationFormFilled:
|
|
408
|
-
requiresArrivalTime:
|
|
409
|
-
} =
|
|
409
|
+
areListingsAvailable: K,
|
|
410
|
+
isAvailabilityDataAvailable: ce,
|
|
411
|
+
hasListingData: N,
|
|
412
|
+
isPaymentLoading: X,
|
|
413
|
+
isReservationFormFilled: q,
|
|
414
|
+
requiresArrivalTime: x
|
|
415
|
+
} = F(j()), { currency: Z } = F(ge()), { eventDate: Ce } = F(tt()), {
|
|
410
416
|
initialize: Le,
|
|
411
417
|
fetchListings: Be,
|
|
412
418
|
createBooking: Ie,
|
|
413
|
-
localAddonPrice:
|
|
419
|
+
localAddonPrice: fe,
|
|
414
420
|
totalAddonPrice: Ne,
|
|
415
|
-
reset:
|
|
416
|
-
} = j(), { display:
|
|
421
|
+
reset: he
|
|
422
|
+
} = j(), { display: ke } = Pe(), Me = [
|
|
417
423
|
{
|
|
418
424
|
id: "availability",
|
|
419
425
|
label: n("booking.availability.title"),
|
|
@@ -440,197 +446,200 @@ const Jt = { class: "konnectio-event-listings" }, Kt = { class: "konnectio-panel
|
|
|
440
446
|
icon: "calendar-check"
|
|
441
447
|
}
|
|
442
448
|
], Re = le(() => {
|
|
443
|
-
const
|
|
444
|
-
return
|
|
445
|
-
|
|
446
|
-
label:
|
|
447
|
-
value:
|
|
449
|
+
const V = [];
|
|
450
|
+
return S.value && S.value.forEach((y) => {
|
|
451
|
+
V.push({
|
|
452
|
+
label: be(y.time),
|
|
453
|
+
value: y.time
|
|
448
454
|
});
|
|
449
|
-
}),
|
|
455
|
+
}), V;
|
|
450
456
|
});
|
|
451
457
|
function Ue() {
|
|
452
|
-
const
|
|
458
|
+
const V = at("hash-params", {
|
|
453
459
|
removeNullishValues: !0
|
|
454
460
|
});
|
|
455
|
-
parseInt(
|
|
456
|
-
const
|
|
457
|
-
if (
|
|
458
|
-
if (st(
|
|
459
|
-
const C = new Date(
|
|
460
|
-
C >= /* @__PURE__ */ new Date() ? (
|
|
461
|
+
parseInt(V.eId);
|
|
462
|
+
const y = V.date;
|
|
463
|
+
if (y)
|
|
464
|
+
if (st(y)) {
|
|
465
|
+
const C = new Date(y);
|
|
466
|
+
C >= /* @__PURE__ */ new Date() ? (Ce.value = C, V.date = void 0) : ke({
|
|
461
467
|
message: n("alert.error.invalidDateRange"),
|
|
462
468
|
type: "error"
|
|
463
469
|
});
|
|
464
470
|
} else
|
|
465
|
-
|
|
471
|
+
ke({
|
|
466
472
|
message: n("alert.error.wrongDateFormat"),
|
|
467
473
|
type: "error"
|
|
468
474
|
});
|
|
469
475
|
Be();
|
|
470
476
|
}
|
|
471
|
-
return (
|
|
472
|
-
default:
|
|
473
|
-
(
|
|
474
|
-
default:
|
|
475
|
-
|
|
477
|
+
return (V, y) => (l(), D(lt, { styling: V.styling }, {
|
|
478
|
+
default: v(() => [
|
|
479
|
+
(l(), D(je, { onResolve: Ue }, {
|
|
480
|
+
default: v(() => [
|
|
481
|
+
h(ht, {
|
|
476
482
|
id: "konnectio-event-module",
|
|
477
|
-
"access-token":
|
|
483
|
+
"access-token": V.accessToken,
|
|
478
484
|
callback: e(Le)
|
|
479
485
|
}, {
|
|
480
|
-
default:
|
|
481
|
-
|
|
482
|
-
availability:
|
|
483
|
-
|
|
484
|
-
sidebar:
|
|
485
|
-
|
|
486
|
+
default: v(() => [
|
|
487
|
+
h(ut, { steps: Me }, {
|
|
488
|
+
availability: v(({ next: C }) => [
|
|
489
|
+
h(me, null, {
|
|
490
|
+
sidebar: v(() => [
|
|
491
|
+
h($t, {
|
|
486
492
|
redirection: !1,
|
|
487
|
-
"selected-location": Number(
|
|
493
|
+
"selected-location": Number(V.selectedLocation)
|
|
488
494
|
}, null, 8, ["selected-location"])
|
|
489
495
|
]),
|
|
490
|
-
form:
|
|
491
|
-
e(
|
|
492
|
-
e(
|
|
496
|
+
form: v(() => [
|
|
497
|
+
e(N) && e(K) ? (l(), m("div", Wt, [
|
|
498
|
+
e($) && V.onlyShow !== "templates" ? (l(), m(B, { key: 0 }, [
|
|
493
499
|
k("", !0),
|
|
494
|
-
t("ul",
|
|
495
|
-
(
|
|
496
|
-
id:
|
|
500
|
+
t("ul", Jt, [
|
|
501
|
+
(l(!0), m(B, null, z(e(P), ({
|
|
502
|
+
id: L,
|
|
497
503
|
days: i,
|
|
498
504
|
name: M,
|
|
499
505
|
timeFrom: R,
|
|
500
|
-
timeTo:
|
|
501
|
-
fromDate:
|
|
502
|
-
toDate:
|
|
503
|
-
tableGroupId:
|
|
504
|
-
description:
|
|
506
|
+
timeTo: E,
|
|
507
|
+
fromDate: T,
|
|
508
|
+
toDate: Q,
|
|
509
|
+
tableGroupId: W,
|
|
510
|
+
description: de,
|
|
505
511
|
soldOut: ue,
|
|
506
|
-
length:
|
|
512
|
+
length: J,
|
|
507
513
|
images: Fe,
|
|
508
514
|
maxOnlineReservationLimit: Ge
|
|
509
|
-
}) => (
|
|
510
|
-
key:
|
|
515
|
+
}) => (l(), D(Bt, {
|
|
516
|
+
key: L,
|
|
511
517
|
type: "event",
|
|
512
|
-
"listing-id":
|
|
513
|
-
"table-group-id":
|
|
514
|
-
description:
|
|
518
|
+
"listing-id": L,
|
|
519
|
+
"table-group-id": W,
|
|
520
|
+
description: de,
|
|
515
521
|
name: M,
|
|
516
|
-
length:
|
|
522
|
+
length: J,
|
|
517
523
|
gallery: Fe,
|
|
518
524
|
days: i,
|
|
519
|
-
"from-date":
|
|
520
|
-
"to-date":
|
|
525
|
+
"from-date": T,
|
|
526
|
+
"to-date": Q,
|
|
521
527
|
"max-online-reservation-limit": Ge,
|
|
522
528
|
"time-from": R,
|
|
523
|
-
"time-to":
|
|
529
|
+
"time-to": E,
|
|
524
530
|
"sold-out": ue,
|
|
525
531
|
callback: C
|
|
526
532
|
}, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
|
|
527
533
|
])
|
|
528
534
|
], 64)) : k("", !0),
|
|
529
|
-
e(
|
|
535
|
+
e(A) && V.onlyShow !== "events" ? (l(), m(B, { key: 1 }, [
|
|
530
536
|
k("", !0),
|
|
531
|
-
t("ul",
|
|
532
|
-
(
|
|
533
|
-
id:
|
|
537
|
+
t("ul", Kt, [
|
|
538
|
+
(l(!0), m(B, null, z(e(O), ({
|
|
539
|
+
id: L,
|
|
534
540
|
name: i,
|
|
535
541
|
fromDate: M,
|
|
536
542
|
toDate: R,
|
|
537
|
-
minimumPersonCount:
|
|
538
|
-
fromPrice:
|
|
539
|
-
description:
|
|
540
|
-
imageUrl:
|
|
541
|
-
}) => (
|
|
542
|
-
key:
|
|
543
|
-
"listing-id":
|
|
543
|
+
minimumPersonCount: E,
|
|
544
|
+
fromPrice: T,
|
|
545
|
+
description: Q,
|
|
546
|
+
imageUrl: W
|
|
547
|
+
}) => (l(), D(Nt, {
|
|
548
|
+
key: L,
|
|
549
|
+
"listing-id": L,
|
|
544
550
|
name: i,
|
|
545
|
-
image:
|
|
546
|
-
description:
|
|
551
|
+
image: W,
|
|
552
|
+
description: Q,
|
|
547
553
|
"from-date": M,
|
|
548
554
|
"to-date": R,
|
|
549
|
-
"minimum-person-count":
|
|
550
|
-
fromPrice:
|
|
555
|
+
"minimum-person-count": E,
|
|
556
|
+
fromPrice: T,
|
|
551
557
|
callback: C
|
|
552
558
|
}, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
|
|
553
559
|
])
|
|
554
|
-
], 64)) : k("", !0)
|
|
555
|
-
|
|
560
|
+
], 64)) : k("", !0),
|
|
561
|
+
!e($) && !e(A) || !e($) && V.onlyShow === "events" || !e(A) && V.onlyShow === "templates" ? (l(), m("div", Xt, [
|
|
562
|
+
t("span", null, o(e(n)("event.nothingAvailable")), 1)
|
|
563
|
+
])) : k("", !0)
|
|
564
|
+
])) : (l(), D(Oe, { key: 1 }))
|
|
556
565
|
]),
|
|
557
566
|
_: 2
|
|
558
567
|
}, 1024)
|
|
559
568
|
]),
|
|
560
|
-
addons:
|
|
561
|
-
e(
|
|
562
|
-
form:
|
|
563
|
-
t("form",
|
|
569
|
+
addons: v(({ next: C, prev: L }) => [
|
|
570
|
+
e(ce) ? (l(), D(me, { key: 0 }, {
|
|
571
|
+
form: v(() => [
|
|
572
|
+
t("form", xt, [
|
|
564
573
|
t("h2", null, [
|
|
565
574
|
t("span", null, o(e(n)("booking.reservation.addons")), 1)
|
|
566
575
|
]),
|
|
567
|
-
e(
|
|
568
|
-
(
|
|
576
|
+
e(f) && e(f).length > 0 ? (l(), m("ul", en, [
|
|
577
|
+
(l(!0), m(B, null, z(e(f), ({
|
|
569
578
|
roomGroupId: i,
|
|
570
579
|
addons: M,
|
|
571
580
|
adultPerRoom: R
|
|
572
|
-
},
|
|
581
|
+
}, E) => (l(), m("li", { key: i }, [
|
|
573
582
|
t("h5", null, [
|
|
574
|
-
t("span", null, o(e(n)("booking.reservation.room")) + " #" + o(
|
|
575
|
-
|
|
576
|
-
|
|
583
|
+
t("span", null, o(e(n)("booking.reservation.room")) + " #" + o(E + 1), 1),
|
|
584
|
+
ye(" ("),
|
|
585
|
+
h(ve, {
|
|
577
586
|
icon: "male",
|
|
578
587
|
type: "fas",
|
|
579
588
|
color: "header"
|
|
580
589
|
}),
|
|
581
|
-
|
|
590
|
+
ye(" " + o(R) + ") ", 1)
|
|
582
591
|
]),
|
|
583
|
-
t("table",
|
|
592
|
+
t("table", tn, [
|
|
584
593
|
t("thead", null, [
|
|
585
594
|
t("tr", null, [
|
|
586
595
|
t("th", null, [
|
|
587
596
|
t("span", null, o(e(n)("booking.reservation.addons")), 1)
|
|
588
597
|
]),
|
|
589
|
-
|
|
590
|
-
t("th",
|
|
598
|
+
nn,
|
|
599
|
+
t("th", on, [
|
|
591
600
|
t("span", null, o(e(n)("booking.availability.price")), 1)
|
|
592
601
|
])
|
|
593
602
|
])
|
|
594
603
|
]),
|
|
595
604
|
t("tbody", null, [
|
|
596
|
-
(
|
|
597
|
-
id:
|
|
598
|
-
cardinality:
|
|
599
|
-
name:
|
|
600
|
-
price:
|
|
605
|
+
(l(!0), m(B, null, z(M, ({
|
|
606
|
+
id: T,
|
|
607
|
+
cardinality: Q,
|
|
608
|
+
name: W,
|
|
609
|
+
price: de,
|
|
601
610
|
quantityStrategy: ue
|
|
602
|
-
}) => (
|
|
611
|
+
}) => (l(), m("tr", { key: T }, [
|
|
603
612
|
t("td", null, [
|
|
604
|
-
t("b", null, o(
|
|
605
|
-
|
|
606
|
-
t("span", null, o(e(U)(
|
|
613
|
+
t("b", null, o(W), 1),
|
|
614
|
+
ln,
|
|
615
|
+
t("span", null, o(e(U)(de, e(Z))) + " " + o(e(nt)(ue)), 1)
|
|
607
616
|
]),
|
|
608
|
-
t("td",
|
|
609
|
-
|
|
617
|
+
t("td", an, [
|
|
618
|
+
Q === 3 ? (l(), D(oe, {
|
|
610
619
|
key: 0,
|
|
611
|
-
modelValue: e(
|
|
612
|
-
"onUpdate:modelValue": (
|
|
620
|
+
modelValue: e(a)[`${i}.${T}.${E}`],
|
|
621
|
+
"onUpdate:modelValue": (J) => e(a)[`${i}.${T}.${E}`] = J,
|
|
613
622
|
small: !0,
|
|
614
623
|
"min-value": 0
|
|
615
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (
|
|
624
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), D(kt, {
|
|
616
625
|
key: 1,
|
|
617
|
-
modelValue: e(
|
|
618
|
-
"onUpdate:modelValue": (
|
|
626
|
+
modelValue: e(a)[`${i}.${T}.${E}`],
|
|
627
|
+
"onUpdate:modelValue": (J) => e(a)[`${i}.${T}.${E}`] = J,
|
|
619
628
|
numeric: !0
|
|
620
629
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
621
630
|
]),
|
|
622
|
-
t("td",
|
|
623
|
-
t("span", null, o(e(U)(e(
|
|
631
|
+
t("td", sn, [
|
|
632
|
+
t("span", null, o(e(U)(e(fe)(T, i, E), e(Z))), 1)
|
|
624
633
|
])
|
|
625
634
|
]))), 128))
|
|
626
635
|
]),
|
|
627
636
|
t("tfoot", null, [
|
|
628
637
|
t("tr", null, [
|
|
629
|
-
sn,
|
|
630
638
|
rn,
|
|
631
|
-
|
|
639
|
+
cn,
|
|
640
|
+
t("td", dn, [
|
|
632
641
|
t("u", null, [
|
|
633
|
-
t("span", null, o(e(U)(e(Ne)(i,
|
|
642
|
+
t("span", null, o(e(U)(e(Ne)(i, E), e(Z))), 1)
|
|
634
643
|
])
|
|
635
644
|
])
|
|
636
645
|
])
|
|
@@ -638,43 +647,43 @@ const Jt = { class: "konnectio-event-listings" }, Kt = { class: "konnectio-panel
|
|
|
638
647
|
])
|
|
639
648
|
]))), 128))
|
|
640
649
|
])) : k("", !0),
|
|
641
|
-
e(ie) ? (
|
|
642
|
-
t("label",
|
|
650
|
+
e(ie) ? (l(), m("div", un, [
|
|
651
|
+
t("label", mn, [
|
|
643
652
|
t("span", null, o(e(n)("event.selectProducts")), 1)
|
|
644
653
|
]),
|
|
645
|
-
t("table",
|
|
654
|
+
t("table", pn, [
|
|
646
655
|
t("thead", null, [
|
|
647
656
|
t("tr", null, [
|
|
648
657
|
t("th", null, [
|
|
649
658
|
t("span", null, o(e(n)("booking.reservation.addons")), 1)
|
|
650
659
|
]),
|
|
651
|
-
|
|
652
|
-
t("th",
|
|
660
|
+
vn,
|
|
661
|
+
t("th", bn, [
|
|
653
662
|
t("span", null, o(e(n)("booking.availability.price")), 1)
|
|
654
663
|
])
|
|
655
664
|
])
|
|
656
665
|
]),
|
|
657
666
|
t("tbody", null, [
|
|
658
|
-
(
|
|
667
|
+
(l(!0), m(B, null, z(e(r).products, ({ productID: i, productName: M, price: R, description: E }) => (l(), m("tr", { key: i }, [
|
|
659
668
|
t("td", null, [
|
|
660
669
|
t("b", null, [
|
|
661
670
|
t("span", null, o(M), 1)
|
|
662
671
|
]),
|
|
663
|
-
|
|
664
|
-
t("span", null, o(
|
|
672
|
+
gn,
|
|
673
|
+
t("span", null, o(E), 1),
|
|
665
674
|
fn,
|
|
666
675
|
t("span", null, o(e(U)(R, e(Z))), 1)
|
|
667
676
|
]),
|
|
668
|
-
t("td",
|
|
669
|
-
|
|
670
|
-
modelValue: e(
|
|
671
|
-
"onUpdate:modelValue": (
|
|
677
|
+
t("td", hn, [
|
|
678
|
+
h(oe, {
|
|
679
|
+
modelValue: e(u)[i],
|
|
680
|
+
"onUpdate:modelValue": (T) => e(u)[i] = T,
|
|
672
681
|
small: !0,
|
|
673
682
|
"min-value": 0
|
|
674
683
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
675
684
|
]),
|
|
676
|
-
t("td",
|
|
677
|
-
t("span", null, o(e(U)(e(
|
|
685
|
+
t("td", kn, [
|
|
686
|
+
t("span", null, o(e(U)(e(fe)(i), e(Z))), 1)
|
|
678
687
|
])
|
|
679
688
|
]))), 128))
|
|
680
689
|
])
|
|
@@ -682,44 +691,44 @@ const Jt = { class: "konnectio-event-listings" }, Kt = { class: "konnectio-panel
|
|
|
682
691
|
])) : k("", !0)
|
|
683
692
|
])
|
|
684
693
|
]),
|
|
685
|
-
navigation:
|
|
686
|
-
|
|
687
|
-
label: e(n)("
|
|
694
|
+
navigation: v(() => [
|
|
695
|
+
h(pe, {
|
|
696
|
+
label: e(n)("event.startReservation"),
|
|
688
697
|
"full-width": "",
|
|
689
698
|
onClickEvent: C
|
|
690
699
|
}, null, 8, ["label", "onClickEvent"]),
|
|
691
700
|
t("button", {
|
|
692
701
|
class: "konnectio-abort-reservation link",
|
|
693
|
-
onClick:
|
|
702
|
+
onClick: _e((i) => e(he)(L), ["prevent"])
|
|
694
703
|
}, [
|
|
695
704
|
t("span", null, o(e(n)("general.goAStepBack")), 1)
|
|
696
|
-
], 8,
|
|
705
|
+
], 8, yn)
|
|
697
706
|
]),
|
|
698
707
|
_: 2
|
|
699
708
|
}, 1024)) : k("", !0)
|
|
700
709
|
]),
|
|
701
|
-
reservation:
|
|
702
|
-
|
|
710
|
+
reservation: v(({ next: C, prev: L }) => [
|
|
711
|
+
h(me, {
|
|
703
712
|
"show-terms-notice": !0,
|
|
704
713
|
"show-gift-card": !0
|
|
705
714
|
}, {
|
|
706
|
-
form:
|
|
707
|
-
t("form",
|
|
715
|
+
form: v(() => [
|
|
716
|
+
t("form", _n, [
|
|
708
717
|
t("h2", null, [
|
|
709
718
|
t("span", null, o(e(n)("booking.reservation.detailsTitle")), 1)
|
|
710
719
|
]),
|
|
711
|
-
|
|
712
|
-
modelValue: e(
|
|
713
|
-
"onUpdate:modelValue":
|
|
720
|
+
h(ee, {
|
|
721
|
+
modelValue: e(s),
|
|
722
|
+
"onUpdate:modelValue": y[0] || (y[0] = (i) => I(s) ? s.value = i : null),
|
|
714
723
|
type: "text",
|
|
715
724
|
label: e(n)("booking.reservation.name"),
|
|
716
725
|
icon: "user-alt",
|
|
717
726
|
placeholder: e(n)("booking.reservation.namePlaceholder"),
|
|
718
727
|
required: ""
|
|
719
728
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
720
|
-
|
|
729
|
+
h(ee, {
|
|
721
730
|
modelValue: e(w),
|
|
722
|
-
"onUpdate:modelValue":
|
|
731
|
+
"onUpdate:modelValue": y[1] || (y[1] = (i) => I(w) ? w.value = i : null),
|
|
723
732
|
label: e(n)("booking.reservation.email"),
|
|
724
733
|
type: "email",
|
|
725
734
|
name: "email",
|
|
@@ -728,42 +737,42 @@ const Jt = { class: "konnectio-event-listings" }, Kt = { class: "konnectio-panel
|
|
|
728
737
|
placeholder: e(n)("booking.reservation.emailPlaceholder"),
|
|
729
738
|
required: ""
|
|
730
739
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
731
|
-
|
|
732
|
-
modelValue: e(
|
|
733
|
-
"onUpdate:modelValue":
|
|
740
|
+
h(yt, {
|
|
741
|
+
modelValue: e(b),
|
|
742
|
+
"onUpdate:modelValue": y[2] || (y[2] = (i) => I(b) ? b.value = i : null),
|
|
734
743
|
label: e(n)("booking.reservation.phone"),
|
|
735
744
|
icon: "phone-office",
|
|
736
745
|
placeholder: e(n)("booking.reservation.phonePlaceholder"),
|
|
737
746
|
required: ""
|
|
738
747
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
739
|
-
e(
|
|
748
|
+
e(x) ? (l(), D(mt, {
|
|
740
749
|
key: 0,
|
|
741
|
-
modelValue: e(
|
|
742
|
-
"onUpdate:modelValue":
|
|
750
|
+
modelValue: e(_),
|
|
751
|
+
"onUpdate:modelValue": y[3] || (y[3] = (i) => I(_) ? _.value = i : null),
|
|
743
752
|
label: e(n)("event.selectArrivalTime"),
|
|
744
753
|
name: "eventTimeTable",
|
|
745
754
|
checkboxes: Re.value,
|
|
746
755
|
required: ""
|
|
747
756
|
}, null, 8, ["modelValue", "label", "checkboxes"])) : k("", !0),
|
|
748
|
-
e(re) === e(ot).FullDayEvent ? (
|
|
757
|
+
e(re) === e(ot).FullDayEvent ? (l(), D(oe, {
|
|
749
758
|
key: 1,
|
|
750
|
-
modelValue: e(
|
|
751
|
-
"onUpdate:modelValue":
|
|
759
|
+
modelValue: e(p),
|
|
760
|
+
"onUpdate:modelValue": y[4] || (y[4] = (i) => I(p) ? p.value = i : null),
|
|
752
761
|
label: e(n)("event.numberOfDays"),
|
|
753
762
|
"min-value": 1,
|
|
754
763
|
required: ""
|
|
755
764
|
}, null, 8, ["modelValue", "label"])) : k("", !0),
|
|
756
|
-
|
|
765
|
+
h(ee, {
|
|
757
766
|
modelValue: e(c),
|
|
758
|
-
"onUpdate:modelValue":
|
|
767
|
+
"onUpdate:modelValue": y[5] || (y[5] = (i) => I(c) ? c.value = i : null),
|
|
759
768
|
type: "textarea",
|
|
760
769
|
label: `${e(n)("booking.reservation.remark")} (${e(n)("booking.reservation.optional")})`,
|
|
761
770
|
icon: "info-circle",
|
|
762
771
|
placeholder: e(n)("booking.reservation.remarkPlaceholder")
|
|
763
772
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
764
|
-
|
|
765
|
-
modelValue: e(
|
|
766
|
-
"onUpdate:modelValue":
|
|
773
|
+
h(ee, {
|
|
774
|
+
modelValue: e(g),
|
|
775
|
+
"onUpdate:modelValue": y[6] || (y[6] = (i) => I(g) ? g.value = i : null),
|
|
767
776
|
type: "textarea",
|
|
768
777
|
label: `${e(n)("booking.reservation.allergies")} (${e(n)("booking.reservation.optional")})`,
|
|
769
778
|
icon: "allergies",
|
|
@@ -771,29 +780,29 @@ const Jt = { class: "konnectio-event-listings" }, Kt = { class: "konnectio-panel
|
|
|
771
780
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
772
781
|
])
|
|
773
782
|
]),
|
|
774
|
-
navigation:
|
|
775
|
-
|
|
783
|
+
navigation: v(() => [
|
|
784
|
+
h(pe, {
|
|
776
785
|
label: e(n)("general.confirmReservation"),
|
|
777
|
-
"is-loading": e(
|
|
778
|
-
disabled: !e(
|
|
786
|
+
"is-loading": e(X),
|
|
787
|
+
disabled: !e(q),
|
|
779
788
|
"full-width": "",
|
|
780
789
|
onClickEvent: (i) => e(Ie)(C)
|
|
781
790
|
}, null, 8, ["label", "is-loading", "disabled", "onClickEvent"]),
|
|
782
791
|
t("button", {
|
|
783
792
|
class: "konnectio-abort-reservation link",
|
|
784
|
-
onClick:
|
|
793
|
+
onClick: _e((i) => e(he)(L), ["prevent"])
|
|
785
794
|
}, [
|
|
786
795
|
t("span", null, o(e(n)("general.goAStepBack")), 1)
|
|
787
|
-
], 8,
|
|
796
|
+
], 8, $n)
|
|
788
797
|
]),
|
|
789
798
|
_: 2
|
|
790
799
|
}, 1024)
|
|
791
800
|
]),
|
|
792
|
-
payment:
|
|
793
|
-
|
|
801
|
+
payment: v(() => [
|
|
802
|
+
h(_t)
|
|
794
803
|
]),
|
|
795
|
-
confirmation:
|
|
796
|
-
|
|
804
|
+
confirmation: v(() => [
|
|
805
|
+
h(pt, {
|
|
797
806
|
message: e(n)("event.confirmationMessage")
|
|
798
807
|
}, null, 8, ["message"])
|
|
799
808
|
]),
|
|
@@ -803,8 +812,8 @@ const Jt = { class: "konnectio-event-listings" }, Kt = { class: "konnectio-panel
|
|
|
803
812
|
_: 1
|
|
804
813
|
}, 8, ["access-token", "callback"])
|
|
805
814
|
]),
|
|
806
|
-
fallback:
|
|
807
|
-
|
|
815
|
+
fallback: v(() => [
|
|
816
|
+
h(Qt)
|
|
808
817
|
]),
|
|
809
818
|
_: 1
|
|
810
819
|
}))
|
|
@@ -812,8 +821,8 @@ const Jt = { class: "konnectio-event-listings" }, Kt = { class: "konnectio-panel
|
|
|
812
821
|
_: 1
|
|
813
822
|
}, 8, ["styling"]));
|
|
814
823
|
}
|
|
815
|
-
}), te = /* @__PURE__ */ se(
|
|
816
|
-
class
|
|
824
|
+
}), te = /* @__PURE__ */ se(wn, [["__scopeId", "data-v-8a514bc9"]]), Vn = We(), Dn = Ke();
|
|
825
|
+
class En extends HTMLElement {
|
|
817
826
|
vueApp;
|
|
818
827
|
constructor() {
|
|
819
828
|
super();
|
|
@@ -823,25 +832,25 @@ class Dn extends HTMLElement {
|
|
|
823
832
|
}
|
|
824
833
|
connectedCallback() {
|
|
825
834
|
const n = typeof te == "function" ? te.options : te;
|
|
826
|
-
let
|
|
827
|
-
const
|
|
828
|
-
|
|
829
|
-
const
|
|
835
|
+
let a = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
836
|
+
const u = (c) => c.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (g, _) => (_ ? "-" : "") + g.toLowerCase()), p = (c) => c.replace(/-./g, (g) => g[1].toUpperCase()), s = {};
|
|
837
|
+
a = a.map(u);
|
|
838
|
+
const b = {};
|
|
830
839
|
for (const c of this.attributes) {
|
|
831
|
-
const
|
|
832
|
-
|
|
840
|
+
const _ = c.name.split(".");
|
|
841
|
+
_.length > 1 && (b[_[0]] || (b[_[0]] = {}), b[_[0]][p(_[1])] = c.value);
|
|
833
842
|
}
|
|
834
|
-
for (const c of
|
|
835
|
-
let
|
|
836
|
-
|
|
843
|
+
for (const c of a) {
|
|
844
|
+
let g = this.attributes.getNamedItem(c)?.value;
|
|
845
|
+
b.hasOwnProperty(c) && (g = b[c]), s[c] = g;
|
|
837
846
|
}
|
|
838
|
-
this.vueApp =
|
|
847
|
+
this.vueApp = Qe(te, s), this.vueApp.provide("emitter", Dn), this.vueApp.use(Je), this.vueApp.use(Vn), this.vueApp.use(vt), this.vueApp.use(bt), this.vueApp.use(it, { bootstrap: !0 });
|
|
839
848
|
const w = document.createElement("div");
|
|
840
849
|
this.vueApp.mount(w), this.appendChild(w.children[0]);
|
|
841
850
|
}
|
|
842
851
|
}
|
|
843
|
-
window.customElements.define("konnectio-event",
|
|
852
|
+
window.customElements.define("konnectio-event", En);
|
|
844
853
|
export {
|
|
845
|
-
|
|
854
|
+
En as default
|
|
846
855
|
};
|
|
847
856
|
//# sourceMappingURL=event.js.map
|