@konnectio/core 4.0.56-rc59 → 4.0.56-rc60

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