@konnectio/core 4.0.56 → 4.0.57

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 (64) hide show
  1. package/dist/{ActionField-j1i8YL6H.js → ActionField-BsgBhqwb.js} +3 -3
  2. package/dist/ActionField-BsgBhqwb.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-78ug9z_g.js → AvailabilitySkeleton-BCiyhi6I.js} +6 -6
  4. package/dist/AvailabilitySkeleton-BCiyhi6I.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B72HmqV2.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js} +371 -365
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js.br +0 -0
  7. package/dist/{CheckoutWindow-DYdrHbQ-.js → CheckoutWindow-COyV5n05.js} +4 -4
  8. package/dist/CheckoutWindow-COyV5n05.js.br +0 -0
  9. package/dist/{ErrorMessage-DJ_hHpkR.js → ErrorMessage-Bqmjetwk.js} +3 -3
  10. package/dist/ErrorMessage-Bqmjetwk.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-B4Y8N8P1.js → EventAvailabilityForm-CnfdAPBG.js} +5 -5
  12. package/dist/EventAvailabilityForm-CnfdAPBG.js.br +0 -0
  13. package/dist/{Field-CHlcB-1U.js → Field-8j4srvwh.js} +3 -3
  14. package/dist/Field-8j4srvwh.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CXrsASkr.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js} +2297 -2285
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js.br +0 -0
  17. package/dist/{TermsOfService-BTaz4T1c.js → TermsOfService-DzB0damA.js} +5 -5
  18. package/dist/TermsOfService-DzB0damA.js.br +0 -0
  19. package/dist/{_-Bv_QUFw4.js → _-BtSFcDLj.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-BHKGq8g4.js → _.vue_vue_type_style_index_0_lang-zf2i08XL.js} +5 -5
  21. package/dist/_.vue_vue_type_style_index_0_lang-zf2i08XL.js.br +0 -0
  22. package/dist/{_commonjsHelpers-4HJ9V5A_.js → _commonjsHelpers-DzP9V0uJ.js} +2 -2
  23. package/dist/{_sentry-release-injection-file-B7Jqb6lo.js → _sentry-release-injection-file-fvkcFI33.js} +3253 -3327
  24. package/dist/_sentry-release-injection-file-fvkcFI33.js.br +0 -0
  25. package/dist/availability.js +7 -7
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +2 -2
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +361 -354
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +9 -9
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +9 -9
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/{giftCard-D5RQomNw.js → giftCard-DbcQz3eJ.js} +18 -18
  36. package/dist/giftCard-DbcQz3eJ.js.br +0 -0
  37. package/dist/hotel.js +94 -94
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-DKJPmkN0.js → masonry.plugin-BX1LxkhS.js} +1328 -1317
  40. package/dist/masonry.plugin-BX1LxkhS.js.br +0 -0
  41. package/dist/{mitt-mvNuFbhJ.js → mitt-l8QPdH4v.js} +7 -6
  42. package/dist/mitt-l8QPdH4v.js.br +0 -0
  43. package/dist/polyfill.js +10 -9
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/dist/{tracing-CMlyHB3J.js → tracing-z3gaNes7.js} +5 -5
  48. package/dist/tracing-z3gaNes7.js.br +0 -0
  49. package/package.json +6 -6
  50. package/dist/ActionField-j1i8YL6H.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-78ug9z_g.js.br +0 -0
  52. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B72HmqV2.js.br +0 -0
  53. package/dist/CheckoutWindow-DYdrHbQ-.js.br +0 -0
  54. package/dist/ErrorMessage-DJ_hHpkR.js.br +0 -0
  55. package/dist/EventAvailabilityForm-B4Y8N8P1.js.br +0 -0
  56. package/dist/Field-CHlcB-1U.js.br +0 -0
  57. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CXrsASkr.js.br +0 -0
  58. package/dist/TermsOfService-BTaz4T1c.js.br +0 -0
  59. package/dist/_.vue_vue_type_style_index_0_lang-BHKGq8g4.js.br +0 -0
  60. package/dist/_sentry-release-injection-file-B7Jqb6lo.js.br +0 -0
  61. package/dist/giftCard-D5RQomNw.js.br +0 -0
  62. package/dist/masonry.plugin-DKJPmkN0.js.br +0 -0
  63. package/dist/mitt-mvNuFbhJ.js.br +0 -0
  64. package/dist/tracing-CMlyHB3J.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,57 +1,57 @@
