@konnectio/core 4.0.56-rc64 → 4.0.56-rc65

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