@konnectio/core 4.0.56-rc8 → 4.0.56

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