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