@konnectio/core 4.2.20 → 4.2.22

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