@konnectio/core 4.2.32 → 4.2.34

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 (89) hide show
  1. package/dist/{ActionField-CX2AmxNp.js → ActionField-Dgb1luE9.js} +3 -3
  2. package/dist/ActionField-Dgb1luE9.js.br +0 -0
  3. package/dist/ActionField-Dgb1luE9.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-BG00Tbeq.js → AvailabilitySkeleton-CE9EIg_s.js} +6 -6
  5. package/dist/AvailabilitySkeleton-CE9EIg_s.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-CE9EIg_s.js.gz +0 -0
  7. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-B9TIRIVb.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-cNnkCtqu.js} +3 -3
  8. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-cNnkCtqu.js.br +0 -0
  9. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-cNnkCtqu.js.gz +0 -0
  10. package/dist/{CheckoutWindow-DojQGmS3.js → CheckoutWindow-ksMCATOi.js} +3 -3
  11. package/dist/CheckoutWindow-ksMCATOi.js.br +0 -0
  12. package/dist/CheckoutWindow-ksMCATOi.js.gz +0 -0
  13. package/dist/{ErrorMessage-adVlG-xr.js → ErrorMessage-CtL9aarG.js} +3 -3
  14. package/dist/ErrorMessage-CtL9aarG.js.br +0 -0
  15. package/dist/ErrorMessage-CtL9aarG.js.gz +0 -0
  16. package/dist/{EventAvailabilityForm-hsCOY9Np.js → EventAvailabilityForm-B3FOE3AM.js} +4 -4
  17. package/dist/EventAvailabilityForm-B3FOE3AM.js.br +0 -0
  18. package/dist/EventAvailabilityForm-B3FOE3AM.js.gz +0 -0
  19. package/dist/{Field-DmezWN8k.js → Field-CkQGtmMN.js} +4 -4
  20. package/dist/Field-CkQGtmMN.js.br +0 -0
  21. package/dist/Field-CkQGtmMN.js.gz +0 -0
  22. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-Bku0k5YO.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWoXDx7O.js} +3 -3
  23. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWoXDx7O.js.br +0 -0
  24. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWoXDx7O.js.gz +0 -0
  25. package/dist/{SelectField.vue_vue_type_style_index_0_lang-PwLzFiPm.js → SelectField.vue_vue_type_style_index_0_lang-CxRdpyia.js} +2646 -2638
  26. package/dist/SelectField.vue_vue_type_style_index_0_lang-CxRdpyia.js.br +0 -0
  27. package/dist/SelectField.vue_vue_type_style_index_0_lang-CxRdpyia.js.gz +0 -0
  28. package/dist/{TermsOfService-OBp7YNhm.js → TermsOfService-BLvbdAy2.js} +4 -4
  29. package/dist/TermsOfService-BLvbdAy2.js.br +0 -0
  30. package/dist/TermsOfService-BLvbdAy2.js.gz +0 -0
  31. package/dist/_-D0yJrRcy.js +5 -0
  32. package/dist/{_.vue_vue_type_style_index_0_lang-Cdh2JelR.js → _.vue_vue_type_style_index_0_lang-D-diJwZf.js} +3 -3
  33. package/dist/_.vue_vue_type_style_index_0_lang-D-diJwZf.js.br +0 -0
  34. package/dist/_.vue_vue_type_style_index_0_lang-D-diJwZf.js.gz +0 -0
  35. package/dist/_commonjsHelpers-DaMA6jEr.js.br +0 -0
  36. package/dist/_commonjsHelpers-DaMA6jEr.js.gz +0 -0
  37. package/dist/availability.js +6 -6
  38. package/dist/availability.js.br +0 -0
  39. package/dist/availability.js.gz +0 -0
  40. package/dist/cancel-reservation.js +5 -5
  41. package/dist/cancel-reservation.js.br +0 -0
  42. package/dist/cancel-reservation.js.gz +0 -0
  43. package/dist/core.css +1 -1
  44. package/dist/core.css.br +0 -0
  45. package/dist/core.css.gz +0 -0
  46. package/dist/deep-link.js +1 -1
  47. package/dist/deep-link.js.br +0 -0
  48. package/dist/deep-link.js.gz +0 -0
  49. package/dist/event.js +232 -226
  50. package/dist/event.js.br +0 -0
  51. package/dist/event.js.gz +0 -0
  52. package/dist/gift-card-validation.js +9 -9
  53. package/dist/gift-card-validation.js.br +0 -0
  54. package/dist/gift-card-validation.js.gz +0 -0
  55. package/dist/gift-card.js +10 -10
  56. package/dist/gift-card.js.br +0 -0
  57. package/dist/gift-card.js.gz +0 -0
  58. package/dist/{giftCard-CXVJx1E0.js → giftCard-CfqQR-K6.js} +3 -3
  59. package/dist/giftCard-CfqQR-K6.js.br +0 -0
  60. package/dist/giftCard-CfqQR-K6.js.gz +0 -0
  61. package/dist/hotel.js +3240 -2684
  62. package/dist/hotel.js.br +0 -0
  63. package/dist/hotel.js.gz +0 -0
  64. package/dist/{masonry.plugin-CN9yhFLv.js → masonry.plugin-CCg5XXM2.js} +6 -6
  65. package/dist/masonry.plugin-CCg5XXM2.js.br +0 -0
  66. package/dist/masonry.plugin-CCg5XXM2.js.gz +0 -0
  67. package/dist/{mitt-AdJLOdmH.js → mitt-CWSmi8M-.js} +1 -8
  68. package/dist/mitt-CWSmi8M-.js.br +0 -0
  69. package/dist/mitt-CWSmi8M-.js.gz +0 -0
  70. package/dist/polyfill.js +1 -1
  71. package/dist/polyfill.js.br +0 -0
  72. package/dist/polyfill.js.gz +0 -0
  73. package/dist/{style-kldUesWw.js → style-DJF9fHLt.js} +2 -2
  74. package/dist/style-DJF9fHLt.js.br +0 -0
  75. package/dist/style-DJF9fHLt.js.gz +0 -0
  76. package/package.json +10 -9
  77. package/dist/ActionField-CX2AmxNp.js.br +0 -0
  78. package/dist/AvailabilitySkeleton-BG00Tbeq.js.br +0 -0
  79. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-B9TIRIVb.js.br +0 -0
  80. package/dist/CheckoutWindow-DojQGmS3.js.br +0 -0
  81. package/dist/ErrorMessage-adVlG-xr.js.br +0 -0
  82. package/dist/EventAvailabilityForm-hsCOY9Np.js.br +0 -0
  83. package/dist/Field-DmezWN8k.js.br +0 -0
  84. package/dist/SelectField.vue_vue_type_style_index_0_lang-PwLzFiPm.js.br +0 -0
  85. package/dist/_-BwDq5wfJ.js +0 -5
  86. package/dist/giftCard-CXVJx1E0.js.br +0 -0
  87. package/dist/masonry.plugin-CN9yhFLv.js.br +0 -0
  88. package/dist/mitt-AdJLOdmH.js.br +0 -0
  89. package/dist/style-kldUesWw.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,12 +1,12 @@
