@konnectio/core 4.4.8 → 4.5.0

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 (130) hide show
  1. package/dist/ActionField-X2QEHCxM.js +148 -0
  2. package/dist/ActionField-X2QEHCxM.js.br +0 -0
  3. package/dist/ActionField-X2QEHCxM.js.gz +0 -0
  4. package/dist/AvailabilitySkeleton-sfPLQyx0.js +10131 -0
  5. package/dist/AvailabilitySkeleton-sfPLQyx0.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-sfPLQyx0.js.gz +0 -0
  7. package/dist/CheckoutWindow-BRnjOTlw.js +701 -0
  8. package/dist/CheckoutWindow-BRnjOTlw.js.br +0 -0
  9. package/dist/CheckoutWindow-BRnjOTlw.js.gz +0 -0
  10. package/dist/ErrorMessage-4qWixsXZ.js +31 -0
  11. package/dist/ErrorMessage-4qWixsXZ.js.br +0 -0
  12. package/dist/ErrorMessage-4qWixsXZ.js.gz +0 -0
  13. package/dist/EventAvailabilityForm-DAeAtR3I.js +114 -0
  14. package/dist/EventAvailabilityForm-DAeAtR3I.js.br +0 -0
  15. package/dist/EventAvailabilityForm-DAeAtR3I.js.gz +0 -0
  16. package/dist/Field-CyDf8ah0.js +57 -0
  17. package/dist/Field-CyDf8ah0.js.br +0 -0
  18. package/dist/Field-CyDf8ah0.js.gz +0 -0
  19. package/dist/HotelAvailabilityForm-BPSy0THr.js +317 -0
  20. package/dist/HotelAvailabilityForm-BPSy0THr.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-BPSy0THr.js.gz +0 -0
  22. package/dist/SelectField-CX4o6A18.js +11133 -0
  23. package/dist/SelectField-CX4o6A18.js.br +0 -0
  24. package/dist/SelectField-CX4o6A18.js.gz +0 -0
  25. package/dist/TermsOfService-CWjn_42W.js +17 -0
  26. package/dist/TermsOfService-CWjn_42W.js.br +5 -0
  27. package/dist/TermsOfService-CWjn_42W.js.gz +0 -0
  28. package/dist/_-qyWkj4S8.js +22 -0
  29. package/dist/_-qyWkj4S8.js.br +0 -0
  30. package/dist/_-qyWkj4S8.js.gz +0 -0
  31. package/dist/availability.js +99 -129
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +155 -158
  35. package/dist/cancel-reservation.js.br +0 -0
  36. package/dist/cancel-reservation.js.gz +0 -0
  37. package/dist/chunk-BPfpcrXh.js +20 -0
  38. package/dist/chunk-BPfpcrXh.js.br +0 -0
  39. package/dist/chunk-BPfpcrXh.js.gz +2 -0
  40. package/dist/core.css +2 -1
  41. package/dist/core.css.br +0 -0
  42. package/dist/core.css.gz +0 -0
  43. package/dist/deep-link.js +43 -47
  44. package/dist/deep-link.js.br +0 -0
  45. package/dist/deep-link.js.gz +0 -0
  46. package/dist/dist-CVBZ2agG.js +944 -0
  47. package/dist/dist-CVBZ2agG.js.br +0 -0
  48. package/dist/dist-CVBZ2agG.js.gz +0 -0
  49. package/dist/event.js +1069 -1192
  50. package/dist/event.js.br +0 -0
  51. package/dist/event.js.gz +0 -0
  52. package/dist/gift-card-validation.js +114 -161
  53. package/dist/gift-card-validation.js.br +0 -0
  54. package/dist/gift-card-validation.js.gz +0 -0
  55. package/dist/gift-card.js +452 -451
  56. package/dist/gift-card.js.br +0 -0
  57. package/dist/gift-card.js.gz +0 -0
  58. package/dist/giftCard-BrTMBQuW.js +101 -0
  59. package/dist/giftCard-BrTMBQuW.js.br +0 -0
  60. package/dist/giftCard-BrTMBQuW.js.gz +0 -0
  61. package/dist/hotel.js +8165 -10392
  62. package/dist/hotel.js.br +0 -0
  63. package/dist/hotel.js.gz +0 -0
  64. package/dist/masonry.plugin-Doip-tm0.js +8747 -0
  65. package/dist/masonry.plugin-Doip-tm0.js.br +0 -0
  66. package/dist/masonry.plugin-Doip-tm0.js.gz +0 -0
  67. package/dist/mitt-DrOLO7f9.js +9694 -0
  68. package/dist/mitt-DrOLO7f9.js.br +0 -0
  69. package/dist/mitt-DrOLO7f9.js.gz +0 -0
  70. package/dist/polyfill.js +9298 -11610
  71. package/dist/polyfill.js.br +0 -0
  72. package/dist/polyfill.js.gz +0 -0
  73. package/dist/style-k68BwP9N.js +1709 -0
  74. package/dist/style-k68BwP9N.js.br +0 -0
  75. package/dist/style-k68BwP9N.js.gz +0 -0
  76. package/package.json +24 -27
  77. package/dist/ActionField-DjYUsVEl.js +0 -103
  78. package/dist/ActionField-DjYUsVEl.js.br +0 -0
  79. package/dist/ActionField-DjYUsVEl.js.gz +0 -0
  80. package/dist/AvailabilitySkeleton-Ced6gdUY.js +0 -338
  81. package/dist/AvailabilitySkeleton-Ced6gdUY.js.br +0 -0
  82. package/dist/AvailabilitySkeleton-Ced6gdUY.js.gz +0 -0
  83. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js +0 -10188
  84. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js.br +0 -0
  85. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js.gz +0 -0
  86. package/dist/CheckoutWindow-B-HulkOw.js +0 -668
  87. package/dist/CheckoutWindow-B-HulkOw.js.br +0 -0
  88. package/dist/CheckoutWindow-B-HulkOw.js.gz +0 -0
  89. package/dist/ErrorMessage-C-LZif3u.js +0 -39
  90. package/dist/ErrorMessage-C-LZif3u.js.br +0 -0
  91. package/dist/ErrorMessage-C-LZif3u.js.gz +0 -0
  92. package/dist/EventAvailabilityForm-CdaoawQu.js +0 -119
  93. package/dist/EventAvailabilityForm-CdaoawQu.js.br +0 -0
  94. package/dist/EventAvailabilityForm-CdaoawQu.js.gz +0 -0
  95. package/dist/Field-BxQDGBO6.js +0 -44
  96. package/dist/Field-BxQDGBO6.js.br +0 -0
  97. package/dist/Field-BxQDGBO6.js.gz +0 -0
  98. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js +0 -21
  99. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js.br +0 -0
  100. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js.gz +0 -0
  101. package/dist/SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js +0 -11901
  102. package/dist/SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js.br +0 -0
  103. package/dist/SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js.gz +0 -0
  104. package/dist/TermsOfService-9-UO5S3G.js +0 -28
  105. package/dist/TermsOfService-9-UO5S3G.js.br +0 -0
  106. package/dist/TermsOfService-9-UO5S3G.js.gz +0 -0
  107. package/dist/_-DgORUiWu.js +0 -5
  108. package/dist/_-DgORUiWu.js.br +0 -0
  109. package/dist/_-DgORUiWu.js.gz +0 -0
  110. package/dist/_.vue_vue_type_style_index_0_lang-C8tlnRr1.js +0 -25
  111. package/dist/_.vue_vue_type_style_index_0_lang-C8tlnRr1.js.br +0 -0
  112. package/dist/_.vue_vue_type_style_index_0_lang-C8tlnRr1.js.gz +0 -0
  113. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
  114. package/dist/_commonjsHelpers-DaMA6jEr.js.br +0 -0
  115. package/dist/_commonjsHelpers-DaMA6jEr.js.gz +0 -0
  116. package/dist/giftCard-D-f02FPM.js +0 -109
  117. package/dist/giftCard-D-f02FPM.js.br +0 -0
  118. package/dist/giftCard-D-f02FPM.js.gz +0 -0
  119. package/dist/index-CBRMHLd-.js +0 -639
  120. package/dist/index-CBRMHLd-.js.br +0 -0
  121. package/dist/index-CBRMHLd-.js.gz +0 -0
  122. package/dist/masonry.plugin-emIQEcmM.js +0 -10816
  123. package/dist/masonry.plugin-emIQEcmM.js.br +0 -0
  124. package/dist/masonry.plugin-emIQEcmM.js.gz +0 -0
  125. package/dist/mitt-Cj---5fy.js +0 -13346
  126. package/dist/mitt-Cj---5fy.js.br +0 -0
  127. package/dist/mitt-Cj---5fy.js.gz +0 -0
  128. package/dist/style-DLdT0Zxs.js +0 -1750
  129. package/dist/style-DLdT0Zxs.js.br +0 -0
  130. package/dist/style-DLdT0Zxs.js.gz +0 -0
