@konnectio/core 4.0.113 → 4.0.115

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