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