@konnectio/core 4.0.60 → 4.0.62

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