@konnectio/core 4.0.87 → 4.0.88

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