@konnectio/core 4.1.25 → 4.1.27

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