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