@konnectio/core 4.0.69 → 4.0.71

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 (69) hide show
  1. package/dist/{ActionField-Cvrd0oT4.js → ActionField-BOjNNOwm.js} +15 -15
  2. package/dist/ActionField-BOjNNOwm.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-C9hYCt8n.js → AvailabilitySkeleton-BBZ1jYsL.js} +7 -7
  4. package/dist/AvailabilitySkeleton-BBZ1jYsL.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CcnfiFBT.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BBnNIH98.js} +417 -420
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BBnNIH98.js.br +0 -0
  7. package/dist/{CheckoutWindow-Jd7cv0fV.js → CheckoutWindow-Be87geqA.js} +5 -5
  8. package/dist/CheckoutWindow-Be87geqA.js.br +0 -0
  9. package/dist/{ErrorMessage-CY9XqT_-.js → ErrorMessage-PrTNCV3L.js} +4 -4
  10. package/dist/ErrorMessage-PrTNCV3L.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-liW326n_.js → EventAvailabilityForm-B_kQ68K4.js} +25 -25
  12. package/dist/EventAvailabilityForm-B_kQ68K4.js.br +0 -0
  13. package/dist/{Field-DBjYUlqg.js → Field-Cly4g5NO.js} +9 -9
  14. package/dist/Field-Cly4g5NO.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B4bGDuSh.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DeBoKL9k.js} +2645 -2643
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DeBoKL9k.js.br +0 -0
  17. package/dist/{TermsOfService-DoPiQYS7.js → TermsOfService-B4VF2Mqd.js} +6 -6
  18. package/dist/TermsOfService-B4VF2Mqd.js.br +0 -0
  19. package/dist/{_-IWx6O9VX.js → _-D9xfNmwK.js} +3 -3
  20. package/dist/{_.vue_vue_type_style_index_0_lang-DGEXmj4f.js → _.vue_vue_type_style_index_0_lang-CEE8x56y.js} +7 -7
  21. package/dist/_.vue_vue_type_style_index_0_lang-CEE8x56y.js.br +0 -0
  22. package/dist/_commonjsHelpers-CjBehFnu.js +25 -0
  23. package/dist/_commonjsHelpers-CjBehFnu.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-BLCF_5fD.js → _sentry-release-injection-file-DsYwID46.js} +13 -13
  25. package/dist/_sentry-release-injection-file-DsYwID46.js.br +0 -0
  26. package/dist/availability.js +22 -21
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +27 -21
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +342 -334
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +24 -23
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +55 -54
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/{giftCard-gaWxo7v2.js → giftCard-DL8SvzFu.js} +15 -15
  37. package/dist/giftCard-DL8SvzFu.js.br +0 -0
  38. package/dist/hotel.js +779 -764
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-C7YeIXYO.js → masonry.plugin-DyMWv_cS.js} +1655 -1585
  41. package/dist/masonry.plugin-DyMWv_cS.js.br +0 -0
  42. package/dist/{mitt-tOYHzZHa.js → mitt-CxLBLOxI.js} +177 -177
  43. package/dist/mitt-CxLBLOxI.js.br +0 -0
  44. package/dist/polyfill.js +855 -846
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/sentry-9IPMO-VI.js +26 -0
  47. package/dist/{style-iCfvULKs.js → style-bf_adpj0.js} +83 -83
  48. package/dist/style-bf_adpj0.js.br +0 -0
  49. package/dist/style.css +1 -1
  50. package/dist/style.css.br +0 -0
  51. package/dist/{_commonjsHelpers-DLzKE872.js → tracing-1TgukAt0.js} +197 -204
  52. package/dist/tracing-1TgukAt0.js.br +0 -0
  53. package/package.json +5 -5
  54. package/dist/ActionField-Cvrd0oT4.js.br +0 -0
  55. package/dist/AvailabilitySkeleton-C9hYCt8n.js.br +0 -0
  56. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CcnfiFBT.js.br +0 -0
  57. package/dist/CheckoutWindow-Jd7cv0fV.js.br +0 -0
  58. package/dist/ErrorMessage-CY9XqT_-.js.br +0 -0
  59. package/dist/EventAvailabilityForm-liW326n_.js.br +0 -0
  60. package/dist/Field-DBjYUlqg.js.br +0 -0
  61. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B4bGDuSh.js.br +0 -0
  62. package/dist/TermsOfService-DoPiQYS7.js.br +0 -0
  63. package/dist/_.vue_vue_type_style_index_0_lang-DGEXmj4f.js.br +0 -0
  64. package/dist/_commonjsHelpers-DLzKE872.js.br +0 -0
  65. package/dist/_sentry-release-injection-file-BLCF_5fD.js.br +0 -0
  66. package/dist/giftCard-gaWxo7v2.js.br +0 -0
  67. package/dist/masonry.plugin-C7YeIXYO.js.br +0 -0
  68. package/dist/mitt-tOYHzZHa.js.br +0 -0
  69. package/dist/style-iCfvULKs.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-BLCF_5fD.js";
