@konnectio/core 4.1.17 → 4.1.19

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