@konnectio/core 4.0.117 → 4.0.119

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