@konnectio/core 4.0.116 → 4.0.118

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-hdk1E0k3.js → ActionField--tGPb0Ob.js} +6 -6
  2. package/dist/ActionField--tGPb0Ob.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-B-gApBgP.js → AvailabilitySkeleton-DcJF9jAN.js} +14 -14
  4. package/dist/AvailabilitySkeleton-DcJF9jAN.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bt9G4kP9.js +8429 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bt9G4kP9.js.br +0 -0
  7. package/dist/{CheckoutWindow-CZxZKnq4.js → CheckoutWindow-0SQ_8VzW.js} +26 -26
  8. package/dist/CheckoutWindow-0SQ_8VzW.js.br +0 -0
  9. package/dist/{ErrorMessage-D90bwmSp.js → ErrorMessage-Bwb7Ib84.js} +3 -3
  10. package/dist/ErrorMessage-Bwb7Ib84.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-BpPStkoo.js → EventAvailabilityForm-DMLUjzLU.js} +13 -13
  12. package/dist/EventAvailabilityForm-DMLUjzLU.js.br +0 -0
  13. package/dist/{Field-uF9D_2Jo.js → Field-CbCFTaTs.js} +4 -4
  14. package/dist/Field-CbCFTaTs.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CALV1LOp.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-K7qu_idf.js} +3 -3
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-_eA1et15.js → SelectField.vue_vue_type_style_index_0_lang-D3xQFei_.js} +6919 -6560
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-D3xQFei_.js.br +0 -0
  18. package/dist/{TermsOfService-BS-h674o.js → TermsOfService-BeBLKeU1.js} +4 -4
  19. package/dist/_-DJq3nquJ.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CFiP1E8M.js → _.vue_vue_type_style_index_0_lang-BHgddsWZ.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 +627 -474
  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-B5dQ0wZK.js → giftCard-3jj6EyhQ.js} +23 -23
  34. package/dist/giftCard-3jj6EyhQ.js.br +0 -0
  35. package/dist/hotel.js +222 -222
  36. package/dist/hotel.js.br +0 -0
  37. package/dist/{masonry.plugin-DFXguWRk.js → masonry.plugin-B2kZ4Lq-.js} +439 -438
  38. package/dist/masonry.plugin-B2kZ4Lq-.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-hdk1E0k3.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-B-gApBgP.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-IW8uN3J-.js +0 -8753
  51. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-IW8uN3J-.js.br +0 -0
  52. package/dist/CheckoutWindow-CZxZKnq4.js.br +0 -0
  53. package/dist/ErrorMessage-D90bwmSp.js.br +0 -0
  54. package/dist/EventAvailabilityForm-BpPStkoo.js.br +0 -0
  55. package/dist/Field-uF9D_2Jo.js.br +0 -0
  56. package/dist/SelectField.vue_vue_type_style_index_0_lang-_eA1et15.js.br +0 -0
  57. package/dist/_-BgEzIeC5.js +0 -5
  58. package/dist/giftCard-B5dQ0wZK.js.br +0 -0
  59. package/dist/masonry.plugin-DFXguWRk.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-_eA1et15.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-IW8uN3J-.js";