2
- import { u as ie, s as U, c as ot, l as at, i as lt, m as st } from "./mitt-tOYHzZHa.js";
3
- import { a as Ie, b as ae, l as it, s as le, d as be, B as rt, _ as re, e as he, I as ge, f as ut, g as ke, h as G, u as we, i as dt, j as $e, T as te, O as ct, C as mt, k as pt, m as vt, c as ft, n as bt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B4bGDuSh.js";
4
- import { G as gt } from "./style-iCfvULKs.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-CcnfiFBT.js";
6
- import { _ as _t } from "./_.vue_vue_type_style_index_0_lang-DGEXmj4f.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-C7YeIXYO.js";
8
- import { C as St, P as It, a as Nt } from "./CheckoutWindow-Jd7cv0fV.js";
9
- import { E as Bt } from "./EventAvailabilityForm-liW326n_.js";
1
+ import { d as Y, r as Qe, c as J, a, b as P, w as m, l as le, 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-DsYwID46.js";
2
+ import { u as ie, s as q, c as nt, l as ot, i as at, m as lt } from "./mitt-CxLBLOxI.js";
3
+ import { c as st } from "./sentry-9IPMO-VI.js";
4
+ import { a as Ie, b as se, l as it, s as U, c as be, B as rt, _ as re, 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 oe, O as ct, C as mt, j as pt, k as vt, m as ft } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DeBoKL9k.js";
5
+ import { G as bt } from "./style-bf_adpj0.js";
6
+ import { e as gt, c as kt, t as ae, 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-BBnNIH98.js";
7
+ import { _ as yt } from "./_.vue_vue_type_style_index_0_lang-CEE8x56y.js";
8
+ import { B as _t, _ as Pt, R as wt, L as Ne, S as $t, M as Dt, C as Et, T as Vt, V as Tt } from "./masonry.plugin-DyMWv_cS.js";
9
+ import { C as Ot, P as It, a as Nt } from "./CheckoutWindow-Be87geqA.js";
10
+ import { E as St } from "./EventAvailabilityForm-B_kQ68K4.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] = "cff4ea99-4d02-4112-be9f-d4a4f41cd89e", c._sentryDebugIdIdentifier = "sentry-dbid-cff4ea99-4d02-4112-be9f-d4a4f41cd89e");
14
+ n && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[n] = "97e54deb-6a14-48c8-82a4-f8ef729da24a", c._sentryDebugIdIdentifier = "sentry-dbid-97e54deb-6a14-48c8-82a4-f8ef729da24a");
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 ne = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
20
+ ne._sentryModuleMetadata = ne._sentryModuleMetadata || {}, ne._sentryModuleMetadata[new Error().stack] = Object.assign(
20
21
  {},
21
- ee._sentryModuleMetadata[new Error().stack],
22
+ ne._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 f = (c ? Math[c] : Math.trunc)(n);
29
+ return f === 0 ? 0 : f;
29
30
  };
30
31
  }
31
- function Ct(c, n, i) {
32
- const v = yt(), b = i?.locale ?? v.locale ?? kt, r = ht(c, n);
32
+ function At(c, n, i) {
33
+ const f = ht(), g = i?.locale ?? f.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 = ae(n), p = ae(c)) : (E = ae(c), p = ae(n));
42
+ const w = Bt(i?.roundingMethod ?? "round"), V = p.getTime() - E.getTime(), _ = V / Te, $ = $e(p) - $e(E), T = (V - $) / Te, B = 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 (B ? k = B : _ < 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 && B !== "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 Ct = { class: "konnectio-event-listing-action-button" }, Lt = /* @__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 } = ie(), i = c, { display: f } = Ie(), {
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)), B = () => {
99
+ if (!i.useNumberOfProductsForPersons && $.value === 0) {
100
+ f({
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
+ f({
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, A) => (a(), P(_t, {
117
118
  type: "event",
118
119
  "listing-id": l.listingId,
119
120
  gallery: l.gallery,
@@ -124,33 +125,33 @@ const Lt = { class: "konnectio-event-listing-action-button" }, Ft = /* @__PURE__
124
125
  layout: e(rt).Event
125
126
  }, {
126
127
  description: m(() => [
127
- oe(l.$slots, "description", { maxNumberOfPeople: e(b) }, void 0, !0)
128
+ le(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(se, {
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": A[0] || (A[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
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
- t("div", Lt, [
149
- p(be, {
149
+ t("div", Ct, [
150
+ v(be, {
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
+ "sub-label": e(U)(e(E)),
154
155
  onClickEvent: A[1] || (A[1] = (L) => l.type === "event" ? k() : B())
155
156
  }, null, 8, ["label", "disabled", "is-loading", "sub-label"])
156
157
  ])
@@ -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
- const Mt = {
163
+ }), Se = /* @__PURE__ */ re(Lt, [["__scopeId", "data-v-ce0428f4"]]), Ft = { class: "konnectio-event-listing-information-new" };
164
+ const Rt = {
164
165
  key: 1,
165
166
  class: "konnectio-pill-button"
166
- }, Ut = { class: "konnectio-pill-button" }, qt = /* @__PURE__ */ H({
167
+ }, Mt = { class: "konnectio-pill-button" }, Ut = /* @__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 } = ie(), { hideEventLength: f } = q(he()), g = J(() => {
190
191
  const r = n.length.split(":");
191
- return Ct(
192
+ return At(
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(Se, {
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
- t("ul", Rt, [
215
+ t("ul", Ft, [
215
216
  d("", !0),
216
- e(v) ? d("", !0) : (o(), u("li", Mt, [
217
+ e(f) ? d("", !0) : (a(), u("li", Rt, [
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
- t("li", Ut, [
227
+ t("li", Mt, [
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(ut)(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
+ }), qt = /* @__PURE__ */ re(Ut, [["__scopeId", "data-v-fe4489ed"]]), zt = /* @__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,164 @@ const Mt = {
264
265
  url: n.image
265
266
  }];
266
267
  });
267
- return (v, b) => (o(), _(Be, {
268
- "listing-id": v.listingId,
268
+ return (f, g) => (a(), P(Se, {
269
+ "listing-id": f.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: f.name,
272
+ description: f.description,
273
+ "prices-from": f.fromPrice,
274
+ "to-date": f.toDate,
274
275
  type: "template",
275
- callback: v.callback
276
+ callback: f.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
+ }), Gt = { key: 0 }, jt = { key: 1 }, Ht = { key: 2 }, Yt = { key: 3 }, Kt = { key: 4 }, Qt = { key: 5 }, Wt = { key: 6 }, Jt = { key: 7 }, Xt = { key: 0 }, Zt = { key: 0 }, xt = { key: 1 }, en = { key: 2 }, fe = /* @__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
287
  const { t: n } = ie(), i = Je(), {
286
- areListingsAvailable: v,
287
- arrivalTime: b,
288
+ areListingsAvailable: f,
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
299
  basePrice: B,
298
300
  totalPrice: k,
299
301
  weekendFee: l,
300
302
  roomUpgrade: A,
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: Z, hideEventLength: ce } = q(he());
305
+ return (F, x) => (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": x[0] || (x[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),
309
+ "show-gift-card": F.showGiftCard,
310
+ "show-terms-notice": F.showTermsNotice,
311
+ "is-sidebar-loading": !e(f),
310
312
  "base-price": e(B),
311
313
  "total-price": e(k),
312
314
  "weekend-fee": e(l),
313
315
  "room-upgrade": e(A),
314
- notice: e(n)("event.reservationNotice")
316
+ notice: e(n)("event.reservationNotice"),
317
+ "prev-callback": F.prevCallback
315
318
  }, Xe({
316
319
  form: m(() => [
317
- oe(M.$slots, "form")
320
+ le(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", Gt, [
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", jt, [
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", Ht, [
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", Yt, [
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", Kt, [
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", Qt, [
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", Wt, [
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", Jt, [
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", Xt, [
358
+ t("span", null, o(e(n)("booking.availability.basePrice")), 1),
359
+ t("b", null, o(e(j)(e($), e(Z))), 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 }, ee) => (a(), u("li", { key: z }, [
362
+ t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(ee + 1), 1),
363
+ t("b", null, o(e(j)(e(ue)(z, ee), e(Z))), 1)
361
364
  ]))), 128)) : d("", !0)
362
365
  ]),
363
366
  navigation: m(() => [
364
- oe(M.$slots, "navigation")
367
+ le(F.$slots, "navigation")
368
+ ]),
369
+ "mobile-under-price": m(() => [
370
+ e(p) ? (a(), u("div", Zt, [
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", xt, [
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", en, [
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
+ le(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
+ }), tn = { class: "event-skeleton" }, nn = { class: "event-skeleton-content" }, on = { class: "event-skeleton-sidebar" }, an = /* @__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", tn, [
397
+ t("div", nn, [
398
+ v(Ne)
383
399
  ]),
384
- t("div", tn, [
400
+ t("div", on, [
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
+ }), ln = /* @__PURE__ */ re(an, [["__scopeId", "data-v-3e15c4e3"]]), X = (c) => (xe("data-v-25b5d12f"), c = c(), et(), c), sn = {
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 rn = { class: "konnectio-event-listings" };
411
+ const un = { class: "konnectio-event-listings" }, dn = {
396
412
  key: 2,
397
413
  class: "konnectio-panel"
398
- }, un = { class: "konnectio-panel" }, dn = {
414
+ }, cn = { class: "konnectio-panel" }, mn = {
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
+ }, pn = { class: "konnectio-table with-lines" }, vn = /* @__PURE__ */ X(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), fn = { class: "konnectio-event-addons-price" }, bn = /* @__PURE__ */ X(() => /* @__PURE__ */ t("br", null, null, -1)), gn = { class: "konnectio-event-addons-input" }, kn = { class: "konnectio-event-addons-price" }, hn = /* @__PURE__ */ X(() => /* @__PURE__ */ t("td", null, null, -1)), yn = /* @__PURE__ */ X(() => /* @__PURE__ */ t("td", null, null, -1)), _n = { class: "konnectio-event-addons-price" }, Pn = {
402
418
  key: 1,
403
419
  class: "konnectio-table with-lines"
404
- }, _n = /* @__PURE__ */ W(() => /* @__PURE__ */ t("thead", null, [
420
+ }, wn = /* @__PURE__ */ X(() => /* @__PURE__ */ t("thead", null, [
405
421
  /* @__PURE__ */ t("tr", null, [
406
422
  /* @__PURE__ */ t("th"),
407
423
  /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" })
408
424
  ])
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({
425
+ ], -1)), $n = { class: "konnectio-table-addons-information" }, Dn = { key: 0 }, En = { class: "konnectio-table-addons-option" }, Vn = { class: "konnectio-panel" }, Tn = /* @__PURE__ */ Y({
410
426
  name: "EventLayout",
411
427
  __name: "Event",
412
428
  props: {
@@ -418,16 +434,16 @@ const sn = { class: "konnectio-event-listings" }, rn = {
418
434
  setup(c) {
419
435
  const { t: n } = ie(), {
420
436
  addons: i,
421
- products: v,
422
- numberOfDays: b,
437
+ products: f,
438
+ numberOfDays: g,
423
439
  name: r,
424
440
  phone: h,
425
441
  email: E,
426
- remark: g,
427
- allergies: $,
442
+ remark: p,
443
+ allergies: w,
428
444
  arrivalTime: V,
429
- hasEvents: D,
430
- hasTemplates: P,
445
+ hasEvents: _,
446
+ hasTemplates: $,
431
447
  getEvents: T,
432
448
  getTemplates: B,
433
449
  getEventData: k,
@@ -436,20 +452,20 @@ const sn = { class: "konnectio-event-listings" }, rn = {
436
452
  hasProducts: L,
437
453
  eventRateType: ue,
438
454
  areListingsAvailable: de,
439
- isAvailabilityDataAvailable: x,
455
+ isAvailabilityDataAvailable: Z,
440
456
  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,
457
+ isPaymentLoading: F,
458
+ isReservationFormFilled: x,
459
+ requiresArrivalTime: z,
460
+ hasSelectedRequiredProducts: ee
461
+ } = q(H()), { currency: te } = q(he()), { eventDate: Be, eventLocation: Ae } = q(Pe()), { isValidRestaurantId: Ce } = Pe(), {
462
+ initialize: Le,
463
+ fetchListings: Fe,
464
+ createBooking: Re,
465
+ localAddonPrice: Me,
466
+ totalAddonPrice: Ue,
451
467
  reset: ye
452
- } = j(), { display: me } = Ie(), ze = [
468
+ } = H(), { display: me } = Ie(), qe = J(() => [
453
469
  {
454
470
  id: "availability",
455
471
  label: n("booking.availability.title"),
@@ -457,8 +473,8 @@ const sn = { class: "konnectio-event-listings" }, rn = {
457
473
  },
458
474
  {
459
475
  id: "addons",
460
- label: n("booking.reservation.title"),
461
- icon: "concierge-bell",
476
+ label: n("booking.reservation.addons"),
477
+ icon: "shopping-cart",
462
478
  hidden: !1
463
479
  },
464
480
  {
@@ -475,23 +491,23 @@ const sn = { class: "konnectio-event-listings" }, rn = {
475
491
  label: n("booking.confirmation.title"),
476
492
  icon: "calendar-check"
477
493
  }
478
- ], Ge = se(() => {
479
- const w = [];
480
- return A.value && A.value.forEach((f) => {
481
- w.push({
482
- label: ke(f.time),
483
- value: f.time
494
+ ]), ze = J(() => {
495
+ const D = [];
496
+ return A.value && A.value.forEach((b) => {
497
+ D.push({
498
+ label: ke(b.time),
499
+ value: b.time
484
500
  });
485
- }), w;
501
+ }), D;
486
502
  });
487
- function je() {
488
- const w = pt("history", {
503
+ function Ge() {
504
+ const D = pt("history", {
489
505
  removeNullishValues: !0
490
- }), f = parseInt(w.rid), N = w.d, O = parseInt(w.eid);
491
- if (N)
492
- if (vt(N)) {
493
- 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({
506
+ }), b = parseInt(D.rid), S = D.d, O = parseInt(D.eid);
507
+ if (S)
508
+ if (vt(S)) {
509
+ const N = new Date(S), C = N.setHours(12, 0, 0, 0), y = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
510
+ C >= y ? (Be.value = N, D.d = void 0) : me({
495
511
  message: n("alert.error.invalidDateRange"),
496
512
  type: "error"
497
513
  });
@@ -500,182 +516,185 @@ const sn = { class: "konnectio-event-listings" }, rn = {
500
516
  message: n("alert.error.wrongDateFormat"),
501
517
  type: "error"
502
518
  });
503
- isNaN(f) || (Le(f) ? Ce.value = f : me({
519
+ isNaN(b) || (Ce(b) ? Ae.value = b : me({
504
520
  message: n("alert.error.hotelIdNotFound"),
505
521
  type: "error"
506
522
  }));
507
523
  let s;
508
- isNaN(O) || (s = O), Re(s);
524
+ isNaN(O) || (s = O), Fe(s);
509
525
  }
510
- return (w, f) => (o(), _(mt, { styling: w.styling }, {
526
+ return (D, b) => (a(), P(mt, { styling: D.styling }, {
511
527
  default: m(() => [
512
- (o(), _(Ze, { onResolve: je }, {
528
+ (a(), P(Ze, { onResolve: Ge }, {
513
529
  default: m(() => [
514
- p(_t, {
530
+ v(yt, {
515
531
  id: "konnectio-event-module",
516
- "access-token": w.accessToken,
517
- callback: e(Fe)
532
+ "access-token": D.accessToken,
533
+ callback: e(Le)
518
534
  }, {
519
535
  default: m(() => [
520
- p(Et, { steps: ze }, {
521
- availability: m(({ next: N }) => [
522
- p(fe, null, {
536
+ v(Dt, { steps: qe.value }, {
537
+ availability: m(({ next: S }) => [
538
+ v(fe, null, {
523
539
  sidebar: m(() => [
524
- p(Bt, {
540
+ v(St, {
525
541
  redirection: !1,
526
- "selected-location": Number(w.selectedLocation)
542
+ "selected-location": Number(D.selectedLocation)
527
543
  }, null, 8, ["selected-location"])
528
544
  ]),
529
545
  form: m(() => [
530
- e(ce) && e(de) ? (o(), u("div", an, [
531
- e(D) && w.onlyShow !== "templates" ? (o(), u(F, { key: 0 }, [
546
+ e(ce) && e(de) ? (a(), u("div", sn, [
547
+ e(_) && D.onlyShow !== "templates" ? (a(), u(R, { key: 0 }, [
532
548
  d("", !0),
533
- t("ul", ln, [
534
- (o(!0), u(F, null, z(e(T), ({
549
+ t("ul", rn, [
550
+ (a(!0), u(R, null, G(e(T), ({
535
551
  id: O,
536
552
  days: s,
537
- name: I,
553
+ name: N,
538
554
  timeFrom: C,
539
555
  timeTo: y,
540
- fromDate: S,
541
- toDate: Y,
542
- tableGroupId: K,
556
+ fromDate: I,
557
+ toDate: K,
558
+ tableGroupId: Q,
543
559
  description: pe,
544
560
  soldOut: ve,
545
- length: Q,
546
- images: He,
547
- maxOnlineReservationLimit: Ye,
548
- maxPaxPerReservation: Ke,
549
- useNumberOfProductsForPersons: Qe
550
- }) => (o(), _(zt, {
561
+ length: W,
562
+ images: je,
563
+ maxOnlineReservationLimit: He,
564
+ maxPaxPerReservation: Ye,
565
+ useNumberOfProductsForPersons: Ke
566
+ }) => (a(), P(qt, {
551
567
  key: O,
552
568
  type: "event",
553
569
  "listing-id": O,
554
- "table-group-id": K,
570
+ "table-group-id": Q,
555
571
  description: pe,
556
- name: I,
557
- length: Q,
558
- gallery: He,
572
+ name: N,
573
+ length: W,
574
+ gallery: je,
559
575
  days: s,
560
- "from-date": S,
561
- "to-date": Y,
562
- "max-online-reservation-limit": Ke || Ye,
576
+ "from-date": I,
577
+ "to-date": K,
578
+ "max-online-reservation-limit": Ye || He,
563
579
  "time-from": C,
564
580
  "time-to": y,
565
581
  "sold-out": ve,
566
- "use-number-of-products-for-persons": Qe,
567
- callback: N
582
+ "use-number-of-products-for-persons": Ke,
583
+ callback: S
568
584
  }, 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
585
  ])
570
586
  ], 64)) : d("", !0),
571
- e(P) && w.onlyShow !== "events" ? (o(), u(F, { key: 1 }, [
587
+ e($) && D.onlyShow !== "events" ? (a(), u(R, { key: 1 }, [
572
588
  d("", !0),
573
- t("ul", sn, [
574
- (o(!0), u(F, null, z(e(B), ({
589
+ t("ul", un, [
590
+ (a(!0), u(R, null, G(e(B), ({
575
591
  id: O,
576
592
  name: s,
577
- fromDate: I,
593
+ fromDate: N,
578
594
  toDate: C,
579
595
  minimumPersonCount: y,
580
- fromPrice: S,
581
- description: Y,
582
- imageUrl: K
583
- }) => (o(), _(Gt, {
596
+ fromPrice: I,
597
+ description: K,
598
+ imageUrl: Q
599
+ }) => (a(), P(zt, {
584
600
  key: O,
585
601
  "listing-id": O,
586
602
  name: s,
587
- image: K,
588
- description: Y,
589
- "from-date": I,
603
+ image: Q,
604
+ description: K,
605
+ "from-date": N,
590
606
  "to-date": C,
591
607
  "minimum-person-count": y,
592
- fromPrice: S,
593
- callback: N
608
+ fromPrice: I,
609
+ callback: S
594
610
  }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
595
611
  ])
596
612
  ], 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)
613
+ !e(_) && !e($) || !e(_) && D.onlyShow === "events" || !e($) && D.onlyShow === "templates" ? (a(), u("div", dn, [
614
+ t("span", null, o(e(n)("event.nothingAvailable")), 1)
599
615
  ])) : d("", !0)
600
- ])) : (o(), _(Ne, { key: 1 }))
616
+ ])) : (a(), P(Ne, { key: 1 }))
601
617
  ]),
602
618
  _: 2
603
619
  }, 1024)
604
620
  ]),
605
- addons: m(({ next: N, prev: O }) => [
606
- e(x) ? (o(), _(fe, { key: 0 }, {
621
+ addons: m(({ next: S, prev: O }) => [
622
+ e(Z) ? (a(), P(fe, {
623
+ key: 0,
624
+ "prev-callback": () => e(ye)(O)
625
+ }, {
607
626
  form: m(() => [
608
- t("form", un, [
627
+ t("form", cn, [
609
628
  t("h2", null, [
610
- t("span", null, a(e(n)("event.selectProducts")), 1)
629
+ t("span", null, o(e(n)("event.selectProducts")), 1)
611
630
  ]),
612
- e(l) && e(l).length > 0 ? (o(), u("ul", dn, [
613
- (o(!0), u(F, null, z(e(l), ({
631
+ e(l) && e(l).length > 0 ? (a(), u("ul", mn, [
632
+ (a(!0), u(R, null, G(e(l), ({
614
633
  roomGroupId: s,
615
- addons: I,
634
+ addons: N,
616
635
  adultPerRoom: C
617
- }, y) => (o(), u("li", { key: s }, [
636
+ }, y) => (a(), u("li", { key: s }, [
618
637
  t("h5", null, [
619
- t("span", null, a(e(n)("booking.reservation.room")) + " #" + a(y + 1), 1),
638
+ t("span", null, o(e(n)("booking.reservation.room")) + " #" + o(y + 1), 1),
620
639
  _e(" ("),
621
- p(ge, {
640
+ v(ge, {
622
641
  icon: "male",
623
642
  type: "fas",
624
643
  color: "header"
625
644
  }),
626
- _e(" " + a(C) + ") ", 1)
645
+ _e(" " + o(C) + ") ", 1)
627
646
  ]),
628
- t("table", cn, [
647
+ t("table", pn, [
629
648
  t("thead", null, [
630
649
  t("tr", null, [
631
650
  t("th", null, [
632
- t("span", null, a(e(n)("booking.reservation.addons")), 1)
651
+ t("span", null, o(e(n)("booking.reservation.addons")), 1)
633
652
  ]),
634
- mn,
635
- t("th", pn, [
636
- t("span", null, a(e(n)("booking.availability.price")), 1)
653
+ vn,
654
+ t("th", fn, [
655
+ t("span", null, o(e(n)("booking.availability.price")), 1)
637
656
  ])
638
657
  ])
639
658
  ]),
640
659
  t("tbody", null, [
641
- (o(!0), u(F, null, z(I, ({
642
- id: S,
643
- cardinality: Y,
644
- name: K,
660
+ (a(!0), u(R, null, G(N, ({
661
+ id: I,
662
+ cardinality: K,
663
+ name: Q,
645
664
  price: pe,
646
665
  quantityStrategy: ve
647
- }) => (o(), u("tr", { key: S }, [
666
+ }) => (a(), u("tr", { key: I }, [
648
667
  t("td", null, [
649
- t("b", null, a(K), 1),
650
- vn,
651
- t("span", null, a(e(G)(pe, e(Z))) + " " + a(e(dt)(ve)), 1)
668
+ t("b", null, o(Q), 1),
669
+ bn,
670
+ t("span", null, o(e(j)(pe, e(te))) + " " + o(e(dt)(ve)), 1)
652
671
  ]),
653
- t("td", fn, [
654
- Y === 3 ? (o(), _(ae, {
672
+ t("td", gn, [
673
+ K === 3 ? (a(), P(se, {
655
674
  key: 0,
656
- modelValue: e(i)[`${s}.${S}.${y}`],
657
- "onUpdate:modelValue": (Q) => e(i)[`${s}.${S}.${y}`] = Q,
675
+ modelValue: e(i)[`${s}.${I}.${y}`],
676
+ "onUpdate:modelValue": (W) => e(i)[`${s}.${I}.${y}`] = W,
658
677
  small: !0,
659
678
  "min-value": 0
660
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (o(), _(St, {
679
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), P(Ot, {
661
680
  key: 1,
662
- modelValue: e(i)[`${s}.${S}.${y}`],
663
- "onUpdate:modelValue": (Q) => e(i)[`${s}.${S}.${y}`] = Q,
681
+ modelValue: e(i)[`${s}.${I}.${y}`],
682
+ "onUpdate:modelValue": (W) => e(i)[`${s}.${I}.${y}`] = W,
664
683
  numeric: !0
665
684
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
666
685
  ]),
667
- t("td", bn, [
668
- t("span", null, a(e(G)(e(Ue)(S, s, y), e(Z))), 1)
686
+ t("td", kn, [
687
+ t("span", null, o(e(j)(e(Me)(I, s, y), e(te))), 1)
669
688
  ])
670
689
  ]))), 128))
671
690
  ]),
672
691
  t("tfoot", null, [
673
692
  t("tr", null, [
674
- gn,
675
- kn,
676
- t("td", hn, [
693
+ hn,
694
+ yn,
695
+ t("td", _n, [
677
696
  t("u", null, [
678
- t("span", null, a(e(G)(e(qe)(s, y), e(Z))), 1)
697
+ t("span", null, o(e(j)(e(Ue)(s, y), e(te))), 1)
679
698
  ])
680
699
  ])
681
700
  ])
@@ -683,21 +702,21 @@ const sn = { class: "konnectio-event-listings" }, rn = {
683
702
  ])
684
703
  ]))), 128))
685
704
  ])) : d("", !0),
686
- e(L) ? (o(), u("table", yn, [
687
- _n,
705
+ e(L) ? (a(), u("table", Pn, [
706
+ wn,
688
707
  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, [
708
+ (a(!0), u(R, null, G(e(k).products, ({ id: s, name: N, price: C, description: y }) => (a(), u("tr", { key: s }, [
709
+ t("td", $n, [
691
710
  t("b", null, [
692
- t("span", null, a(e($e)(I)), 1)
711
+ t("span", null, o(e(we)(N)), 1)
693
712
  ]),
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)
713
+ y && y !== N ? (a(), u("span", Dn, o(e(we)(y)), 1)) : d("", !0),
714
+ t("span", null, o(e(j)(C, e(te))), 1)
696
715
  ]),
697
- t("td", $n, [
698
- p(ae, {
699
- modelValue: e(v)[s],
700
- "onUpdate:modelValue": (S) => e(v)[s] = S,
716
+ t("td", En, [
717
+ v(se, {
718
+ modelValue: e(f)[s],
719
+ "onUpdate:modelValue": (I) => e(f)[s] = I,
701
720
  small: !0,
702
721
  "min-value": 0
703
722
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -708,44 +727,39 @@ const sn = { class: "konnectio-event-listings" }, rn = {
708
727
  ])
709
728
  ]),
710
729
  navigation: m(() => [
711
- p(be, {
730
+ v(be, {
712
731
  label: e(n)("event.startReservation"),
713
- disabled: !e(X),
732
+ disabled: !e(ee),
714
733
  "full-width": "",
715
- 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)
734
+ onClickEvent: S
735
+ }, null, 8, ["label", "disabled", "onClickEvent"])
723
736
  ]),
724
737
  _: 2
725
- }, 1024)) : d("", !0)
738
+ }, 1032, ["prev-callback"])) : d("", !0)
726
739
  ]),
727
- reservation: m(({ next: N, prev: O }) => [
728
- p(fe, {
740
+ reservation: m(({ next: S, prev: O }) => [
741
+ v(fe, {
729
742
  "show-terms-notice": !0,
730
- "show-gift-card": !0
743
+ "show-gift-card": !0,
744
+ "prev-callback": () => e(ye)(O)
731
745
  }, {
732
746
  form: m(() => [
733
- t("form", En, [
747
+ t("form", Vn, [
734
748
  t("h2", null, [
735
- t("span", null, a(e(n)("booking.reservation.detailsTitle")), 1)
749
+ t("span", null, o(e(n)("booking.reservation.detailsTitle")), 1)
736
750
  ]),
737
- p(te, {
751
+ v(oe, {
738
752
  modelValue: e(r),
739
- "onUpdate:modelValue": f[0] || (f[0] = (s) => R(r) ? r.value = s : null),
753
+ "onUpdate:modelValue": b[0] || (b[0] = (s) => M(r) ? r.value = s : null),
740
754
  type: "text",
741
755
  label: e(n)("booking.reservation.name"),
742
756
  icon: "user-alt",
743
757
  placeholder: e(n)("booking.reservation.namePlaceholder"),
744
758
  required: ""
745
759
  }, null, 8, ["modelValue", "label", "placeholder"]),
746
- p(te, {
760
+ v(oe, {
747
761
  modelValue: e(E),
748
- "onUpdate:modelValue": f[1] || (f[1] = (s) => R(E) ? E.value = s : null),
762
+ "onUpdate:modelValue": b[1] || (b[1] = (s) => M(E) ? E.value = s : null),
749
763
  label: e(n)("booking.reservation.email"),
750
764
  type: "email",
751
765
  name: "email",
@@ -754,42 +768,42 @@ const sn = { class: "konnectio-event-listings" }, rn = {
754
768
  placeholder: e(n)("booking.reservation.emailPlaceholder"),
755
769
  required: ""
756
770
  }, null, 8, ["modelValue", "label", "placeholder"]),
757
- p(It, {
771
+ v(It, {
758
772
  modelValue: e(h),
759
- "onUpdate:modelValue": f[2] || (f[2] = (s) => R(h) ? h.value = s : null),
773
+ "onUpdate:modelValue": b[2] || (b[2] = (s) => M(h) ? h.value = s : null),
760
774
  label: e(n)("booking.reservation.phone"),
761
775
  icon: "phone-office",
762
776
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
763
777
  required: ""
764
778
  }, null, 8, ["modelValue", "label", "placeholder"]),
765
- e(q) ? (o(), _(Vt, {
779
+ e(z) ? (a(), P(Et, {
766
780
  key: 0,
767
781
  modelValue: e(V),
768
- "onUpdate:modelValue": f[3] || (f[3] = (s) => R(V) ? V.value = s : null),
782
+ "onUpdate:modelValue": b[3] || (b[3] = (s) => M(V) ? V.value = s : null),
769
783
  label: e(n)("event.selectArrivalTime"),
770
784
  name: "eventTimeTable",
771
- checkboxes: Ge.value,
785
+ checkboxes: ze.value,
772
786
  required: ""
773
787
  }, null, 8, ["modelValue", "label", "checkboxes"])) : d("", !0),
774
- e(ue) === e(ct).FullDayEvent ? (o(), _(ae, {
788
+ e(ue) === e(ct).FullDayEvent ? (a(), P(se, {
775
789
  key: 1,
776
- modelValue: e(b),
777
- "onUpdate:modelValue": f[4] || (f[4] = (s) => R(b) ? b.value = s : null),
790
+ modelValue: e(g),
791
+ "onUpdate:modelValue": b[4] || (b[4] = (s) => M(g) ? g.value = s : null),
778
792
  label: e(n)("event.numberOfDays"),
779
793
  "min-value": 1,
780
794
  required: ""
781
795
  }, 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),
796
+ v(oe, {
797
+ modelValue: e(p),
798
+ "onUpdate:modelValue": b[5] || (b[5] = (s) => M(p) ? p.value = s : null),
785
799
  type: "textarea",
786
800
  label: `${e(n)("booking.reservation.remark")} (${e(n)("booking.reservation.optional")})`,
787
801
  icon: "info-circle",
788
802
  placeholder: e(n)("booking.reservation.remarkPlaceholder")
789
803
  }, null, 8, ["modelValue", "label", "placeholder"]),
790
- p(te, {
791
- modelValue: e($),
792
- "onUpdate:modelValue": f[6] || (f[6] = (s) => R($) ? $.value = s : null),
804
+ v(oe, {
805
+ modelValue: e(w),
806
+ "onUpdate:modelValue": b[6] || (b[6] = (s) => M(w) ? w.value = s : null),
793
807
  type: "textarea",
794
808
  label: `${e(n)("booking.reservation.allergies")} (${e(n)("booking.reservation.optional")})`,
795
809
  icon: "allergies",
@@ -798,39 +812,33 @@ const sn = { class: "konnectio-event-listings" }, rn = {
798
812
  ])
799
813
  ]),
800
814
  navigation: m(() => [
801
- p(be, {
815
+ v(be, {
802
816
  label: e(n)("general.confirmReservation"),
803
- "is-loading": e(M),
804
- disabled: !e(J),
817
+ "is-loading": e(F),
818
+ disabled: !e(x),
805
819
  "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)
820
+ onClickEvent: (s) => e(Re)(S)
821
+ }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"])
814
822
  ]),
815
823
  _: 2
816
- }, 1024)
824
+ }, 1032, ["prev-callback"])
817
825
  ]),
818
826
  payment: m(() => [
819
- p(Nt)
827
+ v(Nt)
820
828
  ]),
821
829
  confirmation: m(() => [
822
- p(Tt, {
830
+ v(Vt, {
823
831
  message: e(n)("event.confirmationMessage")
824
832
  }, null, 8, ["message"])
825
833
  ]),
826
834
  _: 1
827
- })
835
+ }, 8, ["steps"])
828
836
  ]),
829
837
  _: 1
830
838
  }, 8, ["access-token", "callback"])
831
839
  ]),
832
840
  fallback: m(() => [
833
- p(on)
841
+ v(ln)
834
842
  ]),
835
843
  _: 1
836
844
  }))
@@ -838,8 +846,8 @@ const sn = { class: "konnectio-event-listings" }, rn = {
838
846
  _: 1
839
847
  }, 8, ["styling"]));
840
848
  }
841
- }), Se = /* @__PURE__ */ re(Tn, [["__scopeId", "data-v-b033db08"]]), On = ot(), Sn = st();
842
- class In extends HTMLElement {
849
+ }), Oe = /* @__PURE__ */ re(Tn, [["__scopeId", "data-v-25b5d12f"]]), On = nt(), In = lt();
850
+ class Nn extends HTMLElement {
843
851
  vueApp;
844
852
  constructor() {
845
853
  super();
@@ -848,14 +856,14 @@ class In extends HTMLElement {
848
856
  this.vueApp.unmount();
849
857
  }
850
858
  connectedCallback() {
851
- const n = at(Se, this.attributes);
852
- this.vueApp = nt(Se, n), ft(this.vueApp), this.vueApp.provide("emitter", Sn), this.vueApp.use(lt), this.vueApp.use(On), this.vueApp.use(Ot), this.vueApp.use(gt), this.vueApp.use(bt, { bootstrap: !0 });
859
+ const n = ot(Oe, this.attributes);
860
+ this.vueApp = tt(Oe, n), st(this.vueApp), this.vueApp.provide("emitter", In), this.vueApp.use(at), this.vueApp.use(On), this.vueApp.use(Tt), this.vueApp.use(bt), this.vueApp.use(ft, { bootstrap: !0 });
853
861
  const i = document.createElement("div");
854
862
  this.vueApp.mount(i), this.appendChild(i.children[0]);
855
863
  }
856
864
  }
857
- window.customElements.define("konnectio-event", In);
865
+ window.customElements.define("konnectio-event", Nn);
858
866
  export {
859
- In as default
867
+ Nn as default
860
868
  };
861
869
  //# sourceMappingURL=event.js.map