1
- import { d as U, u as K, s as q, c as W, r as Be, a as p, b as l, g as e, w as m, q as Q, e as t, i as c, f as b, n as lt, h as r, t as o, F as I, v as M, o as ot, j as st, x as ce, y as it, z as R, A as rt, S as ut, k as dt, _ as ct, l as mt, m as pt, p as vt } from "./mitt-AdJLOdmH.js";
2
- import { G as bt } from "./style-kldUesWw.js";
3
- import { a as $e, f as se, g as J, B as ft, h as le, l as gt, s as z, e as me, _ as Y, I as oe, i as kt, j as pe, u as Pe, k as yt, m as ht, n as Dt, o as Z, T as de, O as Pt, p as $t, q as Oe, C as wt, r as Et, t as Ot } from "./SelectField.vue_vue_type_style_index_0_lang-PwLzFiPm.js";
4
- import { _ as _t } from "./_.vue_vue_type_style_index_0_lang-Cdh2JelR.js";
5
- import { B as Tt, _ as Vt, R as Nt, L as Ae, S as Ft, M as Lt, T as Ct, C as Bt, V as At, a as It } from "./masonry.plugin-CN9yhFLv.js";
6
- import { g as St, e as Rt, c as Mt, n as Ut, a as _e, m as Te, b as Ve, d as Ne, f as Fe, _ as Ht } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-B9TIRIVb.js";
7
- import { C as Gt, P as zt, a as Le } from "./CheckoutWindow-DojQGmS3.js";
8
- import { E as qt } from "./EventAvailabilityForm-hsCOY9Np.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-Bku0k5YO.js";
1
+ import { d as U, u as X, s as z, c as Z, r as Ae, a as p, b as l, g as e, w as m, q as J, e as t, i as d, f as b, n as lt, h as r, t as o, F as I, v as M, o as ot, j as st, x as me, y as it, z as R, A as rt, S as ut, k as dt, _ as ct, l as mt, m as pt, p as vt } from "./mitt-CWSmi8M-.js";
2
+ import { G as bt } from "./style-DJF9fHLt.js";
3
+ import { a as we, f as se, g as K, B as ft, h as le, l as gt, s as G, e as pe, _ as q, I as oe, i as kt, j as ve, u as $e, k as yt, m as ht, n as Dt, o as Q, T as ce, O as Pt, p as $t, q as _e, C as wt, r as Et, t as Ot } from "./SelectField.vue_vue_type_style_index_0_lang-CxRdpyia.js";
4
+ import { _ as _t } from "./_.vue_vue_type_style_index_0_lang-D-diJwZf.js";
5
+ import { B as Tt, _ as Vt, R as Nt, L as Ie, S as Ft, M as Lt, T as Ct, C as Bt, V as At, a as It } from "./masonry.plugin-CCg5XXM2.js";
6
+ import { g as St, e as Rt, c as Mt, n as Ut, a as Te, m as Ve, b as Ne, d as Fe, f as Le, _ as Ht } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-cNnkCtqu.js";
7
+ import { C as Gt, P as zt, a as Ce } from "./CheckoutWindow-ksMCATOi.js";
8
+ import { E as qt } from "./EventAvailabilityForm-B3FOE3AM.js";
9
+ import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWoXDx7O.js";
10
10
  function Yt(P) {
11
11
  return (n) => {
12
12
  const k = (P ? Math[P] : Math.trunc)(n);
@@ -23,9 +23,9 @@ function jt(P, n, a) {
23
23
  }), [y, h] = Ut(
24
24
  a?.in,
25
25
  ...f > 0 ? [n, P] : [P, n]
26
- ), s = Yt("round"), V = h.getTime() - y.getTime(), $ = V / Fe, C = _e(h) - _e(y), _ = (V - C) / Fe, O = a?.unit;
26
+ ), s = Yt("round"), V = h.getTime() - y.getTime(), $ = V / Le, C = Te(h) - Te(y), _ = (V - C) / Le, O = a?.unit;
27
27
  let D;
28
- if ($ < 1 ? D = "second" : $ < 60 ? D = "minute" : $ < Te ? D = "hour" : _ < Ve ? D = "day" : _ < Ne ? D = "month" : D = "year", D === "second") {
28
+ if ($ < 1 ? D = "second" : $ < 60 ? D = "minute" : $ < Ve ? D = "hour" : _ < Ne ? D = "day" : _ < Fe ? D = "month" : D = "year", D === "second") {
29
29
  const w = s(V / 1e3);
30
30
  return v.formatDistance("xSeconds", w, i);
31
31
  } else if (D === "minute") {
@@ -35,13 +35,13 @@ function jt(P, n, a) {
35
35
  const w = s($ / 60);
36
36
  return v.formatDistance("xHours", w, i);
37
37
  } else if (D === "day") {
38
- const w = s(_ / Te);
38
+ const w = s(_ / Ve);
39
39
  return v.formatDistance("xDays", w, i);
40
40
  } else if (D === "month") {
41
- const w = s(_ / Ve);
41
+ const w = s(_ / Ne);
42
42
  return w === 12 && O !== "month" ? v.formatDistance("xYears", 1, i) : v.formatDistance("xMonths", w, i);
43
43
  } else {
44
- const w = s(_ / Ne);
44
+ const w = s(_ / Fe);
45
45
  return v.formatDistance("xYears", w, i);
46
46
  }
47
47
  }
@@ -70,19 +70,19 @@ const Wt = { class: "konnectio-event-listing-action-button" }, Zt = /* @__PURE__
70
70
  callback: {}
71
71
  },
72
72
  setup(P) {
73
- const { t: n } = K(), a = P, { display: k } = $e(), {
73
+ const { t: n } = X(), a = P, { display: k } = we(), {
74
74
  hideEventGuestAmount: v
75
- } = q(se()), {
75
+ } = z(se()), {
76
76
  maxNumberOfPeople: f,
77
77
  numberOfPeople: i,
78
78
  eventId: y,
79
79
  currentEventDate: h,
80
80
  tableGroupId: s
81
- } = q(J()), {
81
+ } = z(K()), {
82
82
  getTemplateAvailability: V,
83
83
  getEventAvailability: $,
84
84
  isEventListingLoading: C
85
- } = J(), _ = W(() => a.maxGuests || a.maxOnlineReservationLimit || f.value || 1 / 0), O = Be(0), D = W(() => C(a.listingId)), w = () => {
85
+ } = K(), _ = Z(() => a.maxGuests || a.maxOnlineReservationLimit || f.value || 1 / 0), O = Ae(0), D = Z(() => C(a.listingId)), w = () => {
86
86
  if (!a.useNumberOfProductsForPersons && (O.value === 0 || isNaN(O.value))) {
87
87
  k({
88
88
  type: "error",
@@ -91,7 +91,7 @@ const Wt = { class: "konnectio-event-listing-action-button" }, Zt = /* @__PURE__
91
91
  return;
92
92
  }
93
93
  y.value = a.listingId, i.value = a.useNumberOfProductsForPersons ? NaN : O.value, V(a.callback);
94
- }, X = () => {
94
+ }, x = () => {
95
95
  if (!a.useNumberOfProductsForPersons && (O.value === 0 || isNaN(O.value))) {
96
96
  k({
97
97
  type: "error",
@@ -113,20 +113,20 @@ const Wt = { class: "konnectio-event-listing-action-button" }, Zt = /* @__PURE__
113
113
  "disable-deep-link": E.disableDeepLink
114
114
  }, {
115
115
  description: m(() => [
116
- Q(E.$slots, "description", { maxNumberOfPeople: e(f) }, void 0, !0)
116
+ J(E.$slots, "description", { maxNumberOfPeople: e(f) }, void 0, !0)
117
117
  ]),
118
118
  action: m(() => [
119
- Q(E.$slots, "action", {}, () => [
119
+ J(E.$slots, "action", {}, () => [
120
120
  t("div", {
121
121
  class: lt([
122
122
  "konnectio-event-listing-action",
123
123
  { "no-selectable-people": E.useNumberOfProductsForPersons }
124
124
  ])
125
125
  }, [
126
- E.useNumberOfProductsForPersons ? c("", !0) : (l(), p(le, {
126
+ E.useNumberOfProductsForPersons ? d("", !0) : (l(), p(le, {
127
127
  key: 0,
128
128
  modelValue: O.value,
129
- "onUpdate:modelValue": L[0] || (L[0] = (H) => O.value = H),
129
+ "onUpdate:modelValue": L[0] || (L[0] = (Y) => O.value = Y),
130
130
  label: e(n)("event.numberOfGuests"),
131
131
  icon: "users",
132
132
  "icon-type": "fas",
@@ -136,13 +136,13 @@ const Wt = { class: "konnectio-event-listing-action-button" }, Zt = /* @__PURE__
136
136
  "max-value": _.value
137
137
  }, null, 8, ["modelValue", "label", "description", "max-value"])),
138
138
  t("div", Wt, [
139
- b(me, {
139
+ b(pe, {
140
140
  label: E.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
141
141
  disabled: E.soldOut,
142
142
  "is-loading": D.value,
143
143
  "full-width": "",
144
- "sub-label": e(z)(e(h)),
145
- onClickEvent: L[1] || (L[1] = (H) => E.type === "event" ? X() : w())
144
+ "sub-label": e(G)(e(h)),
145
+ onClickEvent: L[1] || (L[1] = (Y) => E.type === "event" ? x() : w())
146
146
  }, null, 8, ["label", "disabled", "is-loading", "sub-label"])
147
147
  ])
148
148
  ], 2)
@@ -151,7 +151,7 @@ const Wt = { class: "konnectio-event-listing-action-button" }, Zt = /* @__PURE__
151
151
  _: 3
152
152
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout", "disable-deep-link"]));
153
153
  }
154
- }), Ie = /* @__PURE__ */ Y(Zt, [["__scopeId", "data-v-5bd6f82e"]]), Qt = { class: "konnectio-event-listing-information-new" };
154
+ }), Se = /* @__PURE__ */ q(Zt, [["__scopeId", "data-v-5bd6f82e"]]), Qt = { class: "konnectio-event-listing-information-new" };
155
155
  const Jt = {
156
156
  key: 1,
157
157
  class: "konnectio-pill-button"
@@ -181,10 +181,10 @@ const Jt = {
181
181
  callback: {}
182
182
  },
183
183
  setup(P) {
184
- const n = P, { t: a } = K(), {
184
+ const n = P, { t: a } = X(), {
185
185
  hideEventLength: k,
186
186
  hideEventEndTime: v
187
- } = q(se()), f = W(() => {
187
+ } = z(se()), f = Z(() => {
188
188
  if (!n.length)
189
189
  return;
190
190
  const i = n.length.split(":");
@@ -193,7 +193,7 @@ const Jt = {
193
193
  new Date(2e3, 0, 1, 0, 0, 0)
194
194
  );
195
195
  });
196
- return (i, y) => (l(), p(Ie, {
196
+ return (i, y) => (l(), p(Se, {
197
197
  "listing-id": i.listingId,
198
198
  name: i.name,
199
199
  description: i.description,
@@ -211,9 +211,9 @@ const Jt = {
211
211
  i.description ? (l(), p(Vt, {
212
212
  key: 0,
213
213
  text: i.description
214
- }, null, 8, ["text"])) : c("", !0),
214
+ }, null, 8, ["text"])) : d("", !0),
215
215
  t("ul", Qt, [
216
- c("", !0),
216
+ d("", !0),
217
217
  !e(k) && f.value ? (l(), r("li", Jt, [
218
218
  t("div", null, [
219
219
  b(oe, {
@@ -223,7 +223,7 @@ const Jt = {
223
223
  t("span", null, o(e(a)("event.lengthOfEvent")), 1)
224
224
  ]),
225
225
  t("span", null, o(f.value), 1)
226
- ])) : c("", !0),
226
+ ])) : d("", !0),
227
227
  i.timeFrom ? (l(), r("li", Kt, [
228
228
  t("div", null, [
229
229
  b(oe, {
@@ -232,17 +232,17 @@ const Jt = {
232
232
  }),
233
233
  t("span", null, o(e(a)("event.startAndEndTime")), 1)
234
234
  ]),
235
- e(v) ? (l(), r("span", xt, o(e(pe)(i.timeFrom)), 1)) : (l(), r("span", Xt, o(e(kt)(i.timeFrom, i.timeTo)), 1))
236
- ])) : c("", !0)
235
+ e(v) ? (l(), r("span", xt, o(e(ve)(i.timeFrom)), 1)) : (l(), r("span", Xt, o(e(kt)(i.timeFrom, i.timeTo)), 1))
236
+ ])) : d("", !0)
237
237
  ])
238
238
  ]),
239
239
  action: m(() => [
240
- Q(i.$slots, "action", {}, void 0, !0)
240
+ J(i.$slots, "action", {}, void 0, !0)
241
241
  ]),
242
242
  _: 3
243
243
  }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "use-number-of-products-for-persons", "to-date", "sold-out", "callback"]));
