@konnectio/core 4.1.27 → 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-DgmchlH1.js → ActionField-BrnUJ7fu.js} +2 -2
- package/dist/ActionField-BrnUJ7fu.js.br +0 -0
- package/dist/{AvailabilitySkeleton-Cb1mXip0.js → AvailabilitySkeleton-DZl2mDWU.js} +5 -5
- package/dist/AvailabilitySkeleton-DZl2mDWU.js.br +0 -0
- package/dist/{CheckoutWindow-faqSlYg7.js → CheckoutWindow-CI5l3M2a.js} +2 -2
- package/dist/CheckoutWindow-CI5l3M2a.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-CsHaOHl-.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-BLRv3QIb.js → ErrorMessage-CocZruMr.js} +2 -2
- package/dist/ErrorMessage-CocZruMr.js.br +0 -0
- package/dist/{EventAvailabilityForm-BQDBjpCr.js → EventAvailabilityForm-CbONbGu2.js} +3 -3
- package/dist/EventAvailabilityForm-CbONbGu2.js.br +0 -0
- package/dist/{Field-DaO8VHZ_.js → Field-35GXbUoS.js} +3 -3
- package/dist/Field-35GXbUoS.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-C9ofPbO5.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-2IXnGpmG.js → TermsOfService-5O88A7a9.js} +3 -3
- package/dist/_-B3PYo4FF.js +5 -0
- package/dist/{_-Dn0RYBro.js → _-Bm0qmA2Z.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-zBkQ6C_3.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 +225 -222
- 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-DNVqygWX.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-DXn9h4DT.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-DgmchlH1.js.br +0 -0
- package/dist/AvailabilitySkeleton-Cb1mXip0.js.br +0 -0
- package/dist/CheckoutWindow-faqSlYg7.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-CsHaOHl-.js.br +0 -0
- package/dist/ErrorMessage-BLRv3QIb.js.br +0 -0
- package/dist/EventAvailabilityForm-BQDBjpCr.js.br +0 -0
- package/dist/Field-DaO8VHZ_.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-C9ofPbO5.js.br +0 -0
- package/dist/_-Ca4yBxqD.js +0 -5
- package/dist/giftCard-DNVqygWX.js.br +0 -0
- package/dist/masonry.plugin-DXn9h4DT.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 _t, R as Et, L 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:
|
|
21
|
+
comparison: f
|
|
22
22
|
}), [y, h] = At(
|
|
23
23
|
a?.in,
|
|
24
|
-
...
|
|
25
|
-
), s = zt("round"), O = h.getTime() - y.getTime(), D = O /
|
|
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
26
|
let _;
|
|
27
27
|
if (D < 1 ? _ = "second" : D < 60 ? _ = "minute" : D < Ee ? _ = "hour" : b < Oe ? _ = "day" : b < Ve ? _ = "month" : _ = "year", _ === "second") {
|
|
28
28
|
const P = s(O / 1e3);
|
|
29
|
-
return p.formatDistance("xSeconds", P,
|
|
29
|
+
return p.formatDistance("xSeconds", P, i);
|
|
30
30
|
} else if (_ === "minute") {
|
|
31
31
|
const P = s(D);
|
|
32
|
-
return p.formatDistance("xMinutes", P,
|
|
32
|
+
return p.formatDistance("xMinutes", P, i);
|
|
33
33
|
} else if (_ === "hour") {
|
|
34
34
|
const P = s(D / 60);
|
|
35
|
-
return p.formatDistance("xHours", P,
|
|
35
|
+
return p.formatDistance("xHours", P, i);
|
|
36
36
|
} else if (_ === "day") {
|
|
37
37
|
const P = s(b / Ee);
|
|
38
|
-
return p.formatDistance("xDays", P,
|
|
38
|
+
return p.formatDistance("xDays", P, i);
|
|
39
39
|
} else if (_ === "month") {
|
|
40
40
|
const P = s(b / Oe);
|
|
41
|
-
return P === 12 && S !== "month" ? p.formatDistance("xYears", 1,
|
|
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:
|
|
74
|
+
numberOfPeople: f,
|
|
75
|
+
eventId: i,
|
|
76
76
|
currentEventDate: y,
|
|
77
77
|
tableGroupId: h
|
|
78
78
|
} = Y(J()), {
|
|
79
79
|
getTemplateAvailability: s,
|
|
80
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
141
|
"sub-label": e(z)(e(y)),
|
|
142
|
-
onClickEvent:
|
|
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,
|
|
@@ -203,7 +206,7 @@ const Wt = {
|
|
|
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,10 +234,10 @@ 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: {},
|
|
@@ -242,41 +245,41 @@ const Wt = {
|
|
|
242
245
|
callback: { type: Function }
|
|
243
246
|
},
|
|
244
247
|
setup(w) {
|
|
245
|
-
return (n, a) => n.events && n.events.length > 1 ? (o(), r("div",
|
|
248
|
+
return (n, a) => n.events && n.events.length > 1 ? (o(), r("div", Xt, [
|
|
246
249
|
c("", !0),
|
|
247
|
-
t("ul",
|
|
250
|
+
t("ul", xt, [
|
|
248
251
|
(o(!0), r(C, null, G(n.events, ({
|
|
249
|
-
id:
|
|
252
|
+
id: k,
|
|
250
253
|
days: p,
|
|
251
|
-
name:
|
|
252
|
-
timeFrom:
|
|
254
|
+
name: f,
|
|
255
|
+
timeFrom: i,
|
|
253
256
|
timeTo: y,
|
|
254
257
|
fromDate: h,
|
|
255
258
|
toDate: s,
|
|
256
259
|
tableGroupId: O,
|
|
257
260
|
description: D,
|
|
258
|
-
soldOut:
|
|
261
|
+
soldOut: N,
|
|
259
262
|
length: b,
|
|
260
263
|
images: S,
|
|
261
264
|
maxOnlineReservationLimit: _,
|
|
262
265
|
maxPaxPerReservation: P,
|
|
263
|
-
useNumberOfProductsForPersons:
|
|
264
|
-
maxTicketsLimit:
|
|
266
|
+
useNumberOfProductsForPersons: g,
|
|
267
|
+
maxTicketsLimit: F
|
|
265
268
|
}) => (o(), $(De, {
|
|
266
|
-
key:
|
|
269
|
+
key: k,
|
|
267
270
|
type: "event",
|
|
268
|
-
"listing-id":
|
|
271
|
+
"listing-id": k,
|
|
269
272
|
"table-group-id": O,
|
|
270
273
|
description: D,
|
|
271
|
-
name:
|
|
274
|
+
name: f,
|
|
272
275
|
length: b,
|
|
273
276
|
gallery: S,
|
|
274
277
|
days: p,
|
|
275
|
-
"max-online-reservation-limit": P || _ ||
|
|
276
|
-
"time-from":
|
|
278
|
+
"max-online-reservation-limit": P || _ || F,
|
|
279
|
+
"time-from": i,
|
|
277
280
|
"time-to": y,
|
|
278
|
-
"sold-out":
|
|
279
|
-
"use-number-of-products-for-persons":
|
|
281
|
+
"sold-out": N,
|
|
282
|
+
"use-number-of-products-for-persons": g,
|
|
280
283
|
callback: n.callback
|
|
281
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))
|
|
282
285
|
])
|
|
@@ -300,7 +303,7 @@ const Wt = {
|
|
|
300
303
|
callback: n.callback
|
|
301
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);
|
|
302
305
|
}
|
|
303
|
-
}),
|
|
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({
|
|
304
307
|
__name: "NextEvent",
|
|
305
308
|
props: {
|
|
306
309
|
name: {},
|
|
@@ -322,16 +325,16 @@ const Wt = {
|
|
|
322
325
|
callback: { type: Function }
|
|
323
326
|
},
|
|
324
327
|
setup(w) {
|
|
325
|
-
const { t: n } = ne(), { updateEventDate: a } =
|
|
326
|
-
function
|
|
327
|
-
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({
|
|
328
331
|
message: n("alert.error.selectDate"),
|
|
329
332
|
type: "error"
|
|
330
333
|
});
|
|
331
334
|
}
|
|
332
|
-
const y = j(() => pt(
|
|
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)));
|
|
333
336
|
return et(() => {
|
|
334
|
-
y.value && (p.value = new Date(
|
|
337
|
+
y.value && (p.value = new Date(f.fromDate));
|
|
335
338
|
}), (s, O) => (o(), $(De, {
|
|
336
339
|
name: s.name,
|
|
337
340
|
description: s.description,
|
|
@@ -354,7 +357,7 @@ const Wt = {
|
|
|
354
357
|
}, {
|
|
355
358
|
action: m(() => [
|
|
356
359
|
t("div", null, [
|
|
357
|
-
t("div",
|
|
360
|
+
t("div", nn, [
|
|
358
361
|
v(It, {
|
|
359
362
|
modelValue: p.value,
|
|
360
363
|
"onUpdate:modelValue": O[0] || (O[0] = (D) => p.value = D),
|
|
@@ -368,18 +371,18 @@ const Wt = {
|
|
|
368
371
|
"max-date": new Date(s.toDate),
|
|
369
372
|
"disabled-week-days": h.value
|
|
370
373
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly", "start-date", "min-date", "max-date", "disabled-week-days"]),
|
|
371
|
-
t("div",
|
|
374
|
+
t("div", an, [
|
|
372
375
|
v(de, {
|
|
373
376
|
label: e(n)("availability.buttonLabel"),
|
|
374
|
-
onClick: tt(
|
|
377
|
+
onClick: tt(i, ["prevent"])
|
|
375
378
|
}, null, 8, ["label"])
|
|
376
379
|
])
|
|
377
380
|
]),
|
|
378
|
-
t("div",
|
|
379
|
-
y.value ? (o(), r("span",
|
|
381
|
+
t("div", on, [
|
|
382
|
+
y.value ? (o(), r("span", ln, [
|
|
380
383
|
ue("*" + l(e(n)("event.canBeBooked")) + " ", 1),
|
|
381
384
|
t("u", null, l(e(z)(s.fromDate)), 1)
|
|
382
|
-
])) : (o(), r("span",
|
|
385
|
+
])) : (o(), r("span", sn, [
|
|
383
386
|
ue("*" + l(e(n)("event.canBeBooked")) + " ", 1),
|
|
384
387
|
t("u", null, l(e(bt)(s.days)), 1)
|
|
385
388
|
]))
|
|
@@ -389,7 +392,7 @@ const Wt = {
|
|
|
389
392
|
_: 1
|
|
390
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"]));
|
|
391
394
|
}
|
|
392
|
-
}),
|
|
395
|
+
}), un = /* @__PURE__ */ W(rn, [["__scopeId", "data-v-f6aed3b0"]]), dn = /* @__PURE__ */ q({
|
|
393
396
|
__name: "Template",
|
|
394
397
|
props: {
|
|
395
398
|
name: {},
|
|
@@ -406,7 +409,7 @@ const Wt = {
|
|
|
406
409
|
callback: {}
|
|
407
410
|
},
|
|
408
411
|
setup(w) {
|
|
409
|
-
return (n, a) => (o(), $(
|
|
412
|
+
return (n, a) => (o(), $(Be, {
|
|
410
413
|
"listing-id": n.listingId,
|
|
411
414
|
gallery: n.images,
|
|
412
415
|
name: n.name,
|
|
@@ -417,10 +420,10 @@ const Wt = {
|
|
|
417
420
|
callback: n.callback
|
|
418
421
|
}, null, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
|
|
419
422
|
}
|
|
420
|
-
}),
|
|
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 = {
|
|
421
424
|
key: 0,
|
|
422
425
|
class: "konnectio-capitalize"
|
|
423
|
-
},
|
|
426
|
+
}, Dn = /* @__PURE__ */ q({
|
|
424
427
|
__name: "EventReservationForm",
|
|
425
428
|
props: {
|
|
426
429
|
showGiftCard: { type: Boolean, default: !1 },
|
|
@@ -429,35 +432,35 @@ const Wt = {
|
|
|
429
432
|
},
|
|
430
433
|
setup(w) {
|
|
431
434
|
const { t: n } = ne(), a = nt(), {
|
|
432
|
-
areListingsAvailable:
|
|
435
|
+
areListingsAvailable: k,
|
|
433
436
|
arrivalTime: p,
|
|
434
|
-
numberOfPeople:
|
|
435
|
-
numberOfRooms:
|
|
437
|
+
numberOfPeople: f,
|
|
438
|
+
numberOfRooms: i,
|
|
436
439
|
numberOfTotalDays: y,
|
|
437
440
|
isTemplateEvent: h,
|
|
438
441
|
currentEventDate: s,
|
|
439
442
|
length: O,
|
|
440
443
|
fromDate: D,
|
|
441
|
-
tableBasePrice:
|
|
444
|
+
tableBasePrice: N,
|
|
442
445
|
getTemplateData: b,
|
|
443
446
|
basePrice: S,
|
|
444
447
|
totalPrice: _,
|
|
445
448
|
weekendFee: P,
|
|
446
|
-
roomUpgrade:
|
|
447
|
-
discountCode:
|
|
449
|
+
roomUpgrade: g,
|
|
450
|
+
discountCode: F,
|
|
448
451
|
totalSelectedProducts: I
|
|
449
|
-
} = Y(J()), { totalAddonPrice: ae, validateDiscountCode:
|
|
452
|
+
} = Y(J()), { totalAddonPrice: ae, validateDiscountCode: pe } = J(), { currency: oe, hideEventLength: ve } = Y(ce());
|
|
450
453
|
return (M, le) => (o(), $(Et, {
|
|
451
|
-
"discount-code": e(
|
|
452
|
-
"onUpdate:discountCode": le[0] || (le[0] = (H) => U(
|
|
453
|
-
"validate-discount-code": e(
|
|
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),
|
|
454
457
|
"show-gift-card": M.showGiftCard,
|
|
455
458
|
"show-terms-notice": M.showTermsNotice,
|
|
456
|
-
"is-sidebar-loading": !e(
|
|
459
|
+
"is-sidebar-loading": !e(k),
|
|
457
460
|
"base-price": e(S),
|
|
458
461
|
"total-price": e(_),
|
|
459
462
|
"weekend-fee": e(P),
|
|
460
|
-
"room-upgrade": e(
|
|
463
|
+
"room-upgrade": e(g),
|
|
461
464
|
notice: e(n)("event.reservationNotice"),
|
|
462
465
|
"prev-callback": M.prevCallback
|
|
463
466
|
}, at({
|
|
@@ -465,15 +468,15 @@ const Wt = {
|
|
|
465
468
|
Q(M.$slots, "form", {}, void 0, !0)
|
|
466
469
|
]),
|
|
467
470
|
"reservation-summary": m(() => [
|
|
468
|
-
e(h) ? c("", !0) : (o(), r("li",
|
|
471
|
+
e(h) ? c("", !0) : (o(), r("li", cn, [
|
|
469
472
|
t("span", null, l(e(n)("general.date")), 1),
|
|
470
473
|
t("b", null, l(e(z)(e(s))), 1)
|
|
471
474
|
])),
|
|
472
|
-
e(
|
|
475
|
+
e(f) > 0 ? (o(), r("li", mn, [
|
|
473
476
|
t("span", null, l(e(n)("event.numberOfGuests")), 1),
|
|
474
|
-
t("b", null, l(e(
|
|
477
|
+
t("b", null, l(e(f)), 1)
|
|
475
478
|
])) : c("", !0),
|
|
476
|
-
!e(h) && e(I) > 0 ? (o(), r("li",
|
|
479
|
+
!e(h) && e(I) > 0 ? (o(), r("li", pn, [
|
|
477
480
|
t("span", null, l(e(n)("event.numberOfProducts")), 1),
|
|
478
481
|
t("b", null, l(e(I)), 1)
|
|
479
482
|
])) : c("", !0),
|
|
@@ -488,26 +491,26 @@ const Wt = {
|
|
|
488
491
|
]),
|
|
489
492
|
t("li", null, [
|
|
490
493
|
t("span", null, l(e(n)("event.numberOfRooms")), 1),
|
|
491
|
-
t("b", null, l(e(
|
|
494
|
+
t("b", null, l(e(i)), 1)
|
|
492
495
|
]),
|
|
493
|
-
e(y) > 0 ? (o(), r("li",
|
|
496
|
+
e(y) > 0 ? (o(), r("li", vn, [
|
|
494
497
|
t("span", null, l(e(n)("event.numberOfDays")), 1),
|
|
495
498
|
t("b", null, l(e(y)), 1)
|
|
496
499
|
])) : c("", !0)
|
|
497
500
|
], 64)) : c("", !0),
|
|
498
|
-
!e(h) && e(p) ? (o(), r("li",
|
|
501
|
+
!e(h) && e(p) ? (o(), r("li", bn, [
|
|
499
502
|
t("span", null, l(e(n)("event.startOfEvent")), 1),
|
|
500
|
-
t("b", null, l(e(
|
|
503
|
+
t("b", null, l(e(me)(e(p))), 1)
|
|
501
504
|
])) : c("", !0),
|
|
502
|
-
!e(h) && e(O) && !e(
|
|
505
|
+
!e(h) && e(O) && !e(ve) ? (o(), r("li", fn, [
|
|
503
506
|
t("span", null, l(e(n)("event.lengthOfEvent")), 1),
|
|
504
|
-
t("b", null, l(e(
|
|
507
|
+
t("b", null, l(e(me)(e(O))), 1)
|
|
505
508
|
])) : c("", !0)
|
|
506
509
|
]),
|
|
507
510
|
"price-summary": m(() => [
|
|
508
|
-
!e(h) && e(
|
|
511
|
+
!e(h) && e(N) > 0 ? (o(), r("li", gn, [
|
|
509
512
|
t("span", null, l(e(n)("booking.availability.basePrice")), 1),
|
|
510
|
-
t("b", null, l(e(Z)(e(
|
|
513
|
+
t("b", null, l(e(Z)(e(N), e(oe))), 1)
|
|
511
514
|
])) : c("", !0),
|
|
512
515
|
e(b) ? (o(!0), r(C, { key: 1 }, G(e(b), ({ roomGroupId: H }, K) => (o(), r(C, null, [
|
|
513
516
|
e(ae)(H, K) > 0 ? (o(), r("li", { key: H }, [
|
|
@@ -520,14 +523,14 @@ const Wt = {
|
|
|
520
523
|
Q(M.$slots, "navigation", {}, void 0, !0)
|
|
521
524
|
]),
|
|
522
525
|
"mobile-under-price": m(() => [
|
|
523
|
-
e(h) && e(y) > 0 ? (o(), r("div",
|
|
526
|
+
e(h) && e(y) > 0 ? (o(), r("div", kn, [
|
|
524
527
|
t("span", null, l(e(z)(e(D))) + " - " + l(e(z)(e(D), e(y))), 1)
|
|
525
|
-
])) : (o(), r("div",
|
|
528
|
+
])) : (o(), r("div", yn, [
|
|
526
529
|
t("span", null, l(e(z)(e(s))), 1)
|
|
527
530
|
]))
|
|
528
531
|
]),
|
|
529
532
|
"mobile-summary": m(() => [
|
|
530
|
-
!e(h) && e(I) > 0 ? (o(), r("span",
|
|
533
|
+
!e(h) && e(I) > 0 ? (o(), r("span", hn, l(e(n)("event.numberOfProducts")) + ": " + l(e(I)), 1)) : c("", !0)
|
|
531
534
|
]),
|
|
532
535
|
_: 2
|
|
533
536
|
}, [
|
|
@@ -540,32 +543,32 @@ const Wt = {
|
|
|
540
543
|
} : void 0
|
|
541
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"]));
|
|
542
545
|
}
|
|
543
|
-
}),
|
|
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({
|
|
544
547
|
__name: "EventSkeleton",
|
|
545
548
|
setup(w) {
|
|
546
|
-
return (n, a) => (o(), r("div",
|
|
547
|
-
t("div",
|
|
548
|
-
v(
|
|
549
|
+
return (n, a) => (o(), r("div", Pn, [
|
|
550
|
+
t("div", $n, [
|
|
551
|
+
v(Le)
|
|
549
552
|
]),
|
|
550
|
-
t("div",
|
|
553
|
+
t("div", wn, [
|
|
551
554
|
c("", !0),
|
|
552
555
|
v(Ot)
|
|
553
556
|
])
|
|
554
557
|
]));
|
|
555
558
|
}
|
|
556
|
-
}),
|
|
559
|
+
}), En = /* @__PURE__ */ W(_n, [["__scopeId", "data-v-3e15c4e3"]]), On = {
|
|
557
560
|
key: 0,
|
|
558
561
|
id: "konnectio-event-listings-wrapper"
|
|
559
|
-
},
|
|
562
|
+
}, Vn = {
|
|
560
563
|
key: 0,
|
|
561
564
|
class: "konnectio-hotel-availability-title"
|
|
562
|
-
},
|
|
565
|
+
}, Tn = { class: "konnectio-event-listings" }, Nn = { class: "konnectio-hotel-availability-title" }, Fn = { class: "konnectio-event-listings" }, Ln = ["innerHTML"], Bn = { class: "konnectio-panel" }, Cn = {
|
|
563
566
|
key: 0,
|
|
564
567
|
id: "konnectio-event-addons"
|
|
565
|
-
},
|
|
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 = {
|
|
566
569
|
key: 1,
|
|
567
570
|
class: "konnectio-table with-lines"
|
|
568
|
-
},
|
|
571
|
+
}, Gn = { class: "konnectio-table-addons-information" }, zn = { key: 0 }, qn = { class: "konnectio-table-addons-option" }, Hn = { class: "konnectio-panel" }, Yn = /* @__PURE__ */ q({
|
|
569
572
|
name: "EventLayout",
|
|
570
573
|
__name: "Event",
|
|
571
574
|
props: {
|
|
@@ -578,33 +581,33 @@ const Wt = {
|
|
|
578
581
|
},
|
|
579
582
|
setup(w) {
|
|
580
583
|
const n = w, { t: a } = ne(), {
|
|
581
|
-
addons:
|
|
584
|
+
addons: k,
|
|
582
585
|
products: p,
|
|
583
|
-
numberOfDays:
|
|
584
|
-
name:
|
|
586
|
+
numberOfDays: f,
|
|
587
|
+
name: i,
|
|
585
588
|
phone: y,
|
|
586
589
|
email: h,
|
|
587
590
|
remark: s,
|
|
588
591
|
allergies: O,
|
|
589
592
|
arrivalTime: D,
|
|
590
|
-
hasEvents:
|
|
593
|
+
hasEvents: N,
|
|
591
594
|
hasTemplates: b,
|
|
592
595
|
getEvents: S,
|
|
593
596
|
getTemplates: _,
|
|
594
597
|
getEventData: P,
|
|
595
|
-
getTemplateData:
|
|
596
|
-
getEventTableData:
|
|
598
|
+
getTemplateData: g,
|
|
599
|
+
getEventTableData: F,
|
|
597
600
|
hasProducts: I,
|
|
598
601
|
eventRateType: ae,
|
|
599
|
-
areListingsAvailable:
|
|
602
|
+
areListingsAvailable: pe,
|
|
600
603
|
isAvailabilityDataAvailable: oe,
|
|
601
|
-
hasListingData:
|
|
604
|
+
hasListingData: ve,
|
|
602
605
|
isPaymentLoading: M,
|
|
603
606
|
isReservationFormFilled: le,
|
|
604
607
|
requiresArrivalTime: H,
|
|
605
608
|
hasSelectedRequiredProducts: K,
|
|
606
|
-
getUnavailableEvents:
|
|
607
|
-
} = 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(), {
|
|
608
611
|
initialize: Re,
|
|
609
612
|
fetchListings: Me,
|
|
610
613
|
createBooking: Ue,
|
|
@@ -612,7 +615,7 @@ const Wt = {
|
|
|
612
615
|
totalAddonPrice: ze,
|
|
613
616
|
reset: qe,
|
|
614
617
|
goBack: $e
|
|
615
|
-
} = J(), { display:
|
|
618
|
+
} = J(), { display: fe } = Pe(), He = j(() => [
|
|
616
619
|
{
|
|
617
620
|
id: "availability",
|
|
618
621
|
label: a("booking.availability.title"),
|
|
@@ -640,9 +643,9 @@ const Wt = {
|
|
|
640
643
|
}
|
|
641
644
|
]), Ye = j(() => {
|
|
642
645
|
const E = [];
|
|
643
|
-
return
|
|
644
|
-
E.find((
|
|
645
|
-
label:
|
|
646
|
+
return F.value && F.value.forEach((d) => {
|
|
647
|
+
E.find((L) => L.value === d.time) || E.push({
|
|
648
|
+
label: me(d.time),
|
|
646
649
|
value: d.time
|
|
647
650
|
});
|
|
648
651
|
}), E;
|
|
@@ -653,20 +656,20 @@ const Wt = {
|
|
|
653
656
|
function We() {
|
|
654
657
|
const E = yt("history", {
|
|
655
658
|
removeNullishValues: !0
|
|
656
|
-
}), d = parseInt(E.rid),
|
|
657
|
-
if (
|
|
658
|
-
if (ht(
|
|
659
|
-
const u = new Date(
|
|
660
|
-
A >= R ? (Se.value = u, E.d = void 0) :
|
|
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({
|
|
661
664
|
message: a("alert.error.invalidDateRange"),
|
|
662
665
|
type: "error"
|
|
663
666
|
});
|
|
664
667
|
} else
|
|
665
|
-
|
|
668
|
+
fe({
|
|
666
669
|
message: a("alert.error.wrongDateFormat"),
|
|
667
670
|
type: "error"
|
|
668
671
|
});
|
|
669
|
-
isNaN(d) || (Ie(d) ? Ae.value = d : (E.rid = void 0,
|
|
672
|
+
isNaN(d) || (Ie(d) ? Ae.value = d : (E.rid = void 0, fe({
|
|
670
673
|
message: a("alert.error.hotelIdNotFound"),
|
|
671
674
|
type: "error"
|
|
672
675
|
}))), isNaN(V) || Ce(V), Me();
|
|
@@ -685,8 +688,8 @@ const Wt = {
|
|
|
685
688
|
steps: He.value,
|
|
686
689
|
onReset: je
|
|
687
690
|
}, {
|
|
688
|
-
availability: m(({ next:
|
|
689
|
-
v(
|
|
691
|
+
availability: m(({ next: L }) => [
|
|
692
|
+
v(ye, null, {
|
|
690
693
|
sidebar: m(() => [
|
|
691
694
|
v(Gt, {
|
|
692
695
|
redirection: !1,
|
|
@@ -695,8 +698,8 @@ const Wt = {
|
|
|
695
698
|
}, null, 8, ["selected-location", "hide-locations"])
|
|
696
699
|
]),
|
|
697
700
|
form: m(() => [
|
|
698
|
-
e(
|
|
699
|
-
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, [
|
|
700
703
|
v(te, {
|
|
701
704
|
icon: "calendar-clock",
|
|
702
705
|
type: "fal",
|
|
@@ -704,22 +707,22 @@ const Wt = {
|
|
|
704
707
|
}),
|
|
705
708
|
t("span", null, l(e(a)("event.availableNow")), 1)
|
|
706
709
|
])) : c("", !0),
|
|
707
|
-
t("ul",
|
|
708
|
-
e(
|
|
710
|
+
t("ul", Tn, [
|
|
711
|
+
e(N) && E.onlyShow !== "templates" ? (o(!0), r(C, { key: 0 }, G(e(S), (V) => (o(), $(tn, {
|
|
709
712
|
name: V.name,
|
|
710
713
|
events: V.events,
|
|
711
|
-
callback:
|
|
714
|
+
callback: L
|
|
712
715
|
}, null, 8, ["name", "events", "callback"]))), 256)) : c("", !0),
|
|
713
716
|
e(b) && E.onlyShow !== "events" ? (o(!0), r(C, { key: 1 }, G(e(_), ({
|
|
714
717
|
id: V,
|
|
715
718
|
name: u,
|
|
716
719
|
fromDate: A,
|
|
717
720
|
toDate: R,
|
|
718
|
-
minimumPersonCount:
|
|
719
|
-
fromPrice:
|
|
721
|
+
minimumPersonCount: T,
|
|
722
|
+
fromPrice: B,
|
|
720
723
|
description: X,
|
|
721
724
|
images: x
|
|
722
|
-
}) => (o(), $(
|
|
725
|
+
}) => (o(), $(dn, {
|
|
723
726
|
key: V,
|
|
724
727
|
"listing-id": V,
|
|
725
728
|
name: u,
|
|
@@ -727,13 +730,13 @@ const Wt = {
|
|
|
727
730
|
description: X,
|
|
728
731
|
"from-date": A,
|
|
729
732
|
"to-date": R,
|
|
730
|
-
"minimum-person-count":
|
|
731
|
-
fromPrice:
|
|
732
|
-
callback:
|
|
733
|
+
"minimum-person-count": T,
|
|
734
|
+
fromPrice: B,
|
|
735
|
+
callback: L
|
|
733
736
|
}, null, 8, ["listing-id", "name", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128)) : c("", !0)
|
|
734
737
|
]),
|
|
735
|
-
e(
|
|
736
|
-
t("h2",
|
|
738
|
+
e(be).length > 0 && E.onlyShow !== "templates" ? (o(), r(C, { key: 1 }, [
|
|
739
|
+
t("h2", Nn, [
|
|
737
740
|
v(te, {
|
|
738
741
|
icon: "calendar-circle-exclamation",
|
|
739
742
|
type: "fal",
|
|
@@ -741,73 +744,73 @@ const Wt = {
|
|
|
741
744
|
}),
|
|
742
745
|
t("span", null, l(e(a)("event.availableLater")), 1)
|
|
743
746
|
]),
|
|
744
|
-
t("ul",
|
|
745
|
-
(o(!0), r(C, null, G(e(
|
|
747
|
+
t("ul", Fn, [
|
|
748
|
+
(o(!0), r(C, null, G(e(be), ({
|
|
746
749
|
id: V,
|
|
747
750
|
days: u,
|
|
748
751
|
name: A,
|
|
749
752
|
timeFrom: R,
|
|
750
|
-
timeTo:
|
|
751
|
-
fromDate:
|
|
753
|
+
timeTo: T,
|
|
754
|
+
fromDate: B,
|
|
752
755
|
toDate: X,
|
|
753
756
|
tableGroupId: x,
|
|
754
|
-
description:
|
|
755
|
-
soldOut:
|
|
757
|
+
description: ge,
|
|
758
|
+
soldOut: ke,
|
|
756
759
|
length: ee,
|
|
757
760
|
images: Ze,
|
|
758
761
|
maxOnlineReservationLimit: Qe,
|
|
759
762
|
maxPaxPerReservation: Je,
|
|
760
763
|
useNumberOfProductsForPersons: Ke,
|
|
761
764
|
maxTicketsLimit: Xe
|
|
762
|
-
}) => (o(), $(
|
|
765
|
+
}) => (o(), $(un, {
|
|
763
766
|
key: V,
|
|
764
767
|
type: "event",
|
|
765
768
|
"listing-id": V,
|
|
766
769
|
"table-group-id": x,
|
|
767
|
-
description:
|
|
770
|
+
description: ge,
|
|
768
771
|
name: A,
|
|
769
772
|
length: ee,
|
|
770
773
|
gallery: Ze,
|
|
771
774
|
days: u,
|
|
772
|
-
"from-date":
|
|
775
|
+
"from-date": B,
|
|
773
776
|
"to-date": X,
|
|
774
777
|
"max-online-reservation-limit": Je || Qe || Xe,
|
|
775
778
|
"time-from": R,
|
|
776
|
-
"time-to":
|
|
777
|
-
"sold-out":
|
|
779
|
+
"time-to": T,
|
|
780
|
+
"sold-out": ke,
|
|
778
781
|
"use-number-of-products-for-persons": Ke,
|
|
779
|
-
callback:
|
|
782
|
+
callback: L
|
|
780
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))
|
|
781
784
|
])
|
|
782
785
|
], 64)) : c("", !0),
|
|
783
|
-
!e(
|
|
786
|
+
!e(N) && !e(b) || !e(N) && E.onlyShow === "events" || !e(b) && E.onlyShow === "templates" ? (o(), r("div", {
|
|
784
787
|
key: 2,
|
|
785
788
|
class: "konnectio-panel",
|
|
786
789
|
innerHTML: e(a)("event.nothingAvailable")
|
|
787
|
-
}, null, 8,
|
|
788
|
-
])) : (o(), $(
|
|
790
|
+
}, null, 8, Ln)) : c("", !0)
|
|
791
|
+
])) : (o(), $(Le, { key: 1 }))
|
|
789
792
|
]),
|
|
790
793
|
_: 2
|
|
791
794
|
}, 1024)
|
|
792
795
|
]),
|
|
793
|
-
addons: m(({ next:
|
|
794
|
-
e(oe) ? (o(), $(
|
|
796
|
+
addons: m(({ next: L, prev: V }) => [
|
|
797
|
+
e(oe) ? (o(), $(ye, {
|
|
795
798
|
key: 0,
|
|
796
799
|
"prev-callback": () => e($e)(V)
|
|
797
800
|
}, {
|
|
798
801
|
form: m(() => [
|
|
799
|
-
t("form",
|
|
802
|
+
t("form", Bn, [
|
|
800
803
|
t("h2", null, [
|
|
801
804
|
t("span", null, l(e(a)("event.selectProducts")), 1)
|
|
802
805
|
]),
|
|
803
|
-
e(
|
|
804
|
-
(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), ({
|
|
805
808
|
roomGroupId: u,
|
|
806
809
|
addons: A,
|
|
807
810
|
adultPerRoom: R
|
|
808
|
-
},
|
|
811
|
+
}, T) => (o(), r("li", { key: u }, [
|
|
809
812
|
t("h5", null, [
|
|
810
|
-
t("span", null, l(e(a)("booking.reservation.room")) + " #" + l(
|
|
813
|
+
t("span", null, l(e(a)("booking.reservation.room")) + " #" + l(T + 1), 1),
|
|
811
814
|
d[7] || (d[7] = ue(" (")),
|
|
812
815
|
v(te, {
|
|
813
816
|
icon: "male",
|
|
@@ -816,47 +819,47 @@ const Wt = {
|
|
|
816
819
|
}),
|
|
817
820
|
ue(" " + l(R) + ") ", 1)
|
|
818
821
|
]),
|
|
819
|
-
t("table",
|
|
822
|
+
t("table", Sn, [
|
|
820
823
|
t("thead", null, [
|
|
821
824
|
t("tr", null, [
|
|
822
825
|
t("th", null, [
|
|
823
826
|
t("span", null, l(e(a)("booking.reservation.addons")), 1)
|
|
824
827
|
]),
|
|
825
828
|
d[8] || (d[8] = t("th", { class: "konnectio-event-addons-input" }, null, -1)),
|
|
826
|
-
t("th",
|
|
829
|
+
t("th", An, [
|
|
827
830
|
t("span", null, l(e(a)("booking.availability.price")), 1)
|
|
828
831
|
])
|
|
829
832
|
])
|
|
830
833
|
]),
|
|
831
834
|
t("tbody", null, [
|
|
832
835
|
(o(!0), r(C, null, G(A, ({
|
|
833
|
-
id:
|
|
836
|
+
id: B,
|
|
834
837
|
cardinality: X,
|
|
835
838
|
name: x,
|
|
836
|
-
price:
|
|
837
|
-
quantityStrategy:
|
|
838
|
-
}) => (o(), r("tr", { key:
|
|
839
|
+
price: ge,
|
|
840
|
+
quantityStrategy: ke
|
|
841
|
+
}) => (o(), r("tr", { key: B }, [
|
|
839
842
|
t("td", null, [
|
|
840
843
|
t("b", null, l(x), 1),
|
|
841
844
|
d[9] || (d[9] = t("br", null, null, -1)),
|
|
842
|
-
t("span", null, l(e(Z)(
|
|
845
|
+
t("span", null, l(e(Z)(ge, e(se))) + " " + l(e(gt)(ke)), 1)
|
|
843
846
|
]),
|
|
844
|
-
t("td",
|
|
847
|
+
t("td", In, [
|
|
845
848
|
X === 3 ? (o(), $(re, {
|
|
846
849
|
key: 0,
|
|
847
|
-
modelValue: e(
|
|
848
|
-
"onUpdate:modelValue": (ee) => e(
|
|
850
|
+
modelValue: e(k)[`${u}.${B}.${T}`],
|
|
851
|
+
"onUpdate:modelValue": (ee) => e(k)[`${u}.${B}.${T}`] = ee,
|
|
849
852
|
small: !0,
|
|
850
853
|
"min-value": 0
|
|
851
854
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (o(), $(Ut, {
|
|
852
855
|
key: 1,
|
|
853
|
-
modelValue: e(
|
|
854
|
-
"onUpdate:modelValue": (ee) => e(
|
|
856
|
+
modelValue: e(k)[`${u}.${B}.${T}`],
|
|
857
|
+
"onUpdate:modelValue": (ee) => e(k)[`${u}.${B}.${T}`] = ee,
|
|
855
858
|
numeric: !0
|
|
856
859
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
857
860
|
]),
|
|
858
|
-
t("td",
|
|
859
|
-
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)
|
|
860
863
|
])
|
|
861
864
|
]))), 128))
|
|
862
865
|
]),
|
|
@@ -864,9 +867,9 @@ const Wt = {
|
|
|
864
867
|
t("tr", null, [
|
|
865
868
|
d[10] || (d[10] = t("td", null, null, -1)),
|
|
866
869
|
d[11] || (d[11] = t("td", null, null, -1)),
|
|
867
|
-
t("td",
|
|
870
|
+
t("td", Mn, [
|
|
868
871
|
t("u", null, [
|
|
869
|
-
t("span", null, l(e(Z)(e(ze)(u,
|
|
872
|
+
t("span", null, l(e(Z)(e(ze)(u, T), e(se))), 1)
|
|
870
873
|
])
|
|
871
874
|
])
|
|
872
875
|
])
|
|
@@ -874,20 +877,20 @@ const Wt = {
|
|
|
874
877
|
])
|
|
875
878
|
]))), 128))
|
|
876
879
|
])) : c("", !0),
|
|
877
|
-
e(I) ? (o(), r("table",
|
|
880
|
+
e(I) ? (o(), r("table", Un, [
|
|
878
881
|
t("tbody", null, [
|
|
879
|
-
(o(!0), r(C, null, G(e(P).products, ({ id: u, name: A, price: R, description:
|
|
880
|
-
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, [
|
|
881
884
|
t("b", null, [
|
|
882
885
|
t("span", null, l(e(we)(A)), 1)
|
|
883
886
|
]),
|
|
884
|
-
|
|
887
|
+
T && T !== A ? (o(), r("span", zn, l(e(we)(T)), 1)) : c("", !0),
|
|
885
888
|
t("u", null, l(e(Z)(R, e(se))), 1)
|
|
886
889
|
]),
|
|
887
|
-
t("td",
|
|
890
|
+
t("td", qn, [
|
|
888
891
|
v(re, {
|
|
889
892
|
modelValue: e(p)[u],
|
|
890
|
-
"onUpdate:modelValue": (
|
|
893
|
+
"onUpdate:modelValue": (B) => e(p)[u] = B,
|
|
891
894
|
small: !0,
|
|
892
895
|
"min-value": 0
|
|
893
896
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -902,26 +905,26 @@ const Wt = {
|
|
|
902
905
|
label: e(a)("event.startReservation"),
|
|
903
906
|
disabled: !e(K),
|
|
904
907
|
"full-width": "",
|
|
905
|
-
onClickEvent:
|
|
908
|
+
onClickEvent: L
|
|
906
909
|
}, null, 8, ["label", "disabled", "onClickEvent"])
|
|
907
910
|
]),
|
|
908
911
|
_: 2
|
|
909
912
|
}, 1032, ["prev-callback"])) : c("", !0)
|
|
910
913
|
]),
|
|
911
|
-
reservation: m(({ next:
|
|
912
|
-
v(
|
|
914
|
+
reservation: m(({ next: L, prev: V }) => [
|
|
915
|
+
v(ye, {
|
|
913
916
|
"show-terms-notice": !0,
|
|
914
917
|
"show-gift-card": !0,
|
|
915
918
|
"prev-callback": () => e($e)(V)
|
|
916
919
|
}, {
|
|
917
920
|
form: m(() => [
|
|
918
|
-
t("form",
|
|
921
|
+
t("form", Hn, [
|
|
919
922
|
t("h2", null, [
|
|
920
923
|
t("span", null, l(e(a)("booking.reservation.detailsTitle")), 1)
|
|
921
924
|
]),
|
|
922
925
|
v(ie, {
|
|
923
|
-
modelValue: e(
|
|
924
|
-
"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),
|
|
925
928
|
type: "text",
|
|
926
929
|
label: e(a)("booking.reservation.name"),
|
|
927
930
|
icon: "user-alt",
|
|
@@ -947,7 +950,7 @@ const Wt = {
|
|
|
947
950
|
placeholder: e(a)("booking.reservation.phonePlaceholder"),
|
|
948
951
|
required: ""
|
|
949
952
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
950
|
-
e(H) ? (o(), $(
|
|
953
|
+
e(H) ? (o(), $(Nt, {
|
|
951
954
|
key: 0,
|
|
952
955
|
modelValue: e(D),
|
|
953
956
|
"onUpdate:modelValue": d[3] || (d[3] = (u) => U(D) ? D.value = u : null),
|
|
@@ -958,8 +961,8 @@ const Wt = {
|
|
|
958
961
|
}, null, 8, ["modelValue", "label", "checkboxes"])) : c("", !0),
|
|
959
962
|
e(ae) === e(ft).FullDayEvent ? (o(), $(re, {
|
|
960
963
|
key: 1,
|
|
961
|
-
modelValue: e(
|
|
962
|
-
"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),
|
|
963
966
|
label: e(a)("event.numberOfDays"),
|
|
964
967
|
"min-value": 1,
|
|
965
968
|
required: ""
|
|
@@ -988,7 +991,7 @@ const Wt = {
|
|
|
988
991
|
"is-loading": e(M),
|
|
989
992
|
disabled: !e(le),
|
|
990
993
|
"full-width": "",
|
|
991
|
-
onClickEvent: (u) => e(Ue)(
|
|
994
|
+
onClickEvent: (u) => e(Ue)(L)
|
|
992
995
|
}, null, 8, ["label", "is-loading", "disabled", "onClickEvent"])
|
|
993
996
|
]),
|
|
994
997
|
_: 2
|
|
@@ -998,7 +1001,7 @@ const Wt = {
|
|
|
998
1001
|
v(Rt)
|
|
999
1002
|
]),
|
|
1000
1003
|
confirmation: m(() => [
|
|
1001
|
-
v(
|
|
1004
|
+
v(Tt, {
|
|
1002
1005
|
message: e(a)("event.confirmationMessage")
|
|
1003
1006
|
}, null, 8, ["message"])
|
|
1004
1007
|
]),
|
|
@@ -1009,7 +1012,7 @@ const Wt = {
|
|
|
1009
1012
|
}, 8, ["access-token", "callback"])
|
|
1010
1013
|
]),
|
|
1011
1014
|
fallback: m(() => [
|
|
1012
|
-
v(
|
|
1015
|
+
v(En)
|
|
1013
1016
|
]),
|
|
1014
1017
|
_: 1
|
|
1015
1018
|
}))
|
|
@@ -1017,8 +1020,8 @@ const Wt = {
|
|
|
1017
1020
|
_: 1
|
|
1018
1021
|
}, 8, ["styling"]));
|
|
1019
1022
|
}
|
|
1020
|
-
}),
|
|
1021
|
-
class
|
|
1023
|
+
}), Ne = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-8e82dc21"]]), jn = lt(), Wn = st, Zn = Wn();
|
|
1024
|
+
class Qn extends HTMLElement {
|
|
1022
1025
|
vueApp;
|
|
1023
1026
|
constructor() {
|
|
1024
1027
|
super();
|
|
@@ -1027,14 +1030,14 @@ class Wn extends HTMLElement {
|
|
|
1027
1030
|
this.vueApp.unmount();
|
|
1028
1031
|
}
|
|
1029
1032
|
connectedCallback() {
|
|
1030
|
-
const n = it(
|
|
1031
|
-
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 });
|
|
1032
1035
|
const a = document.createElement("div");
|
|
1033
1036
|
this.vueApp.mount(a), this.appendChild(a.children[0]);
|
|
1034
1037
|
}
|
|
1035
1038
|
}
|
|
1036
|
-
window.customElements.define("konnectio-event",
|
|
1039
|
+
window.customElements.define("konnectio-event", Qn);
|
|
1037
1040
|
export {
|
|
1038
|
-
|
|
1041
|
+
Qn as default
|
|
1039
1042
|
};
|
|
1040
1043
|
//# sourceMappingURL=event.js.map
|