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