@konnectio/core 4.0.119 → 4.1.1

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 (60) hide show
  1. package/dist/{ActionField-yaTIHJvx.js → ActionField-Bv7eVoQ6.js} +3 -3
  2. package/dist/ActionField-Bv7eVoQ6.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-CV6IiFig.js → AvailabilitySkeleton-B_gz2zW7.js} +6 -6
  4. package/dist/AvailabilitySkeleton-B_gz2zW7.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BZQdYoAp.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dq3QsW9G.js} +3 -3
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dq3QsW9G.js.br +0 -0
  7. package/dist/{CheckoutWindow-BLhGzw4p.js → CheckoutWindow-D9oLhlnI.js} +3 -3
  8. package/dist/CheckoutWindow-D9oLhlnI.js.br +0 -0
  9. package/dist/{ErrorMessage-CMNpag_d.js → ErrorMessage-D69Wt9sJ.js} +3 -3
  10. package/dist/ErrorMessage-D69Wt9sJ.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-5IKyXHH5.js → EventAvailabilityForm-DMw-tMYh.js} +4 -4
  12. package/dist/EventAvailabilityForm-DMw-tMYh.js.br +0 -0
  13. package/dist/{Field-CvoF7Glc.js → Field-DTS5lUQa.js} +4 -4
  14. package/dist/Field-DTS5lUQa.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-AECoPKDc.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BVM6rNQX.js} +6 -6
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js → SelectField.vue_vue_type_style_index_0_lang-DC2CrQZx.js} +6271 -6175
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-DC2CrQZx.js.br +0 -0
  18. package/dist/{TermsOfService-D_TOJHKs.js → TermsOfService-BCRB4pzR.js} +4 -4
  19. package/dist/_-CTjyxwPn.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-Iq1FI_VA.js → _.vue_vue_type_style_index_0_lang-BHdZ4cL3.js} +3 -3
  21. package/dist/availability.js +6 -6
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +28 -27
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/deep-link.js +1 -1
  26. package/dist/deep-link.js.br +0 -0
  27. package/dist/event.js +384 -390
  28. package/dist/event.js.br +0 -0
  29. package/dist/gift-card-validation.js +9 -9
  30. package/dist/gift-card-validation.js.br +0 -0
  31. package/dist/gift-card.js +10 -10
  32. package/dist/gift-card.js.br +0 -0
  33. package/dist/{giftCard-DvqomDap.js → giftCard-C9C5zd6l.js} +3 -3
  34. package/dist/giftCard-C9C5zd6l.js.br +0 -0
  35. package/dist/hotel.js +1007 -982
  36. package/dist/hotel.js.br +0 -0
  37. package/dist/{masonry.plugin-rZZcRBGq.js → masonry.plugin-D7l8_YMQ.js} +705 -671
  38. package/dist/masonry.plugin-D7l8_YMQ.js.br +0 -0
  39. package/dist/{mitt-HQsLmGCg.js → mitt-Dv_UvJqG.js} +4532 -4443
  40. package/dist/mitt-Dv_UvJqG.js.br +0 -0
  41. package/dist/polyfill.js +1 -1
  42. package/dist/polyfill.js.br +0 -0
  43. package/dist/{style-Cc6LpDdk.js → style-DL_k5gwT.js} +2 -2
  44. package/dist/style-DL_k5gwT.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/package.json +24 -24
  48. package/dist/ActionField-yaTIHJvx.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-CV6IiFig.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BZQdYoAp.js.br +0 -0
  51. package/dist/CheckoutWindow-BLhGzw4p.js.br +0 -0
  52. package/dist/ErrorMessage-CMNpag_d.js.br +0 -0
  53. package/dist/EventAvailabilityForm-5IKyXHH5.js.br +0 -0
  54. package/dist/Field-CvoF7Glc.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js.br +0 -0
  56. package/dist/_-4AAzKjzk.js +0 -5
  57. package/dist/giftCard-DvqomDap.js.br +0 -0
  58. package/dist/masonry.plugin-rZZcRBGq.js.br +0 -0
  59. package/dist/mitt-HQsLmGCg.js.br +0 -0
  60. package/dist/style-Cc6LpDdk.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,51 +1,51 @@
