@konnectio/core 4.0.56-rc31 → 4.0.56-rc33

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.
Files changed (46) hide show
  1. package/dist/{ActionField-qP-3ktN4.js → ActionField-tze5AH3K.js} +10 -10
  2. package/dist/ActionField-tze5AH3K.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BO4Erg_O.js +277 -0
  4. package/dist/AvailabilitySkeleton-BO4Erg_O.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js +7681 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js.br +0 -0
  7. package/dist/{CheckoutWindow-RWkSWvbk.js → CheckoutWindow-CIZWV-gI.js} +55 -55
  8. package/dist/CheckoutWindow-CIZWV-gI.js.br +0 -0
  9. package/dist/{ErrorMessage-z0JJ8Q3W.js → ErrorMessage-BzZDhDkX.js} +1 -1
  10. package/dist/ErrorMessage-BzZDhDkX.js.br +0 -0
  11. package/dist/EventAvailabilityForm-D73TXrag.js +422 -0
  12. package/dist/EventAvailabilityForm-D73TXrag.js.br +0 -0
  13. package/dist/Field-oZiblvji.js +41 -0
  14. package/dist/Field-oZiblvji.js.br +0 -0
  15. package/dist/{Field-C9r1d8IB.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js} +11521 -11751
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js.br +0 -0
  17. package/dist/{TermsOfService-oZz-B-KI.js → TermsOfService-yJlRLBDk.js} +2 -2
  18. package/dist/availability.js +45 -46
  19. package/dist/availability.js.br +0 -0
  20. package/dist/event.js +622 -491
  21. package/dist/event.js.br +0 -0
  22. package/dist/gift-card-validation.js +87 -77
  23. package/dist/gift-card-validation.js.br +0 -0
  24. package/dist/gift-card.js +261 -260
  25. package/dist/gift-card.js.br +0 -0
  26. package/dist/hotel.js +1016 -1027
  27. package/dist/hotel.js.br +0 -0
  28. package/dist/{masonry.plugin-fa0tia29.js → masonry.plugin-B71LqMrD.js} +1263 -1271
  29. package/dist/masonry.plugin-B71LqMrD.js.br +0 -0
  30. package/dist/polyfill.js +2507 -2503
  31. package/dist/polyfill.js.br +0 -0
  32. package/dist/style.css +1 -1
  33. package/dist/style.css.br +0 -0
  34. package/package.json +25 -24
  35. package/dist/ActionField-qP-3ktN4.js.br +0 -0
  36. package/dist/AvailabilitySkeleton-uaCnfwHM.js +0 -7665
  37. package/dist/AvailabilitySkeleton-uaCnfwHM.js.br +0 -0
  38. package/dist/CheckoutWindow-RWkSWvbk.js.br +0 -0
  39. package/dist/ErrorMessage-z0JJ8Q3W.js.br +0 -0
  40. package/dist/EventAvailabilityForm-LIgUj1t3.js +0 -325
  41. package/dist/EventAvailabilityForm-LIgUj1t3.js.br +0 -0
  42. package/dist/Field-C9r1d8IB.js.br +0 -0
  43. package/dist/HotelAvailabilityForm-AQ4VA15t.js +0 -212
  44. package/dist/HotelAvailabilityForm-AQ4VA15t.js.br +0 -0
  45. package/dist/masonry.plugin-fa0tia29.js.br +0 -0
  46. /package/dist/{_commonjsHelpers-f3sTPFkQ.js → _commonjsHelpers-DaMA6jEr.js} +0 -0
