@konnectio/core 4.0.56-rc62 → 4.0.56-rc64

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