@konnectio/core 4.0.56-rc36 → 4.0.56-rc38
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-Ct6NhfWq.js → ActionField-DpIf4ghX.js} +2 -2
- package/dist/ActionField-DpIf4ghX.js.br +0 -0
- package/dist/{AvailabilitySkeleton-DOhrMVl4.js → AvailabilitySkeleton-BaxN1_Lw.js} +4 -4
- package/dist/AvailabilitySkeleton-BaxN1_Lw.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BMbBmC3T.js} +2658 -2656
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BMbBmC3T.js.br +0 -0
- package/dist/{CheckoutWindow-BVIOQbbL.js → CheckoutWindow-DavJkEee.js} +2 -2
- package/dist/CheckoutWindow-DavJkEee.js.br +0 -0
- package/dist/{ErrorMessage-DTSuSB8R.js → ErrorMessage-DLeTIy6d.js} +2 -2
- package/dist/ErrorMessage-DLeTIy6d.js.br +0 -0
- package/dist/{EventAvailabilityForm-DVcDsdr8.js → EventAvailabilityForm-B9-RuFO9.js} +26 -26
- package/dist/EventAvailabilityForm-B9-RuFO9.js.br +0 -0
- package/dist/{Field-IsLH1tNU.js → Field-5fXecW-6.js} +2 -2
- package/dist/Field-5fXecW-6.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DBXlWKTZ.js} +23 -23
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DBXlWKTZ.js.br +0 -0
- package/dist/{TermsOfService-BORqI07-.js → TermsOfService-CsQwuk20.js} +3 -3
- package/dist/TermsOfService-CsQwuk20.js.br +0 -0
- package/dist/availability.js +4 -4
- package/dist/availability.js.br +0 -0
- package/dist/event.js +121 -121
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +20 -20
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +39 -39
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +180 -180
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-gY-oSFpV.js → masonry.plugin-CkPuevAg.js} +24 -24
- package/dist/masonry.plugin-CkPuevAg.js.br +0 -0
- package/dist/navigation.js +4 -4
- package/dist/polyfill.js +117 -99
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +11 -11
- package/dist/ActionField-Ct6NhfWq.js.br +0 -0
- package/dist/AvailabilitySkeleton-DOhrMVl4.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js.br +0 -0
- package/dist/CheckoutWindow-BVIOQbbL.js.br +0 -0
- package/dist/ErrorMessage-DTSuSB8R.js.br +0 -0
- package/dist/EventAvailabilityForm-DVcDsdr8.js.br +0 -0
- package/dist/Field-IsLH1tNU.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js.br +0 -0
- package/dist/TermsOfService-BORqI07-.js.br +0 -0
- package/dist/masonry.plugin-gY-oSFpV.js.br +0 -0
package/dist/event.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { d as Y, r as Me, g as le, o as
|
|
2
|
-
import { u as
|
|
3
|
-
import { B as lt, R as
|
|
4
|
-
import { u as j, E as mt } from "./EventAvailabilityForm-
|
|
5
|
-
import { t as G, e as pt, g as _e, m as $e, a as we, b as Ee, c as vt, d as Te } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-
|
|
6
|
-
import { a as ft, P as bt, C as gt } from "./CheckoutWindow-
|
|
1
|
+
import { d as Y, r as Me, g as le, o as a, a as T, w as p, z as ne, u as e, f as t, e as f, c as m, b as h, t as o, A as Re, B as Ue, y as q, F as B, s as M, h as Fe, q as ze, S as qe, C as ge, i as he, p as Ge, j as He, k as je } from "./_commonjsHelpers-UWZO_9XV.js";
|
|
2
|
+
import { u as ae, n as Ye, s as H, b as oe, C as me, K as Ze, _ as se, c as Ve, A as pe, M as Je, o as De, D as ke, N as ve, B as R, d as Ke, O as ye, P as Qe, T as ce, e as We, f as Xe, g as xe, h as et, i as tt, J as nt, m as ot } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DBXlWKTZ.js";
|
|
3
|
+
import { B as lt, R as at, L as Pe, S as st, M as it, C as rt, T as ut, V as ct, G as dt } from "./masonry.plugin-CkPuevAg.js";
|
|
4
|
+
import { u as j, E as mt } from "./EventAvailabilityForm-B9-RuFO9.js";
|
|
5
|
+
import { t as G, e as pt, g as _e, m as $e, a as we, b as Ee, c as vt, d as Te } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BMbBmC3T.js";
|
|
6
|
+
import { a as ft, P as bt, C as gt } from "./CheckoutWindow-DavJkEee.js";
|
|
7
7
|
import "./navigation.js";
|
|
8
8
|
(function() {
|
|
9
9
|
try {
|
|
10
|
-
var
|
|
11
|
-
n && (
|
|
10
|
+
var c = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
11
|
+
n && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[n] = "094efb64-18c5-472e-ba82-daa9069b5653", c._sentryDebugIdIdentifier = "sentry-dbid-094efb64-18c5-472e-ba82-daa9069b5653");
|
|
12
12
|
} catch {
|
|
13
13
|
}
|
|
14
14
|
})();
|
|
15
|
-
function ht(
|
|
16
|
-
const i = G(
|
|
15
|
+
function ht(c, n) {
|
|
16
|
+
const i = G(c), d = G(n), l = i.getTime() - d.getTime();
|
|
17
17
|
return l < 0 ? -1 : l > 0 ? 1 : l;
|
|
18
18
|
}
|
|
19
|
-
function kt(
|
|
19
|
+
function kt(c) {
|
|
20
20
|
return (n) => {
|
|
21
|
-
const
|
|
22
|
-
return
|
|
21
|
+
const d = (c ? Math[c] : Math.trunc)(n);
|
|
22
|
+
return d === 0 ? 0 : d;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
function yt(
|
|
26
|
-
const
|
|
25
|
+
function yt(c, n, i) {
|
|
26
|
+
const d = vt(), l = i?.locale ?? d.locale ?? pt, _ = ht(c, n);
|
|
27
27
|
if (isNaN(_))
|
|
28
28
|
throw new RangeError("Invalid time value");
|
|
29
29
|
const b = Object.assign({}, i, {
|
|
@@ -31,22 +31,22 @@ function yt(d, n, i) {
|
|
|
31
31
|
comparison: _
|
|
32
32
|
});
|
|
33
33
|
let $, u;
|
|
34
|
-
_ > 0 ? ($ = G(n), u = G(
|
|
34
|
+
_ > 0 ? ($ = G(n), u = G(c)) : ($ = G(c), u = G(n));
|
|
35
35
|
const v = kt(i?.roundingMethod ?? "round"), k = u.getTime() - $.getTime(), y = k / Te, C = _e(u) - _e($), D = (k - C) / Te, P = i?.unit;
|
|
36
|
-
let
|
|
37
|
-
if (P ?
|
|
36
|
+
let s;
|
|
37
|
+
if (P ? s = P : y < 1 ? s = "second" : y < 60 ? s = "minute" : y < $e ? s = "hour" : D < we ? s = "day" : D < Ee ? s = "month" : s = "year", s === "second") {
|
|
38
38
|
const g = v(k / 1e3);
|
|
39
39
|
return l.formatDistance("xSeconds", g, b);
|
|
40
|
-
} else if (
|
|
40
|
+
} else if (s === "minute") {
|
|
41
41
|
const g = v(y);
|
|
42
42
|
return l.formatDistance("xMinutes", g, b);
|
|
43
|
-
} else if (
|
|
43
|
+
} else if (s === "hour") {
|
|
44
44
|
const g = v(y / 60);
|
|
45
45
|
return l.formatDistance("xHours", g, b);
|
|
46
|
-
} else if (
|
|
46
|
+
} else if (s === "day") {
|
|
47
47
|
const g = v(D / $e);
|
|
48
48
|
return l.formatDistance("xDays", g, b);
|
|
49
|
-
} else if (
|
|
49
|
+
} else if (s === "month") {
|
|
50
50
|
const g = v(D / we);
|
|
51
51
|
return g === 12 && P !== "month" ? l.formatDistance("xYears", 1, b) : l.formatDistance("xMonths", g, b);
|
|
52
52
|
} else {
|
|
@@ -76,8 +76,8 @@ const _t = { class: "konnectio-event-listing-action" }, $t = { class: "konnectio
|
|
|
76
76
|
trackingEnabled: { type: Boolean },
|
|
77
77
|
callback: {}
|
|
78
78
|
},
|
|
79
|
-
setup(
|
|
80
|
-
const { t: n } =
|
|
79
|
+
setup(c) {
|
|
80
|
+
const { t: n } = ae(), i = c, { display: d } = Ye(), {
|
|
81
81
|
maxNumberOfPeople: l,
|
|
82
82
|
numberOfPeople: _,
|
|
83
83
|
eventId: b,
|
|
@@ -87,27 +87,27 @@ const _t = { class: "konnectio-event-listing-action" }, $t = { class: "konnectio
|
|
|
87
87
|
getEventAvailability: v,
|
|
88
88
|
isEventListingLoading: k
|
|
89
89
|
} = j(), y = Me(0), C = le(() => k(i.listingId)), D = () => {
|
|
90
|
-
y.value > 0 ? (b.value = i.listingId, _.value = y.value, u(i.callback)) :
|
|
90
|
+
y.value > 0 ? (b.value = i.listingId, _.value = y.value, u(i.callback)) : d({
|
|
91
91
|
type: "error",
|
|
92
92
|
message: n("alert.error.selectPeople")
|
|
93
93
|
});
|
|
94
94
|
}, P = () => {
|
|
95
|
-
y.value > 0 ? (b.value = i.listingId, $.value = i.tableGroupId, _.value = y.value, v(i.callback)) :
|
|
95
|
+
y.value > 0 ? (b.value = i.listingId, $.value = i.tableGroupId, _.value = y.value, v(i.callback)) : d({
|
|
96
96
|
type: "error",
|
|
97
97
|
message: n("alert.error.selectPeople")
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
return (
|
|
101
|
-
"listing-id":
|
|
102
|
-
gallery:
|
|
103
|
-
name:
|
|
104
|
-
description:
|
|
105
|
-
"prices-from":
|
|
106
|
-
"to-date":
|
|
100
|
+
return (s, g) => (a(), T(lt, {
|
|
101
|
+
"listing-id": s.listingId,
|
|
102
|
+
gallery: s.gallery,
|
|
103
|
+
name: s.name,
|
|
104
|
+
description: s.description,
|
|
105
|
+
"prices-from": s.fromPrice,
|
|
106
|
+
"to-date": s.toDate,
|
|
107
107
|
layout: e(Ze).Event
|
|
108
108
|
}, {
|
|
109
109
|
description: p(() => [
|
|
110
|
-
ne(
|
|
110
|
+
ne(s.$slots, "description", { maxNumberOfPeople: e(l) }, void 0, !0)
|
|
111
111
|
]),
|
|
112
112
|
action: p(() => [
|
|
113
113
|
t("div", _t, [
|
|
@@ -118,16 +118,16 @@ const _t = { class: "konnectio-event-listing-action" }, $t = { class: "konnectio
|
|
|
118
118
|
icon: "users",
|
|
119
119
|
"icon-type": "fas",
|
|
120
120
|
"icon-placement": "label",
|
|
121
|
-
description:
|
|
122
|
-
"min-value":
|
|
123
|
-
"max-value":
|
|
121
|
+
description: s.maxGuests <= 20 ? `Available for: 1-${s.maxGuests} guests` : void 0,
|
|
122
|
+
"min-value": s.type === "event" ? 0 : s.minimumPersonCount,
|
|
123
|
+
"max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(l)
|
|
124
124
|
}, null, 8, ["modelValue", "label", "description", "min-value", "max-value"]),
|
|
125
125
|
t("div", $t, [
|
|
126
126
|
f(me, {
|
|
127
|
-
label:
|
|
128
|
-
disabled:
|
|
127
|
+
label: s.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
|
|
128
|
+
disabled: s.soldOut,
|
|
129
129
|
"is-loading": C.value,
|
|
130
|
-
onClickEvent: g[1] || (g[1] = (O) =>
|
|
130
|
+
onClickEvent: g[1] || (g[1] = (O) => s.type === "event" ? P() : D())
|
|
131
131
|
}, null, 8, ["label", "disabled", "is-loading"])
|
|
132
132
|
])
|
|
133
133
|
])
|
|
@@ -135,7 +135,7 @@ const _t = { class: "konnectio-event-listing-action" }, $t = { class: "konnectio
|
|
|
135
135
|
_: 3
|
|
136
136
|
}, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout"]));
|
|
137
137
|
}
|
|
138
|
-
}), Ae = /* @__PURE__ */
|
|
138
|
+
}), Ae = /* @__PURE__ */ se(wt, [["__scopeId", "data-v-8e796505"]]), Et = ["innerHTML"], Tt = { class: "konnectio-event-listing-information-new" };
|
|
139
139
|
const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-button" }, Pt = /* @__PURE__ */ Y({
|
|
140
140
|
__name: "Event",
|
|
141
141
|
props: {
|
|
@@ -157,15 +157,15 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
|
|
|
157
157
|
trackingEnabled: { type: Boolean },
|
|
158
158
|
callback: {}
|
|
159
159
|
},
|
|
160
|
-
setup(
|
|
161
|
-
const n =
|
|
160
|
+
setup(c) {
|
|
161
|
+
const n = c, { t: i } = ae(), d = le(() => {
|
|
162
162
|
const l = n.length.split(":");
|
|
163
163
|
return console.log(l), yt(
|
|
164
164
|
new Date(2e3, 0, 1, Number(l[0]), Number(l[1]), 0),
|
|
165
165
|
new Date(2e3, 0, 1, 0, 0, 0)
|
|
166
166
|
);
|
|
167
167
|
});
|
|
168
|
-
return (l, _) => (
|
|
168
|
+
return (l, _) => (a(), T(Ae, {
|
|
169
169
|
"listing-id": l.listingId,
|
|
170
170
|
name: l.name,
|
|
171
171
|
description: l.description,
|
|
@@ -178,7 +178,7 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
|
|
|
178
178
|
callback: l.callback
|
|
179
179
|
}, {
|
|
180
180
|
description: p(() => [
|
|
181
|
-
l.description ? (
|
|
181
|
+
l.description ? (a(), m("p", {
|
|
182
182
|
key: 0,
|
|
183
183
|
innerHTML: e(Ve)(l.description)
|
|
184
184
|
}, null, 8, Et)) : h("", !0),
|
|
@@ -192,7 +192,7 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
|
|
|
192
192
|
}),
|
|
193
193
|
t("span", null, o(e(i)("event.lengthOfEvent")), 1)
|
|
194
194
|
]),
|
|
195
|
-
t("span", null, o(
|
|
195
|
+
t("span", null, o(d.value), 1)
|
|
196
196
|
]),
|
|
197
197
|
t("li", Dt, [
|
|
198
198
|
t("div", null, [
|
|
@@ -209,7 +209,7 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
|
|
|
209
209
|
_: 1
|
|
210
210
|
}, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "to-date", "callback"]));
|
|
211
211
|
}
|
|
212
|
-
}), At = /* @__PURE__ */
|
|
212
|
+
}), At = /* @__PURE__ */ se(Pt, [["__scopeId", "data-v-148bf11e"]]), Ct = ["innerHTML"], Ot = /* @__PURE__ */ Y({
|
|
213
213
|
__name: "Template",
|
|
214
214
|
props: {
|
|
215
215
|
name: {},
|
|
@@ -225,8 +225,8 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
|
|
|
225
225
|
trackingEnabled: { type: Boolean },
|
|
226
226
|
callback: {}
|
|
227
227
|
},
|
|
228
|
-
setup(
|
|
229
|
-
const n =
|
|
228
|
+
setup(c) {
|
|
229
|
+
const n = c, i = le(() => {
|
|
230
230
|
if (n.image)
|
|
231
231
|
return [{
|
|
232
232
|
large: n.image,
|
|
@@ -235,34 +235,34 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
|
|
|
235
235
|
url: n.image
|
|
236
236
|
}];
|
|
237
237
|
});
|
|
238
|
-
return (
|
|
239
|
-
"listing-id":
|
|
238
|
+
return (d, l) => (a(), T(Ae, {
|
|
239
|
+
"listing-id": d.listingId,
|
|
240
240
|
gallery: i.value,
|
|
241
|
-
name:
|
|
242
|
-
description:
|
|
243
|
-
"prices-from":
|
|
244
|
-
"to-date":
|
|
241
|
+
name: d.name,
|
|
242
|
+
description: d.description,
|
|
243
|
+
"prices-from": d.fromPrice,
|
|
244
|
+
"to-date": d.toDate,
|
|
245
245
|
type: "template",
|
|
246
|
-
callback:
|
|
246
|
+
callback: d.callback
|
|
247
247
|
}, {
|
|
248
248
|
description: p(() => [
|
|
249
|
-
|
|
249
|
+
d.description ? (a(), m("p", {
|
|
250
250
|
key: 0,
|
|
251
|
-
innerHTML: e(Ve)(
|
|
251
|
+
innerHTML: e(Ve)(d.description)
|
|
252
252
|
}, null, 8, Ct)) : h("", !0)
|
|
253
253
|
]),
|
|
254
254
|
_: 1
|
|
255
255
|
}, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
|
|
256
256
|
}
|
|
257
|
-
}), Bt = { key: 0 }, St = { key: 1 }, Lt = { key: 2 }, It = { key: 3 }, Nt = { key: 4 }, Mt = { key: 5 }, Rt = { key: 0 },
|
|
257
|
+
}), Bt = { key: 0 }, St = { key: 1 }, Lt = { key: 2 }, It = { key: 3 }, Nt = { key: 4 }, Mt = { key: 5 }, Rt = { key: 0 }, de = /* @__PURE__ */ Y({
|
|
258
258
|
__name: "EventReservationForm",
|
|
259
259
|
props: {
|
|
260
260
|
showGiftCard: { type: Boolean, default: !1 },
|
|
261
261
|
showTermsNotice: { type: Boolean, default: !1 }
|
|
262
262
|
},
|
|
263
|
-
setup(
|
|
264
|
-
const { t: n } =
|
|
265
|
-
areListingsAvailable:
|
|
263
|
+
setup(c) {
|
|
264
|
+
const { t: n } = ae(), i = Re(), {
|
|
265
|
+
areListingsAvailable: d,
|
|
266
266
|
arrivalTime: l,
|
|
267
267
|
numberOfPeople: _,
|
|
268
268
|
numberOfRooms: b,
|
|
@@ -274,20 +274,20 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
|
|
|
274
274
|
getTemplateData: C,
|
|
275
275
|
basePrice: D,
|
|
276
276
|
totalPrice: P,
|
|
277
|
-
weekendFee:
|
|
277
|
+
weekendFee: s,
|
|
278
278
|
roomUpgrade: g,
|
|
279
279
|
discountCode: O
|
|
280
280
|
} = H(j()), { totalAddonPrice: W, validateDiscountCode: ie } = j(), { currency: X } = H(De());
|
|
281
|
-
return (S, x) => (
|
|
281
|
+
return (S, x) => (a(), T(at, {
|
|
282
282
|
"discount-code": e(O),
|
|
283
283
|
"onUpdate:discountCode": x[0] || (x[0] = (F) => M(O) ? O.value = F : null),
|
|
284
284
|
"validate-discount-code": e(ie),
|
|
285
285
|
"show-gift-card": S.showGiftCard,
|
|
286
286
|
"show-terms-notice": S.showTermsNotice,
|
|
287
|
-
"is-sidebar-loading": !e(
|
|
287
|
+
"is-sidebar-loading": !e(d),
|
|
288
288
|
"base-price": e(D),
|
|
289
289
|
"total-price": e(P),
|
|
290
|
-
"weekend-fee": e(
|
|
290
|
+
"weekend-fee": e(s),
|
|
291
291
|
"room-upgrade": e(g),
|
|
292
292
|
notice: e(n)("hotel.reservationNotice")
|
|
293
293
|
}, Ue({
|
|
@@ -295,11 +295,11 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
|
|
|
295
295
|
ne(S.$slots, "form")
|
|
296
296
|
]),
|
|
297
297
|
"reservation-summary": p(() => [
|
|
298
|
-
e(u) ? (
|
|
298
|
+
e(u) ? (a(), m("li", Bt, [
|
|
299
299
|
t("span", null, o(e(n)("booking.reservation.arrival")), 1),
|
|
300
300
|
t("b", null, o(e(ke)(e(k))), 1)
|
|
301
301
|
])) : h("", !0),
|
|
302
|
-
e(u) ? (
|
|
302
|
+
e(u) ? (a(), m("li", St, [
|
|
303
303
|
t("span", null, o(e(n)("booking.reservation.departure")), 1),
|
|
304
304
|
t("b", null, o(e(ke)(e(k), e($))), 1)
|
|
305
305
|
])) : h("", !0),
|
|
@@ -307,29 +307,29 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
|
|
|
307
307
|
t("span", null, o(e(n)("event.numberOfGuests")), 1),
|
|
308
308
|
t("b", null, o(e(_)), 1)
|
|
309
309
|
]),
|
|
310
|
-
e(u) ? (
|
|
310
|
+
e(u) ? (a(), m("li", Lt, [
|
|
311
311
|
t("span", null, o(e(n)("event.numberOfRooms")), 1),
|
|
312
312
|
t("b", null, o(e(b)), 1)
|
|
313
313
|
])) : h("", !0),
|
|
314
|
-
e(u) ? (
|
|
314
|
+
e(u) ? (a(), m("li", It, [
|
|
315
315
|
t("span", null, o(e(n)("event.numberOfDays")), 1),
|
|
316
316
|
t("b", null, o(e($)), 1)
|
|
317
317
|
])) : h("", !0),
|
|
318
|
-
!e(u) && e(l) ? (
|
|
318
|
+
!e(u) && e(l) ? (a(), m("li", Nt, [
|
|
319
319
|
t("span", null, o(e(n)("event.startOfEvent")), 1),
|
|
320
320
|
t("b", null, o(e(ve)(e(l))), 1)
|
|
321
321
|
])) : h("", !0),
|
|
322
|
-
!e(u) && e(v) ? (
|
|
322
|
+
!e(u) && e(v) ? (a(), m("li", Mt, [
|
|
323
323
|
t("span", null, o(e(n)("event.lengthOfEvent")), 1),
|
|
324
324
|
t("b", null, o(e(ve)(e(v))), 1)
|
|
325
325
|
])) : h("", !0)
|
|
326
326
|
]),
|
|
327
327
|
"price-summary": p(() => [
|
|
328
|
-
!e(u) && e(y) > 0 ? (
|
|
328
|
+
!e(u) && e(y) > 0 ? (a(), m("li", Rt, [
|
|
329
329
|
t("span", null, o(e(n)("booking.availability.basePrice")), 1),
|
|
330
330
|
t("b", null, o(e(R)(e(y), e(X))), 1)
|
|
331
331
|
])) : h("", !0),
|
|
332
|
-
e(C) ? (
|
|
332
|
+
e(C) ? (a(!0), m(B, { key: 1 }, q(e(C), ({ roomGroupId: F }, ee) => (a(), m("li", { key: F }, [
|
|
333
333
|
t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(ee + 1), 1),
|
|
334
334
|
t("b", null, o(e(R)(e(W)(F, ee), e(X))), 1)
|
|
335
335
|
]))), 128)) : h("", !0)
|
|
@@ -350,27 +350,27 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
|
|
|
350
350
|
}
|
|
351
351
|
}), Ut = { class: "event-skeleton" }, Ft = { class: "event-skeleton-content" }, zt = { class: "event-skeleton-sidebar" }, qt = /* @__PURE__ */ Y({
|
|
352
352
|
__name: "EventSkeleton",
|
|
353
|
-
setup(
|
|
354
|
-
return (n, i) => (
|
|
353
|
+
setup(c) {
|
|
354
|
+
return (n, i) => (a(), m("div", Ut, [
|
|
355
355
|
t("div", Ft, [
|
|
356
356
|
f(Pe)
|
|
357
357
|
]),
|
|
358
358
|
t("div", zt, [
|
|
359
359
|
h("", !0),
|
|
360
|
-
f(
|
|
360
|
+
f(st)
|
|
361
361
|
])
|
|
362
362
|
]));
|
|
363
363
|
}
|
|
364
|
-
}), Gt = /* @__PURE__ */
|
|
364
|
+
}), Gt = /* @__PURE__ */ se(qt, [["__scopeId", "data-v-3e15c4e3"]]), U = (c) => (Ge("data-v-f6598228"), c = c(), He(), c), Ht = {
|
|
365
365
|
key: 0,
|
|
366
366
|
id: "fresh-booking-event-overview"
|
|
367
367
|
};
|
|
368
368
|
const jt = { class: "fresh-booking-event-listings" };
|
|
369
|
-
const Yt = { class: "fresh-booking-event-listings" }, Zt = { class: "
|
|
369
|
+
const Yt = { class: "fresh-booking-event-listings" }, Zt = { class: "konnectio-panel" }, Jt = {
|
|
370
370
|
key: 1,
|
|
371
371
|
id: "fresh-booking-event-addons"
|
|
372
|
-
}, Kt = { class: "
|
|
373
|
-
const
|
|
372
|
+
}, Kt = { class: "konnectio-table with-lines" }, Qt = /* @__PURE__ */ U(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Wt = { class: "fresh-booking-event-addons-price" }, Xt = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), xt = { class: "fresh-booking-event-addons-input" }, en = { class: "fresh-booking-event-addons-price" }, tn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("td", null, null, -1)), nn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("td", null, null, -1)), on = { class: "fresh-booking-event-addons-price" }, ln = { key: 2 };
|
|
373
|
+
const an = { key: 3 }, sn = { class: "konnectio-label required" }, rn = { class: "konnectio-table with-lines" }, un = /* @__PURE__ */ U(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), cn = { class: "fresh-booking-event-addons-price" }, dn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), mn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), pn = { class: "fresh-booking-event-addons-input" }, vn = { class: "fresh-booking-event-addons-price" }, fn = ["onClick"], bn = { class: "konnectio-panel" }, gn = ["onClick"], hn = /* @__PURE__ */ Y({
|
|
374
374
|
name: "EventLayout",
|
|
375
375
|
__name: "Event",
|
|
376
376
|
props: {
|
|
@@ -378,10 +378,10 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
378
378
|
onlyShow: { default: "everything" },
|
|
379
379
|
styling: {}
|
|
380
380
|
},
|
|
381
|
-
setup(
|
|
382
|
-
const { t: n } =
|
|
381
|
+
setup(c) {
|
|
382
|
+
const { t: n } = ae(), {
|
|
383
383
|
addons: i,
|
|
384
|
-
products:
|
|
384
|
+
products: d,
|
|
385
385
|
numberOfDays: l,
|
|
386
386
|
name: _,
|
|
387
387
|
phone: b,
|
|
@@ -393,7 +393,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
393
393
|
getEvents: C,
|
|
394
394
|
getTemplates: D,
|
|
395
395
|
getEventData: P,
|
|
396
|
-
getTemplateData:
|
|
396
|
+
getTemplateData: s,
|
|
397
397
|
getEventTableData: g,
|
|
398
398
|
hasProducts: O,
|
|
399
399
|
eventRateType: W,
|
|
@@ -418,9 +418,9 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
418
418
|
});
|
|
419
419
|
}), L;
|
|
420
420
|
});
|
|
421
|
-
return Fe(() => Ce()), ze(ee, () => Oe()), (L, w) => (
|
|
421
|
+
return Fe(() => Ce()), ze(ee, () => Oe()), (L, w) => (a(), T(Xe, { styling: L.styling }, {
|
|
422
422
|
default: p(() => [
|
|
423
|
-
(
|
|
423
|
+
(a(), T(qe, null, {
|
|
424
424
|
default: p(() => [
|
|
425
425
|
f(We, {
|
|
426
426
|
id: "konnectio-event-module",
|
|
@@ -430,16 +430,16 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
430
430
|
default: p(() => [
|
|
431
431
|
f(it, null, {
|
|
432
432
|
availability: p(({ next: z }) => [
|
|
433
|
-
f(
|
|
433
|
+
f(de, null, {
|
|
434
434
|
sidebar: p(() => [
|
|
435
435
|
f(mt, { redirection: !1 })
|
|
436
436
|
]),
|
|
437
437
|
form: p(() => [
|
|
438
|
-
e(x) && e(ie) ? (
|
|
439
|
-
e(k) && L.onlyShow !== "templates" ? (
|
|
438
|
+
e(x) && e(ie) ? (a(), m("div", Ht, [
|
|
439
|
+
e(k) && L.onlyShow !== "templates" ? (a(), m(B, { key: 0 }, [
|
|
440
440
|
h("", !0),
|
|
441
441
|
t("ul", jt, [
|
|
442
|
-
(
|
|
442
|
+
(a(!0), m(B, null, q(e(C), ({
|
|
443
443
|
id: A,
|
|
444
444
|
days: r,
|
|
445
445
|
name: I,
|
|
@@ -453,7 +453,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
453
453
|
length: Q,
|
|
454
454
|
images: Ie,
|
|
455
455
|
maxOnlineReservationLimit: Ne
|
|
456
|
-
}) => (
|
|
456
|
+
}) => (a(), T(At, {
|
|
457
457
|
key: A,
|
|
458
458
|
type: "event",
|
|
459
459
|
"listing-id": A,
|
|
@@ -473,10 +473,10 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
473
473
|
}, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
|
|
474
474
|
])
|
|
475
475
|
], 64)) : h("", !0),
|
|
476
|
-
e(y) && L.onlyShow !== "events" ? (
|
|
476
|
+
e(y) && L.onlyShow !== "events" ? (a(), m(B, { key: 1 }, [
|
|
477
477
|
h("", !0),
|
|
478
478
|
t("ul", Yt, [
|
|
479
|
-
(
|
|
479
|
+
(a(!0), m(B, null, q(e(D), ({
|
|
480
480
|
id: A,
|
|
481
481
|
name: r,
|
|
482
482
|
fromDate: I,
|
|
@@ -485,7 +485,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
485
485
|
fromPrice: V,
|
|
486
486
|
description: J,
|
|
487
487
|
imageUrl: K
|
|
488
|
-
}) => (
|
|
488
|
+
}) => (a(), T(Ot, {
|
|
489
489
|
key: A,
|
|
490
490
|
"listing-id": A,
|
|
491
491
|
name: r,
|
|
@@ -499,19 +499,19 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
499
499
|
}, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
|
|
500
500
|
])
|
|
501
501
|
], 64)) : h("", !0)
|
|
502
|
-
])) : (
|
|
502
|
+
])) : (a(), T(Pe, { key: 1 }))
|
|
503
503
|
]),
|
|
504
504
|
_: 2
|
|
505
505
|
}, 1024)
|
|
506
506
|
]),
|
|
507
507
|
addons: p(({ next: z, prev: A }) => [
|
|
508
|
-
e(X) ? (
|
|
508
|
+
e(X) ? (a(), T(de, { key: 0 }, {
|
|
509
509
|
form: p(() => [
|
|
510
510
|
t("form", Zt, [
|
|
511
511
|
t("h2", null, [
|
|
512
512
|
t("span", null, o(e(n)("booking.reservation.addons")), 1)
|
|
513
513
|
]),
|
|
514
|
-
e(W) === e(ye).FullDayEvent ? (
|
|
514
|
+
e(W) === e(ye).FullDayEvent ? (a(), T(oe, {
|
|
515
515
|
key: 0,
|
|
516
516
|
modelValue: e(l),
|
|
517
517
|
"onUpdate:modelValue": w[0] || (w[0] = (r) => M(l) ? l.value = r : null),
|
|
@@ -519,12 +519,12 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
519
519
|
"min-value": 1,
|
|
520
520
|
required: ""
|
|
521
521
|
}, null, 8, ["modelValue", "label"])) : h("", !0),
|
|
522
|
-
e(
|
|
523
|
-
(
|
|
522
|
+
e(s) && e(s).length > 0 ? (a(), m("ul", Jt, [
|
|
523
|
+
(a(!0), m(B, null, q(e(s), ({
|
|
524
524
|
roomGroupId: r,
|
|
525
525
|
addons: I,
|
|
526
526
|
adultPerRoom: N
|
|
527
|
-
}, E) => (
|
|
527
|
+
}, E) => (a(), m("li", { key: r }, [
|
|
528
528
|
t("h5", null, [
|
|
529
529
|
t("span", null, o(e(n)("booking.reservation.room")) + " #" + o(E + 1), 1),
|
|
530
530
|
ge(" ("),
|
|
@@ -548,26 +548,26 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
548
548
|
])
|
|
549
549
|
]),
|
|
550
550
|
t("tbody", null, [
|
|
551
|
-
(
|
|
551
|
+
(a(!0), m(B, null, q(I, ({
|
|
552
552
|
id: V,
|
|
553
553
|
cardinality: J,
|
|
554
554
|
name: K,
|
|
555
555
|
price: re,
|
|
556
556
|
quantityStrategy: ue
|
|
557
|
-
}) => (
|
|
557
|
+
}) => (a(), m("tr", { key: V }, [
|
|
558
558
|
t("td", null, [
|
|
559
559
|
t("b", null, o(K), 1),
|
|
560
560
|
Xt,
|
|
561
561
|
t("span", null, o(e(R)(re, e(Z))) + " " + o(e(Qe)(ue)), 1)
|
|
562
562
|
]),
|
|
563
563
|
t("td", xt, [
|
|
564
|
-
J === 3 ? (
|
|
564
|
+
J === 3 ? (a(), T(oe, {
|
|
565
565
|
key: 0,
|
|
566
566
|
modelValue: e(i)[`${r}.${V}.${E}`],
|
|
567
567
|
"onUpdate:modelValue": (Q) => e(i)[`${r}.${V}.${E}`] = Q,
|
|
568
568
|
small: !0,
|
|
569
569
|
"min-value": 0
|
|
570
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (
|
|
570
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), T(ft, {
|
|
571
571
|
key: 1,
|
|
572
572
|
modelValue: e(i)[`${r}.${V}.${E}`],
|
|
573
573
|
"onUpdate:modelValue": (Q) => e(i)[`${r}.${V}.${E}`] = Q,
|
|
@@ -593,7 +593,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
593
593
|
])
|
|
594
594
|
]))), 128))
|
|
595
595
|
])) : h("", !0),
|
|
596
|
-
e(W) !== e(ye).FullDayEvent && !e(S) ? (
|
|
596
|
+
e(W) !== e(ye).FullDayEvent && !e(S) ? (a(), m("div", ln, [
|
|
597
597
|
h("", !0),
|
|
598
598
|
f(rt, {
|
|
599
599
|
modelValue: e(v),
|
|
@@ -604,8 +604,8 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
604
604
|
required: ""
|
|
605
605
|
}, null, 8, ["modelValue", "label", "checkboxes"])
|
|
606
606
|
])) : h("", !0),
|
|
607
|
-
e(O) ? (
|
|
608
|
-
t("label",
|
|
607
|
+
e(O) ? (a(), m("div", an, [
|
|
608
|
+
t("label", sn, [
|
|
609
609
|
t("span", null, o(e(n)("event.selectProducts")), 1)
|
|
610
610
|
]),
|
|
611
611
|
t("table", rn, [
|
|
@@ -615,26 +615,26 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
615
615
|
t("span", null, o(e(n)("booking.reservation.addons")), 1)
|
|
616
616
|
]),
|
|
617
617
|
un,
|
|
618
|
-
t("th",
|
|
618
|
+
t("th", cn, [
|
|
619
619
|
t("span", null, o(e(n)("booking.availability.price")), 1)
|
|
620
620
|
])
|
|
621
621
|
])
|
|
622
622
|
]),
|
|
623
623
|
t("tbody", null, [
|
|
624
|
-
(
|
|
624
|
+
(a(!0), m(B, null, q(e(P).products, ({ productID: r, productName: I, price: N, description: E }) => (a(), m("tr", { key: r }, [
|
|
625
625
|
t("td", null, [
|
|
626
626
|
t("b", null, [
|
|
627
627
|
t("span", null, o(I), 1)
|
|
628
628
|
]),
|
|
629
|
-
|
|
629
|
+
dn,
|
|
630
630
|
t("span", null, o(E), 1),
|
|
631
631
|
mn,
|
|
632
632
|
t("span", null, o(e(R)(N, e(Z))), 1)
|
|
633
633
|
]),
|
|
634
634
|
t("td", pn, [
|
|
635
635
|
f(oe, {
|
|
636
|
-
modelValue: e(
|
|
637
|
-
"onUpdate:modelValue": (V) => e(
|
|
636
|
+
modelValue: e(d)[r],
|
|
637
|
+
"onUpdate:modelValue": (V) => e(d)[r] = V,
|
|
638
638
|
small: !0,
|
|
639
639
|
"min-value": 0
|
|
640
640
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -665,7 +665,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
665
665
|
}, 1024)) : h("", !0)
|
|
666
666
|
]),
|
|
667
667
|
reservation: p(({ next: z, prev: A }) => [
|
|
668
|
-
f(
|
|
668
|
+
f(de, {
|
|
669
669
|
"show-terms-notice": !0,
|
|
670
670
|
"show-gift-card": !0
|
|
671
671
|
}, {
|
|
@@ -674,7 +674,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
674
674
|
t("h2", null, [
|
|
675
675
|
t("span", null, o(e(n)("booking.reservation.detailsTitle")), 1)
|
|
676
676
|
]),
|
|
677
|
-
f(
|
|
677
|
+
f(ce, {
|
|
678
678
|
modelValue: e(_),
|
|
679
679
|
"onUpdate:modelValue": w[2] || (w[2] = (r) => M(_) ? _.value = r : null),
|
|
680
680
|
type: "text",
|
|
@@ -683,7 +683,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
683
683
|
placeholder: e(n)("booking.reservation.namePlaceholder"),
|
|
684
684
|
required: ""
|
|
685
685
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
686
|
-
f(
|
|
686
|
+
f(ce, {
|
|
687
687
|
modelValue: e($),
|
|
688
688
|
"onUpdate:modelValue": w[3] || (w[3] = (r) => M($) ? $.value = r : null),
|
|
689
689
|
label: e(n)("booking.reservation.email"),
|
|
@@ -702,7 +702,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
702
702
|
placeholder: e(n)("booking.reservation.phonePlaceholder"),
|
|
703
703
|
required: ""
|
|
704
704
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
705
|
-
f(
|
|
705
|
+
f(ce, {
|
|
706
706
|
modelValue: e(u),
|
|
707
707
|
"onUpdate:modelValue": w[5] || (w[5] = (r) => M(u) ? u.value = r : null),
|
|
708
708
|
type: "textarea",
|
|
@@ -752,7 +752,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
|
|
|
752
752
|
_: 1
|
|
753
753
|
}, 8, ["styling"]));
|
|
754
754
|
}
|
|
755
|
-
}), te = /* @__PURE__ */
|
|
755
|
+
}), te = /* @__PURE__ */ se(hn, [["__scopeId", "data-v-f6598228"]]), kn = xe(), yn = ot();
|
|
756
756
|
class _n extends HTMLElement {
|
|
757
757
|
vueApp;
|
|
758
758
|
constructor() {
|
|
@@ -764,8 +764,8 @@ class _n extends HTMLElement {
|
|
|
764
764
|
connectedCallback() {
|
|
765
765
|
const n = typeof te == "function" ? te.options : te;
|
|
766
766
|
let i = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
767
|
-
const
|
|
768
|
-
i = i.map(
|
|
767
|
+
const d = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (v, k) => (k ? "-" : "") + v.toLowerCase()), l = (u) => u.replace(/-./g, (v) => v[1].toUpperCase()), _ = {};
|
|
768
|
+
i = i.map(d);
|
|
769
769
|
const b = {};
|
|
770
770
|
for (const u of this.attributes) {
|
|
771
771
|
const k = u.name.split(".");
|
|
@@ -775,7 +775,7 @@ class _n extends HTMLElement {
|
|
|
775
775
|
let v = this.attributes.getNamedItem(u)?.value;
|
|
776
776
|
b.hasOwnProperty(u) && (v = b[u]), _[u] = v;
|
|
777
777
|
}
|
|
778
|
-
this.vueApp = je(te, _), et(this.vueApp), this.vueApp.provide("emitter", yn), this.vueApp.use(tt), this.vueApp.use(kn), this.vueApp.use(
|
|
778
|
+
this.vueApp = je(te, _), et(this.vueApp), this.vueApp.provide("emitter", yn), this.vueApp.use(tt), this.vueApp.use(kn), this.vueApp.use(ct), this.vueApp.use(dt), this.vueApp.use(nt, { bootstrap: !0 });
|
|
779
779
|
const $ = document.createElement("div");
|
|
780
780
|
this.vueApp.mount($), this.appendChild($.children[0]);
|
|
781
781
|
}
|
package/dist/event.js.br
CHANGED
|
Binary file
|