@konnectio/core 4.0.112 → 4.0.114

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-DI-ULm-r.js → ActionField-BVSpHeoR.js} +2 -2
  2. package/dist/ActionField-BVSpHeoR.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-Csh8QvFZ.js → AvailabilitySkeleton--jFFtmy6.js} +5 -5
  4. package/dist/AvailabilitySkeleton--jFFtmy6.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-D9SBqWhY.js +8753 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-D9SBqWhY.js.br +0 -0
  7. package/dist/{CheckoutWindow-BFskX4U1.js → CheckoutWindow-CYZ4mSP9.js} +4 -3
  8. package/dist/CheckoutWindow-CYZ4mSP9.js.br +0 -0
  9. package/dist/{ErrorMessage-mG19dj2Y.js → ErrorMessage-B_Nib6xY.js} +2 -2
  10. package/dist/ErrorMessage-B_Nib6xY.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CmjbkSat.js → EventAvailabilityForm-B0jnoFr6.js} +3 -3
  12. package/dist/EventAvailabilityForm-B0jnoFr6.js.br +0 -0
  13. package/dist/{Field-ChVeeJd5.js → Field-BGCLjjKK.js} +4 -4
  14. package/dist/Field-BGCLjjKK.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CMX2Ln2H.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CkiUU8Ab.js} +2 -2
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-D00K1N6y.js → SelectField.vue_vue_type_style_index_0_lang-CKZAx_Wg.js} +5 -4
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-CKZAx_Wg.js.br +0 -0
  18. package/dist/{TermsOfService-TupcHiBZ.js → TermsOfService-C5LJyrwS.js} +3 -3
  19. package/dist/_-Cp56btIY.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-C_bebiDH.js → _.vue_vue_type_style_index_0_lang-D4RoVNFh.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 +437 -507
  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-CLuzEQsh.js → giftCard-DSUOT3m1.js} +2 -2
  32. package/dist/giftCard-DSUOT3m1.js.br +0 -0
  33. package/dist/hotel.js +405 -404
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-3hI9OVJR.js → masonry.plugin-BkkycOIw.js} +8 -8
  36. package/dist/masonry.plugin-BkkycOIw.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 +15 -15
  42. package/dist/ActionField-DI-ULm-r.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-Csh8QvFZ.js.br +0 -0
  44. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-B8esbsyA.js +0 -9062
  45. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-B8esbsyA.js.br +0 -0
  46. package/dist/CheckoutWindow-BFskX4U1.js.br +0 -0
  47. package/dist/ErrorMessage-mG19dj2Y.js.br +0 -0
  48. package/dist/EventAvailabilityForm-CmjbkSat.js.br +0 -0
  49. package/dist/Field-ChVeeJd5.js.br +0 -0
  50. package/dist/SelectField.vue_vue_type_style_index_0_lang-D00K1N6y.js.br +0 -0
  51. package/dist/_-DZP0EO5k.js +0 -5
  52. package/dist/giftCard-CLuzEQsh.js.br +0 -0
  53. package/dist/masonry.plugin-3hI9OVJR.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,127 +1,51 @@