1
- import { d as W, u as ae, s as Y, r as Fe, c as j, a as o, b as $, w as m, v as X, i as e, e as t, j as f, f as p, n as Xe, g as c, t as a, o as Ze, h as xe, x as de, y as et, z as tt, F as A, A as H, B as M, S as nt, k as at, l as ot, m as lt, p as st, q as it } from "./mitt-HQsLmGCg.js";
2
- import { a as _e, f as Z, g as ue, l as rt, s as U, d as ce, B as ut, _ as x, h as we, I as ne, i as dt, u as Pe, j as ct, k as mt, m as pt, n as $e, o as K, p as vt, q as Oe, T as re, O as bt, C as ft, r as gt, t as kt, v as yt } from "./SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js";
3
- import { G as ht } from "./style-Cc6LpDdk.js";
4
- import { _ as Dt } from "./_.vue_vue_type_style_index_0_lang-Iq1FI_VA.js";
5
- import { B as Pt, _ as $t, R as _t, L as Le, S as wt, M as Et, C as Ot, T as Vt, V as Nt, a as Tt } from "./masonry.plugin-rZZcRBGq.js";
6
- import { e as Bt, c as Ct, n as St, g as Ve, m as Ne, a as Te, b as Be, d as Ft, f as Ce, _ as Lt } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BZQdYoAp.js";
7
- import { C as It, P as At, a as Rt } from "./CheckoutWindow-BLhGzw4p.js";
8
- import { E as Mt } from "./EventAvailabilityForm-5IKyXHH5.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-AECoPKDc.js";
10
- function Ut(g) {
11
- return (l) => {
12
- const v = (g ? Math[g] : Math.trunc)(l);
13
- return v === 0 ? 0 : v;
1
+ import { d as W, u as ae, s as j, r as Fe, c as Z, a as l, b as $, w as m, v as X, i as e, e as t, j as v, f as p, n as Ze, g as c, t as a, o as xe, h as et, x as de, y as tt, z as nt, F as I, A as Y, B as M, S as at, k as ot, l as lt, m as st, p as it, q as rt } from "./mitt-Dv_UvJqG.js";
2
+ import { a as we, f as x, g as ue, l as ut, s as U, d as ce, B as dt, _ as ee, h as me, I as ne, i as ct, u as $e, j as mt, k as pt, m as vt, n as _e, o as K, p as bt, q as Oe, T as re, O as ft, C as gt, r as kt, t as yt, v as ht } from "./SelectField.vue_vue_type_style_index_0_lang-DC2CrQZx.js";
3
+ import { G as Dt } from "./style-DL_k5gwT.js";
4
+ import { _ as Pt } from "./_.vue_vue_type_style_index_0_lang-BHdZ4cL3.js";
5
+ import { B as $t, _ as _t, R as wt, L as Se, S as Et, M as Ot, C as Vt, T as Nt, V as Tt, a as Bt } from "./masonry.plugin-D7l8_YMQ.js";
6
+ import { e as Lt, c as Ct, n as Ft, g as Ve, m as Ne, a as Te, b as Be, d as St, f as Le, _ as At } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dq3QsW9G.js";
7
+ import { C as It, P as Rt, a as Mt } from "./CheckoutWindow-D9oLhlnI.js";
8
+ import { E as Ut } from "./EventAvailabilityForm-DMw-tMYh.js";
9
+ import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BVM6rNQX.js";
10
+ function Gt(k) {
11
+ return (o) => {
12
+ const y = (k ? Math[k] : Math.trunc)(o);
13
+ return y === 0 ? 0 : y;
14
14
  };
15
15
  }
16
- function Gt(g, l, n) {
17
- const v = Ft(), b = n?.locale ?? v.locale ?? Bt, i = Ct(g, l);
16
+ function zt(k, o, n) {
17
+ const y = St(), b = n?.locale ?? y.locale ?? Lt, i = Ct(k, o);
18
18
  if (isNaN(i))
19
19
  throw new RangeError("Invalid time value");
20
- const k = Object.assign({}, n, {
20
+ const f = Object.assign({}, n, {
21
21
  addSuffix: n?.addSuffix,
22
22
  comparison: i
23
- }), [E, y] = St(
23
+ }), [E, g] = Ft(
24
24
  n?.in,
25
- ...i > 0 ? [l, g] : [g, l]
26
- ), s = Ut(n?.roundingMethod ?? "round"), O = y.getTime() - E.getTime(), D = O / Ce, _ = Ve(y) - Ve(E), N = (O - _) / Ce, F = n?.unit;
27
- let P;
28
- if (F ? P = F : D < 1 ? P = "second" : D < 60 ? P = "minute" : D < Ne ? P = "hour" : N < Te ? P = "day" : N < Be ? P = "month" : P = "year", P === "second") {
29
- const u = s(O / 1e3);
30
- return b.formatDistance("xSeconds", u, k);
31
- } else if (P === "minute") {
32
- const u = s(D);
33
- return b.formatDistance("xMinutes", u, k);
34
- } else if (P === "hour") {
35
- const u = s(D / 60);
36
- return b.formatDistance("xHours", u, k);
37
- } else if (P === "day") {
38
- const u = s(N / Ne);
39
- return b.formatDistance("xDays", u, k);
40
- } else if (P === "month") {
41
- const u = s(N / Te);
42
- return u === 12 && F !== "month" ? b.formatDistance("xYears", 1, k) : b.formatDistance("xMonths", u, k);
25
+ ...i > 0 ? [o, k] : [k, o]
26
+ ), s = Gt(n?.roundingMethod ?? "round"), O = g.getTime() - E.getTime(), h = O / Le, _ = Ve(g) - Ve(E), N = (O - _) / Le, F = n?.unit;
27
+ let D;
28
+ if (F ? D = F : h < 1 ? D = "second" : h < 60 ? D = "minute" : h < Ne ? D = "hour" : N < Te ? D = "day" : N < Be ? D = "month" : D = "year", D === "second") {
29
+ const r = s(O / 1e3);
30
+ return b.formatDistance("xSeconds", r, f);
31
+ } else if (D === "minute") {
32
+ const r = s(h);
33
+ return b.formatDistance("xMinutes", r, f);
34
+ } else if (D === "hour") {
35
+ const r = s(h / 60);
36
+ return b.formatDistance("xHours", r, f);
37
+ } else if (D === "day") {
38
+ const r = s(N / Ne);
39
+ return b.formatDistance("xDays", r, f);
40
+ } else if (D === "month") {
41
+ const r = s(N / Te);
42
+ return r === 12 && F !== "month" ? b.formatDistance("xYears", 1, f) : b.formatDistance("xMonths", r, f);
43
43
  } else {
44
- const u = s(N / Be);
45
- return b.formatDistance("xYears", u, k);
44
+ const r = s(N / Be);
45
+ return b.formatDistance("xYears", r, f);
46
46
  }
47
47
  }
48
- const zt = { class: "konnectio-event-listing-action-button" }, qt = /* @__PURE__ */ W({
48
+ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__ */ W({
49
49
  __name: "_",
50
50
  props: {
51
51
  name: {},
@@ -66,92 +66,94 @@ const zt = { class: "konnectio-event-listing-action-button" }, qt = /* @__PURE__
66
66
  useNumberOfProductsForPersons: { type: Boolean },
67
67
  type: {},
68
68
  trackingEnabled: { type: Boolean },
69
+ disableDeepLink: { type: Boolean, default: !1 },
69
70
  callback: {}
70
71
  },
71
- setup(g) {
72
- const { t: l } = ae(), n = g, { display: v } = _e(), {
72
+ setup(k) {
73
+ const { t: o } = ae(), n = k, { display: y } = we(), {
73
74
  maxNumberOfPeople: b,
74
75
  numberOfPeople: i,
75
- eventId: k,
76
+ eventId: f,
76
77
  currentEventDate: E,
77
- tableGroupId: y
78
- } = Y(Z()), {
78
+ tableGroupId: g
79
+ } = j(x()), {
79
80
  getTemplateAvailability: s,
80
81
  getEventAvailability: O,
81
- isEventListingLoading: D
82
- } = Z(), _ = Fe(0), N = j(() => D(n.listingId)), F = () => {
82
+ isEventListingLoading: h
83
+ } = x(), _ = Fe(0), N = Z(() => h(n.listingId)), F = () => {
83
84
  if (!n.useNumberOfProductsForPersons && (_.value === 0 || isNaN(_.value))) {
84
- v({
85
+ y({
85
86
  type: "error",
86
- message: l("alert.error.selectPeople")
87
+ message: o("alert.error.selectPeople")
87
88
  });
88
89
  return;
89
90
  }
90
- k.value = n.listingId, i.value = n.useNumberOfProductsForPersons ? NaN : _.value, s(n.callback);
91
- }, P = () => {
91
+ f.value = n.listingId, i.value = n.useNumberOfProductsForPersons ? NaN : _.value, s(n.callback);
92
+ }, D = () => {
92
93
  if (!n.useNumberOfProductsForPersons && (_.value === 0 || isNaN(_.value))) {
93
- v({
94
+ y({
94
95
  type: "error",
95
- message: l("alert.error.selectPeople")
96
+ message: o("alert.error.selectPeople")
96
97
  });
97
98
  return;
98
99
  }
99
- k.value = n.listingId, y.value = n.tableGroupId, i.value = n.useNumberOfProductsForPersons ? NaN : _.value, O(n.callback);
100
+ f.value = n.listingId, g.value = n.tableGroupId, i.value = n.useNumberOfProductsForPersons ? NaN : _.value, O(n.callback);
100
101
  };
101
- return (u, L) => (o(), $(Pt, {
102
+ return (r, S) => (l(), $($t, {
102
103
  type: "event",
103
- "listing-id": u.listingId,
104
- gallery: u.gallery,
105
- name: u.name,
106
- description: u.description,
107
- "prices-from": u.fromPrice,
108
- "to-date": u.toDate,
109
- layout: e(ut).Event
104
+ "listing-id": r.listingId,
105
+ gallery: r.gallery,
106
+ name: r.name,
107
+ description: r.description,
108
+ "prices-from": r.fromPrice,
109
+ "to-date": r.toDate,
110
+ layout: e(dt).Event,
111
+ "disable-deep-link": r.disableDeepLink
110
112
  }, {
111
113
  description: m(() => [
112
- X(u.$slots, "description", { maxNumberOfPeople: e(b) }, void 0, !0)
114
+ X(r.$slots, "description", { maxNumberOfPeople: e(b) }, void 0, !0)
113
115
  ]),
114
116
  action: m(() => [
115
- X(u.$slots, "action", {}, () => [
117
+ X(r.$slots, "action", {}, () => [
116
118
  t("div", {
117
- class: Xe([
119
+ class: Ze([
118
120
  "konnectio-event-listing-action",
119
- { "no-selectable-people": u.useNumberOfProductsForPersons }
121
+ { "no-selectable-people": r.useNumberOfProductsForPersons }
120
122
  ])
121
123
  }, [
122
- u.useNumberOfProductsForPersons ? f("", !0) : (o(), $(ue, {
124
+ r.useNumberOfProductsForPersons ? v("", !0) : (l(), $(ue, {
123
125
  key: 0,
124
126
  modelValue: _.value,
125
- "onUpdate:modelValue": L[0] || (L[0] = (I) => _.value = I),
126
- label: e(l)("event.numberOfGuests"),
127
+ "onUpdate:modelValue": S[0] || (S[0] = (A) => _.value = A),
128
+ label: e(o)("event.numberOfGuests"),
127
129
  icon: "users",
128
130
  "icon-type": "fas",
129
131
  "icon-placement": "label",
130
- description: u.maxGuests <= 20 ? `${e(l)("general.availableFor")}: 1 - ${u.maxGuests} ${e(rt)(e(l)("general.guests"))}` : void 0,
132
+ description: r.maxGuests <= 20 ? `${e(o)("general.availableFor")}: 1 - ${r.maxGuests} ${e(ut)(e(o)("general.guests"))}` : void 0,
131
133
  "min-value": 0,
132
- "max-value": u.maxOnlineReservationLimit || u.maxGuests || e(b) || 1 / 0
134
+ "max-value": r.maxOnlineReservationLimit || r.maxGuests || e(b) || 1 / 0
133
135
  }, null, 8, ["modelValue", "label", "description", "max-value"])),
134
- t("div", zt, [
136
+ t("div", qt, [
135
137
  p(ce, {
136
- label: u.soldOut ? e(l)("event.soldOut") : e(l)("event.bookNowButton"),
137
- disabled: u.soldOut,
138
+ label: r.soldOut ? e(o)("event.soldOut") : e(o)("event.bookNowButton"),
139
+ disabled: r.soldOut,
138
140
  "is-loading": N.value,
139
141
  "full-width": "",
140
142
  "sub-label": e(U)(e(E)),
141
- onClickEvent: L[1] || (L[1] = (I) => u.type === "event" ? P() : F())
143
+ onClickEvent: S[1] || (S[1] = (A) => r.type === "event" ? D() : F())
142
144
  }, null, 8, ["label", "disabled", "is-loading", "sub-label"])
143
145
  ])
144
146
  ], 2)
145
147
  ], !0)
146
148
  ]),
147
149
  _: 3
148
- }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout"]));
150
+ }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout", "disable-deep-link"]));
149
151
  }
150
- }), Ie = /* @__PURE__ */ x(qt, [["__scopeId", "data-v-81aa25c5"]]), Ht = { class: "konnectio-event-listing-information-new" };
151
- const Yt = {
152
+ }), Ae = /* @__PURE__ */ ee(Ht, [["__scopeId", "data-v-83617413"]]), Yt = { class: "konnectio-event-listing-information-new" };
153
+ const jt = {
152
154
  key: 1,
153
155
  class: "konnectio-pill-button"
154
- }, jt = { class: "konnectio-pill-button" }, Wt = /* @__PURE__ */ W({
156
+ }, Wt = { class: "konnectio-pill-button" }, Qt = /* @__PURE__ */ W({
155
157
  __name: "Event",
156
158
  props: {
157
159
  name: {},
@@ -173,15 +175,15 @@ const Yt = {
173
175
  trackingEnabled: { type: Boolean },
174
176
  callback: {}
175
177
  },
176
- setup(g) {
177
- const l = g, { t: n } = ae(), { hideEventLength: v } = Y(we()), b = j(() => {
178
- const i = l.length.split(":");
179
- return Gt(
178
+ setup(k) {
179
+ const o = k, { t: n } = ae(), { hideEventLength: y } = j(me()), b = Z(() => {
180
+ const i = o.length.split(":");
181
+ return zt(
180
182
  new Date(2e3, 0, 1, Number(i[0]), Number(i[1]), 0),
181
183
  new Date(2e3, 0, 1, 0, 0, 0)
182
184
  );
183
185
  });
184
- return (i, k) => (o(), $(Ie, {
186
+ return (i, f) => (l(), $(Ae, {
185
187
  "listing-id": i.listingId,
186
188
  name: i.name,
187
189
  description: i.description,
@@ -196,13 +198,13 @@ const Yt = {
196
198
  callback: i.callback
197
199
  }, {
198
200
  description: m(() => [
199
- i.description ? (o(), $($t, {
201
+ i.description ? (l(), $(_t, {
200
202
  key: 0,
201
203
  text: i.description
202
- }, null, 8, ["text"])) : f("", !0),
203
- t("ul", Ht, [
204
- f("", !0),
205
- e(v) ? f("", !0) : (o(), c("li", Yt, [
204
+ }, null, 8, ["text"])) : v("", !0),
205
+ t("ul", Yt, [
206
+ v("", !0),
207
+ e(y) ? v("", !0) : (l(), c("li", jt, [
206
208
  t("div", null, [
207
209
  p(ne, {
208
210
  icon: "calendar-clock",
@@ -212,7 +214,7 @@ const Yt = {
212
214
  ]),
213
215
  t("span", null, a(b.value), 1)
214
216
  ])),
215
- t("li", jt, [
217
+ t("li", Wt, [
216
218
  t("div", null, [
217
219
  p(ne, {
218
220
  icon: "calendar-clock",
@@ -220,7 +222,7 @@ const Yt = {
220
222
  }),
221
223
  t("span", null, a(e(n)("event.startAndEndTime")), 1)
222
224
  ]),
223
- t("span", null, a(e(dt)(i.timeFrom, i.timeTo)), 1)
225
+ t("span", null, a(e(ct)(i.timeFrom, i.timeTo)), 1)
224
226
  ])
225
227
  ])
226
228
  ]),
@@ -230,7 +232,7 @@ const Yt = {
230
232
  _: 3
231
233
  }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "use-number-of-products-for-persons", "to-date", "sold-out", "callback"]));
232
234
  }
233
- }), Ae = /* @__PURE__ */ x(Wt, [["__scopeId", "data-v-222c7986"]]), Qt = { class: "konnectio-special-offer-availability" }, Jt = { class: "konnectio-special-offer-availability-button" }, Kt = { class: "konnectio-warning-notice" }, Xt = { key: 0 }, Zt = { key: 1 }, xt = /* @__PURE__ */ W({
235
+ }), Ie = /* @__PURE__ */ ee(Qt, [["__scopeId", "data-v-222c7986"]]), Jt = { class: "konnectio-special-offer-availability" }, Kt = { class: "konnectio-special-offer-availability-button" }, Xt = { class: "konnectio-warning-notice" }, Zt = { key: 0 }, xt = { key: 1 }, en = /* @__PURE__ */ W({
234
236
  __name: "NextEvent",
235
237
  props: {
236
238
  name: {},
@@ -251,18 +253,18 @@ const Yt = {
251
253
  trackingEnabled: { type: Boolean },
252
254
  callback: { type: Function }
253
255
  },
254
- setup(g) {
255
- const { t: l } = ae(), { updateEventDate: n } = Pe(), { display: v } = _e(), b = Fe(), i = g;
256
- function k() {
257
- b.value ? n(b.value) : v({
258
- message: l("alert.error.selectDate"),
256
+ setup(k) {
257
+ const { t: o } = ae(), { updateEventDate: n } = $e(), { display: y } = we(), b = Fe(), i = k;
258
+ function f() {
259
+ b.value ? n(b.value) : y({
260
+ message: o("alert.error.selectDate"),
259
261
  type: "error"
260
262
  });
261
263
  }
262
- const E = j(() => mt(i.fromDate, i.toDate) <= 1), y = j(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !pt(i.days).includes(s)));
263
- return Ze(() => {
264
+ const E = Z(() => pt(i.fromDate, i.toDate) <= 1), g = Z(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !vt(i.days).includes(s)));
265
+ return xe(() => {
264
266
  E.value && (b.value = new Date(i.fromDate));
265
- }), (s, O) => (o(), $(Ae, {
267
+ }), (s, O) => (l(), $(Ie, {
266
268
  name: s.name,
267
269
  description: s.description,
268
270
  "from-date": s.fromDate,
@@ -279,38 +281,39 @@ const Yt = {
279
281
  "use-number-of-products-for-persons": s.useNumberOfProductsForPersons,
280
282
  "tracking-enabled": s.trackingEnabled,
281
283
  "sold-out": s.soldOut,
282
- callback: s.callback
284
+ callback: s.callback,
285
+ "disable-deep-link": !0
283
286
  }, {
284
287
  action: m(() => [
285
288
  t("div", null, [
286
- t("div", Qt, [
287
- p(Lt, {
289
+ t("div", Jt, [
290
+ p(At, {
288
291
  modelValue: b.value,
289
- "onUpdate:modelValue": O[0] || (O[0] = (D) => b.value = D),
290
- label: `${e(l)("event.selectDate")}*`,
291
- placeholder: e(l)("event.selectDate"),
292
+ "onUpdate:modelValue": O[0] || (O[0] = (h) => b.value = h),
293
+ label: `${e(o)("event.selectDate")}*`,
294
+ placeholder: e(o)("event.selectDate"),
292
295
  "icon-type": "fas",
293
296
  "icon-placement": "label",
294
297
  readonly: E.value,
295
298
  "start-date": new Date(s.fromDate),
296
299
  "min-date": new Date(s.fromDate),
297
300
  "max-date": new Date(s.toDate),
298
- "disabled-week-days": y.value
301
+ "disabled-week-days": g.value
299
302
  }, null, 8, ["modelValue", "label", "placeholder", "readonly", "start-date", "min-date", "max-date", "disabled-week-days"]),
300
- t("div", Jt, [
303
+ t("div", Kt, [
301
304
  p(ce, {
302
- label: e(l)("availability.buttonLabel"),
303
- onClick: xe(k, ["prevent"])
305
+ label: e(o)("availability.buttonLabel"),
306
+ onClick: et(f, ["prevent"])
304
307
  }, null, 8, ["label"])
305
308
  ])
306
309
  ]),
307
- t("div", Kt, [
308
- E.value ? (o(), c("span", Xt, [
309
- de("*" + a(e(l)("event.canBeBooked")) + " ", 1),
310
+ t("div", Xt, [
311
+ E.value ? (l(), c("span", Zt, [
312
+ de("*" + a(e(o)("event.canBeBooked")) + " ", 1),
310
313
  t("u", null, a(e(U)(s.fromDate)), 1)
311
- ])) : (o(), c("span", Zt, [
312
- de("*" + a(e(l)("event.canBeBooked")) + " ", 1),
313
- t("u", null, a(e(ct)(s.days)), 1)
314
+ ])) : (l(), c("span", xt, [
315
+ de("*" + a(e(o)("event.canBeBooked")) + " ", 1),
316
+ t("u", null, a(e(mt)(s.days)), 1)
314
317
  ]))
315
318
  ])
316
319
  ])
@@ -318,7 +321,7 @@ const Yt = {
318
321
  _: 1
319
322
  }, 8, ["name", "description", "from-date", "to-date", "length", "time-from", "time-to", "gallery", "days", "listing-id", "table-group-id", "max-online-reservation-limit", "minimum-person-count", "use-number-of-products-for-persons", "tracking-enabled", "sold-out", "callback"]));
320
323
  }
321
- }), en = /* @__PURE__ */ x(xt, [["__scopeId", "data-v-91662edd"]]), tn = /* @__PURE__ */ W({
324
+ }), tn = /* @__PURE__ */ ee(en, [["__scopeId", "data-v-cd5e3d60"]]), nn = /* @__PURE__ */ W({
322
325
  __name: "Template",
323
326
  props: {
324
327
  name: {},
@@ -330,140 +333,131 @@ const Yt = {
330
333
  maxOnlineReservationLimit: {},
331
334
  minimumPersonCount: {},
332
335
  fromPrice: { default: 0 },
333
- image: {},
336
+ images: {},
334
337
  trackingEnabled: { type: Boolean },
335
338
  callback: {}
336
339
  },
337
- setup(g) {
338
- const l = g, n = j(() => {
339
- if (l.image)
340
- return [{
341
- large: l.image,
342
- medium: l.image,
343
- thumb: l.image,
344
- url: l.image
345
- }];
346
- });
347
- return (v, b) => (o(), $(Ie, {
348
- "listing-id": v.listingId,
349
- gallery: n.value,
350
- name: v.name,
351
- description: v.description,
352
- "prices-from": v.fromPrice,
353
- "to-date": v.toDate,
340
+ setup(k) {
341
+ return (o, n) => (l(), $(Ae, {
342
+ "listing-id": o.listingId,
343
+ gallery: o.images,
344
+ name: o.name,
345
+ description: o.description,
346
+ "prices-from": o.fromPrice,
347
+ "to-date": o.toDate,
354
348
  type: "template",
355
- callback: v.callback
349
+ callback: o.callback
356
350
  }, null, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
357
351
  }
358
- }), nn = { key: 0 }, an = { key: 1 }, on = { key: 2 }, ln = { key: 4 }, sn = { key: 5 }, rn = { key: 0 }, un = { key: 0 }, dn = { key: 1 }, cn = {
352
+ }), an = { key: 0 }, on = { key: 1 }, ln = { key: 2 }, sn = { key: 4 }, rn = { key: 5 }, un = { key: 0 }, dn = { key: 0 }, cn = { key: 1 }, mn = {
359
353
  key: 0,
360
354
  class: "konnectio-capitalize"
361
- }, mn = /* @__PURE__ */ W({
355
+ }, pn = /* @__PURE__ */ W({
362
356
  __name: "EventReservationForm",
363
357
  props: {
364
358
  showGiftCard: { type: Boolean, default: !1 },
365
359
  showTermsNotice: { type: Boolean, default: !1 },
366
360
  prevCallback: {}
367
361
  },
368
- setup(g) {
369
- const { t: l } = ae(), n = et(), {
370
- areListingsAvailable: v,
362
+ setup(k) {
363
+ const { t: o } = ae(), n = tt(), {
364
+ areListingsAvailable: y,
371
365
  arrivalTime: b,
372
366
  numberOfPeople: i,
373
- numberOfRooms: k,
367
+ numberOfRooms: f,
374
368
  numberOfTotalDays: E,
375
- isTemplateEvent: y,
369
+ isTemplateEvent: g,
376
370
  currentEventDate: s,
377
371
  length: O,
378
- fromDate: D,
372
+ fromDate: h,
379
373
  tableBasePrice: _,
380
374
  getTemplateData: N,
381
375
  basePrice: F,
382
- totalPrice: P,
383
- weekendFee: u,
384
- roomUpgrade: L,
385
- discountCode: I,
376
+ totalPrice: D,
377
+ weekendFee: r,
378
+ roomUpgrade: S,
379
+ discountCode: A,
386
380
  totalSelectedProducts: Q
387
- } = Y(Z()), { totalAddonPrice: me, validateDiscountCode: pe } = Z(), { currency: oe, hideEventLength: ve } = Y(we());
388
- return (R, le) => (o(), $(_t, {
389
- "discount-code": e(I),
390
- "onUpdate:discountCode": le[0] || (le[0] = (J) => M(I) ? I.value = J : null),
391
- "validate-discount-code": e(pe),
381
+ } = j(x()), { totalAddonPrice: pe, validateDiscountCode: ve } = x(), { currency: oe, hideEventLength: be } = j(me());
382
+ return (R, le) => (l(), $(wt, {
383
+ "discount-code": e(A),
384
+ "onUpdate:discountCode": le[0] || (le[0] = (J) => M(A) ? A.value = J : null),
385
+ "validate-discount-code": e(ve),
392
386
  "show-gift-card": R.showGiftCard,
393
387
  "show-terms-notice": R.showTermsNotice,
394
- "is-sidebar-loading": !e(v),
388
+ "is-sidebar-loading": !e(y),
395
389
  "base-price": e(F),
396
- "total-price": e(P),
397
- "weekend-fee": e(u),
398
- "room-upgrade": e(L),
399
- notice: e(l)("event.reservationNotice"),
390
+ "total-price": e(D),
391
+ "weekend-fee": e(r),
392
+ "room-upgrade": e(S),
393
+ notice: e(o)("event.reservationNotice"),
400
394
  "prev-callback": R.prevCallback
401
- }, tt({
395
+ }, nt({
402
396
  form: m(() => [
403
397
  X(R.$slots, "form", {}, void 0, !0)
404
398
  ]),
405
399
  "reservation-summary": m(() => [
406
- e(y) ? f("", !0) : (o(), c("li", nn, [
407
- t("span", null, a(e(l)("general.date")), 1),
400
+ e(g) ? v("", !0) : (l(), c("li", an, [
401
+ t("span", null, a(e(o)("general.date")), 1),
408
402
  t("b", null, a(e(U)(e(s))), 1)
409
403
  ])),
410
- e(i) > 0 ? (o(), c("li", an, [
411
- t("span", null, a(e(l)("event.numberOfGuests")), 1),
404
+ e(i) > 0 ? (l(), c("li", on, [
405
+ t("span", null, a(e(o)("event.numberOfGuests")), 1),
412
406
  t("b", null, a(e(i)), 1)
413
- ])) : f("", !0),
414
- !e(y) && e(Q) > 0 ? (o(), c("li", on, [
415
- t("span", null, a(e(l)("event.numberOfProducts")), 1),
407
+ ])) : v("", !0),
408
+ !e(g) && e(Q) > 0 ? (l(), c("li", ln, [
409
+ t("span", null, a(e(o)("event.numberOfProducts")), 1),
416
410
  t("b", null, a(e(Q)), 1)
417
- ])) : f("", !0),
418
- e(y) ? (o(), c(A, { key: 3 }, [
411
+ ])) : v("", !0),
412
+ e(g) ? (l(), c(I, { key: 3 }, [
419
413
  t("li", null, [
420
- t("span", null, a(e(l)("booking.reservation.arrival")), 1),
421
- t("b", null, a(e(U)(e(D))), 1)
414
+ t("span", null, a(e(o)("booking.reservation.arrival")), 1),
415
+ t("b", null, a(e(U)(e(h))), 1)
422
416
  ]),
423
417
  t("li", null, [
424
- t("span", null, a(e(l)("booking.reservation.departure")), 1),
425
- t("b", null, a(e(U)(e(D), e(E))), 1)
418
+ t("span", null, a(e(o)("booking.reservation.departure")), 1),
419
+ t("b", null, a(e(U)(e(h), e(E))), 1)
426
420
  ]),
427
421
  t("li", null, [
428
- t("span", null, a(e(l)("event.numberOfRooms")), 1),
429
- t("b", null, a(e(k)), 1)
422
+ t("span", null, a(e(o)("event.numberOfRooms")), 1),
423
+ t("b", null, a(e(f)), 1)
430
424
  ]),
431
425
  t("li", null, [
432
- t("span", null, a(e(l)("event.numberOfDays")), 1),
426
+ t("span", null, a(e(o)("event.numberOfDays")), 1),
433
427
  t("b", null, a(e(E)), 1)
434
428
  ])
435
- ], 64)) : f("", !0),
436
- !e(y) && e(b) ? (o(), c("li", ln, [
437
- t("span", null, a(e(l)("event.startOfEvent")), 1),
438
- t("b", null, a(e($e)(e(b))), 1)
439
- ])) : f("", !0),
440
- !e(y) && e(O) && !e(ve) ? (o(), c("li", sn, [
441
- t("span", null, a(e(l)("event.lengthOfEvent")), 1),
442
- t("b", null, a(e($e)(e(O))), 1)
443
- ])) : f("", !0)
429
+ ], 64)) : v("", !0),
430
+ !e(g) && e(b) ? (l(), c("li", sn, [
431
+ t("span", null, a(e(o)("event.startOfEvent")), 1),
432
+ t("b", null, a(e(_e)(e(b))), 1)
433
+ ])) : v("", !0),
434
+ !e(g) && e(O) && !e(be) ? (l(), c("li", rn, [
435
+ t("span", null, a(e(o)("event.lengthOfEvent")), 1),
436
+ t("b", null, a(e(_e)(e(O))), 1)
437
+ ])) : v("", !0)
444
438
  ]),
445
439
  "price-summary": m(() => [
446
- !e(y) && e(_) > 0 ? (o(), c("li", rn, [
447
- t("span", null, a(e(l)("booking.availability.basePrice")), 1),
440
+ !e(g) && e(_) > 0 ? (l(), c("li", un, [
441
+ t("span", null, a(e(o)("booking.availability.basePrice")), 1),
448
442
  t("b", null, a(e(K)(e(_), e(oe))), 1)
449
- ])) : f("", !0),
450
- e(N) ? (o(!0), c(A, { key: 1 }, H(e(N), ({ roomGroupId: J }, se) => (o(), c("li", { key: J }, [
451
- t("span", null, a(e(l)("booking.reservation.addons")) + " - " + a(e(l)("booking.reservation.room")) + " #" + a(se + 1), 1),
452
- t("b", null, a(e(K)(e(me)(J, se), e(oe))), 1)
453
- ]))), 128)) : f("", !0)
443
+ ])) : v("", !0),
444
+ e(N) ? (l(!0), c(I, { key: 1 }, Y(e(N), ({ roomGroupId: J }, se) => (l(), c("li", { key: J }, [
445
+ t("span", null, a(e(o)("booking.reservation.addons")) + " - " + a(e(o)("booking.reservation.room")) + " #" + a(se + 1), 1),
446
+ t("b", null, a(e(K)(e(pe)(J, se), e(oe))), 1)
447
+ ]))), 128)) : v("", !0)
454
448
  ]),
455
449
  navigation: m(() => [
456
450
  X(R.$slots, "navigation", {}, void 0, !0)
457
451
  ]),
458
452
  "mobile-under-price": m(() => [
459
- e(y) ? (o(), c("div", un, [
460
- t("span", null, a(e(U)(e(D))) + " - " + a(e(U)(e(D), e(E))), 1)
461
- ])) : (o(), c("div", dn, [
453
+ e(g) ? (l(), c("div", dn, [
454
+ t("span", null, a(e(U)(e(h))) + " - " + a(e(U)(e(h), e(E))), 1)
455
+ ])) : (l(), c("div", cn, [
462
456
  t("span", null, a(e(U)(e(s))), 1)
463
457
  ]))
464
458
  ]),
465
459
  "mobile-summary": m(() => [
466
- !e(y) && e(Q) > 0 ? (o(), c("span", cn, a(e(l)("event.numberOfProducts")) + ": " + a(e(Q)), 1)) : f("", !0)
460
+ !e(g) && e(Q) > 0 ? (l(), c("span", mn, a(e(o)("event.numberOfProducts")) + ": " + a(e(Q)), 1)) : v("", !0)
467
461
  ]),
468
462
  _: 2
469
463
  }, [
@@ -476,32 +470,32 @@ const Yt = {
476
470
  } : void 0
477
471
  ]), 1032, ["discount-code", "validate-discount-code", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "notice", "prev-callback"]));
478
472
  }
479
- }), De = /* @__PURE__ */ x(mn, [["__scopeId", "data-v-c4b0b5c7"]]), pn = { class: "event-skeleton" }, vn = { class: "event-skeleton-content" }, bn = { class: "event-skeleton-sidebar" }, fn = /* @__PURE__ */ W({
473
+ }), Pe = /* @__PURE__ */ ee(pn, [["__scopeId", "data-v-c4b0b5c7"]]), vn = { class: "event-skeleton" }, bn = { class: "event-skeleton-content" }, fn = { class: "event-skeleton-sidebar" }, gn = /* @__PURE__ */ W({
480
474
  __name: "EventSkeleton",
481
- setup(g) {
482
- return (l, n) => (o(), c("div", pn, [
483
- t("div", vn, [
484
- p(Le)
485
- ]),
475
+ setup(k) {
476
+ return (o, n) => (l(), c("div", vn, [
486
477
  t("div", bn, [
487
- f("", !0),
488
- p(wt)
478
+ p(Se)
479
+ ]),
480
+ t("div", fn, [
481
+ v("", !0),
482
+ p(Et)
489
483
  ])
490
484
  ]));
491
485
  }
492
- }), gn = /* @__PURE__ */ x(fn, [["__scopeId", "data-v-3e15c4e3"]]), kn = {
486
+ }), kn = /* @__PURE__ */ ee(gn, [["__scopeId", "data-v-3e15c4e3"]]), yn = {
493
487
  key: 0,
494
488
  id: "konnectio-event-listings-wrapper"
495
- }, yn = {
489
+ }, hn = {
496
490
  key: 0,
497
491
  class: "konnectio-hotel-availability-title"
498
- }, hn = { class: "konnectio-event-listings" }, Dn = { class: "konnectio-hotel-availability-title" }, Pn = { class: "konnectio-event-listings" }, $n = ["innerHTML"], _n = { class: "konnectio-panel" }, wn = {
492
+ }, Dn = { class: "konnectio-event-listings" }, Pn = { class: "konnectio-hotel-availability-title" }, $n = { class: "konnectio-event-listings" }, _n = ["innerHTML"], wn = { class: "konnectio-panel" }, En = {
499
493
  key: 0,
500
494
  id: "konnectio-event-addons"
501
- }, En = { class: "konnectio-table with-lines" }, On = { class: "konnectio-event-addons-price" }, Vn = { class: "konnectio-event-addons-input" }, Nn = { class: "konnectio-event-addons-price" }, Tn = { class: "konnectio-event-addons-price" }, Bn = {
495
+ }, On = { class: "konnectio-table with-lines" }, Vn = { class: "konnectio-event-addons-price" }, Nn = { class: "konnectio-event-addons-input" }, Tn = { class: "konnectio-event-addons-price" }, Bn = { class: "konnectio-event-addons-price" }, Ln = {
502
496
  key: 1,
503
497
  class: "konnectio-table with-lines"
504
- }, Cn = { class: "konnectio-table-addons-information" }, Sn = { key: 0 }, Fn = { class: "konnectio-table-addons-option" }, Ln = { class: "konnectio-panel" }, In = /* @__PURE__ */ W({
498
+ }, Cn = { class: "konnectio-table-addons-information" }, Fn = { key: 0 }, Sn = { class: "konnectio-table-addons-option" }, An = { class: "konnectio-panel" }, In = /* @__PURE__ */ W({
505
499
  name: "EventLayout",
506
500
  __name: "Event",
507
501
  props: {
@@ -511,43 +505,43 @@ const Yt = {
511
505
  resetDate: { default: "no" },
512
506
  styling: {}
513
507
  },
514
- setup(g) {
515
- const l = g, { t: n } = ae(), {
516
- addons: v,
508
+ setup(k) {
509
+ const o = k, { t: n } = ae(), {
510
+ addons: y,
517
511
  products: b,
518
512
  numberOfDays: i,
519
- name: k,
513
+ name: f,
520
514
  phone: E,
521
- email: y,
515
+ email: g,
522
516
  remark: s,
523
517
  allergies: O,
524
- arrivalTime: D,
518
+ arrivalTime: h,
525
519
  hasEvents: _,
526
520
  hasTemplates: N,
527
521
  getEvents: F,
528
- getTemplates: P,
529
- getEventData: u,
530
- getTemplateData: L,
531
- getEventTableData: I,
522
+ getTemplates: D,
523
+ getEventData: r,
524
+ getTemplateData: S,
525
+ getEventTableData: A,
532
526
  hasProducts: Q,
533
- eventRateType: me,
534
- areListingsAvailable: pe,
527
+ eventRateType: pe,
528
+ areListingsAvailable: ve,
535
529
  isAvailabilityDataAvailable: oe,
536
- hasListingData: ve,
530
+ hasListingData: be,
537
531
  isPaymentLoading: R,
538
532
  isReservationFormFilled: le,
539
533
  requiresArrivalTime: J,
540
534
  hasSelectedRequiredProducts: se,
541
- getUnavailableEvents: be
542
- } = Y(Z()), { currency: ie } = Y(we()), { eventDate: Re, eventLocation: Me } = Y(Pe()), { isValidRestaurantId: Ue } = Pe(), {
543
- initialize: Ge,
544
- fetchListings: ze,
545
- createBooking: qe,
546
- localAddonPrice: He,
547
- totalAddonPrice: Ye,
548
- reset: je,
535
+ getUnavailableEvents: fe
536
+ } = j(x()), { currency: ie } = j(me()), { setActiveIdFilter: Re } = me(), { eventDate: Me, eventLocation: Ue } = j($e()), { isValidRestaurantId: Ge } = $e(), {
537
+ initialize: ze,
538
+ fetchListings: qe,
539
+ createBooking: He,
540
+ localAddonPrice: Ye,
541
+ totalAddonPrice: je,
542
+ reset: We,
549
543
  goBack: Ee
550
- } = Z(), { display: fe } = _e(), We = j(() => [
544
+ } = x(), { display: ge } = we(), Qe = Z(() => [
551
545
  {
552
546
  id: "availability",
553
547
  label: n("booking.availability.title"),
@@ -573,133 +567,133 @@ const Yt = {
573
567
  label: n("booking.confirmation.title"),
574
568
  icon: "calendar-check"
575
569
  }
576
- ]), Qe = j(() => {
577
- const w = [];
578
- return I.value && I.value.forEach((d) => {
579
- w.find((B) => B.value === d.time) || w.push({
580
- label: $e(d.time),
570
+ ]), Je = Z(() => {
571
+ const P = [];
572
+ return A.value && A.value.forEach((d) => {
573
+ P.find((B) => B.value === d.time) || P.push({
574
+ label: _e(d.time),
581
575
  value: d.time
582
576
  });
583
- }), w;
577
+ }), P;
584
578
  });
585
- function Je() {
586
- je(l.resetDate === "yes");
587
- }
588
579
  function Ke() {
589
- const w = gt("history", {
580
+ We(o.resetDate === "yes");
581
+ }
582
+ function Xe() {
583
+ const P = kt("history", {
590
584
  removeNullishValues: !0
591
- }), d = parseInt(w.rid), B = w.d, V = parseInt(w.eid);
585
+ }), d = parseInt(P.rid), B = P.d, V = parseInt(P.eid);
592
586
  if (B)
593
- if (kt(B)) {
594
- const C = new Date(B), S = C.setHours(12, 0, 0, 0), h = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
595
- S >= h ? (Re.value = C, w.d = void 0) : fe({
587
+ if (yt(B)) {
588
+ const u = new Date(B), L = u.setHours(12, 0, 0, 0), C = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
589
+ L >= C ? (Me.value = u, P.d = void 0) : ge({
596
590
  message: n("alert.error.invalidDateRange"),
597
591
  type: "error"
598
592
  });
599
593
  } else
600
- fe({
594
+ ge({
601
595
  message: n("alert.error.wrongDateFormat"),
602
596
  type: "error"
603
597
  });
604
- isNaN(d) || (Ue(d) ? Me.value = d : fe({
598
+ isNaN(d) || (Ge(d) ? Ue.value = d : (P.rid = void 0, ge({
605
599
  message: n("alert.error.hotelIdNotFound"),
606
600
  type: "error"
607
- }));
608
- let r;
609
- isNaN(V) || (r = V), ze(r);
601
+ }))), isNaN(V) || Re(V), qe();
610
602
  }
611
- return (w, d) => (o(), $(ft, { styling: w.styling }, {
603
+ return (P, d) => (l(), $(gt, { styling: P.styling }, {
612
604
  default: m(() => [
613
- (o(), $(nt, { onResolve: Ke }, {
605
+ (l(), $(at, { onResolve: Xe }, {
614
606
  default: m(() => [
615
- p(Dt, {
607
+ p(Pt, {
616
608
  id: "konnectio-event-module",
617
- "access-token": w.accessToken,
618
- callback: e(Ge)
609
+ "access-token": P.accessToken,
610
+ callback: e(ze)
619
611
  }, {
620
612
  default: m(() => [
621
- p(Et, {
622
- steps: We.value,
623
- onReset: Je
613
+ p(Ot, {
614
+ steps: Qe.value,
615
+ onReset: Ke
624
616
  }, {
625
617
  availability: m(({ next: B }) => [
626
- p(De, null, {
618
+ p(Pe, null, {
627
619
  sidebar: m(() => [
628
- p(Mt, {
620
+ p(Ut, {
629
621
  redirection: !1,
630
- "selected-location": Number(w.selectedLocation)
622
+ "selected-location": Number(P.selectedLocation)
631
623
  }, null, 8, ["selected-location"])
632
624
  ]),
633
625
  form: m(() => [
634
- e(ve) && e(pe) ? (o(), c("div", kn, [
635
- e(F).length > 0 && e(be).length > 0 ? (o(), c("h2", yn, [
626
+ e(be) && e(ve) ? (l(), c("div", yn, [
627
+ e(F).length > 0 && e(fe).length > 0 ? (l(), c("h2", hn, [
636
628
  p(ne, {
637
629
  icon: "calendar-clock",
638
630
  type: "fal",
639
631
  color: "header"
640
632
  }),
641
633
  t("span", null, a(e(n)("event.availableNow")), 1)
642
- ])) : f("", !0),
643
- t("ul", hn, [
644
- e(_) && w.onlyShow !== "templates" ? (o(!0), c(A, { key: 0 }, H(e(F), ({
634
+ ])) : v("", !0),
635
+ t("ul", Dn, [
636
+ e(_) && P.onlyShow !== "templates" ? (l(!0), c(I, { key: 0 }, Y(e(F), ({
645
637
  id: V,
646
- days: r,
647
- name: C,
648
- timeFrom: S,
649
- timeTo: h,
638
+ days: u,
639
+ name: L,
640
+ timeFrom: C,
641
+ timeTo: w,
650
642
  fromDate: T,
651
643
  toDate: G,
652
644
  tableGroupId: z,
653
- description: ee,
645
+ description: q,
654
646
  soldOut: te,
655
- length: q,
656
- images: ge,
657
- maxOnlineReservationLimit: ke,
658
- maxPaxPerReservation: ye,
659
- useNumberOfProductsForPersons: he
660
- }) => (o(), $(Ae, {
647
+ length: H,
648
+ images: ke,
649
+ maxOnlineReservationLimit: ye,
650
+ maxPaxPerReservation: he,
651
+ useNumberOfProductsForPersons: De
652
+ }) => (l(), $(Ie, {
661
653
  key: V,
662
654
  type: "event",
663
655
  "listing-id": V,
664
656
  "table-group-id": z,
665
- description: ee,
666
- name: C,
667
- length: q,
668
- gallery: ge,
669
- days: r,
657
+ description: q,
658
+ name: L,
659
+ length: H,
660
+ gallery: ke,
661
+ days: u,
670
662
  "from-date": T,
671
663
  "to-date": G,
672
- "max-online-reservation-limit": ye || ke,
673
- "time-from": S,
674
- "time-to": h,
664
+ "max-online-reservation-limit": he || ye,
665
+ "time-from": C,
666
+ "time-to": w,
675
667
  "sold-out": te,
676
- "use-number-of-products-for-persons": he,
668
+ "use-number-of-products-for-persons": De,
677
669
  callback: B
678
- }, 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)) : f("", !0),
679
- e(N) && w.onlyShow !== "events" ? (o(!0), c(A, { key: 1 }, H(e(P), ({
670
+ }, 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)) : v("", !0),
671
+ e(N) && P.onlyShow !== "events" ? (l(!0), c(I, { key: 1 }, Y(e(D), ({
680
672
  id: V,
681
- name: r,
682
- fromDate: C,
683
- toDate: S,
684
- minimumPersonCount: h,
673
+ name: u,
674
+ fromDate: L,
675
+ toDate: C,
676
+ minimumPersonCount: w,
685
677
  fromPrice: T,
686
678
  description: G,
687
- imageUrl: z
688
- }) => (o(), $(tn, {
679
+ imageUrl: z,
680
+ images: q
681
+ }) => (l(), $(nn, {
689
682
  key: V,
690
683
  "listing-id": V,
691
- name: r,
684
+ name: u,
692
685
  image: z,
686
+ images: q,
693
687
  description: G,
694
- "from-date": C,
695
- "to-date": S,
696
- "minimum-person-count": h,
688
+ "from-date": L,
689
+ "to-date": C,
690
+ "minimum-person-count": w,
697
691
  fromPrice: T,
698
692
  callback: B
699
- }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128)) : f("", !0)
693
+ }, null, 8, ["listing-id", "name", "image", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128)) : v("", !0)
700
694
  ]),
701
- e(be).length > 0 && w.onlyShow !== "templates" ? (o(), c(A, { key: 1 }, [
702
- t("h2", Dn, [
695
+ e(fe).length > 0 && P.onlyShow !== "templates" ? (l(), c(I, { key: 1 }, [
696
+ t("h2", Pn, [
703
697
  p(ne, {
704
698
  icon: "calendar-circle-exclamation",
705
699
  type: "fal",
@@ -707,121 +701,121 @@ const Yt = {
707
701
  }),
708
702
  t("span", null, a(e(n)("event.availableLater")), 1)
709
703
  ]),
710
- t("ul", Pn, [
711
- (o(!0), c(A, null, H(e(be), ({
704
+ t("ul", $n, [
705
+ (l(!0), c(I, null, Y(e(fe), ({
712
706
  id: V,
713
- days: r,
714
- name: C,
715
- timeFrom: S,
716
- timeTo: h,
707
+ days: u,
708
+ name: L,
709
+ timeFrom: C,
710
+ timeTo: w,
717
711
  fromDate: T,
718
712
  toDate: G,
719
713
  tableGroupId: z,
720
- description: ee,
714
+ description: q,
721
715
  soldOut: te,
722
- length: q,
723
- images: ge,
724
- maxOnlineReservationLimit: ke,
725
- maxPaxPerReservation: ye,
726
- useNumberOfProductsForPersons: he
727
- }) => (o(), $(en, {
716
+ length: H,
717
+ images: ke,
718
+ maxOnlineReservationLimit: ye,
719
+ maxPaxPerReservation: he,
720
+ useNumberOfProductsForPersons: De
721
+ }) => (l(), $(tn, {
728
722
  key: V,
729
723
  type: "event",
730
724
  "listing-id": V,
731
725
  "table-group-id": z,
732
- description: ee,
733
- name: C,
734
- length: q,
735
- gallery: ge,
736
- days: r,
726
+ description: q,
727
+ name: L,
728
+ length: H,
729
+ gallery: ke,
730
+ days: u,
737
731
  "from-date": T,
738
732
  "to-date": G,
739
- "max-online-reservation-limit": ye || ke,
740
- "time-from": S,
741
- "time-to": h,
733
+ "max-online-reservation-limit": he || ye,
734
+ "time-from": C,
735
+ "time-to": w,
742
736
  "sold-out": te,
743
- "use-number-of-products-for-persons": he,
737
+ "use-number-of-products-for-persons": De,
744
738
  callback: B
745
739
  }, 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))
746
740
  ])
747
- ], 64)) : f("", !0),
748
- !e(_) && !e(N) || !e(_) && w.onlyShow === "events" || !e(N) && w.onlyShow === "templates" ? (o(), c("div", {
741
+ ], 64)) : v("", !0),
742
+ !e(_) && !e(N) || !e(_) && P.onlyShow === "events" || !e(N) && P.onlyShow === "templates" ? (l(), c("div", {
749
743
  key: 2,
750
744
  class: "konnectio-panel",
751
745
  innerHTML: e(n)("event.nothingAvailable")
752
- }, null, 8, $n)) : f("", !0)
753
- ])) : (o(), $(Le, { key: 1 }))
746
+ }, null, 8, _n)) : v("", !0)
747
+ ])) : (l(), $(Se, { key: 1 }))
754
748
  ]),
755
749
  _: 2
756
750
  }, 1024)
757
751
  ]),
758
752
  addons: m(({ next: B, prev: V }) => [
759
- e(oe) ? (o(), $(De, {
753
+ e(oe) ? (l(), $(Pe, {
760
754
  key: 0,
761
755
  "prev-callback": () => e(Ee)(V)
762
756
  }, {
763
757
  form: m(() => [
764
- t("form", _n, [
758
+ t("form", wn, [
765
759
  t("h2", null, [
766
760
  t("span", null, a(e(n)("event.selectProducts")), 1)
767
761
  ]),
768
- e(L) && e(L).length > 0 ? (o(), c("ul", wn, [
769
- (o(!0), c(A, null, H(e(L), ({
770
- roomGroupId: r,
771
- addons: C,
772
- adultPerRoom: S
773
- }, h) => (o(), c("li", { key: r }, [
762
+ e(S) && e(S).length > 0 ? (l(), c("ul", En, [
763
+ (l(!0), c(I, null, Y(e(S), ({
764
+ roomGroupId: u,
765
+ addons: L,
766
+ adultPerRoom: C
767
+ }, w) => (l(), c("li", { key: u }, [
774
768
  t("h5", null, [
775
- t("span", null, a(e(n)("booking.reservation.room")) + " #" + a(h + 1), 1),
769
+ t("span", null, a(e(n)("booking.reservation.room")) + " #" + a(w + 1), 1),
776
770
  d[7] || (d[7] = de(" (")),
777
771
  p(ne, {
778
772
  icon: "male",
779
773
  type: "fas",
780
774
  color: "header"
781
775
  }),
782
- de(" " + a(S) + ") ", 1)
776
+ de(" " + a(C) + ") ", 1)
783
777
  ]),
784
- t("table", En, [
778
+ t("table", On, [
785
779
  t("thead", null, [
786
780
  t("tr", null, [
787
781
  t("th", null, [
788
782
  t("span", null, a(e(n)("booking.reservation.addons")), 1)
789
783
  ]),
790
784
  d[8] || (d[8] = t("th", { class: "konnectio-event-addons-input" }, null, -1)),
791
- t("th", On, [
785
+ t("th", Vn, [
792
786
  t("span", null, a(e(n)("booking.availability.price")), 1)
793
787
  ])
794
788
  ])
795
789
  ]),
796
790
  t("tbody", null, [
797
- (o(!0), c(A, null, H(C, ({
791
+ (l(!0), c(I, null, Y(L, ({
798
792
  id: T,
799
793
  cardinality: G,
800
794
  name: z,
801
- price: ee,
795
+ price: q,
802
796
  quantityStrategy: te
803
- }) => (o(), c("tr", { key: T }, [
797
+ }) => (l(), c("tr", { key: T }, [
804
798
  t("td", null, [
805
799
  t("b", null, a(z), 1),
806
800
  d[9] || (d[9] = t("br", null, null, -1)),
807
- t("span", null, a(e(K)(ee, e(ie))) + " " + a(e(vt)(te)), 1)
801
+ t("span", null, a(e(K)(q, e(ie))) + " " + a(e(bt)(te)), 1)
808
802
  ]),
809
- t("td", Vn, [
810
- G === 3 ? (o(), $(ue, {
803
+ t("td", Nn, [
804
+ G === 3 ? (l(), $(ue, {
811
805
  key: 0,
812
- modelValue: e(v)[`${r}.${T}.${h}`],
813
- "onUpdate:modelValue": (q) => e(v)[`${r}.${T}.${h}`] = q,
806
+ modelValue: e(y)[`${u}.${T}.${w}`],
807
+ "onUpdate:modelValue": (H) => e(y)[`${u}.${T}.${w}`] = H,
814
808
  small: !0,
815
809
  "min-value": 0
816
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (o(), $(It, {
810
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), $(It, {
817
811
  key: 1,
818
- modelValue: e(v)[`${r}.${T}.${h}`],
819
- "onUpdate:modelValue": (q) => e(v)[`${r}.${T}.${h}`] = q,
812
+ modelValue: e(y)[`${u}.${T}.${w}`],
813
+ "onUpdate:modelValue": (H) => e(y)[`${u}.${T}.${w}`] = H,
820
814
  numeric: !0
821
815
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
822
816
  ]),
823
- t("td", Nn, [
824
- t("span", null, a(e(K)(e(He)(T, r, h), e(ie))), 1)
817
+ t("td", Tn, [
818
+ t("span", null, a(e(K)(e(Ye)(T, u, w), e(ie))), 1)
825
819
  ])
826
820
  ]))), 128))
827
821
  ]),
@@ -829,37 +823,37 @@ const Yt = {
829
823
  t("tr", null, [
830
824
  d[10] || (d[10] = t("td", null, null, -1)),
831
825
  d[11] || (d[11] = t("td", null, null, -1)),
832
- t("td", Tn, [
826
+ t("td", Bn, [
833
827
  t("u", null, [
834
- t("span", null, a(e(K)(e(Ye)(r, h), e(ie))), 1)
828
+ t("span", null, a(e(K)(e(je)(u, w), e(ie))), 1)
835
829
  ])
836
830
  ])
837
831
  ])
838
832
  ])
839
833
  ])
840
834
  ]))), 128))
841
- ])) : f("", !0),
842
- e(Q) ? (o(), c("table", Bn, [
835
+ ])) : v("", !0),
836
+ e(Q) ? (l(), c("table", Ln, [
843
837
  t("tbody", null, [
844
- (o(!0), c(A, null, H(e(u).products, ({ id: r, name: C, price: S, description: h }) => (o(), c("tr", { key: r }, [
838
+ (l(!0), c(I, null, Y(e(r).products, ({ id: u, name: L, price: C, description: w }) => (l(), c("tr", { key: u }, [
845
839
  t("td", Cn, [
846
840
  t("b", null, [
847
- t("span", null, a(e(Oe)(C)), 1)
841
+ t("span", null, a(e(Oe)(L)), 1)
848
842
  ]),
849
- h && h !== C ? (o(), c("span", Sn, a(e(Oe)(h)), 1)) : f("", !0),
850
- t("u", null, a(e(K)(S, e(ie))), 1)
843
+ w && w !== L ? (l(), c("span", Fn, a(e(Oe)(w)), 1)) : v("", !0),
844
+ t("u", null, a(e(K)(C, e(ie))), 1)
851
845
  ]),
852
- t("td", Fn, [
846
+ t("td", Sn, [
853
847
  p(ue, {
854
- modelValue: e(b)[r],
855
- "onUpdate:modelValue": (T) => e(b)[r] = T,
848
+ modelValue: e(b)[u],
849
+ "onUpdate:modelValue": (T) => e(b)[u] = T,
856
850
  small: !0,
857
851
  "min-value": 0
858
852
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
859
853
  ])
860
854
  ]))), 128))
861
855
  ])
862
- ])) : f("", !0)
856
+ ])) : v("", !0)
863
857
  ])
864
858
  ]),
865
859
  navigation: m(() => [
@@ -871,22 +865,22 @@ const Yt = {
871
865
  }, null, 8, ["label", "disabled", "onClickEvent"])
872
866
  ]),
873
867
  _: 2
874
- }, 1032, ["prev-callback"])) : f("", !0)
868
+ }, 1032, ["prev-callback"])) : v("", !0)
875
869
  ]),
876
870
  reservation: m(({ next: B, prev: V }) => [
877
- p(De, {
871
+ p(Pe, {
878
872
  "show-terms-notice": !0,
879
873
  "show-gift-card": !0,
880
874
  "prev-callback": () => e(Ee)(V)
881
875
  }, {
882
876
  form: m(() => [
883
- t("form", Ln, [
877
+ t("form", An, [
884
878
  t("h2", null, [
885
879
  t("span", null, a(e(n)("booking.reservation.detailsTitle")), 1)
886
880
  ]),
887
881
  p(re, {
888
- modelValue: e(k),
889
- "onUpdate:modelValue": d[0] || (d[0] = (r) => M(k) ? k.value = r : null),
882
+ modelValue: e(f),
883
+ "onUpdate:modelValue": d[0] || (d[0] = (u) => M(f) ? f.value = u : null),
890
884
  type: "text",
891
885
  label: e(n)("booking.reservation.name"),
892
886
  icon: "user-alt",
@@ -894,8 +888,8 @@ const Yt = {
894
888
  required: ""
895
889
  }, null, 8, ["modelValue", "label", "placeholder"]),
896
890
  p(re, {
897
- modelValue: e(y),
898
- "onUpdate:modelValue": d[1] || (d[1] = (r) => M(y) ? y.value = r : null),
891
+ modelValue: e(g),
892
+ "onUpdate:modelValue": d[1] || (d[1] = (u) => M(g) ? g.value = u : null),
899
893
  label: e(n)("booking.reservation.email"),
900
894
  type: "email",
901
895
  name: "email",
@@ -904,34 +898,34 @@ const Yt = {
904
898
  placeholder: e(n)("booking.reservation.emailPlaceholder"),
905
899
  required: ""
906
900
  }, null, 8, ["modelValue", "label", "placeholder"]),
907
- p(At, {
901
+ p(Rt, {
908
902
  modelValue: e(E),
909
- "onUpdate:modelValue": d[2] || (d[2] = (r) => M(E) ? E.value = r : null),
903
+ "onUpdate:modelValue": d[2] || (d[2] = (u) => M(E) ? E.value = u : null),
910
904
  label: e(n)("booking.reservation.phone"),
911
905
  icon: "phone-office",
912
906
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
913
907
  required: ""
914
908
  }, null, 8, ["modelValue", "label", "placeholder"]),
915
- e(J) ? (o(), $(Ot, {
909
+ e(J) ? (l(), $(Vt, {
916
910
  key: 0,
917
- modelValue: e(D),
918
- "onUpdate:modelValue": d[3] || (d[3] = (r) => M(D) ? D.value = r : null),
911
+ modelValue: e(h),
912
+ "onUpdate:modelValue": d[3] || (d[3] = (u) => M(h) ? h.value = u : null),
919
913
  label: e(n)("event.selectArrivalTime"),
920
914
  name: "eventTimeTable",
921
- checkboxes: Qe.value,
915
+ checkboxes: Je.value,
922
916
  required: ""
923
- }, null, 8, ["modelValue", "label", "checkboxes"])) : f("", !0),
924
- e(me) === e(bt).FullDayEvent ? (o(), $(ue, {
917
+ }, null, 8, ["modelValue", "label", "checkboxes"])) : v("", !0),
918
+ e(pe) === e(ft).FullDayEvent ? (l(), $(ue, {
925
919
  key: 1,
926
920
  modelValue: e(i),
927
- "onUpdate:modelValue": d[4] || (d[4] = (r) => M(i) ? i.value = r : null),
921
+ "onUpdate:modelValue": d[4] || (d[4] = (u) => M(i) ? i.value = u : null),
928
922
  label: e(n)("event.numberOfDays"),
929
923
  "min-value": 1,
930
924
  required: ""
931
- }, null, 8, ["modelValue", "label"])) : f("", !0),
925
+ }, null, 8, ["modelValue", "label"])) : v("", !0),
932
926
  p(re, {
933
927
  modelValue: e(s),
934
- "onUpdate:modelValue": d[5] || (d[5] = (r) => M(s) ? s.value = r : null),
928
+ "onUpdate:modelValue": d[5] || (d[5] = (u) => M(s) ? s.value = u : null),
935
929
  type: "textarea",
936
930
  label: `${e(n)("booking.reservation.remark")} (${e(n)("booking.reservation.optional")})`,
937
931
  icon: "info-circle",
@@ -939,7 +933,7 @@ const Yt = {
939
933
  }, null, 8, ["modelValue", "label", "placeholder"]),
940
934
  p(re, {
941
935
  modelValue: e(O),
942
- "onUpdate:modelValue": d[6] || (d[6] = (r) => M(O) ? O.value = r : null),
936
+ "onUpdate:modelValue": d[6] || (d[6] = (u) => M(O) ? O.value = u : null),
943
937
  type: "textarea",
944
938
  label: `${e(n)("booking.reservation.allergies")} (${e(n)("booking.reservation.optional")})`,
945
939
  icon: "allergies",
@@ -953,17 +947,17 @@ const Yt = {
953
947
  "is-loading": e(R),
954
948
  disabled: !e(le),
955
949
  "full-width": "",
956
- onClickEvent: (r) => e(qe)(B)
950
+ onClickEvent: (u) => e(He)(B)
957
951
  }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"])
958
952
  ]),
959
953
  _: 2
960
954
  }, 1032, ["prev-callback"])
961
955
  ]),
962
956
  payment: m(() => [
963
- p(Rt)
957
+ p(Mt)
964
958
  ]),
965
959
  confirmation: m(() => [
966
- p(Vt, {
960
+ p(Nt, {
967
961
  message: e(n)("event.confirmationMessage")
968
962
  }, null, 8, ["message"])
969
963
  ]),
@@ -974,7 +968,7 @@ const Yt = {
974
968
  }, 8, ["access-token", "callback"])
975
969
  ]),
976
970
  fallback: m(() => [
977
- p(gn)
971
+ p(kn)
978
972
  ]),
979
973
  _: 1
980
974
  }))
@@ -982,8 +976,8 @@ const Yt = {
982
976
  _: 1
983
977
  }, 8, ["styling"]));
984
978
  }
985
- }), Se = /* @__PURE__ */ x(In, [["__scopeId", "data-v-ac75b987"]]), An = at(), Rn = it();
986
- class Mn extends HTMLElement {
979
+ }), Ce = /* @__PURE__ */ ee(In, [["__scopeId", "data-v-206f5d07"]]), Rn = ot(), Mn = rt();
980
+ class Un extends HTMLElement {
987
981
  vueApp;
988
982
  constructor() {
989
983
  super();
@@ -992,14 +986,14 @@ class Mn extends HTMLElement {
992
986
  this.vueApp.unmount();
993
987
  }
994
988
  connectedCallback() {
995
- const l = ot(Se, this.attributes);
996
- this.vueApp = lt(Se, l), this.vueApp.provide("emitter", Rn), this.vueApp.use(st), this.vueApp.use(An), this.vueApp.use(Nt), this.vueApp.use(ht), this.vueApp.use(Tt), this.vueApp.use(yt, { bootstrap: !0 });
989
+ const o = lt(Ce, this.attributes);
990
+ this.vueApp = st(Ce, o), this.vueApp.provide("emitter", Mn), this.vueApp.use(it), this.vueApp.use(Rn), this.vueApp.use(Tt), this.vueApp.use(Dt), this.vueApp.use(Bt), this.vueApp.use(ht, { bootstrap: !0 });
997
991
  const n = document.createElement("div");
998
992
  this.vueApp.mount(n), this.appendChild(n.children[0]);
999
993
  }
1000
994
  }
1001
- window.customElements.define("konnectio-event", Mn);
995
+ window.customElements.define("konnectio-event", Un);
1002
996
  export {
1003
- Mn as default
997
+ Un as default
1004
998
  };
1005
999
  //# sourceMappingURL=event.js.map