5
- import { _ as kt } from "./_.vue_vue_type_style_index_0_lang-CFiP1E8M.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-DFXguWRk.js";
7
- import { C as wt, P as Ot, a as Tt } from "./CheckoutWindow-CZxZKnq4.js";
8
- import { E as Bt } from "./EventAvailabilityForm-BpPStkoo.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CALV1LOp.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 p, f as v, n as Xe, g as d, t as a, o as Ze, h as xe, x as de, y as et, z as tt, F, 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 Ve, 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-D3xQFei_.js";
3
+ import { G as ht } from "./style-Cc6LpDdk.js";
4
+ import { _ as Dt } from "./_.vue_vue_type_style_index_0_lang-BHgddsWZ.js";
5
+ import { B as Pt, _ as _t, R as $t, L as Ie, S as wt, M as Et, C as Vt, T as Ot, V as Nt, a as Tt } from "./masonry.plugin-B2kZ4Lq-.js";
6
+ import { e as Bt, c as St, n as Ct, g as Oe, m as Ne, a as Te, b as Be, d as Ft, f as Se, _ as It } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bt9G4kP9.js";
7
+ import { C as Lt, P as At, a as Rt } from "./CheckoutWindow-0SQ_8VzW.js";
8
+ import { E as Mt } from "./EventAvailabilityForm-DMLUjzLU.js";
9
+ import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-K7qu_idf.js";
10
+ function Ut(g) {
11
+ return (l) => {
12
+ const b = (g ? Math[g] : Math.trunc)(l);
13
+ return b === 0 ? 0 : b;
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 b = Ft(), f = n?.locale ?? b.locale ?? Bt, i = St(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] = Ct(
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"), V = y.getTime() - E.getTime(), D = V / Se, $ = Oe(y) - Oe(E), N = (V - $) / Se, I = n?.unit;
27
+ let P;
28
+ if (I ? P = I : 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(V / 1e3);
30
+ return f.formatDistance("xSeconds", u, k);
31
+ } else if (P === "minute") {
32
+ const u = s(D);
33
+ return f.formatDistance("xMinutes", u, k);
34
+ } else if (P === "hour") {
35
+ const u = s(D / 60);
36
+ return f.formatDistance("xHours", u, k);
37
+ } else if (P === "day") {
38
+ const u = s(N / Ne);
39
+ return f.formatDistance("xDays", u, k);
40
+ } else if (P === "month") {
41
+ const u = s(N / Te);
42
+ return u === 12 && I !== "month" ? f.formatDistance("xYears", 1, k) : f.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 f.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(), {
73
- maxNumberOfPeople: b,
74
- numberOfPeople: u,
72
+ const { t: l } = ae(), n = g, { display: b } = $e(), {
73
+ maxNumberOfPeople: f,
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: V,
81
+ isEventListingLoading: D
82
+ } = Z(), $ = Fe(0), N = j(() => D(n.listingId)), I = () => {
83
+ if (!n.useNumberOfProductsForPersons && ($.value === 0 || isNaN($.value))) {
84
+ b({
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
+ b({
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, V(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(f) }, 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 ? p("", !0) : (o(), _(ue, {
123
+ key: 0,
124
+ modelValue: $.value,
125
+ "onUpdate:modelValue": L[0] || (L[0] = (A) => $.value = A),
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(f) || 1 / 0
133
+ }, null, 8, ["modelValue", "label", "description", "max-value"])),
134
+ t("div", zt, [
135
+ v(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] = (A) => u.type === "event" ? P() : I())
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
+ }), Le = /* @__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: b } = Y(we()), f = 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(), _(Le, {
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"])) : p("", !0),
203
+ t("ul", Ht, [
204
+ p("", !0),
205
+ e(b) ? p("", !0) : (o(), d("li", Yt, [
203
206
  t("div", null, [
204
- v(be, {
207
+ v(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(f.value), 1)
211
214
  ])),
212
- t("li", Rt, [
215
+ t("li", jt, [
213
216
  t("div", null, [
214
- v(be, {
217
+ v(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: b } = $e(), f = Fe(), i = g;
256
+ function k() {
257
+ f.value ? n(f.value) : b({
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 && (f.value = new Date(i.fromDate));
265
+ }), (s, V) => (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
+ v(It, {
288
+ modelValue: f.value,
289
+ "onUpdate:modelValue": V[0] || (V[0] = (D) => f.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
+ v(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(), d("span", Xt, [
309
+ de("*" + a(e(l)("event.canBeBooked")) + " ", 1),
310
+ t("u", null, a(e(U)(s.fromDate)), 1)
311
+ ])) : (o(), d("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 (b, f) => (o(), _(Le, {
348
+ "listing-id": b.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: b.name,
351
+ description: b.description,
352
+ "prices-from": b.fromPrice,
353
+ "to-date": b.toDate,
260
354
  type: "template",
261
- callback: p.callback
355
+ callback: b.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,144 @@ const Lt = {
272
366
  prevCallback: {}
273
367
  },
274
368
  setup(g) {
275
- const { t: a } = se(), n = Ke(), {
276
- areListingsAvailable: p,
277
- arrivalTime: b,
278
- numberOfPeople: u,
369
+ const { t: l } = ae(), n = et(), {
370
+ areListingsAvailable: b,
371
+ arrivalTime: f,
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: V,
378
+ fromDate: D,
379
+ tableBasePrice: $,
380
+ getTemplateData: N,
381
+ basePrice: I,
382
+ totalPrice: P,
383
+ weekendFee: u,
384
+ roomUpgrade: L,
385
+ discountCode: A,
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(A),
390
+ "onUpdate:discountCode": le[0] || (le[0] = (J) => M(A) ? A.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(b),
395
+ "base-price": e(I),
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) ? p("", !0) : (o(), d("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(), d("li", an, [
411
+ t("span", null, a(e(l)("event.numberOfGuests")), 1),
412
+ t("b", null, a(e(i)), 1)
413
+ ])) : p("", !0),
414
+ !e(y) && e(Q) > 0 ? (o(), d("li", on, [
415
+ t("span", null, a(e(l)("event.numberOfProducts")), 1),
416
+ t("b", null, a(e(Q)), 1)
417
+ ])) : p("", !0),
418
+ e(y) ? (o(), d(F, { 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)) : p("", !0),
436
+ !e(y) && e(f) ? (o(), d("li", ln, [
437
+ t("span", null, a(e(l)("event.startOfEvent")), 1),
438
+ t("b", null, a(e(_e)(e(f))), 1)
439
+ ])) : p("", !0),
440
+ !e(y) && e(V) && !e(ve) ? (o(), d("li", sn, [
441
+ t("span", null, a(e(l)("event.lengthOfEvent")), 1),
442
+ t("b", null, a(e(_e)(e(V))), 1)
443
+ ])) : p("", !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(), d("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
+ ])) : p("", !0),
450
+ e(N) ? (o(!0), d(F, { key: 1 }, H(e(N), ({ roomGroupId: J }, se) => (o(), d("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)) : p("", !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(), d("div", un, [
460
+ t("span", null, a(e(U)(e(D))) + " - " + a(e(U)(e(D), e(E))), 1)
461
+ ])) : (o(), d("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(), d("span", cn, a(e(l)("event.numberOfProducts")) + ": " + a(e(Q)), 1)) : p("", !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(), d("div", pn, [
483
+ t("div", vn, [
484
+ v(Ie)
391
485
  ]),
392
- t("div", en, [
393
- m("", !0),
394
- v(Pt)
486
+ t("div", bn, [
487
+ p("", !0),
488
+ v(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"
495
+ }, yn = {
496
+ key: 0,
497
+ class: "konnectio-hotel-availability-title"
401
498
  };
402
- const on = { class: "konnectio-event-listings" };
403
- const an = { class: "konnectio-event-listings" }, sn = ["innerHTML"], rn = { class: "konnectio-panel" }, un = {
499
+ const hn = { class: "konnectio-event-listings" };
500
+ const Dn = { class: "konnectio-event-listings" }, Pn = { class: "konnectio-hotel-availability-title" }, _n = { class: "konnectio-event-listings" }, $n = ["innerHTML"], wn = { class: "konnectio-panel" }, En = {
404
501
  key: 0,
405
502
  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 = {
503
+ }, Vn = { class: "konnectio-table with-lines" }, On = { class: "konnectio-event-addons-price" }, Nn = { class: "konnectio-event-addons-input" }, Tn = { class: "konnectio-event-addons-price" }, Bn = { class: "konnectio-event-addons-price" }, Sn = {
407
504
  key: 1,
408
505
  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({
506
+ }, Cn = { class: "konnectio-table-addons-information" }, Fn = { key: 0 }, In = { class: "konnectio-table-addons-option" }, Ln = { class: "konnectio-panel" }, An = /* @__PURE__ */ W({
410
507
  name: "EventLayout",
411
508
  __name: "Event",
412
509
  props: {
@@ -417,41 +514,42 @@ const an = { class: "konnectio-event-listings" }, sn = ["innerHTML"], rn = { cla
417
514
  styling: {}
418
515
  },
419
516
  setup(g) {
420
- const a = g, { t: n } = se(), {
421
- addons: p,
422
- products: b,
423
- numberOfDays: u,
517
+ const l = g, { t: n } = ae(), {
518
+ addons: b,
519
+ products: f,
520
+ numberOfDays: i,
424
521
  name: k,
425
- phone: N,
522
+ phone: E,
426
523
  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,
524
+ remark: s,
525
+ allergies: V,
526
+ arrivalTime: D,
527
+ hasEvents: $,
528
+ hasTemplates: N,
529
+ getEvents: I,
530
+ getTemplates: P,
531
+ getEventData: u,
532
+ getTemplateData: L,
533
+ getEventTableData: A,
534
+ hasProducts: Q,
535
+ eventRateType: me,
536
+ areListingsAvailable: pe,
537
+ isAvailabilityDataAvailable: oe,
538
+ hasListingData: ve,
442
539
  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(() => [
540
+ isReservationFormFilled: le,
541
+ requiresArrivalTime: J,
542
+ hasSelectedRequiredProducts: se,
543
+ getUnavailableEvents: be
544
+ } = Y(Z()), { currency: ie } = Y(we()), { eventDate: Re, eventLocation: Me } = Y(Pe()), { isValidRestaurantId: Ue } = Pe(), {
545
+ initialize: Ge,
546
+ fetchListings: ze,
547
+ createBooking: qe,
548
+ localAddonPrice: He,
549
+ totalAddonPrice: Ye,
550
+ reset: je,
551
+ goBack: Ee
552
+ } = Z(), { display: fe } = $e(), We = j(() => [
455
553
  {
456
554
  id: "availability",
457
555
  label: n("booking.availability.title"),
@@ -477,282 +575,337 @@ const an = { class: "konnectio-event-listings" }, sn = ["innerHTML"], rn = { cla
477
575
  label: n("booking.confirmation.title"),
478
576
  icon: "calendar-check"
479
577
  }
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
578
+ ]), Qe = j(() => {
579
+ const w = [];
580
+ return A.value && A.value.forEach((c) => {
581
+ w.find((B) => B.value === c.time) || w.push({
582
+ label: _e(c.time),
583
+ value: c.time
486
584
  });
487
- }), $;
585
+ }), w;
488
586
  });
489
- function Ge() {
490
- Me(a.resetDate === "yes");
587
+ function Je() {
588
+ je(l.resetDate === "yes");
491
589
  }
492
- function qe() {
493
- const $ = dt("history", {
590
+ function Ke() {
591
+ const w = gt("history", {
494
592
  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({
593
+ }), c = parseInt(w.rid), B = w.d, O = parseInt(w.eid);
594
+ if (B)
595
+ if (kt(B)) {
596
+ const S = new Date(B), C = S.setHours(12, 0, 0, 0), h = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
597
+ C >= h ? (Re.value = S, w.d = void 0) : fe({
500
598
  message: n("alert.error.invalidDateRange"),
501
599
  type: "error"
502
600
  });
503
601
  } else
504
- de({
602
+ fe({
505
603
  message: n("alert.error.wrongDateFormat"),
506
604
  type: "error"
507
605
  });
508
- isNaN(r) || (Ae(r) ? Se.value = r : de({
606
+ isNaN(c) || (Ue(c) ? Me.value = c : fe({
509
607
  message: n("alert.error.hotelIdNotFound"),
510
608
  type: "error"
511
609
  }));
512
- let i;
513
- isNaN(T) || (i = T), Fe(i);
610
+ let r;
611
+ isNaN(O) || (r = O), ze(r);
514
612
  }
515
- return ($, r) => (o(), D(ut, { styling: $.styling }, {
516
- default: c(() => [
517
- (o(), D(Ze, { onResolve: qe }, {
518
- default: c(() => [
519
- v(kt, {
613
+ return (w, c) => (o(), _(ft, { styling: w.styling }, {
614
+ default: m(() => [
615
+ (o(), _(nt, { onResolve: Ke }, {
616
+ default: m(() => [
617
+ v(Dt, {
520
618
  id: "konnectio-event-module",
521
- "access-token": $.accessToken,
522
- callback: e(Ce)
619
+ "access-token": w.accessToken,
620
+ callback: e(Ge)
523
621
  }, {
524
- default: c(() => [
525
- v($t, {
526
- steps: Ue.value,
527
- onReset: Ge
622
+ default: m(() => [
623
+ v(Et, {
624
+ steps: We.value,
625
+ onReset: Je
528
626
  }, {
529
- availability: c(({ next: O }) => [
530
- v(pe, null, {
531
- sidebar: c(() => [
532
- v(Bt, {
627
+ availability: m(({ next: B }) => [
628
+ v(De, null, {
629
+ sidebar: m(() => [
630
+ v(Mt, {
533
631
  redirection: !1,
534
- "selected-location": Number($.selectedLocation)
632
+ "selected-location": Number(w.selectedLocation)
535
633
  }, null, 8, ["selected-location"])
536
634
  ]),
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,
635
+ form: m(() => [
636
+ e(ve) && e(pe) ? (o(), d("div", kn, [
637
+ e(I).length > 0 && e(be).length > 0 ? (o(), d("h2", yn, [
638
+ v(ne, {
639
+ icon: "calendar-clock",
640
+ type: "fal",
641
+ color: "header"
642
+ }),
643
+ t("span", null, a(e(n)("event.availableNow")), 1)
644
+ ])) : p("", !0),
645
+ e($) && w.onlyShow !== "templates" ? (o(), d(F, { key: 1 }, [
646
+ p("", !0),
647
+ t("ul", hn, [
648
+ (o(!0), d(F, null, H(e(I), ({
649
+ id: O,
650
+ days: r,
545
651
  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,
652
+ timeFrom: C,
653
+ timeTo: h,
654
+ fromDate: T,
655
+ toDate: G,
656
+ tableGroupId: z,
657
+ description: ee,
658
+ soldOut: te,
659
+ length: q,
660
+ images: ge,
661
+ maxOnlineReservationLimit: ke,
662
+ maxPaxPerReservation: ye,
663
+ useNumberOfProductsForPersons: he
664
+ }) => (o(), _(Ae, {
665
+ key: O,
560
666
  type: "event",
561
- "listing-id": T,
562
- "table-group-id": J,
563
- description: ce,
667
+ "listing-id": O,
668
+ "table-group-id": z,
669
+ description: ee,
564
670
  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
671
+ length: q,
672
+ gallery: ge,
673
+ days: r,
674
+ "from-date": T,
675
+ "to-date": G,
676
+ "max-online-reservation-limit": ye || ke,
677
+ "time-from": C,
678
+ "time-to": h,
679
+ "sold-out": te,
680
+ "use-number-of-products-for-persons": he,
681
+ callback: B
576
682
  }, 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
683
  ])
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,
684
+ ], 64)) : p("", !0),
685
+ e(N) && w.onlyShow !== "events" ? (o(), d(F, { key: 2 }, [
686
+ p("", !0),
687
+ t("ul", Dn, [
688
+ (o(!0), d(F, null, H(e(P), ({
689
+ id: O,
690
+ name: r,
585
691
  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,
692
+ toDate: C,
693
+ minimumPersonCount: h,
694
+ fromPrice: T,
695
+ description: G,
696
+ imageUrl: z
697
+ }) => (o(), _(tn, {
698
+ key: O,
699
+ "listing-id": O,
700
+ name: r,
701
+ image: z,
702
+ description: G,
597
703
  "from-date": S,
598
- "to-date": I,
599
- "minimum-person-count": _,
600
- fromPrice: B,
601
- callback: O
704
+ "to-date": C,
705
+ "minimum-person-count": h,
706
+ fromPrice: T,
707
+ callback: B
602
708
  }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
603
709
  ])
604
- ], 64)) : m("", !0),
605
- !e(h) && !e(E) || !e(h) && $.onlyShow === "events" || !e(E) && $.onlyShow === "templates" ? (o(), d("div", {
606
- key: 2,
710
+ ], 64)) : p("", !0),
711
+ e(be).length > 0 && w.onlyShow !== "templates" ? (o(), d(F, { key: 3 }, [
712
+ t("h2", Pn, [
713
+ v(ne, {
714
+ icon: "calendar-circle-exclamation",
715
+ type: "fal",
716
+ color: "header"
717
+ }),
718
+ t("span", null, a(e(n)("event.availableLater")), 1)
719
+ ]),
720
+ t("ul", _n, [
721
+ (o(!0), d(F, null, H(e(be), ({
722
+ id: O,
723
+ days: r,
724
+ name: S,
725
+ timeFrom: C,
726
+ timeTo: h,
727
+ fromDate: T,
728
+ toDate: G,
729
+ tableGroupId: z,
730
+ description: ee,
731
+ soldOut: te,
732
+ length: q,
733
+ images: ge,
734
+ maxOnlineReservationLimit: ke,
735
+ maxPaxPerReservation: ye,
736
+ useNumberOfProductsForPersons: he
737
+ }) => (o(), _(en, {
738
+ key: O,
739
+ type: "event",
740
+ "listing-id": O,
741
+ "table-group-id": z,
742
+ description: ee,
743
+ name: S,
744
+ length: q,
745
+ gallery: ge,
746
+ days: r,
747
+ "from-date": T,
748
+ "to-date": G,
749
+ "max-online-reservation-limit": ye || ke,
750
+ "time-from": C,
751
+ "time-to": h,
752
+ "sold-out": te,
753
+ "use-number-of-products-for-persons": he,
754
+ callback: B
755
+ }, 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))
756
+ ])
757
+ ], 64)) : p("", !0),
758
+ !e($) && !e(N) || !e($) && w.onlyShow === "events" || !e(N) && w.onlyShow === "templates" ? (o(), d("div", {
759
+ key: 4,
607
760
  class: "konnectio-panel",
608
761
  innerHTML: e(n)("event.nothingAvailable")
609
- }, null, 8, sn)) : m("", !0)
610
- ])) : (o(), D(Oe, { key: 1 }))
762
+ }, null, 8, $n)) : p("", !0)
763
+ ])) : (o(), _(Ie, { key: 1 }))
611
764
  ]),
612
765
  _: 2
613
766
  }, 1024)
614
767
  ]),
615
- addons: c(({ next: O, prev: T }) => [
616
- e(x) ? (o(), D(pe, {
768
+ addons: m(({ next: B, prev: O }) => [
769
+ e(oe) ? (o(), _(De, {
617
770
  key: 0,
618
- "prev-callback": () => e(ke)(T)
771
+ "prev-callback": () => e(Ee)(O)
619
772
  }, {
620
- form: c(() => [
621
- t("form", rn, [
773
+ form: m(() => [
774
+ t("form", wn, [
622
775
  t("h2", null, [
623
- t("span", null, l(e(n)("event.selectProducts")), 1)
776
+ t("span", null, a(e(n)("event.selectProducts")), 1)
624
777
  ]),
625
- e(A) && e(A).length > 0 ? (o(), d("ul", un, [
626
- (o(!0), d(L, null, H(e(A), ({
627
- roomGroupId: i,
778
+ e(L) && e(L).length > 0 ? (o(), d("ul", En, [
779
+ (o(!0), d(F, null, H(e(L), ({
780
+ roomGroupId: r,
628
781
  addons: S,
629
- adultPerRoom: I
630
- }, _) => (o(), d("li", { key: i }, [
782
+ adultPerRoom: C
783
+ }, h) => (o(), d("li", { key: r }, [
631
784
  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, {
785
+ t("span", null, a(e(n)("booking.reservation.room")) + " #" + a(h + 1), 1),
786
+ c[7] || (c[7] = de(" (")),
787
+ v(ne, {
635
788
  icon: "male",
636
789
  type: "fas",
637
790
  color: "header"
638
791
  }),
639
- ye(" " + l(I) + ") ", 1)
792
+ de(" " + a(C) + ") ", 1)
640
793
  ]),
641
- t("table", dn, [
794
+ t("table", Vn, [
642
795
  t("thead", null, [
643
796
  t("tr", null, [
644
797
  t("th", null, [
645
- t("span", null, l(e(n)("booking.reservation.addons")), 1)
798
+ t("span", null, a(e(n)("booking.reservation.addons")), 1)
646
799
  ]),
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)
800
+ c[8] || (c[8] = t("th", { class: "konnectio-event-addons-input" }, null, -1)),
801
+ t("th", On, [
802
+ t("span", null, a(e(n)("booking.availability.price")), 1)
650
803
  ])
651
804
  ])
652
805
  ]),
653
806
  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 }, [
807
+ (o(!0), d(F, null, H(S, ({
808
+ id: T,
809
+ cardinality: G,
810
+ name: z,
811
+ price: ee,
812
+ quantityStrategy: te
813
+ }) => (o(), d("tr", { key: T }, [
661
814
  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)
815
+ t("b", null, a(z), 1),
816
+ c[9] || (c[9] = t("br", null, null, -1)),
817
+ t("span", null, a(e(K)(ee, e(ie))) + " " + a(e(vt)(te)), 1)
665
818
  ]),
666
- t("td", mn, [
667
- W === 3 ? (o(), D(ae, {
819
+ t("td", Nn, [
820
+ G === 3 ? (o(), _(ue, {
668
821
  key: 0,
669
- modelValue: e(p)[`${i}.${B}.${_}`],
670
- "onUpdate:modelValue": (K) => e(p)[`${i}.${B}.${_}`] = K,
822
+ modelValue: e(b)[`${r}.${T}.${h}`],
823
+ "onUpdate:modelValue": (q) => e(b)[`${r}.${T}.${h}`] = q,
671
824
  small: !0,
672
825
  "min-value": 0
673
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (o(), D(wt, {
826
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (o(), _(Lt, {
674
827
  key: 1,
675
- modelValue: e(p)[`${i}.${B}.${_}`],
676
- "onUpdate:modelValue": (K) => e(p)[`${i}.${B}.${_}`] = K,
828
+ modelValue: e(b)[`${r}.${T}.${h}`],
829
+ "onUpdate:modelValue": (q) => e(b)[`${r}.${T}.${h}`] = q,
677
830
  numeric: !0
678
831
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
679
832
  ]),
680
- t("td", pn, [
681
- t("span", null, l(e(Y)(e(Le)(B, i, _), e(ne))), 1)
833
+ t("td", Tn, [
834
+ t("span", null, a(e(K)(e(He)(T, r, h), e(ie))), 1)
682
835
  ])
683
836
  ]))), 128))
684
837
  ]),
685
838
  t("tfoot", null, [
686
839
  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, [
840
+ c[10] || (c[10] = t("td", null, null, -1)),
841
+ c[11] || (c[11] = t("td", null, null, -1)),
842
+ t("td", Bn, [
690
843
  t("u", null, [
691
- t("span", null, l(e(Y)(e(Re)(i, _), e(ne))), 1)
844
+ t("span", null, a(e(K)(e(Ye)(r, h), e(ie))), 1)
692
845
  ])
693
846
  ])
694
847
  ])
695
848
  ])
696
849
  ])
697
850
  ]))), 128))
698
- ])) : m("", !0),
699
- e(G) ? (o(), d("table", bn, [
851
+ ])) : p("", !0),
852
+ e(Q) ? (o(), d("table", Sn, [
700
853
  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, [
854
+ (o(!0), d(F, null, H(e(u).products, ({ id: r, name: S, price: C, description: h }) => (o(), d("tr", { key: r }, [
855
+ t("td", Cn, [
703
856
  t("b", null, [
704
- t("span", null, l(e(_e)(S)), 1)
857
+ t("span", null, a(e(Ve)(S)), 1)
705
858
  ]),
706
- _ && _ !== S ? (o(), d("span", gn, l(e(_e)(_)), 1)) : m("", !0),
707
- t("u", null, l(e(Y)(I, e(ne))), 1)
859
+ h && h !== S ? (o(), d("span", Fn, a(e(Ve)(h)), 1)) : p("", !0),
860
+ t("u", null, a(e(K)(C, e(ie))), 1)
708
861
  ]),
709
- t("td", kn, [
710
- v(ae, {
711
- modelValue: e(b)[i],
712
- "onUpdate:modelValue": (B) => e(b)[i] = B,
862
+ t("td", In, [
863
+ v(ue, {
864
+ modelValue: e(f)[r],
865
+ "onUpdate:modelValue": (T) => e(f)[r] = T,
713
866
  small: !0,
714
867
  "min-value": 0
715
868
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
716
869
  ])
717
870
  ]))), 128))
718
871
  ])
719
- ])) : m("", !0)
872
+ ])) : p("", !0)
720
873
  ])
721
874
  ]),
722
- navigation: c(() => [
723
- v(ve, {
875
+ navigation: m(() => [
876
+ v(ce, {
724
877
  label: e(n)("event.startReservation"),
725
- disabled: !e(te),
878
+ disabled: !e(se),
726
879
  "full-width": "",
727
- onClickEvent: O
880
+ onClickEvent: B
728
881
  }, null, 8, ["label", "disabled", "onClickEvent"])
729
882
  ]),
730
883
  _: 2
731
- }, 1032, ["prev-callback"])) : m("", !0)
884
+ }, 1032, ["prev-callback"])) : p("", !0)
732
885
  ]),
733
- reservation: c(({ next: O, prev: T }) => [
734
- v(pe, {
886
+ reservation: m(({ next: B, prev: O }) => [
887
+ v(De, {
735
888
  "show-terms-notice": !0,
736
889
  "show-gift-card": !0,
737
- "prev-callback": () => e(ke)(T)
890
+ "prev-callback": () => e(Ee)(O)
738
891
  }, {
739
- form: c(() => [
740
- t("form", yn, [
892
+ form: m(() => [
893
+ t("form", Ln, [
741
894
  t("h2", null, [
742
- t("span", null, l(e(n)("booking.reservation.detailsTitle")), 1)
895
+ t("span", null, a(e(n)("booking.reservation.detailsTitle")), 1)
743
896
  ]),
744
- v(le, {
897
+ v(re, {
745
898
  modelValue: e(k),
746
- "onUpdate:modelValue": r[0] || (r[0] = (i) => M(k) ? k.value = i : null),
899
+ "onUpdate:modelValue": c[0] || (c[0] = (r) => M(k) ? k.value = r : null),
747
900
  type: "text",
748
901
  label: e(n)("booking.reservation.name"),
749
902
  icon: "user-alt",
750
903
  placeholder: e(n)("booking.reservation.namePlaceholder"),
751
904
  required: ""
752
905
  }, null, 8, ["modelValue", "label", "placeholder"]),
753
- v(le, {
906
+ v(re, {
754
907
  modelValue: e(y),
755
- "onUpdate:modelValue": r[1] || (r[1] = (i) => M(y) ? y.value = i : null),
908
+ "onUpdate:modelValue": c[1] || (c[1] = (r) => M(y) ? y.value = r : null),
756
909
  label: e(n)("booking.reservation.email"),
757
910
  type: "email",
758
911
  name: "email",
@@ -761,42 +914,42 @@ const an = { class: "konnectio-event-listings" }, sn = ["innerHTML"], rn = { cla
761
914
  placeholder: e(n)("booking.reservation.emailPlaceholder"),
762
915
  required: ""
763
916
  }, 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),
917
+ v(At, {
918
+ modelValue: e(E),
919
+ "onUpdate:modelValue": c[2] || (c[2] = (r) => M(E) ? E.value = r : null),
767
920
  label: e(n)("booking.reservation.phone"),
768
921
  icon: "phone-office",
769
922
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
770
923
  required: ""
771
924
  }, null, 8, ["modelValue", "label", "placeholder"]),
772
- e(q) ? (o(), D(Dt, {
925
+ e(J) ? (o(), _(Vt, {
773
926
  key: 0,
774
- modelValue: e(P),
775
- "onUpdate:modelValue": r[3] || (r[3] = (i) => M(P) ? P.value = i : null),
927
+ modelValue: e(D),
928
+ "onUpdate:modelValue": c[3] || (c[3] = (r) => M(D) ? D.value = r : null),
776
929
  label: e(n)("event.selectArrivalTime"),
777
930
  name: "eventTimeTable",
778
- checkboxes: ze.value,
931
+ checkboxes: Qe.value,
779
932
  required: ""
780
- }, null, 8, ["modelValue", "label", "checkboxes"])) : m("", !0),
781
- e(ie) === e(rt).FullDayEvent ? (o(), D(ae, {
933
+ }, null, 8, ["modelValue", "label", "checkboxes"])) : p("", !0),
934
+ e(me) === e(bt).FullDayEvent ? (o(), _(ue, {
782
935
  key: 1,
783
- modelValue: e(u),
784
- "onUpdate:modelValue": r[4] || (r[4] = (i) => M(u) ? u.value = i : null),
936
+ modelValue: e(i),
937
+ "onUpdate:modelValue": c[4] || (c[4] = (r) => M(i) ? i.value = r : null),
785
938
  label: e(n)("event.numberOfDays"),
786
939
  "min-value": 1,
787
940
  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),
941
+ }, null, 8, ["modelValue", "label"])) : p("", !0),
942
+ v(re, {
943
+ modelValue: e(s),
944
+ "onUpdate:modelValue": c[5] || (c[5] = (r) => M(s) ? s.value = r : null),
792
945
  type: "textarea",
793
946
  label: `${e(n)("booking.reservation.remark")} (${e(n)("booking.reservation.optional")})`,
794
947
  icon: "info-circle",
795
948
  placeholder: e(n)("booking.reservation.remarkPlaceholder")
796
949
  }, 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),
950
+ v(re, {
951
+ modelValue: e(V),
952
+ "onUpdate:modelValue": c[6] || (c[6] = (r) => M(V) ? V.value = r : null),
800
953
  type: "textarea",
801
954
  label: `${e(n)("booking.reservation.allergies")} (${e(n)("booking.reservation.optional")})`,
802
955
  icon: "allergies",
@@ -804,23 +957,23 @@ const an = { class: "konnectio-event-listings" }, sn = ["innerHTML"], rn = { cla
804
957
  }, null, 8, ["modelValue", "label", "placeholder"])
805
958
  ])
806
959
  ]),
807
- navigation: c(() => [
808
- v(ve, {
960
+ navigation: m(() => [
961
+ v(ce, {
809
962
  label: e(n)("general.confirmReservation"),
810
963
  "is-loading": e(R),
811
- disabled: !e(ee),
964
+ disabled: !e(le),
812
965
  "full-width": "",
813
- onClickEvent: (i) => e(Ie)(O)
966
+ onClickEvent: (r) => e(qe)(B)
814
967
  }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"])
815
968
  ]),
816
969
  _: 2
817
970
  }, 1032, ["prev-callback"])
818
971
  ]),
819
- payment: c(() => [
820
- v(Tt)
972
+ payment: m(() => [
973
+ v(Rt)
821
974
  ]),
822
- confirmation: c(() => [
823
- v(Vt, {
975
+ confirmation: m(() => [
976
+ v(Ot, {
824
977
  message: e(n)("event.confirmationMessage")
825
978
  }, null, 8, ["message"])
826
979
  ]),
@@ -830,8 +983,8 @@ const an = { class: "konnectio-event-listings" }, sn = ["innerHTML"], rn = { cla
830
983
  _: 1
831
984
  }, 8, ["access-token", "callback"])
832
985
  ]),
833
- fallback: c(() => [
834
- v(nn)
986
+ fallback: m(() => [
987
+ v(gn)
835
988
  ]),
836
989
  _: 1
837
990
  }))
@@ -839,8 +992,8 @@ const an = { class: "konnectio-event-listings" }, sn = ["innerHTML"], rn = { cla
839
992
  _: 1
840
993
  }, 8, ["styling"]));
841
994
  }
842
- }), Ne = /* @__PURE__ */ Z(hn, [["__scopeId", "data-v-866193bb"]]), _n = xe(), Pn = lt();
843
- class $n extends HTMLElement {
995
+ }), Ce = /* @__PURE__ */ x(An, [["__scopeId", "data-v-c3c580c9"]]), Rn = at(), Mn = it();
996
+ class Un extends HTMLElement {
844
997
  vueApp;
845
998
  constructor() {
846
999
  super();
@@ -849,14 +1002,14 @@ class $n extends HTMLElement {
849
1002
  this.vueApp.unmount();
850
1003
  }
851
1004
  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 });
1005
+ const l = ot(Ce, this.attributes);
1006
+ this.vueApp = lt(Ce, l), this.vueApp.provide("emitter", Mn), this.vueApp.use(st), this.vueApp.use(Rn), this.vueApp.use(Nt), this.vueApp.use(ht), this.vueApp.use(Tt), this.vueApp.use(yt, { bootstrap: !0 });
854
1007
  const n = document.createElement("div");
855
1008
  this.vueApp.mount(n), this.appendChild(n.children[0]);
856
1009
  }
857
1010
  }
858
- window.customElements.define("konnectio-event", $n);
1011
+ window.customElements.define("konnectio-event", Un);
859
1012
  export {
860
- $n as default
1013
+ Un as default
861
1014
  };
862
1015
  //# sourceMappingURL=event.js.map