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