@konnectio/core 4.1.26 → 4.1.28
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-Cd4Jby4P.js → ActionField-BrnUJ7fu.js} +2 -2
- package/dist/ActionField-BrnUJ7fu.js.br +0 -0
- package/dist/{AvailabilitySkeleton-Dbrv5lGT.js → AvailabilitySkeleton-DZl2mDWU.js} +5 -5
- package/dist/AvailabilitySkeleton-DZl2mDWU.js.br +0 -0
- package/dist/{CheckoutWindow-D2ZSMnHE.js → CheckoutWindow-CI5l3M2a.js} +2 -2
- package/dist/CheckoutWindow-CI5l3M2a.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-BpMOgqg_.js → DateField.vue_vue_type_style_index_0_lang-D8dBekgb.js} +2 -2
- package/dist/DateField.vue_vue_type_style_index_0_lang-D8dBekgb.js.br +0 -0
- package/dist/{ErrorMessage-BzyCzAA4.js → ErrorMessage-CocZruMr.js} +2 -2
- package/dist/ErrorMessage-CocZruMr.js.br +0 -0
- package/dist/{EventAvailabilityForm-SgCdZfbL.js → EventAvailabilityForm-CbONbGu2.js} +3 -3
- package/dist/EventAvailabilityForm-CbONbGu2.js.br +0 -0
- package/dist/{Field-OyhT-g5Z.js → Field-35GXbUoS.js} +3 -3
- package/dist/Field-35GXbUoS.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-CpA1yERn.js → SelectField.vue_vue_type_style_index_0_lang-BrvIj7Dh.js} +629 -628
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BrvIj7Dh.js.br +0 -0
- package/dist/{TermsOfService-DfCirgPI.js → TermsOfService-5O88A7a9.js} +3 -3
- package/dist/_-B3PYo4FF.js +5 -0
- package/dist/{_-DSKigw2-.js → _-Bm0qmA2Z.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-Dyzlcjik.js → _.vue_vue_type_style_index_0_lang-C3Qlnr_L.js} +2 -2
- package/dist/availability.js +5 -5
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +3 -3
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/event.js +281 -282
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +7 -7
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +8 -8
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-BShwz2Pf.js → giftCard-Ck7rcflO.js} +2 -2
- package/dist/giftCard-Ck7rcflO.js.br +0 -0
- package/dist/hotel.js +8 -8
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CCtwuyG_.js → masonry.plugin-23M4TZeK.js} +5 -5
- package/dist/masonry.plugin-23M4TZeK.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-Cd4Jby4P.js.br +0 -0
- package/dist/AvailabilitySkeleton-Dbrv5lGT.js.br +0 -0
- package/dist/CheckoutWindow-D2ZSMnHE.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-BpMOgqg_.js.br +0 -0
- package/dist/ErrorMessage-BzyCzAA4.js.br +0 -0
- package/dist/EventAvailabilityForm-SgCdZfbL.js.br +0 -0
- package/dist/Field-OyhT-g5Z.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-CpA1yERn.js.br +0 -0
- package/dist/_-Bn4MVnTU.js +0 -5
- package/dist/giftCard-BShwz2Pf.js.br +0 -0
- package/dist/masonry.plugin-CCtwuyG_.js.br +0 -0
package/dist/event.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { d as q, u as ne, s as Y, c as j, r as
|
|
2
|
-
import { a as Pe, f as J, B as dt, g as re, l as ct, s as z, e as de, _ as W, h as ce, I as te, i as mt,
|
|
1
|
+
import { d as q, u as ne, s as Y, c as j, r as Fe, a as $, b as o, g as e, w as m, q as Q, e as t, n as xe, i as c, f as v, h as r, t as l, F as C, v as G, o as et, j as tt, x as ue, y as nt, z as U, A as at, S as ot, k as lt, _ as st, l as it, m as rt, p as ut } from "./mitt-CgrYtI2g.js";
|
|
2
|
+
import { a as Pe, f as J, B as dt, g as re, l as ct, s as z, e as de, _ as W, h as ce, I as te, i as mt, j as me, u as he, k as pt, m as vt, n as bt, o as Z, T as ie, O as ft, p as gt, q as we, C as kt, r as yt, t as ht, v as Dt } from "./SelectField.vue_vue_type_style_index_0_lang-BrvIj7Dh.js";
|
|
3
3
|
import { G as Pt } from "./style-B_8a8HvR.js";
|
|
4
|
-
import { _ as $t } from "./_.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { B as wt, _ as
|
|
6
|
-
import { g as
|
|
7
|
-
import { C as Rt, P as Mt, a as Ut } from "./CheckoutWindow-
|
|
8
|
-
import { E as Gt } from "./EventAvailabilityForm-
|
|
4
|
+
import { _ as $t } from "./_.vue_vue_type_style_index_0_lang-C3Qlnr_L.js";
|
|
5
|
+
import { B as wt, _ as _t, R as Et, L as Le, S as Ot, M as Vt, T as Tt, C as Nt, V as Ft, a as Lt } from "./masonry.plugin-23M4TZeK.js";
|
|
6
|
+
import { g as Bt, e as Ct, c as St, n as At, a as _e, m as Ee, b as Oe, d as Ve, f as Te, _ as It } from "./DateField.vue_vue_type_style_index_0_lang-D8dBekgb.js";
|
|
7
|
+
import { C as Rt, P as Mt, a as Ut } from "./CheckoutWindow-CI5l3M2a.js";
|
|
8
|
+
import { E as Gt } from "./EventAvailabilityForm-CbONbGu2.js";
|
|
9
9
|
function zt(w) {
|
|
10
10
|
return (n) => {
|
|
11
|
-
const
|
|
12
|
-
return
|
|
11
|
+
const k = (w ? Math[w] : Math.trunc)(n);
|
|
12
|
+
return k === 0 ? 0 : k;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
function qt(w, n, a) {
|
|
16
|
-
const
|
|
17
|
-
if (isNaN(
|
|
16
|
+
const k = Bt(), p = a?.locale ?? k.locale ?? Ct, f = St(w, n);
|
|
17
|
+
if (isNaN(f))
|
|
18
18
|
throw new RangeError("Invalid time value");
|
|
19
|
-
const
|
|
19
|
+
const i = Object.assign({}, a, {
|
|
20
20
|
addSuffix: a?.addSuffix,
|
|
21
|
-
comparison:
|
|
22
|
-
}), [
|
|
21
|
+
comparison: f
|
|
22
|
+
}), [y, h] = At(
|
|
23
23
|
a?.in,
|
|
24
|
-
...
|
|
25
|
-
), s = zt("round"),
|
|
26
|
-
let
|
|
27
|
-
if (D < 1 ?
|
|
28
|
-
const P = s(
|
|
29
|
-
return p.formatDistance("xSeconds", P,
|
|
30
|
-
} else if (
|
|
24
|
+
...f > 0 ? [n, w] : [w, n]
|
|
25
|
+
), s = zt("round"), O = h.getTime() - y.getTime(), D = O / Te, N = _e(h) - _e(y), b = (O - N) / Te, S = a?.unit;
|
|
26
|
+
let _;
|
|
27
|
+
if (D < 1 ? _ = "second" : D < 60 ? _ = "minute" : D < Ee ? _ = "hour" : b < Oe ? _ = "day" : b < Ve ? _ = "month" : _ = "year", _ === "second") {
|
|
28
|
+
const P = s(O / 1e3);
|
|
29
|
+
return p.formatDistance("xSeconds", P, i);
|
|
30
|
+
} else if (_ === "minute") {
|
|
31
31
|
const P = s(D);
|
|
32
|
-
return p.formatDistance("xMinutes", P,
|
|
33
|
-
} else if (
|
|
32
|
+
return p.formatDistance("xMinutes", P, i);
|
|
33
|
+
} else if (_ === "hour") {
|
|
34
34
|
const P = s(D / 60);
|
|
35
|
-
return p.formatDistance("xHours", P,
|
|
36
|
-
} else if (
|
|
35
|
+
return p.formatDistance("xHours", P, i);
|
|
36
|
+
} else if (_ === "day") {
|
|
37
|
+
const P = s(b / Ee);
|
|
38
|
+
return p.formatDistance("xDays", P, i);
|
|
39
|
+
} else if (_ === "month") {
|
|
37
40
|
const P = s(b / Oe);
|
|
38
|
-
return p.formatDistance("
|
|
39
|
-
} else if (E === "month") {
|
|
40
|
-
const P = s(b / _e);
|
|
41
|
-
return P === 12 && S !== "month" ? p.formatDistance("xYears", 1, k) : p.formatDistance("xMonths", P, k);
|
|
41
|
+
return P === 12 && S !== "month" ? p.formatDistance("xYears", 1, i) : p.formatDistance("xMonths", P, i);
|
|
42
42
|
} else {
|
|
43
43
|
const P = s(b / Ve);
|
|
44
|
-
return p.formatDistance("xYears", P,
|
|
44
|
+
return p.formatDistance("xYears", P, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__ */ q({
|
|
@@ -69,77 +69,77 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
|
|
|
69
69
|
callback: {}
|
|
70
70
|
},
|
|
71
71
|
setup(w) {
|
|
72
|
-
const { t: n } = ne(), a = w, { display:
|
|
72
|
+
const { t: n } = ne(), a = w, { display: k } = Pe(), {
|
|
73
73
|
maxNumberOfPeople: p,
|
|
74
|
-
numberOfPeople:
|
|
75
|
-
eventId:
|
|
76
|
-
currentEventDate:
|
|
77
|
-
tableGroupId:
|
|
74
|
+
numberOfPeople: f,
|
|
75
|
+
eventId: i,
|
|
76
|
+
currentEventDate: y,
|
|
77
|
+
tableGroupId: h
|
|
78
78
|
} = Y(J()), {
|
|
79
79
|
getTemplateAvailability: s,
|
|
80
|
-
getEventAvailability:
|
|
80
|
+
getEventAvailability: O,
|
|
81
81
|
isEventListingLoading: D
|
|
82
|
-
} = J(),
|
|
82
|
+
} = J(), N = j(() => a.maxGuests || a.maxOnlineReservationLimit || p.value || 1 / 0), b = Fe(0), S = j(() => D(a.listingId)), _ = () => {
|
|
83
83
|
if (!a.useNumberOfProductsForPersons && (b.value === 0 || isNaN(b.value))) {
|
|
84
|
-
|
|
84
|
+
k({
|
|
85
85
|
type: "error",
|
|
86
86
|
message: n("alert.error.selectPeople")
|
|
87
87
|
});
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
i.value = a.listingId, f.value = a.useNumberOfProductsForPersons ? NaN : b.value, s(a.callback);
|
|
91
91
|
}, P = () => {
|
|
92
92
|
if (!a.useNumberOfProductsForPersons && (b.value === 0 || isNaN(b.value))) {
|
|
93
|
-
|
|
93
|
+
k({
|
|
94
94
|
type: "error",
|
|
95
95
|
message: n("alert.error.selectPeople")
|
|
96
96
|
});
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
i.value = a.listingId, h.value = a.tableGroupId, f.value = a.useNumberOfProductsForPersons ? NaN : b.value, O(a.callback);
|
|
100
100
|
};
|
|
101
|
-
return (
|
|
101
|
+
return (g, F) => (o(), $(wt, {
|
|
102
102
|
type: "event",
|
|
103
|
-
"listing-id":
|
|
104
|
-
gallery:
|
|
105
|
-
name:
|
|
106
|
-
description:
|
|
107
|
-
"prices-from":
|
|
108
|
-
"to-date":
|
|
103
|
+
"listing-id": g.listingId,
|
|
104
|
+
gallery: g.gallery,
|
|
105
|
+
name: g.name,
|
|
106
|
+
description: g.description,
|
|
107
|
+
"prices-from": g.fromPrice,
|
|
108
|
+
"to-date": g.toDate,
|
|
109
109
|
layout: e(dt).Event,
|
|
110
|
-
"disable-deep-link":
|
|
110
|
+
"disable-deep-link": g.disableDeepLink
|
|
111
111
|
}, {
|
|
112
112
|
description: m(() => [
|
|
113
|
-
Q(
|
|
113
|
+
Q(g.$slots, "description", { maxNumberOfPeople: e(p) }, void 0, !0)
|
|
114
114
|
]),
|
|
115
115
|
action: m(() => [
|
|
116
|
-
Q(
|
|
116
|
+
Q(g.$slots, "action", {}, () => [
|
|
117
117
|
t("div", {
|
|
118
118
|
class: xe([
|
|
119
119
|
"konnectio-event-listing-action",
|
|
120
|
-
{ "no-selectable-people":
|
|
120
|
+
{ "no-selectable-people": g.useNumberOfProductsForPersons }
|
|
121
121
|
])
|
|
122
122
|
}, [
|
|
123
|
-
|
|
123
|
+
g.useNumberOfProductsForPersons ? c("", !0) : (o(), $(re, {
|
|
124
124
|
key: 0,
|
|
125
125
|
modelValue: b.value,
|
|
126
|
-
"onUpdate:modelValue":
|
|
126
|
+
"onUpdate:modelValue": F[0] || (F[0] = (I) => b.value = I),
|
|
127
127
|
label: e(n)("event.numberOfGuests"),
|
|
128
128
|
icon: "users",
|
|
129
129
|
"icon-type": "fas",
|
|
130
130
|
"icon-placement": "label",
|
|
131
|
-
description:
|
|
131
|
+
description: N.value <= 20 ? `${e(n)("general.availableFor")}: 1 - ${N.value} ${e(ct)(e(n)("general.guests"))}` : void 0,
|
|
132
132
|
"min-value": 0,
|
|
133
|
-
"max-value":
|
|
133
|
+
"max-value": N.value
|
|
134
134
|
}, null, 8, ["modelValue", "label", "description", "max-value"])),
|
|
135
135
|
t("div", Ht, [
|
|
136
136
|
v(de, {
|
|
137
|
-
label:
|
|
138
|
-
disabled:
|
|
137
|
+
label: g.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
|
|
138
|
+
disabled: g.soldOut,
|
|
139
139
|
"is-loading": S.value,
|
|
140
140
|
"full-width": "",
|
|
141
|
-
"sub-label": e(z)(e(
|
|
142
|
-
onClickEvent:
|
|
141
|
+
"sub-label": e(z)(e(y)),
|
|
142
|
+
onClickEvent: F[1] || (F[1] = (I) => g.type === "event" ? P() : _())
|
|
143
143
|
}, null, 8, ["label", "disabled", "is-loading", "sub-label"])
|
|
144
144
|
])
|
|
145
145
|
], 2)
|
|
@@ -148,11 +148,11 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
|
|
|
148
148
|
_: 3
|
|
149
149
|
}, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout", "disable-deep-link"]));
|
|
150
150
|
}
|
|
151
|
-
}),
|
|
151
|
+
}), Be = /* @__PURE__ */ W(Yt, [["__scopeId", "data-v-804b8a95"]]), jt = { class: "konnectio-event-listing-information-new" };
|
|
152
152
|
const Wt = {
|
|
153
153
|
key: 1,
|
|
154
154
|
class: "konnectio-pill-button"
|
|
155
|
-
}, Zt = { class: "konnectio-pill-button" }, Qt = /* @__PURE__ */ q({
|
|
155
|
+
}, Zt = { class: "konnectio-pill-button" }, Qt = { key: 0 }, Jt = { key: 1 }, Kt = /* @__PURE__ */ q({
|
|
156
156
|
__name: "Event",
|
|
157
157
|
props: {
|
|
158
158
|
name: {},
|
|
@@ -175,14 +175,17 @@ const Wt = {
|
|
|
175
175
|
callback: {}
|
|
176
176
|
},
|
|
177
177
|
setup(w) {
|
|
178
|
-
const n = w, { t: a } = ne(), {
|
|
178
|
+
const n = w, { t: a } = ne(), {
|
|
179
|
+
hideEventLength: k,
|
|
180
|
+
hideEventEndTime: p
|
|
181
|
+
} = Y(ce()), f = j(() => {
|
|
179
182
|
const i = n.length.split(":");
|
|
180
183
|
return qt(
|
|
181
184
|
new Date(2e3, 0, 1, Number(i[0]), Number(i[1]), 0),
|
|
182
185
|
new Date(2e3, 0, 1, 0, 0, 0)
|
|
183
186
|
);
|
|
184
187
|
});
|
|
185
|
-
return (i,
|
|
188
|
+
return (i, y) => (o(), $(Be, {
|
|
186
189
|
"listing-id": i.listingId,
|
|
187
190
|
name: i.name,
|
|
188
191
|
description: i.description,
|
|
@@ -197,13 +200,13 @@ const Wt = {
|
|
|
197
200
|
callback: i.callback
|
|
198
201
|
}, {
|
|
199
202
|
description: m(() => [
|
|
200
|
-
i.description ? (o(), $(
|
|
203
|
+
i.description ? (o(), $(_t, {
|
|
201
204
|
key: 0,
|
|
202
205
|
text: i.description
|
|
203
206
|
}, null, 8, ["text"])) : c("", !0),
|
|
204
207
|
t("ul", jt, [
|
|
205
208
|
c("", !0),
|
|
206
|
-
e(
|
|
209
|
+
e(k) ? c("", !0) : (o(), r("li", Wt, [
|
|
207
210
|
t("div", null, [
|
|
208
211
|
v(te, {
|
|
209
212
|
icon: "calendar-clock",
|
|
@@ -211,7 +214,7 @@ const Wt = {
|
|
|
211
214
|
}),
|
|
212
215
|
t("span", null, l(e(a)("event.lengthOfEvent")), 1)
|
|
213
216
|
]),
|
|
214
|
-
t("span", null, l(
|
|
217
|
+
t("span", null, l(f.value), 1)
|
|
215
218
|
])),
|
|
216
219
|
t("li", Zt, [
|
|
217
220
|
t("div", null, [
|
|
@@ -221,7 +224,7 @@ const Wt = {
|
|
|
221
224
|
}),
|
|
222
225
|
t("span", null, l(e(a)("event.startAndEndTime")), 1)
|
|
223
226
|
]),
|
|
224
|
-
|
|
227
|
+
e(p) ? (o(), r("span", Jt, l(e(me)(i.timeFrom)), 1)) : (o(), r("span", Qt, l(e(mt)(i.timeFrom, i.timeTo)), 1))
|
|
225
228
|
])
|
|
226
229
|
])
|
|
227
230
|
]),
|
|
@@ -231,58 +234,54 @@ const Wt = {
|
|
|
231
234
|
_: 3
|
|
232
235
|
}, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "use-number-of-products-for-persons", "to-date", "sold-out", "callback"]));
|
|
233
236
|
}
|
|
234
|
-
}), De = /* @__PURE__ */ W(
|
|
237
|
+
}), De = /* @__PURE__ */ W(Kt, [["__scopeId", "data-v-398a9264"]]), Xt = {
|
|
235
238
|
key: 0,
|
|
236
239
|
class: "konnectio-event-grouped-listings-container"
|
|
237
|
-
},
|
|
240
|
+
}, xt = { class: "konnectio-event-grouped-listings" }, en = /* @__PURE__ */ q({
|
|
238
241
|
__name: "Event",
|
|
239
242
|
props: {
|
|
240
243
|
name: {},
|
|
241
244
|
events: {},
|
|
242
|
-
callback: {}
|
|
245
|
+
callback: { type: Function }
|
|
243
246
|
},
|
|
244
247
|
setup(w) {
|
|
245
|
-
return (n, a) => n.events && n.events.length > 1 ? (o(), r("div",
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
]),
|
|
249
|
-
t("ul", Kt, [
|
|
248
|
+
return (n, a) => n.events && n.events.length > 1 ? (o(), r("div", Xt, [
|
|
249
|
+
c("", !0),
|
|
250
|
+
t("ul", xt, [
|
|
250
251
|
(o(!0), r(C, null, G(n.events, ({
|
|
251
|
-
id:
|
|
252
|
+
id: k,
|
|
252
253
|
days: p,
|
|
253
|
-
name:
|
|
254
|
-
timeFrom:
|
|
255
|
-
timeTo:
|
|
256
|
-
fromDate:
|
|
254
|
+
name: f,
|
|
255
|
+
timeFrom: i,
|
|
256
|
+
timeTo: y,
|
|
257
|
+
fromDate: h,
|
|
257
258
|
toDate: s,
|
|
258
|
-
tableGroupId:
|
|
259
|
+
tableGroupId: O,
|
|
259
260
|
description: D,
|
|
260
|
-
soldOut:
|
|
261
|
+
soldOut: N,
|
|
261
262
|
length: b,
|
|
262
263
|
images: S,
|
|
263
|
-
maxOnlineReservationLimit:
|
|
264
|
+
maxOnlineReservationLimit: _,
|
|
264
265
|
maxPaxPerReservation: P,
|
|
265
|
-
useNumberOfProductsForPersons:
|
|
266
|
-
maxTicketsLimit:
|
|
266
|
+
useNumberOfProductsForPersons: g,
|
|
267
|
+
maxTicketsLimit: F
|
|
267
268
|
}) => (o(), $(De, {
|
|
268
|
-
key:
|
|
269
|
+
key: k,
|
|
269
270
|
type: "event",
|
|
270
|
-
"listing-id":
|
|
271
|
-
"table-group-id":
|
|
271
|
+
"listing-id": k,
|
|
272
|
+
"table-group-id": O,
|
|
272
273
|
description: D,
|
|
273
|
-
name:
|
|
274
|
+
name: f,
|
|
274
275
|
length: b,
|
|
275
276
|
gallery: S,
|
|
276
277
|
days: p,
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
"sold-out": T,
|
|
283
|
-
"use-number-of-products-for-persons": f,
|
|
278
|
+
"max-online-reservation-limit": P || _ || F,
|
|
279
|
+
"time-from": i,
|
|
280
|
+
"time-to": y,
|
|
281
|
+
"sold-out": N,
|
|
282
|
+
"use-number-of-products-for-persons": g,
|
|
284
283
|
callback: n.callback
|
|
285
|
-
}, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "
|
|
284
|
+
}, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "callback"]))), 128))
|
|
286
285
|
])
|
|
287
286
|
])) : n.events ? (o(), $(De, {
|
|
288
287
|
key: n.events[0].id,
|
|
@@ -304,7 +303,7 @@ const Wt = {
|
|
|
304
303
|
callback: n.callback
|
|
305
304
|
}, 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"])) : c("", !0);
|
|
306
305
|
}
|
|
307
|
-
}),
|
|
306
|
+
}), tn = /* @__PURE__ */ W(en, [["__scopeId", "data-v-3a92c817"]]), nn = { class: "konnectio-special-offer-availability" }, an = { class: "konnectio-special-offer-availability-button" }, on = { class: "konnectio-warning-notice" }, ln = { key: 0 }, sn = { key: 1 }, rn = /* @__PURE__ */ q({
|
|
308
307
|
__name: "NextEvent",
|
|
309
308
|
props: {
|
|
310
309
|
name: {},
|
|
@@ -326,17 +325,17 @@ const Wt = {
|
|
|
326
325
|
callback: { type: Function }
|
|
327
326
|
},
|
|
328
327
|
setup(w) {
|
|
329
|
-
const { t: n } = ne(), { updateEventDate: a } =
|
|
330
|
-
function
|
|
331
|
-
p.value ? a(p.value) :
|
|
328
|
+
const { t: n } = ne(), { updateEventDate: a } = he(), { display: k } = Pe(), p = Fe(), f = w;
|
|
329
|
+
function i() {
|
|
330
|
+
p.value ? a(p.value) : k({
|
|
332
331
|
message: n("alert.error.selectDate"),
|
|
333
332
|
type: "error"
|
|
334
333
|
});
|
|
335
334
|
}
|
|
336
|
-
const
|
|
335
|
+
const y = j(() => pt(f.fromDate, f.toDate) <= 1), h = j(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !vt(f.days).includes(s)));
|
|
337
336
|
return et(() => {
|
|
338
|
-
|
|
339
|
-
}), (s,
|
|
337
|
+
y.value && (p.value = new Date(f.fromDate));
|
|
338
|
+
}), (s, O) => (o(), $(De, {
|
|
340
339
|
name: s.name,
|
|
341
340
|
description: s.description,
|
|
342
341
|
"from-date": s.fromDate,
|
|
@@ -358,32 +357,32 @@ const Wt = {
|
|
|
358
357
|
}, {
|
|
359
358
|
action: m(() => [
|
|
360
359
|
t("div", null, [
|
|
361
|
-
t("div",
|
|
360
|
+
t("div", nn, [
|
|
362
361
|
v(It, {
|
|
363
362
|
modelValue: p.value,
|
|
364
|
-
"onUpdate:modelValue":
|
|
363
|
+
"onUpdate:modelValue": O[0] || (O[0] = (D) => p.value = D),
|
|
365
364
|
label: `${e(n)("event.selectDate")}*`,
|
|
366
365
|
placeholder: e(n)("event.selectDate"),
|
|
367
366
|
"icon-type": "fas",
|
|
368
367
|
"icon-placement": "label",
|
|
369
|
-
readonly:
|
|
368
|
+
readonly: y.value,
|
|
370
369
|
"start-date": s.fromDate !== "0001-01-01T00:00:00Z" ? new Date(s.fromDate) : new Date(s.toDate),
|
|
371
370
|
"min-date": s.fromDate !== "0001-01-01T00:00:00Z" ? new Date(s.fromDate) : new Date(s.toDate),
|
|
372
371
|
"max-date": new Date(s.toDate),
|
|
373
|
-
"disabled-week-days":
|
|
372
|
+
"disabled-week-days": h.value
|
|
374
373
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly", "start-date", "min-date", "max-date", "disabled-week-days"]),
|
|
375
|
-
t("div",
|
|
374
|
+
t("div", an, [
|
|
376
375
|
v(de, {
|
|
377
376
|
label: e(n)("availability.buttonLabel"),
|
|
378
|
-
onClick: tt(
|
|
377
|
+
onClick: tt(i, ["prevent"])
|
|
379
378
|
}, null, 8, ["label"])
|
|
380
379
|
])
|
|
381
380
|
]),
|
|
382
|
-
t("div",
|
|
383
|
-
|
|
381
|
+
t("div", on, [
|
|
382
|
+
y.value ? (o(), r("span", ln, [
|
|
384
383
|
ue("*" + l(e(n)("event.canBeBooked")) + " ", 1),
|
|
385
384
|
t("u", null, l(e(z)(s.fromDate)), 1)
|
|
386
|
-
])) : (o(), r("span",
|
|
385
|
+
])) : (o(), r("span", sn, [
|
|
387
386
|
ue("*" + l(e(n)("event.canBeBooked")) + " ", 1),
|
|
388
387
|
t("u", null, l(e(bt)(s.days)), 1)
|
|
389
388
|
]))
|
|
@@ -393,7 +392,7 @@ const Wt = {
|
|
|
393
392
|
_: 1
|
|
394
393
|
}, 8, ["name", "description", "from-date", "to-date", "length", "time-from", "time-to", "gallery", "days", "listing-id", "table-group-id", "max-online-reservation-limit", "minimum-person-count", "use-number-of-products-for-persons", "tracking-enabled", "sold-out", "callback"]));
|
|
395
394
|
}
|
|
396
|
-
}),
|
|
395
|
+
}), un = /* @__PURE__ */ W(rn, [["__scopeId", "data-v-f6aed3b0"]]), dn = /* @__PURE__ */ q({
|
|
397
396
|
__name: "Template",
|
|
398
397
|
props: {
|
|
399
398
|
name: {},
|
|
@@ -410,7 +409,7 @@ const Wt = {
|
|
|
410
409
|
callback: {}
|
|
411
410
|
},
|
|
412
411
|
setup(w) {
|
|
413
|
-
return (n, a) => (o(), $(
|
|
412
|
+
return (n, a) => (o(), $(Be, {
|
|
414
413
|
"listing-id": n.listingId,
|
|
415
414
|
gallery: n.images,
|
|
416
415
|
name: n.name,
|
|
@@ -421,10 +420,10 @@ const Wt = {
|
|
|
421
420
|
callback: n.callback
|
|
422
421
|
}, null, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
|
|
423
422
|
}
|
|
424
|
-
}),
|
|
423
|
+
}), cn = { key: 0 }, mn = { key: 1 }, pn = { key: 2 }, vn = { key: 0 }, bn = { key: 4 }, fn = { key: 5 }, gn = { key: 0 }, kn = { key: 0 }, yn = { key: 1 }, hn = {
|
|
425
424
|
key: 0,
|
|
426
425
|
class: "konnectio-capitalize"
|
|
427
|
-
},
|
|
426
|
+
}, Dn = /* @__PURE__ */ q({
|
|
428
427
|
__name: "EventReservationForm",
|
|
429
428
|
props: {
|
|
430
429
|
showGiftCard: { type: Boolean, default: !1 },
|
|
@@ -433,35 +432,35 @@ const Wt = {
|
|
|
433
432
|
},
|
|
434
433
|
setup(w) {
|
|
435
434
|
const { t: n } = ne(), a = nt(), {
|
|
436
|
-
areListingsAvailable:
|
|
435
|
+
areListingsAvailable: k,
|
|
437
436
|
arrivalTime: p,
|
|
438
|
-
numberOfPeople:
|
|
439
|
-
numberOfRooms:
|
|
440
|
-
numberOfTotalDays:
|
|
441
|
-
isTemplateEvent:
|
|
437
|
+
numberOfPeople: f,
|
|
438
|
+
numberOfRooms: i,
|
|
439
|
+
numberOfTotalDays: y,
|
|
440
|
+
isTemplateEvent: h,
|
|
442
441
|
currentEventDate: s,
|
|
443
|
-
length:
|
|
442
|
+
length: O,
|
|
444
443
|
fromDate: D,
|
|
445
|
-
tableBasePrice:
|
|
444
|
+
tableBasePrice: N,
|
|
446
445
|
getTemplateData: b,
|
|
447
446
|
basePrice: S,
|
|
448
|
-
totalPrice:
|
|
447
|
+
totalPrice: _,
|
|
449
448
|
weekendFee: P,
|
|
450
|
-
roomUpgrade:
|
|
451
|
-
discountCode:
|
|
449
|
+
roomUpgrade: g,
|
|
450
|
+
discountCode: F,
|
|
452
451
|
totalSelectedProducts: I
|
|
453
|
-
} = Y(J()), { totalAddonPrice: ae, validateDiscountCode:
|
|
454
|
-
return (M, le) => (o(), $(
|
|
455
|
-
"discount-code": e(
|
|
456
|
-
"onUpdate:discountCode": le[0] || (le[0] = (H) => U(
|
|
457
|
-
"validate-discount-code": e(
|
|
452
|
+
} = Y(J()), { totalAddonPrice: ae, validateDiscountCode: pe } = J(), { currency: oe, hideEventLength: ve } = Y(ce());
|
|
453
|
+
return (M, le) => (o(), $(Et, {
|
|
454
|
+
"discount-code": e(F),
|
|
455
|
+
"onUpdate:discountCode": le[0] || (le[0] = (H) => U(F) ? F.value = H : null),
|
|
456
|
+
"validate-discount-code": e(pe),
|
|
458
457
|
"show-gift-card": M.showGiftCard,
|
|
459
458
|
"show-terms-notice": M.showTermsNotice,
|
|
460
|
-
"is-sidebar-loading": !e(
|
|
459
|
+
"is-sidebar-loading": !e(k),
|
|
461
460
|
"base-price": e(S),
|
|
462
|
-
"total-price": e(
|
|
461
|
+
"total-price": e(_),
|
|
463
462
|
"weekend-fee": e(P),
|
|
464
|
-
"room-upgrade": e(
|
|
463
|
+
"room-upgrade": e(g),
|
|
465
464
|
notice: e(n)("event.reservationNotice"),
|
|
466
465
|
"prev-callback": M.prevCallback
|
|
467
466
|
}, at({
|
|
@@ -469,49 +468,49 @@ const Wt = {
|
|
|
469
468
|
Q(M.$slots, "form", {}, void 0, !0)
|
|
470
469
|
]),
|
|
471
470
|
"reservation-summary": m(() => [
|
|
472
|
-
e(
|
|
471
|
+
e(h) ? c("", !0) : (o(), r("li", cn, [
|
|
473
472
|
t("span", null, l(e(n)("general.date")), 1),
|
|
474
473
|
t("b", null, l(e(z)(e(s))), 1)
|
|
475
474
|
])),
|
|
476
|
-
e(
|
|
475
|
+
e(f) > 0 ? (o(), r("li", mn, [
|
|
477
476
|
t("span", null, l(e(n)("event.numberOfGuests")), 1),
|
|
478
|
-
t("b", null, l(e(
|
|
477
|
+
t("b", null, l(e(f)), 1)
|
|
479
478
|
])) : c("", !0),
|
|
480
|
-
!e(
|
|
479
|
+
!e(h) && e(I) > 0 ? (o(), r("li", pn, [
|
|
481
480
|
t("span", null, l(e(n)("event.numberOfProducts")), 1),
|
|
482
481
|
t("b", null, l(e(I)), 1)
|
|
483
482
|
])) : c("", !0),
|
|
484
|
-
e(
|
|
483
|
+
e(h) ? (o(), r(C, { key: 3 }, [
|
|
485
484
|
t("li", null, [
|
|
486
485
|
t("span", null, l(e(n)("booking.reservation.arrival")), 1),
|
|
487
486
|
t("b", null, l(e(z)(e(D))), 1)
|
|
488
487
|
]),
|
|
489
488
|
t("li", null, [
|
|
490
489
|
t("span", null, l(e(n)("booking.reservation.departure")), 1),
|
|
491
|
-
t("b", null, l(e(z)(e(D), e(
|
|
490
|
+
t("b", null, l(e(z)(e(D), e(y))), 1)
|
|
492
491
|
]),
|
|
493
492
|
t("li", null, [
|
|
494
493
|
t("span", null, l(e(n)("event.numberOfRooms")), 1),
|
|
495
|
-
t("b", null, l(e(
|
|
494
|
+
t("b", null, l(e(i)), 1)
|
|
496
495
|
]),
|
|
497
|
-
e(
|
|
496
|
+
e(y) > 0 ? (o(), r("li", vn, [
|
|
498
497
|
t("span", null, l(e(n)("event.numberOfDays")), 1),
|
|
499
|
-
t("b", null, l(e(
|
|
498
|
+
t("b", null, l(e(y)), 1)
|
|
500
499
|
])) : c("", !0)
|
|
501
500
|
], 64)) : c("", !0),
|
|
502
|
-
!e(
|
|
501
|
+
!e(h) && e(p) ? (o(), r("li", bn, [
|
|
503
502
|
t("span", null, l(e(n)("event.startOfEvent")), 1),
|
|
504
|
-
t("b", null, l(e(
|
|
503
|
+
t("b", null, l(e(me)(e(p))), 1)
|
|
505
504
|
])) : c("", !0),
|
|
506
|
-
!e(
|
|
505
|
+
!e(h) && e(O) && !e(ve) ? (o(), r("li", fn, [
|
|
507
506
|
t("span", null, l(e(n)("event.lengthOfEvent")), 1),
|
|
508
|
-
t("b", null, l(e(
|
|
507
|
+
t("b", null, l(e(me)(e(O))), 1)
|
|
509
508
|
])) : c("", !0)
|
|
510
509
|
]),
|
|
511
510
|
"price-summary": m(() => [
|
|
512
|
-
!e(
|
|
511
|
+
!e(h) && e(N) > 0 ? (o(), r("li", gn, [
|
|
513
512
|
t("span", null, l(e(n)("booking.availability.basePrice")), 1),
|
|
514
|
-
t("b", null, l(e(Z)(e(
|
|
513
|
+
t("b", null, l(e(Z)(e(N), e(oe))), 1)
|
|
515
514
|
])) : c("", !0),
|
|
516
515
|
e(b) ? (o(!0), r(C, { key: 1 }, G(e(b), ({ roomGroupId: H }, K) => (o(), r(C, null, [
|
|
517
516
|
e(ae)(H, K) > 0 ? (o(), r("li", { key: H }, [
|
|
@@ -524,14 +523,14 @@ const Wt = {
|
|
|
524
523
|
Q(M.$slots, "navigation", {}, void 0, !0)
|
|
525
524
|
]),
|
|
526
525
|
"mobile-under-price": m(() => [
|
|
527
|
-
e(
|
|
528
|
-
t("span", null, l(e(z)(e(D))) + " - " + l(e(z)(e(D), e(
|
|
529
|
-
])) : (o(), r("div",
|
|
526
|
+
e(h) && e(y) > 0 ? (o(), r("div", kn, [
|
|
527
|
+
t("span", null, l(e(z)(e(D))) + " - " + l(e(z)(e(D), e(y))), 1)
|
|
528
|
+
])) : (o(), r("div", yn, [
|
|
530
529
|
t("span", null, l(e(z)(e(s))), 1)
|
|
531
530
|
]))
|
|
532
531
|
]),
|
|
533
532
|
"mobile-summary": m(() => [
|
|
534
|
-
!e(
|
|
533
|
+
!e(h) && e(I) > 0 ? (o(), r("span", hn, l(e(n)("event.numberOfProducts")) + ": " + l(e(I)), 1)) : c("", !0)
|
|
535
534
|
]),
|
|
536
535
|
_: 2
|
|
537
536
|
}, [
|
|
@@ -544,32 +543,32 @@ const Wt = {
|
|
|
544
543
|
} : void 0
|
|
545
544
|
]), 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"]));
|
|
546
545
|
}
|
|
547
|
-
}),
|
|
546
|
+
}), ye = /* @__PURE__ */ W(Dn, [["__scopeId", "data-v-9b28e490"]]), Pn = { class: "event-skeleton" }, $n = { class: "event-skeleton-content" }, wn = { class: "event-skeleton-sidebar" }, _n = /* @__PURE__ */ q({
|
|
548
547
|
__name: "EventSkeleton",
|
|
549
548
|
setup(w) {
|
|
550
|
-
return (n, a) => (o(), r("div",
|
|
551
|
-
t("div",
|
|
552
|
-
v(
|
|
549
|
+
return (n, a) => (o(), r("div", Pn, [
|
|
550
|
+
t("div", $n, [
|
|
551
|
+
v(Le)
|
|
553
552
|
]),
|
|
554
|
-
t("div",
|
|
553
|
+
t("div", wn, [
|
|
555
554
|
c("", !0),
|
|
556
|
-
v(
|
|
555
|
+
v(Ot)
|
|
557
556
|
])
|
|
558
557
|
]));
|
|
559
558
|
}
|
|
560
|
-
}),
|
|
559
|
+
}), En = /* @__PURE__ */ W(_n, [["__scopeId", "data-v-3e15c4e3"]]), On = {
|
|
561
560
|
key: 0,
|
|
562
561
|
id: "konnectio-event-listings-wrapper"
|
|
563
|
-
},
|
|
562
|
+
}, Vn = {
|
|
564
563
|
key: 0,
|
|
565
564
|
class: "konnectio-hotel-availability-title"
|
|
566
|
-
},
|
|
565
|
+
}, Tn = { class: "konnectio-event-listings" }, Nn = { class: "konnectio-hotel-availability-title" }, Fn = { class: "konnectio-event-listings" }, Ln = ["innerHTML"], Bn = { class: "konnectio-panel" }, Cn = {
|
|
567
566
|
key: 0,
|
|
568
567
|
id: "konnectio-event-addons"
|
|
569
|
-
},
|
|
568
|
+
}, Sn = { class: "konnectio-table with-lines" }, An = { class: "konnectio-event-addons-price" }, In = { class: "konnectio-event-addons-input" }, Rn = { class: "konnectio-event-addons-price" }, Mn = { class: "konnectio-event-addons-price" }, Un = {
|
|
570
569
|
key: 1,
|
|
571
570
|
class: "konnectio-table with-lines"
|
|
572
|
-
},
|
|
571
|
+
}, Gn = { class: "konnectio-table-addons-information" }, zn = { key: 0 }, qn = { class: "konnectio-table-addons-option" }, Hn = { class: "konnectio-panel" }, Yn = /* @__PURE__ */ q({
|
|
573
572
|
name: "EventLayout",
|
|
574
573
|
__name: "Event",
|
|
575
574
|
props: {
|
|
@@ -582,33 +581,33 @@ const Wt = {
|
|
|
582
581
|
},
|
|
583
582
|
setup(w) {
|
|
584
583
|
const n = w, { t: a } = ne(), {
|
|
585
|
-
addons:
|
|
584
|
+
addons: k,
|
|
586
585
|
products: p,
|
|
587
|
-
numberOfDays:
|
|
588
|
-
name:
|
|
589
|
-
phone:
|
|
590
|
-
email:
|
|
586
|
+
numberOfDays: f,
|
|
587
|
+
name: i,
|
|
588
|
+
phone: y,
|
|
589
|
+
email: h,
|
|
591
590
|
remark: s,
|
|
592
|
-
allergies:
|
|
591
|
+
allergies: O,
|
|
593
592
|
arrivalTime: D,
|
|
594
|
-
hasEvents:
|
|
593
|
+
hasEvents: N,
|
|
595
594
|
hasTemplates: b,
|
|
596
595
|
getEvents: S,
|
|
597
|
-
getTemplates:
|
|
596
|
+
getTemplates: _,
|
|
598
597
|
getEventData: P,
|
|
599
|
-
getTemplateData:
|
|
600
|
-
getEventTableData:
|
|
598
|
+
getTemplateData: g,
|
|
599
|
+
getEventTableData: F,
|
|
601
600
|
hasProducts: I,
|
|
602
601
|
eventRateType: ae,
|
|
603
|
-
areListingsAvailable:
|
|
602
|
+
areListingsAvailable: pe,
|
|
604
603
|
isAvailabilityDataAvailable: oe,
|
|
605
|
-
hasListingData:
|
|
604
|
+
hasListingData: ve,
|
|
606
605
|
isPaymentLoading: M,
|
|
607
606
|
isReservationFormFilled: le,
|
|
608
607
|
requiresArrivalTime: H,
|
|
609
608
|
hasSelectedRequiredProducts: K,
|
|
610
|
-
getUnavailableEvents:
|
|
611
|
-
} = Y(J()), { currency: se } = Y(ce()), { setActiveIdFilter: Ce } = ce(), { eventDate: Se, eventLocation: Ae } = Y(
|
|
609
|
+
getUnavailableEvents: be
|
|
610
|
+
} = Y(J()), { currency: se } = Y(ce()), { setActiveIdFilter: Ce } = ce(), { eventDate: Se, eventLocation: Ae } = Y(he()), { isValidRestaurantId: Ie } = he(), {
|
|
612
611
|
initialize: Re,
|
|
613
612
|
fetchListings: Me,
|
|
614
613
|
createBooking: Ue,
|
|
@@ -616,7 +615,7 @@ const Wt = {
|
|
|
616
615
|
totalAddonPrice: ze,
|
|
617
616
|
reset: qe,
|
|
618
617
|
goBack: $e
|
|
619
|
-
} = J(), { display:
|
|
618
|
+
} = J(), { display: fe } = Pe(), He = j(() => [
|
|
620
619
|
{
|
|
621
620
|
id: "availability",
|
|
622
621
|
label: a("booking.availability.title"),
|
|
@@ -643,45 +642,45 @@ const Wt = {
|
|
|
643
642
|
icon: "calendar-check"
|
|
644
643
|
}
|
|
645
644
|
]), Ye = j(() => {
|
|
646
|
-
const
|
|
647
|
-
return
|
|
648
|
-
|
|
649
|
-
label:
|
|
645
|
+
const E = [];
|
|
646
|
+
return F.value && F.value.forEach((d) => {
|
|
647
|
+
E.find((L) => L.value === d.time) || E.push({
|
|
648
|
+
label: me(d.time),
|
|
650
649
|
value: d.time
|
|
651
650
|
});
|
|
652
|
-
}),
|
|
651
|
+
}), E;
|
|
653
652
|
});
|
|
654
653
|
function je() {
|
|
655
654
|
qe(n.resetDate === "yes");
|
|
656
655
|
}
|
|
657
656
|
function We() {
|
|
658
|
-
const
|
|
657
|
+
const E = yt("history", {
|
|
659
658
|
removeNullishValues: !0
|
|
660
|
-
}), d = parseInt(
|
|
661
|
-
if (
|
|
662
|
-
if (ht(
|
|
663
|
-
const u = new Date(
|
|
664
|
-
A >= R ? (Se.value = u,
|
|
659
|
+
}), d = parseInt(E.rid), L = E.d, V = parseInt(E.eid);
|
|
660
|
+
if (L)
|
|
661
|
+
if (ht(L)) {
|
|
662
|
+
const u = new Date(L), A = u.setHours(12, 0, 0, 0), R = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
|
|
663
|
+
A >= R ? (Se.value = u, E.d = void 0) : fe({
|
|
665
664
|
message: a("alert.error.invalidDateRange"),
|
|
666
665
|
type: "error"
|
|
667
666
|
});
|
|
668
667
|
} else
|
|
669
|
-
|
|
668
|
+
fe({
|
|
670
669
|
message: a("alert.error.wrongDateFormat"),
|
|
671
670
|
type: "error"
|
|
672
671
|
});
|
|
673
|
-
isNaN(d) || (Ie(d) ? Ae.value = d : (
|
|
672
|
+
isNaN(d) || (Ie(d) ? Ae.value = d : (E.rid = void 0, fe({
|
|
674
673
|
message: a("alert.error.hotelIdNotFound"),
|
|
675
674
|
type: "error"
|
|
676
675
|
}))), isNaN(V) || Ce(V), Me();
|
|
677
676
|
}
|
|
678
|
-
return (
|
|
677
|
+
return (E, d) => (o(), $(kt, { styling: E.styling }, {
|
|
679
678
|
default: m(() => [
|
|
680
679
|
(o(), $(ot, { onResolve: We }, {
|
|
681
680
|
default: m(() => [
|
|
682
681
|
v($t, {
|
|
683
682
|
id: "konnectio-event-module",
|
|
684
|
-
"access-token":
|
|
683
|
+
"access-token": E.accessToken,
|
|
685
684
|
callback: e(Re)
|
|
686
685
|
}, {
|
|
687
686
|
default: m(() => [
|
|
@@ -689,18 +688,18 @@ const Wt = {
|
|
|
689
688
|
steps: He.value,
|
|
690
689
|
onReset: je
|
|
691
690
|
}, {
|
|
692
|
-
availability: m(({ next:
|
|
693
|
-
v(
|
|
691
|
+
availability: m(({ next: L }) => [
|
|
692
|
+
v(ye, null, {
|
|
694
693
|
sidebar: m(() => [
|
|
695
694
|
v(Gt, {
|
|
696
695
|
redirection: !1,
|
|
697
|
-
"selected-location": Number(
|
|
698
|
-
"hide-locations":
|
|
696
|
+
"selected-location": Number(E.selectedLocation),
|
|
697
|
+
"hide-locations": E.hideLocations === "yes"
|
|
699
698
|
}, null, 8, ["selected-location", "hide-locations"])
|
|
700
699
|
]),
|
|
701
700
|
form: m(() => [
|
|
702
|
-
e(
|
|
703
|
-
e(S).length > 0 && e(
|
|
701
|
+
e(ve) && e(pe) ? (o(), r("div", On, [
|
|
702
|
+
e(S).length > 0 && e(be).length > 0 ? (o(), r("h2", Vn, [
|
|
704
703
|
v(te, {
|
|
705
704
|
icon: "calendar-clock",
|
|
706
705
|
type: "fal",
|
|
@@ -708,22 +707,22 @@ const Wt = {
|
|
|
708
707
|
}),
|
|
709
708
|
t("span", null, l(e(a)("event.availableNow")), 1)
|
|
710
709
|
])) : c("", !0),
|
|
711
|
-
t("ul",
|
|
712
|
-
e(
|
|
710
|
+
t("ul", Tn, [
|
|
711
|
+
e(N) && E.onlyShow !== "templates" ? (o(!0), r(C, { key: 0 }, G(e(S), (V) => (o(), $(tn, {
|
|
713
712
|
name: V.name,
|
|
714
713
|
events: V.events,
|
|
715
|
-
callback:
|
|
714
|
+
callback: L
|
|
716
715
|
}, null, 8, ["name", "events", "callback"]))), 256)) : c("", !0),
|
|
717
|
-
e(b) &&
|
|
716
|
+
e(b) && E.onlyShow !== "events" ? (o(!0), r(C, { key: 1 }, G(e(_), ({
|
|
718
717
|
id: V,
|
|
719
718
|
name: u,
|
|
720
719
|
fromDate: A,
|
|
721
720
|
toDate: R,
|
|
722
|
-
minimumPersonCount:
|
|
723
|
-
fromPrice:
|
|
721
|
+
minimumPersonCount: T,
|
|
722
|
+
fromPrice: B,
|
|
724
723
|
description: X,
|
|
725
724
|
images: x
|
|
726
|
-
}) => (o(), $(
|
|
725
|
+
}) => (o(), $(dn, {
|
|
727
726
|
key: V,
|
|
728
727
|
"listing-id": V,
|
|
729
728
|
name: u,
|
|
@@ -731,13 +730,13 @@ const Wt = {
|
|
|
731
730
|
description: X,
|
|
732
731
|
"from-date": A,
|
|
733
732
|
"to-date": R,
|
|
734
|
-
"minimum-person-count":
|
|
735
|
-
fromPrice:
|
|
736
|
-
callback:
|
|
733
|
+
"minimum-person-count": T,
|
|
734
|
+
fromPrice: B,
|
|
735
|
+
callback: L
|
|
737
736
|
}, null, 8, ["listing-id", "name", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128)) : c("", !0)
|
|
738
737
|
]),
|
|
739
|
-
e(
|
|
740
|
-
t("h2",
|
|
738
|
+
e(be).length > 0 && E.onlyShow !== "templates" ? (o(), r(C, { key: 1 }, [
|
|
739
|
+
t("h2", Nn, [
|
|
741
740
|
v(te, {
|
|
742
741
|
icon: "calendar-circle-exclamation",
|
|
743
742
|
type: "fal",
|
|
@@ -745,73 +744,73 @@ const Wt = {
|
|
|
745
744
|
}),
|
|
746
745
|
t("span", null, l(e(a)("event.availableLater")), 1)
|
|
747
746
|
]),
|
|
748
|
-
t("ul",
|
|
749
|
-
(o(!0), r(C, null, G(e(
|
|
747
|
+
t("ul", Fn, [
|
|
748
|
+
(o(!0), r(C, null, G(e(be), ({
|
|
750
749
|
id: V,
|
|
751
750
|
days: u,
|
|
752
751
|
name: A,
|
|
753
752
|
timeFrom: R,
|
|
754
|
-
timeTo:
|
|
755
|
-
fromDate:
|
|
753
|
+
timeTo: T,
|
|
754
|
+
fromDate: B,
|
|
756
755
|
toDate: X,
|
|
757
756
|
tableGroupId: x,
|
|
758
|
-
description:
|
|
759
|
-
soldOut:
|
|
757
|
+
description: ge,
|
|
758
|
+
soldOut: ke,
|
|
760
759
|
length: ee,
|
|
761
760
|
images: Ze,
|
|
762
761
|
maxOnlineReservationLimit: Qe,
|
|
763
762
|
maxPaxPerReservation: Je,
|
|
764
763
|
useNumberOfProductsForPersons: Ke,
|
|
765
764
|
maxTicketsLimit: Xe
|
|
766
|
-
}) => (o(), $(
|
|
765
|
+
}) => (o(), $(un, {
|
|
767
766
|
key: V,
|
|
768
767
|
type: "event",
|
|
769
768
|
"listing-id": V,
|
|
770
769
|
"table-group-id": x,
|
|
771
|
-
description:
|
|
770
|
+
description: ge,
|
|
772
771
|
name: A,
|
|
773
772
|
length: ee,
|
|
774
773
|
gallery: Ze,
|
|
775
774
|
days: u,
|
|
776
|
-
"from-date":
|
|
775
|
+
"from-date": B,
|
|
777
776
|
"to-date": X,
|
|
778
777
|
"max-online-reservation-limit": Je || Qe || Xe,
|
|
779
778
|
"time-from": R,
|
|
780
|
-
"time-to":
|
|
781
|
-
"sold-out":
|
|
779
|
+
"time-to": T,
|
|
780
|
+
"sold-out": ke,
|
|
782
781
|
"use-number-of-products-for-persons": Ke,
|
|
783
|
-
callback:
|
|
782
|
+
callback: L
|
|
784
783
|
}, 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))
|
|
785
784
|
])
|
|
786
785
|
], 64)) : c("", !0),
|
|
787
|
-
!e(
|
|
786
|
+
!e(N) && !e(b) || !e(N) && E.onlyShow === "events" || !e(b) && E.onlyShow === "templates" ? (o(), r("div", {
|
|
788
787
|
key: 2,
|
|
789
788
|
class: "konnectio-panel",
|
|
790
789
|
innerHTML: e(a)("event.nothingAvailable")
|
|
791
|
-
}, null, 8,
|
|
792
|
-
])) : (o(), $(
|
|
790
|
+
}, null, 8, Ln)) : c("", !0)
|
|
791
|
+
])) : (o(), $(Le, { key: 1 }))
|
|
793
792
|
]),
|
|
794
793
|
_: 2
|
|
795
794
|
}, 1024)
|
|
796
795
|
]),
|
|
797
|
-
addons: m(({ next:
|
|
798
|
-
e(oe) ? (o(), $(
|
|
796
|
+
addons: m(({ next: L, prev: V }) => [
|
|
797
|
+
e(oe) ? (o(), $(ye, {
|
|
799
798
|
key: 0,
|
|
800
799
|
"prev-callback": () => e($e)(V)
|
|
801
800
|
}, {
|
|
802
801
|
form: m(() => [
|
|
803
|
-
t("form",
|
|
802
|
+
t("form", Bn, [
|
|
804
803
|
t("h2", null, [
|
|
805
804
|
t("span", null, l(e(a)("event.selectProducts")), 1)
|
|
806
805
|
]),
|
|
807
|
-
e(
|
|
808
|
-
(o(!0), r(C, null, G(e(
|
|
806
|
+
e(g) && e(g).length > 0 ? (o(), r("ul", Cn, [
|
|
807
|
+
(o(!0), r(C, null, G(e(g), ({
|
|
809
808
|
roomGroupId: u,
|
|
810
809
|
addons: A,
|
|
811
810
|
adultPerRoom: R
|
|
812
|
-
},
|
|
811
|
+
}, T) => (o(), r("li", { key: u }, [
|
|
813
812
|
t("h5", null, [
|
|
814
|
-
t("span", null, l(e(a)("booking.reservation.room")) + " #" + l(
|
|
813
|
+
t("span", null, l(e(a)("booking.reservation.room")) + " #" + l(T + 1), 1),
|
|
815
814
|
d[7] || (d[7] = ue(" (")),
|
|
816
815
|
v(te, {
|
|
817
816
|
icon: "male",
|
|
@@ -820,47 +819,47 @@ const Wt = {
|
|
|
820
819
|
}),
|
|
821
820
|
ue(" " + l(R) + ") ", 1)
|
|
822
821
|
]),
|
|
823
|
-
t("table",
|
|
822
|
+
t("table", Sn, [
|
|
824
823
|
t("thead", null, [
|
|
825
824
|
t("tr", null, [
|
|
826
825
|
t("th", null, [
|
|
827
826
|
t("span", null, l(e(a)("booking.reservation.addons")), 1)
|
|
828
827
|
]),
|
|
829
828
|
d[8] || (d[8] = t("th", { class: "konnectio-event-addons-input" }, null, -1)),
|
|
830
|
-
t("th",
|
|
829
|
+
t("th", An, [
|
|
831
830
|
t("span", null, l(e(a)("booking.availability.price")), 1)
|
|
832
831
|
])
|
|
833
832
|
])
|
|
834
833
|
]),
|
|
835
834
|
t("tbody", null, [
|
|
836
835
|
(o(!0), r(C, null, G(A, ({
|
|
837
|
-
id:
|
|
836
|
+
id: B,
|
|
838
837
|
cardinality: X,
|
|
839
838
|
name: x,
|
|
840
|
-
price:
|
|
841
|
-
quantityStrategy:
|
|
842
|
-
}) => (o(), r("tr", { key:
|
|
839
|
+
price: ge,
|
|
840
|
+
quantityStrategy: ke
|
|
841
|
+
}) => (o(), r("tr", { key: B }, [
|
|
843
842
|
t("td", null, [
|
|
844
843
|
t("b", null, l(x), 1),
|
|
845
844
|
d[9] || (d[9] = t("br", null, null, -1)),
|
|
846
|
-
t("span", null, l(e(Z)(
|
|
845
|
+
t("span", null, l(e(Z)(ge, e(se))) + " " + l(e(gt)(ke)), 1)
|
|
847
846
|
]),
|
|
848
|
-
t("td",
|
|
847
|
+
t("td", In, [
|
|
849
848
|
X === 3 ? (o(), $(re, {
|
|
850
849
|
key: 0,
|
|
851
|
-
modelValue: e(
|
|
852
|
-
"onUpdate:modelValue": (ee) => e(
|
|
850
|
+
modelValue: e(k)[`${u}.${B}.${T}`],
|
|
851
|
+
"onUpdate:modelValue": (ee) => e(k)[`${u}.${B}.${T}`] = ee,
|
|
853
852
|
small: !0,
|
|
854
853
|
"min-value": 0
|
|
855
854
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (o(), $(Ut, {
|
|
856
855
|
key: 1,
|
|
857
|
-
modelValue: e(
|
|
858
|
-
"onUpdate:modelValue": (ee) => e(
|
|
856
|
+
modelValue: e(k)[`${u}.${B}.${T}`],
|
|
857
|
+
"onUpdate:modelValue": (ee) => e(k)[`${u}.${B}.${T}`] = ee,
|
|
859
858
|
numeric: !0
|
|
860
859
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
861
860
|
]),
|
|
862
|
-
t("td",
|
|
863
|
-
t("span", null, l(e(Z)(e(Ge)(
|
|
861
|
+
t("td", Rn, [
|
|
862
|
+
t("span", null, l(e(Z)(e(Ge)(B, u, T), e(se))), 1)
|
|
864
863
|
])
|
|
865
864
|
]))), 128))
|
|
866
865
|
]),
|
|
@@ -868,9 +867,9 @@ const Wt = {
|
|
|
868
867
|
t("tr", null, [
|
|
869
868
|
d[10] || (d[10] = t("td", null, null, -1)),
|
|
870
869
|
d[11] || (d[11] = t("td", null, null, -1)),
|
|
871
|
-
t("td",
|
|
870
|
+
t("td", Mn, [
|
|
872
871
|
t("u", null, [
|
|
873
|
-
t("span", null, l(e(Z)(e(ze)(u,
|
|
872
|
+
t("span", null, l(e(Z)(e(ze)(u, T), e(se))), 1)
|
|
874
873
|
])
|
|
875
874
|
])
|
|
876
875
|
])
|
|
@@ -878,20 +877,20 @@ const Wt = {
|
|
|
878
877
|
])
|
|
879
878
|
]))), 128))
|
|
880
879
|
])) : c("", !0),
|
|
881
|
-
e(I) ? (o(), r("table",
|
|
880
|
+
e(I) ? (o(), r("table", Un, [
|
|
882
881
|
t("tbody", null, [
|
|
883
|
-
(o(!0), r(C, null, G(e(P).products, ({ id: u, name: A, price: R, description:
|
|
884
|
-
t("td",
|
|
882
|
+
(o(!0), r(C, null, G(e(P).products, ({ id: u, name: A, price: R, description: T }) => (o(), r("tr", { key: u }, [
|
|
883
|
+
t("td", Gn, [
|
|
885
884
|
t("b", null, [
|
|
886
885
|
t("span", null, l(e(we)(A)), 1)
|
|
887
886
|
]),
|
|
888
|
-
|
|
887
|
+
T && T !== A ? (o(), r("span", zn, l(e(we)(T)), 1)) : c("", !0),
|
|
889
888
|
t("u", null, l(e(Z)(R, e(se))), 1)
|
|
890
889
|
]),
|
|
891
|
-
t("td",
|
|
890
|
+
t("td", qn, [
|
|
892
891
|
v(re, {
|
|
893
892
|
modelValue: e(p)[u],
|
|
894
|
-
"onUpdate:modelValue": (
|
|
893
|
+
"onUpdate:modelValue": (B) => e(p)[u] = B,
|
|
895
894
|
small: !0,
|
|
896
895
|
"min-value": 0
|
|
897
896
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -906,26 +905,26 @@ const Wt = {
|
|
|
906
905
|
label: e(a)("event.startReservation"),
|
|
907
906
|
disabled: !e(K),
|
|
908
907
|
"full-width": "",
|
|
909
|
-
onClickEvent:
|
|
908
|
+
onClickEvent: L
|
|
910
909
|
}, null, 8, ["label", "disabled", "onClickEvent"])
|
|
911
910
|
]),
|
|
912
911
|
_: 2
|
|
913
912
|
}, 1032, ["prev-callback"])) : c("", !0)
|
|
914
913
|
]),
|
|
915
|
-
reservation: m(({ next:
|
|
916
|
-
v(
|
|
914
|
+
reservation: m(({ next: L, prev: V }) => [
|
|
915
|
+
v(ye, {
|
|
917
916
|
"show-terms-notice": !0,
|
|
918
917
|
"show-gift-card": !0,
|
|
919
918
|
"prev-callback": () => e($e)(V)
|
|
920
919
|
}, {
|
|
921
920
|
form: m(() => [
|
|
922
|
-
t("form",
|
|
921
|
+
t("form", Hn, [
|
|
923
922
|
t("h2", null, [
|
|
924
923
|
t("span", null, l(e(a)("booking.reservation.detailsTitle")), 1)
|
|
925
924
|
]),
|
|
926
925
|
v(ie, {
|
|
927
|
-
modelValue: e(
|
|
928
|
-
"onUpdate:modelValue": d[0] || (d[0] = (u) => U(
|
|
926
|
+
modelValue: e(i),
|
|
927
|
+
"onUpdate:modelValue": d[0] || (d[0] = (u) => U(i) ? i.value = u : null),
|
|
929
928
|
type: "text",
|
|
930
929
|
label: e(a)("booking.reservation.name"),
|
|
931
930
|
icon: "user-alt",
|
|
@@ -933,8 +932,8 @@ const Wt = {
|
|
|
933
932
|
required: ""
|
|
934
933
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
935
934
|
v(ie, {
|
|
936
|
-
modelValue: e(
|
|
937
|
-
"onUpdate:modelValue": d[1] || (d[1] = (u) => U(
|
|
935
|
+
modelValue: e(h),
|
|
936
|
+
"onUpdate:modelValue": d[1] || (d[1] = (u) => U(h) ? h.value = u : null),
|
|
938
937
|
label: e(a)("booking.reservation.email"),
|
|
939
938
|
type: "email",
|
|
940
939
|
name: "email",
|
|
@@ -944,14 +943,14 @@ const Wt = {
|
|
|
944
943
|
required: ""
|
|
945
944
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
946
945
|
v(Mt, {
|
|
947
|
-
modelValue: e(
|
|
948
|
-
"onUpdate:modelValue": d[2] || (d[2] = (u) => U(
|
|
946
|
+
modelValue: e(y),
|
|
947
|
+
"onUpdate:modelValue": d[2] || (d[2] = (u) => U(y) ? y.value = u : null),
|
|
949
948
|
label: e(a)("booking.reservation.phone"),
|
|
950
949
|
icon: "phone-office",
|
|
951
950
|
placeholder: e(a)("booking.reservation.phonePlaceholder"),
|
|
952
951
|
required: ""
|
|
953
952
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
954
|
-
e(H) ? (o(), $(
|
|
953
|
+
e(H) ? (o(), $(Nt, {
|
|
955
954
|
key: 0,
|
|
956
955
|
modelValue: e(D),
|
|
957
956
|
"onUpdate:modelValue": d[3] || (d[3] = (u) => U(D) ? D.value = u : null),
|
|
@@ -962,8 +961,8 @@ const Wt = {
|
|
|
962
961
|
}, null, 8, ["modelValue", "label", "checkboxes"])) : c("", !0),
|
|
963
962
|
e(ae) === e(ft).FullDayEvent ? (o(), $(re, {
|
|
964
963
|
key: 1,
|
|
965
|
-
modelValue: e(
|
|
966
|
-
"onUpdate:modelValue": d[4] || (d[4] = (u) => U(
|
|
964
|
+
modelValue: e(f),
|
|
965
|
+
"onUpdate:modelValue": d[4] || (d[4] = (u) => U(f) ? f.value = u : null),
|
|
967
966
|
label: e(a)("event.numberOfDays"),
|
|
968
967
|
"min-value": 1,
|
|
969
968
|
required: ""
|
|
@@ -977,8 +976,8 @@ const Wt = {
|
|
|
977
976
|
placeholder: e(a)("booking.reservation.remarkPlaceholder")
|
|
978
977
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
979
978
|
v(ie, {
|
|
980
|
-
modelValue: e(
|
|
981
|
-
"onUpdate:modelValue": d[6] || (d[6] = (u) => U(
|
|
979
|
+
modelValue: e(O),
|
|
980
|
+
"onUpdate:modelValue": d[6] || (d[6] = (u) => U(O) ? O.value = u : null),
|
|
982
981
|
type: "textarea",
|
|
983
982
|
label: `${e(a)("booking.reservation.allergies")} (${e(a)("booking.reservation.optional")})`,
|
|
984
983
|
icon: "allergies",
|
|
@@ -992,7 +991,7 @@ const Wt = {
|
|
|
992
991
|
"is-loading": e(M),
|
|
993
992
|
disabled: !e(le),
|
|
994
993
|
"full-width": "",
|
|
995
|
-
onClickEvent: (u) => e(Ue)(
|
|
994
|
+
onClickEvent: (u) => e(Ue)(L)
|
|
996
995
|
}, null, 8, ["label", "is-loading", "disabled", "onClickEvent"])
|
|
997
996
|
]),
|
|
998
997
|
_: 2
|
|
@@ -1002,7 +1001,7 @@ const Wt = {
|
|
|
1002
1001
|
v(Rt)
|
|
1003
1002
|
]),
|
|
1004
1003
|
confirmation: m(() => [
|
|
1005
|
-
v(
|
|
1004
|
+
v(Tt, {
|
|
1006
1005
|
message: e(a)("event.confirmationMessage")
|
|
1007
1006
|
}, null, 8, ["message"])
|
|
1008
1007
|
]),
|
|
@@ -1013,7 +1012,7 @@ const Wt = {
|
|
|
1013
1012
|
}, 8, ["access-token", "callback"])
|
|
1014
1013
|
]),
|
|
1015
1014
|
fallback: m(() => [
|
|
1016
|
-
v(
|
|
1015
|
+
v(En)
|
|
1017
1016
|
]),
|
|
1018
1017
|
_: 1
|
|
1019
1018
|
}))
|
|
@@ -1021,8 +1020,8 @@ const Wt = {
|
|
|
1021
1020
|
_: 1
|
|
1022
1021
|
}, 8, ["styling"]));
|
|
1023
1022
|
}
|
|
1024
|
-
}),
|
|
1025
|
-
class
|
|
1023
|
+
}), Ne = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-8e82dc21"]]), jn = lt(), Wn = st, Zn = Wn();
|
|
1024
|
+
class Qn extends HTMLElement {
|
|
1026
1025
|
vueApp;
|
|
1027
1026
|
constructor() {
|
|
1028
1027
|
super();
|
|
@@ -1031,14 +1030,14 @@ class Wn extends HTMLElement {
|
|
|
1031
1030
|
this.vueApp.unmount();
|
|
1032
1031
|
}
|
|
1033
1032
|
connectedCallback() {
|
|
1034
|
-
const n = it(
|
|
1035
|
-
this.vueApp = rt(
|
|
1033
|
+
const n = it(Ne, this.attributes);
|
|
1034
|
+
this.vueApp = rt(Ne, n), this.vueApp.provide("emitter", Zn), this.vueApp.use(ut), this.vueApp.use(jn), this.vueApp.use(Ft), this.vueApp.use(Pt), this.vueApp.use(Lt), this.vueApp.use(Dt, { bootstrap: !0 });
|
|
1036
1035
|
const a = document.createElement("div");
|
|
1037
1036
|
this.vueApp.mount(a), this.appendChild(a.children[0]);
|
|
1038
1037
|
}
|
|
1039
1038
|
}
|
|
1040
|
-
window.customElements.define("konnectio-event",
|
|
1039
|
+
window.customElements.define("konnectio-event", Qn);
|
|
1041
1040
|
export {
|
|
1042
|
-
|
|
1041
|
+
Qn as default
|
|
1043
1042
|
};
|
|
1044
1043
|
//# sourceMappingURL=event.js.map
|