@konnectio/core 4.0.77 → 4.0.79

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