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