@konnectio/core 4.0.70 → 4.0.72

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