@konnectio/core 4.1.25 → 4.1.26

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