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