@konnectio/core 4.0.62 → 4.0.64

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