1
- import { d as j, u as le, s as z, r as Xe, c as J, a, b as E, 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 _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 oe, l as rt, s as U, d as fe, B as ut, _ as ae, g as ye, I as be, h as dt, i as ge, j as H, u as Pe, 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-D00K1N6y.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 Y } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-B8esbsyA.js";
5
- import { _ as Pt } from "./_.vue_vue_type_style_index_0_lang-C_bebiDH.js";
6
- import { B as Dt, _ as Et, R as Vt, L as Se, S as $t, M as wt, C as Tt, T as Nt, V as Ot, a as Ft } from "./masonry.plugin-3hI9OVJR.js";
7
- import { C as St, P as Mt, a as Bt } from "./CheckoutWindow-BFskX4U1.js";
8
- import { E as Ct } from "./EventAvailabilityForm-CmjbkSat.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CMX2Ln2H.js";
10
- const Ee = 6e4, Ve = 525600, $e = 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-CKZAx_Wg.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-D9SBqWhY.js";
5
+ import { _ as kt } from "./_.vue_vue_type_style_index_0_lang-D4RoVNFh.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-BkkycOIw.js";
7
+ import { C as wt, P as Ot, a as Tt } from "./CheckoutWindow-CYZ4mSP9.js";
8
+ import { E as Bt } from "./EventAvailabilityForm-B0jnoFr6.js";
9
+ import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CkiUU8Ab.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, _] = Lt(
22
+ comparison: u
23
+ }), [N, y] = ft(
100
24
  n?.in,
101
- ...d > 0 ? [o, s] : [s, o]
102
- ), V = Yt(n?.roundingMethod ?? "round"), T = _.getTime() - w.getTime(), P = T / Ee, y = Ne(_) - Ne(w), $ = (T - y) / Ee, B = n?.unit;
103
- let g;
104
- if (B ? g = B : P < 1 ? g = "second" : P < 60 ? g = "minute" : P < we ? g = "hour" : $ < $e ? g = "day" : $ < Ve ? g = "month" : g = "year", g === "second") {
105
- const i = V(T / 1e3);
106
- return b.formatDistance("xSeconds", i, k);
107
- } else if (g === "minute") {
108
- const i = V(P);
109
- return b.formatDistance("xMinutes", i, k);
110
- } else if (g === "hour") {
111
- const i = V(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($ / $e);
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($ / Ve);
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__ */ j({
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 } = le(), 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,
153
- tableGroupId: _
154
- } = z(Y()), {
76
+ currentEventDate: N,
77
+ tableGroupId: y
78
+ } = z(j()), {
155
79
  getTemplateAvailability: V,
156
- getEventAvailability: T,
80
+ getEventAvailability: w,
157
81
  isEventListingLoading: P
158
- } = Y(), y = Xe(0), $ = J(() => P(n.listingId)), B = () => {
159
- if (!n.useNumberOfProductsForPersons && (y.value === 0 || isNaN(y.value))) {
160
- m({
82
+ } = j(), h = We(0), E = X(() => P(n.listingId)), C = () => {
83
+ if (!n.useNumberOfProductsForPersons && (h.value === 0 || isNaN(h.value))) {
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 : y.value, V(n.callback);
167
- }, g = () => {
168
- if (!n.useNumberOfProductsForPersons && (y.value === 0 || isNaN(y.value))) {
169
- m({
90
+ k.value = n.listingId, u.value = n.useNumberOfProductsForPersons ? NaN : h.value, V(n.callback);
91
+ }, f = () => {
92
+ if (!n.useNumberOfProductsForPersons && (h.value === 0 || isNaN(h.value))) {
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, _.value = n.tableGroupId, d.value = n.useNumberOfProductsForPersons ? NaN : y.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
- ne(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(oe, {
121
+ s.useNumberOfProductsForPersons ? m("", !0) : (o(), D(ae, {
198
122
  key: 0,
199
- modelValue: y.value,
200
- "onUpdate:modelValue": M[0] || (M[0] = (C) => y.value = C),
201
- label: e(o)("event.numberOfGuests"),
123
+ modelValue: h.value,
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": $.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__ */ ae(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__ */ j({
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 } = le(), { hideEventLength: m } = z(ye()), b = J(() => {
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__ */ ae(Xt, [["__scopeId", "data-v-fe4489ed"]]), en = /* @__PURE__ */ j({
227
+ }), Ut = /* @__PURE__ */ Z(Mt, [["__scopeId", "data-v-fe4489ed"]]), zt = /* @__PURE__ */ Q({
304
228
  __name: "Template",
305
229
  props: {
306
230
  name: {},
@@ -316,167 +240,173 @@ const Jt = {
316
240
  trackingEnabled: { type: Boolean },
317
241
  callback: {}
318
242
  },
319
- setup(s) {
320
- const o = s, n = J(() => {
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 }, ve = /* @__PURE__ */ j({
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 = {
265
+ key: 0,
266
+ class: "konnectio-capitalize"
267
+ }, Xt = /* @__PURE__ */ Q({
341
268
  __name: "EventReservationForm",
342
269
  props: {
343
270
  showGiftCard: { type: Boolean, default: !1 },
344
271
  showTermsNotice: { type: Boolean, default: !1 },
345
272
  prevCallback: {}
346
273
  },
347
- setup(s) {
348
- const { t: o } = le(), n = et(), {
349
- areListingsAvailable: m,
274
+ setup(g) {
275
+ const { t: a } = se(), n = Ke(), {
276
+ areListingsAvailable: p,
350
277
  arrivalTime: b,
351
- numberOfPeople: d,
278
+ numberOfPeople: u,
352
279
  numberOfRooms: k,
353
- numberOfTotalDays: w,
354
- isTemplateEvent: _,
280
+ numberOfTotalDays: N,
281
+ isTemplateEvent: y,
355
282
  currentEventDate: V,
356
- length: T,
283
+ length: w,
357
284
  fromDate: P,
358
- tableBasePrice: y,
359
- getTemplateData: $,
360
- basePrice: B,
361
- totalPrice: g,
362
- weekendFee: i,
363
- roomUpgrade: M,
364
- discountCode: C,
365
- totalSelectedProducts: se
366
- } = z(Y()), { totalAddonPrice: ie, validateDiscountCode: re } = Y(), { currency: K, hideEventLength: ue } = z(ye());
367
- return (I, X) => (a(), E(Vt, {
368
- "discount-code": e(C),
369
- "onUpdate:discountCode": X[0] || (X[0] = (G) => R(C) ? C.value = G : null),
285
+ tableBasePrice: h,
286
+ getTemplateData: E,
287
+ basePrice: C,
288
+ totalPrice: f,
289
+ weekendFee: s,
290
+ roomUpgrade: A,
291
+ discountCode: F,
292
+ totalSelectedProducts: G
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),
370
297
  "validate-discount-code": e(re),
371
- "show-gift-card": I.showGiftCard,
372
- "show-terms-notice": I.showTermsNotice,
373
- "is-sidebar-loading": !e(m),
374
- "base-price": e(B),
375
- "total-price": e(g),
376
- "weekend-fee": e(i),
377
- "room-upgrade": e(M),
378
- notice: e(o)("event.reservationNotice"),
379
- "prev-callback": I.prevCallback
380
- }, tt({
381
- form: p(() => [
382
- ne(I.$slots, "form")
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)
383
310
  ]),
384
- "reservation-summary": p(() => [
385
- e(_) ? v("", !0) : (a(), c("li", tn, [
386
- t("span", null, l(e(o)("general.date")), 1),
311
+ "reservation-summary": c(() => [
312
+ e(y) ? m("", !0) : (o(), d("li", Gt, [
313
+ t("span", null, l(e(a)("general.date")), 1),
387
314
  t("b", null, l(e(U)(e(V))), 1)
388
315
  ])),
389
- e(d) > 0 ? (a(), c("li", nn, [
390
- t("span", null, l(e(o)("event.numberOfGuests")), 1),
391
- t("b", null, l(e(d)), 1)
392
- ])) : v("", !0),
393
- e(_) ? v("", !0) : (a(), c("li", on, [
394
- t("span", null, l(e(o)("event.numberOfProducts")), 1),
395
- t("b", null, l(e(se)), 1)
396
- ])),
397
- e(_) ? (a(), c(A, { key: 3 }, [
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),
322
+ t("b", null, l(e(G)), 1)
323
+ ])) : m("", !0),
324
+ e(y) ? (o(), d(L, { key: 3 }, [
398
325
  t("li", null, [
399
- t("span", null, l(e(o)("booking.reservation.arrival")), 1),
326
+ t("span", null, l(e(a)("booking.reservation.arrival")), 1),
400
327
  t("b", null, l(e(U)(e(P))), 1)
401
328
  ]),
402
329
  t("li", null, [
403
- t("span", null, l(e(o)("booking.reservation.departure")), 1),
404
- 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)
405
332
  ]),
406
333
  t("li", null, [
407
- t("span", null, l(e(o)("event.numberOfRooms")), 1),
334
+ t("span", null, l(e(a)("event.numberOfRooms")), 1),
408
335
  t("b", null, l(e(k)), 1)
409
336
  ]),
410
337
  t("li", null, [
411
- t("span", null, l(e(o)("event.numberOfDays")), 1),
412
- 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)
413
340
  ])
414
- ], 64)) : v("", !0),
415
- !e(_) && e(b) ? (a(), c("li", ln, [
416
- t("span", null, l(e(o)("event.startOfEvent")), 1),
417
- t("b", null, l(e(ge)(e(b))), 1)
418
- ])) : v("", !0),
419
- !e(_) && e(T) && !e(ue) ? (a(), c("li", an, [
420
- t("span", null, l(e(o)("event.lengthOfEvent")), 1),
421
- t("b", null, l(e(ge)(e(T))), 1)
422
- ])) : 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)
423
350
  ]),
424
- "price-summary": p(() => [
425
- !e(_) && e(y) > 0 ? (a(), c("li", sn, [
426
- t("span", null, l(e(o)("booking.availability.basePrice")), 1),
427
- t("b", null, l(e(H)(e(y), e(K))), 1)
428
- ])) : v("", !0),
429
- e($) ? (a(!0), c(A, { key: 1 }, q(e($), ({ roomGroupId: G }, Z) => (a(), c("li", { key: G }, [
430
- t("span", null, l(e(o)("booking.reservation.addons")) + " - " + l(e(o)("booking.reservation.room")) + " #" + l(Z + 1), 1),
431
- t("b", null, l(e(H)(e(ie)(G, Z), e(K))), 1)
432
- ]))), 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)
433
360
  ]),
434
- navigation: p(() => [
435
- ne(I.$slots, "navigation")
361
+ navigation: c(() => [
362
+ oe(R.$slots, "navigation", {}, void 0, !0)
436
363
  ]),
437
- "mobile-under-price": p(() => [
438
- e(_) ? (a(), c("div", rn, [
439
- t("span", null, l(e(U)(e(P))) + " - " + l(e(U)(e(P), e(w))), 1)
440
- ])) : (a(), c("div", un, [
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, [
441
368
  t("span", null, l(e(U)(e(V))), 1)
442
369
  ]))
443
370
  ]),
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)
373
+ ]),
444
374
  _: 2
445
375
  }, [
446
376
  e(n).sidebar ? {
447
377
  name: "sidebar",
448
- fn: p(() => [
449
- ne(I.$slots, "sidebar")
378
+ fn: c(() => [
379
+ oe(R.$slots, "sidebar", {}, void 0, !0)
450
380
  ]),
451
381
  key: "0"
452
382
  } : void 0
453
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"]));
454
384
  }
455
- }), dn = { class: "event-skeleton" }, cn = { class: "event-skeleton-content" }, mn = { class: "event-skeleton-sidebar" }, pn = /* @__PURE__ */ j({
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({
456
386
  __name: "EventSkeleton",
457
- setup(s) {
458
- return (o, n) => (a(), c("div", dn, [
459
- t("div", cn, [
460
- f(Se)
387
+ setup(g) {
388
+ return (a, n) => (o(), d("div", Zt, [
389
+ t("div", xt, [
390
+ v(Oe)
461
391
  ]),
462
- t("div", mn, [
463
- v("", !0),
464
- f($t)
392
+ t("div", en, [
393
+ m("", !0),
394
+ v(Pt)
465
395
  ])
466
396
  ]));
467
397
  }
468
- }), vn = /* @__PURE__ */ ae(pn, [["__scopeId", "data-v-3e15c4e3"]]), fn = {
398
+ }), nn = /* @__PURE__ */ Z(tn, [["__scopeId", "data-v-3e15c4e3"]]), ln = {
469
399
  key: 0,
470
400
  id: "konnectio-event-listings-wrapper"
471
401
  };
472
- const bn = { class: "konnectio-event-listings" };
473
- const gn = { class: "konnectio-event-listings" }, kn = ["innerHTML"], yn = { class: "konnectio-panel" }, hn = {
402
+ const on = { class: "konnectio-event-listings" };
403
+ const an = { class: "konnectio-event-listings" }, sn = ["innerHTML"], rn = { class: "konnectio-panel" }, un = {
474
404
  key: 0,
475
405
  id: "konnectio-event-addons"
476
- }, _n = { class: "konnectio-table with-lines" }, Pn = { class: "konnectio-event-addons-price" }, Dn = { class: "konnectio-event-addons-input" }, En = { class: "konnectio-event-addons-price" }, Vn = { class: "konnectio-event-addons-price" }, $n = {
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 = {
477
407
  key: 1,
478
408
  class: "konnectio-table with-lines"
479
- }, wn = { class: "konnectio-table-addons-information" }, Tn = { key: 0 }, Nn = { class: "konnectio-table-addons-option" }, On = { class: "konnectio-panel" }, Fn = /* @__PURE__ */ j({
409
+ }, fn = { class: "konnectio-table-addons-information" }, gn = { key: 0 }, kn = { class: "konnectio-table-addons-option" }, yn = { class: "konnectio-panel" }, hn = /* @__PURE__ */ Q({
480
410
  name: "EventLayout",
481
411
  __name: "Event",
482
412
  props: {
@@ -486,42 +416,42 @@ const gn = { class: "konnectio-event-listings" }, kn = ["innerHTML"], yn = { cla
486
416
  resetDate: { default: "no" },
487
417
  styling: {}
488
418
  },
489
- setup(s) {
490
- const o = s, { t: n } = le(), {
491
- addons: m,
419
+ setup(g) {
420
+ const a = g, { t: n } = se(), {
421
+ addons: p,
492
422
  products: b,
493
- numberOfDays: d,
423
+ numberOfDays: u,
494
424
  name: k,
495
- phone: w,
496
- email: _,
425
+ phone: N,
426
+ email: y,
497
427
  remark: V,
498
- allergies: T,
428
+ allergies: w,
499
429
  arrivalTime: P,
500
- hasEvents: y,
501
- hasTemplates: $,
502
- getEvents: B,
503
- getTemplates: g,
504
- getEventData: i,
505
- getTemplateData: M,
506
- getEventTableData: C,
507
- hasProducts: se,
430
+ hasEvents: h,
431
+ hasTemplates: E,
432
+ getEvents: C,
433
+ getTemplates: f,
434
+ getEventData: s,
435
+ getTemplateData: A,
436
+ getEventTableData: F,
437
+ hasProducts: G,
508
438
  eventRateType: ie,
509
439
  areListingsAvailable: re,
510
- isAvailabilityDataAvailable: K,
440
+ isAvailabilityDataAvailable: x,
511
441
  hasListingData: ue,
512
- isPaymentLoading: I,
513
- isReservationFormFilled: X,
514
- requiresArrivalTime: G,
515
- hasSelectedRequiredProducts: Z
516
- } = z(Y()), { currency: ee } = z(ye()), { eventDate: Ce, eventLocation: Le } = z(Pe()), { isValidRestaurantId: Ae } = Pe(), {
517
- initialize: Ie,
518
- fetchListings: Re,
519
- createBooking: Ue,
520
- localAddonPrice: ze,
521
- totalAddonPrice: Ge,
522
- reset: qe,
523
- goBack: he
524
- } = Y(), { display: de } = Fe(), He = J(() => [
442
+ isPaymentLoading: R,
443
+ isReservationFormFilled: ee,
444
+ requiresArrivalTime: q,
445
+ hasSelectedRequiredProducts: te
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(() => [
525
455
  {
526
456
  id: "availability",
527
457
  label: n("booking.availability.title"),
@@ -547,26 +477,26 @@ const gn = { class: "konnectio-event-listings" }, kn = ["innerHTML"], yn = { cla
547
477
  label: n("booking.confirmation.title"),
548
478
  icon: "calendar-check"
549
479
  }
550
- ]), Ye = J(() => {
551
- const D = [];
552
- return C.value && C.value.forEach((u) => {
553
- D.find((N) => N.value === u.time) || D.push({
554
- label: ge(u.time),
555
- 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
556
486
  });
557
- }), D;
487
+ }), $;
558
488
  });
559
- function je() {
560
- qe(o.resetDate === "yes");
489
+ function Ge() {
490
+ Me(a.resetDate === "yes");
561
491
  }
562
- function We() {
563
- const D = vt("history", {
492
+ function qe() {
493
+ const $ = dt("history", {
564
494
  removeNullishValues: !0
565
- }), u = parseInt(D.rid), N = D.d, O = parseInt(D.eid);
566
- if (N)
567
- if (ft(N)) {
568
- const S = new Date(N), L = S.setHours(12, 0, 0, 0), h = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
569
- L >= h ? (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({
570
500
  message: n("alert.error.invalidDateRange"),
571
501
  type: "error"
572
502
  });
@@ -575,254 +505,254 @@ const gn = { class: "konnectio-event-listings" }, kn = ["innerHTML"], yn = { cla
575
505
  message: n("alert.error.wrongDateFormat"),
576
506
  type: "error"
577
507
  });
578
- isNaN(u) || (Ae(u) ? Le.value = u : de({
508
+ isNaN(r) || (Ae(r) ? Se.value = r : de({
579
509
  message: n("alert.error.hotelIdNotFound"),
580
510
  type: "error"
581
511
  }));
582
- let r;
583
- isNaN(O) || (r = O), Re(r);
512
+ let i;
513
+ isNaN(T) || (i = T), Fe(i);
584
514
  }
585
- return (D, u) => (a(), E(pt, { styling: D.styling }, {
586
- default: p(() => [
587
- (a(), E(nt, { onResolve: We }, {
588
- default: p(() => [
589
- 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, {
590
520
  id: "konnectio-event-module",
591
- "access-token": D.accessToken,
592
- callback: e(Ie)
521
+ "access-token": $.accessToken,
522
+ callback: e(Ce)
593
523
  }, {
594
- default: p(() => [
595
- f(wt, {
596
- steps: He.value,
597
- onReset: je
524
+ default: c(() => [
525
+ v($t, {
526
+ steps: Ue.value,
527
+ onReset: Ge
598
528
  }, {
599
- availability: p(({ next: N }) => [
600
- f(ve, null, {
601
- sidebar: p(() => [
602
- f(Ct, {
529
+ availability: c(({ next: O }) => [
530
+ v(pe, null, {
531
+ sidebar: c(() => [
532
+ v(Bt, {
603
533
  redirection: !1,
604
- "selected-location": Number(D.selectedLocation)
534
+ "selected-location": Number($.selectedLocation)
605
535
  }, null, 8, ["selected-location"])
606
536
  ]),
607
- form: p(() => [
608
- e(ue) && e(re) ? (a(), c("div", fn, [
609
- e(y) && D.onlyShow !== "templates" ? (a(), c(A, { key: 0 }, [
610
- v("", !0),
611
- t("ul", bn, [
612
- (a(!0), c(A, null, q(e(B), ({
613
- id: O,
614
- 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,
615
545
  name: S,
616
- timeFrom: L,
617
- timeTo: h,
618
- fromDate: F,
546
+ timeFrom: I,
547
+ timeTo: _,
548
+ fromDate: B,
619
549
  toDate: W,
620
- tableGroupId: Q,
550
+ tableGroupId: J,
621
551
  description: ce,
622
552
  soldOut: me,
623
- length: x,
624
- images: Qe,
625
- maxOnlineReservationLimit: xe,
626
- maxPaxPerReservation: Je,
627
- useNumberOfProductsForPersons: Ke
628
- }) => (a(), E(Zt, {
629
- key: O,
553
+ length: K,
554
+ images: He,
555
+ maxOnlineReservationLimit: Ye,
556
+ maxPaxPerReservation: je,
557
+ useNumberOfProductsForPersons: Qe
558
+ }) => (o(), D(Ut, {
559
+ key: T,
630
560
  type: "event",
631
- "listing-id": O,
632
- "table-group-id": Q,
561
+ "listing-id": T,
562
+ "table-group-id": J,
633
563
  description: ce,
634
564
  name: S,
635
- length: x,
636
- gallery: Qe,
637
- days: r,
638
- "from-date": F,
565
+ length: K,
566
+ gallery: He,
567
+ days: i,
568
+ "from-date": B,
639
569
  "to-date": W,
640
- "max-online-reservation-limit": Je || xe,
641
- "time-from": L,
642
- "time-to": h,
570
+ "max-online-reservation-limit": je || Ye,
571
+ "time-from": I,
572
+ "time-to": _,
643
573
  "sold-out": me,
644
- "use-number-of-products-for-persons": Ke,
645
- callback: N
574
+ "use-number-of-products-for-persons": Qe,
575
+ callback: O
646
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))
647
577
  ])
648
- ], 64)) : v("", !0),
649
- e($) && D.onlyShow !== "events" ? (a(), c(A, { key: 1 }, [
650
- v("", !0),
651
- t("ul", gn, [
652
- (a(!0), c(A, null, q(e(g), ({
653
- id: O,
654
- 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,
655
585
  fromDate: S,
656
- toDate: L,
657
- minimumPersonCount: h,
658
- fromPrice: F,
586
+ toDate: I,
587
+ minimumPersonCount: _,
588
+ fromPrice: B,
659
589
  description: W,
660
- imageUrl: Q
661
- }) => (a(), E(en, {
662
- key: O,
663
- "listing-id": O,
664
- name: r,
665
- image: Q,
590
+ imageUrl: J
591
+ }) => (o(), D(zt, {
592
+ key: T,
593
+ "listing-id": T,
594
+ name: i,
595
+ image: J,
666
596
  description: W,
667
597
  "from-date": S,
668
- "to-date": L,
669
- "minimum-person-count": h,
670
- fromPrice: F,
671
- callback: N
598
+ "to-date": I,
599
+ "minimum-person-count": _,
600
+ fromPrice: B,
601
+ callback: O
672
602
  }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
673
603
  ])
674
- ], 64)) : v("", !0),
675
- !e(y) && !e($) || !e(y) && D.onlyShow === "events" || !e($) && 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", {
676
606
  key: 2,
677
607
  class: "konnectio-panel",
678
608
  innerHTML: e(n)("event.nothingAvailable")
679
- }, null, 8, kn)) : v("", !0)
680
- ])) : (a(), E(Se, { key: 1 }))
609
+ }, null, 8, sn)) : m("", !0)
610
+ ])) : (o(), D(Oe, { key: 1 }))
681
611
  ]),
682
612
  _: 2
683
613
  }, 1024)
684
614
  ]),
685
- addons: p(({ next: N, prev: O }) => [
686
- e(K) ? (a(), E(ve, {
615
+ addons: c(({ next: O, prev: T }) => [
616
+ e(x) ? (o(), D(pe, {
687
617
  key: 0,
688
- "prev-callback": () => e(he)(O)
618
+ "prev-callback": () => e(ke)(T)
689
619
  }, {
690
- form: p(() => [
691
- t("form", yn, [
620
+ form: c(() => [
621
+ t("form", rn, [
692
622
  t("h2", null, [
693
623
  t("span", null, l(e(n)("event.selectProducts")), 1)
694
624
  ]),
695
- e(M) && e(M).length > 0 ? (a(), c("ul", hn, [
696
- (a(!0), c(A, null, q(e(M), ({
697
- 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,
698
628
  addons: S,
699
- adultPerRoom: L
700
- }, h) => (a(), c("li", { key: r }, [
629
+ adultPerRoom: I
630
+ }, _) => (o(), d("li", { key: i }, [
701
631
  t("h5", null, [
702
- t("span", null, l(e(n)("booking.reservation.room")) + " #" + l(h + 1), 1),
703
- u[7] || (u[7] = _e(" (")),
704
- f(be, {
632
+ t("span", null, l(e(n)("booking.reservation.room")) + " #" + l(_ + 1), 1),
633
+ r[7] || (r[7] = ye(" (")),
634
+ v(be, {
705
635
  icon: "male",
706
636
  type: "fas",
707
637
  color: "header"
708
638
  }),
709
- _e(" " + l(L) + ") ", 1)
639
+ ye(" " + l(I) + ") ", 1)
710
640
  ]),
711
- t("table", _n, [
641
+ t("table", dn, [
712
642
  t("thead", null, [
713
643
  t("tr", null, [
714
644
  t("th", null, [
715
645
  t("span", null, l(e(n)("booking.reservation.addons")), 1)
716
646
  ]),
717
- u[8] || (u[8] = t("th", { class: "konnectio-event-addons-input" }, null, -1)),
718
- t("th", Pn, [
647
+ r[8] || (r[8] = t("th", { class: "konnectio-event-addons-input" }, null, -1)),
648
+ t("th", cn, [
719
649
  t("span", null, l(e(n)("booking.availability.price")), 1)
720
650
  ])
721
651
  ])
722
652
  ]),
723
653
  t("tbody", null, [
724
- (a(!0), c(A, null, q(S, ({
725
- id: F,
654
+ (o(!0), d(L, null, H(S, ({
655
+ id: B,
726
656
  cardinality: W,
727
- name: Q,
657
+ name: J,
728
658
  price: ce,
729
659
  quantityStrategy: me
730
- }) => (a(), c("tr", { key: F }, [
660
+ }) => (o(), d("tr", { key: B }, [
731
661
  t("td", null, [
732
- t("b", null, l(Q), 1),
733
- u[9] || (u[9] = t("br", null, null, -1)),
734
- t("span", null, l(e(H)(ce, e(ee))) + " " + 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)
735
665
  ]),
736
- t("td", Dn, [
737
- W === 3 ? (a(), E(oe, {
666
+ t("td", mn, [
667
+ W === 3 ? (o(), D(ae, {
738
668
  key: 0,
739
- modelValue: e(m)[`${r}.${F}.${h}`],
740
- "onUpdate:modelValue": (x) => e(m)[`${r}.${F}.${h}`] = x,
669
+ modelValue: e(p)[`${i}.${B}.${_}`],
670
+ "onUpdate:modelValue": (K) => e(p)[`${i}.${B}.${_}`] = K,
741
671
  small: !0,
742
672
  "min-value": 0
743
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), E(St, {
673
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (o(), D(wt, {
744
674
  key: 1,
745
- modelValue: e(m)[`${r}.${F}.${h}`],
746
- "onUpdate:modelValue": (x) => e(m)[`${r}.${F}.${h}`] = x,
675
+ modelValue: e(p)[`${i}.${B}.${_}`],
676
+ "onUpdate:modelValue": (K) => e(p)[`${i}.${B}.${_}`] = K,
747
677
  numeric: !0
748
678
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
749
679
  ]),
750
- t("td", En, [
751
- t("span", null, l(e(H)(e(ze)(F, r, h), e(ee))), 1)
680
+ t("td", pn, [
681
+ t("span", null, l(e(Y)(e(Le)(B, i, _), e(ne))), 1)
752
682
  ])
753
683
  ]))), 128))
754
684
  ]),
755
685
  t("tfoot", null, [
756
686
  t("tr", null, [
757
- u[10] || (u[10] = t("td", null, null, -1)),
758
- u[11] || (u[11] = t("td", null, null, -1)),
759
- t("td", Vn, [
687
+ r[10] || (r[10] = t("td", null, null, -1)),
688
+ r[11] || (r[11] = t("td", null, null, -1)),
689
+ t("td", vn, [
760
690
  t("u", null, [
761
- t("span", null, l(e(H)(e(Ge)(r, h), e(ee))), 1)
691
+ t("span", null, l(e(Y)(e(Re)(i, _), e(ne))), 1)
762
692
  ])
763
693
  ])
764
694
  ])
765
695
  ])
766
696
  ])
767
697
  ]))), 128))
768
- ])) : v("", !0),
769
- e(se) ? (a(), c("table", $n, [
698
+ ])) : m("", !0),
699
+ e(G) ? (o(), d("table", bn, [
770
700
  t("tbody", null, [
771
- (a(!0), c(A, null, q(e(i).products, ({ id: r, name: S, price: L, description: h }) => (a(), c("tr", { key: r }, [
772
- t("td", wn, [
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, [
773
703
  t("b", null, [
774
- t("span", null, l(e(De)(S)), 1)
704
+ t("span", null, l(e(_e)(S)), 1)
775
705
  ]),
776
- h && h !== S ? (a(), c("span", Tn, l(e(De)(h)), 1)) : v("", !0),
777
- t("span", null, l(e(H)(L, e(ee))), 1)
706
+ _ && _ !== S ? (o(), d("span", gn, l(e(_e)(_)), 1)) : m("", !0),
707
+ t("u", null, l(e(Y)(I, e(ne))), 1)
778
708
  ]),
779
- t("td", Nn, [
780
- f(oe, {
781
- modelValue: e(b)[r],
782
- "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,
783
713
  small: !0,
784
714
  "min-value": 0
785
715
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
786
716
  ])
787
717
  ]))), 128))
788
718
  ])
789
- ])) : v("", !0)
719
+ ])) : m("", !0)
790
720
  ])
791
721
  ]),
792
- navigation: p(() => [
793
- f(fe, {
722
+ navigation: c(() => [
723
+ v(ve, {
794
724
  label: e(n)("event.startReservation"),
795
- disabled: !e(Z),
725
+ disabled: !e(te),
796
726
  "full-width": "",
797
- onClickEvent: N
727
+ onClickEvent: O
798
728
  }, null, 8, ["label", "disabled", "onClickEvent"])
799
729
  ]),
800
730
  _: 2
801
- }, 1032, ["prev-callback"])) : v("", !0)
731
+ }, 1032, ["prev-callback"])) : m("", !0)
802
732
  ]),
803
- reservation: p(({ next: N, prev: O }) => [
804
- f(ve, {
733
+ reservation: c(({ next: O, prev: T }) => [
734
+ v(pe, {
805
735
  "show-terms-notice": !0,
806
736
  "show-gift-card": !0,
807
- "prev-callback": () => e(he)(O)
737
+ "prev-callback": () => e(ke)(T)
808
738
  }, {
809
- form: p(() => [
810
- t("form", On, [
739
+ form: c(() => [
740
+ t("form", yn, [
811
741
  t("h2", null, [
812
742
  t("span", null, l(e(n)("booking.reservation.detailsTitle")), 1)
813
743
  ]),
814
- f(te, {
744
+ v(le, {
815
745
  modelValue: e(k),
816
- "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),
817
747
  type: "text",
818
748
  label: e(n)("booking.reservation.name"),
819
749
  icon: "user-alt",
820
750
  placeholder: e(n)("booking.reservation.namePlaceholder"),
821
751
  required: ""
822
752
  }, null, 8, ["modelValue", "label", "placeholder"]),
823
- f(te, {
824
- modelValue: e(_),
825
- "onUpdate:modelValue": u[1] || (u[1] = (r) => R(_) ? _.value = r : null),
753
+ v(le, {
754
+ modelValue: e(y),
755
+ "onUpdate:modelValue": r[1] || (r[1] = (i) => M(y) ? y.value = i : null),
826
756
  label: e(n)("booking.reservation.email"),
827
757
  type: "email",
828
758
  name: "email",
@@ -831,42 +761,42 @@ const gn = { class: "konnectio-event-listings" }, kn = ["innerHTML"], yn = { cla
831
761
  placeholder: e(n)("booking.reservation.emailPlaceholder"),
832
762
  required: ""
833
763
  }, null, 8, ["modelValue", "label", "placeholder"]),
834
- f(Mt, {
835
- modelValue: e(w),
836
- "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),
837
767
  label: e(n)("booking.reservation.phone"),
838
768
  icon: "phone-office",
839
769
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
840
770
  required: ""
841
771
  }, null, 8, ["modelValue", "label", "placeholder"]),
842
- e(G) ? (a(), E(Tt, {
772
+ e(q) ? (o(), D(Dt, {
843
773
  key: 0,
844
774
  modelValue: e(P),
845
- "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),
846
776
  label: e(n)("event.selectArrivalTime"),
847
777
  name: "eventTimeTable",
848
- checkboxes: Ye.value,
778
+ checkboxes: ze.value,
849
779
  required: ""
850
- }, null, 8, ["modelValue", "label", "checkboxes"])) : v("", !0),
851
- e(ie) === e(mt).FullDayEvent ? (a(), E(oe, {
780
+ }, null, 8, ["modelValue", "label", "checkboxes"])) : m("", !0),
781
+ e(ie) === e(rt).FullDayEvent ? (o(), D(ae, {
852
782
  key: 1,
853
- modelValue: e(d),
854
- "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),
855
785
  label: e(n)("event.numberOfDays"),
856
786
  "min-value": 1,
857
787
  required: ""
858
- }, null, 8, ["modelValue", "label"])) : v("", !0),
859
- f(te, {
788
+ }, null, 8, ["modelValue", "label"])) : m("", !0),
789
+ v(le, {
860
790
  modelValue: e(V),
861
- "onUpdate:modelValue": u[5] || (u[5] = (r) => R(V) ? V.value = r : null),
791
+ "onUpdate:modelValue": r[5] || (r[5] = (i) => M(V) ? V.value = i : null),
862
792
  type: "textarea",
863
793
  label: `${e(n)("booking.reservation.remark")} (${e(n)("booking.reservation.optional")})`,
864
794
  icon: "info-circle",
865
795
  placeholder: e(n)("booking.reservation.remarkPlaceholder")
866
796
  }, null, 8, ["modelValue", "label", "placeholder"]),
867
- f(te, {
868
- modelValue: e(T),
869
- "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),
870
800
  type: "textarea",
871
801
  label: `${e(n)("booking.reservation.allergies")} (${e(n)("booking.reservation.optional")})`,
872
802
  icon: "allergies",
@@ -874,23 +804,23 @@ const gn = { class: "konnectio-event-listings" }, kn = ["innerHTML"], yn = { cla
874
804
  }, null, 8, ["modelValue", "label", "placeholder"])
875
805
  ])
876
806
  ]),
877
- navigation: p(() => [
878
- f(fe, {
807
+ navigation: c(() => [
808
+ v(ve, {
879
809
  label: e(n)("general.confirmReservation"),
880
- "is-loading": e(I),
881
- disabled: !e(X),
810
+ "is-loading": e(R),
811
+ disabled: !e(ee),
882
812
  "full-width": "",
883
- onClickEvent: (r) => e(Ue)(N)
813
+ onClickEvent: (i) => e(Ie)(O)
884
814
  }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"])
885
815
  ]),
886
816
  _: 2
887
817
  }, 1032, ["prev-callback"])
888
818
  ]),
889
- payment: p(() => [
890
- f(Bt)
819
+ payment: c(() => [
820
+ v(Tt)
891
821
  ]),
892
- confirmation: p(() => [
893
- f(Nt, {
822
+ confirmation: c(() => [
823
+ v(Vt, {
894
824
  message: e(n)("event.confirmationMessage")
895
825
  }, null, 8, ["message"])
896
826
  ]),
@@ -900,8 +830,8 @@ const gn = { class: "konnectio-event-listings" }, kn = ["innerHTML"], yn = { cla
900
830
  _: 1
901
831
  }, 8, ["access-token", "callback"])
902
832
  ]),
903
- fallback: p(() => [
904
- f(vn)
833
+ fallback: c(() => [
834
+ v(nn)
905
835
  ]),
906
836
  _: 1
907
837
  }))
@@ -909,8 +839,8 @@ const gn = { class: "konnectio-event-listings" }, kn = ["innerHTML"], yn = { cla
909
839
  _: 1
910
840
  }, 8, ["styling"]));
911
841
  }
912
- }), Oe = /* @__PURE__ */ ae(Fn, [["__scopeId", "data-v-92eae590"]]), Sn = ot(), Mn = it();
913
- class Bn extends HTMLElement {
842
+ }), Ne = /* @__PURE__ */ Z(hn, [["__scopeId", "data-v-866193bb"]]), _n = xe(), Pn = lt();
843
+ class $n extends HTMLElement {
914
844
  vueApp;
915
845
  constructor() {
916
846
  super();
@@ -919,14 +849,14 @@ class Bn extends HTMLElement {
919
849
  this.vueApp.unmount();
920
850
  }
921
851
  connectedCallback() {
922
- const o = lt(Oe, this.attributes);
923
- this.vueApp = at(Oe, o), this.vueApp.provide("emitter", Mn), this.vueApp.use(st), this.vueApp.use(Sn), 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 });
924
854
  const n = document.createElement("div");
925
855
  this.vueApp.mount(n), this.appendChild(n.children[0]);
926
856
  }
927
857
  }
928
- window.customElements.define("konnectio-event", Bn);
858
+ window.customElements.define("konnectio-event", $n);
929
859
  export {
930
- Bn as default
860
+ $n as default
931
861
  };
932
862
  //# sourceMappingURL=event.js.map