@konnectio/core 4.0.99 → 4.0.101

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