package/dist/event.js CHANGED
@@ -1,1194 +1,1071 @@
1
- import { d as M, u as _, s as q, c as v, a as l, g as e, w as b, q as K, e as n, i as r, b as Y, r as Ae, f as h, n as ot, h as s, t as o, F as N, v as R, o as it, j as st, x as ue, y as rt, z as S, A as dt, S as ct, k as ut, _ as mt, l as vt, m as bt, p as gt } from "./mitt-Cj---5fy.js";
2
- import { G as ft } from "./style-DLdT0Zxs.js";
3
- import { a as Ee, f as oe, g as X, h as Se, B as kt, i as ae, l as yt, s as z, d as me, _ as G, I as le, j as ht, k as ve, u as Pe, m as pt, n as Dt, o as Pt, p as J, T as ce, O as Et, q as $t, r as xe, C as wt, t as Ot, v as xt } from "./SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js";
4
- import { _ as Tt } from "./_.vue_vue_type_style_index_0_lang-C8tlnRr1.js";
5
- import { B as Vt, _ as Ft, R as Nt, L as Re, S as Lt, M as Ct, T as Bt, C as It, V as At, a as St } from "./masonry.plugin-emIQEcmM.js";
6
- import { g as Rt, e as Mt, c as Ut, n as Ht, a as Te, b as Gt, m as Ve, d as Fe, f as Ne, h as Le, _ as zt } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js";
7
- import { C as qt, P as Yt, a as Ce } from "./CheckoutWindow-B-HulkOw.js";
8
- import { E as jt } from "./EventAvailabilityForm-CdaoawQu.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js";
10
- import { f as Wt } from "./index-CBRMHLd-.js";
11
- function Zt(t, i, a) {
12
- const E = Rt(), m = a?.locale ?? E.locale ?? Mt, f = Ut(t, i);
13
- if (isNaN(f))
14
- throw new RangeError("Invalid time value");
15
- const g = Object.assign({}, a, {
16
- addSuffix: a?.addSuffix,
17
- comparison: f
18
- }), [k, p] = Ht(
19
- a?.in,
20
- ...f > 0 ? [i, t] : [t, i]
21
- ), D = Gt("round"), $ = p.getTime() - k.getTime(), P = $ / Le, T = Te(p) - Te(k), w = ($ - T) / Le, x = a?.unit;
22
- let u;
23
- if (P < 1 ? u = "second" : P < 60 ? u = "minute" : P < Ve ? u = "hour" : w < Fe ? u = "day" : w < Ne ? u = "month" : u = "year", u === "second") {
24
- const y = D($ / 1e3);
25
- return m.formatDistance("xSeconds", y, g);
26
- } else if (u === "minute") {
27
- const y = D(P);
28
- return m.formatDistance("xMinutes", y, g);
29
- } else if (u === "hour") {
30
- const y = D(P / 60);
31
- return m.formatDistance("xHours", y, g);
32
- } else if (u === "day") {
33
- const y = D(w / Ve);
34
- return m.formatDistance("xDays", y, g);
35
- } else if (u === "month") {
36
- const y = D(w / Fe);
37
- return y === 12 && x !== "month" ? m.formatDistance("xYears", 1, g) : m.formatDistance("xMonths", y, g);
38
- } else {
39
- const y = D(w / Ne);
40
- return m.formatDistance("xYears", y, g);
41
- }
1
+ import { $ as e, A as t, At as n, D as r, Dt as i, E as a, Et as o, M as s, O as c, P as l, S as u, T as d, Y as f, bt as p, c as m, dt as h, et as g, gt as _, j as v, k as y, o as b, p as x, q as S, r as C, s as w, st as T, t as E, u as D, x as O, y as k } from "./mitt-DrOLO7f9.js";
2
+ import { t as A } from "./dist-CVBZ2agG.js";
3
+ import { B as ee, C as j, D as te, E as M, F as N, G as P, H as F, J as I, K as L, L as R, M as z, Q as ne, S as B, U as V, X as H, Y as U, b as re, dt as ie, n as W, r as G, rt as ae, v as K, w as q, x as J, z as oe } from "./SelectField-CX4o6A18.js";
4
+ import { t as se } from "./_-qyWkj4S8.js";
5
+ import { a as ce, c as le, d as ue, f as de, i as fe, l as pe, n as me, o as he, r as Y, s as X, u as ge } from "./AvailabilitySkeleton-sfPLQyx0.js";
6
+ import { t as _e } from "./EventAvailabilityForm-DAeAtR3I.js";
7
+ import { t as ve } from "./style-k68BwP9N.js";
8
+ import { a as ye, c as be, d as Z, l as xe, n as Q, o as Se, r as Ce, s as we, t as Te, u as Ee } from "./masonry.plugin-Doip-tm0.js";
9
+ import { i as De, r as Oe, t as ke } from "./CheckoutWindow-BRnjOTlw.js";
10
+ //#region node_modules/date-fns/formatDistanceStrict.js
11
+ function Ae(e, t, n) {
12
+ let r = le(), i = n?.locale ?? r.locale ?? Y, a = ce(e, t);
13
+ if (isNaN(a)) throw RangeError("Invalid time value");
14
+ let o = Object.assign({}, n, {
15
+ addSuffix: n?.addSuffix,
16
+ comparison: a
17
+ }), [s, c] = he(n?.in, ...a > 0 ? [t, e] : [e, t]), l = fe(n?.roundingMethod ?? "round"), u = c.getTime() - s.getTime(), d = u / pe, f = (u - (X(c) - X(s))) / pe, p = n?.unit, m;
18
+ if (m = p || (d < 1 ? "second" : d < 60 ? "minute" : d < 1440 ? "hour" : f < 43200 ? "day" : f < 525600 ? "month" : "year"), m === "second") {
19
+ let e = l(u / 1e3);
20
+ return i.formatDistance("xSeconds", e, o);
21
+ } else if (m === "minute") {
22
+ let e = l(d);
23
+ return i.formatDistance("xMinutes", e, o);
24
+ } else if (m === "hour") {
25
+ let e = l(d / 60);
26
+ return i.formatDistance("xHours", e, o);
27
+ } else if (m === "day") {
28
+ let e = l(f / ge);
29
+ return i.formatDistance("xDays", e, o);
30
+ } else if (m === "month") {
31
+ let e = l(f / ue);
32
+ return e === 12 && p !== "month" ? i.formatDistance("xYears", 1, o) : i.formatDistance("xMonths", e, o);
33
+ } else {
34
+ let e = l(f / de);
35
+ return i.formatDistance("xYears", e, o);
36
+ }
42
37
  }
43
- const Qt = { class: "konnectio-event-listing-action-button" }, Jt = /* @__PURE__ */ M({
44
- __name: "_",
45
- props: {
46
- name: {},
47
- description: {},
48
- toDate: {},
49
- listingId: {},
50
- tableGroupId: {},
51
- days: {},
52
- length: {},
53
- timeFrom: {},
54
- timeTo: {},
55
- maxOnlineReservationLimit: {},
56
- minimumPersonCount: {},
57
- maxGuests: {},
58
- fromPrice: { default: 0 },
59
- gallery: {},
60
- soldOut: { type: Boolean, default: !1 },
61
- useNumberOfProductsForPersons: { type: Boolean },
62
- type: {},
63
- trackingEnabled: { type: Boolean },
64
- disableDeepLink: { type: Boolean, default: !1 },
65
- callback: {}
66
- },
67
- setup(t) {
68
- const { t: i } = _(), a = t, { display: E } = Ee(), {
69
- hideEventGuestAmount: m
70
- } = q(oe()), {
71
- maxNumberOfPeople: f,
72
- numberOfPeople: g,
73
- eventId: k,
74
- currentEventDate: p,
75
- tableGroupId: D
76
- } = q(X()), {
77
- getTemplateAvailability: $,
78
- getEventAvailability: P,
79
- isEventListingLoading: T
80
- } = X(), { addToCart: w } = Se(), x = Y(() => a.maxGuests || a.maxOnlineReservationLimit || f.value || 1 / 0), u = Ae(0), y = Y(() => T(a.listingId)), j = () => {
81
- if (!a.useNumberOfProductsForPersons && (u.value === 0 || isNaN(u.value))) {
82
- E({
83
- type: "error",
84
- message: i("alert.error.selectPeople")
85
- });
86
- return;
87
- }
88
- a.trackingEnabled && w({
89
- id: a.listingId,
90
- name: a.name,
91
- value: a.fromPrice || 0
92
- }), k.value = a.listingId, g.value = a.useNumberOfProductsForPersons ? NaN : u.value, $(a.callback);
93
- }, B = () => {
94
- if (!a.useNumberOfProductsForPersons && (u.value === 0 || isNaN(u.value))) {
95
- E({
96
- type: "error",
97
- message: i("alert.error.selectPeople")
98
- });
99
- return;
100
- }
101
- a.trackingEnabled && w({
102
- id: a.listingId,
103
- name: a.name,
104
- value: a.fromPrice || 0
105
- }), k.value = a.listingId, D.value = a.tableGroupId, g.value = a.useNumberOfProductsForPersons ? NaN : u.value, P(a.callback);
106
- };
107
- return (C, U) => (l(), v(Vt, {
108
- type: "event",
109
- "listing-id": t.listingId,
110
- gallery: t.gallery,
111
- name: t.name,
112
- description: t.description,
113
- "prices-from": t.fromPrice,
114
- "to-date": t.toDate,
115
- layout: e(kt).Event,
116
- "disable-deep-link": t.disableDeepLink
117
- }, {
118
- description: b(() => [
119
- K(C.$slots, "description", { maxNumberOfPeople: e(f) }, void 0, !0)
120
- ]),
121
- action: b(() => [
122
- K(C.$slots, "action", {}, () => [
123
- n("div", {
124
- class: ot([
125
- "konnectio-event-listing-action",
126
- { "no-selectable-people": t.useNumberOfProductsForPersons }
127
- ])
128
- }, [
129
- t.useNumberOfProductsForPersons ? r("", !0) : (l(), v(ae, {
130
- key: 0,
131
- modelValue: u.value,
132
- "onUpdate:modelValue": U[0] || (U[0] = (Q) => u.value = Q),
133
- label: e(i)("event.numberOfGuests"),
134
- icon: "users",
135
- "icon-type": "fas",
136
- "icon-placement": "label",
137
- description: x.value <= 20 && !e(m) ? `${e(i)("general.availableFor")}: 1 - ${x.value} ${e(yt)(e(i)("general.guests"))}` : void 0,
138
- "min-value": 0,
139
- "max-value": x.value
140
- }, null, 8, ["modelValue", "label", "description", "max-value"])),
141
- n("div", Qt, [
142
- h(me, {
143
- label: t.soldOut ? e(i)("event.soldOut") : e(i)("event.bookNowButton"),
144
- disabled: t.soldOut,
145
- "is-loading": y.value,
146
- "full-width": "",
147
- "sub-label": e(z)(e(p)),
148
- onClickEvent: U[1] || (U[1] = (Q) => t.type === "event" ? B() : j())
149
- }, null, 8, ["label", "disabled", "is-loading", "sub-label"])
150
- ])
151
- ], 2)
152
- ], !0)
153
- ]),
154
- _: 3
155
- }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout", "disable-deep-link"]));
156
- }
157
- }), Me = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-23ac9949"]]), Kt = { class: "konnectio-event-listing-information-new" };
158
- const Xt = {
159
- key: 1,
160
- class: "konnectio-pill-button"
161
- }, _t = {
162
- key: 2,
163
- class: "konnectio-pill-button"
164
- }, en = { key: 0 }, tn = { key: 1 }, nn = /* @__PURE__ */ M({
165
- __name: "Event",
166
- props: {
167
- name: {},
168
- description: {},
169
- fromDate: {},
170
- toDate: {},
171
- length: {},
172
- timeFrom: {},
173
- timeTo: {},
174
- gallery: {},
175
- days: {},
176
- listingId: {},
177
- tableGroupId: {},
178
- maxOnlineReservationLimit: {},
179
- minimumPersonCount: {},
180
- fromPrice: { default: 0 },
181
- soldOut: { type: Boolean },
182
- useNumberOfProductsForPersons: { type: Boolean },
183
- trackingEnabled: { type: Boolean },
184
- callback: {}
185
- },
186
- setup(t) {
187
- const i = t, { t: a } = _(), {
188
- hideEventLength: E,
189
- hideEventEndTime: m
190
- } = q(oe()), f = Y(() => {
191
- if (!i.length)
192
- return;
193
- const g = i.length.split(":");
194
- return Zt(
195
- new Date(2e3, 0, 1, Number(g[0]), Number(g[1]), 0),
196
- new Date(2e3, 0, 1, 0, 0, 0)
197
- );
198
- });
199
- return (g, k) => (l(), v(Me, {
200
- "listing-id": t.listingId,
201
- name: t.name,
202
- description: t.description,
203
- gallery: t.gallery,
204
- "prices-from": t.fromPrice,
205
- "table-group-id": t.tableGroupId,
206
- "max-guests": t.maxOnlineReservationLimit,
207
- "use-number-of-products-for-persons": t.useNumberOfProductsForPersons,
208
- "to-date": t.toDate,
209
- "sold-out": t.soldOut,
210
- type: "event",
211
- "tracking-enabled": t.trackingEnabled,
212
- callback: t.callback
213
- }, {
214
- description: b(() => [
215
- t.description ? (l(), v(Ft, {
216
- key: 0,
217
- text: t.description
218
- }, null, 8, ["text"])) : r("", !0),
219
- n("ul", Kt, [
220
- r("", !0),
221
- !e(E) && f.value ? (l(), s("li", Xt, [
222
- n("div", null, [
223
- h(le, {
224
- icon: "calendar-clock",
225
- color: "header"
226
- }),
227
- n("span", null, o(e(a)("event.lengthOfEvent")), 1)
228
- ]),
229
- n("span", null, o(f.value), 1)
230
- ])) : r("", !0),
231
- t.timeFrom ? (l(), s("li", _t, [
232
- n("div", null, [
233
- h(le, {
234
- icon: "calendar-clock",
235
- color: "header"
236
- }),
237
- n("span", null, o(e(a)("event.startAndEndTime")), 1)
238
- ]),
239
- e(m) ? (l(), s("span", tn, o(e(ve)(t.timeFrom)), 1)) : (l(), s("span", en, o(e(ht)(t.timeFrom, t.timeTo)), 1))
240
- ])) : r("", !0)
241
- ])
242
- ]),
243
- action: b(() => [
244
- K(g.$slots, "action", {}, void 0, !0)
245
- ]),
246
- _: 3
247
- }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "use-number-of-products-for-persons", "to-date", "sold-out", "tracking-enabled", "callback"]));
248
- }
249
- }), be = /* @__PURE__ */ G(nn, [["__scopeId", "data-v-40cbbf2c"]]), an = {
250
- key: 0,
251
- class: "konnectio-event-grouped-listings-container"
252
- }, ln = { class: "konnectio-event-grouped-listings" }, on = /* @__PURE__ */ M({
253
- __name: "Event",
254
- props: {
255
- name: {},
256
- events: {},
257
- trackingEnabled: { type: Boolean },
258
- callback: { type: Function }
259
- },
260
- setup(t) {
261
- return (i, a) => t.events && t.events.length > 1 ? (l(), s("div", an, [
262
- r("", !0),
263
- n("ul", ln, [
264
- (l(!0), s(N, null, R(t.events, ({
265
- id: E,
266
- days: m,
267
- name: f,
268
- timeFrom: g,
269
- timeTo: k,
270
- tableGroupId: p,
271
- description: D,
272
- soldOut: $,
273
- length: P,
274
- images: T,
275
- maxOnlineReservationLimit: w,
276
- maxPaxPerReservation: x,
277
- useNumberOfProductsForPersons: u,
278
- maxTicketsLimit: y
279
- }) => (l(), v(be, {
280
- key: E,
281
- type: "event",
282
- "listing-id": E,
283
- "table-group-id": p,
284
- description: D,
285
- name: f,
286
- length: P,
287
- gallery: T,
288
- days: m,
289
- "max-online-reservation-limit": x || w || y || void 0,
290
- "time-from": g,
291
- "time-to": k,
292
- "sold-out": $,
293
- "use-number-of-products-for-persons": u,
294
- "tracking-enabled": t.trackingEnabled,
295
- callback: t.callback
296
- }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "tracking-enabled", "callback"]))), 128))
297
- ])
298
- ])) : t.events ? (l(), v(be, {
299
- key: t.events[0].id,
300
- type: "event",
301
- "listing-id": t.events[0].id,
302
- "table-group-id": t.events[0].tableGroupId,
303
- description: t.events[0].description,
304
- name: t.events[0].name,
305
- length: t.events[0].length,
306
- gallery: t.events[0].images,
307
- days: t.events[0].days,
308
- "from-date": t.events[0].fromDate,
309
- "to-date": t.events[0].toDate,
310
- "max-online-reservation-limit": t.events[0].maxPaxPerReservation || t.events[0].maxOnlineReservationLimit || t.events[0].maxTicketsLimit || void 0,
311
- "time-from": t.events[0].timeFrom,
312
- "time-to": t.events[0].timeTo,
313
- "sold-out": t.events[0].soldOut,
314
- "use-number-of-products-for-persons": t.events[0].useNumberOfProductsForPersons,
315
- "tracking-enabled": t.trackingEnabled,
316
- callback: t.callback
317
- }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "tracking-enabled", "callback"])) : r("", !0);
318
- }
319
- }), sn = /* @__PURE__ */ G(on, [["__scopeId", "data-v-374ad034"]]), rn = { class: "konnectio-special-offer-availability" }, dn = { class: "konnectio-special-offer-availability-button" }, cn = { class: "konnectio-warning-notice" }, un = { key: 0 }, mn = { key: 1 }, vn = /* @__PURE__ */ M({
320
- __name: "NextEvent",
321
- props: {
322
- name: {},
323
- description: {},
324
- fromDate: {},
325
- toDate: {},
326
- length: {},
327
- timeFrom: {},
328
- timeTo: {},
329
- gallery: {},
330
- days: {},
331
- listingId: {},
332
- tableGroupId: {},
333
- maxOnlineReservationLimit: {},
334
- minimumPersonCount: {},
335
- soldOut: { type: Boolean },
336
- useNumberOfProductsForPersons: { type: Boolean },
337
- trackingEnabled: { type: Boolean },
338
- callback: { type: Function }
339
- },
340
- setup(t) {
341
- const { t: i } = _(), { updateEventDate: a } = Pe(), { display: E } = Ee(), m = Ae(), f = t;
342
- function g() {
343
- m.value ? a(m.value) : E({
344
- message: i("alert.error.selectDate"),
345
- type: "error"
346
- });
347
- }
348
- const k = Y(() => Dt(f.fromDate, f.toDate) <= 1), p = Y(() => [0, 1, 2, 3, 4, 5, 6].filter((D) => !Pt(f.days).includes(D)));
349
- return it(() => {
350
- k.value && (m.value = new Date(f.fromDate));
351
- }), (D, $) => (l(), v(be, {
352
- name: t.name,
353
- description: t.description,
354
- "from-date": t.fromDate,
355
- "to-date": t.toDate,
356
- length: t.length,
357
- "time-from": t.timeFrom,
358
- "time-to": t.timeTo,
359
- gallery: t.gallery,
360
- days: t.days,
361
- "listing-id": t.listingId,
362
- "table-group-id": t.tableGroupId,
363
- "max-online-reservation-limit": t.maxOnlineReservationLimit,
364
- "minimum-person-count": t.minimumPersonCount,
365
- "use-number-of-products-for-persons": t.useNumberOfProductsForPersons,
366
- "tracking-enabled": t.trackingEnabled,
367
- "sold-out": t.soldOut,
368
- callback: t.callback,
369
- "disable-deep-link": !0
370
- }, {
371
- action: b(() => [
372
- n("div", null, [
373
- n("div", rn, [
374
- h(zt, {
375
- modelValue: m.value,
376
- "onUpdate:modelValue": $[0] || ($[0] = (P) => m.value = P),
377
- label: `${e(i)("event.selectDate")}*`,
378
- placeholder: e(i)("event.selectDate"),
379
- "icon-type": "fas",
380
- "icon-placement": "label",
381
- readonly: k.value,
382
- "start-date": t.fromDate !== "0001-01-01T00:00:00Z" ? new Date(t.fromDate) : new Date(t.toDate),
383
- "min-date": t.fromDate !== "0001-01-01T00:00:00Z" ? new Date(t.fromDate) : new Date(t.toDate),
384
- "max-date": new Date(t.toDate),
385
- "disabled-week-days": p.value
386
- }, null, 8, ["modelValue", "label", "placeholder", "readonly", "start-date", "min-date", "max-date", "disabled-week-days"]),
387
- n("div", dn, [
388
- h(me, {
389
- label: e(i)("availability.buttonLabel"),
390
- onClick: st(g, ["prevent"])
391
- }, null, 8, ["label"])
392
- ])
393
- ]),
394
- n("div", cn, [
395
- k.value ? (l(), s("span", un, [
396
- ue("*" + o(e(i)("event.canBeBooked")) + " ", 1),
397
- n("u", null, o(e(z)(t.fromDate)), 1)
398
- ])) : (l(), s("span", mn, [
399
- ue("*" + o(e(i)("event.canBeBooked")) + " ", 1),
400
- n("u", null, o(e(pt)(t.days)), 1)
401
- ]))
402
- ])
403
- ])
404
- ]),
405
- _: 1
406
- }, 8, ["name", "description", "from-date", "to-date", "length", "time-from", "time-to", "gallery", "days", "listing-id", "table-group-id", "max-online-reservation-limit", "minimum-person-count", "use-number-of-products-for-persons", "tracking-enabled", "sold-out", "callback"]));
407
- }
408
- }), Be = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-f6aed3b0"]]), bn = {
409
- key: 0,
410
- class: "konnectio-event-grouped-listings-container"
411
- }, gn = { class: "konnectio-event-grouped-listings" }, fn = /* @__PURE__ */ M({
412
- __name: "NextEvent",
413
- props: {
414
- name: {},
415
- events: {},
416
- trackingEnabled: { type: Boolean },
417
- callback: { type: Function }
418
- },
419
- setup(t) {
420
- return (i, a) => t.events && t.events.length > 1 ? (l(), s("div", bn, [
421
- r("", !0),
422
- n("ul", gn, [
423
- (l(!0), s(N, null, R(t.events, ({
424
- id: E,
425
- days: m,
426
- name: f,
427
- timeFrom: g,
428
- timeTo: k,
429
- fromDate: p,
430
- toDate: D,
431
- tableGroupId: $,
432
- description: P,
433
- soldOut: T,
434
- length: w,
435
- images: x,
436
- maxOnlineReservationLimit: u,
437
- maxPaxPerReservation: y,
438
- useNumberOfProductsForPersons: j,
439
- maxTicketsLimit: B
440
- }) => (l(), v(Be, {
441
- key: E,
442
- type: "event",
443
- "listing-id": E,
444
- "table-group-id": $,
445
- description: P,
446
- name: f,
447
- length: w,
448
- gallery: x,
449
- days: m,
450
- "from-date": p,
451
- "to-date": D,
452
- "max-online-reservation-limit": y || u || B || void 0,
453
- "time-from": g,
454
- "time-to": k,
455
- "sold-out": T,
456
- "use-number-of-products-for-persons": j,
457
- "tracking-enabled": t.trackingEnabled,
458
- callback: t.callback
459
- }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "tracking-enabled", "callback"]))), 128))
460
- ])
461
- ])) : t.events ? (l(), v(Be, {
462
- key: t.events[0].id,
463
- type: "event",
464
- "listing-id": t.events[0].id,
465
- "table-group-id": t.events[0].tableGroupId,
466
- description: t.events[0].description,
467
- name: t.events[0].name,
468
- length: t.events[0].length,
469
- gallery: t.events[0].images,
470
- days: t.events[0].days,
471
- "from-date": t.events[0].fromDate,
472
- "to-date": t.events[0].toDate,
473
- "max-online-reservation-limit": t.events[0].maxPaxPerReservation || t.events[0].maxOnlineReservationLimit || t.events[0].maxTicketsLimit || void 0,
474
- "time-from": t.events[0].timeFrom,
475
- "time-to": t.events[0].timeTo,
476
- "sold-out": t.events[0].soldOut,
477
- "use-number-of-products-for-persons": t.events[0].useNumberOfProductsForPersons,
478
- "tracking-enabled": t.trackingEnabled,
479
- callback: t.callback
480
- }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "tracking-enabled", "callback"])) : r("", !0);
481
- }
482
- }), kn = /* @__PURE__ */ G(fn, [["__scopeId", "data-v-39263761"]]), yn = ["innerHTML"], hn = /* @__PURE__ */ M({
483
- __name: "FallbackEvent",
484
- props: {
485
- name: {},
486
- description: {},
487
- fromDate: {},
488
- gallery: {},
489
- days: {},
490
- listingId: {},
491
- trackingEnabled: { type: Boolean },
492
- callback: { type: Function }
493
- },
494
- setup(t) {
495
- const { t: i } = _();
496
- return (a, E) => (l(), v(be, {
497
- name: t.name,
498
- description: t.description,
499
- "from-date": t.fromDate,
500
- gallery: t.gallery,
501
- days: t.days,
502
- "listing-id": t.listingId,
503
- "tracking-enabled": t.trackingEnabled,
504
- callback: t.callback,
505
- "disable-deep-link": !0
506
- }, {
507
- action: b(() => [
508
- n("div", {
509
- class: "konnectio-filter-notice konnectio-top-message",
510
- innerHTML: e(i)("event.notAvailable", { name: `<b>${t.name}</b>` })
511
- }, null, 8, yn)
512
- ]),
513
- _: 1
514
- }, 8, ["name", "description", "from-date", "gallery", "days", "listing-id", "tracking-enabled", "callback"]));
515
- }
516
- }), pn = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-0167deff"]]), Dn = /* @__PURE__ */ M({
517
- __name: "Template",
518
- props: {
519
- name: {},
520
- description: {},
521
- fromDate: {},
522
- toDate: {},
523
- listingId: {},
524
- tableGroupId: {},
525
- maxOnlineReservationLimit: {},
526
- minimumPersonCount: {},
527
- fromPrice: { default: 0 },
528
- images: {},
529
- trackingEnabled: { type: Boolean },
530
- callback: {}
531
- },
532
- setup(t) {
533
- return (i, a) => (l(), v(Me, {
534
- "listing-id": t.listingId,
535
- gallery: t.images,
536
- name: t.name,
537
- description: t.description,
538
- "prices-from": t.fromPrice,
539
- "to-date": t.toDate,
540
- type: "template",
541
- "tracking-enabled": t.trackingEnabled,
542
- callback: t.callback
543
- }, null, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "tracking-enabled", "callback"]));
544
- }
545
- }), Pn = {
546
- key: 0,
547
- class: "konnectio-panel konnectio-reservation-notice-mobile"
548
- }, En = ["innerHTML"], $n = { key: 0 }, wn = { key: 1 }, On = { key: 2 }, xn = { key: 0 }, Tn = { key: 4 }, Vn = { key: 5 }, Fn = { key: 6 }, Nn = { key: 0 }, Ln = { key: 0 }, Cn = { key: 1 }, Bn = {
549
- key: 0,
550
- class: "konnectio-capitalize"
551
- }, In = /* @__PURE__ */ M({
552
- __name: "EventReservationForm",
553
- props: {
554
- showGiftCard: { type: Boolean, default: !1 },
555
- showTermsNotice: { type: Boolean, default: !1 },
556
- prevCallback: {}
557
- },
558
- setup(t) {
559
- const { t: i } = _(), a = rt(), {
560
- areListingsAvailable: E,
561
- arrivalTime: m,
562
- numberOfPeople: f,
563
- numberOfRooms: g,
564
- numberOfTotalDays: k,
565
- isTemplateEvent: p,
566
- currentEventDate: D,
567
- length: $,
568
- fromDate: P,
569
- tableBasePrice: T,
570
- getTemplateData: w,
571
- basePrice: x,
572
- totalPrice: u,
573
- weekendFee: y,
574
- roomUpgrade: j,
575
- discountCode: B,
576
- totalSelectedProducts: C,
577
- discountValue: U,
578
- appliedDiscountCode: Q
579
- } = q(X()), { totalAddonPrice: ie, validateDiscountCode: ge } = X(), { currency: se, hideEventLength: fe } = q(oe()), ee = i("event.reservationNotice");
580
- return (te, re) => (l(), v(Nt, {
581
- "discount-code": e(B),
582
- "onUpdate:discountCode": re[0] || (re[0] = (W) => S(B) ? B.value = W : null),
583
- "validate-discount-code": e(ge),
584
- "show-gift-card": t.showGiftCard,
585
- "show-terms-notice": t.showTermsNotice,
586
- "is-sidebar-loading": !e(E),
587
- "base-price": e(x),
588
- "total-price": e(u),
589
- "weekend-fee": e(y),
590
- "room-upgrade": e(j),
591
- notice: e(ee),
592
- "prev-callback": t.prevCallback
593
- }, dt({
594
- form: b(() => [
595
- K(te.$slots, "form", {}, void 0, !0),
596
- e(ee) ? (l(), s("div", Pn, [
597
- n("p", {
598
- innerHTML: e(ee),
599
- class: "konnectio-wysiwyg"
600
- }, null, 8, En)
601
- ])) : r("", !0)
602
- ]),
603
- "reservation-summary": b(() => [
604
- e(p) ? r("", !0) : (l(), s("li", $n, [
605
- n("span", null, o(e(i)("general.date")), 1),
606
- n("b", null, o(e(z)(e(D))), 1)
607
- ])),
608
- e(f) > 0 ? (l(), s("li", wn, [
609
- n("span", null, o(e(i)("event.numberOfGuests")), 1),
610
- n("b", null, o(e(f)), 1)
611
- ])) : r("", !0),
612
- !e(p) && e(C) > 0 ? (l(), s("li", On, [
613
- n("span", null, o(e(i)("event.numberOfProducts")), 1),
614
- n("b", null, o(e(C)), 1)
615
- ])) : r("", !0),
616
- e(p) ? (l(), s(N, { key: 3 }, [
617
- n("li", null, [
618
- n("span", null, o(e(i)("booking.reservation.arrival")), 1),
619
- n("b", null, o(e(z)(e(P))), 1)
620
- ]),
621
- n("li", null, [
622
- n("span", null, o(e(i)("booking.reservation.departure")), 1),
623
- n("b", null, o(e(z)(e(P), e(k))), 1)
624
- ]),
625
- n("li", null, [
626
- n("span", null, o(e(i)("event.numberOfRooms")), 1),
627
- n("b", null, o(e(g)), 1)
628
- ]),
629
- e(k) > 0 ? (l(), s("li", xn, [
630
- n("span", null, o(e(i)("event.numberOfDays")), 1),
631
- n("b", null, o(e(k)), 1)
632
- ])) : r("", !0)
633
- ], 64)) : r("", !0),
634
- !e(p) && e(m) ? (l(), s("li", Tn, [
635
- n("span", null, o(e(i)("event.startOfEvent")), 1),
636
- n("b", null, o(e(ve)(e(m))), 1)
637
- ])) : r("", !0),
638
- !e(p) && e($) && !e(fe) ? (l(), s("li", Vn, [
639
- n("span", null, o(e(i)("event.lengthOfEvent")), 1),
640
- n("b", null, o(e(ve)(e($))), 1)
641
- ])) : r("", !0),
642
- e(U) ? (l(), s("li", Fn, [
643
- n("span", null, o(e(i)("general.discountCode")), 1),
644
- n("b", null, o(e(Q)), 1)
645
- ])) : r("", !0)
646
- ]),
647
- "price-summary": b(() => [
648
- !e(p) && e(T) > 0 ? (l(), s("li", Nn, [
649
- n("span", null, o(e(i)("booking.availability.basePrice")), 1),
650
- n("b", null, o(e(J)(e(T), e(se))), 1)
651
- ])) : r("", !0),
652
- e(w) ? (l(!0), s(N, { key: 1 }, R(e(w), ({ roomGroupId: W }, Z) => (l(), s(N, null, [
653
- e(ie)(W, Z) > 0 ? (l(), s("li", { key: W }, [
654
- n("span", null, o(e(i)("booking.reservation.addons")) + " - " + o(e(i)("booking.reservation.room")) + " #" + o(Z + 1), 1),
655
- n("b", null, o(e(J)(e(ie)(W, Z), e(se))), 1)
656
- ])) : r("", !0)
657
- ], 64))), 256)) : r("", !0)
658
- ]),
659
- navigation: b(() => [
660
- K(te.$slots, "navigation", {}, void 0, !0)
661
- ]),
662
- "mobile-under-price": b(() => [
663
- e(p) && e(k) > 0 ? (l(), s("div", Ln, [
664
- n("span", null, o(e(z)(e(P))) + " - " + o(e(z)(e(P), e(k))), 1)
665
- ])) : (l(), s("div", Cn, [
666
- n("span", null, o(e(z)(e(D))), 1)
667
- ]))
668
- ]),
669
- "mobile-summary": b(() => [
670
- !e(p) && e(C) > 0 ? (l(), s("span", Bn, o(e(i)("event.numberOfProducts")) + ": " + o(e(C)), 1)) : r("", !0)
671
- ]),
672
- _: 2
673
- }, [
674
- e(a).sidebar ? {
675
- name: "sidebar",
676
- fn: b(() => [
677
- K(te.$slots, "sidebar", {}, void 0, !0)
678
- ]),
679
- key: "0"
680
- } : void 0
681
- ]), 1032, ["discount-code", "validate-discount-code", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "notice", "prev-callback"]));
682
- }
683
- }), De = /* @__PURE__ */ G(In, [["__scopeId", "data-v-d2ff3f68"]]), An = { class: "event-skeleton" }, Sn = { class: "event-skeleton-content" }, Rn = { class: "event-skeleton-sidebar" }, Mn = /* @__PURE__ */ M({
684
- __name: "EventSkeleton",
685
- setup(t) {
686
- return (i, a) => (l(), s("div", An, [
687
- n("div", Sn, [
688
- h(Re)
689
- ]),
690
- n("div", Rn, [
691
- r("", !0),
692
- h(Lt)
693
- ])
694
- ]));
695
- }
696
- }), Un = /* @__PURE__ */ G(Mn, [["__scopeId", "data-v-3e15c4e3"]]), Hn = {
697
- key: 0,
698
- id: "konnectio-event-listings-wrapper"
699
- }, Gn = {
700
- key: 1,
701
- class: "konnectio-hotel-availability-title"
702
- }, zn = { class: "konnectio-event-listings" }, qn = { class: "konnectio-hotel-availability-title" }, Yn = { class: "konnectio-event-listings" }, jn = ["innerHTML"], Wn = { class: "konnectio-panel" }, Zn = {
703
- key: 0,
704
- id: "konnectio-event-addons"
705
- }, Qn = { class: "konnectio-table with-lines" }, Jn = { class: "konnectio-event-addons-price" }, Kn = { class: "konnectio-event-addons-input" }, Xn = { class: "konnectio-event-addons-price" }, _n = { class: "konnectio-event-addons-price" }, ea = {
706
- key: 1,
707
- class: "konnectio-table with-lines without-header"
708
- }, ta = { class: "konnectio-table-addons-information" }, na = { key: 0 }, aa = { class: "konnectio-table-addons-option" }, la = { class: "konnectio-panel" }, oa = /* @__PURE__ */ M({
709
- name: "EventLayout",
710
- __name: "Event",
711
- props: {
712
- accessToken: {},
713
- onlyShow: { default: "everything" },
714
- selectedLocation: {},
715
- resetDate: { default: "no" },
716
- hideLocations: { default: "no" },
717
- hideRemarks: { default: "no" },
718
- hideAllergies: { default: "no" },
719
- showFlagOnTable: { default: "no" },
720
- showHighChairs: {},
721
- sortOrder: { default: "asc" },
722
- styling: {}
723
- },
724
- setup(t) {
725
- const i = t, { t: a } = _(), E = X(), {
726
- addons: m,
727
- products: f,
728
- numberOfDays: g,
729
- flagOnTable: k,
730
- numberOfHighChairs: p,
731
- name: D,
732
- phone: $,
733
- email: P,
734
- remark: T,
735
- allergies: w,
736
- arrivalTime: x,
737
- hasEvents: u,
738
- hasTemplates: y,
739
- getTemplates: j,
740
- getEventData: B,
741
- getTemplateData: C,
742
- getEventTableData: U,
743
- hasProducts: Q,
744
- eventRateType: ie,
745
- areListingsAvailable: ge,
746
- isAvailabilityDataAvailable: se,
747
- hasListingData: fe,
748
- isPaymentLoading: ee,
749
- isReservationFormFilled: te,
750
- requiresArrivalTime: re,
751
- hasSelectedRequiredProducts: W,
752
- getUnavailableEvents: Z,
753
- hasFallbackEvents: $e,
754
- getFallbackEvents: Ue
755
- } = q(E), we = Y(() => E.getSortedEvents(i.sortOrder)), { currency: de, enableTracking: ne } = q(oe()), { setActiveIdFilter: He } = oe(), { eventDate: Ge, eventLocation: ze } = q(Pe()), { isValidRestaurantId: qe } = Pe(), {
756
- initialize: Ye,
757
- fetchListings: je,
758
- createBooking: We,
759
- localAddonPrice: Ze,
760
- totalAddonPrice: Qe,
761
- reset: Je,
762
- goBack: Oe
763
- } = X(), { beginEventCheckout: Ke } = Se(), { display: ke } = Ee(), Xe = Y(() => [
764
- {
765
- id: "availability",
766
- label: a("booking.availability.title"),
767
- icon: "search"
768
- },
769
- {
770
- id: "addons",
771
- label: a("general.addons"),
772
- icon: "shopping-cart",
773
- hidden: !1
774
- },
775
- {
776
- id: "reservation",
777
- label: a("booking.reservation.title"),
778
- icon: "concierge-bell"
779
- },
780
- {
781
- id: "payment",
782
- hidden: !0
783
- },
784
- {
785
- id: "confirmation",
786
- label: a("booking.confirmation.title"),
787
- icon: "calendar-check"
788
- }
789
- ]), _e = Y(() => {
790
- const L = [];
791
- return U.value && U.value.forEach((c) => {
792
- L.find((V) => V.value === c.time) || L.push({
793
- label: ve(c.time),
794
- value: c.time
795
- });
796
- }), L;
797
- });
798
- function et() {
799
- Je(i.resetDate === "yes");
800
- }
801
- function tt(L) {
802
- ne.value && Ke(), We(L);
803
- }
804
- function nt() {
805
- const L = Ot("history", {
806
- removeNullishValues: !0
807
- }), c = parseInt(L.rid), V = L.d, O = parseInt(L.eid);
808
- if (V)
809
- if (xt(V)) {
810
- const d = new Date(V), I = d.setHours(12, 0, 0, 0), H = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
811
- I >= H ? Ge.value = d : (ke({
812
- message: a("alert.error.invalidDateRange"),
813
- type: "error"
814
- }), L.d = void 0);
815
- } else
816
- ke({
817
- message: a("alert.error.wrongDateFormat"),
818
- type: "error"
819
- });
820
- isNaN(c) || (qe(c) ? ze.value = c : (L.rid = void 0, ke({
821
- message: a("alert.error.hotelIdNotFound"),
822
- type: "error"
823
- }))), isNaN(O) || He(O), je();
824
- }
825
- return (L, c) => (l(), v(wt, { styling: t.styling }, {
826
- default: b(() => [
827
- (l(), v(ct, { onResolve: nt }, {
828
- default: b(() => [
829
- h(Tt, {
830
- id: "konnectio-event-module",
831
- "access-token": t.accessToken,
832
- callback: e(Ye)
833
- }, {
834
- default: b(() => [
835
- h(Ct, {
836
- steps: Xe.value,
837
- onReset: et
838
- }, {
839
- availability: b(({ next: V }) => [
840
- h(De, null, {
841
- sidebar: b(() => [
842
- h(jt, {
843
- redirection: !1,
844
- "selected-location": Number(t.selectedLocation),
845
- "hide-locations": t.hideLocations === "yes"
846
- }, null, 8, ["selected-location", "hide-locations"])
847
- ]),
848
- form: b(() => [
849
- e(fe) && e(ge) ? (l(), s("div", Hn, [
850
- e($e) ? (l(!0), s(N, { key: 0 }, R(e(Ue), ({
851
- id: O,
852
- name: d,
853
- description: I,
854
- images: H
855
- }) => (l(), v(pn, {
856
- key: O,
857
- type: "event",
858
- "listing-id": O,
859
- description: I,
860
- name: d,
861
- gallery: H,
862
- "tracking-enabled": e(ne),
863
- callback: V
864
- }, null, 8, ["listing-id", "description", "name", "gallery", "tracking-enabled", "callback"]))), 128)) : r("", !0),
865
- we.value.length > 0 && e(Z).length > 0 ? (l(), s("h2", Gn, [
866
- h(le, {
867
- icon: "calendar-clock",
868
- type: "fal",
869
- color: "header"
870
- }),
871
- n("span", null, o(e(a)("event.availableNow")), 1)
872
- ])) : r("", !0),
873
- n("ul", zn, [
874
- e(u) && t.onlyShow !== "templates" ? (l(!0), s(N, { key: 0 }, R(we.value, (O) => (l(), v(sn, {
875
- name: O.name,
876
- events: O.events,
877
- "tracking-enabled": e(ne),
878
- callback: V
879
- }, null, 8, ["name", "events", "tracking-enabled", "callback"]))), 256)) : r("", !0),
880
- e(y) && t.onlyShow !== "events" ? (l(!0), s(N, { key: 1 }, R(e(j), ({
881
- id: O,
882
- name: d,
883
- fromDate: I,
884
- toDate: H,
885
- minimumPersonCount: F,
886
- fromPrice: A,
887
- description: ye,
888
- images: he
889
- }) => (l(), v(Dn, {
890
- key: O,
891
- "listing-id": O,
892
- name: d,
893
- images: he,
894
- description: ye,
895
- "from-date": I,
896
- "to-date": H,
897
- "minimum-person-count": F,
898
- fromPrice: A,
899
- "tracking-enabled": e(ne),
900
- callback: V
901
- }, null, 8, ["listing-id", "name", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "tracking-enabled", "callback"]))), 128)) : r("", !0)
902
- ]),
903
- e(Z).length > 0 && t.onlyShow !== "templates" ? (l(), s(N, { key: 2 }, [
904
- n("h2", qn, [
905
- h(le, {
906
- icon: "calendar-circle-exclamation",
907
- type: "fal",
908
- color: "header"
909
- }),
910
- n("span", null, o(e(a)("event.availableLater")), 1)
911
- ]),
912
- n("ul", Yn, [
913
- (l(!0), s(N, null, R(e(Z), (O) => (l(), v(kn, {
914
- name: O.name,
915
- events: O.events,
916
- "tracking-enabled": e(ne),
917
- callback: V
918
- }, null, 8, ["name", "events", "tracking-enabled", "callback"]))), 256))
919
- ])
920
- ], 64)) : r("", !0),
921
- (!e(u) && !e(y) || !e(u) && t.onlyShow === "events" || !e(y) && t.onlyShow === "templates") && !e($e) ? (l(), s("div", {
922
- key: 3,
923
- class: "konnectio-panel",
924
- innerHTML: e(a)("event.nothingAvailable")
925
- }, null, 8, jn)) : r("", !0)
926
- ])) : (l(), v(Re, { key: 1 }))
927
- ]),
928
- _: 2
929
- }, 1024)
930
- ]),
931
- addons: b(({ next: V, prev: O }) => [
932
- e(se) ? (l(), v(De, {
933
- key: 0,
934
- "prev-callback": () => e(Oe)(O)
935
- }, {
936
- form: b(() => [
937
- n("form", Wn, [
938
- n("h2", null, [
939
- n("span", null, o(e(a)("event.selectProducts")), 1)
940
- ]),
941
- e(C) && e(C).length > 0 ? (l(), s("ul", Zn, [
942
- (l(!0), s(N, null, R(e(C), ({
943
- roomGroupId: d,
944
- addons: I,
945
- adultPerRoom: H
946
- }, F) => (l(), s("li", { key: d }, [
947
- n("h5", null, [
948
- n("span", null, o(e(a)("booking.reservation.room")) + " #" + o(F + 1), 1),
949
- c[9] || (c[9] = ue(" (", -1)),
950
- h(le, {
951
- icon: "male",
952
- type: "fas",
953
- color: "header"
954
- }),
955
- ue(" " + o(H) + ") ", 1)
956
- ]),
957
- n("table", Qn, [
958
- n("thead", null, [
959
- n("tr", null, [
960
- n("th", null, [
961
- n("span", null, o(e(a)("booking.reservation.addons")), 1)
962
- ]),
963
- c[10] || (c[10] = n("th", { class: "konnectio-event-addons-input" }, null, -1)),
964
- n("th", Jn, [
965
- n("span", null, o(e(a)("booking.availability.price")), 1)
966
- ])
967
- ])
968
- ]),
969
- n("tbody", null, [
970
- (l(!0), s(N, null, R(I, ({
971
- id: A,
972
- cardinality: ye,
973
- name: he,
974
- price: at,
975
- quantityStrategy: lt
976
- }) => (l(), s("tr", { key: A }, [
977
- n("td", null, [
978
- n("b", null, o(he), 1),
979
- c[11] || (c[11] = n("br", null, null, -1)),
980
- n("span", null, o(e(J)(at, e(de))) + " " + o(e($t)(lt)), 1)
981
- ]),
982
- n("td", Kn, [
983
- ye === 3 ? (l(), v(ae, {
984
- key: 0,
985
- modelValue: e(m)[`${d}.${A}.${F}`],
986
- "onUpdate:modelValue": (pe) => e(m)[`${d}.${A}.${F}`] = pe,
987
- small: !0,
988
- "min-value": 0
989
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), v(Ce, {
990
- key: 1,
991
- modelValue: e(m)[`${d}.${A}.${F}`],
992
- "onUpdate:modelValue": (pe) => e(m)[`${d}.${A}.${F}`] = pe,
993
- numeric: !0
994
- }, null, 8, ["modelValue", "onUpdate:modelValue"]))
995
- ]),
996
- n("td", Xn, [
997
- n("span", null, o(e(J)(e(Ze)(A, d, F), e(de))), 1)
998
- ])
999
- ]))), 128))
1000
- ]),
1001
- n("tfoot", null, [
1002
- n("tr", null, [
1003
- c[12] || (c[12] = n("td", null, null, -1)),
1004
- c[13] || (c[13] = n("td", null, null, -1)),
1005
- n("td", _n, [
1006
- n("u", null, [
1007
- n("span", null, o(e(J)(e(Qe)(d, F), e(de))), 1)
1008
- ])
1009
- ])
1010
- ])
1011
- ])
1012
- ])
1013
- ]))), 128))
1014
- ])) : r("", !0),
1015
- e(Q) ? (l(), s("table", ea, [
1016
- n("tbody", null, [
1017
- (l(!0), s(N, null, R(e(B).products, ({ id: d, name: I, price: H, description: F }) => (l(), s("tr", { key: d }, [
1018
- n("td", ta, [
1019
- n("b", null, [
1020
- n("span", null, o(e(xe)(I)), 1)
1021
- ]),
1022
- F && F !== I ? (l(), s("span", na, o(e(xe)(F)), 1)) : r("", !0),
1023
- n("u", null, o(e(J)(H, e(de))), 1)
1024
- ]),
1025
- n("td", aa, [
1026
- h(ae, {
1027
- modelValue: e(f)[d],
1028
- "onUpdate:modelValue": (A) => e(f)[d] = A,
1029
- small: !0,
1030
- "min-value": 0
1031
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
1032
- ])
1033
- ]))), 128))
1034
- ])
1035
- ])) : r("", !0)
1036
- ])
1037
- ]),
1038
- navigation: b(() => [
1039
- h(me, {
1040
- label: e(a)("event.startReservation"),
1041
- disabled: !e(W),
1042
- "full-width": "",
1043
- onClickEvent: V
1044
- }, null, 8, ["label", "disabled", "onClickEvent"])
1045
- ]),
1046
- _: 2
1047
- }, 1032, ["prev-callback"])) : r("", !0)
1048
- ]),
1049
- reservation: b(({ next: V, prev: O }) => [
1050
- h(De, {
1051
- "show-terms-notice": !0,
1052
- "show-gift-card": !0,
1053
- "prev-callback": () => e(Oe)(O)
1054
- }, {
1055
- form: b(() => [
1056
- n("form", la, [
1057
- n("h2", null, [
1058
- n("span", null, o(e(a)("booking.reservation.detailsTitle")), 1)
1059
- ]),
1060
- h(ce, {
1061
- modelValue: e(D),
1062
- "onUpdate:modelValue": c[0] || (c[0] = (d) => S(D) ? D.value = d : null),
1063
- type: "text",
1064
- label: e(a)("booking.reservation.name"),
1065
- icon: "user-alt",
1066
- placeholder: e(a)("booking.reservation.namePlaceholder"),
1067
- required: ""
1068
- }, null, 8, ["modelValue", "label", "placeholder"]),
1069
- h(ce, {
1070
- modelValue: e(P),
1071
- "onUpdate:modelValue": c[1] || (c[1] = (d) => S(P) ? P.value = d : null),
1072
- label: e(a)("booking.reservation.email"),
1073
- type: "email",
1074
- name: "email",
1075
- autocomplete: "email",
1076
- icon: "at",
1077
- placeholder: e(a)("booking.reservation.emailPlaceholder"),
1078
- required: ""
1079
- }, null, 8, ["modelValue", "label", "placeholder"]),
1080
- h(Yt, {
1081
- modelValue: e($),
1082
- "onUpdate:modelValue": c[2] || (c[2] = (d) => S($) ? $.value = d : null),
1083
- label: e(a)("booking.reservation.phone"),
1084
- icon: "phone-office",
1085
- placeholder: e(a)("booking.reservation.phonePlaceholder"),
1086
- required: ""
1087
- }, null, 8, ["modelValue", "label", "placeholder"]),
1088
- e(re) ? (l(), v(It, {
1089
- key: 0,
1090
- modelValue: e(x),
1091
- "onUpdate:modelValue": c[3] || (c[3] = (d) => S(x) ? x.value = d : null),
1092
- label: e(a)("event.selectArrivalTime"),
1093
- name: "eventTimeTable",
1094
- checkboxes: _e.value,
1095
- required: ""
1096
- }, null, 8, ["modelValue", "label", "checkboxes"])) : r("", !0),
1097
- e(ie) === e(Et).FullDayEvent ? (l(), v(ae, {
1098
- key: 1,
1099
- modelValue: e(g),
1100
- "onUpdate:modelValue": c[4] || (c[4] = (d) => S(g) ? g.value = d : null),
1101
- label: e(a)("event.numberOfDays"),
1102
- "min-value": 1,
1103
- required: ""
1104
- }, null, 8, ["modelValue", "label"])) : r("", !0),
1105
- t.showHighChairs === "yes" ? (l(), v(ae, {
1106
- key: 2,
1107
- modelValue: e(p),
1108
- "onUpdate:modelValue": c[5] || (c[5] = (d) => S(p) ? p.value = d : null),
1109
- label: e(a)("event.numberOfHighChairs"),
1110
- icon: "baby",
1111
- "no-optional-label": !1
1112
- }, null, 8, ["modelValue", "label"])) : r("", !0),
1113
- t.showFlagOnTable === "yes" ? (l(), v(Ce, {
1114
- key: 3,
1115
- modelValue: e(k),
1116
- "onUpdate:modelValue": c[6] || (c[6] = (d) => S(k) ? k.value = d : null),
1117
- label: e(a)("event.flagOnTable")
1118
- }, null, 8, ["modelValue", "label"])) : r("", !0),
1119
- t.hideRemarks !== "yes" ? (l(), v(ce, {
1120
- key: 4,
1121
- modelValue: e(T),
1122
- "onUpdate:modelValue": c[7] || (c[7] = (d) => S(T) ? T.value = d : null),
1123
- type: "textarea",
1124
- label: e(a)("booking.reservation.remark"),
1125
- icon: "info-circle",
1126
- placeholder: e(a)("booking.reservation.remarkPlaceholder")
1127
- }, null, 8, ["modelValue", "label", "placeholder"])) : r("", !0),
1128
- t.hideAllergies !== "yes" && e(B)?.showAllergyFoodFieldOnline ? (l(), v(ce, {
1129
- key: 5,
1130
- modelValue: e(w),
1131
- "onUpdate:modelValue": c[8] || (c[8] = (d) => S(w) ? w.value = d : null),
1132
- type: "textarea",
1133
- label: e(a)("booking.reservation.allergies"),
1134
- icon: "allergies",
1135
- placeholder: e(a)("booking.reservation.allergiesPlaceholder")
1136
- }, null, 8, ["modelValue", "label", "placeholder"])) : r("", !0)
1137
- ])
1138
- ]),
1139
- navigation: b(() => [
1140
- h(me, {
1141
- label: e(a)("general.confirmReservation"),
1142
- "is-loading": e(ee),
1143
- disabled: !e(te),
1144
- "full-width": "",
1145
- onClickEvent: (d) => tt(V)
1146
- }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"])
1147
- ]),
1148
- _: 2
1149
- }, 1032, ["prev-callback"])
1150
- ]),
1151
- payment: b(() => [
1152
- h(qt)
1153
- ]),
1154
- confirmation: b(() => [
1155
- h(Bt, {
1156
- message: e(a)("event.confirmationMessage")
1157
- }, null, 8, ["message"])
1158
- ]),
1159
- _: 1
1160
- }, 8, ["steps"])
1161
- ]),
1162
- _: 1
1163
- }, 8, ["access-token", "callback"])
1164
- ]),
1165
- fallback: b(() => [
1166
- h(Un)
1167
- ]),
1168
- _: 1
1169
- }))
1170
- ]),
1171
- _: 1
1172
- }, 8, ["styling"]));
1173
- }
1174
- }), Ie = /* @__PURE__ */ G(oa, [["__scopeId", "data-v-f58c56d6"]]), ia = ut(), sa = mt, ra = sa();
1175
- class da extends HTMLElement {
1176
- vueApp;
1177
- constructor() {
1178
- super();
1179
- }
1180
- disconnectedCallback() {
1181
- this.vueApp.unmount();
1182
- }
1183
- connectedCallback() {
1184
- const i = vt(Ie, this.attributes);
1185
- this.vueApp = bt(Ie, i), this.vueApp.provide("emitter", ra), this.vueApp.use(Wt), this.vueApp.use(gt), this.vueApp.use(ia), this.vueApp.use(At), this.vueApp.use(ft), this.vueApp.use(St);
1186
- const a = document.createElement("div");
1187
- this.vueApp.mount(a), this.appendChild(a.children[0]);
1188
- }
1189
- }
1190
- window.customElements.define("konnectio-event", da);
1191
- export {
1192
- da as default
38
+ //#endregion
39
+ //#region src/components/listings/event/_.vue?vue&type=script&setup=true&lang.ts
40
+ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ */ B(/* @__PURE__ */ l({
41
+ __name: "_",
42
+ props: {
43
+ name: {},
44
+ description: {},
45
+ toDate: {},
46
+ listingId: {},
47
+ tableGroupId: {},
48
+ days: {},
49
+ length: {},
50
+ timeFrom: {},
51
+ timeTo: {},
52
+ maxOnlineReservationLimit: {},
53
+ minimumPersonCount: {},
54
+ maxGuests: {},
55
+ fromPrice: { default: 0 },
56
+ gallery: {},
57
+ soldOut: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ useNumberOfProductsForPersons: { type: Boolean },
62
+ type: {},
63
+ trackingEnabled: { type: Boolean },
64
+ disableDeepLink: {
65
+ type: Boolean,
66
+ default: !1
67
+ },
68
+ callback: {}
69
+ },
70
+ setup(e) {
71
+ let { t } = b(), n = e, { display: l } = z(), { hideEventGuestAmount: u } = D(M()), { maxNumberOfPeople: m, numberOfPeople: _, eventId: v, currentEventDate: y, tableGroupId: x } = D(q()), { getTemplateAvailability: S, getEventAvailability: C, isEventListingLoading: w } = q(), { addToCart: T } = te(), E = d(() => n.maxGuests || n.maxOnlineReservationLimit || m.value || Infinity), O = p(0), k = d(() => w(n.listingId)), A = () => {
72
+ if (!n.useNumberOfProductsForPersons && (O.value === 0 || isNaN(O.value))) {
73
+ l({
74
+ type: "error",
75
+ message: t("alert.error.selectPeople")
76
+ });
77
+ return;
78
+ }
79
+ n.trackingEnabled && T({
80
+ id: n.listingId,
81
+ name: n.name,
82
+ value: n.fromPrice || 0
83
+ }), v.value = n.listingId, _.value = n.useNumberOfProductsForPersons ? NaN : O.value, S(n.callback);
84
+ }, ee = () => {
85
+ if (!n.useNumberOfProductsForPersons && (O.value === 0 || isNaN(O.value))) {
86
+ l({
87
+ type: "error",
88
+ message: t("alert.error.selectPeople")
89
+ });
90
+ return;
91
+ }
92
+ n.trackingEnabled && T({
93
+ id: n.listingId,
94
+ name: n.name,
95
+ value: n.fromPrice || 0
96
+ }), v.value = n.listingId, x.value = n.tableGroupId, _.value = n.useNumberOfProductsForPersons ? NaN : O.value, C(n.callback);
97
+ };
98
+ return (n, l) => (f(), r(Ee, {
99
+ type: "event",
100
+ "listing-id": e.listingId,
101
+ gallery: e.gallery,
102
+ name: e.name,
103
+ description: e.description,
104
+ "prices-from": e.fromPrice,
105
+ "to-date": e.toDate,
106
+ layout: o(ne).Event,
107
+ "disable-deep-link": e.disableDeepLink
108
+ }, {
109
+ description: h(() => [g(n.$slots, "description", { maxNumberOfPeople: o(m) }, void 0, !0)]),
110
+ action: h(() => [g(n.$slots, "action", {}, () => [a("div", { class: i(["konnectio-event-listing-action", { "no-selectable-people": e.useNumberOfProductsForPersons }]) }, [e.useNumberOfProductsForPersons ? c("", !0) : (f(), r(G, {
111
+ key: 0,
112
+ modelValue: O.value,
113
+ "onUpdate:modelValue": l[0] ||= (e) => O.value = e,
114
+ label: o(t)("event.numberOfGuests"),
115
+ icon: "users",
116
+ "icon-type": "fas",
117
+ "icon-placement": "label",
118
+ description: E.value <= 20 && !o(u) ? `${o(t)("general.availableFor")}: 1 - ${E.value} ${o(V)(o(t)("general.guests"))}` : void 0,
119
+ "min-value": 0,
120
+ "max-value": E.value
121
+ }, null, 8, [
122
+ "modelValue",
123
+ "label",
124
+ "description",
125
+ "max-value"
126
+ ])), a("div", je, [s(K, {
127
+ label: e.soldOut ? o(t)("event.soldOut") : o(t)("event.bookNowButton"),
128
+ disabled: e.soldOut,
129
+ "is-loading": k.value,
130
+ "full-width": "",
131
+ "sub-label": o(P)(o(y)),
132
+ onClickEvent: l[1] ||= (t) => e.type === "event" ? ee() : A()
133
+ }, null, 8, [
134
+ "label",
135
+ "disabled",
136
+ "is-loading",
137
+ "sub-label"
138
+ ])])], 2)], !0)]),
139
+ _: 3
140
+ }, 8, [
141
+ "listing-id",
142
+ "gallery",
143
+ "name",
144
+ "description",
145
+ "prices-from",
146
+ "to-date",
147
+ "layout",
148
+ "disable-deep-link"
149
+ ]));
150
+ }
151
+ }), [["__scopeId", "data-v-23ac9949"]]), Ne = { class: "konnectio-event-listing-information-new" }, Pe = {
152
+ key: 1,
153
+ class: "konnectio-pill-button"
154
+ }, Fe = {
155
+ key: 2,
156
+ class: "konnectio-pill-button"
157
+ }, Ie = { key: 0 }, Le = { key: 1 }, $ = /* @__PURE__ */ B(/* @__PURE__ */ l({
158
+ __name: "Event",
159
+ props: {
160
+ name: {},
161
+ description: {},
162
+ fromDate: {},
163
+ toDate: {},
164
+ length: {},
165
+ timeFrom: {},
166
+ timeTo: {},
167
+ gallery: {},
168
+ days: {},
169
+ listingId: {},
170
+ tableGroupId: {},
171
+ maxOnlineReservationLimit: {},
172
+ minimumPersonCount: {},
173
+ fromPrice: { default: 0 },
174
+ soldOut: { type: Boolean },
175
+ useNumberOfProductsForPersons: { type: Boolean },
176
+ trackingEnabled: { type: Boolean },
177
+ callback: {}
178
+ },
179
+ setup(e) {
180
+ let t = e, { t: i } = b(), { hideEventLength: l, hideEventEndTime: u } = D(M()), p = d(() => {
181
+ if (!t.length) return;
182
+ let e = t.length.split(":");
183
+ return Ae(new Date(2e3, 0, 1, Number(e[0]), Number(e[1]), 0), new Date(2e3, 0, 1, 0, 0, 0));
184
+ });
185
+ return (t, d) => (f(), r(Me, {
186
+ "listing-id": e.listingId,
187
+ name: e.name,
188
+ description: e.description,
189
+ gallery: e.gallery,
190
+ "prices-from": e.fromPrice,
191
+ "table-group-id": e.tableGroupId,
192
+ "max-guests": e.maxOnlineReservationLimit,
193
+ "use-number-of-products-for-persons": e.useNumberOfProductsForPersons,
194
+ "to-date": e.toDate,
195
+ "sold-out": e.soldOut,
196
+ type: "event",
197
+ "tracking-enabled": e.trackingEnabled,
198
+ callback: e.callback
199
+ }, {
200
+ description: h(() => [e.description ? (f(), r(Z, {
201
+ key: 0,
202
+ text: e.description
203
+ }, null, 8, ["text"])) : c("", !0), a("ul", Ne, [
204
+ c("", !0),
205
+ !o(l) && p.value ? (f(), y("li", Pe, [a("div", null, [s(J, {
206
+ icon: "calendar-clock",
207
+ color: "header"
208
+ }), a("span", null, n(o(i)("event.lengthOfEvent")), 1)]), a("span", null, n(p.value), 1)])) : c("", !0),
209
+ e.timeFrom ? (f(), y("li", Fe, [a("div", null, [s(J, {
210
+ icon: "calendar-clock",
211
+ color: "header"
212
+ }), a("span", null, n(o(i)("event.startAndEndTime")), 1)]), o(u) ? (f(), y("span", Le, n(o(U)(e.timeFrom)), 1)) : (f(), y("span", Ie, n(o(H)(e.timeFrom, e.timeTo)), 1))])) : c("", !0)
213
+ ])]),
214
+ action: h(() => [g(t.$slots, "action", {}, void 0, !0)]),
215
+ _: 3
216
+ }, 8, [
217
+ "listing-id",
218
+ "name",
219
+ "description",
220
+ "gallery",
221
+ "prices-from",
222
+ "table-group-id",
223
+ "max-guests",
224
+ "use-number-of-products-for-persons",
225
+ "to-date",
226
+ "sold-out",
227
+ "tracking-enabled",
228
+ "callback"
229
+ ]));
230
+ }
231
+ }), [["__scopeId", "data-v-40cbbf2c"]]), Re = {
232
+ key: 0,
233
+ class: "konnectio-event-grouped-listings-container"
234
+ }, ze = { class: "konnectio-event-grouped-listings" }, Be = /* @__PURE__ */ B(/* @__PURE__ */ l({
235
+ __name: "Event",
236
+ props: {
237
+ name: {},
238
+ events: {},
239
+ trackingEnabled: { type: Boolean },
240
+ callback: { type: Function }
241
+ },
242
+ setup(t) {
243
+ return (n, i) => t.events && t.events.length > 1 ? (f(), y("div", Re, [c("", !0), a("ul", ze, [(f(!0), y(O, null, e(t.events, ({ id: e, days: n, name: i, timeFrom: a, timeTo: o, tableGroupId: s, description: c, soldOut: l, length: u, images: d, maxOnlineReservationLimit: p, maxPaxPerReservation: m, useNumberOfProductsForPersons: h, maxTicketsLimit: g }) => (f(), r($, {
244
+ key: e,
245
+ type: "event",
246
+ "listing-id": e,
247
+ "table-group-id": s,
248
+ description: c,
249
+ name: i,
250
+ length: u,
251
+ gallery: d,
252
+ days: n,
253
+ "max-online-reservation-limit": m || p || g || void 0,
254
+ "time-from": a,
255
+ "time-to": o,
256
+ "sold-out": l,
257
+ "use-number-of-products-for-persons": h,
258
+ "tracking-enabled": t.trackingEnabled,
259
+ callback: t.callback
260
+ }, null, 8, [
261
+ "listing-id",
262
+ "table-group-id",
263
+ "description",
264
+ "name",
265
+ "length",
266
+ "gallery",
267
+ "days",
268
+ "max-online-reservation-limit",
269
+ "time-from",
270
+ "time-to",
271
+ "sold-out",
272
+ "use-number-of-products-for-persons",
273
+ "tracking-enabled",
274
+ "callback"
275
+ ]))), 128))])])) : t.events ? (f(), r($, {
276
+ key: t.events[0].id,
277
+ type: "event",
278
+ "listing-id": t.events[0].id,
279
+ "table-group-id": t.events[0].tableGroupId,
280
+ description: t.events[0].description,
281
+ name: t.events[0].name,
282
+ length: t.events[0].length,
283
+ gallery: t.events[0].images,
284
+ days: t.events[0].days,
285
+ "from-date": t.events[0].fromDate,
286
+ "to-date": t.events[0].toDate,
287
+ "max-online-reservation-limit": t.events[0].maxPaxPerReservation || t.events[0].maxOnlineReservationLimit || t.events[0].maxTicketsLimit || void 0,
288
+ "time-from": t.events[0].timeFrom,
289
+ "time-to": t.events[0].timeTo,
290
+ "sold-out": t.events[0].soldOut,
291
+ "use-number-of-products-for-persons": t.events[0].useNumberOfProductsForPersons,
292
+ "tracking-enabled": t.trackingEnabled,
293
+ callback: t.callback
294
+ }, null, 8, [
295
+ "listing-id",
296
+ "table-group-id",
297
+ "description",
298
+ "name",
299
+ "length",
300
+ "gallery",
301
+ "days",
302
+ "from-date",
303
+ "to-date",
304
+ "max-online-reservation-limit",
305
+ "time-from",
306
+ "time-to",
307
+ "sold-out",
308
+ "use-number-of-products-for-persons",
309
+ "tracking-enabled",
310
+ "callback"
311
+ ])) : c("", !0);
312
+ }
313
+ }), [["__scopeId", "data-v-374ad034"]]), Ve = { class: "konnectio-special-offer-availability" }, He = { class: "konnectio-special-offer-availability-button" }, Ue = { class: "konnectio-warning-notice" }, We = { key: 0 }, Ge = { key: 1 }, Ke = /* @__PURE__ */ B(/* @__PURE__ */ l({
314
+ __name: "NextEvent",
315
+ props: {
316
+ name: {},
317
+ description: {},
318
+ fromDate: {},
319
+ toDate: {},
320
+ length: {},
321
+ timeFrom: {},
322
+ timeTo: {},
323
+ gallery: {},
324
+ days: {},
325
+ listingId: {},
326
+ tableGroupId: {},
327
+ maxOnlineReservationLimit: {},
328
+ minimumPersonCount: {},
329
+ soldOut: { type: Boolean },
330
+ useNumberOfProductsForPersons: { type: Boolean },
331
+ trackingEnabled: { type: Boolean },
332
+ callback: { type: Function }
333
+ },
334
+ setup(e) {
335
+ let { t } = b(), { updateEventDate: i } = j(), { display: c } = z(), l = p(), u = e;
336
+ function m() {
337
+ l.value ? i(l.value) : c({
338
+ message: t("alert.error.selectDate"),
339
+ type: "error"
340
+ });
341
+ }
342
+ let g = d(() => R(u.fromDate, u.toDate) <= 1), _ = d(() => [
343
+ 0,
344
+ 1,
345
+ 2,
346
+ 3,
347
+ 4,
348
+ 5,
349
+ 6
350
+ ].filter((e) => !oe(u.days).includes(e)));
351
+ return S(() => {
352
+ g.value && (l.value = new Date(u.fromDate));
353
+ }), (i, c) => (f(), r($, {
354
+ name: e.name,
355
+ description: e.description,
356
+ "from-date": e.fromDate,
357
+ "to-date": e.toDate,
358
+ length: e.length,
359
+ "time-from": e.timeFrom,
360
+ "time-to": e.timeTo,
361
+ gallery: e.gallery,
362
+ days: e.days,
363
+ "listing-id": e.listingId,
364
+ "table-group-id": e.tableGroupId,
365
+ "max-online-reservation-limit": e.maxOnlineReservationLimit,
366
+ "minimum-person-count": e.minimumPersonCount,
367
+ "use-number-of-products-for-persons": e.useNumberOfProductsForPersons,
368
+ "tracking-enabled": e.trackingEnabled,
369
+ "sold-out": e.soldOut,
370
+ callback: e.callback,
371
+ "disable-deep-link": !0
372
+ }, {
373
+ action: h(() => [a("div", null, [a("div", Ve, [s(me, {
374
+ modelValue: l.value,
375
+ "onUpdate:modelValue": c[0] ||= (e) => l.value = e,
376
+ label: `${o(t)("event.selectDate")}*`,
377
+ placeholder: o(t)("event.selectDate"),
378
+ "icon-type": "fas",
379
+ "icon-placement": "label",
380
+ readonly: g.value,
381
+ "start-date": e.fromDate === "0001-01-01T00:00:00Z" ? new Date(e.toDate) : new Date(e.fromDate),
382
+ "min-date": e.fromDate === "0001-01-01T00:00:00Z" ? new Date(e.toDate) : new Date(e.fromDate),
383
+ "max-date": new Date(e.toDate),
384
+ "disabled-week-days": _.value
385
+ }, null, 8, [
386
+ "modelValue",
387
+ "label",
388
+ "placeholder",
389
+ "readonly",
390
+ "start-date",
391
+ "min-date",
392
+ "max-date",
393
+ "disabled-week-days"
394
+ ]), a("div", He, [s(K, {
395
+ label: o(t)("availability.buttonLabel"),
396
+ onClick: k(m, ["prevent"])
397
+ }, null, 8, ["label"])])]), a("div", Ue, [g.value ? (f(), y("span", We, [v("*" + n(o(t)("event.canBeBooked")) + " ", 1), a("u", null, n(o(P)(e.fromDate)), 1)])) : (f(), y("span", Ge, [v("*" + n(o(t)("event.canBeBooked")) + " ", 1), a("u", null, n(o(L)(e.days)), 1)]))])])]),
398
+ _: 1
399
+ }, 8, [
400
+ "name",
401
+ "description",
402
+ "from-date",
403
+ "to-date",
404
+ "length",
405
+ "time-from",
406
+ "time-to",
407
+ "gallery",
408
+ "days",
409
+ "listing-id",
410
+ "table-group-id",
411
+ "max-online-reservation-limit",
412
+ "minimum-person-count",
413
+ "use-number-of-products-for-persons",
414
+ "tracking-enabled",
415
+ "sold-out",
416
+ "callback"
417
+ ]));
418
+ }
419
+ }), [["__scopeId", "data-v-f6aed3b0"]]), qe = {
420
+ key: 0,
421
+ class: "konnectio-event-grouped-listings-container"
422
+ }, Je = { class: "konnectio-event-grouped-listings" }, Ye = /* @__PURE__ */ B(/* @__PURE__ */ l({
423
+ __name: "NextEvent",
424
+ props: {
425
+ name: {},
426
+ events: {},
427
+ trackingEnabled: { type: Boolean },
428
+ callback: { type: Function }
429
+ },
430
+ setup(t) {
431
+ return (n, i) => t.events && t.events.length > 1 ? (f(), y("div", qe, [c("", !0), a("ul", Je, [(f(!0), y(O, null, e(t.events, ({ id: e, days: n, name: i, timeFrom: a, timeTo: o, fromDate: s, toDate: c, tableGroupId: l, description: u, soldOut: d, length: p, images: m, maxOnlineReservationLimit: h, maxPaxPerReservation: g, useNumberOfProductsForPersons: _, maxTicketsLimit: v }) => (f(), r(Ke, {
432
+ key: e,
433
+ type: "event",
434
+ "listing-id": e,
435
+ "table-group-id": l,
436
+ description: u,
437
+ name: i,
438
+ length: p,
439
+ gallery: m,
440
+ days: n,
441
+ "from-date": s,
442
+ "to-date": c,
443
+ "max-online-reservation-limit": g || h || v || void 0,
444
+ "time-from": a,
445
+ "time-to": o,
446
+ "sold-out": d,
447
+ "use-number-of-products-for-persons": _,
448
+ "tracking-enabled": t.trackingEnabled,
449
+ callback: t.callback
450
+ }, null, 8, [
451
+ "listing-id",
452
+ "table-group-id",
453
+ "description",
454
+ "name",
455
+ "length",
456
+ "gallery",
457
+ "days",
458
+ "from-date",
459
+ "to-date",
460
+ "max-online-reservation-limit",
461
+ "time-from",
462
+ "time-to",
463
+ "sold-out",
464
+ "use-number-of-products-for-persons",
465
+ "tracking-enabled",
466
+ "callback"
467
+ ]))), 128))])])) : t.events ? (f(), r(Ke, {
468
+ key: t.events[0].id,
469
+ type: "event",
470
+ "listing-id": t.events[0].id,
471
+ "table-group-id": t.events[0].tableGroupId,
472
+ description: t.events[0].description,
473
+ name: t.events[0].name,
474
+ length: t.events[0].length,
475
+ gallery: t.events[0].images,
476
+ days: t.events[0].days,
477
+ "from-date": t.events[0].fromDate,
478
+ "to-date": t.events[0].toDate,
479
+ "max-online-reservation-limit": t.events[0].maxPaxPerReservation || t.events[0].maxOnlineReservationLimit || t.events[0].maxTicketsLimit || void 0,
480
+ "time-from": t.events[0].timeFrom,
481
+ "time-to": t.events[0].timeTo,
482
+ "sold-out": t.events[0].soldOut,
483
+ "use-number-of-products-for-persons": t.events[0].useNumberOfProductsForPersons,
484
+ "tracking-enabled": t.trackingEnabled,
485
+ callback: t.callback
486
+ }, null, 8, [
487
+ "listing-id",
488
+ "table-group-id",
489
+ "description",
490
+ "name",
491
+ "length",
492
+ "gallery",
493
+ "days",
494
+ "from-date",
495
+ "to-date",
496
+ "max-online-reservation-limit",
497
+ "time-from",
498
+ "time-to",
499
+ "sold-out",
500
+ "use-number-of-products-for-persons",
501
+ "tracking-enabled",
502
+ "callback"
503
+ ])) : c("", !0);
504
+ }
505
+ }), [["__scopeId", "data-v-39263761"]]), Xe = ["innerHTML"], Ze = /* @__PURE__ */ B(/* @__PURE__ */ l({
506
+ __name: "FallbackEvent",
507
+ props: {
508
+ name: {},
509
+ description: {},
510
+ fromDate: {},
511
+ gallery: {},
512
+ days: {},
513
+ listingId: {},
514
+ trackingEnabled: { type: Boolean },
515
+ callback: { type: Function }
516
+ },
517
+ setup(e) {
518
+ let { t } = b();
519
+ return (n, i) => (f(), r($, {
520
+ name: e.name,
521
+ description: e.description,
522
+ "from-date": e.fromDate,
523
+ gallery: e.gallery,
524
+ days: e.days,
525
+ "listing-id": e.listingId,
526
+ "tracking-enabled": e.trackingEnabled,
527
+ callback: e.callback,
528
+ "disable-deep-link": !0
529
+ }, {
530
+ action: h(() => [a("div", {
531
+ class: "konnectio-filter-notice konnectio-top-message",
532
+ innerHTML: o(t)("event.notAvailable", { name: `<b>${e.name}</b>` })
533
+ }, null, 8, Xe)]),
534
+ _: 1
535
+ }, 8, [
536
+ "name",
537
+ "description",
538
+ "from-date",
539
+ "gallery",
540
+ "days",
541
+ "listing-id",
542
+ "tracking-enabled",
543
+ "callback"
544
+ ]));
545
+ }
546
+ }), [["__scopeId", "data-v-0167deff"]]), Qe = /* @__PURE__ */ l({
547
+ __name: "Template",
548
+ props: {
549
+ name: {},
550
+ description: {},
551
+ fromDate: {},
552
+ toDate: {},
553
+ listingId: {},
554
+ tableGroupId: {},
555
+ maxOnlineReservationLimit: {},
556
+ minimumPersonCount: {},
557
+ fromPrice: { default: 0 },
558
+ images: {},
559
+ trackingEnabled: { type: Boolean },
560
+ callback: {}
561
+ },
562
+ setup(e) {
563
+ return (t, n) => (f(), r(Me, {
564
+ "listing-id": e.listingId,
565
+ gallery: e.images,
566
+ name: e.name,
567
+ description: e.description,
568
+ "prices-from": e.fromPrice,
569
+ "to-date": e.toDate,
570
+ type: "template",
571
+ "tracking-enabled": e.trackingEnabled,
572
+ callback: e.callback
573
+ }, null, 8, [
574
+ "listing-id",
575
+ "gallery",
576
+ "name",
577
+ "description",
578
+ "prices-from",
579
+ "to-date",
580
+ "tracking-enabled",
581
+ "callback"
582
+ ]));
583
+ }
584
+ }), $e = {
585
+ key: 0,
586
+ class: "konnectio-panel konnectio-reservation-notice-mobile"
587
+ }, et = ["innerHTML"], tt = { key: 0 }, nt = { key: 1 }, rt = { key: 2 }, it = { key: 0 }, at = { key: 4 }, ot = { key: 5 }, st = { key: 6 }, ct = { key: 0 }, lt = { key: 0 }, ut = { key: 1 }, dt = {
588
+ key: 0,
589
+ class: "konnectio-capitalize"
590
+ }, ft = /* @__PURE__ */ B(/* @__PURE__ */ l({
591
+ __name: "EventReservationForm",
592
+ props: {
593
+ showGiftCard: {
594
+ type: Boolean,
595
+ default: !1
596
+ },
597
+ showTermsNotice: {
598
+ type: Boolean,
599
+ default: !1
600
+ },
601
+ prevCallback: {}
602
+ },
603
+ setup(i) {
604
+ let { t: s } = b(), l = T(), { areListingsAvailable: u, arrivalTime: d, numberOfPeople: p, numberOfRooms: m, numberOfTotalDays: v, isTemplateEvent: x, currentEventDate: S, length: C, fromDate: w, tableBasePrice: E, getTemplateData: k, basePrice: A, totalPrice: ee, weekendFee: j, roomUpgrade: te, discountCode: N, totalSelectedProducts: F, discountValue: L, appliedDiscountCode: R } = D(q()), { totalAddonPrice: z, validateDiscountCode: ne } = q(), { currency: B, hideEventLength: V } = D(M()), H = s("event.reservationNotice");
605
+ return (b, T) => (f(), r(Se, {
606
+ "discount-code": o(N),
607
+ "onUpdate:discountCode": T[0] ||= (e) => _(N) ? N.value = e : null,
608
+ "validate-discount-code": o(ne),
609
+ "show-gift-card": i.showGiftCard,
610
+ "show-terms-notice": i.showTermsNotice,
611
+ "is-sidebar-loading": !o(u),
612
+ "base-price": o(A),
613
+ "total-price": o(ee),
614
+ "weekend-fee": o(j),
615
+ "room-upgrade": o(te),
616
+ notice: o(H),
617
+ "prev-callback": i.prevCallback
618
+ }, t({
619
+ form: h(() => [g(b.$slots, "form", {}, void 0, !0), o(H) ? (f(), y("div", $e, [a("p", {
620
+ innerHTML: o(H),
621
+ class: "konnectio-wysiwyg"
622
+ }, null, 8, et)])) : c("", !0)]),
623
+ "reservation-summary": h(() => [
624
+ o(x) ? c("", !0) : (f(), y("li", tt, [a("span", null, n(o(s)("general.date")), 1), a("b", null, n(o(P)(o(S))), 1)])),
625
+ o(p) > 0 ? (f(), y("li", nt, [a("span", null, n(o(s)("event.numberOfGuests")), 1), a("b", null, n(o(p)), 1)])) : c("", !0),
626
+ !o(x) && o(F) > 0 ? (f(), y("li", rt, [a("span", null, n(o(s)("event.numberOfProducts")), 1), a("b", null, n(o(F)), 1)])) : c("", !0),
627
+ o(x) ? (f(), y(O, { key: 3 }, [
628
+ a("li", null, [a("span", null, n(o(s)("booking.reservation.arrival")), 1), a("b", null, n(o(P)(o(w))), 1)]),
629
+ a("li", null, [a("span", null, n(o(s)("booking.reservation.departure")), 1), a("b", null, n(o(P)(o(w), o(v))), 1)]),
630
+ a("li", null, [a("span", null, n(o(s)("event.numberOfRooms")), 1), a("b", null, n(o(m)), 1)]),
631
+ o(v) > 0 ? (f(), y("li", it, [a("span", null, n(o(s)("event.numberOfDays")), 1), a("b", null, n(o(v)), 1)])) : c("", !0)
632
+ ], 64)) : c("", !0),
633
+ !o(x) && o(d) ? (f(), y("li", at, [a("span", null, n(o(s)("event.startOfEvent")), 1), a("b", null, n(o(U)(o(d))), 1)])) : c("", !0),
634
+ !o(x) && o(C) && !o(V) ? (f(), y("li", ot, [a("span", null, n(o(s)("event.lengthOfEvent")), 1), a("b", null, n(o(U)(o(C))), 1)])) : c("", !0),
635
+ o(L) ? (f(), y("li", st, [a("span", null, n(o(s)("general.discountCode")), 1), a("b", null, n(o(R)), 1)])) : c("", !0)
636
+ ]),
637
+ "price-summary": h(() => [!o(x) && o(E) > 0 ? (f(), y("li", ct, [a("span", null, n(o(s)("booking.availability.basePrice")), 1), a("b", null, n(o(I)(o(E), o(B))), 1)])) : c("", !0), o(k) ? (f(!0), y(O, { key: 1 }, e(o(k), ({ roomGroupId: e }, t) => (f(), y(O, null, [o(z)(e, t) > 0 ? (f(), y("li", { key: e }, [a("span", null, n(o(s)("booking.reservation.addons")) + " - " + n(o(s)("booking.reservation.room")) + " #" + n(t + 1), 1), a("b", null, n(o(I)(o(z)(e, t), o(B))), 1)])) : c("", !0)], 64))), 256)) : c("", !0)]),
638
+ navigation: h(() => [g(b.$slots, "navigation", {}, void 0, !0)]),
639
+ "mobile-under-price": h(() => [o(x) && o(v) > 0 ? (f(), y("div", lt, [a("span", null, n(o(P)(o(w))) + " - " + n(o(P)(o(w), o(v))), 1)])) : (f(), y("div", ut, [a("span", null, n(o(P)(o(S))), 1)]))]),
640
+ "mobile-summary": h(() => [!o(x) && o(F) > 0 ? (f(), y("span", dt, n(o(s)("event.numberOfProducts")) + ": " + n(o(F)), 1)) : c("", !0)]),
641
+ _: 2
642
+ }, [o(l).sidebar ? {
643
+ name: "sidebar",
644
+ fn: h(() => [g(b.$slots, "sidebar", {}, void 0, !0)]),
645
+ key: "0"
646
+ } : void 0]), 1032, [
647
+ "discount-code",
648
+ "validate-discount-code",
649
+ "show-gift-card",
650
+ "show-terms-notice",
651
+ "is-sidebar-loading",
652
+ "base-price",
653
+ "total-price",
654
+ "weekend-fee",
655
+ "room-upgrade",
656
+ "notice",
657
+ "prev-callback"
658
+ ]));
659
+ }
660
+ }), [["__scopeId", "data-v-d2ff3f68"]]), pt = { class: "event-skeleton" }, mt = { class: "event-skeleton-content" }, ht = { class: "event-skeleton-sidebar" }, gt = /* @__PURE__ */ B(/* @__PURE__ */ l({
661
+ __name: "EventSkeleton",
662
+ setup(e) {
663
+ return (e, t) => (f(), y("div", pt, [a("div", mt, [s(Ce)]), a("div", ht, [c("", !0), s(we)])]));
664
+ }
665
+ }), [["__scopeId", "data-v-3e15c4e3"]]), _t = {
666
+ key: 0,
667
+ id: "konnectio-event-listings-wrapper"
668
+ }, vt = {
669
+ key: 1,
670
+ class: "konnectio-hotel-availability-title"
671
+ }, yt = { class: "konnectio-event-listings" }, bt = { class: "konnectio-hotel-availability-title" }, xt = { class: "konnectio-event-listings" }, St = ["innerHTML"], Ct = { class: "konnectio-panel" }, wt = {
672
+ key: 0,
673
+ id: "konnectio-event-addons"
674
+ }, Tt = { class: "konnectio-table with-lines" }, Et = { class: "konnectio-event-addons-price" }, Dt = { class: "konnectio-event-addons-input" }, Ot = { class: "konnectio-event-addons-price" }, kt = { class: "konnectio-event-addons-price" }, At = {
675
+ key: 1,
676
+ class: "konnectio-table with-lines without-header"
677
+ }, jt = { class: "konnectio-table-addons-information" }, Mt = { key: 0 }, Nt = { class: "konnectio-table-addons-option" }, Pt = { class: "konnectio-panel" }, Ft = /* @__PURE__ */ B(/* @__PURE__ */ l({
678
+ name: "EventLayout",
679
+ __name: "Event",
680
+ props: {
681
+ accessToken: {},
682
+ onlyShow: { default: "everything" },
683
+ selectedLocation: {},
684
+ resetDate: { default: "no" },
685
+ hideLocations: { default: "no" },
686
+ hideRemarks: { default: "no" },
687
+ hideAllergies: { default: "no" },
688
+ showFlagOnTable: { default: "no" },
689
+ showHighChairs: {},
690
+ sortOrder: { default: "asc" },
691
+ styling: {}
692
+ },
693
+ setup(t) {
694
+ let i = t, { t: l } = b(), p = q(), { addons: m, products: g, numberOfDays: x, flagOnTable: S, numberOfHighChairs: C, name: w, phone: T, email: E, remark: k, allergies: A, arrivalTime: P, hasEvents: L, hasTemplates: R, getTemplates: ne, getEventData: B, getTemplateData: V, getEventTableData: H, hasProducts: oe, eventRateType: ce, areListingsAvailable: le, isAvailabilityDataAvailable: ue, hasListingData: de, isPaymentLoading: fe, isReservationFormFilled: pe, requiresArrivalTime: me, hasSelectedRequiredProducts: he, getUnavailableEvents: Y, hasFallbackEvents: X, getFallbackEvents: ge } = D(p), ve = d(() => p.getSortedEvents(i.sortOrder)), { currency: Z, enableTracking: Q } = D(M()), { setActiveIdFilter: Se } = M(), { eventDate: we, eventLocation: Te } = D(j()), { isValidRestaurantId: Ee } = j(), { initialize: Ae, fetchListings: je, createBooking: Me, localAddonPrice: Ne, totalAddonPrice: Pe, reset: Fe, goBack: Ie } = q(), { beginEventCheckout: Le } = te(), { display: $ } = z(), Re = d(() => [
695
+ {
696
+ id: "availability",
697
+ label: l("booking.availability.title"),
698
+ icon: "search"
699
+ },
700
+ {
701
+ id: "addons",
702
+ label: l("general.addons"),
703
+ icon: "shopping-cart",
704
+ hidden: !1
705
+ },
706
+ {
707
+ id: "reservation",
708
+ label: l("booking.reservation.title"),
709
+ icon: "concierge-bell"
710
+ },
711
+ {
712
+ id: "payment",
713
+ hidden: !0
714
+ },
715
+ {
716
+ id: "confirmation",
717
+ label: l("booking.confirmation.title"),
718
+ icon: "calendar-check"
719
+ }
720
+ ]), ze = d(() => {
721
+ let e = [];
722
+ return H.value && H.value.forEach((t) => {
723
+ e.find((e) => e.value === t.time) || e.push({
724
+ label: U(t.time),
725
+ value: t.time
726
+ });
727
+ }), e;
728
+ });
729
+ function Ve() {
730
+ Fe(i.resetDate === "yes");
731
+ }
732
+ function He(e) {
733
+ Q.value && Le(), Me(e);
734
+ }
735
+ function Ue() {
736
+ let e = ie("history", { removeNullishValues: !0 }), t = parseInt(e.rid), n = e.d, r = parseInt(e.eid);
737
+ if (n) if (F(n)) {
738
+ let t = new Date(n);
739
+ t.setHours(12, 0, 0, 0) >= (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0) ? we.value = t : ($({
740
+ message: l("alert.error.invalidDateRange"),
741
+ type: "error"
742
+ }), e.d = void 0);
743
+ } else $({
744
+ message: l("alert.error.wrongDateFormat"),
745
+ type: "error"
746
+ });
747
+ isNaN(t) || (Ee(t) ? Te.value = t : (e.rid = void 0, $({
748
+ message: l("alert.error.hotelIdNotFound"),
749
+ type: "error"
750
+ }))), isNaN(r) || Se(r), je();
751
+ }
752
+ return (i, d) => (f(), r(re, { styling: t.styling }, {
753
+ default: h(() => [(f(), r(u, { onResolve: Ue }, {
754
+ default: h(() => [s(se, {
755
+ id: "konnectio-event-module",
756
+ "access-token": t.accessToken,
757
+ callback: o(Ae)
758
+ }, {
759
+ default: h(() => [s(be, {
760
+ steps: Re.value,
761
+ onReset: Ve
762
+ }, {
763
+ availability: h(({ next: i }) => [s(ft, null, {
764
+ sidebar: h(() => [s(_e, {
765
+ redirection: !1,
766
+ "selected-location": Number(t.selectedLocation),
767
+ "hide-locations": t.hideLocations === "yes"
768
+ }, null, 8, ["selected-location", "hide-locations"])]),
769
+ form: h(() => [o(de) && o(le) ? (f(), y("div", _t, [
770
+ o(X) ? (f(!0), y(O, { key: 0 }, e(o(ge), ({ id: e, name: t, description: n, images: a }) => (f(), r(Ze, {
771
+ key: e,
772
+ type: "event",
773
+ "listing-id": e,
774
+ description: n,
775
+ name: t,
776
+ gallery: a,
777
+ "tracking-enabled": o(Q),
778
+ callback: i
779
+ }, null, 8, [
780
+ "listing-id",
781
+ "description",
782
+ "name",
783
+ "gallery",
784
+ "tracking-enabled",
785
+ "callback"
786
+ ]))), 128)) : c("", !0),
787
+ ve.value.length > 0 && o(Y).length > 0 ? (f(), y("h2", vt, [s(J, {
788
+ icon: "calendar-clock",
789
+ type: "fal",
790
+ color: "header"
791
+ }), a("span", null, n(o(l)("event.availableNow")), 1)])) : c("", !0),
792
+ a("ul", yt, [o(L) && t.onlyShow !== "templates" ? (f(!0), y(O, { key: 0 }, e(ve.value, (e) => (f(), r(Be, {
793
+ name: e.name,
794
+ events: e.events,
795
+ "tracking-enabled": o(Q),
796
+ callback: i
797
+ }, null, 8, [
798
+ "name",
799
+ "events",
800
+ "tracking-enabled",
801
+ "callback"
802
+ ]))), 256)) : c("", !0), o(R) && t.onlyShow !== "events" ? (f(!0), y(O, { key: 1 }, e(o(ne), ({ id: e, name: t, fromDate: n, toDate: a, minimumPersonCount: s, fromPrice: c, description: l, images: u }) => (f(), r(Qe, {
803
+ key: e,
804
+ "listing-id": e,
805
+ name: t,
806
+ images: u,
807
+ description: l,
808
+ "from-date": n,
809
+ "to-date": a,
810
+ "minimum-person-count": s,
811
+ fromPrice: c,
812
+ "tracking-enabled": o(Q),
813
+ callback: i
814
+ }, null, 8, [
815
+ "listing-id",
816
+ "name",
817
+ "images",
818
+ "description",
819
+ "from-date",
820
+ "to-date",
821
+ "minimum-person-count",
822
+ "fromPrice",
823
+ "tracking-enabled",
824
+ "callback"
825
+ ]))), 128)) : c("", !0)]),
826
+ o(Y).length > 0 && t.onlyShow !== "templates" ? (f(), y(O, { key: 2 }, [a("h2", bt, [s(J, {
827
+ icon: "calendar-circle-exclamation",
828
+ type: "fal",
829
+ color: "header"
830
+ }), a("span", null, n(o(l)("event.availableLater")), 1)]), a("ul", xt, [(f(!0), y(O, null, e(o(Y), (e) => (f(), r(Ye, {
831
+ name: e.name,
832
+ events: e.events,
833
+ "tracking-enabled": o(Q),
834
+ callback: i
835
+ }, null, 8, [
836
+ "name",
837
+ "events",
838
+ "tracking-enabled",
839
+ "callback"
840
+ ]))), 256))])], 64)) : c("", !0),
841
+ (!o(L) && !o(R) || !o(L) && t.onlyShow === "events" || !o(R) && t.onlyShow === "templates") && !o(X) ? (f(), y("div", {
842
+ key: 3,
843
+ class: "konnectio-panel",
844
+ innerHTML: o(l)("event.nothingAvailable")
845
+ }, null, 8, St)) : c("", !0)
846
+ ])) : (f(), r(Ce, { key: 1 }))]),
847
+ _: 2
848
+ }, 1024)]),
849
+ addons: h(({ next: t, prev: i }) => [o(ue) ? (f(), r(ft, {
850
+ key: 0,
851
+ "prev-callback": () => o(Ie)(i)
852
+ }, {
853
+ form: h(() => [a("form", Ct, [
854
+ a("h2", null, [a("span", null, n(o(l)("event.selectProducts")), 1)]),
855
+ o(V) && o(V).length > 0 ? (f(), y("ul", wt, [(f(!0), y(O, null, e(o(V), ({ roomGroupId: t, addons: i, adultPerRoom: c }, u) => (f(), y("li", { key: t }, [a("h5", null, [
856
+ a("span", null, n(o(l)("booking.reservation.room")) + " #" + n(u + 1), 1),
857
+ d[9] ||= v(" (", -1),
858
+ s(J, {
859
+ icon: "male",
860
+ type: "fas",
861
+ color: "header"
862
+ }),
863
+ v(" " + n(c) + ") ", 1)
864
+ ]), a("table", Tt, [
865
+ a("thead", null, [a("tr", null, [
866
+ a("th", null, [a("span", null, n(o(l)("booking.reservation.addons")), 1)]),
867
+ d[10] ||= a("th", { class: "konnectio-event-addons-input" }, null, -1),
868
+ a("th", Et, [a("span", null, n(o(l)("booking.availability.price")), 1)])
869
+ ])]),
870
+ a("tbody", null, [(f(!0), y(O, null, e(i, ({ id: e, cardinality: i, name: s, price: c, quantityStrategy: l }) => (f(), y("tr", { key: e }, [
871
+ a("td", null, [
872
+ a("b", null, n(s), 1),
873
+ d[11] ||= a("br", null, null, -1),
874
+ a("span", null, n(o(I)(c, o(Z))) + " " + n(o(ee)(l)), 1)
875
+ ]),
876
+ a("td", Dt, [i === 3 ? (f(), r(G, {
877
+ key: 0,
878
+ modelValue: o(m)[`${t}.${e}.${u}`],
879
+ "onUpdate:modelValue": (n) => o(m)[`${t}.${e}.${u}`] = n,
880
+ small: !0,
881
+ "min-value": 0
882
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (f(), r(Oe, {
883
+ key: 1,
884
+ modelValue: o(m)[`${t}.${e}.${u}`],
885
+ "onUpdate:modelValue": (n) => o(m)[`${t}.${e}.${u}`] = n,
886
+ numeric: !0
887
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]))]),
888
+ a("td", Ot, [a("span", null, n(o(I)(o(Ne)(e, t, u), o(Z))), 1)])
889
+ ]))), 128))]),
890
+ a("tfoot", null, [a("tr", null, [
891
+ d[12] ||= a("td", null, null, -1),
892
+ d[13] ||= a("td", null, null, -1),
893
+ a("td", kt, [a("u", null, [a("span", null, n(o(I)(o(Pe)(t, u), o(Z))), 1)])])
894
+ ])])
895
+ ])]))), 128))])) : c("", !0),
896
+ o(oe) ? (f(), y("table", At, [a("tbody", null, [(f(!0), y(O, null, e(o(B).products, ({ id: e, name: t, price: r, description: i }) => (f(), y("tr", { key: e }, [a("td", jt, [
897
+ a("b", null, [a("span", null, n(o(N)(t)), 1)]),
898
+ i && i !== t ? (f(), y("span", Mt, n(o(N)(i)), 1)) : c("", !0),
899
+ a("u", null, n(o(I)(r, o(Z))), 1)
900
+ ]), a("td", Nt, [s(G, {
901
+ modelValue: o(g)[e],
902
+ "onUpdate:modelValue": (t) => o(g)[e] = t,
903
+ small: !0,
904
+ "min-value": 0
905
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])])]))), 128))])])) : c("", !0)
906
+ ])]),
907
+ navigation: h(() => [s(K, {
908
+ label: o(l)("event.startReservation"),
909
+ disabled: !o(he),
910
+ "full-width": "",
911
+ onClickEvent: t
912
+ }, null, 8, [
913
+ "label",
914
+ "disabled",
915
+ "onClickEvent"
916
+ ])]),
917
+ _: 2
918
+ }, 1032, ["prev-callback"])) : c("", !0)]),
919
+ reservation: h(({ next: e, prev: i }) => [s(ft, {
920
+ "show-terms-notice": !0,
921
+ "show-gift-card": !0,
922
+ "prev-callback": () => o(Ie)(i)
923
+ }, {
924
+ form: h(() => [a("form", Pt, [
925
+ a("h2", null, [a("span", null, n(o(l)("booking.reservation.detailsTitle")), 1)]),
926
+ s(W, {
927
+ modelValue: o(w),
928
+ "onUpdate:modelValue": d[0] ||= (e) => _(w) ? w.value = e : null,
929
+ type: "text",
930
+ label: o(l)("booking.reservation.name"),
931
+ icon: "user-alt",
932
+ placeholder: o(l)("booking.reservation.namePlaceholder"),
933
+ required: ""
934
+ }, null, 8, [
935
+ "modelValue",
936
+ "label",
937
+ "placeholder"
938
+ ]),
939
+ s(W, {
940
+ modelValue: o(E),
941
+ "onUpdate:modelValue": d[1] ||= (e) => _(E) ? E.value = e : null,
942
+ label: o(l)("booking.reservation.email"),
943
+ type: "email",
944
+ name: "email",
945
+ autocomplete: "email",
946
+ icon: "at",
947
+ placeholder: o(l)("booking.reservation.emailPlaceholder"),
948
+ required: ""
949
+ }, null, 8, [
950
+ "modelValue",
951
+ "label",
952
+ "placeholder"
953
+ ]),
954
+ s(De, {
955
+ modelValue: o(T),
956
+ "onUpdate:modelValue": d[2] ||= (e) => _(T) ? T.value = e : null,
957
+ label: o(l)("booking.reservation.phone"),
958
+ icon: "phone-office",
959
+ placeholder: o(l)("booking.reservation.phonePlaceholder"),
960
+ required: ""
961
+ }, null, 8, [
962
+ "modelValue",
963
+ "label",
964
+ "placeholder"
965
+ ]),
966
+ o(me) ? (f(), r(xe, {
967
+ key: 0,
968
+ modelValue: o(P),
969
+ "onUpdate:modelValue": d[3] ||= (e) => _(P) ? P.value = e : null,
970
+ label: o(l)("event.selectArrivalTime"),
971
+ name: "eventTimeTable",
972
+ checkboxes: ze.value,
973
+ required: ""
974
+ }, null, 8, [
975
+ "modelValue",
976
+ "label",
977
+ "checkboxes"
978
+ ])) : c("", !0),
979
+ o(ce) === o(ae).FullDayEvent ? (f(), r(G, {
980
+ key: 1,
981
+ modelValue: o(x),
982
+ "onUpdate:modelValue": d[4] ||= (e) => _(x) ? x.value = e : null,
983
+ label: o(l)("event.numberOfDays"),
984
+ "min-value": 1,
985
+ required: ""
986
+ }, null, 8, ["modelValue", "label"])) : c("", !0),
987
+ t.showHighChairs === "yes" ? (f(), r(G, {
988
+ key: 2,
989
+ modelValue: o(C),
990
+ "onUpdate:modelValue": d[5] ||= (e) => _(C) ? C.value = e : null,
991
+ label: o(l)("event.numberOfHighChairs"),
992
+ icon: "baby",
993
+ "no-optional-label": !1
994
+ }, null, 8, ["modelValue", "label"])) : c("", !0),
995
+ t.showFlagOnTable === "yes" ? (f(), r(Oe, {
996
+ key: 3,
997
+ modelValue: o(S),
998
+ "onUpdate:modelValue": d[6] ||= (e) => _(S) ? S.value = e : null,
999
+ label: o(l)("event.flagOnTable")
1000
+ }, null, 8, ["modelValue", "label"])) : c("", !0),
1001
+ t.hideRemarks === "yes" ? c("", !0) : (f(), r(W, {
1002
+ key: 4,
1003
+ modelValue: o(k),
1004
+ "onUpdate:modelValue": d[7] ||= (e) => _(k) ? k.value = e : null,
1005
+ type: "textarea",
1006
+ label: o(l)("booking.reservation.remark"),
1007
+ icon: "info-circle",
1008
+ placeholder: o(l)("booking.reservation.remarkPlaceholder")
1009
+ }, null, 8, [
1010
+ "modelValue",
1011
+ "label",
1012
+ "placeholder"
1013
+ ])),
1014
+ t.hideAllergies !== "yes" && o(B)?.showAllergyFoodFieldOnline ? (f(), r(W, {
1015
+ key: 5,
1016
+ modelValue: o(A),
1017
+ "onUpdate:modelValue": d[8] ||= (e) => _(A) ? A.value = e : null,
1018
+ type: "textarea",
1019
+ label: o(l)("booking.reservation.allergies"),
1020
+ icon: "allergies",
1021
+ placeholder: o(l)("booking.reservation.allergiesPlaceholder")
1022
+ }, null, 8, [
1023
+ "modelValue",
1024
+ "label",
1025
+ "placeholder"
1026
+ ])) : c("", !0)
1027
+ ])]),
1028
+ navigation: h(() => [s(K, {
1029
+ label: o(l)("general.confirmReservation"),
1030
+ "is-loading": o(fe),
1031
+ disabled: !o(pe),
1032
+ "full-width": "",
1033
+ onClickEvent: (t) => He(e)
1034
+ }, null, 8, [
1035
+ "label",
1036
+ "is-loading",
1037
+ "disabled",
1038
+ "onClickEvent"
1039
+ ])]),
1040
+ _: 2
1041
+ }, 1032, ["prev-callback"])]),
1042
+ payment: h(() => [s(ke)]),
1043
+ confirmation: h(() => [s(ye, { message: o(l)("event.confirmationMessage") }, null, 8, ["message"])]),
1044
+ _: 1
1045
+ }, 8, ["steps"])]),
1046
+ _: 1
1047
+ }, 8, ["access-token", "callback"])]),
1048
+ fallback: h(() => [s(gt)]),
1049
+ _: 1
1050
+ }))]),
1051
+ _: 1
1052
+ }, 8, ["styling"]));
1053
+ }
1054
+ }), [["__scopeId", "data-v-f58c56d6"]]), It = m(), Lt = E(), Rt = class extends HTMLElement {
1055
+ vueApp;
1056
+ constructor() {
1057
+ super();
1058
+ }
1059
+ disconnectedCallback() {
1060
+ this.vueApp.unmount();
1061
+ }
1062
+ connectedCallback() {
1063
+ let e = w(Ft, this.attributes);
1064
+ this.vueApp = x(Ft, e), this.vueApp.provide("emitter", Lt), this.vueApp.use(A), this.vueApp.use(C), this.vueApp.use(It), this.vueApp.use(Te), this.vueApp.use(ve), this.vueApp.use(Q);
1065
+ let t = document.createElement("div");
1066
+ this.vueApp.mount(t), this.appendChild(t.children[0]);
1067
+ }
1193
1068
  };
1194
- //# sourceMappingURL=event.js.map
1069
+ window.customElements.define("konnectio-event", Rt);
1070
+ //#endregion
1071
+ export { Rt as default };