package/dist/event.js CHANGED
@@ -1,17 +1,55 @@
1
- import { d as J, u as te, Q as Ie, s as Z, c as ye, r as ze, e as je, f as a, k as _, a5 as _e, x as d, g as i, j as e, y as ce, l as u, h as n, a6 as pe, m as r, a2 as C, A as t, a7 as me, a8 as Ge, a3 as O, a9 as Ze, v as le, aa as Qe, Z as x, o as Je, w as Ke, S as We, F as A, ab as S, $ as R, V as ve, n as ee, T as be, ac as he, ad as Ye, ae as ne, a4 as fe, C as Xe, q as xe, D as en, E as nn, G as tn, H as ln, J as an, K as on, L as sn, af as rn, M as un } from "./Field-C9r1d8IB.js";
2
- import { B as dn, R as cn, L as Ve, M as pn, T as mn, V as vn, G as bn } from "./masonry.plugin-fa0tia29.js";
3
- import { u as Q, E as hn } from "./EventAvailabilityForm-LIgUj1t3.js";
4
- import { A as fn } from "./ActionField-qP-3ktN4.js";
5
- import { P as gn, C as ge, a as kn } from "./CheckoutWindow-RWkSWvbk.js";
6
- import { A as yn } from "./AvailabilitySkeleton-uaCnfwHM.js";
7
- const _n = ["innerHTML"], Vn = { class: "konnectio-event-listing-information-new" };
8
- const $n = { key: 1 }, En = { key: 2 }, Tn = /* @__PURE__ */ J({
9
- __name: "Event",
1
+ import { d as H, u as le, M as Ie, K as G, m as Re, i as ve, o as a, a as V, w as m, ae as ne, g as e, f as t, e as v, k as oe, C as ce, af as Ue, _ as ae, c as d, h as De, b as h, a3 as me, t as o, ag as Fe, ah as ze, N as Pe, ai as Ge, a5 as be, aj as pe, a4 as R, ab as M, F as S, a2 as I, l as qe, p as He, a1 as je, S as Ye, Q as he, ak as ke, al as Qe, q as ye, T as ue, v as Ze, x as Ke, y as We, z as Je, A as Xe, B as xe, D as et, ad as tt, G as nt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js";
2
+ import { B as ot, R as lt, L as Ae, S as at, M as st, T as it, V as rt, G as ut } from "./masonry.plugin-B71LqMrD.js";
3
+ import { u as q, E as dt } from "./EventAvailabilityForm-D73TXrag.js";
4
+ import { t as z, e as ct, g as _e, m as $e, a as Te, b as Ve, c as mt, d as Ee } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js";
5
+ import { a as we, P as pt, C as vt } from "./CheckoutWindow-CIZWV-gI.js";
6
+ function ft(f, n) {
7
+ const i = z(f), c = z(n), l = i.getTime() - c.getTime();
8
+ return l < 0 ? -1 : l > 0 ? 1 : l;
9
+ }
10
+ function gt(f) {
11
+ return (n) => {
12
+ const c = (f ? Math[f] : Math.trunc)(n);
13
+ return c === 0 ? 0 : c;
14
+ };
15
+ }
16
+ function bt(f, n, i) {
17
+ const c = mt(), l = i?.locale ?? c.locale ?? ct, _ = ft(f, n);
18
+ if (isNaN(_))
19
+ throw new RangeError("Invalid time value");
20
+ const g = Object.assign({}, i, {
21
+ addSuffix: i?.addSuffix,
22
+ comparison: _
23
+ });
24
+ let $, u;
25
+ _ > 0 ? ($ = z(n), u = z(f)) : ($ = z(f), u = z(n));
26
+ const p = gt(i?.roundingMethod ?? "round"), k = u.getTime() - $.getTime(), y = k / Ee, B = _e(u) - _e($), D = (k - B) / Ee, P = i?.unit;
27
+ let s;
28
+ if (P ? s = P : y < 1 ? s = "second" : y < 60 ? s = "minute" : y < $e ? s = "hour" : D < Te ? s = "day" : D < Ve ? s = "month" : s = "year", s === "second") {
29
+ const b = p(k / 1e3);
30
+ return l.formatDistance("xSeconds", b, g);
31
+ } else if (s === "minute") {
32
+ const b = p(y);
33
+ return l.formatDistance("xMinutes", b, g);
34
+ } else if (s === "hour") {
35
+ const b = p(y / 60);
36
+ return l.formatDistance("xHours", b, g);
37
+ } else if (s === "day") {
38
+ const b = p(D / $e);
39
+ return l.formatDistance("xDays", b, g);
40
+ } else if (s === "month") {
41
+ const b = p(D / Te);
42
+ return b === 12 && P !== "month" ? l.formatDistance("xYears", 1, g) : l.formatDistance("xMonths", b, g);
43
+ } else {
44
+ const b = p(D / Ve);
45
+ return l.formatDistance("xYears", b, g);
46
+ }
47
+ }
48
+ const ht = { class: "konnectio-event-listing-action" }, kt = { class: "konnectio-event-listing-action-button" }, yt = /* @__PURE__ */ H({
49
+ __name: "_",
10
50
  props: {
11
51
  name: {},
12
- type: {},
13
52
  description: {},
14
- fromDate: {},
15
53
  toDate: {},
16
54
  listingId: {},
17
55
  tableGroupId: {},
@@ -21,579 +59,672 @@ const $n = { key: 1 }, En = { key: 2 }, Tn = /* @__PURE__ */ J({
21
59
  timeTo: {},
22
60
  maxOnlineReservationLimit: {},
23
61
  minimumPersonCount: {},
24
- fromPrice: {},
62
+ maxGuests: { default: 1 / 0 },
63
+ fromPrice: { default: 0 },
25
64
  gallery: {},
26
65
  soldOut: { type: Boolean, default: !1 },
27
- layout: {},
66
+ type: {},
28
67
  trackingEnabled: { type: Boolean },
29
68
  callback: {}
30
69
  },
31
- setup(V) {
32
- const { t: l } = te(), p = V, { display: m } = Ie(), { currency: B } = Z(ye()), {
33
- maxNumberOfPeople: $,
34
- numberOfPeople: E,
35
- eventId: T,
36
- tableGroupId: c
37
- } = Z(Q()), {
38
- getTemplateAvailability: b,
39
- getEventAvailability: h,
40
- isEventListingLoading: D
41
- } = Q(), v = ze(0), H = je(() => D(p.listingId)), I = () => {
42
- v.value > 0 ? (T.value = p.listingId, E.value = v.value, b(p.callback)) : m({
70
+ setup(f) {
71
+ const { t: n } = le(), i = f, { display: c } = Ie(), {
72
+ maxNumberOfPeople: l,
73
+ numberOfPeople: _,
74
+ eventId: g,
75
+ tableGroupId: $
76
+ } = G(q()), {
77
+ getTemplateAvailability: u,
78
+ getEventAvailability: p,
79
+ isEventListingLoading: k
80
+ } = q(), y = Re(0), B = ve(() => k(i.listingId)), D = () => {
81
+ y.value > 0 ? (g.value = i.listingId, _.value = y.value, u(i.callback)) : c({
43
82
  type: "error",
44
- message: l("alert.error.selectPeople")
83
+ message: n("alert.error.selectPeople")
45
84
  });
46
- }, K = () => {
47
- v.value > 0 ? (T.value = p.listingId, c.value = p.tableGroupId, E.value = v.value, h(p.callback)) : m({
85
+ }, P = () => {
86
+ y.value > 0 ? (g.value = i.listingId, $.value = i.tableGroupId, _.value = y.value, p(i.callback)) : c({
48
87
  type: "error",
49
- message: l("alert.error.selectPeople")
88
+ message: n("alert.error.selectPeople")
50
89
  });
51
90
  };
52
- return (s, P) => (a(), _(dn, {
91
+ return (s, b) => (a(), V(ot, {
53
92
  "listing-id": s.listingId,
54
93
  gallery: s.gallery,
55
94
  name: s.name,
56
95
  description: s.description,
57
- layout: e(Ze).Event
58
- }, _e({
59
- action: d(() => [
60
- r(fn, {
61
- modelValue: v.value,
62
- "onUpdate:modelValue": P[0] || (P[0] = (U) => v.value = U),
63
- type: "number",
64
- label: e(l)("event.numberOfGuests"),
65
- buttonLabel: s.soldOut ? e(l)("event.soldOut") : e(l)("event.bookNowButton"),
66
- buttonDisabled: s.soldOut,
67
- "min-value": s.type === "event" ? 1 : s.minimumPersonCount,
68
- "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e($),
69
- "is-loading": H.value,
70
- "onUpdate:isLoading": P[1] || (P[1] = (U) => H.value = U),
71
- onAction: P[2] || (P[2] = (U) => s.type === "event" ? K() : I())
72
- }, null, 8, ["modelValue", "label", "buttonLabel", "buttonDisabled", "min-value", "max-value", "is-loading"])
96
+ "prices-from": s.fromPrice,
97
+ "to-date": s.toDate,
98
+ layout: e(Ue).Event
99
+ }, {
100
+ description: m(() => [
101
+ ne(s.$slots, "description", { maxNumberOfPeople: e(l) }, void 0, !0)
73
102
  ]),
74
- _: 2
75
- }, [
76
- s.type === "event" ? {
77
- name: "description",
78
- fn: d(() => [
79
- s.description ? (a(), i("p", {
80
- key: 0,
81
- innerHTML: e(ce)(s.description)
82
- }, null, 8, _n)) : u("", !0),
83
- n("ul", Vn, [
84
- u("", !0),
85
- e(pe)(s.fromDate, s.toDate) < 180 ? (a(), i("li", $n, [
86
- r(C, {
87
- icon: "calendar-days",
103
+ action: m(() => [
104
+ t("div", ht, [
105
+ v(oe, {
106
+ modelValue: y.value,
107
+ "onUpdate:modelValue": b[0] || (b[0] = (L) => y.value = L),
108
+ label: e(n)("event.numberOfGuests"),
109
+ icon: "users",
110
+ "icon-type": "fas",
111
+ "icon-placement": "label",
112
+ description: s.maxGuests <= 20 ? `Available for: 1-${s.maxGuests} guests` : void 0,
113
+ "min-value": s.type === "event" ? 0 : s.minimumPersonCount,
114
+ "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(l)
115
+ }, null, 8, ["modelValue", "label", "description", "min-value", "max-value"]),
116
+ t("div", kt, [
117
+ v(ce, {
118
+ label: s.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
119
+ disabled: s.soldOut,
120
+ "is-loading": B.value,
121
+ onClickEvent: b[1] || (b[1] = (L) => s.type === "event" ? P() : D())
122
+ }, null, 8, ["label", "disabled", "is-loading"])
123
+ ])
124
+ ])
125
+ ]),
126
+ _: 3
127
+ }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout"]));
128
+ }
129
+ }), Oe = /* @__PURE__ */ ae(yt, [["__scopeId", "data-v-8e796505"]]), _t = ["innerHTML"], $t = { class: "konnectio-event-listing-information-new" };
130
+ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-button" }, Et = /* @__PURE__ */ H({
131
+ __name: "Event",
132
+ props: {
133
+ name: {},
134
+ description: {},
135
+ fromDate: {},
136
+ toDate: {},
137
+ length: {},
138
+ timeFrom: {},
139
+ timeTo: {},
140
+ gallery: {},
141
+ days: {},
142
+ listingId: {},
143
+ tableGroupId: {},
144
+ maxOnlineReservationLimit: {},
145
+ minimumPersonCount: {},
146
+ fromPrice: { default: 0 },
147
+ image: {},
148
+ trackingEnabled: { type: Boolean },
149
+ callback: {}
150
+ },
151
+ setup(f) {
152
+ const n = f, { t: i } = le(), c = ve(() => {
153
+ const l = n.length.split(":");
154
+ return bt(
155
+ new Date(2e3, 0, 1, Number(l[0]), Number(l[1]), Number(l[2])),
156
+ new Date(2e3, 0, 1, 0, 0, 0)
157
+ );
158
+ });
159
+ return (l, _) => (a(), V(Oe, {
160
+ "listing-id": l.listingId,
161
+ name: l.name,
162
+ description: l.description,
163
+ gallery: l.gallery,
164
+ "prices-from": l.fromPrice,
165
+ "table-group-id": l.tableGroupId,
166
+ "max-guests": l.maxOnlineReservationLimit,
167
+ "to-date": l.toDate,
168
+ type: "event",
169
+ callback: l.callback
170
+ }, {
171
+ description: m(() => [
172
+ l.description ? (a(), d("p", {
173
+ key: 0,
174
+ innerHTML: e(De)(l.description)
175
+ }, null, 8, _t)) : h("", !0),
176
+ t("ul", $t, [
177
+ h("", !0),
178
+ t("li", Tt, [
179
+ t("div", null, [
180
+ v(me, {
181
+ icon: "calendar-clock",
88
182
  color: "header"
89
183
  }),
90
- n("span", null, t(e(me)(s.fromDate, s.toDate)), 1)
91
- ])) : u("", !0),
92
- n("li", null, [
93
- n("span", null, t(s.length), 1)
184
+ t("span", null, o(e(i)("event.lengthOfEvent")), 1)
94
185
  ]),
95
- n("li", null, [
96
- r(C, {
186
+ t("span", null, o(c.value), 1)
187
+ ]),
188
+ t("li", Vt, [
189
+ t("div", null, [
190
+ v(me, {
97
191
  icon: "calendar-clock",
98
192
  color: "header"
99
193
  }),
100
- n("span", null, t(e(Ge)(s.timeFrom, s.timeTo)), 1)
194
+ t("span", null, o(e(i)("event.startAndEndTime")), 1)
101
195
  ]),
102
- s.maxOnlineReservationLimit ? (a(), i("li", En, [
103
- r(C, {
104
- icon: "user-alt",
105
- color: "header"
106
- }),
107
- n("span", null, t(`1 - ${s.maxOnlineReservationLimit} ${e(l)("general.people")}`), 1)
108
- ])) : u("", !0)
196
+ t("span", null, o(e(Fe)(l.timeFrom, l.timeTo)), 1)
109
197
  ])
110
- ]),
111
- key: "0"
112
- } : {
113
- name: "description",
114
- fn: d(() => [
115
- n("ul", { class: "konnectio-event-listing-information" }, [
116
- e(pe)(s.fromDate, s.toDate) < 180 ? (a(), i("li", { key: 0 }, [
117
- r(C, {
118
- icon: "calendar-days",
119
- color: "header"
120
- }),
121
- n("span", null, t(e(me)(s.fromDate, s.toDate, !0)), 1)
122
- ])) : u("", !0),
123
- n("li", null, [
124
- r(C, {
125
- icon: "user-alt",
126
- color: "header"
127
- }),
128
- n("span", null, t(`${s.minimumPersonCount} - ${e($)} ${e(l)("general.people")}`), 1)
129
- ]),
130
- n("li", null, [
131
- r(C, {
132
- icon: "money-bill",
133
- color: "header"
134
- }),
135
- n("span", null, t(`${e(l)("general.pricesFrom")} ${e(O)(s.fromPrice, e(B))}`), 1)
136
- ])
137
- ]),
138
- s.description ? (a(), i("p", {
139
- key: 0,
140
- innerHTML: e(ce)(s.description)
141
- }, null, 8, ["innerHTML"])) : u("", !0)
142
- ]),
143
- key: "1"
144
- }
145
- ]), 1032, ["listing-id", "gallery", "name", "description", "layout"]));
198
+ ])
199
+ ]),
200
+ _: 1
201
+ }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "to-date", "callback"]));
202
+ }
203
+ }), wt = /* @__PURE__ */ ae(Et, [["__scopeId", "data-v-3950d400"]]), Dt = ["innerHTML"], Pt = /* @__PURE__ */ H({
204
+ __name: "Template",
205
+ props: {
206
+ name: {},
207
+ description: {},
208
+ fromDate: {},
209
+ toDate: {},
210
+ listingId: {},
211
+ tableGroupId: {},
212
+ maxOnlineReservationLimit: {},
213
+ minimumPersonCount: {},
214
+ fromPrice: { default: 0 },
215
+ image: {},
216
+ trackingEnabled: { type: Boolean },
217
+ callback: {}
218
+ },
219
+ setup(f) {
220
+ const n = f, i = ve(() => {
221
+ if (n.image)
222
+ return [{
223
+ large: n.image,
224
+ medium: n.image,
225
+ thumb: n.image,
226
+ url: n.image
227
+ }];
228
+ });
229
+ return (c, l) => (a(), V(Oe, {
230
+ "listing-id": c.listingId,
231
+ gallery: i.value,
232
+ name: c.name,
233
+ description: c.description,
234
+ "prices-from": c.fromPrice,
235
+ "to-date": c.toDate,
236
+ type: "template",
237
+ callback: c.callback
238
+ }, {
239
+ description: m(() => [
240
+ c.description ? (a(), d("p", {
241
+ key: 0,
242
+ innerHTML: e(De)(c.description)
243
+ }, null, 8, Dt)) : h("", !0)
244
+ ]),
245
+ _: 1
246
+ }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
146
247
  }
147
- }), ke = /* @__PURE__ */ le(Tn, [["__scopeId", "data-v-228d0b15"]]), wn = /* @__PURE__ */ J({
248
+ }), At = { key: 0 }, Ot = { key: 1 }, Ct = { key: 2 }, St = { key: 3 }, Bt = { key: 4 }, Lt = { key: 5 }, Nt = { key: 0 }, de = /* @__PURE__ */ H({
148
249
  __name: "EventReservationForm",
149
250
  props: {
150
251
  showGiftCard: { type: Boolean, default: !1 },
151
252
  showTermsNotice: { type: Boolean, default: !1 }
152
253
  },
153
- setup(V) {
154
- const { t: l } = te(), p = Qe();
155
- return (m, B) => (a(), _(cn, {
156
- "total-price": 0,
157
- "show-gift-card": m.showGiftCard,
158
- "show-terms-notice": m.showTermsNotice,
159
- "is-sidebar-loading": !1,
160
- notice: e(l)("hotel.reservationNotice")
161
- }, _e({
162
- form: d(() => [
163
- x(m.$slots, "form")
254
+ setup(f) {
255
+ const { t: n } = le(), i = ze(), {
256
+ areListingsAvailable: c,
257
+ arrivalTime: l,
258
+ numberOfPeople: _,
259
+ numberOfRooms: g,
260
+ numberOfTotalDays: $,
261
+ isTemplateEvent: u,
262
+ length: p,
263
+ fromDate: k,
264
+ tableBasePrice: y,
265
+ getTemplateData: B,
266
+ basePrice: D,
267
+ totalPrice: P,
268
+ weekendFee: s,
269
+ roomUpgrade: b,
270
+ discountCode: L
271
+ } = G(q()), { totalAddonPrice: W, validateDiscountCode: se } = q(), { currency: J } = G(Pe());
272
+ return (N, X) => (a(), V(lt, {
273
+ "discount-code": e(L),
274
+ "onUpdate:discountCode": X[0] || (X[0] = (U) => I(L) ? L.value = U : null),
275
+ "validate-discount-code": e(se),
276
+ "show-gift-card": N.showGiftCard,
277
+ "show-terms-notice": N.showTermsNotice,
278
+ "is-sidebar-loading": !e(c),
279
+ "base-price": e(D),
280
+ "total-price": e(P),
281
+ "weekend-fee": e(s),
282
+ "room-upgrade": e(b),
283
+ notice: e(n)("hotel.reservationNotice")
284
+ }, Ge({
285
+ form: m(() => [
286
+ ne(N.$slots, "form")
164
287
  ]),
165
- "reservation-summary": d(() => []),
166
- "price-summary": d(() => []),
167
- navigation: d(() => [
168
- x(m.$slots, "navigation")
288
+ "reservation-summary": m(() => [
289
+ e(u) ? (a(), d("li", At, [
290
+ t("span", null, o(e(n)("booking.reservation.arrival")), 1),
291
+ t("b", null, o(e(be)(e(k))), 1)
292
+ ])) : h("", !0),
293
+ e(u) ? (a(), d("li", Ot, [
294
+ t("span", null, o(e(n)("booking.reservation.departure")), 1),
295
+ t("b", null, o(e(be)(e(k), e($))), 1)
296
+ ])) : h("", !0),
297
+ t("li", null, [
298
+ t("span", null, o(e(n)("event.numberOfGuests")), 1),
299
+ t("b", null, o(e(_)), 1)
300
+ ]),
301
+ e(u) ? (a(), d("li", Ct, [
302
+ t("span", null, o(e(n)("event.numberOfRooms")), 1),
303
+ t("b", null, o(e(g)), 1)
304
+ ])) : h("", !0),
305
+ e(u) ? (a(), d("li", St, [
306
+ t("span", null, o(e(n)("event.numberOfDays")), 1),
307
+ t("b", null, o(e($)), 1)
308
+ ])) : h("", !0),
309
+ !e(u) && e(l) ? (a(), d("li", Bt, [
310
+ t("span", null, o(e(n)("event.startOfEvent")), 1),
311
+ t("b", null, o(e(pe)(e(l))), 1)
312
+ ])) : h("", !0),
313
+ !e(u) && e(p) ? (a(), d("li", Lt, [
314
+ t("span", null, o(e(n)("event.lengthOfEvent")), 1),
315
+ t("b", null, o(e(pe)(e(p))), 1)
316
+ ])) : h("", !0)
317
+ ]),
318
+ "price-summary": m(() => [
319
+ !e(u) && e(y) > 0 ? (a(), d("li", Nt, [
320
+ t("span", null, o(e(n)("booking.availability.basePrice")), 1),
321
+ t("b", null, o(e(R)(e(y), e(J))), 1)
322
+ ])) : h("", !0),
323
+ e(B) ? (a(!0), d(S, { key: 1 }, M(e(B), ({ roomGroupId: U }, x) => (a(), d("li", { key: U }, [
324
+ t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(x + 1), 1),
325
+ t("b", null, o(e(R)(e(W)(U, x), e(J))), 1)
326
+ ]))), 128)) : h("", !0)
327
+ ]),
328
+ navigation: m(() => [
329
+ ne(N.$slots, "navigation")
169
330
  ]),
170
331
  _: 2
171
332
  }, [
172
- e(p).addons ? {
173
- name: "addons",
174
- fn: d(() => [
175
- x(m.$slots, "addons")
333
+ e(i).sidebar ? {
334
+ name: "sidebar",
335
+ fn: m(() => [
336
+ ne(N.$slots, "sidebar")
176
337
  ]),
177
338
  key: "0"
178
339
  } : void 0
179
- ]), 1032, ["show-gift-card", "show-terms-notice", "notice"]));
340
+ ]), 1032, ["discount-code", "validate-discount-code", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "notice"]));
180
341
  }
181
- }), An = { class: "event-skeleton" }, Cn = /* @__PURE__ */ J({
342
+ }), Mt = { class: "event-skeleton" }, It = { class: "event-skeleton-content" }, Rt = { class: "event-skeleton-sidebar" }, Ut = /* @__PURE__ */ H({
182
343
  __name: "EventSkeleton",
183
- setup(V) {
184
- return (l, p) => (a(), i("div", An, [
185
- r(yn, { view: "event" }),
186
- r(Ve)
344
+ setup(f) {
345
+ return (n, i) => (a(), d("div", Mt, [
346
+ t("div", It, [
347
+ v(Ae)
348
+ ]),
349
+ t("div", Rt, [
350
+ h("", !0),
351
+ v(at)
352
+ ])
187
353
  ]));
188
354
  }
189
- }), Pn = /* @__PURE__ */ le(Cn, [["__scopeId", "data-v-66a17edb"]]), N = (V) => (tn("data-v-274a2a78"), V = V(), ln(), V), Ln = { class: "fresh-booking-panel" }, On = {
355
+ }), Ft = /* @__PURE__ */ ae(Ut, [["__scopeId", "data-v-3e15c4e3"]]), j = (f) => (We("data-v-ec9cad2e"), f = f(), Je(), f), zt = {
190
356
  key: 0,
191
357
  id: "fresh-booking-event-overview"
192
- }, Bn = { class: "fresh-booking-event-listings" }, Dn = { class: "fresh-booking-event-listings" }, Fn = { class: "fresh-booking-panel" }, Sn = {
193
- key: 2,
358
+ };
359
+ const Gt = { class: "fresh-booking-event-listings" };
360
+ const qt = { class: "fresh-booking-event-listings" }, Ht = { class: "fresh-booking-panel" }, jt = {
361
+ key: 1,
194
362
  id: "fresh-booking-event-addons"
195
- }, Un = { class: "fresh-booking-table" }, Rn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Nn = { class: "fresh-booking-event-addons-price" }, Mn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), qn = { class: "fresh-booking-event-addons-input" }, Hn = { class: "fresh-booking-event-addons-price" }, In = /* @__PURE__ */ N(() => /* @__PURE__ */ n("td", { colspan: "2" }, null, -1)), zn = { class: "fresh-booking-event-addons-price" }, jn = { key: 3 }, Gn = { class: "fresh-booking-label required" }, Zn = { id: "fresh-booking-event-table" }, Qn = { key: 4 }, Jn = { class: "fresh-booking-label required" }, Kn = { class: "fresh-booking-table" }, Wn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Yn = { class: "fresh-booking-event-addons-price" }, Xn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), xn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), et = { class: "fresh-booking-event-addons-input" }, nt = { class: "fresh-booking-event-addons-price" }, tt = { key: 0 }, lt = { key: 1 }, at = { key: 2 }, ot = { key: 3 }, st = { key: 4 }, it = { key: 5 }, rt = { key: 6 }, ut = ["onClick"], dt = /* @__PURE__ */ J({
363
+ }, Yt = { class: "fresh-booking-table" }, Qt = /* @__PURE__ */ j(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Zt = { class: "fresh-booking-event-addons-price" }, Kt = /* @__PURE__ */ j(() => /* @__PURE__ */ t("br", null, null, -1)), Wt = { class: "fresh-booking-event-addons-input" }, Jt = { class: "fresh-booking-event-addons-price" }, Xt = /* @__PURE__ */ j(() => /* @__PURE__ */ t("td", { colspan: "2" }, null, -1)), xt = { class: "fresh-booking-event-addons-price" }, en = { key: 2 }, tn = { class: "fresh-booking-label required" }, nn = { id: "fresh-booking-event-table" }, on = { key: 3 }, ln = { class: "fresh-booking-label required" }, an = { class: "fresh-booking-table" }, sn = /* @__PURE__ */ j(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), rn = { class: "fresh-booking-event-addons-price" }, un = /* @__PURE__ */ j(() => /* @__PURE__ */ t("br", null, null, -1)), dn = /* @__PURE__ */ j(() => /* @__PURE__ */ t("br", null, null, -1)), cn = { class: "fresh-booking-event-addons-input" }, mn = { class: "fresh-booking-event-addons-price" }, pn = ["onClick"], vn = { class: "fresh-booking-panel" }, fn = ["onClick"], gn = /* @__PURE__ */ H({
196
364
  name: "EventLayout",
197
365
  __name: "Event",
198
366
  props: {
199
367
  accessToken: {},
368
+ onlyShow: { default: "everything" },
200
369
  styling: {}
201
370
  },
202
- setup(V) {
203
- const { t: l } = te(), {
204
- searchDate: p,
205
- addons: m,
206
- products: B,
207
- numberOfDays: $,
208
- discountCode: E,
209
- name: T,
210
- phone: c,
211
- email: b,
212
- remark: h,
213
- arrivalTime: D,
214
- currency: v,
215
- numberOfPeople: H,
216
- numberOfTotalDays: I,
217
- numberOfRooms: K,
218
- basePrice: s,
219
- totalPrice: P,
220
- isPaymentLoading: U,
221
- hasEvents: $e,
222
- hasTemplates: Ee,
223
- getEvents: Te,
224
- getTemplates: we,
225
- getEventData: Ae,
226
- getTemplateData: z,
227
- getEventTableData: Ce,
228
- length: ae,
229
- roomUpgrade: Pe,
230
- weekendFee: Le,
231
- fromDate: oe,
232
- hasProducts: Oe,
233
- eventRateType: se,
234
- isMetaDataAvailable: vt,
235
- areListingsAvailable: bt,
236
- isReservationFormFilled: Be,
237
- isAvailabilityDataAvailable: De,
238
- // getEventImages,
239
- isTemplateEvent: L,
240
- tableBasePrice: ie,
241
- hasListingData: Fe
242
- } = Z(Q()), {
243
- initialize: Se,
244
- validateDiscountCode: ht,
245
- fetchListings: Ue,
246
- createBooking: Re,
247
- localAddonPrice: re,
248
- totalAddonPrice: ue,
249
- reset: Ne
250
- } = Q(), {
251
- hideEvents: Me,
252
- hideEventTemplates: qe
253
- } = Z(ye());
254
- return Je(() => Se()), Ke(p, () => Ue()), (de, g) => (a(), _(nn, { styling: de.styling }, {
255
- default: d(() => [
256
- (a(), _(We, null, {
257
- default: d(() => [
258
- r(en, {
259
- id: "fresh-booking-event-module",
260
- class: "fresh-booking-app",
261
- type: "event",
262
- "access-token": de.accessToken
371
+ setup(f) {
372
+ const { t: n } = le(), {
373
+ addons: i,
374
+ products: c,
375
+ numberOfDays: l,
376
+ name: _,
377
+ phone: g,
378
+ email: $,
379
+ remark: u,
380
+ arrivalTime: p,
381
+ hasEvents: k,
382
+ hasTemplates: y,
383
+ getEvents: B,
384
+ getTemplates: D,
385
+ getEventData: P,
386
+ getTemplateData: s,
387
+ getEventTableData: b,
388
+ hasProducts: L,
389
+ eventRateType: W,
390
+ areListingsAvailable: se,
391
+ isAvailabilityDataAvailable: J,
392
+ isTemplateEvent: N,
393
+ hasListingData: X,
394
+ isPaymentLoading: U
395
+ } = G(q()), { searchDate: x } = G(qe()), {
396
+ initialize: Ce,
397
+ fetchListings: Se,
398
+ createBooking: Be,
399
+ localAddonPrice: fe,
400
+ totalAddonPrice: Le,
401
+ reset: ge
402
+ } = q(), { currency: Y } = G(Pe());
403
+ return He(() => Ce()), je(x, () => Se()), (ee, E) => (a(), V(Ke, { styling: ee.styling }, {
404
+ default: m(() => [
405
+ (a(), V(Ye, null, {
406
+ default: m(() => [
407
+ v(Ze, {
408
+ id: "konnectio-event-module",
409
+ type: "none",
410
+ "access-token": ee.accessToken
263
411
  }, {
264
- default: d(() => [
265
- r(pn, null, {
266
- availability: d(({ next: j }) => [
267
- n("div", Ln, [
268
- r(hn)
269
- ]),
270
- e(Fe) ? (a(), i("div", On, [
271
- e($e) && !e(Me) ? (a(), i(A, { key: 0 }, [
272
- n("h2", null, [
273
- r(C, {
274
- icon: "clock-seven",
275
- type: "fal",
276
- color: "header"
277
- }),
278
- n("span", null, t(e(l)("event.eventsTitle")), 1)
279
- ]),
280
- n("ul", Bn, [
281
- (a(!0), i(A, null, S(e(Te), ({
282
- id: F,
283
- days: o,
284
- name: k,
285
- timeFrom: w,
286
- timeTo: f,
287
- fromDate: y,
288
- toDate: M,
289
- tableGroupId: W,
290
- description: Y,
291
- soldOut: X,
292
- length: q,
293
- maxOnlineReservationLimit: He
294
- }) => (a(), _(ke, {
295
- key: F,
296
- type: "event",
297
- "listing-id": F,
298
- "table-group-id": W,
299
- description: Y,
300
- name: k,
301
- length: q,
302
- days: o,
303
- "from-date": y,
304
- "to-date": M,
305
- "max-online-reservation-limit": He,
306
- "time-from": w,
307
- "time-to": f,
308
- "sold-out": X,
309
- callback: j
310
- }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
311
- ])
312
- ], 64)) : u("", !0),
313
- e(Ee) && !e(qe) ? (a(), i(A, { key: 1 }, [
314
- n("h2", null, [
315
- r(C, {
316
- icon: "stars",
317
- type: "fal",
318
- color: "header"
319
- }),
320
- n("span", null, t(e(l)("event.stayTitle")), 1)
321
- ]),
322
- n("ul", Dn, [
323
- (a(!0), i(A, null, S(e(we), ({
324
- id: F,
325
- name: o,
326
- fromDate: k,
327
- toDate: w,
328
- minimumPersonCount: f,
329
- fromPrice: y,
330
- description: M
331
- }) => (a(), _(ke, {
332
- key: F,
333
- type: "template",
334
- "listing-id": F,
335
- name: o,
336
- description: M,
337
- "from-date": k,
338
- "to-date": w,
339
- "minimum-person-count": f,
340
- fromPrice: y,
341
- callback: j
342
- }, null, 8, ["listing-id", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
343
- ])
344
- ], 64)) : u("", !0)
345
- ])) : (a(), _(Ve, { key: 1 }))
412
+ default: m(() => [
413
+ v(st, null, {
414
+ availability: m(({ next: F }) => [
415
+ v(de, null, {
416
+ sidebar: m(() => [
417
+ v(dt, { redirection: !1 })
418
+ ]),
419
+ form: m(() => [
420
+ e(X) && e(se) ? (a(), d("div", zt, [
421
+ e(k) && ee.onlyShow !== "templates" ? (a(), d(S, { key: 0 }, [
422
+ h("", !0),
423
+ t("ul", Gt, [
424
+ (a(!0), d(S, null, M(e(B), ({
425
+ id: A,
426
+ days: r,
427
+ name: O,
428
+ timeFrom: C,
429
+ timeTo: T,
430
+ fromDate: w,
431
+ toDate: Q,
432
+ tableGroupId: Z,
433
+ description: ie,
434
+ soldOut: re,
435
+ length: K,
436
+ images: Ne,
437
+ maxOnlineReservationLimit: Me
438
+ }) => (a(), V(wt, {
439
+ key: A,
440
+ type: "event",
441
+ "listing-id": A,
442
+ "table-group-id": Z,
443
+ description: ie,
444
+ name: O,
445
+ length: K,
446
+ gallery: Ne,
447
+ days: r,
448
+ "from-date": w,
449
+ "to-date": Q,
450
+ "max-online-reservation-limit": Me,
451
+ "time-from": C,
452
+ "time-to": T,
453
+ "sold-out": re,
454
+ callback: F
455
+ }, 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))
456
+ ])
457
+ ], 64)) : h("", !0),
458
+ e(y) && ee.onlyShow !== "events" ? (a(), d(S, { key: 1 }, [
459
+ h("", !0),
460
+ t("ul", qt, [
461
+ (a(!0), d(S, null, M(e(D), ({
462
+ id: A,
463
+ name: r,
464
+ fromDate: O,
465
+ toDate: C,
466
+ minimumPersonCount: T,
467
+ fromPrice: w,
468
+ description: Q,
469
+ imageUrl: Z
470
+ }) => (a(), V(Pt, {
471
+ key: A,
472
+ "listing-id": A,
473
+ name: r,
474
+ image: Z,
475
+ description: Q,
476
+ "from-date": O,
477
+ "to-date": C,
478
+ "minimum-person-count": T,
479
+ fromPrice: w,
480
+ callback: F
481
+ }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
482
+ ])
483
+ ], 64)) : h("", !0)
484
+ ])) : (a(), V(Ae, { key: 1 }))
485
+ ]),
486
+ _: 2
487
+ }, 1024)
346
488
  ]),
347
- addons: d(({ next: j, prev: F }) => [
348
- e(De) ? (a(), _(wn, {
349
- key: 0,
350
- remark: e(h),
351
- "onUpdate:remark": g[7] || (g[7] = (o) => R(h) ? h.value = o : null),
352
- "is-filled": e(Be),
353
- "is-loading": e(U),
354
- "base-price": e(s),
355
- "total-price": e(P),
356
- "weekend-fee": e(Le),
357
- "room-upgrade": e(Pe)
358
- }, {
359
- form: d(() => [
360
- n("form", Fn, [
361
- n("h2", null, [
362
- n("span", null, t(e(l)("booking.reservation.addons")), 1)
489
+ addons: m(({ next: F, prev: A }) => [
490
+ e(J) ? (a(), V(de, { key: 0 }, {
491
+ form: m(() => [
492
+ t("form", Ht, [
493
+ t("h2", null, [
494
+ t("span", null, o(e(n)("booking.reservation.addons")), 1)
363
495
  ]),
364
- e(se) === e(ve).FullDayEvent ? (a(), _(ee, {
496
+ e(W) === e(he).FullDayEvent ? (a(), V(oe, {
365
497
  key: 0,
366
- modelValue: e($),
367
- "onUpdate:modelValue": g[0] || (g[0] = (o) => R($) ? $.value = o : null),
368
- label: e(l)("event.numberOfDays"),
498
+ modelValue: e(l),
499
+ "onUpdate:modelValue": E[0] || (E[0] = (r) => I(l) ? l.value = r : null),
500
+ label: e(n)("event.numberOfDays"),
369
501
  "min-value": 1,
370
502
  required: ""
371
- }, null, 8, ["modelValue", "label"])) : u("", !0),
372
- r(be, {
373
- modelValue: e(T),
374
- "onUpdate:modelValue": g[1] || (g[1] = (o) => R(T) ? T.value = o : null),
375
- type: "text",
376
- label: e(l)("booking.reservation.name"),
377
- icon: "user-alt",
378
- placeholder: e(l)("booking.reservation.namePlaceholder"),
379
- required: ""
380
- }, null, 8, ["modelValue", "label", "placeholder"]),
381
- r(be, {
382
- modelValue: e(b),
383
- "onUpdate:modelValue": g[2] || (g[2] = (o) => R(b) ? b.value = o : null),
384
- label: e(l)("booking.reservation.email"),
385
- type: "email",
386
- name: "email",
387
- autocomplete: "email",
388
- icon: "at",
389
- placeholder: e(l)("booking.reservation.emailPlaceholder"),
390
- required: ""
391
- }, null, 8, ["modelValue", "label", "placeholder"]),
392
- r(gn, {
393
- modelValue: e(c),
394
- "onUpdate:modelValue": g[3] || (g[3] = (o) => R(c) ? c.value = o : null),
395
- label: e(l)("booking.reservation.phone"),
396
- icon: "phone-office",
397
- placeholder: e(l)("booking.reservation.phonePlaceholder"),
398
- required: ""
399
- }, null, 8, ["modelValue", "label", "placeholder"]),
400
- u("", !0),
401
- e(z) && e(z).length > 0 ? (a(), i("ul", Sn, [
402
- (a(!0), i(A, null, S(e(z), ({
403
- roomGroupID: o,
404
- addons: k,
405
- adultPerRoom: w
406
- }, f) => (a(), i("li", { key: o }, [
407
- n("h5", null, [
408
- n("span", null, t(e(l)("booking.reservation.room")) + " #" + t(f + 1), 1),
409
- he(" ("),
410
- r(C, {
503
+ }, null, 8, ["modelValue", "label"])) : h("", !0),
504
+ e(s) && e(s).length > 0 ? (a(), d("ul", jt, [
505
+ (a(!0), d(S, null, M(e(s), ({
506
+ roomGroupId: r,
507
+ addons: O,
508
+ adultPerRoom: C
509
+ }, T) => (a(), d("li", { key: r }, [
510
+ t("h5", null, [
511
+ t("span", null, o(e(n)("booking.reservation.room")) + " #" + o(T + 1), 1),
512
+ ke(" ("),
513
+ v(me, {
411
514
  icon: "male",
412
515
  type: "fas",
413
516
  color: "header"
414
517
  }),
415
- he(" " + t(w) + ") ", 1)
518
+ ke(" " + o(C) + ") ", 1)
416
519
  ]),
417
- n("table", Un, [
418
- n("thead", null, [
419
- n("tr", null, [
420
- n("th", null, [
421
- n("span", null, t(e(l)("booking.reservation.addons")), 1)
520
+ t("table", Yt, [
521
+ t("thead", null, [
522
+ t("tr", null, [
523
+ t("th", null, [
524
+ t("span", null, o(e(n)("booking.reservation.addons")), 1)
422
525
  ]),
423
- Rn,
424
- n("th", Nn, [
425
- n("span", null, t(e(l)("booking.availability.price")), 1)
526
+ Qt,
527
+ t("th", Zt, [
528
+ t("span", null, o(e(n)("booking.availability.price")), 1)
426
529
  ])
427
530
  ])
428
531
  ]),
429
- n("tbody", null, [
430
- (a(!0), i(A, null, S(k, ({
431
- addonID: y,
432
- cardinality: M,
433
- name: W,
434
- price: Y,
435
- quantityStrategy: X
436
- }) => (a(), i("tr", { key: y }, [
437
- n("td", null, [
438
- n("b", null, t(W), 1),
439
- Mn,
440
- n("span", null, t(e(O)(Y, e(v))) + " " + t(e(Ye)(X)), 1)
532
+ t("tbody", null, [
533
+ (a(!0), d(S, null, M(O, ({
534
+ id: w,
535
+ cardinality: Q,
536
+ name: Z,
537
+ price: ie,
538
+ quantityStrategy: re
539
+ }) => (a(), d("tr", { key: w }, [
540
+ t("td", null, [
541
+ t("b", null, o(Z), 1),
542
+ Kt,
543
+ t("span", null, o(e(R)(ie, e(Y))) + " " + o(e(Qe)(re)), 1)
441
544
  ]),
442
- n("td", qn, [
443
- M === 3 ? (a(), _(ee, {
545
+ t("td", Wt, [
546
+ Q === 3 ? (a(), V(oe, {
444
547
  key: 0,
445
- modelValue: e(m)[`${o}.${y}.${f}`],
446
- "onUpdate:modelValue": (q) => e(m)[`${o}.${y}.${f}`] = q,
548
+ modelValue: e(i)[`${r}.${w}.${T}`],
549
+ "onUpdate:modelValue": (K) => e(i)[`${r}.${w}.${T}`] = K,
447
550
  small: !0,
448
551
  "min-value": 0
449
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), _(ge, {
552
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), V(we, {
450
553
  key: 1,
451
- modelValue: e(m)[`${o}.${y}.${f}`],
452
- "onUpdate:modelValue": (q) => e(m)[`${o}.${y}.${f}`] = q,
554
+ modelValue: e(i)[`${r}.${w}.${T}`],
555
+ "onUpdate:modelValue": (K) => e(i)[`${r}.${w}.${T}`] = K,
453
556
  numeric: !0
454
557
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
455
558
  ]),
456
- n("td", Hn, [
457
- n("span", null, t(e(O)(e(re)(y, o, f), e(v))), 1)
559
+ t("td", Jt, [
560
+ t("span", null, o(e(R)(e(fe)(w, r, T), e(Y))), 1)
458
561
  ])
459
562
  ]))), 128))
460
563
  ]),
461
- n("tfoot", null, [
462
- n("tr", null, [
463
- In,
464
- n("td", zn, [
465
- n("u", null, [
466
- n("span", null, t(e(O)(e(ue)(o, f), e(v))), 1)
564
+ t("tfoot", null, [
565
+ t("tr", null, [
566
+ Xt,
567
+ t("td", xt, [
568
+ t("u", null, [
569
+ t("span", null, o(e(R)(e(Le)(r, T), e(Y))), 1)
467
570
  ])
468
571
  ])
469
572
  ])
470
573
  ])
471
574
  ])
472
575
  ]))), 128))
473
- ])) : u("", !0),
474
- e(se) !== e(ve).FullDayEvent && !e(L) ? (a(), i("div", jn, [
475
- n("label", Gn, [
476
- n("span", null, t(e(l)("event.selectArrivalTime")), 1)
576
+ ])) : h("", !0),
577
+ e(W) !== e(he).FullDayEvent && !e(N) ? (a(), d("div", en, [
578
+ t("label", tn, [
579
+ t("span", null, o(e(n)("event.selectArrivalTime")), 1)
477
580
  ]),
478
- n("ul", Zn, [
479
- (a(!0), i(A, null, S(e(Ce), (o, k) => (a(), i("li", { key: k }, [
480
- r(ge, {
481
- modelValue: e(D),
482
- "onUpdate:modelValue": g[6] || (g[6] = (w) => R(D) ? D.value = w : null),
581
+ t("ul", nn, [
582
+ (a(!0), d(S, null, M(e(b), (r, O) => (a(), d("li", {
583
+ key: O,
584
+ class: "konnectio-pill-button"
585
+ }, [
586
+ v(we, {
587
+ modelValue: e(p),
588
+ "onUpdate:modelValue": E[1] || (E[1] = (C) => I(p) ? p.value = C : null),
483
589
  type: "radio",
484
590
  name: "eventTimeTable",
485
- val: o.time,
486
- label: e(ne)(o.time)
591
+ val: r.time,
592
+ label: e(pe)(r.time)
487
593
  }, null, 8, ["modelValue", "val", "label"])
488
594
  ]))), 128))
489
595
  ])
490
- ])) : u("", !0),
491
- e(Oe) ? (a(), i("div", Qn, [
492
- n("label", Jn, [
493
- n("span", null, t(e(l)("event.selectProducts")), 1)
596
+ ])) : h("", !0),
597
+ e(L) ? (a(), d("div", on, [
598
+ t("label", ln, [
599
+ t("span", null, o(e(n)("event.selectProducts")), 1)
494
600
  ]),
495
- n("table", Kn, [
496
- n("thead", null, [
497
- n("tr", null, [
498
- n("th", null, [
499
- n("span", null, t(e(l)("booking.reservation.addons")), 1)
601
+ t("table", an, [
602
+ t("thead", null, [
603
+ t("tr", null, [
604
+ t("th", null, [
605
+ t("span", null, o(e(n)("booking.reservation.addons")), 1)
500
606
  ]),
501
- Wn,
502
- n("th", Yn, [
503
- n("span", null, t(e(l)("booking.availability.price")), 1)
607
+ sn,
608
+ t("th", rn, [
609
+ t("span", null, o(e(n)("booking.availability.price")), 1)
504
610
  ])
505
611
  ])
506
612
  ]),
507
- n("tbody", null, [
508
- (a(!0), i(A, null, S(e(Ae).products, ({ productID: o, productName: k, price: w, description: f }) => (a(), i("tr", { key: o }, [
509
- n("td", null, [
510
- n("b", null, [
511
- n("span", null, t(k), 1)
613
+ t("tbody", null, [
614
+ (a(!0), d(S, null, M(e(P).products, ({ productID: r, productName: O, price: C, description: T }) => (a(), d("tr", { key: r }, [
615
+ t("td", null, [
616
+ t("b", null, [
617
+ t("span", null, o(O), 1)
512
618
  ]),
513
- Xn,
514
- n("span", null, t(f), 1),
515
- xn,
516
- n("span", null, t(e(O)(w, e(v))), 1)
619
+ un,
620
+ t("span", null, o(T), 1),
621
+ dn,
622
+ t("span", null, o(e(R)(C, e(Y))), 1)
517
623
  ]),
518
- n("td", et, [
519
- r(ee, {
520
- modelValue: e(B)[o],
521
- "onUpdate:modelValue": (y) => e(B)[o] = y,
624
+ t("td", cn, [
625
+ v(oe, {
626
+ modelValue: e(c)[r],
627
+ "onUpdate:modelValue": (w) => e(c)[r] = w,
522
628
  small: !0,
523
629
  "min-value": 0
524
630
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
525
631
  ]),
526
- n("td", nt, [
527
- n("span", null, t(e(O)(e(re)(o), e(v))), 1)
632
+ t("td", mn, [
633
+ t("span", null, o(e(R)(e(fe)(r), e(Y))), 1)
528
634
  ])
529
635
  ]))), 128))
530
636
  ])
531
637
  ])
532
- ])) : u("", !0)
638
+ ])) : h("", !0)
533
639
  ])
534
640
  ]),
535
- resume: d(() => [
536
- n("li", null, [
537
- n("span", null, t(e(l)("event.numberOfGuests")), 1),
538
- n("b", null, t(e(H)), 1)
539
- ]),
540
- e(L) ? (a(), i("li", tt, [
541
- n("span", null, t(e(l)("event.numberOfRooms")), 1),
542
- n("b", null, t(e(K)), 1)
543
- ])) : u("", !0),
544
- e(L) ? (a(), i("li", lt, [
545
- n("span", null, t(e(l)("event.numberOfDays")), 1),
546
- n("b", null, t(e(I)), 1)
547
- ])) : u("", !0),
548
- e(L) ? (a(), i("li", at, [
549
- n("span", null, t(e(l)("booking.reservation.arrival")), 1),
550
- n("b", null, t(e(fe)(e(oe))), 1)
551
- ])) : u("", !0),
552
- e(L) ? (a(), i("li", ot, [
553
- n("span", null, t(e(l)("booking.reservation.departure")), 1),
554
- n("b", null, t(e(fe)(e(oe), e(I))), 1)
555
- ])) : u("", !0),
556
- !e(L) && e(D) ? (a(), i("li", st, [
557
- n("span", null, t(e(l)("event.startOfEvent")), 1),
558
- n("b", null, t(e(ne)(e(D))), 1)
559
- ])) : u("", !0),
560
- !e(L) && e(ae) ? (a(), i("li", it, [
561
- n("span", null, t(e(l)("event.lengthOfEvent")), 1),
562
- n("b", null, t(e(ne)(e(ae))), 1)
563
- ])) : u("", !0),
564
- !e(L) && e(ie) > 0 ? (a(), i("li", rt, [
565
- n("span", null, t(e(l)("booking.availability.basePrice")), 1),
566
- n("b", null, t(e(O)(e(ie), e(v))), 1)
567
- ])) : u("", !0)
641
+ navigation: m(() => [
642
+ v(ce, {
643
+ label: "Next",
644
+ "full-width": "",
645
+ onClickEvent: F
646
+ }, null, 8, ["onClickEvent"]),
647
+ t("button", {
648
+ class: "konnectio-abort-reservation link",
649
+ onClick: ye((r) => e(ge)(A), ["prevent"])
650
+ }, [
651
+ t("span", null, o(e(n)("general.goAStepBack")), 1)
652
+ ], 8, pn)
568
653
  ]),
569
- expenses: d(() => [
570
- (a(!0), i(A, null, S(e(z), ({ roomGroupID: o }, k) => (a(), i("li", { key: o }, [
571
- n("span", null, t(e(l)("booking.reservation.addons")) + " - " + t(e(l)("booking.reservation.room")) + " #" + t(k + 1), 1),
572
- n("b", null, t(e(O)(e(ue)(o, k), e(v))), 1)
573
- ]))), 128))
654
+ _: 2
655
+ }, 1024)) : h("", !0)
656
+ ]),
657
+ reservation: m(({ next: F, prev: A }) => [
658
+ v(de, {
659
+ "show-terms-notice": !0,
660
+ "show-gift-card": !0
661
+ }, {
662
+ form: m(() => [
663
+ t("form", vn, [
664
+ t("h2", null, [
665
+ t("span", null, o(e(n)("booking.reservation.detailsTitle")), 1)
666
+ ]),
667
+ v(ue, {
668
+ modelValue: e(_),
669
+ "onUpdate:modelValue": E[2] || (E[2] = (r) => I(_) ? _.value = r : null),
670
+ type: "text",
671
+ label: e(n)("booking.reservation.name"),
672
+ icon: "user-alt",
673
+ placeholder: e(n)("booking.reservation.namePlaceholder"),
674
+ required: ""
675
+ }, null, 8, ["modelValue", "label", "placeholder"]),
676
+ v(ue, {
677
+ modelValue: e($),
678
+ "onUpdate:modelValue": E[3] || (E[3] = (r) => I($) ? $.value = r : null),
679
+ label: e(n)("booking.reservation.email"),
680
+ type: "email",
681
+ name: "email",
682
+ autocomplete: "email",
683
+ icon: "at",
684
+ placeholder: e(n)("booking.reservation.emailPlaceholder"),
685
+ required: ""
686
+ }, null, 8, ["modelValue", "label", "placeholder"]),
687
+ v(pt, {
688
+ modelValue: e(g),
689
+ "onUpdate:modelValue": E[4] || (E[4] = (r) => I(g) ? g.value = r : null),
690
+ label: e(n)("booking.reservation.phone"),
691
+ icon: "phone-office",
692
+ placeholder: e(n)("booking.reservation.phonePlaceholder"),
693
+ required: ""
694
+ }, null, 8, ["modelValue", "label", "placeholder"]),
695
+ v(ue, {
696
+ modelValue: e(u),
697
+ "onUpdate:modelValue": E[5] || (E[5] = (r) => I(u) ? u.value = r : null),
698
+ type: "textarea",
699
+ label: `${e(n)("booking.reservation.remark")} (${e(n)("booking.reservation.optional")})`,
700
+ icon: "info-circle",
701
+ placeholder: e(n)("booking.reservation.remarkPlaceholder")
702
+ }, null, 8, ["modelValue", "label", "placeholder"])
703
+ ])
574
704
  ]),
575
- navigation: d(() => [
576
- r(Xe, {
577
- label: e(l)("general.confirmReservation"),
705
+ navigation: m(() => [
706
+ v(ce, {
707
+ label: e(n)("general.confirmReservation"),
708
+ "is-loading": e(U),
578
709
  "full-width": "",
579
- onClickEvent: (o) => e(Re)(j)
580
- }, null, 8, ["label", "onClickEvent"]),
581
- n("button", {
710
+ onClickEvent: (r) => e(Be)(F)
711
+ }, null, 8, ["label", "is-loading", "onClickEvent"]),
712
+ t("button", {
582
713
  class: "konnectio-abort-reservation link",
583
- onClick: xe((o) => e(Ne)(F), ["prevent"])
714
+ onClick: ye((r) => e(ge)(A), ["prevent"])
584
715
  }, [
585
- n("span", null, t(e(l)("general.goAStepBack")), 1)
586
- ], 8, ut)
716
+ t("span", null, o(e(n)("general.goAStepBack")), 1)
717
+ ], 8, fn)
587
718
  ]),
588
719
  _: 2
589
- }, 1032, ["remark", "is-filled", "is-loading", "base-price", "total-price", "weekend-fee", "room-upgrade"])) : u("", !0)
720
+ }, 1024)
590
721
  ]),
591
- payment: d(() => [
592
- r(kn)
722
+ payment: m(() => [
723
+ v(vt)
593
724
  ]),
594
- confirmation: d(() => [
595
- r(mn, {
596
- message: e(l)("event.confirmationMessage")
725
+ confirmation: m(() => [
726
+ v(it, {
727
+ message: e(n)("event.confirmationMessage")
597
728
  }, null, 8, ["message"])
598
729
  ]),
599
730
  _: 1
@@ -602,8 +733,8 @@ const $n = { key: 1 }, En = { key: 2 }, Tn = /* @__PURE__ */ J({
602
733
  _: 1
603
734
  }, 8, ["access-token"])
604
735
  ]),
605
- fallback: d(() => [
606
- r(Pn)
736
+ fallback: m(() => [
737
+ v(Ft)
607
738
  ]),
608
739
  _: 1
609
740
  }))
@@ -611,8 +742,8 @@ const $n = { key: 1 }, En = { key: 2 }, Tn = /* @__PURE__ */ J({
611
742
  _: 1
612
743
  }, 8, ["styling"]));
613
744
  }
614
- }), G = /* @__PURE__ */ le(dt, [["__scopeId", "data-v-274a2a78"]]), ct = an(), pt = un();
615
- class mt extends HTMLElement {
745
+ }), te = /* @__PURE__ */ ae(gn, [["__scopeId", "data-v-ec9cad2e"]]), bn = Xe(), hn = nt();
746
+ class kn extends HTMLElement {
616
747
  vueApp;
617
748
  constructor() {
618
749
  super();
@@ -621,25 +752,25 @@ class mt extends HTMLElement {
621
752
  this.vueApp.unmount();
622
753
  }
623
754
  connectedCallback() {
624
- const l = typeof G == "function" ? G.options : G;
625
- let p = Array.isArray(l.props) ? l.props : Object.keys(l.props || {});
626
- const m = (c) => c.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (b, h) => (h ? "-" : "") + b.toLowerCase()), B = (c) => c.replace(/-./g, (b) => b[1].toUpperCase()), $ = {};
627
- p = p.map(m);
628
- const E = {};
629
- for (const c of this.attributes) {
630
- const h = c.name.split(".");
631
- h.length > 1 && (E[h[0]] || (E[h[0]] = {}), E[h[0]][B(h[1])] = c.value);
755
+ const n = typeof te == "function" ? te.options : te;
756
+ let i = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
757
+ const c = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (p, k) => (k ? "-" : "") + p.toLowerCase()), l = (u) => u.replace(/-./g, (p) => p[1].toUpperCase()), _ = {};
758
+ i = i.map(c);
759
+ const g = {};
760
+ for (const u of this.attributes) {
761
+ const k = u.name.split(".");
762
+ k.length > 1 && (g[k[0]] || (g[k[0]] = {}), g[k[0]][l(k[1])] = u.value);
632
763
  }
633
- for (const c of p) {
634
- let b = this.attributes.getNamedItem(c)?.value;
635
- E.hasOwnProperty(c) && (b = E[c]), $[c] = b;
764
+ for (const u of i) {
765
+ let p = this.attributes.getNamedItem(u)?.value;
766
+ g.hasOwnProperty(u) && (p = g[u]), _[u] = p;
636
767
  }
637
- this.vueApp = on(G, $), this.vueApp.provide("emitter", pt), this.vueApp.use(sn), this.vueApp.use(ct), this.vueApp.use(vn), this.vueApp.use(bn), this.vueApp.use(rn, { bootstrap: !0 });
638
- const T = document.createElement("div");
639
- this.vueApp.mount(T), this.appendChild(T.children[0]);
768
+ this.vueApp = xe(te, _), this.vueApp.provide("emitter", hn), this.vueApp.use(et), this.vueApp.use(bn), this.vueApp.use(rt), this.vueApp.use(ut), this.vueApp.use(tt, { bootstrap: !0 });
769
+ const $ = document.createElement("div");
770
+ this.vueApp.mount($), this.appendChild($.children[0]);
640
771
  }
641
772
  }
642
- window.customElements.define("konnectio-event", mt);
773
+ window.customElements.define("konnectio-event", kn);
643
774
  export {
644
- mt as default
775
+ kn as default
645
776
  };