@konnectio/core 4.0.61 → 4.0.63

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