@konnectio/core 4.0.56-rc61 → 4.0.56-rc63

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