@konnectio/core 4.0.56-rc9 → 4.0.57

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