1
- import { d as j, r as Ye, c as le, a as l, b as E, w as p, l as ne, u as e, e as t, f, g as c, i as h, t as o, m as Ze, q as Qe, s as z, F as B, v as N, S as We, x as ye, h as _e, p as Je, j as Ke, k as Xe } from "./_sentry-release-injection-file-B7Jqb6lo.js";
2
- import { u as ae, s as F, c as xe, i as et, m as tt } from "./mitt-mvNuFbhJ.js";
3
- import { a as Oe, l as nt, b as oe, c as ve, B as ot, _ as se, d as fe, e as Ae, I as be, s as lt, f as $e, g as ge, h as U, u as we, i as at, T as x, O as st, C as it, j as rt, k as dt, m as ct } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CXrsASkr.js";
4
- import { B as ut, R as mt, L as Se, S as pt, M as vt, C as bt, T as gt, V as ft, G as ht } from "./masonry.plugin-DKJPmkN0.js";
5
- import { c as kt, t as ee, g as Ve, e as yt, m as De, a as Ee, b as Te, d as _t, f as Pe, u as H } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B72HmqV2.js";
6
- import { _ as $t } from "./_.vue_vue_type_style_index_0_lang-BHKGq8g4.js";
7
- import { C as wt, P as Vt, a as Dt } from "./CheckoutWindow-DYdrHbQ-.js";
8
- import { E as Et } from "./EventAvailabilityForm-B4Y8N8P1.js";
1
+ import { d as Z, r as Ye, c as ae, a as l, b as T, w as p, l as ne, u as e, e as t, f as g, g as d, i as v, t as o, m as Ze, q as Qe, s as j, F as R, v as U, S as We, x as _e, h as $e, p as Je, j as Ke, k as Xe } from "./_sentry-release-injection-file-fvkcFI33.js";
2
+ import { u as se, s as q, c as xe, i as et, m as tt } from "./mitt-l8QPdH4v.js";
3
+ import { a as Ae, l as nt, b as oe, s as le, c as be, B as ot, _ as ie, d as he, e as Oe, I as ge, f as lt, g as fe, h as G, u as we, i as at, T as x, O as st, C as it, j as rt, k as ct, m as dt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js";
4
+ import { B as ut, R as mt, L as Se, S as pt, M as vt, C as bt, T as gt, V as ft, G as ht } from "./masonry.plugin-BX1LxkhS.js";
5
+ import { e as kt, c as yt, t as ee, g as Ve, m as De, a as Ee, b as Te, d as _t, f as Pe, u as Y } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js";
6
+ import { _ as $t } from "./_.vue_vue_type_style_index_0_lang-zf2i08XL.js";
7
+ import { C as wt, P as Vt, a as Dt } from "./CheckoutWindow-COyV5n05.js";
8
+ import { E as Et } from "./EventAvailabilityForm-CnfdAPBG.js";
9
9
  (function() {
10
10
  try {
11
11
  var u = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
12
- n && (u._sentryDebugIds = u._sentryDebugIds || {}, u._sentryDebugIds[n] = "754ac080-e1a3-4747-856b-3ede83ba473f", u._sentryDebugIdIdentifier = "sentry-dbid-754ac080-e1a3-4747-856b-3ede83ba473f");
12
+ n && (u._sentryDebugIds = u._sentryDebugIds || {}, u._sentryDebugIds[n] = "3e5fedb9-7f88-4aec-8442-69462a26d141", u._sentryDebugIdIdentifier = "sentry-dbid-3e5fedb9-7f88-4aec-8442-69462a26d141");
13
13
  } catch {
14
14
  }
15
15
  })();
16
16
  function Tt(u) {
17
17
  return (n) => {
18
- const i = Math[u], m = i(n);
18
+ const m = (u ? Math[u] : Math.trunc)(n);
19
19
  return m === 0 ? 0 : m;
20
20
  };
21
21
  }
22
- function Pt(u, n, i) {
23
- const k = _t().locale ?? yt, s = kt(u, n);
22
+ function Pt(u, n, r) {
23
+ const m = _t(), f = r?.locale ?? m.locale ?? kt, s = yt(u, n);
24
24
  if (isNaN(s))
25
25
  throw new RangeError("Invalid time value");
26
- const v = Object.assign({}, i, {
27
- addSuffix: i?.addSuffix,
26
+ const b = Object.assign({}, r, {
27
+ addSuffix: r?.addSuffix,
28
28
  comparison: s
29
29
  });
30
- let w, r;
31
- s > 0 ? (w = ee(n), r = ee(u)) : (w = ee(u), r = ee(n));
32
- const b = Tt("round"), _ = r.getTime() - w.getTime(), $ = _ / Pe, A = Ve(r) - Ve(w), O = (_ - A) / Pe, R = i?.unit;
33
- let d;
34
- if ($ < 1 ? d = "second" : $ < 60 ? d = "minute" : $ < De ? d = "hour" : O < Ee ? d = "day" : O < Te ? d = "month" : d = "year", d === "second") {
35
- const g = b(_ / 1e3);
36
- return k.formatDistance("xSeconds", g, v);
37
- } else if (d === "minute") {
38
- const g = b($);
39
- return k.formatDistance("xMinutes", g, v);
40
- } else if (d === "hour") {
41
- const g = b($ / 60);
42
- return k.formatDistance("xHours", g, v);
43
- } else if (d === "day") {
44
- const g = b(O / De);
45
- return k.formatDistance("xDays", g, v);
46
- } else if (d === "month") {
47
- const g = b(O / Ee);
48
- return g === 12 && R !== "month" ? k.formatDistance("xYears", 1, v) : k.formatDistance("xMonths", g, v);
30
+ let $, c;
31
+ s > 0 ? ($ = ee(n), c = ee(u)) : ($ = ee(u), c = ee(n));
32
+ const h = Tt(r?.roundingMethod ?? "round"), y = c.getTime() - $.getTime(), E = y / Pe, V = Ve(c) - Ve($), P = (y - V) / Pe, I = r?.unit;
33
+ let _;
34
+ if (I ? _ = I : E < 1 ? _ = "second" : E < 60 ? _ = "minute" : E < De ? _ = "hour" : P < Ee ? _ = "day" : P < Te ? _ = "month" : _ = "year", _ === "second") {
35
+ const i = h(y / 1e3);
36
+ return f.formatDistance("xSeconds", i, b);
37
+ } else if (_ === "minute") {
38
+ const i = h(E);
39
+ return f.formatDistance("xMinutes", i, b);
40
+ } else if (_ === "hour") {
41
+ const i = h(E / 60);
42
+ return f.formatDistance("xHours", i, b);
43
+ } else if (_ === "day") {
44
+ const i = h(P / De);
45
+ return f.formatDistance("xDays", i, b);
46
+ } else if (_ === "month") {
47
+ const i = h(P / Ee);
48
+ return i === 12 && I !== "month" ? f.formatDistance("xYears", 1, b) : f.formatDistance("xMonths", i, b);
49
49
  } else {
50
- const g = b(O / Te);
51
- return k.formatDistance("xYears", g, v);
50
+ const i = h(P / Te);
51
+ return f.formatDistance("xYears", i, b);
52
52
  }
53
53
  }
54
- const Ot = { class: "konnectio-event-listing-action" }, At = { class: "konnectio-event-listing-action-button" }, St = /* @__PURE__ */ j({
54
+ const At = { class: "konnectio-event-listing-action" }, Ot = { class: "konnectio-event-listing-action-button" }, St = /* @__PURE__ */ Z({
55
55
  __name: "_",
56
56
  props: {
57
57
  name: {},
@@ -74,70 +74,72 @@ const Ot = { class: "konnectio-event-listing-action" }, At = { class: "konnectio
74
74
  callback: {}
75
75
  },
76
76
  setup(u) {
77
- const { t: n } = ae(), i = u, { display: m } = Oe(), {
78
- maxNumberOfPeople: k,
77
+ const { t: n } = se(), r = u, { display: m } = Ae(), {
78
+ maxNumberOfPeople: f,
79
79
  numberOfPeople: s,
80
- eventId: v,
81
- tableGroupId: w
82
- } = F(H()), {
83
- getTemplateAvailability: r,
84
- getEventAvailability: b,
85
- isEventListingLoading: _
86
- } = H(), $ = Ye(0), A = le(() => _(i.listingId)), O = () => {
87
- $.value > 0 ? (v.value = i.listingId, s.value = $.value, r(i.callback)) : m({
80
+ eventId: b,
81
+ currentEventDate: $,
82
+ tableGroupId: c
83
+ } = q(Y()), {
84
+ getTemplateAvailability: h,
85
+ getEventAvailability: y,
86
+ isEventListingLoading: E
87
+ } = Y(), V = Ye(0), P = ae(() => E(r.listingId)), I = () => {
88
+ V.value > 0 ? (b.value = r.listingId, s.value = V.value, h(r.callback)) : m({
88
89
  type: "error",
89
90
  message: n("alert.error.selectPeople")
90
91
  });
91
- }, R = () => {
92
- $.value > 0 ? (v.value = i.listingId, w.value = i.tableGroupId, s.value = $.value, b(i.callback)) : m({
92
+ }, _ = () => {
93
+ V.value > 0 ? (b.value = r.listingId, c.value = r.tableGroupId, s.value = V.value, y(r.callback)) : m({
93
94
  type: "error",
94
95
  message: n("alert.error.selectPeople")
95
96
  });
96
97
  };
97
- return (d, g) => (l(), E(ut, {
98
+ return (i, L) => (l(), T(ut, {
98
99
  type: "event",
99
- "listing-id": d.listingId,
100
- gallery: d.gallery,
101
- name: d.name,
102
- description: d.description,
103
- "prices-from": d.fromPrice,
104
- "to-date": d.toDate,
100
+ "listing-id": i.listingId,
101
+ gallery: i.gallery,
102
+ name: i.name,
103
+ description: i.description,
104
+ "prices-from": i.fromPrice,
105
+ "to-date": i.toDate,
105
106
  layout: e(ot).Event
106
107
  }, {
107
108
  description: p(() => [
108
- ne(d.$slots, "description", { maxNumberOfPeople: e(k) }, void 0, !0)
109
+ ne(i.$slots, "description", { maxNumberOfPeople: e(f) }, void 0, !0)
109
110
  ]),
110
111
  action: p(() => [
111
- t("div", Ot, [
112
- f(oe, {
113
- modelValue: $.value,
114
- "onUpdate:modelValue": g[0] || (g[0] = (I) => $.value = I),
112
+ t("div", At, [
113
+ g(oe, {
114
+ modelValue: V.value,
115
+ "onUpdate:modelValue": L[0] || (L[0] = (N) => V.value = N),
115
116
  label: e(n)("event.numberOfGuests"),
116
117
  icon: "users",
117
118
  "icon-type": "fas",
118
119
  "icon-placement": "label",
119
- description: d.maxGuests <= 20 ? `${e(n)("general.availableFor")}: 1 - ${d.maxGuests} ${e(nt)(e(n)("general.guests"))}` : void 0,
120
+ description: i.maxGuests <= 20 ? `${e(n)("general.availableFor")}: 1 - ${i.maxGuests} ${e(nt)(e(n)("general.guests"))}` : void 0,
120
121
  "min-value": 0,
121
- "max-value": d.maxOnlineReservationLimit || d.maxGuests || e(k) || 1 / 0
122
+ "max-value": i.maxOnlineReservationLimit || i.maxGuests || e(f) || 1 / 0
122
123
  }, null, 8, ["modelValue", "label", "description", "max-value"]),
123
- t("div", At, [
124
- f(ve, {
125
- label: d.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
126
- disabled: d.soldOut,
127
- "is-loading": A.value,
128
- onClickEvent: g[1] || (g[1] = (I) => d.type === "event" ? R() : O())
129
- }, null, 8, ["label", "disabled", "is-loading"])
124
+ t("div", Ot, [
125
+ g(be, {
126
+ label: i.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
127
+ disabled: i.soldOut,
128
+ "is-loading": P.value,
129
+ "sub-label": e(le)(e($)),
130
+ onClickEvent: L[1] || (L[1] = (N) => i.type === "event" ? _() : I())
131
+ }, null, 8, ["label", "disabled", "is-loading", "sub-label"])
130
132
  ])
131
133
  ])
132
134
  ]),
133
135
  _: 3
134
136
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout"]));
135
137
  }
136
- }), Ce = /* @__PURE__ */ se(St, [["__scopeId", "data-v-a29b3262"]]), Ct = ["innerHTML"], It = { class: "konnectio-event-listing-information-new" };
138
+ }), Ce = /* @__PURE__ */ ie(St, [["__scopeId", "data-v-2b2c3763"]]), Ct = ["innerHTML"], It = { class: "konnectio-event-listing-information-new" };
137
139
  const Lt = {
138
140
  key: 1,
139
141
  class: "konnectio-pill-button"
140
- }, Bt = { class: "konnectio-pill-button" }, Nt = /* @__PURE__ */ j({
142
+ }, Bt = { class: "konnectio-pill-button" }, Nt = /* @__PURE__ */ Z({
141
143
  __name: "Event",
142
144
  props: {
143
145
  name: {},
@@ -159,14 +161,14 @@ const Lt = {
159
161
  callback: {}
160
162
  },
161
163
  setup(u) {
162
- const n = u, { t: i } = ae(), { hideEventLength: m } = F(fe()), k = le(() => {
164
+ const n = u, { t: r } = se(), { hideEventLength: m } = q(he()), f = ae(() => {
163
165
  const s = n.length.split(":");
164
166
  return console.log(s), Pt(
165
167
  new Date(2e3, 0, 1, Number(s[0]), Number(s[1]), 0),
166
168
  new Date(2e3, 0, 1, 0, 0, 0)
167
169
  );
168
170
  });
169
- return (s, v) => (l(), E(Ce, {
171
+ return (s, b) => (l(), T(Ce, {
170
172
  "listing-id": s.listingId,
171
173
  name: s.name,
172
174
  description: s.description,
@@ -179,29 +181,29 @@ const Lt = {
179
181
  callback: s.callback
180
182
  }, {
181
183
  description: p(() => [
182
- s.description ? (l(), c("p", {
184
+ s.description ? (l(), d("p", {
183
185
  key: 0,
184
- innerHTML: e(Ae)(s.description)
185
- }, null, 8, Ct)) : h("", !0),
186
+ innerHTML: e(Oe)(s.description)
187
+ }, null, 8, Ct)) : v("", !0),
186
188
  t("ul", It, [
187
- h("", !0),
188
- e(m) ? h("", !0) : (l(), c("li", Lt, [
189
+ v("", !0),
190
+ e(m) ? v("", !0) : (l(), d("li", Lt, [
189
191
  t("div", null, [
190
- f(be, {
192
+ g(ge, {
191
193
  icon: "calendar-clock",
192
194
  color: "header"
193
195
  }),
194
- t("span", null, o(e(i)("event.lengthOfEvent")), 1)
196
+ t("span", null, o(e(r)("event.lengthOfEvent")), 1)
195
197
  ]),
196
- t("span", null, o(k.value), 1)
198
+ t("span", null, o(f.value), 1)
197
199
  ])),
198
200
  t("li", Bt, [
199
201
  t("div", null, [
200
- f(be, {
202
+ g(ge, {
201
203
  icon: "calendar-clock",
202
204
  color: "header"
203
205
  }),
204
- t("span", null, o(e(i)("event.startAndEndTime")), 1)
206
+ t("span", null, o(e(r)("event.startAndEndTime")), 1)
205
207
  ]),
206
208
  t("span", null, o(e(lt)(s.timeFrom, s.timeTo)), 1)
207
209
  ])
@@ -210,7 +212,7 @@ const Lt = {
210
212
  _: 1
211
213
  }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "to-date", "callback"]));
212
214
  }
213
- }), Rt = /* @__PURE__ */ se(Nt, [["__scopeId", "data-v-93456ccd"]]), Mt = ["innerHTML"], Ut = /* @__PURE__ */ j({
215
+ }), Mt = /* @__PURE__ */ ie(Nt, [["__scopeId", "data-v-93456ccd"]]), Rt = ["innerHTML"], Ut = /* @__PURE__ */ Z({
214
216
  __name: "Template",
215
217
  props: {
216
218
  name: {},
@@ -227,7 +229,7 @@ const Lt = {
227
229
  callback: {}
228
230
  },
229
231
  setup(u) {
230
- const n = u, i = le(() => {
232
+ const n = u, r = ae(() => {
231
233
  if (n.image)
232
234
  return [{
233
235
  large: n.image,
@@ -236,9 +238,9 @@ const Lt = {
236
238
  url: n.image
237
239
  }];
238
240
  });
239
- return (m, k) => (l(), E(Ce, {
241
+ return (m, f) => (l(), T(Ce, {
240
242
  "listing-id": m.listingId,
241
- gallery: i.value,
243
+ gallery: r.value,
242
244
  name: m.name,
243
245
  description: m.description,
244
246
  "prices-from": m.fromPrice,
@@ -247,133 +249,138 @@ const Lt = {
247
249
  callback: m.callback
248
250
  }, {
249
251
  description: p(() => [
250
- m.description ? (l(), c("p", {
252
+ m.description ? (l(), d("p", {
251
253
  key: 0,
252
- innerHTML: e(Ae)(m.description)
253
- }, null, 8, Mt)) : h("", !0)
254
+ innerHTML: e(Oe)(m.description)
255
+ }, null, 8, Rt)) : v("", !0)
254
256
  ]),
255
257
  _: 1
256
258
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
257
259
  }
258
- }), Ft = { key: 0 }, Gt = { key: 1 }, qt = { key: 2 }, zt = { key: 3 }, Ht = { key: 4 }, jt = { key: 5 }, Yt = { key: 0 }, pe = /* @__PURE__ */ j({
260
+ }), Ft = { key: 0 }, Gt = { key: 1 }, qt = { key: 2 }, zt = { key: 3 }, Ht = { key: 4 }, jt = { key: 5 }, Yt = { key: 6 }, Zt = { key: 0 }, ve = /* @__PURE__ */ Z({
259
261
  __name: "EventReservationForm",
260
262
  props: {
261
263
  showGiftCard: { type: Boolean, default: !1 },
262
264
  showTermsNotice: { type: Boolean, default: !1 }
263
265
  },
264
266
  setup(u) {
265
- const { t: n } = ae(), i = Ze(), {
267
+ const { t: n } = se(), r = Ze(), {
266
268
  areListingsAvailable: m,
267
- arrivalTime: k,
269
+ arrivalTime: f,
268
270
  numberOfPeople: s,
269
- numberOfRooms: v,
270
- numberOfTotalDays: w,
271
- isTemplateEvent: r,
272
- length: b,
273
- fromDate: _,
274
- tableBasePrice: $,
275
- getTemplateData: A,
276
- basePrice: O,
277
- totalPrice: R,
278
- weekendFee: d,
279
- roomUpgrade: g,
280
- discountCode: I
281
- } = F(H()), { totalAddonPrice: ie, validateDiscountCode: re } = H(), { currency: J, hideEventLength: de } = F(fe());
282
- return (M, K) => (l(), E(mt, {
283
- "discount-code": e(I),
284
- "onUpdate:discountCode": K[0] || (K[0] = (q) => N(I) ? I.value = q : null),
285
- "validate-discount-code": e(re),
286
- "show-gift-card": M.showGiftCard,
287
- "show-terms-notice": M.showTermsNotice,
271
+ numberOfRooms: b,
272
+ numberOfTotalDays: $,
273
+ isTemplateEvent: c,
274
+ currentEventDate: h,
275
+ length: y,
276
+ fromDate: E,
277
+ tableBasePrice: V,
278
+ getTemplateData: P,
279
+ basePrice: I,
280
+ totalPrice: _,
281
+ weekendFee: i,
282
+ roomUpgrade: L,
283
+ discountCode: N
284
+ } = q(Y()), { totalAddonPrice: re, validateDiscountCode: ce } = Y(), { currency: K, hideEventLength: de } = q(he());
285
+ return (F, X) => (l(), T(mt, {
286
+ "discount-code": e(N),
287
+ "onUpdate:discountCode": X[0] || (X[0] = (H) => U(N) ? N.value = H : null),
288
+ "validate-discount-code": e(ce),
289
+ "show-gift-card": F.showGiftCard,
290
+ "show-terms-notice": F.showTermsNotice,
288
291
  "is-sidebar-loading": !e(m),
289
- "base-price": e(O),
290
- "total-price": e(R),
291
- "weekend-fee": e(d),
292
- "room-upgrade": e(g),
292
+ "base-price": e(I),
293
+ "total-price": e(_),
294
+ "weekend-fee": e(i),
295
+ "room-upgrade": e(L),
293
296
  notice: e(n)("event.reservationNotice")
294
297
  }, Qe({
295
298
  form: p(() => [
296
- ne(M.$slots, "form")
299
+ ne(F.$slots, "form")
297
300
  ]),
298
301
  "reservation-summary": p(() => [
299
- e(r) ? (l(), c("li", Ft, [
302
+ e(c) ? (l(), d("li", Ft, [
300
303
  t("span", null, o(e(n)("booking.reservation.arrival")), 1),
301
- t("b", null, o(e($e)(e(_))), 1)
302
- ])) : h("", !0),
303
- e(r) ? (l(), c("li", Gt, [
304
+ t("b", null, o(e(le)(e(E))), 1)
305
+ ])) : v("", !0),
306
+ e(c) ? (l(), d("li", Gt, [
304
307
  t("span", null, o(e(n)("booking.reservation.departure")), 1),
305
- t("b", null, o(e($e)(e(_), e(w))), 1)
306
- ])) : h("", !0),
308
+ t("b", null, o(e(le)(e(E), e($))), 1)
309
+ ])) : v("", !0),
310
+ e(c) ? v("", !0) : (l(), d("li", qt, [
311
+ t("span", null, o(e(n)("general.date")), 1),
312
+ t("b", null, o(e(le)(e(h))), 1)
313
+ ])),
307
314
  t("li", null, [
308
315
  t("span", null, o(e(n)("event.numberOfGuests")), 1),
309
316
  t("b", null, o(e(s)), 1)
310
317
  ]),
311
- e(r) ? (l(), c("li", qt, [
318
+ e(c) ? (l(), d("li", zt, [
312
319
  t("span", null, o(e(n)("event.numberOfRooms")), 1),
313
- t("b", null, o(e(v)), 1)
314
- ])) : h("", !0),
315
- e(r) ? (l(), c("li", zt, [
320
+ t("b", null, o(e(b)), 1)
321
+ ])) : v("", !0),
322
+ e(c) ? (l(), d("li", Ht, [
316
323
  t("span", null, o(e(n)("event.numberOfDays")), 1),
317
- t("b", null, o(e(w)), 1)
318
- ])) : h("", !0),
319
- !e(r) && e(k) ? (l(), c("li", Ht, [
324
+ t("b", null, o(e($)), 1)
325
+ ])) : v("", !0),
326
+ !e(c) && e(f) ? (l(), d("li", jt, [
320
327
  t("span", null, o(e(n)("event.startOfEvent")), 1),
321
- t("b", null, o(e(ge)(e(k))), 1)
322
- ])) : h("", !0),
323
- !e(r) && e(b) && !e(de) ? (l(), c("li", jt, [
328
+ t("b", null, o(e(fe)(e(f))), 1)
329
+ ])) : v("", !0),
330
+ !e(c) && e(y) && !e(de) ? (l(), d("li", Yt, [
324
331
  t("span", null, o(e(n)("event.lengthOfEvent")), 1),
325
- t("b", null, o(e(ge)(e(b))), 1)
326
- ])) : h("", !0)
332
+ t("b", null, o(e(fe)(e(y))), 1)
333
+ ])) : v("", !0)
327
334
  ]),
328
335
  "price-summary": p(() => [
329
- !e(r) && e($) > 0 ? (l(), c("li", Yt, [
336
+ !e(c) && e(V) > 0 ? (l(), d("li", Zt, [
330
337
  t("span", null, o(e(n)("booking.availability.basePrice")), 1),
331
- t("b", null, o(e(U)(e($), e(J))), 1)
332
- ])) : h("", !0),
333
- e(A) ? (l(!0), c(B, { key: 1 }, z(e(A), ({ roomGroupId: q }, X) => (l(), c("li", { key: q }, [
334
- t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(X + 1), 1),
335
- t("b", null, o(e(U)(e(ie)(q, X), e(J))), 1)
336
- ]))), 128)) : h("", !0)
338
+ t("b", null, o(e(G)(e(V), e(K))), 1)
339
+ ])) : v("", !0),
340
+ e(P) ? (l(!0), d(R, { key: 1 }, j(e(P), ({ roomGroupId: H }, M) => (l(), d("li", { key: H }, [
341
+ t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(M + 1), 1),
342
+ t("b", null, o(e(G)(e(re)(H, M), e(K))), 1)
343
+ ]))), 128)) : v("", !0)
337
344
  ]),
338
345
  navigation: p(() => [
339
- ne(M.$slots, "navigation")
346
+ ne(F.$slots, "navigation")
340
347
  ]),
341
348
  _: 2
342
349
  }, [
343
- e(i).sidebar ? {
350
+ e(r).sidebar ? {
344
351
  name: "sidebar",
345
352
  fn: p(() => [
346
- ne(M.$slots, "sidebar")
353
+ ne(F.$slots, "sidebar")
347
354
  ]),
348
355
  key: "0"
349
356
  } : void 0
350
357
  ]), 1032, ["discount-code", "validate-discount-code", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "notice"]));
351
358
  }
352
- }), Zt = { class: "event-skeleton" }, Qt = { class: "event-skeleton-content" }, Wt = { class: "event-skeleton-sidebar" }, Jt = /* @__PURE__ */ j({
359
+ }), Qt = { class: "event-skeleton" }, Wt = { class: "event-skeleton-content" }, Jt = { class: "event-skeleton-sidebar" }, Kt = /* @__PURE__ */ Z({
353
360
  __name: "EventSkeleton",
354
361
  setup(u) {
355
- return (n, i) => (l(), c("div", Zt, [
356
- t("div", Qt, [
357
- f(Se)
358
- ]),
362
+ return (n, r) => (l(), d("div", Qt, [
359
363
  t("div", Wt, [
360
- h("", !0),
361
- f(pt)
364
+ g(Se)
365
+ ]),
366
+ t("div", Jt, [
367
+ v("", !0),
368
+ g(pt)
362
369
  ])
363
370
  ]));
364
371
  }
365
- }), Kt = /* @__PURE__ */ se(Jt, [["__scopeId", "data-v-3e15c4e3"]]), G = (u) => (Je("data-v-62ec24db"), u = u(), Ke(), u), Xt = {
372
+ }), Xt = /* @__PURE__ */ ie(Kt, [["__scopeId", "data-v-3e15c4e3"]]), z = (u) => (Je("data-v-62ec24db"), u = u(), Ke(), u), xt = {
366
373
  key: 0,
367
374
  id: "konnectio-event-listings-wrapper"
368
375
  };
369
- const xt = { class: "konnectio-event-listings" };
370
- const en = { class: "konnectio-event-listings" }, tn = {
376
+ const en = { class: "konnectio-event-listings" };
377
+ const tn = { class: "konnectio-event-listings" }, nn = {
371
378
  key: 2,
372
379
  class: "konnectio-panel"
373
- }, nn = { class: "konnectio-panel" }, on = {
380
+ }, on = { class: "konnectio-panel" }, ln = {
374
381
  key: 0,
375
382
  id: "konnectio-event-addons"
376
- }, ln = { class: "konnectio-table with-lines" }, an = /* @__PURE__ */ G(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), sn = { class: "konnectio-event-addons-price" }, rn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("br", null, null, -1)), dn = { class: "konnectio-event-addons-input" }, cn = { class: "konnectio-event-addons-price" }, un = /* @__PURE__ */ G(() => /* @__PURE__ */ t("td", null, null, -1)), mn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("td", null, null, -1)), pn = { class: "konnectio-event-addons-price" }, vn = { key: 1 }, bn = { class: "konnectio-label required" }, gn = { class: "konnectio-table with-lines" }, fn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), hn = { class: "konnectio-event-addons-price" }, kn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("br", null, null, -1)), yn = /* @__PURE__ */ G(() => /* @__PURE__ */ t("br", null, null, -1)), _n = { class: "konnectio-event-addons-input" }, $n = { class: "konnectio-event-addons-price" }, wn = ["onClick"], Vn = { class: "konnectio-panel" }, Dn = ["onClick"], En = /* @__PURE__ */ j({
383
+ }, an = { class: "konnectio-table with-lines" }, sn = /* @__PURE__ */ z(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), rn = { class: "konnectio-event-addons-price" }, cn = /* @__PURE__ */ z(() => /* @__PURE__ */ t("br", null, null, -1)), dn = { class: "konnectio-event-addons-input" }, un = { class: "konnectio-event-addons-price" }, mn = /* @__PURE__ */ z(() => /* @__PURE__ */ t("td", null, null, -1)), pn = /* @__PURE__ */ z(() => /* @__PURE__ */ t("td", null, null, -1)), vn = { class: "konnectio-event-addons-price" }, bn = { key: 1 }, gn = { class: "konnectio-label required" }, fn = { class: "konnectio-table with-lines" }, hn = /* @__PURE__ */ z(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), kn = { class: "konnectio-event-addons-price" }, yn = /* @__PURE__ */ z(() => /* @__PURE__ */ t("br", null, null, -1)), _n = /* @__PURE__ */ z(() => /* @__PURE__ */ t("br", null, null, -1)), $n = { class: "konnectio-event-addons-input" }, wn = { class: "konnectio-event-addons-price" }, Vn = ["onClick"], Dn = { class: "konnectio-panel" }, En = ["onClick"], Tn = /* @__PURE__ */ Z({
377
384
  name: "EventLayout",
378
385
  __name: "Event",
379
386
  props: {
@@ -383,39 +390,39 @@ const en = { class: "konnectio-event-listings" }, tn = {
383
390
  styling: {}
384
391
  },
385
392
  setup(u) {
386
- const { t: n } = ae(), {
387
- addons: i,
393
+ const { t: n } = se(), {
394
+ addons: r,
388
395
  products: m,
389
- numberOfDays: k,
396
+ numberOfDays: f,
390
397
  name: s,
391
- phone: v,
392
- email: w,
393
- remark: r,
394
- allergies: b,
395
- arrivalTime: _,
396
- hasEvents: $,
397
- hasTemplates: A,
398
- getEvents: O,
399
- getTemplates: R,
400
- getEventData: d,
401
- getTemplateData: g,
402
- getEventTableData: I,
403
- hasProducts: ie,
398
+ phone: b,
399
+ email: $,
400
+ remark: c,
401
+ allergies: h,
402
+ arrivalTime: y,
403
+ hasEvents: E,
404
+ hasTemplates: V,
405
+ getEvents: P,
406
+ getTemplates: I,
407
+ getEventData: _,
408
+ getTemplateData: i,
409
+ getEventTableData: L,
410
+ hasProducts: N,
404
411
  eventRateType: re,
405
- areListingsAvailable: J,
406
- isAvailabilityDataAvailable: de,
407
- hasListingData: M,
408
- isPaymentLoading: K,
409
- isReservationFormFilled: q,
410
- requiresArrivalTime: X
411
- } = F(H()), { currency: Y } = F(fe()), { eventDate: Ie, eventLocation: Le } = F(we()), { isValidRestaurantId: Be } = we(), {
412
+ areListingsAvailable: ce,
413
+ isAvailabilityDataAvailable: K,
414
+ hasListingData: de,
415
+ isPaymentLoading: F,
416
+ isReservationFormFilled: X,
417
+ requiresArrivalTime: H
418
+ } = q(Y()), { currency: M } = q(he()), { eventDate: Ie, eventLocation: Le } = q(we()), { isValidRestaurantId: Be } = we(), {
412
419
  initialize: Ne,
413
- fetchListings: Re,
414
- createBooking: Me,
415
- localAddonPrice: he,
420
+ fetchListings: Me,
421
+ createBooking: Re,
422
+ localAddonPrice: ke,
416
423
  totalAddonPrice: Ue,
417
- reset: ke
418
- } = H(), { display: ce } = Oe(), Fe = [
424
+ reset: ye
425
+ } = Y(), { display: ue } = Ae(), Fe = [
419
426
  {
420
427
  id: "availability",
421
428
  label: n("booking.availability.title"),
@@ -441,294 +448,294 @@ const en = { class: "konnectio-event-listings" }, tn = {
441
448
  label: n("booking.confirmation.title"),
442
449
  icon: "calendar-check"
443
450
  }
444
- ], Ge = le(() => {
445
- const V = [];
446
- return I.value && I.value.forEach((y) => {
447
- V.push({
448
- label: ge(y.time),
449
- value: y.time
451
+ ], Ge = ae(() => {
452
+ const w = [];
453
+ return L.value && L.value.forEach((k) => {
454
+ w.push({
455
+ label: fe(k.time),
456
+ value: k.time
450
457
  });
451
- }), V;
458
+ }), w;
452
459
  });
453
460
  function qe() {
454
- const V = rt("hash-params", {
461
+ const w = rt("hash-params", {
455
462
  removeNullishValues: !0
456
- }), y = parseInt(V.rid), S = V.d, T = parseInt(V.eid);
463
+ }), k = parseInt(w.rid), S = w.d, A = parseInt(w.eid);
457
464
  if (S)
458
- if (dt(S)) {
459
- const C = new Date(S), L = C.setHours(12, 0, 0, 0), D = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
460
- L >= D ? (Ie.value = C, V.d = void 0) : ce({
465
+ if (ct(S)) {
466
+ const C = new Date(S), B = C.setHours(12, 0, 0, 0), D = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
467
+ B >= D ? (Ie.value = C, w.d = void 0) : ue({
461
468
  message: n("alert.error.invalidDateRange"),
462
469
  type: "error"
463
470
  });
464
471
  } else
465
- ce({
472
+ ue({
466
473
  message: n("alert.error.wrongDateFormat"),
467
474
  type: "error"
468
475
  });
469
- isNaN(y) || (Be(y) ? (Le.value = y, V.rid = void 0) : ce({
476
+ isNaN(k) || (Be(k) ? (Le.value = k, w.rid = void 0) : ue({
470
477
  message: n("alert.error.hotelIdNotFound"),
471
478
  type: "error"
472
479
  }));
473
480
  let a;
474
- isNaN(T) || (a = T), Re(a);
481
+ isNaN(A) || (a = A), Me(a);
475
482
  }
476
- return (V, y) => (l(), E(it, { styling: V.styling }, {
483
+ return (w, k) => (l(), T(it, { styling: w.styling }, {
477
484
  default: p(() => [
478
- (l(), E(We, { onResolve: qe }, {
485
+ (l(), T(We, { onResolve: qe }, {
479
486
  default: p(() => [
480
- f($t, {
487
+ g($t, {
481
488
  id: "konnectio-event-module",
482
- "access-token": V.accessToken,
489
+ "access-token": w.accessToken,
483
490
  callback: e(Ne)
484
491
  }, {
485
492
  default: p(() => [
486
- f(vt, { steps: Fe }, {
493
+ g(vt, { steps: Fe }, {
487
494
  availability: p(({ next: S }) => [
488
- f(pe, null, {
495
+ g(ve, null, {
489
496
  sidebar: p(() => [
490
- f(Et, {
497
+ g(Et, {
491
498
  redirection: !1,
492
- "selected-location": Number(V.selectedLocation)
499
+ "selected-location": Number(w.selectedLocation)
493
500
  }, null, 8, ["selected-location"])
494
501
  ]),
495
502
  form: p(() => [
496
- e(M) && e(J) ? (l(), c("div", Xt, [
497
- e($) && V.onlyShow !== "templates" ? (l(), c(B, { key: 0 }, [
498
- h("", !0),
499
- t("ul", xt, [
500
- (l(!0), c(B, null, z(e(O), ({
501
- id: T,
503
+ e(de) && e(ce) ? (l(), d("div", xt, [
504
+ e(E) && w.onlyShow !== "templates" ? (l(), d(R, { key: 0 }, [
505
+ v("", !0),
506
+ t("ul", en, [
507
+ (l(!0), d(R, null, j(e(P), ({
508
+ id: A,
502
509
  days: a,
503
510
  name: C,
504
- timeFrom: L,
511
+ timeFrom: B,
505
512
  timeTo: D,
506
- fromDate: P,
507
- toDate: Z,
508
- tableGroupId: Q,
509
- description: ue,
510
- soldOut: me,
511
- length: W,
513
+ fromDate: O,
514
+ toDate: Q,
515
+ tableGroupId: W,
516
+ description: me,
517
+ soldOut: pe,
518
+ length: J,
512
519
  images: ze,
513
520
  maxOnlineReservationLimit: He,
514
521
  maxPaxPerReservation: je
515
- }) => (l(), E(Rt, {
516
- key: T,
522
+ }) => (l(), T(Mt, {
523
+ key: A,
517
524
  type: "event",
518
- "listing-id": T,
519
- "table-group-id": Q,
520
- description: ue,
525
+ "listing-id": A,
526
+ "table-group-id": W,
527
+ description: me,
521
528
  name: C,
522
- length: W,
529
+ length: J,
523
530
  gallery: ze,
524
531
  days: a,
525
- "from-date": P,
526
- "to-date": Z,
532
+ "from-date": O,
533
+ "to-date": Q,
527
534
  "max-online-reservation-limit": je || He,
528
- "time-from": L,
535
+ "time-from": B,
529
536
  "time-to": D,
530
- "sold-out": me,
537
+ "sold-out": pe,
531
538
  callback: S
532
539
  }, 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", "callback"]))), 128))
533
540
  ])
534
- ], 64)) : h("", !0),
535
- e(A) && V.onlyShow !== "events" ? (l(), c(B, { key: 1 }, [
536
- h("", !0),
537
- t("ul", en, [
538
- (l(!0), c(B, null, z(e(R), ({
539
- id: T,
541
+ ], 64)) : v("", !0),
542
+ e(V) && w.onlyShow !== "events" ? (l(), d(R, { key: 1 }, [
543
+ v("", !0),
544
+ t("ul", tn, [
545
+ (l(!0), d(R, null, j(e(I), ({
546
+ id: A,
540
547
  name: a,
541
548
  fromDate: C,
542
- toDate: L,
549
+ toDate: B,
543
550
  minimumPersonCount: D,
544
- fromPrice: P,
545
- description: Z,
546
- imageUrl: Q
547
- }) => (l(), E(Ut, {
548
- key: T,
549
- "listing-id": T,
551
+ fromPrice: O,
552
+ description: Q,
553
+ imageUrl: W
554
+ }) => (l(), T(Ut, {
555
+ key: A,
556
+ "listing-id": A,
550
557
  name: a,
551
- image: Q,
552
- description: Z,
558
+ image: W,
559
+ description: Q,
553
560
  "from-date": C,
554
- "to-date": L,
561
+ "to-date": B,
555
562
  "minimum-person-count": D,
556
- fromPrice: P,
563
+ fromPrice: O,
557
564
  callback: S
558
565
  }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
559
566
  ])
560
- ], 64)) : h("", !0),
561
- !e($) && !e(A) || !e($) && V.onlyShow === "events" || !e(A) && V.onlyShow === "templates" ? (l(), c("div", tn, [
567
+ ], 64)) : v("", !0),
568
+ !e(E) && !e(V) || !e(E) && w.onlyShow === "events" || !e(V) && w.onlyShow === "templates" ? (l(), d("div", nn, [
562
569
  t("span", null, o(e(n)("event.nothingAvailable")), 1)
563
- ])) : h("", !0)
564
- ])) : (l(), E(Se, { key: 1 }))
570
+ ])) : v("", !0)
571
+ ])) : (l(), T(Se, { key: 1 }))
565
572
  ]),
566
573
  _: 2
567
574
  }, 1024)
568
575
  ]),
569
- addons: p(({ next: S, prev: T }) => [
570
- e(de) ? (l(), E(pe, { key: 0 }, {
576
+ addons: p(({ next: S, prev: A }) => [
577
+ e(K) ? (l(), T(ve, { key: 0 }, {
571
578
  form: p(() => [
572
- t("form", nn, [
579
+ t("form", on, [
573
580
  t("h2", null, [
574
581
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
575
582
  ]),
576
- e(g) && e(g).length > 0 ? (l(), c("ul", on, [
577
- (l(!0), c(B, null, z(e(g), ({
583
+ e(i) && e(i).length > 0 ? (l(), d("ul", ln, [
584
+ (l(!0), d(R, null, j(e(i), ({
578
585
  roomGroupId: a,
579
586
  addons: C,
580
- adultPerRoom: L
581
- }, D) => (l(), c("li", { key: a }, [
587
+ adultPerRoom: B
588
+ }, D) => (l(), d("li", { key: a }, [
582
589
  t("h5", null, [
583
590
  t("span", null, o(e(n)("booking.reservation.room")) + " #" + o(D + 1), 1),
584
- ye(" ("),
585
- f(be, {
591
+ _e(" ("),
592
+ g(ge, {
586
593
  icon: "male",
587
594
  type: "fas",
588
595
  color: "header"
589
596
  }),
590
- ye(" " + o(L) + ") ", 1)
597
+ _e(" " + o(B) + ") ", 1)
591
598
  ]),
592
- t("table", ln, [
599
+ t("table", an, [
593
600
  t("thead", null, [
594
601
  t("tr", null, [
595
602
  t("th", null, [
596
603
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
597
604
  ]),
598
- an,
599
- t("th", sn, [
605
+ sn,
606
+ t("th", rn, [
600
607
  t("span", null, o(e(n)("booking.availability.price")), 1)
601
608
  ])
602
609
  ])
603
610
  ]),
604
611
  t("tbody", null, [
605
- (l(!0), c(B, null, z(C, ({
606
- id: P,
607
- cardinality: Z,
608
- name: Q,
609
- price: ue,
610
- quantityStrategy: me
611
- }) => (l(), c("tr", { key: P }, [
612
+ (l(!0), d(R, null, j(C, ({
613
+ id: O,
614
+ cardinality: Q,
615
+ name: W,
616
+ price: me,
617
+ quantityStrategy: pe
618
+ }) => (l(), d("tr", { key: O }, [
612
619
  t("td", null, [
613
- t("b", null, o(Q), 1),
614
- rn,
615
- t("span", null, o(e(U)(ue, e(Y))) + " " + o(e(at)(me)), 1)
620
+ t("b", null, o(W), 1),
621
+ cn,
622
+ t("span", null, o(e(G)(me, e(M))) + " " + o(e(at)(pe)), 1)
616
623
  ]),
617
624
  t("td", dn, [
618
- Z === 3 ? (l(), E(oe, {
625
+ Q === 3 ? (l(), T(oe, {
619
626
  key: 0,
620
- modelValue: e(i)[`${a}.${P}.${D}`],
621
- "onUpdate:modelValue": (W) => e(i)[`${a}.${P}.${D}`] = W,
627
+ modelValue: e(r)[`${a}.${O}.${D}`],
628
+ "onUpdate:modelValue": (J) => e(r)[`${a}.${O}.${D}`] = J,
622
629
  small: !0,
623
630
  "min-value": 0
624
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), E(wt, {
631
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), T(wt, {
625
632
  key: 1,
626
- modelValue: e(i)[`${a}.${P}.${D}`],
627
- "onUpdate:modelValue": (W) => e(i)[`${a}.${P}.${D}`] = W,
633
+ modelValue: e(r)[`${a}.${O}.${D}`],
634
+ "onUpdate:modelValue": (J) => e(r)[`${a}.${O}.${D}`] = J,
628
635
  numeric: !0
629
636
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
630
637
  ]),
631
- t("td", cn, [
632
- t("span", null, o(e(U)(e(he)(P, a, D), e(Y))), 1)
638
+ t("td", un, [
639
+ t("span", null, o(e(G)(e(ke)(O, a, D), e(M))), 1)
633
640
  ])
634
641
  ]))), 128))
635
642
  ]),
636
643
  t("tfoot", null, [
637
644
  t("tr", null, [
638
- un,
639
645
  mn,
640
- t("td", pn, [
646
+ pn,
647
+ t("td", vn, [
641
648
  t("u", null, [
642
- t("span", null, o(e(U)(e(Ue)(a, D), e(Y))), 1)
649
+ t("span", null, o(e(G)(e(Ue)(a, D), e(M))), 1)
643
650
  ])
644
651
  ])
645
652
  ])
646
653
  ])
647
654
  ])
648
655
  ]))), 128))
649
- ])) : h("", !0),
650
- e(ie) ? (l(), c("div", vn, [
651
- t("label", bn, [
656
+ ])) : v("", !0),
657
+ e(N) ? (l(), d("div", bn, [
658
+ t("label", gn, [
652
659
  t("span", null, o(e(n)("event.selectProducts")), 1)
653
660
  ]),
654
- t("table", gn, [
661
+ t("table", fn, [
655
662
  t("thead", null, [
656
663
  t("tr", null, [
657
664
  t("th", null, [
658
665
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
659
666
  ]),
660
- fn,
661
- t("th", hn, [
667
+ hn,
668
+ t("th", kn, [
662
669
  t("span", null, o(e(n)("booking.availability.price")), 1)
663
670
  ])
664
671
  ])
665
672
  ]),
666
673
  t("tbody", null, [
667
- (l(!0), c(B, null, z(e(d).products, ({ productID: a, productName: C, price: L, description: D }) => (l(), c("tr", { key: a }, [
674
+ (l(!0), d(R, null, j(e(_).products, ({ productID: a, productName: C, price: B, description: D }) => (l(), d("tr", { key: a }, [
668
675
  t("td", null, [
669
676
  t("b", null, [
670
677
  t("span", null, o(C), 1)
671
678
  ]),
672
- kn,
673
- t("span", null, o(D), 1),
674
679
  yn,
675
- t("span", null, o(e(U)(L, e(Y))), 1)
680
+ t("span", null, o(D), 1),
681
+ _n,
682
+ t("span", null, o(e(G)(B, e(M))), 1)
676
683
  ]),
677
- t("td", _n, [
678
- f(oe, {
684
+ t("td", $n, [
685
+ g(oe, {
679
686
  modelValue: e(m)[a],
680
- "onUpdate:modelValue": (P) => e(m)[a] = P,
687
+ "onUpdate:modelValue": (O) => e(m)[a] = O,
681
688
  small: !0,
682
689
  "min-value": 0
683
690
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
684
691
  ]),
685
- t("td", $n, [
686
- t("span", null, o(e(U)(e(he)(a), e(Y))), 1)
692
+ t("td", wn, [
693
+ t("span", null, o(e(G)(e(ke)(a), e(M))), 1)
687
694
  ])
688
695
  ]))), 128))
689
696
  ])
690
697
  ])
691
- ])) : h("", !0)
698
+ ])) : v("", !0)
692
699
  ])
693
700
  ]),
694
701
  navigation: p(() => [
695
- f(ve, {
702
+ g(be, {
696
703
  label: e(n)("event.startReservation"),
697
704
  "full-width": "",
698
705
  onClickEvent: S
699
706
  }, null, 8, ["label", "onClickEvent"]),
700
707
  t("button", {
701
708
  class: "konnectio-abort-reservation link",
702
- onClick: _e((a) => e(ke)(T), ["prevent"])
709
+ onClick: $e((a) => e(ye)(A), ["prevent"])
703
710
  }, [
704
711
  t("span", null, o(e(n)("general.goAStepBack")), 1)
705
- ], 8, wn)
712
+ ], 8, Vn)
706
713
  ]),
707
714
  _: 2
708
- }, 1024)) : h("", !0)
715
+ }, 1024)) : v("", !0)
709
716
  ]),
710
- reservation: p(({ next: S, prev: T }) => [
711
- f(pe, {
717
+ reservation: p(({ next: S, prev: A }) => [
718
+ g(ve, {
712
719
  "show-terms-notice": !0,
713
720
  "show-gift-card": !0
714
721
  }, {
715
722
  form: p(() => [
716
- t("form", Vn, [
723
+ t("form", Dn, [
717
724
  t("h2", null, [
718
725
  t("span", null, o(e(n)("booking.reservation.detailsTitle")), 1)
719
726
  ]),
720
- f(x, {
727
+ g(x, {
721
728
  modelValue: e(s),
722
- "onUpdate:modelValue": y[0] || (y[0] = (a) => N(s) ? s.value = a : null),
729
+ "onUpdate:modelValue": k[0] || (k[0] = (a) => U(s) ? s.value = a : null),
723
730
  type: "text",
724
731
  label: e(n)("booking.reservation.name"),
725
732
  icon: "user-alt",
726
733
  placeholder: e(n)("booking.reservation.namePlaceholder"),
727
734
  required: ""
728
735
  }, null, 8, ["modelValue", "label", "placeholder"]),
729
- f(x, {
730
- modelValue: e(w),
731
- "onUpdate:modelValue": y[1] || (y[1] = (a) => N(w) ? w.value = a : null),
736
+ g(x, {
737
+ modelValue: e($),
738
+ "onUpdate:modelValue": k[1] || (k[1] = (a) => U($) ? $.value = a : null),
732
739
  label: e(n)("booking.reservation.email"),
733
740
  type: "email",
734
741
  name: "email",
@@ -737,42 +744,42 @@ const en = { class: "konnectio-event-listings" }, tn = {
737
744
  placeholder: e(n)("booking.reservation.emailPlaceholder"),
738
745
  required: ""
739
746
  }, null, 8, ["modelValue", "label", "placeholder"]),
740
- f(Vt, {
741
- modelValue: e(v),
742
- "onUpdate:modelValue": y[2] || (y[2] = (a) => N(v) ? v.value = a : null),
747
+ g(Vt, {
748
+ modelValue: e(b),
749
+ "onUpdate:modelValue": k[2] || (k[2] = (a) => U(b) ? b.value = a : null),
743
750
  label: e(n)("booking.reservation.phone"),
744
751
  icon: "phone-office",
745
752
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
746
753
  required: ""
747
754
  }, null, 8, ["modelValue", "label", "placeholder"]),
748
- e(X) ? (l(), E(bt, {
755
+ e(H) ? (l(), T(bt, {
749
756
  key: 0,
750
- modelValue: e(_),
751
- "onUpdate:modelValue": y[3] || (y[3] = (a) => N(_) ? _.value = a : null),
757
+ modelValue: e(y),
758
+ "onUpdate:modelValue": k[3] || (k[3] = (a) => U(y) ? y.value = a : null),
752
759
  label: e(n)("event.selectArrivalTime"),
753
760
  name: "eventTimeTable",
754
761
  checkboxes: Ge.value,
755
762
  required: ""
756
- }, null, 8, ["modelValue", "label", "checkboxes"])) : h("", !0),
757
- e(re) === e(st).FullDayEvent ? (l(), E(oe, {
763
+ }, null, 8, ["modelValue", "label", "checkboxes"])) : v("", !0),
764
+ e(re) === e(st).FullDayEvent ? (l(), T(oe, {
758
765
  key: 1,
759
- modelValue: e(k),
760
- "onUpdate:modelValue": y[4] || (y[4] = (a) => N(k) ? k.value = a : null),
766
+ modelValue: e(f),
767
+ "onUpdate:modelValue": k[4] || (k[4] = (a) => U(f) ? f.value = a : null),
761
768
  label: e(n)("event.numberOfDays"),
762
769
  "min-value": 1,
763
770
  required: ""
764
- }, null, 8, ["modelValue", "label"])) : h("", !0),
765
- f(x, {
766
- modelValue: e(r),
767
- "onUpdate:modelValue": y[5] || (y[5] = (a) => N(r) ? r.value = a : null),
771
+ }, null, 8, ["modelValue", "label"])) : v("", !0),
772
+ g(x, {
773
+ modelValue: e(c),
774
+ "onUpdate:modelValue": k[5] || (k[5] = (a) => U(c) ? c.value = a : null),
768
775
  type: "textarea",
769
776
  label: `${e(n)("booking.reservation.remark")} (${e(n)("booking.reservation.optional")})`,
770
777
  icon: "info-circle",
771
778
  placeholder: e(n)("booking.reservation.remarkPlaceholder")
772
779
  }, null, 8, ["modelValue", "label", "placeholder"]),
773
- f(x, {
774
- modelValue: e(b),
775
- "onUpdate:modelValue": y[6] || (y[6] = (a) => N(b) ? b.value = a : null),
780
+ g(x, {
781
+ modelValue: e(h),
782
+ "onUpdate:modelValue": k[6] || (k[6] = (a) => U(h) ? h.value = a : null),
776
783
  type: "textarea",
777
784
  label: `${e(n)("booking.reservation.allergies")} (${e(n)("booking.reservation.optional")})`,
778
785
  icon: "allergies",
@@ -781,28 +788,28 @@ const en = { class: "konnectio-event-listings" }, tn = {
781
788
  ])
782
789
  ]),
783
790
  navigation: p(() => [
784
- f(ve, {
791
+ g(be, {
785
792
  label: e(n)("general.confirmReservation"),
786
- "is-loading": e(K),
787
- disabled: !e(q),
793
+ "is-loading": e(F),
794
+ disabled: !e(X),
788
795
  "full-width": "",
789
- onClickEvent: (a) => e(Me)(S)
796
+ onClickEvent: (a) => e(Re)(S)
790
797
  }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"]),
791
798
  t("button", {
792
799
  class: "konnectio-abort-reservation link",
793
- onClick: _e((a) => e(ke)(T), ["prevent"])
800
+ onClick: $e((a) => e(ye)(A), ["prevent"])
794
801
  }, [
795
802
  t("span", null, o(e(n)("general.goAStepBack")), 1)
796
- ], 8, Dn)
803
+ ], 8, En)
797
804
  ]),
798
805
  _: 2
799
806
  }, 1024)
800
807
  ]),
801
808
  payment: p(() => [
802
- f(Dt)
809
+ g(Dt)
803
810
  ]),
804
811
  confirmation: p(() => [
805
- f(gt, {
812
+ g(gt, {
806
813
  message: e(n)("event.confirmationMessage")
807
814
  }, null, 8, ["message"])
808
815
  ]),
@@ -813,7 +820,7 @@ const en = { class: "konnectio-event-listings" }, tn = {
813
820
  }, 8, ["access-token", "callback"])
814
821
  ]),
815
822
  fallback: p(() => [
816
- f(Kt)
823
+ g(Xt)
817
824
  ]),
818
825
  _: 1
819
826
  }))
@@ -821,7 +828,7 @@ const en = { class: "konnectio-event-listings" }, tn = {
821
828
  _: 1
822
829
  }, 8, ["styling"]));
823
830
  }
824
- }), te = /* @__PURE__ */ se(En, [["__scopeId", "data-v-62ec24db"]]), Tn = xe(), Pn = tt();
831
+ }), te = /* @__PURE__ */ ie(Tn, [["__scopeId", "data-v-62ec24db"]]), Pn = xe(), An = tt();
825
832
  class On extends HTMLElement {
826
833
  vueApp;
827
834
  constructor() {
@@ -832,21 +839,21 @@ class On extends HTMLElement {
832
839
  }
833
840
  connectedCallback() {
834
841
  const n = typeof te == "function" ? te.options : te;
835
- let i = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
836
- const m = (r) => r.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (b, _) => (_ ? "-" : "") + b.toLowerCase()), k = (r) => r.replace(/-./g, (b) => b[1].toUpperCase()), s = {};
837
- i = i.map(m);
838
- const v = {};
839
- for (const r of this.attributes) {
840
- const _ = r.name.split(".");
841
- _.length > 1 && (v[_[0]] || (v[_[0]] = {}), v[_[0]][k(_[1])] = r.value);
842
+ let r = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
843
+ const m = (c) => c.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (h, y) => (y ? "-" : "") + h.toLowerCase()), f = (c) => c.replace(/-./g, (h) => h[1].toUpperCase()), s = {};
844
+ r = r.map(m);
845
+ const b = {};
846
+ for (const c of this.attributes) {
847
+ const y = c.name.split(".");
848
+ y.length > 1 && (b[y[0]] || (b[y[0]] = {}), b[y[0]][f(y[1])] = c.value);
842
849
  }
843
- for (const r of i) {
844
- let b = this.attributes.getNamedItem(r)?.value;
845
- v.hasOwnProperty(r) && (b = v[r]), s[r] = b;
850
+ for (const c of r) {
851
+ let h = this.attributes.getNamedItem(c)?.value;
852
+ b.hasOwnProperty(c) && (h = b[c]), s[c] = h;
846
853
  }
847
- this.vueApp = Xe(te, s), this.vueApp.provide("emitter", Pn), this.vueApp.use(et), this.vueApp.use(Tn), this.vueApp.use(ft), this.vueApp.use(ht), this.vueApp.use(ct, { bootstrap: !0 });
848
- const w = document.createElement("div");
849
- this.vueApp.mount(w), this.appendChild(w.children[0]);
854
+ this.vueApp = Xe(te, s), this.vueApp.provide("emitter", An), this.vueApp.use(et), this.vueApp.use(Pn), this.vueApp.use(ft), this.vueApp.use(ht), this.vueApp.use(dt, { bootstrap: !0 });
855
+ const $ = document.createElement("div");
856
+ this.vueApp.mount($), this.appendChild($.children[0]);
850
857
  }
851
858
  }
852
859
  window.customElements.define("konnectio-event", On);