244
244
  }
245
- }), ve = /* @__PURE__ */ Y(en, [["__scopeId", "data-v-bd8a264c"]]), tn = {
245
+ }), be = /* @__PURE__ */ q(en, [["__scopeId", "data-v-bd8a264c"]]), tn = {
246
246
  key: 0,
247
247
  class: "konnectio-event-grouped-listings-container"
248
248
  }, nn = { class: "konnectio-event-grouped-listings" }, an = /* @__PURE__ */ U({
@@ -254,7 +254,7 @@ const Jt = {
254
254
  },
255
255
  setup(P) {
256
256
  return (n, a) => n.events && n.events.length > 1 ? (l(), r("div", tn, [
257
- c("", !0),
257
+ d("", !0),
258
258
  t("ul", nn, [
259
259
  (l(!0), r(I, null, M(n.events, ({
260
260
  id: k,
@@ -271,7 +271,7 @@ const Jt = {
271
271
  maxPaxPerReservation: O,
272
272
  useNumberOfProductsForPersons: D,
273
273
  maxTicketsLimit: w
274
- }) => (l(), p(ve, {
274
+ }) => (l(), p(be, {
275
275
  key: k,
276
276
  type: "event",
277
277
  "listing-id": k,
@@ -289,7 +289,7 @@ const Jt = {
289
289
  callback: n.callback
290
290
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "callback"]))), 128))
291
291
  ])
292
- ])) : n.events ? (l(), p(ve, {
292
+ ])) : n.events ? (l(), p(be, {
293
293
  key: n.events[0].id,
294
294
  type: "event",
295
295
  "listing-id": n.events[0].id,
@@ -307,9 +307,9 @@ const Jt = {
307
307
  "sold-out": n.events[0].soldOut,
308
308
  "use-number-of-products-for-persons": n.events[0].useNumberOfProductsForPersons,
309
309
  callback: n.callback
310
- }, 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"])) : c("", !0);
310
+ }, 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"])) : d("", !0);
311
311
  }
312
- }), ln = /* @__PURE__ */ Y(an, [["__scopeId", "data-v-71c9af93"]]), on = { class: "konnectio-special-offer-availability" }, sn = { class: "konnectio-special-offer-availability-button" }, rn = { class: "konnectio-warning-notice" }, un = { key: 0 }, dn = { key: 1 }, cn = /* @__PURE__ */ U({
312
+ }), ln = /* @__PURE__ */ q(an, [["__scopeId", "data-v-71c9af93"]]), on = { class: "konnectio-special-offer-availability" }, sn = { class: "konnectio-special-offer-availability-button" }, rn = { class: "konnectio-warning-notice" }, un = { key: 0 }, dn = { key: 1 }, cn = /* @__PURE__ */ U({
313
313
  __name: "NextEvent",
314
314
  props: {
315
315
  name: {},
@@ -331,17 +331,17 @@ const Jt = {
331
331
  callback: { type: Function }
332
332
  },
333
333
  setup(P) {
334
- const { t: n } = K(), { updateEventDate: a } = Pe(), { display: k } = $e(), v = Be(), f = P;
334
+ const { t: n } = X(), { updateEventDate: a } = $e(), { display: k } = we(), v = Ae(), f = P;
335
335
  function i() {
336
336
  v.value ? a(v.value) : k({
337
337
  message: n("alert.error.selectDate"),
338
338
  type: "error"
339
339
  });
340
340
  }
341
- const y = W(() => yt(f.fromDate, f.toDate) <= 1), h = W(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !ht(f.days).includes(s)));
341
+ const y = Z(() => yt(f.fromDate, f.toDate) <= 1), h = Z(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !ht(f.days).includes(s)));
342
342
  return ot(() => {
343
343
  y.value && (v.value = new Date(f.fromDate));
344
- }), (s, V) => (l(), p(ve, {
344
+ }), (s, V) => (l(), p(be, {
345
345
  name: s.name,
346
346
  description: s.description,
347
347
  "from-date": s.fromDate,
@@ -378,7 +378,7 @@ const Jt = {
378
378
  "disabled-week-days": h.value
379
379
  }, null, 8, ["modelValue", "label", "placeholder", "readonly", "start-date", "min-date", "max-date", "disabled-week-days"]),
380
380
  t("div", sn, [
381
- b(me, {
381
+ b(pe, {
382
382
  label: e(n)("availability.buttonLabel"),
383
383
  onClick: st(i, ["prevent"])
384
384
  }, null, 8, ["label"])
@@ -386,10 +386,10 @@ const Jt = {
386
386
  ]),
387
387
  t("div", rn, [
388
388
  y.value ? (l(), r("span", un, [
389
- ce("*" + o(e(n)("event.canBeBooked")) + " ", 1),
390
- t("u", null, o(e(z)(s.fromDate)), 1)
389
+ me("*" + o(e(n)("event.canBeBooked")) + " ", 1),
390
+ t("u", null, o(e(G)(s.fromDate)), 1)
391
391
  ])) : (l(), r("span", dn, [
392
- ce("*" + o(e(n)("event.canBeBooked")) + " ", 1),
392
+ me("*" + o(e(n)("event.canBeBooked")) + " ", 1),
393
393
  t("u", null, o(e(Dt)(s.days)), 1)
394
394
  ]))
395
395
  ])
@@ -398,7 +398,7 @@ const Jt = {
398
398
  _: 1
399
399
  }, 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"]));
400
400
  }
401
- }), mn = /* @__PURE__ */ Y(cn, [["__scopeId", "data-v-f6aed3b0"]]), pn = ["innerHTML"], vn = /* @__PURE__ */ U({
401
+ }), mn = /* @__PURE__ */ q(cn, [["__scopeId", "data-v-f6aed3b0"]]), pn = ["innerHTML"], vn = /* @__PURE__ */ U({
402
402
  __name: "FallbackEvent",
403
403
  props: {
404
404
  name: {},
@@ -410,8 +410,8 @@ const Jt = {
410
410
  callback: { type: Function }
411
411
  },
412
412
  setup(P) {
413
- const { t: n } = K();
414
- return (a, k) => (l(), p(ve, {
413
+ const { t: n } = X();
414
+ return (a, k) => (l(), p(be, {
415
415
  name: a.name,
416
416
  description: a.description,
417
417
  "from-date": a.fromDate,
@@ -430,7 +430,7 @@ const Jt = {
430
430
  _: 1
431
431
  }, 8, ["name", "description", "from-date", "gallery", "days", "listing-id", "callback"]));
432
432
  }
433
- }), bn = /* @__PURE__ */ Y(vn, [["__scopeId", "data-v-14c5e97e"]]), fn = /* @__PURE__ */ U({
433
+ }), bn = /* @__PURE__ */ q(vn, [["__scopeId", "data-v-14c5e97e"]]), fn = /* @__PURE__ */ U({
434
434
  __name: "Template",
435
435
  props: {
436
436
  name: {},
@@ -447,7 +447,7 @@ const Jt = {
447
447
  callback: {}
448
448
  },
449
449
  setup(P) {
450
- return (n, a) => (l(), p(Ie, {
450
+ return (n, a) => (l(), p(Se, {
451
451
  "listing-id": n.listingId,
452
452
  gallery: n.images,
453
453
  name: n.name,
@@ -461,10 +461,10 @@ const Jt = {
461
461
  }), gn = {
462
462
  key: 0,
463
463
  class: "konnectio-panel konnectio-reservation-notice-mobile"
464
- }, kn = ["innerHTML"], yn = { key: 0 }, hn = { key: 1 }, Dn = { key: 2 }, Pn = { key: 0 }, $n = { key: 4 }, wn = { key: 5 }, En = { key: 0 }, On = { key: 0 }, _n = { key: 1 }, Tn = {
464
+ }, kn = ["innerHTML"], yn = { key: 0 }, hn = { key: 1 }, Dn = { key: 2 }, Pn = { key: 0 }, $n = { key: 4 }, wn = { key: 5 }, En = { key: 6 }, On = { key: 0 }, _n = { key: 0 }, Tn = { key: 1 }, Vn = {
465
465
  key: 0,
466
466
  class: "konnectio-capitalize"
467
- }, Vn = /* @__PURE__ */ U({
467
+ }, Nn = /* @__PURE__ */ U({
468
468
  __name: "EventReservationForm",
469
469
  props: {
470
470
  showGiftCard: { type: Boolean, default: !1 },
@@ -472,7 +472,7 @@ const Jt = {
472
472
  prevCallback: {}
473
473
  },
474
474
  setup(P) {
475
- const { t: n } = K(), a = it(), {
475
+ const { t: n } = X(), a = it(), {
476
476
  areListingsAvailable: k,
477
477
  arrivalTime: v,
478
478
  numberOfPeople: f,
@@ -487,54 +487,56 @@ const Jt = {
487
487
  basePrice: O,
488
488
  totalPrice: D,
489
489
  weekendFee: w,
490
- roomUpgrade: X,
490
+ roomUpgrade: x,
491
491
  discountCode: E,
492
- totalSelectedProducts: L
493
- } = q(J()), { totalAddonPrice: H, validateDiscountCode: be } = J(), { currency: ie, hideEventLength: fe } = q(se()), x = n("event.reservationNotice");
494
- return (G, re) => (l(), p(Nt, {
492
+ totalSelectedProducts: L,
493
+ discountValue: Y,
494
+ appliedDiscountCode: fe
495
+ } = z(K()), { totalAddonPrice: ie, validateDiscountCode: ge } = K(), { currency: re, hideEventLength: ke } = z(se()), ee = n("event.reservationNotice");
496
+ return (H, ue) => (l(), p(Nt, {
495
497
  "discount-code": e(E),
496
- "onUpdate:discountCode": re[0] || (re[0] = (j) => R(E) ? E.value = j : null),
497
- "validate-discount-code": e(be),
498
- "show-gift-card": G.showGiftCard,
499
- "show-terms-notice": G.showTermsNotice,
498
+ "onUpdate:discountCode": ue[0] || (ue[0] = (j) => R(E) ? E.value = j : null),
499
+ "validate-discount-code": e(ge),
500
+ "show-gift-card": H.showGiftCard,
501
+ "show-terms-notice": H.showTermsNotice,
500
502
  "is-sidebar-loading": !e(k),
501
503
  "base-price": e(O),
502
504
  "total-price": e(D),
503
505
  "weekend-fee": e(w),
504
- "room-upgrade": e(X),
505
- notice: e(x),
506
- "prev-callback": G.prevCallback
506
+ "room-upgrade": e(x),
507
+ notice: e(ee),
508
+ "prev-callback": H.prevCallback
507
509
  }, rt({
508
510
  form: m(() => [
509
- Q(G.$slots, "form", {}, void 0, !0),
510
- e(x) ? (l(), r("div", gn, [
511
+ J(H.$slots, "form", {}, void 0, !0),
512
+ e(ee) ? (l(), r("div", gn, [
511
513
  t("p", {
512
- innerHTML: e(x),
514
+ innerHTML: e(ee),
513
515
  class: "konnectio-wysiwyg"
514
516
  }, null, 8, kn)
515
- ])) : c("", !0)
517
+ ])) : d("", !0)
516
518
  ]),
517
519
  "reservation-summary": m(() => [
518
- e(h) ? c("", !0) : (l(), r("li", yn, [
520
+ e(h) ? d("", !0) : (l(), r("li", yn, [
519
521
  t("span", null, o(e(n)("general.date")), 1),
520
- t("b", null, o(e(z)(e(s))), 1)
522
+ t("b", null, o(e(G)(e(s))), 1)
521
523
  ])),
522
524
  e(f) > 0 ? (l(), r("li", hn, [
523
525
  t("span", null, o(e(n)("event.numberOfGuests")), 1),
524
526
  t("b", null, o(e(f)), 1)
525
- ])) : c("", !0),
527
+ ])) : d("", !0),
526
528
  !e(h) && e(L) > 0 ? (l(), r("li", Dn, [
527
529
  t("span", null, o(e(n)("event.numberOfProducts")), 1),
528
530
  t("b", null, o(e(L)), 1)
529
- ])) : c("", !0),
531
+ ])) : d("", !0),
530
532
  e(h) ? (l(), r(I, { key: 3 }, [
531
533
  t("li", null, [
532
534
  t("span", null, o(e(n)("booking.reservation.arrival")), 1),
533
- t("b", null, o(e(z)(e($))), 1)
535
+ t("b", null, o(e(G)(e($))), 1)
534
536
  ]),
535
537
  t("li", null, [
536
538
  t("span", null, o(e(n)("booking.reservation.departure")), 1),
537
- t("b", null, o(e(z)(e($), e(y))), 1)
539
+ t("b", null, o(e(G)(e($), e(y))), 1)
538
540
  ]),
539
541
  t("li", null, [
540
542
  t("span", null, o(e(n)("event.numberOfRooms")), 1),
@@ -543,79 +545,83 @@ const Jt = {
543
545
  e(y) > 0 ? (l(), r("li", Pn, [
544
546
  t("span", null, o(e(n)("event.numberOfDays")), 1),
545
547
  t("b", null, o(e(y)), 1)
546
- ])) : c("", !0)
547
- ], 64)) : c("", !0),
548
+ ])) : d("", !0)
549
+ ], 64)) : d("", !0),
548
550
  !e(h) && e(v) ? (l(), r("li", $n, [
549
551
  t("span", null, o(e(n)("event.startOfEvent")), 1),
550
- t("b", null, o(e(pe)(e(v))), 1)
551
- ])) : c("", !0),
552
- !e(h) && e(V) && !e(fe) ? (l(), r("li", wn, [
552
+ t("b", null, o(e(ve)(e(v))), 1)
553
+ ])) : d("", !0),
554
+ !e(h) && e(V) && !e(ke) ? (l(), r("li", wn, [
553
555
  t("span", null, o(e(n)("event.lengthOfEvent")), 1),
554
- t("b", null, o(e(pe)(e(V))), 1)
555
- ])) : c("", !0)
556
+ t("b", null, o(e(ve)(e(V))), 1)
557
+ ])) : d("", !0),
558
+ e(Y) ? (l(), r("li", En, [
559
+ t("span", null, o(e(n)("general.discountCode")), 1),
560
+ t("b", null, o(e(fe)), 1)
561
+ ])) : d("", !0)
556
562
  ]),
557
563
  "price-summary": m(() => [
558
- !e(h) && e(C) > 0 ? (l(), r("li", En, [
564
+ !e(h) && e(C) > 0 ? (l(), r("li", On, [
559
565
  t("span", null, o(e(n)("booking.availability.basePrice")), 1),
560
- t("b", null, o(e(Z)(e(C), e(ie))), 1)
561
- ])) : c("", !0),
562
- e(_) ? (l(!0), r(I, { key: 1 }, M(e(_), ({ roomGroupId: j }, ee) => (l(), r(I, null, [
563
- e(H)(j, ee) > 0 ? (l(), r("li", { key: j }, [
564
- t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(ee + 1), 1),
565
- t("b", null, o(e(Z)(e(H)(j, ee), e(ie))), 1)
566
- ])) : c("", !0)
567
- ], 64))), 256)) : c("", !0)
566
+ t("b", null, o(e(Q)(e(C), e(re))), 1)
567
+ ])) : d("", !0),
568
+ e(_) ? (l(!0), r(I, { key: 1 }, M(e(_), ({ roomGroupId: j }, W) => (l(), r(I, null, [
569
+ e(ie)(j, W) > 0 ? (l(), r("li", { key: j }, [
570
+ t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(W + 1), 1),
571
+ t("b", null, o(e(Q)(e(ie)(j, W), e(re))), 1)
572
+ ])) : d("", !0)
573
+ ], 64))), 256)) : d("", !0)
568
574
  ]),
569
575
  navigation: m(() => [
570
- Q(G.$slots, "navigation", {}, void 0, !0)
576
+ J(H.$slots, "navigation", {}, void 0, !0)
571
577
  ]),
572
578
  "mobile-under-price": m(() => [
573
- e(h) && e(y) > 0 ? (l(), r("div", On, [
574
- t("span", null, o(e(z)(e($))) + " - " + o(e(z)(e($), e(y))), 1)
575
- ])) : (l(), r("div", _n, [
576
- t("span", null, o(e(z)(e(s))), 1)
579
+ e(h) && e(y) > 0 ? (l(), r("div", _n, [
580
+ t("span", null, o(e(G)(e($))) + " - " + o(e(G)(e($), e(y))), 1)
581
+ ])) : (l(), r("div", Tn, [
582
+ t("span", null, o(e(G)(e(s))), 1)
577
583
  ]))
578
584
  ]),
579
585
  "mobile-summary": m(() => [
580
- !e(h) && e(L) > 0 ? (l(), r("span", Tn, o(e(n)("event.numberOfProducts")) + ": " + o(e(L)), 1)) : c("", !0)
586
+ !e(h) && e(L) > 0 ? (l(), r("span", Vn, o(e(n)("event.numberOfProducts")) + ": " + o(e(L)), 1)) : d("", !0)
581
587
  ]),
582
588
  _: 2
583
589
  }, [
584
590
  e(a).sidebar ? {
585
591
  name: "sidebar",
586
592
  fn: m(() => [
587
- Q(G.$slots, "sidebar", {}, void 0, !0)
593
+ J(H.$slots, "sidebar", {}, void 0, !0)
588
594
  ]),
589
595
  key: "0"
590
596
  } : void 0
591
597
  ]), 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"]));
592
598
  }
593
- }), De = /* @__PURE__ */ Y(Vn, [["__scopeId", "data-v-32d9183d"]]), Nn = { class: "event-skeleton" }, Fn = { class: "event-skeleton-content" }, Ln = { class: "event-skeleton-sidebar" }, Cn = /* @__PURE__ */ U({
599
+ }), Pe = /* @__PURE__ */ q(Nn, [["__scopeId", "data-v-d2ff3f68"]]), Fn = { class: "event-skeleton" }, Ln = { class: "event-skeleton-content" }, Cn = { class: "event-skeleton-sidebar" }, Bn = /* @__PURE__ */ U({
594
600
  __name: "EventSkeleton",
595
601
  setup(P) {
596
- return (n, a) => (l(), r("div", Nn, [
597
- t("div", Fn, [
598
- b(Ae)
599
- ]),
602
+ return (n, a) => (l(), r("div", Fn, [
600
603
  t("div", Ln, [
601
- c("", !0),
604
+ b(Ie)
605
+ ]),
606
+ t("div", Cn, [
607
+ d("", !0),
602
608
  b(Ft)
603
609
  ])
604
610
  ]));
605
611
  }
606
- }), Bn = /* @__PURE__ */ Y(Cn, [["__scopeId", "data-v-3e15c4e3"]]), An = {
612
+ }), An = /* @__PURE__ */ q(Bn, [["__scopeId", "data-v-3e15c4e3"]]), In = {
607
613
  key: 0,
608
614
  id: "konnectio-event-listings-wrapper"
609
- }, In = {
615
+ }, Sn = {
610
616
  key: 1,
611
617
  class: "konnectio-hotel-availability-title"
612
- }, Sn = { class: "konnectio-event-listings" }, Rn = { class: "konnectio-hotel-availability-title" }, Mn = { class: "konnectio-event-listings" }, Un = ["innerHTML"], Hn = { class: "konnectio-panel" }, Gn = {
618
+ }, Rn = { class: "konnectio-event-listings" }, Mn = { class: "konnectio-hotel-availability-title" }, Un = { class: "konnectio-event-listings" }, Hn = ["innerHTML"], Gn = { class: "konnectio-panel" }, zn = {
613
619
  key: 0,
614
620
  id: "konnectio-event-addons"
615
- }, zn = { class: "konnectio-table with-lines" }, qn = { class: "konnectio-event-addons-price" }, Yn = { class: "konnectio-event-addons-input" }, jn = { class: "konnectio-event-addons-price" }, Wn = { class: "konnectio-event-addons-price" }, Zn = {
621
+ }, qn = { class: "konnectio-table with-lines" }, Yn = { class: "konnectio-event-addons-price" }, jn = { class: "konnectio-event-addons-input" }, Wn = { class: "konnectio-event-addons-price" }, Zn = { class: "konnectio-event-addons-price" }, Qn = {
616
622
  key: 1,
617
623
  class: "konnectio-table with-lines without-header"
618
- }, Qn = { class: "konnectio-table-addons-information" }, Jn = { key: 0 }, Kn = { class: "konnectio-table-addons-option" }, Xn = { class: "konnectio-panel" }, xn = /* @__PURE__ */ U({
624
+ }, Jn = { class: "konnectio-table-addons-information" }, Kn = { key: 0 }, Xn = { class: "konnectio-table-addons-option" }, xn = { class: "konnectio-panel" }, ea = /* @__PURE__ */ U({
619
625
  name: "EventLayout",
620
626
  __name: "Event",
621
627
  props: {
@@ -631,7 +637,7 @@ const Jt = {
631
637
  styling: {}
632
638
  },
633
639
  setup(P) {
634
- const n = P, { t: a } = K(), {
640
+ const n = P, { t: a } = X(), {
635
641
  addons: k,
636
642
  products: v,
637
643
  numberOfDays: f,
@@ -646,31 +652,31 @@ const Jt = {
646
652
  hasEvents: O,
647
653
  hasTemplates: D,
648
654
  getEvents: w,
649
- getTemplates: X,
655
+ getTemplates: x,
650
656
  getEventData: E,
651
657
  getTemplateData: L,
652
- getEventTableData: H,
653
- hasProducts: be,
658
+ getEventTableData: Y,
659
+ hasProducts: fe,
654
660
  eventRateType: ie,
655
- areListingsAvailable: fe,
656
- isAvailabilityDataAvailable: x,
657
- hasListingData: G,
658
- isPaymentLoading: re,
659
- isReservationFormFilled: j,
660
- requiresArrivalTime: ee,
661
- hasSelectedRequiredProducts: Se,
662
- getUnavailableEvents: ge,
663
- hasFallbackEvents: we,
661
+ areListingsAvailable: ge,
662
+ isAvailabilityDataAvailable: re,
663
+ hasListingData: ke,
664
+ isPaymentLoading: ee,
665
+ isReservationFormFilled: H,
666
+ requiresArrivalTime: ue,
667
+ hasSelectedRequiredProducts: j,
668
+ getUnavailableEvents: W,
669
+ hasFallbackEvents: Ee,
664
670
  getFallbackEvents: Re
665
- } = q(J()), { currency: ue } = q(se()), { setActiveIdFilter: Me } = se(), { eventDate: Ue, eventLocation: He } = q(Pe()), { isValidRestaurantId: Ge } = Pe(), {
671
+ } = z(K()), { currency: de } = z(se()), { setActiveIdFilter: Me } = se(), { eventDate: Ue, eventLocation: He } = z($e()), { isValidRestaurantId: Ge } = $e(), {
666
672
  initialize: ze,
667
673
  fetchListings: qe,
668
674
  createBooking: Ye,
669
675
  localAddonPrice: je,
670
676
  totalAddonPrice: We,
671
677
  reset: Ze,
672
- goBack: Ee
673
- } = J(), { display: ke } = $e(), Qe = W(() => [
678
+ goBack: Oe
679
+ } = K(), { display: ye } = we(), Qe = Z(() => [
674
680
  {
675
681
  id: "availability",
676
682
  label: a("booking.availability.title"),
@@ -696,12 +702,12 @@ const Jt = {
696
702
  label: a("booking.confirmation.title"),
697
703
  icon: "calendar-check"
698
704
  }
699
- ]), Je = W(() => {
705
+ ]), Je = Z(() => {
700
706
  const g = [];
701
- return H.value && H.value.forEach((d) => {
702
- g.find((F) => F.value === d.time) || g.push({
703
- label: pe(d.time),
704
- value: d.time
707
+ return Y.value && Y.value.forEach((c) => {
708
+ g.find((F) => F.value === c.time) || g.push({
709
+ label: ve(c.time),
710
+ value: c.time
705
711
  });
706
712
  }), g;
707
713
  });
@@ -711,25 +717,25 @@ const Jt = {
711
717
  function Xe() {
712
718
  const g = Et("history", {
713
719
  removeNullishValues: !0
714
- }), d = parseInt(g.rid), F = g.d, T = parseInt(g.eid);
720
+ }), c = parseInt(g.rid), F = g.d, T = parseInt(g.eid);
715
721
  if (F)
716
722
  if (Ot(F)) {
717
723
  const u = new Date(F), B = u.setHours(12, 0, 0, 0), S = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
718
- B >= S ? Ue.value = u : (ke({
724
+ B >= S ? Ue.value = u : (ye({
719
725
  message: a("alert.error.invalidDateRange"),
720
726
  type: "error"
721
727
  }), g.d = void 0);
722
728
  } else
723
- ke({
729
+ ye({
724
730
  message: a("alert.error.wrongDateFormat"),
725
731
  type: "error"
726
732
  });
727
- isNaN(d) || (Ge(d) ? He.value = d : (g.rid = void 0, ke({
733
+ isNaN(c) || (Ge(c) ? He.value = c : (g.rid = void 0, ye({
728
734
  message: a("alert.error.hotelIdNotFound"),
729
735
  type: "error"
730
736
  }))), isNaN(T) || Me(T), qe();
731
737
  }
732
- return (g, d) => (l(), p(wt, { styling: g.styling }, {
738
+ return (g, c) => (l(), p(wt, { styling: g.styling }, {
733
739
  default: m(() => [
734
740
  (l(), p(ut, { onResolve: Xe }, {
735
741
  default: m(() => [
@@ -744,7 +750,7 @@ const Jt = {
744
750
  onReset: Ke
745
751
  }, {
746
752
  availability: m(({ next: F }) => [
747
- b(De, null, {
753
+ b(Pe, null, {
748
754
  sidebar: m(() => [
749
755
  b(qt, {
750
756
  redirection: !1,
@@ -753,8 +759,8 @@ const Jt = {
753
759
  }, null, 8, ["selected-location", "hide-locations"])
754
760
  ]),
755
761
  form: m(() => [
756
- e(G) && e(fe) ? (l(), r("div", An, [
757
- e(we) ? (l(!0), r(I, { key: 0 }, M(e(Re), ({
762
+ e(ke) && e(ge) ? (l(), r("div", In, [
763
+ e(Ee) ? (l(!0), r(I, { key: 0 }, M(e(Re), ({
758
764
  id: T,
759
765
  name: u,
760
766
  description: B,
@@ -767,22 +773,22 @@ const Jt = {
767
773
  name: u,
768
774
  gallery: S,
769
775
  callback: F
770
- }, null, 8, ["listing-id", "description", "name", "gallery", "callback"]))), 128)) : c("", !0),
771
- e(O) && e(ge).length > 0 ? (l(), r("h2", In, [
776
+ }, null, 8, ["listing-id", "description", "name", "gallery", "callback"]))), 128)) : d("", !0),
777
+ e(O) && e(W).length > 0 ? (l(), r("h2", Sn, [
772
778
  b(oe, {
773
779
  icon: "calendar-clock",
774
780
  type: "fal",
775
781
  color: "header"
776
782
  }),
777
783
  t("span", null, o(e(a)("event.availableNow")), 1)
778
- ])) : c("", !0),
779
- t("ul", Sn, [
784
+ ])) : d("", !0),
785
+ t("ul", Rn, [
780
786
  e(O) && g.onlyShow !== "templates" ? (l(!0), r(I, { key: 0 }, M(e(w), (T) => (l(), p(ln, {
781
787
  name: T.name,
782
788
  events: T.events,
783
789
  callback: F
784
- }, null, 8, ["name", "events", "callback"]))), 256)) : c("", !0),
785
- e(D) && g.onlyShow !== "events" ? (l(!0), r(I, { key: 1 }, M(e(X), ({
790
+ }, null, 8, ["name", "events", "callback"]))), 256)) : d("", !0),
791
+ e(D) && g.onlyShow !== "events" ? (l(!0), r(I, { key: 1 }, M(e(x), ({
786
792
  id: T,
787
793
  name: u,
788
794
  fromDate: B,
@@ -802,10 +808,10 @@ const Jt = {
802
808
  "minimum-person-count": N,
803
809
  fromPrice: A,
804
810
  callback: F
805
- }, null, 8, ["listing-id", "name", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128)) : c("", !0)
811
+ }, null, 8, ["listing-id", "name", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128)) : d("", !0)
806
812
  ]),
807
- e(ge).length > 0 && g.onlyShow !== "templates" ? (l(), r(I, { key: 2 }, [
808
- t("h2", Rn, [
813
+ e(W).length > 0 && g.onlyShow !== "templates" ? (l(), r(I, { key: 2 }, [
814
+ t("h2", Mn, [
809
815
  b(oe, {
810
816
  icon: "calendar-circle-exclamation",
811
817
  type: "fal",
@@ -813,8 +819,8 @@ const Jt = {
813
819
  }),
814
820
  t("span", null, o(e(a)("event.availableLater")), 1)
815
821
  ]),
816
- t("ul", Mn, [
817
- (l(!0), r(I, null, M(e(ge), ({
822
+ t("ul", Un, [
823
+ (l(!0), r(I, null, M(e(W), ({
818
824
  id: T,
819
825
  days: u,
820
826
  name: B,
@@ -823,8 +829,8 @@ const Jt = {
823
829
  fromDate: A,
824
830
  toDate: te,
825
831
  tableGroupId: ne,
826
- description: ye,
827
- soldOut: he,
832
+ description: he,
833
+ soldOut: De,
828
834
  length: ae,
829
835
  images: xe,
830
836
  maxOnlineReservationLimit: et,
@@ -836,7 +842,7 @@ const Jt = {
836
842
  type: "event",
837
843
  "listing-id": T,
838
844
  "table-group-id": ne,
839
- description: ye,
845
+ description: he,
840
846
  name: B,
841
847
  length: ae,
842
848
  gallery: xe,
@@ -846,33 +852,33 @@ const Jt = {
846
852
  "max-online-reservation-limit": tt || et || at,
847
853
  "time-from": S,
848
854
  "time-to": N,
849
- "sold-out": he,
855
+ "sold-out": De,
850
856
  "use-number-of-products-for-persons": nt,
851
857
  callback: F
852
858
  }, 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))
853
859
  ])
854
- ], 64)) : c("", !0),
855
- (!e(O) && !e(D) || !e(O) && g.onlyShow === "events" || !e(D) && g.onlyShow === "templates") && !e(we) ? (l(), r("div", {
860
+ ], 64)) : d("", !0),
861
+ (!e(O) && !e(D) || !e(O) && g.onlyShow === "events" || !e(D) && g.onlyShow === "templates") && !e(Ee) ? (l(), r("div", {
856
862
  key: 3,
857
863
  class: "konnectio-panel",
858
864
  innerHTML: e(a)("event.nothingAvailable")
859
- }, null, 8, Un)) : c("", !0)
860
- ])) : (l(), p(Ae, { key: 1 }))
865
+ }, null, 8, Hn)) : d("", !0)
866
+ ])) : (l(), p(Ie, { key: 1 }))
861
867
  ]),
862
868
  _: 2
863
869
  }, 1024)
864
870
  ]),
865
871
  addons: m(({ next: F, prev: T }) => [
866
- e(x) ? (l(), p(De, {
872
+ e(re) ? (l(), p(Pe, {
867
873
  key: 0,
868
- "prev-callback": () => e(Ee)(T)
874
+ "prev-callback": () => e(Oe)(T)
869
875
  }, {
870
876
  form: m(() => [
871
- t("form", Hn, [
877
+ t("form", Gn, [
872
878
  t("h2", null, [
873
879
  t("span", null, o(e(a)("event.selectProducts")), 1)
874
880
  ]),
875
- e(L) && e(L).length > 0 ? (l(), r("ul", Gn, [
881
+ e(L) && e(L).length > 0 ? (l(), r("ul", zn, [
876
882
  (l(!0), r(I, null, M(e(L), ({
877
883
  roomGroupId: u,
878
884
  addons: B,
@@ -880,22 +886,22 @@ const Jt = {
880
886
  }, N) => (l(), r("li", { key: u }, [
881
887
  t("h5", null, [
882
888
  t("span", null, o(e(a)("booking.reservation.room")) + " #" + o(N + 1), 1),
883
- d[9] || (d[9] = ce(" (", -1)),
889
+ c[9] || (c[9] = me(" (", -1)),
884
890
  b(oe, {
885
891
  icon: "male",
886
892
  type: "fas",
887
893
  color: "header"
888
894
  }),
889
- ce(" " + o(S) + ") ", 1)
895
+ me(" " + o(S) + ") ", 1)
890
896
  ]),
891
- t("table", zn, [
897
+ t("table", qn, [
892
898
  t("thead", null, [
893
899
  t("tr", null, [
894
900
  t("th", null, [
895
901
  t("span", null, o(e(a)("booking.reservation.addons")), 1)
896
902
  ]),
897
- d[10] || (d[10] = t("th", { class: "konnectio-event-addons-input" }, null, -1)),
898
- t("th", qn, [
903
+ c[10] || (c[10] = t("th", { class: "konnectio-event-addons-input" }, null, -1)),
904
+ t("th", Yn, [
899
905
  t("span", null, o(e(a)("booking.availability.price")), 1)
900
906
  ])
901
907
  ])
@@ -905,58 +911,58 @@ const Jt = {
905
911
  id: A,
906
912
  cardinality: te,
907
913
  name: ne,
908
- price: ye,
909
- quantityStrategy: he
914
+ price: he,
915
+ quantityStrategy: De
910
916
  }) => (l(), r("tr", { key: A }, [
911
917
  t("td", null, [
912
918
  t("b", null, o(ne), 1),
913
- d[11] || (d[11] = t("br", null, null, -1)),
914
- t("span", null, o(e(Z)(ye, e(ue))) + " " + o(e($t)(he)), 1)
919
+ c[11] || (c[11] = t("br", null, null, -1)),
920
+ t("span", null, o(e(Q)(he, e(de))) + " " + o(e($t)(De)), 1)
915
921
  ]),
916
- t("td", Yn, [
922
+ t("td", jn, [
917
923
  te === 3 ? (l(), p(le, {
918
924
  key: 0,
919
925
  modelValue: e(k)[`${u}.${A}.${N}`],
920
926
  "onUpdate:modelValue": (ae) => e(k)[`${u}.${A}.${N}`] = ae,
921
927
  small: !0,
922
928
  "min-value": 0
923
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), p(Le, {
929
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), p(Ce, {
924
930
  key: 1,
925
931
  modelValue: e(k)[`${u}.${A}.${N}`],
926
932
  "onUpdate:modelValue": (ae) => e(k)[`${u}.${A}.${N}`] = ae,
927
933
  numeric: !0
928
934
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
929
935
  ]),
930
- t("td", jn, [
931
- t("span", null, o(e(Z)(e(je)(A, u, N), e(ue))), 1)
936
+ t("td", Wn, [
937
+ t("span", null, o(e(Q)(e(je)(A, u, N), e(de))), 1)
932
938
  ])
933
939
  ]))), 128))
934
940
  ]),
935
941
  t("tfoot", null, [
936
942
  t("tr", null, [
937
- d[12] || (d[12] = t("td", null, null, -1)),
938
- d[13] || (d[13] = t("td", null, null, -1)),
939
- t("td", Wn, [
943
+ c[12] || (c[12] = t("td", null, null, -1)),
944
+ c[13] || (c[13] = t("td", null, null, -1)),
945
+ t("td", Zn, [
940
946
  t("u", null, [
941
- t("span", null, o(e(Z)(e(We)(u, N), e(ue))), 1)
947
+ t("span", null, o(e(Q)(e(We)(u, N), e(de))), 1)
942
948
  ])
943
949
  ])
944
950
  ])
945
951
  ])
946
952
  ])
947
953
  ]))), 128))
948
- ])) : c("", !0),
949
- e(be) ? (l(), r("table", Zn, [
954
+ ])) : d("", !0),
955
+ e(fe) ? (l(), r("table", Qn, [
950
956
  t("tbody", null, [
951
957
  (l(!0), r(I, null, M(e(E).products, ({ id: u, name: B, price: S, description: N }) => (l(), r("tr", { key: u }, [
952
- t("td", Qn, [
958
+ t("td", Jn, [
953
959
  t("b", null, [
954
- t("span", null, o(e(Oe)(B)), 1)
960
+ t("span", null, o(e(_e)(B)), 1)
955
961
  ]),
956
- N && N !== B ? (l(), r("span", Jn, o(e(Oe)(N)), 1)) : c("", !0),
957
- t("u", null, o(e(Z)(S, e(ue))), 1)
962
+ N && N !== B ? (l(), r("span", Kn, o(e(_e)(N)), 1)) : d("", !0),
963
+ t("u", null, o(e(Q)(S, e(de))), 1)
958
964
  ]),
959
- t("td", Kn, [
965
+ t("td", Xn, [
960
966
  b(le, {
961
967
  modelValue: e(v)[u],
962
968
  "onUpdate:modelValue": (A) => e(v)[u] = A,
@@ -966,43 +972,43 @@ const Jt = {
966
972
  ])
967
973
  ]))), 128))
968
974
  ])
969
- ])) : c("", !0)
975
+ ])) : d("", !0)
970
976
  ])
971
977
  ]),
972
978
  navigation: m(() => [
973
- b(me, {
979
+ b(pe, {
974
980
  label: e(a)("event.startReservation"),
975
- disabled: !e(Se),
981
+ disabled: !e(j),
976
982
  "full-width": "",
977
983
  onClickEvent: F
978
984
  }, null, 8, ["label", "disabled", "onClickEvent"])
979
985
  ]),
980
986
  _: 2
981
- }, 1032, ["prev-callback"])) : c("", !0)
987
+ }, 1032, ["prev-callback"])) : d("", !0)
982
988
  ]),
983
989
  reservation: m(({ next: F, prev: T }) => [
984
- b(De, {
990
+ b(Pe, {
985
991
  "show-terms-notice": !0,
986
992
  "show-gift-card": !0,
987
- "prev-callback": () => e(Ee)(T)
993
+ "prev-callback": () => e(Oe)(T)
988
994
  }, {
989
995
  form: m(() => [
990
- t("form", Xn, [
996
+ t("form", xn, [
991
997
  t("h2", null, [
992
998
  t("span", null, o(e(a)("booking.reservation.detailsTitle")), 1)
993
999
  ]),
994
- b(de, {
1000
+ b(ce, {
995
1001
  modelValue: e(h),
996
- "onUpdate:modelValue": d[0] || (d[0] = (u) => R(h) ? h.value = u : null),
1002
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => R(h) ? h.value = u : null),
997
1003
  type: "text",
998
1004
  label: e(a)("booking.reservation.name"),
999
1005
  icon: "user-alt",
1000
1006
  placeholder: e(a)("booking.reservation.namePlaceholder"),
1001
1007
  required: ""
1002
1008
  }, null, 8, ["modelValue", "label", "placeholder"]),
1003
- b(de, {
1009
+ b(ce, {
1004
1010
  modelValue: e(V),
1005
- "onUpdate:modelValue": d[1] || (d[1] = (u) => R(V) ? V.value = u : null),
1011
+ "onUpdate:modelValue": c[1] || (c[1] = (u) => R(V) ? V.value = u : null),
1006
1012
  label: e(a)("booking.reservation.email"),
1007
1013
  type: "email",
1008
1014
  name: "email",
@@ -1013,68 +1019,68 @@ const Jt = {
1013
1019
  }, null, 8, ["modelValue", "label", "placeholder"]),
1014
1020
  b(zt, {
1015
1021
  modelValue: e(s),
1016
- "onUpdate:modelValue": d[2] || (d[2] = (u) => R(s) ? s.value = u : null),
1022
+ "onUpdate:modelValue": c[2] || (c[2] = (u) => R(s) ? s.value = u : null),
1017
1023
  label: e(a)("booking.reservation.phone"),
1018
1024
  icon: "phone-office",
1019
1025
  placeholder: e(a)("booking.reservation.phonePlaceholder"),
1020
1026
  required: ""
1021
1027
  }, null, 8, ["modelValue", "label", "placeholder"]),
1022
- e(ee) ? (l(), p(Bt, {
1028
+ e(ue) ? (l(), p(Bt, {
1023
1029
  key: 0,
1024
1030
  modelValue: e(_),
1025
- "onUpdate:modelValue": d[3] || (d[3] = (u) => R(_) ? _.value = u : null),
1031
+ "onUpdate:modelValue": c[3] || (c[3] = (u) => R(_) ? _.value = u : null),
1026
1032
  label: e(a)("event.selectArrivalTime"),
1027
1033
  name: "eventTimeTable",
1028
1034
  checkboxes: Je.value,
1029
1035
  required: ""
1030
- }, null, 8, ["modelValue", "label", "checkboxes"])) : c("", !0),
1036
+ }, null, 8, ["modelValue", "label", "checkboxes"])) : d("", !0),
1031
1037
  e(ie) === e(Pt).FullDayEvent ? (l(), p(le, {
1032
1038
  key: 1,
1033
1039
  modelValue: e(f),
1034
- "onUpdate:modelValue": d[4] || (d[4] = (u) => R(f) ? f.value = u : null),
1040
+ "onUpdate:modelValue": c[4] || (c[4] = (u) => R(f) ? f.value = u : null),
1035
1041
  label: e(a)("event.numberOfDays"),
1036
1042
  "min-value": 1,
1037
1043
  required: ""
1038
- }, null, 8, ["modelValue", "label"])) : c("", !0),
1044
+ }, null, 8, ["modelValue", "label"])) : d("", !0),
1039
1045
  g.showHighChairs === "yes" ? (l(), p(le, {
1040
1046
  key: 2,
1041
1047
  modelValue: e(y),
1042
- "onUpdate:modelValue": d[5] || (d[5] = (u) => R(y) ? y.value = u : null),
1048
+ "onUpdate:modelValue": c[5] || (c[5] = (u) => R(y) ? y.value = u : null),
1043
1049
  label: e(a)("event.numberOfHighChairs"),
1044
1050
  icon: "baby",
1045
1051
  "no-optional-label": !1
1046
- }, null, 8, ["modelValue", "label"])) : c("", !0),
1047
- g.showFlagOnTable === "yes" ? (l(), p(Le, {
1052
+ }, null, 8, ["modelValue", "label"])) : d("", !0),
1053
+ g.showFlagOnTable === "yes" ? (l(), p(Ce, {
1048
1054
  key: 3,
1049
1055
  modelValue: e(i),
1050
- "onUpdate:modelValue": d[6] || (d[6] = (u) => R(i) ? i.value = u : null),
1056
+ "onUpdate:modelValue": c[6] || (c[6] = (u) => R(i) ? i.value = u : null),
1051
1057
  label: e(a)("event.flagOnTable")
1052
- }, null, 8, ["modelValue", "label"])) : c("", !0),
1053
- g.hideRemarks !== "yes" ? (l(), p(de, {
1058
+ }, null, 8, ["modelValue", "label"])) : d("", !0),
1059
+ g.hideRemarks !== "yes" ? (l(), p(ce, {
1054
1060
  key: 4,
1055
1061
  modelValue: e($),
1056
- "onUpdate:modelValue": d[7] || (d[7] = (u) => R($) ? $.value = u : null),
1062
+ "onUpdate:modelValue": c[7] || (c[7] = (u) => R($) ? $.value = u : null),
1057
1063
  type: "textarea",
1058
1064
  label: e(a)("booking.reservation.remark"),
1059
1065
  icon: "info-circle",
1060
1066
  placeholder: e(a)("booking.reservation.remarkPlaceholder")
1061
- }, null, 8, ["modelValue", "label", "placeholder"])) : c("", !0),
1062
- g.hideAllergies !== "yes" ? (l(), p(de, {
1067
+ }, null, 8, ["modelValue", "label", "placeholder"])) : d("", !0),
1068
+ g.hideAllergies !== "yes" ? (l(), p(ce, {
1063
1069
  key: 5,
1064
1070
  modelValue: e(C),
1065
- "onUpdate:modelValue": d[8] || (d[8] = (u) => R(C) ? C.value = u : null),
1071
+ "onUpdate:modelValue": c[8] || (c[8] = (u) => R(C) ? C.value = u : null),
1066
1072
  type: "textarea",
1067
1073
  label: e(a)("booking.reservation.allergies"),
1068
1074
  icon: "allergies",
1069
1075
  placeholder: e(a)("booking.reservation.allergiesPlaceholder")
1070
- }, null, 8, ["modelValue", "label", "placeholder"])) : c("", !0)
1076
+ }, null, 8, ["modelValue", "label", "placeholder"])) : d("", !0)
1071
1077
  ])
1072
1078
  ]),
1073
1079
  navigation: m(() => [
1074
- b(me, {
1080
+ b(pe, {
1075
1081
  label: e(a)("general.confirmReservation"),
1076
- "is-loading": e(re),
1077
- disabled: !e(j),
1082
+ "is-loading": e(ee),
1083
+ disabled: !e(H),
1078
1084
  "full-width": "",
1079
1085
  onClickEvent: (u) => e(Ye)(F)
1080
1086
  }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"])
@@ -1097,7 +1103,7 @@ const Jt = {
1097
1103
  }, 8, ["access-token", "callback"])
1098
1104
  ]),
1099
1105
  fallback: m(() => [
1100
- b(Bn)
1106
+ b(An)
1101
1107
  ]),
1102
1108
  _: 1
1103
1109
  }))
@@ -1105,8 +1111,8 @@ const Jt = {
1105
1111
  _: 1
1106
1112
  }, 8, ["styling"]));
1107
1113
  }
1108
- }), Ce = /* @__PURE__ */ Y(xn, [["__scopeId", "data-v-55115e88"]]), ea = dt(), ta = ct, na = ta();
1109
- class aa extends HTMLElement {
1114
+ }), Be = /* @__PURE__ */ q(ea, [["__scopeId", "data-v-55115e88"]]), ta = dt(), na = ct, aa = na();
1115
+ class la extends HTMLElement {
1110
1116
  vueApp;
1111
1117
  constructor() {
1112
1118
  super();
@@ -1115,14 +1121,14 @@ class aa extends HTMLElement {
1115
1121
  this.vueApp.unmount();
1116
1122
  }
1117
1123
  connectedCallback() {
1118
- const n = mt(Ce, this.attributes);
1119
- this.vueApp = pt(Ce, n), this.vueApp.provide("emitter", na), this.vueApp.use(vt), this.vueApp.use(ea), this.vueApp.use(At), this.vueApp.use(bt), this.vueApp.use(It);
1124
+ const n = mt(Be, this.attributes);
1125
+ this.vueApp = pt(Be, n), this.vueApp.provide("emitter", aa), this.vueApp.use(vt), this.vueApp.use(ta), this.vueApp.use(At), this.vueApp.use(bt), this.vueApp.use(It);
1120
1126
  const a = document.createElement("div");
1121
1127
  this.vueApp.mount(a), this.appendChild(a.children[0]);
1122
1128
  }
1123
1129
  }
1124
- window.customElements.define("konnectio-event", aa);
1130
+ window.customElements.define("konnectio-event", la);
1125
1131
  export {
1126
- aa as default
1132
+ la as default
1127
1133
  };
1128
1134
  //# sourceMappingURL=event.js.map