@konnectio/core 4.0.56-rc60 → 4.0.56-rc62

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