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