@konnectio/core 4.0.66 → 4.0.68

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