@konnectio/core 4.6.0 → 4.7.1

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 (110) hide show
  1. package/README.md +274 -274
  2. package/dist/{ActionField-B7UmJY0Z.js → ActionField-VBqFo88z.js} +3 -3
  3. package/dist/ActionField-VBqFo88z.js.br +0 -0
  4. package/dist/ActionField-VBqFo88z.js.gz +0 -0
  5. package/dist/{AvailabilitySkeleton-BUHF365q.js → AvailabilitySkeleton-BFFLetWz.js} +4 -4
  6. package/dist/AvailabilitySkeleton-BFFLetWz.js.br +0 -0
  7. package/dist/AvailabilitySkeleton-BFFLetWz.js.gz +0 -0
  8. package/dist/{CheckoutWindow-0YZfQh0h.js → CheckoutWindow-AsI3_Bzr.js} +6 -6
  9. package/dist/CheckoutWindow-AsI3_Bzr.js.br +0 -0
  10. package/dist/CheckoutWindow-AsI3_Bzr.js.gz +0 -0
  11. package/dist/{ErrorMessage-DAJHMXps.js → ErrorMessage-D1MPQQle.js} +3 -3
  12. package/dist/ErrorMessage-D1MPQQle.js.br +0 -0
  13. package/dist/ErrorMessage-D1MPQQle.js.gz +0 -0
  14. package/dist/{EventAvailabilityForm-CYqJiGK-.js → EventAvailabilityForm-D9PTCYNX.js} +4 -4
  15. package/dist/EventAvailabilityForm-D9PTCYNX.js.br +0 -0
  16. package/dist/EventAvailabilityForm-D9PTCYNX.js.gz +0 -0
  17. package/dist/{Field-Bot3mYQN.js → Field-BL-AoXBd.js} +7 -7
  18. package/dist/Field-BL-AoXBd.js.br +0 -0
  19. package/dist/Field-BL-AoXBd.js.gz +0 -0
  20. package/dist/{HotelAvailabilityForm-B7kyXx-7.js → HotelAvailabilityForm-C7eUUGs2.js} +4 -4
  21. package/dist/HotelAvailabilityForm-C7eUUGs2.js.br +0 -0
  22. package/dist/HotelAvailabilityForm-C7eUUGs2.js.gz +0 -0
  23. package/dist/{SelectField-hnSeKsyE.js → SelectField-CrqlbsOV.js} +26 -13
  24. package/dist/SelectField-CrqlbsOV.js.br +0 -0
  25. package/dist/SelectField-CrqlbsOV.js.gz +0 -0
  26. package/dist/{TermsOfService-BNMlDWlr.js → TermsOfService-_e6yKE8q.js} +4 -4
  27. package/dist/TermsOfService-_e6yKE8q.js.br +0 -0
  28. package/dist/TermsOfService-_e6yKE8q.js.gz +0 -0
  29. package/dist/{_-C-uU-YJK.js → _-Dtly1pXI.js} +2 -2
  30. package/dist/_-Dtly1pXI.js.br +0 -0
  31. package/dist/_-Dtly1pXI.js.gz +3 -0
  32. package/dist/availability.js +29 -42
  33. package/dist/availability.js.br +0 -0
  34. package/dist/availability.js.gz +0 -0
  35. package/dist/cancel-reservation.js +34 -47
  36. package/dist/cancel-reservation.js.br +0 -0
  37. package/dist/cancel-reservation.js.gz +0 -0
  38. package/dist/core.css +1 -1
  39. package/dist/core.css.br +0 -0
  40. package/dist/core.css.gz +0 -0
  41. package/dist/deep-link.js +11 -24
  42. package/dist/deep-link.js.br +0 -0
  43. package/dist/deep-link.js.gz +0 -0
  44. package/dist/{dist-BRLG6yf0.js → dist-CNKW8-tw.js} +4 -4
  45. package/dist/dist-CNKW8-tw.js.br +0 -0
  46. package/dist/dist-CNKW8-tw.js.gz +0 -0
  47. package/dist/event.js +136 -146
  48. package/dist/event.js.br +0 -0
  49. package/dist/event.js.gz +0 -0
  50. package/dist/gift-card-validation.js +37 -50
  51. package/dist/gift-card-validation.js.br +0 -0
  52. package/dist/gift-card-validation.js.gz +0 -0
  53. package/dist/gift-card.js +92 -105
  54. package/dist/gift-card.js.br +0 -0
  55. package/dist/gift-card.js.gz +0 -0
  56. package/dist/{giftCard-DVmVkjIL.js → giftCard-DZU9iLJa.js} +2 -2
  57. package/dist/giftCard-DZU9iLJa.js.br +0 -0
  58. package/dist/giftCard-DZU9iLJa.js.gz +0 -0
  59. package/dist/hotel.js +1206 -1219
  60. package/dist/hotel.js.br +0 -0
  61. package/dist/hotel.js.gz +0 -0
  62. package/dist/{masonry.plugin-BE-hxMX3.js → masonry.plugin-BsTzBuWI.js} +37 -33
  63. package/dist/masonry.plugin-BsTzBuWI.js.br +0 -0
  64. package/dist/masonry.plugin-BsTzBuWI.js.gz +0 -0
  65. package/dist/{mitt-CC88Lv06.js → mitt-D_sfUt2u.js} +534 -520
  66. package/dist/mitt-D_sfUt2u.js.br +0 -0
  67. package/dist/mitt-D_sfUt2u.js.gz +0 -0
  68. package/dist/polyfill.js +1 -1
  69. package/dist/polyfill.js.br +0 -0
  70. package/dist/polyfill.js.gz +0 -0
  71. package/dist/rolldown-runtime-Dqa2HsxW.js.gz +0 -0
  72. package/dist/{style-BYpuwNCr.js → style-jcOhDNFr.js} +2 -2
  73. package/dist/style-jcOhDNFr.js.br +0 -0
  74. package/dist/style-jcOhDNFr.js.gz +0 -0
  75. package/dist-wix/availability.js +593 -71
  76. package/dist-wix/event.js +591 -69
  77. package/dist-wix/gift-card-validation.js +590 -68
  78. package/dist-wix/gift-card.js +592 -70
  79. package/dist-wix/hotel.js +591 -69
  80. package/package.json +121 -121
  81. package/dist/ActionField-B7UmJY0Z.js.br +0 -0
  82. package/dist/ActionField-B7UmJY0Z.js.gz +0 -0
  83. package/dist/AvailabilitySkeleton-BUHF365q.js.br +0 -0
  84. package/dist/AvailabilitySkeleton-BUHF365q.js.gz +0 -0
  85. package/dist/CheckoutWindow-0YZfQh0h.js.br +0 -0
  86. package/dist/CheckoutWindow-0YZfQh0h.js.gz +0 -0
  87. package/dist/ErrorMessage-DAJHMXps.js.br +0 -0
  88. package/dist/ErrorMessage-DAJHMXps.js.gz +0 -0
  89. package/dist/EventAvailabilityForm-CYqJiGK-.js.br +0 -0
  90. package/dist/EventAvailabilityForm-CYqJiGK-.js.gz +0 -0
  91. package/dist/Field-Bot3mYQN.js.br +0 -0
  92. package/dist/Field-Bot3mYQN.js.gz +0 -0
  93. package/dist/HotelAvailabilityForm-B7kyXx-7.js.br +0 -0
  94. package/dist/HotelAvailabilityForm-B7kyXx-7.js.gz +0 -0
  95. package/dist/SelectField-hnSeKsyE.js.br +0 -0
  96. package/dist/SelectField-hnSeKsyE.js.gz +0 -0
  97. package/dist/TermsOfService-BNMlDWlr.js.br +0 -0
  98. package/dist/TermsOfService-BNMlDWlr.js.gz +0 -3
  99. package/dist/_-C-uU-YJK.js.br +0 -0
  100. package/dist/_-C-uU-YJK.js.gz +0 -4
  101. package/dist/dist-BRLG6yf0.js.br +0 -0
  102. package/dist/dist-BRLG6yf0.js.gz +0 -0
  103. package/dist/giftCard-DVmVkjIL.js.br +0 -0
  104. package/dist/giftCard-DVmVkjIL.js.gz +0 -0
  105. package/dist/masonry.plugin-BE-hxMX3.js.br +0 -0
  106. package/dist/masonry.plugin-BE-hxMX3.js.gz +0 -0
  107. package/dist/mitt-CC88Lv06.js.br +0 -0
  108. package/dist/mitt-CC88Lv06.js.gz +0 -0
  109. package/dist/style-BYpuwNCr.js.br +0 -0
  110. package/dist/style-BYpuwNCr.js.gz +0 -0
package/dist/event.js CHANGED
@@ -1,20 +1,20 @@
1
- import { $ as e, A as t, At as n, D as r, Dt as i, E as a, Et as o, M as s, O as c, P as l, S as u, T as d, Y as f, bt as p, c as m, dt as h, et as g, gt as _, j as v, k as y, o as b, p as x, q as S, r as C, s as w, st as T, t as E, u as D, x as O, y as k } from "./mitt-CC88Lv06.js";
2
- import { t as A } from "./dist-BRLG6yf0.js";
3
- import { B as ee, C as j, D as te, E as M, F as N, G as P, H as F, J as I, K as L, L as R, M as z, Q as ne, S as B, U as V, X as H, Y as U, b as re, ft as ie, n as W, r as G, rt as ae, v as K, w as q, x as J, z as oe } from "./SelectField-hnSeKsyE.js";
4
- import { t as se } from "./_-C-uU-YJK.js";
5
- import { a as ce, c as le, d as ue, f as de, i as fe, l as pe, n as me, o as he, r as Y, s as X, u as ge } from "./AvailabilitySkeleton-BUHF365q.js";
6
- import { t as _e } from "./EventAvailabilityForm-CYqJiGK-.js";
7
- import { t as ve } from "./style-BYpuwNCr.js";
8
- import { a as ye, c as be, d as xe, l as Se, n as Z, o as Q, r as Ce, s as we, t as Te, u as Ee } from "./masonry.plugin-BE-hxMX3.js";
9
- import { i as De, r as Oe, t as ke } from "./CheckoutWindow-0YZfQh0h.js";
1
+ import { $ as e, A as t, At as n, D as r, Dt as i, E as a, Et as o, M as s, O as c, P as l, S as u, T as d, Y as f, bt as p, c as m, dt as h, et as g, gt as _, j as v, k as y, o as b, q as x, r as S, s as C, st as w, t as T, u as E, x as D, y as O } from "./mitt-D_sfUt2u.js";
2
+ import { t as k } from "./dist-CNKW8-tw.js";
3
+ import { B as ee, C as A, D as te, E as j, F as ne, G as M, H as N, J as P, K as F, L as I, M as L, Q as R, S as z, U as B, X as V, Y as H, b as U, ft as re, n as W, r as G, rt as ie, v as K, w as q, x as J, z as ae } from "./SelectField-CrqlbsOV.js";
4
+ import { t as oe } from "./_-Dtly1pXI.js";
5
+ import { a as se, c as ce, d as le, f as ue, i as de, l as fe, n as pe, o as me, r as he, s as Y, u as ge } from "./AvailabilitySkeleton-BFFLetWz.js";
6
+ import { t as _e } from "./EventAvailabilityForm-D9PTCYNX.js";
7
+ import { t as ve } from "./style-jcOhDNFr.js";
8
+ import { a as ye, c as be, d as xe, l as Se, n as Ce, o as X, r as we, s as Z, t as Te, u as Ee } from "./masonry.plugin-BsTzBuWI.js";
9
+ import { i as De, r as Oe, t as ke } from "./CheckoutWindow-AsI3_Bzr.js";
10
10
  //#region node_modules/date-fns/formatDistanceStrict.js
11
11
  function Ae(e, t, n) {
12
- let r = le(), i = n?.locale ?? r.locale ?? Y, a = ce(e, t);
12
+ let r = ce(), i = n?.locale ?? r.locale ?? he, a = se(e, t);
13
13
  if (isNaN(a)) throw RangeError("Invalid time value");
14
14
  let o = Object.assign({}, n, {
15
15
  addSuffix: n?.addSuffix,
16
16
  comparison: a
17
- }), [s, c] = he(n?.in, ...a > 0 ? [t, e] : [e, t]), l = fe(n?.roundingMethod ?? "round"), u = c.getTime() - s.getTime(), d = u / pe, f = (u - (X(c) - X(s))) / pe, p = n?.unit, m;
17
+ }), [s, c] = me(n?.in, ...a > 0 ? [t, e] : [e, t]), l = de(n?.roundingMethod ?? "round"), u = c.getTime() - s.getTime(), d = u / fe, f = (u - (Y(c) - Y(s))) / fe, p = n?.unit, m;
18
18
  if (m = p || (d < 1 ? "second" : d < 60 ? "minute" : d < 1440 ? "hour" : f < 43200 ? "day" : f < 525600 ? "month" : "year"), m === "second") {
19
19
  let e = l(u / 1e3);
20
20
  return i.formatDistance("xSeconds", e, o);
@@ -28,16 +28,16 @@ function Ae(e, t, n) {
28
28
  let e = l(f / ge);
29
29
  return i.formatDistance("xDays", e, o);
30
30
  } else if (m === "month") {
31
- let e = l(f / ue);
31
+ let e = l(f / le);
32
32
  return e === 12 && p !== "month" ? i.formatDistance("xYears", 1, o) : i.formatDistance("xMonths", e, o);
33
33
  } else {
34
- let e = l(f / de);
34
+ let e = l(f / ue);
35
35
  return i.formatDistance("xYears", e, o);
36
36
  }
37
37
  }
38
38
  //#endregion
39
39
  //#region src/components/listings/event/_.vue?vue&type=script&setup=true&lang.ts
40
- var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/ B(/* @__PURE__ */ l({
40
+ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/ z(/* @__PURE__ */ l({
41
41
  __name: "_",
42
42
  props: {
43
43
  name: {},
@@ -68,7 +68,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
68
68
  callback: {}
69
69
  },
70
70
  setup(e) {
71
- let { t } = b(), n = e, { display: l } = z(), { hideEventGuestAmount: u } = D(M()), { maxNumberOfPeople: m, numberOfPeople: _, eventId: v, currentEventDate: y, tableGroupId: x } = D(q()), { getTemplateAvailability: S, getEventAvailability: C, isEventListingLoading: w } = q(), { addToCart: T } = te(), E = d(() => n.maxGuests || n.maxOnlineReservationLimit || m.value || Infinity), O = p(0), k = d(() => w(n.listingId)), A = () => {
71
+ let { t } = b(), n = e, { display: l } = L(), { hideEventGuestAmount: u } = E(j()), { maxNumberOfPeople: m, numberOfPeople: _, eventId: v, currentEventDate: y, tableGroupId: x } = E(q()), { getTemplateAvailability: S, getEventAvailability: C, isEventListingLoading: w } = q(), { addToCart: T } = te(), D = d(() => n.maxGuests || n.maxOnlineReservationLimit || m.value || Infinity), O = p(0), k = d(() => w(n.listingId)), ee = () => {
72
72
  if (!n.useNumberOfProductsForPersons && (O.value === 0 || isNaN(O.value))) {
73
73
  l({
74
74
  type: "error",
@@ -81,7 +81,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
81
81
  name: n.name,
82
82
  value: n.fromPrice || 0
83
83
  }), v.value = n.listingId, _.value = n.useNumberOfProductsForPersons ? NaN : O.value, S(n.callback);
84
- }, ee = () => {
84
+ }, A = () => {
85
85
  if (!n.useNumberOfProductsForPersons && (O.value === 0 || isNaN(O.value))) {
86
86
  l({
87
87
  type: "error",
@@ -103,7 +103,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
103
103
  description: e.description,
104
104
  "prices-from": e.fromPrice,
105
105
  "to-date": e.toDate,
106
- layout: o(ne).Event,
106
+ layout: o(R).Event,
107
107
  "disable-deep-link": e.disableDeepLink
108
108
  }, {
109
109
  description: h(() => [g(n.$slots, "description", { maxNumberOfPeople: o(m) }, void 0, !0)]),
@@ -115,9 +115,9 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
115
115
  icon: "users",
116
116
  "icon-type": "fas",
117
117
  "icon-placement": "label",
118
- description: E.value <= 20 && !o(u) ? `${o(t)("general.availableFor")}: 1 - ${E.value} ${o(V)(o(t)("general.guests"))}` : void 0,
118
+ description: D.value <= 20 && !o(u) ? `${o(t)("general.availableFor")}: 1 - ${D.value} ${o(B)(o(t)("general.guests"))}` : void 0,
119
119
  "min-value": 0,
120
- "max-value": E.value
120
+ "max-value": D.value
121
121
  }, null, 8, [
122
122
  "modelValue",
123
123
  "label",
@@ -128,8 +128,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
128
128
  disabled: e.soldOut,
129
129
  "is-loading": k.value,
130
130
  "full-width": "",
131
- "sub-label": o(P)(o(y)),
132
- onClickEvent: l[1] ||= (t) => e.type === "event" ? ee() : A()
131
+ "sub-label": o(M)(o(y)),
132
+ onClickEvent: l[1] ||= (t) => e.type === "event" ? A() : ee()
133
133
  }, null, 8, [
134
134
  "label",
135
135
  "disabled",
@@ -148,13 +148,13 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
148
148
  "disable-deep-link"
149
149
  ]));
150
150
  }
151
- }), [["__scopeId", "data-v-23ac9949"]]), Ne = { class: "konnectio-event-listing-information-new" }, Pe = {
151
+ }), [["__scopeId", "data-v-bfd98c31"]]), Ne = { class: "konnectio-event-listing-information-new" }, Pe = {
152
152
  key: 1,
153
153
  class: "konnectio-pill-button"
154
154
  }, Fe = {
155
155
  key: 2,
156
156
  class: "konnectio-pill-button"
157
- }, Ie = { key: 0 }, Le = { key: 1 }, $ = /*#__PURE__*/ B(/* @__PURE__ */ l({
157
+ }, Ie = { key: 0 }, Le = { key: 1 }, Q = /*#__PURE__*/ z(/* @__PURE__ */ l({
158
158
  __name: "Event",
159
159
  props: {
160
160
  name: {},
@@ -177,7 +177,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
177
177
  callback: {}
178
178
  },
179
179
  setup(e) {
180
- let t = e, { t: i } = b(), { hideEventLength: l, hideEventEndTime: u } = D(M()), p = d(() => {
180
+ let t = e, { t: i } = b(), { hideEventLength: l, hideEventEndTime: u } = E(j()), p = d(() => {
181
181
  if (!t.length) return;
182
182
  let e = t.length.split(":");
183
183
  return Ae(new Date(2e3, 0, 1, Number(e[0]), Number(e[1]), 0), new Date(2e3, 0, 1, 0, 0, 0));
@@ -209,7 +209,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
209
209
  e.timeFrom ? (f(), y("li", Fe, [a("div", null, [s(J, {
210
210
  icon: "calendar-clock",
211
211
  color: "header"
212
- }), a("span", null, n(o(i)("event.startAndEndTime")), 1)]), o(u) ? (f(), y("span", Le, n(o(U)(e.timeFrom)), 1)) : (f(), y("span", Ie, n(o(H)(e.timeFrom, e.timeTo)), 1))])) : c("", !0)
212
+ }), a("span", null, n(o(i)("event.startAndEndTime")), 1)]), o(u) ? (f(), y("span", Le, n(o(H)(e.timeFrom)), 1)) : (f(), y("span", Ie, n(o(V)(e.timeFrom, e.timeTo)), 1))])) : c("", !0)
213
213
  ])]),
214
214
  action: h(() => [g(t.$slots, "action", {}, void 0, !0)]),
215
215
  _: 3
@@ -228,10 +228,10 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
228
228
  "callback"
229
229
  ]));
230
230
  }
231
- }), [["__scopeId", "data-v-40cbbf2c"]]), Re = {
231
+ }), [["__scopeId", "data-v-2ecac268"]]), Re = {
232
232
  key: 0,
233
233
  class: "konnectio-event-grouped-listings-container"
234
- }, ze = { class: "konnectio-event-grouped-listings" }, Be = /*#__PURE__*/ B(/* @__PURE__ */ l({
234
+ }, $ = { class: "konnectio-event-grouped-listings" }, ze = /*#__PURE__*/ z(/* @__PURE__ */ l({
235
235
  __name: "Event",
236
236
  props: {
237
237
  name: {},
@@ -240,7 +240,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
240
240
  callback: { type: Function }
241
241
  },
242
242
  setup(t) {
243
- return (n, i) => t.events && t.events.length > 1 ? (f(), y("div", Re, [c("", !0), a("ul", ze, [(f(!0), y(O, null, e(t.events, ({ id: e, days: n, name: i, timeFrom: a, timeTo: o, tableGroupId: s, description: c, soldOut: l, length: u, images: d, maxOnlineReservationLimit: p, maxPaxPerReservation: m, useNumberOfProductsForPersons: h, maxTicketsLimit: g }) => (f(), r($, {
243
+ return (n, i) => t.events && t.events.length > 1 ? (f(), y("div", Re, [c("", !0), a("ul", $, [(f(!0), y(D, null, e(t.events, ({ id: e, days: n, name: i, timeFrom: a, timeTo: o, tableGroupId: s, description: c, soldOut: l, length: u, images: d, maxOnlineReservationLimit: p, maxPaxPerReservation: m, useNumberOfProductsForPersons: h, maxTicketsLimit: g }) => (f(), r(Q, {
244
244
  key: e,
245
245
  type: "event",
246
246
  "listing-id": e,
@@ -272,7 +272,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
272
272
  "use-number-of-products-for-persons",
273
273
  "tracking-enabled",
274
274
  "callback"
275
- ]))), 128))])])) : t.events ? (f(), r($, {
275
+ ]))), 128))])])) : t.events ? (f(), r(Q, {
276
276
  key: t.events[0].id,
277
277
  type: "event",
278
278
  "listing-id": t.events[0].id,
@@ -310,7 +310,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
310
310
  "callback"
311
311
  ])) : c("", !0);
312
312
  }
313
- }), [["__scopeId", "data-v-374ad034"]]), Ve = { class: "konnectio-special-offer-availability" }, He = { class: "konnectio-special-offer-availability-button" }, Ue = { class: "konnectio-warning-notice" }, We = { key: 0 }, Ge = { key: 1 }, Ke = /*#__PURE__*/ B(/* @__PURE__ */ l({
313
+ }), [["__scopeId", "data-v-20b8c0bd"]]), Be = { class: "konnectio-special-offer-availability" }, Ve = { class: "konnectio-special-offer-availability-button" }, He = { class: "konnectio-warning-notice" }, Ue = { key: 0 }, We = { key: 1 }, Ge = /*#__PURE__*/ z(/* @__PURE__ */ l({
314
314
  __name: "NextEvent",
315
315
  props: {
316
316
  name: {},
@@ -332,14 +332,14 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
332
332
  callback: { type: Function }
333
333
  },
334
334
  setup(e) {
335
- let { t } = b(), { updateEventDate: i } = j(), { display: c } = z(), l = p(), u = e;
335
+ let { t } = b(), { updateEventDate: i } = A(), { display: c } = L(), l = p(), u = e;
336
336
  function m() {
337
337
  l.value ? i(l.value) : c({
338
338
  message: t("alert.error.selectDate"),
339
339
  type: "error"
340
340
  });
341
341
  }
342
- let g = d(() => R(u.fromDate, u.toDate) <= 1), _ = d(() => [
342
+ let g = d(() => I(u.fromDate, u.toDate) <= 1), _ = d(() => [
343
343
  0,
344
344
  1,
345
345
  2,
@@ -347,10 +347,10 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
347
347
  4,
348
348
  5,
349
349
  6
350
- ].filter((e) => !oe(u.days).includes(e)));
351
- return S(() => {
350
+ ].filter((e) => !ae(u.days).includes(e)));
351
+ return x(() => {
352
352
  g.value && (l.value = new Date(u.fromDate));
353
- }), (i, c) => (f(), r($, {
353
+ }), (i, c) => (f(), r(Q, {
354
354
  name: e.name,
355
355
  description: e.description,
356
356
  "from-date": e.fromDate,
@@ -370,7 +370,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
370
370
  callback: e.callback,
371
371
  "disable-deep-link": !0
372
372
  }, {
373
- action: h(() => [a("div", null, [a("div", Ve, [s(me, {
373
+ action: h(() => [a("div", null, [a("div", Be, [s(pe, {
374
374
  modelValue: l.value,
375
375
  "onUpdate:modelValue": c[0] ||= (e) => l.value = e,
376
376
  label: `${o(t)("event.selectDate")}*`,
@@ -391,10 +391,10 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
391
391
  "min-date",
392
392
  "max-date",
393
393
  "disabled-week-days"
394
- ]), a("div", He, [s(K, {
394
+ ]), a("div", Ve, [s(K, {
395
395
  label: o(t)("availability.buttonLabel"),
396
- onClick: k(m, ["prevent"])
397
- }, null, 8, ["label"])])]), a("div", Ue, [g.value ? (f(), y("span", We, [v("*" + n(o(t)("event.canBeBooked")) + " ", 1), a("u", null, n(o(P)(e.fromDate)), 1)])) : (f(), y("span", Ge, [v("*" + n(o(t)("event.canBeBooked")) + " ", 1), a("u", null, n(o(L)(e.days)), 1)]))])])]),
396
+ onClick: O(m, ["prevent"])
397
+ }, null, 8, ["label"])])]), a("div", He, [g.value ? (f(), y("span", Ue, [v("*" + n(o(t)("event.canBeBooked")) + " ", 1), a("u", null, n(o(M)(e.fromDate)), 1)])) : (f(), y("span", We, [v("*" + n(o(t)("event.canBeBooked")) + " ", 1), a("u", null, n(o(F)(e.days)), 1)]))])])]),
398
398
  _: 1
399
399
  }, 8, [
400
400
  "name",
@@ -416,10 +416,10 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
416
416
  "callback"
417
417
  ]));
418
418
  }
419
- }), [["__scopeId", "data-v-f6aed3b0"]]), qe = {
419
+ }), [["__scopeId", "data-v-91ea584c"]]), Ke = {
420
420
  key: 0,
421
421
  class: "konnectio-event-grouped-listings-container"
422
- }, Je = { class: "konnectio-event-grouped-listings" }, Ye = /*#__PURE__*/ B(/* @__PURE__ */ l({
422
+ }, qe = { class: "konnectio-event-grouped-listings" }, Je = /*#__PURE__*/ z(/* @__PURE__ */ l({
423
423
  __name: "NextEvent",
424
424
  props: {
425
425
  name: {},
@@ -428,7 +428,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
428
428
  callback: { type: Function }
429
429
  },
430
430
  setup(t) {
431
- return (n, i) => t.events && t.events.length > 1 ? (f(), y("div", qe, [c("", !0), a("ul", Je, [(f(!0), y(O, null, e(t.events, ({ id: e, days: n, name: i, timeFrom: a, timeTo: o, fromDate: s, toDate: c, tableGroupId: l, description: u, soldOut: d, length: p, images: m, maxOnlineReservationLimit: h, maxPaxPerReservation: g, useNumberOfProductsForPersons: _, maxTicketsLimit: v }) => (f(), r(Ke, {
431
+ return (n, i) => t.events && t.events.length > 1 ? (f(), y("div", Ke, [c("", !0), a("ul", qe, [(f(!0), y(D, null, e(t.events, ({ id: e, days: n, name: i, timeFrom: a, timeTo: o, fromDate: s, toDate: c, tableGroupId: l, description: u, soldOut: d, length: p, images: m, maxOnlineReservationLimit: h, maxPaxPerReservation: g, useNumberOfProductsForPersons: _, maxTicketsLimit: v }) => (f(), r(Ge, {
432
432
  key: e,
433
433
  type: "event",
434
434
  "listing-id": e,
@@ -464,7 +464,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
464
464
  "use-number-of-products-for-persons",
465
465
  "tracking-enabled",
466
466
  "callback"
467
- ]))), 128))])])) : t.events ? (f(), r(Ke, {
467
+ ]))), 128))])])) : t.events ? (f(), r(Ge, {
468
468
  key: t.events[0].id,
469
469
  type: "event",
470
470
  "listing-id": t.events[0].id,
@@ -502,7 +502,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
502
502
  "callback"
503
503
  ])) : c("", !0);
504
504
  }
505
- }), [["__scopeId", "data-v-39263761"]]), Xe = ["innerHTML"], Ze = /*#__PURE__*/ B(/* @__PURE__ */ l({
505
+ }), [["__scopeId", "data-v-dc867986"]]), Ye = ["innerHTML"], Xe = /*#__PURE__*/ z(/* @__PURE__ */ l({
506
506
  __name: "FallbackEvent",
507
507
  props: {
508
508
  name: {},
@@ -516,7 +516,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
516
516
  },
517
517
  setup(e) {
518
518
  let { t } = b();
519
- return (n, i) => (f(), r($, {
519
+ return (n, i) => (f(), r(Q, {
520
520
  name: e.name,
521
521
  description: e.description,
522
522
  "from-date": e.fromDate,
@@ -530,7 +530,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
530
530
  action: h(() => [a("div", {
531
531
  class: "konnectio-filter-notice konnectio-top-message",
532
532
  innerHTML: o(t)("event.notAvailable", { name: `<b>${e.name}</b>` })
533
- }, null, 8, Xe)]),
533
+ }, null, 8, Ye)]),
534
534
  _: 1
535
535
  }, 8, [
536
536
  "name",
@@ -543,7 +543,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
543
543
  "callback"
544
544
  ]));
545
545
  }
546
- }), [["__scopeId", "data-v-0167deff"]]), Qe = /* @__PURE__ */ l({
546
+ }), [["__scopeId", "data-v-af0f6d2a"]]), Ze = /* @__PURE__ */ l({
547
547
  __name: "Template",
548
548
  props: {
549
549
  name: {},
@@ -581,13 +581,13 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
581
581
  "callback"
582
582
  ]));
583
583
  }
584
- }), $e = {
584
+ }), Qe = {
585
585
  key: 0,
586
586
  class: "konnectio-panel konnectio-reservation-notice-mobile"
587
- }, et = ["innerHTML"], tt = { key: 0 }, nt = { key: 1 }, rt = { key: 2 }, it = { key: 0 }, at = { key: 4 }, ot = { key: 5 }, st = { key: 6 }, ct = { key: 0 }, lt = { key: 0 }, ut = { key: 1 }, dt = {
587
+ }, $e = ["innerHTML"], et = { key: 0 }, tt = { key: 1 }, nt = { key: 2 }, rt = { key: 0 }, it = { key: 4 }, at = { key: 5 }, ot = { key: 6 }, st = { key: 0 }, ct = { key: 0 }, lt = { key: 1 }, ut = {
588
588
  key: 0,
589
589
  class: "konnectio-capitalize"
590
- }, ft = /*#__PURE__*/ B(/* @__PURE__ */ l({
590
+ }, dt = /*#__PURE__*/ z(/* @__PURE__ */ l({
591
591
  __name: "EventReservationForm",
592
592
  props: {
593
593
  showGiftCard: {
@@ -601,43 +601,43 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
601
601
  prevCallback: {}
602
602
  },
603
603
  setup(i) {
604
- let { t: s } = b(), l = T(), { areListingsAvailable: u, arrivalTime: d, numberOfPeople: p, numberOfRooms: m, numberOfTotalDays: v, isTemplateEvent: x, currentEventDate: S, length: C, fromDate: w, tableBasePrice: E, getTemplateData: k, basePrice: A, totalPrice: ee, weekendFee: j, roomUpgrade: te, discountCode: N, totalSelectedProducts: F, discountValue: L, appliedDiscountCode: R } = D(q()), { totalAddonPrice: z, validateDiscountCode: ne } = q(), { currency: B, hideEventLength: V } = D(M()), H = s("event.reservationNotice");
605
- return (b, T) => (f(), r(Q, {
604
+ let { t: s } = b(), l = w(), { areListingsAvailable: u, arrivalTime: d, numberOfPeople: p, numberOfRooms: m, numberOfTotalDays: v, isTemplateEvent: x, currentEventDate: S, length: C, fromDate: T, tableBasePrice: O, getTemplateData: k, basePrice: ee, totalPrice: A, weekendFee: te, roomUpgrade: ne, discountCode: N, totalSelectedProducts: F, discountValue: I, appliedDiscountCode: L } = E(q()), { totalAddonPrice: R, validateDiscountCode: z } = q(), { currency: B, hideEventLength: V } = E(j()), U = s("event.reservationNotice");
605
+ return (b, w) => (f(), r(X, {
606
606
  "discount-code": o(N),
607
- "onUpdate:discountCode": T[0] ||= (e) => _(N) ? N.value = e : null,
608
- "validate-discount-code": o(ne),
607
+ "onUpdate:discountCode": w[0] ||= (e) => _(N) ? N.value = e : null,
608
+ "validate-discount-code": o(z),
609
609
  "show-gift-card": i.showGiftCard,
610
610
  "show-terms-notice": i.showTermsNotice,
611
611
  "is-sidebar-loading": !o(u),
612
- "base-price": o(A),
613
- "total-price": o(ee),
614
- "weekend-fee": o(j),
615
- "room-upgrade": o(te),
616
- notice: o(H),
612
+ "base-price": o(ee),
613
+ "total-price": o(A),
614
+ "weekend-fee": o(te),
615
+ "room-upgrade": o(ne),
616
+ notice: o(U),
617
617
  "prev-callback": i.prevCallback
618
618
  }, t({
619
- form: h(() => [g(b.$slots, "form", {}, void 0, !0), o(H) ? (f(), y("div", $e, [a("p", {
620
- innerHTML: o(H),
619
+ form: h(() => [g(b.$slots, "form", {}, void 0, !0), o(U) ? (f(), y("div", Qe, [a("p", {
620
+ innerHTML: o(U),
621
621
  class: "konnectio-wysiwyg"
622
- }, null, 8, et)])) : c("", !0)]),
622
+ }, null, 8, $e)])) : c("", !0)]),
623
623
  "reservation-summary": h(() => [
624
- o(x) ? c("", !0) : (f(), y("li", tt, [a("span", null, n(o(s)("general.date")), 1), a("b", null, n(o(P)(o(S))), 1)])),
625
- o(p) > 0 ? (f(), y("li", nt, [a("span", null, n(o(s)("event.numberOfGuests")), 1), a("b", null, n(o(p)), 1)])) : c("", !0),
626
- !o(x) && o(F) > 0 ? (f(), y("li", rt, [a("span", null, n(o(s)("event.numberOfProducts")), 1), a("b", null, n(o(F)), 1)])) : c("", !0),
627
- o(x) ? (f(), y(O, { key: 3 }, [
628
- a("li", null, [a("span", null, n(o(s)("booking.reservation.arrival")), 1), a("b", null, n(o(P)(o(w))), 1)]),
629
- a("li", null, [a("span", null, n(o(s)("booking.reservation.departure")), 1), a("b", null, n(o(P)(o(w), o(v))), 1)]),
624
+ o(x) ? c("", !0) : (f(), y("li", et, [a("span", null, n(o(s)("general.date")), 1), a("b", null, n(o(M)(o(S))), 1)])),
625
+ o(p) > 0 ? (f(), y("li", tt, [a("span", null, n(o(s)("event.numberOfGuests")), 1), a("b", null, n(o(p)), 1)])) : c("", !0),
626
+ !o(x) && o(F) > 0 ? (f(), y("li", nt, [a("span", null, n(o(s)("event.numberOfProducts")), 1), a("b", null, n(o(F)), 1)])) : c("", !0),
627
+ o(x) ? (f(), y(D, { key: 3 }, [
628
+ a("li", null, [a("span", null, n(o(s)("booking.reservation.arrival")), 1), a("b", null, n(o(M)(o(T))), 1)]),
629
+ a("li", null, [a("span", null, n(o(s)("booking.reservation.departure")), 1), a("b", null, n(o(M)(o(T), o(v))), 1)]),
630
630
  a("li", null, [a("span", null, n(o(s)("event.numberOfRooms")), 1), a("b", null, n(o(m)), 1)]),
631
- o(v) > 0 ? (f(), y("li", it, [a("span", null, n(o(s)("event.numberOfDays")), 1), a("b", null, n(o(v)), 1)])) : c("", !0)
631
+ o(v) > 0 ? (f(), y("li", rt, [a("span", null, n(o(s)("event.numberOfDays")), 1), a("b", null, n(o(v)), 1)])) : c("", !0)
632
632
  ], 64)) : c("", !0),
633
- !o(x) && o(d) ? (f(), y("li", at, [a("span", null, n(o(s)("event.startOfEvent")), 1), a("b", null, n(o(U)(o(d))), 1)])) : c("", !0),
634
- !o(x) && o(C) && !o(V) ? (f(), y("li", ot, [a("span", null, n(o(s)("event.lengthOfEvent")), 1), a("b", null, n(o(U)(o(C))), 1)])) : c("", !0),
635
- o(L) ? (f(), y("li", st, [a("span", null, n(o(s)("general.discountCode")), 1), a("b", null, n(o(R)), 1)])) : c("", !0)
633
+ !o(x) && o(d) ? (f(), y("li", it, [a("span", null, n(o(s)("event.startOfEvent")), 1), a("b", null, n(o(H)(o(d))), 1)])) : c("", !0),
634
+ !o(x) && o(C) && !o(V) ? (f(), y("li", at, [a("span", null, n(o(s)("event.lengthOfEvent")), 1), a("b", null, n(o(H)(o(C))), 1)])) : c("", !0),
635
+ o(I) ? (f(), y("li", ot, [a("span", null, n(o(s)("general.discountCode")), 1), a("b", null, n(o(L)), 1)])) : c("", !0)
636
636
  ]),
637
- "price-summary": h(() => [!o(x) && o(E) > 0 ? (f(), y("li", ct, [a("span", null, n(o(s)("booking.availability.basePrice")), 1), a("b", null, n(o(I)(o(E), o(B))), 1)])) : c("", !0), o(k) ? (f(!0), y(O, { key: 1 }, e(o(k), ({ roomGroupId: e }, t) => (f(), y(O, null, [o(z)(e, t) > 0 ? (f(), y("li", { key: e }, [a("span", null, n(o(s)("booking.reservation.addons")) + " - " + n(o(s)("booking.reservation.room")) + " #" + n(t + 1), 1), a("b", null, n(o(I)(o(z)(e, t), o(B))), 1)])) : c("", !0)], 64))), 256)) : c("", !0)]),
637
+ "price-summary": h(() => [!o(x) && o(O) > 0 ? (f(), y("li", st, [a("span", null, n(o(s)("booking.availability.basePrice")), 1), a("b", null, n(o(P)(o(O), o(B))), 1)])) : c("", !0), o(k) ? (f(!0), y(D, { key: 1 }, e(o(k), ({ roomGroupId: e }, t) => (f(), y(D, null, [o(R)(e, t) > 0 ? (f(), y("li", { key: e }, [a("span", null, n(o(s)("booking.reservation.addons")) + " - " + n(o(s)("booking.reservation.room")) + " #" + n(t + 1), 1), a("b", null, n(o(P)(o(R)(e, t), o(B))), 1)])) : c("", !0)], 64))), 256)) : c("", !0)]),
638
638
  navigation: h(() => [g(b.$slots, "navigation", {}, void 0, !0)]),
639
- "mobile-under-price": h(() => [o(x) && o(v) > 0 ? (f(), y("div", lt, [a("span", null, n(o(P)(o(w))) + " - " + n(o(P)(o(w), o(v))), 1)])) : (f(), y("div", ut, [a("span", null, n(o(P)(o(S))), 1)]))]),
640
- "mobile-summary": h(() => [!o(x) && o(F) > 0 ? (f(), y("span", dt, n(o(s)("event.numberOfProducts")) + ": " + n(o(F)), 1)) : c("", !0)]),
639
+ "mobile-under-price": h(() => [o(x) && o(v) > 0 ? (f(), y("div", ct, [a("span", null, n(o(M)(o(T))) + " - " + n(o(M)(o(T), o(v))), 1)])) : (f(), y("div", lt, [a("span", null, n(o(M)(o(S))), 1)]))]),
640
+ "mobile-summary": h(() => [!o(x) && o(F) > 0 ? (f(), y("span", ut, n(o(s)("event.numberOfProducts")) + ": " + n(o(F)), 1)) : c("", !0)]),
641
641
  _: 2
642
642
  }, [o(l).sidebar ? {
643
643
  name: "sidebar",
@@ -657,14 +657,17 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
657
657
  "prev-callback"
658
658
  ]));
659
659
  }
660
- }), [["__scopeId", "data-v-d2ff3f68"]]), pt = { class: "event-skeleton" }, mt = { class: "event-skeleton-content" }, ht = { class: "event-skeleton-sidebar" }, gt = /*#__PURE__*/ B(/* @__PURE__ */ l({
660
+ }), [["__scopeId", "data-v-c1e1c642"]]), ft = { class: "event-skeleton" }, pt = { class: "event-skeleton-content" }, mt = { class: "event-skeleton-sidebar" }, ht = /*#__PURE__*/ z(/* @__PURE__ */ l({
661
661
  __name: "EventSkeleton",
662
662
  setup(e) {
663
- return (e, t) => (f(), y("div", pt, [a("div", mt, [s(Ce)]), a("div", ht, [c("", !0), s(we)])]));
663
+ return (e, t) => (f(), y("div", ft, [a("div", pt, [s(we)]), a("div", mt, [c("", !0), s(Z)])]));
664
664
  }
665
- }), [["__scopeId", "data-v-3e15c4e3"]]), _t = {
665
+ }), [["__scopeId", "data-v-af0e7efb"]]), gt = {
666
666
  key: 0,
667
667
  id: "konnectio-event-listings-wrapper"
668
+ }, _t = {
669
+ key: 0,
670
+ class: "konnectio-event-listings"
668
671
  }, vt = {
669
672
  key: 1,
670
673
  class: "konnectio-hotel-availability-title"
@@ -674,7 +677,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
674
677
  }, Tt = { class: "konnectio-table with-lines" }, Et = { class: "konnectio-event-addons-price" }, Dt = { class: "konnectio-event-addons-input" }, Ot = { class: "konnectio-event-addons-price" }, kt = { class: "konnectio-event-addons-price" }, At = {
675
678
  key: 1,
676
679
  class: "konnectio-table with-lines without-header"
677
- }, jt = { class: "konnectio-table-addons-information" }, Mt = { key: 0 }, Nt = { class: "konnectio-table-addons-option" }, Pt = { class: "konnectio-panel" }, Ft = /*#__PURE__*/ B(/* @__PURE__ */ l({
680
+ }, jt = { class: "konnectio-table-addons-information" }, Mt = { key: 0 }, Nt = { class: "konnectio-table-addons-option" }, Pt = { class: "konnectio-panel" }, Ft = /*#__PURE__*/ z(/* @__PURE__ */ l({
678
681
  name: "EventLayout",
679
682
  __name: "Event",
680
683
  props: {
@@ -692,7 +695,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
692
695
  styling: {}
693
696
  },
694
697
  setup(t) {
695
- let i = t, { t: l } = b(), p = q(), { addons: m, products: g, numberOfDays: x, flagOnTable: S, numberOfHighChairs: C, name: w, phone: T, email: E, remark: k, allergies: A, arrivalTime: P, hasEvents: L, hasTemplates: R, getTemplates: ne, getEventData: B, getTemplateData: V, getEventTableData: H, hasProducts: oe, eventRateType: ce, areListingsAvailable: le, isAvailabilityDataAvailable: ue, hasListingData: de, isPaymentLoading: fe, isReservationFormFilled: pe, requiresArrivalTime: me, hasSelectedRequiredProducts: he, getUnavailableEvents: Y, hasFallbackEvents: X, getFallbackEvents: ge, excludeEventIds: ve } = D(p), xe = d(() => p.getSortedEvents(i.sortOrder)), { currency: Z, enableTracking: Q } = D(M()), { setActiveIdFilter: we } = M(), { eventDate: Te, eventLocation: Ee } = D(j()), { isValidRestaurantId: Ae } = j(), { initialize: je, fetchListings: Me, createBooking: Ne, localAddonPrice: Pe, totalAddonPrice: Fe, reset: Ie, goBack: Le } = q(), { beginEventCheckout: $ } = te(), { display: Re } = z(), ze = d(() => [
698
+ let i = t, { t: l } = b(), p = q(), { addons: m, products: g, numberOfDays: x, flagOnTable: S, numberOfHighChairs: C, name: w, phone: T, email: O, remark: k, allergies: M, arrivalTime: F, hasEvents: I, hasTemplates: R, getTemplates: z, getEventData: B, getTemplateData: V, getEventTableData: ae, hasProducts: se, eventRateType: ce, areListingsAvailable: le, isAvailabilityDataAvailable: ue, hasListingData: de, isPaymentLoading: fe, isReservationFormFilled: pe, requiresArrivalTime: me, hasSelectedRequiredProducts: he, getUnavailableEvents: Y, hasFallbackEvents: ge, getFallbackEvents: ve, excludeEventIds: xe } = E(p), Ce = d(() => p.getSortedEvents(i.sortOrder)), { currency: X, enableTracking: Z } = E(j()), { setActiveIdFilter: Te } = j(), { eventDate: Ee, eventLocation: Ae } = E(A()), { isValidRestaurantId: je } = A(), { initialize: Me, fetchListings: Ne, createBooking: Pe, localAddonPrice: Fe, totalAddonPrice: Ie, reset: Le, goBack: Q } = q(), { beginEventCheckout: Re } = te(), { display: $ } = L(), Be = d(() => [
696
699
  {
697
700
  id: "availability",
698
701
  label: l("booking.availability.title"),
@@ -720,62 +723,62 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
720
723
  }
721
724
  ]), Ve = d(() => {
722
725
  let e = [];
723
- return H.value && H.value.forEach((t) => {
726
+ return ae.value && ae.value.forEach((t) => {
724
727
  e.find((e) => e.value === t.time) || e.push({
725
- label: U(t.time),
728
+ label: H(t.time),
726
729
  value: t.time
727
730
  });
728
731
  }), e;
729
732
  });
730
733
  function He() {
731
- Ie(i.resetDate === "yes");
734
+ Le(i.resetDate === "yes");
732
735
  }
733
736
  function Ue(e) {
734
- Q.value && $(), Ne(e);
737
+ Z.value && Re(), Pe(e);
735
738
  }
736
739
  function We() {
737
- let e = ie("history", { removeNullishValues: !0 }), t = parseInt(e.rid), n = e.d, r = parseInt(e.eid);
738
- if (n) if (F(n)) {
740
+ let e = re("history", { removeNullishValues: !0 }), t = parseInt(e.rid), n = e.d, r = parseInt(e.eid);
741
+ if (n) if (N(n)) {
739
742
  let t = new Date(n);
740
- t.setHours(12, 0, 0, 0) >= (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0) ? Te.value = t : (Re({
743
+ t.setHours(12, 0, 0, 0) >= (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0) ? Ee.value = t : ($({
741
744
  message: l("alert.error.invalidDateRange"),
742
745
  type: "error"
743
746
  }), e.d = void 0);
744
- } else Re({
747
+ } else $({
745
748
  message: l("alert.error.wrongDateFormat"),
746
749
  type: "error"
747
750
  });
748
- isNaN(t) || (Ae(t) ? Ee.value = t : (e.rid = void 0, Re({
751
+ isNaN(t) || (je(t) ? Ae.value = t : (e.rid = void 0, $({
749
752
  message: l("alert.error.hotelIdNotFound"),
750
753
  type: "error"
751
- }))), isNaN(r) || we(r), i.excludeEventIds && (ve.value = i.excludeEventIds), Me();
754
+ }))), isNaN(r) || Te(r), i.excludeEventIds && (xe.value = i.excludeEventIds), Ne();
752
755
  }
753
- return (i, d) => (f(), r(re, { styling: t.styling }, {
756
+ return (i, d) => (f(), r(U, { styling: t.styling }, {
754
757
  default: h(() => [(f(), r(u, { onResolve: We }, {
755
- default: h(() => [s(se, {
758
+ default: h(() => [s(oe, {
756
759
  id: "konnectio-event-module",
757
760
  "access-token": t.accessToken,
758
- callback: o(je)
761
+ callback: o(Me)
759
762
  }, {
760
763
  default: h(() => [s(be, {
761
- steps: ze.value,
764
+ steps: Be.value,
762
765
  onReset: He
763
766
  }, {
764
- availability: h(({ next: i }) => [s(ft, null, {
767
+ availability: h(({ next: i }) => [s(dt, null, {
765
768
  sidebar: h(() => [s(_e, {
766
769
  redirection: !1,
767
770
  "selected-location": Number(t.selectedLocation),
768
771
  "hide-locations": t.hideLocations === "yes"
769
772
  }, null, 8, ["selected-location", "hide-locations"])]),
770
- form: h(() => [o(de) && o(le) ? (f(), y("div", _t, [
771
- o(X) ? (f(!0), y(O, { key: 0 }, e(o(ge), ({ id: e, name: t, description: n, images: a }) => (f(), r(Ze, {
773
+ form: h(() => [o(de) && o(le) ? (f(), y("div", gt, [
774
+ o(ge) ? (f(), y("ul", _t, [(f(!0), y(D, null, e(o(ve), ({ id: e, name: t, description: n, images: a }) => (f(), r(Xe, {
772
775
  key: e,
773
776
  type: "event",
774
777
  "listing-id": e,
775
778
  description: n,
776
779
  name: t,
777
780
  gallery: a,
778
- "tracking-enabled": o(Q),
781
+ "tracking-enabled": o(Z),
779
782
  callback: i
780
783
  }, null, 8, [
781
784
  "listing-id",
@@ -784,23 +787,23 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
784
787
  "gallery",
785
788
  "tracking-enabled",
786
789
  "callback"
787
- ]))), 128)) : c("", !0),
788
- xe.value.length > 0 && o(Y).length > 0 ? (f(), y("h2", vt, [s(J, {
790
+ ]))), 128))])) : c("", !0),
791
+ Ce.value.length > 0 && o(Y).length > 0 ? (f(), y("h2", vt, [s(J, {
789
792
  icon: "calendar-clock",
790
793
  type: "fal",
791
794
  color: "header"
792
795
  }), a("span", null, n(o(l)("event.availableNow")), 1)])) : c("", !0),
793
- a("ul", yt, [o(L) && t.onlyShow !== "templates" ? (f(!0), y(O, { key: 0 }, e(xe.value, (e) => (f(), r(Be, {
796
+ a("ul", yt, [o(I) && t.onlyShow !== "templates" ? (f(!0), y(D, { key: 0 }, e(Ce.value, (e) => (f(), r(ze, {
794
797
  name: e.name,
795
798
  events: e.events,
796
- "tracking-enabled": o(Q),
799
+ "tracking-enabled": o(Z),
797
800
  callback: i
798
801
  }, null, 8, [
799
802
  "name",
800
803
  "events",
801
804
  "tracking-enabled",
802
805
  "callback"
803
- ]))), 256)) : c("", !0), o(R) && t.onlyShow !== "events" ? (f(!0), y(O, { key: 1 }, e(o(ne), ({ id: e, name: t, fromDate: n, toDate: a, minimumPersonCount: s, fromPrice: c, description: l, images: u }) => (f(), r(Qe, {
806
+ ]))), 256)) : c("", !0), o(R) && t.onlyShow !== "events" ? (f(!0), y(D, { key: 1 }, e(o(z), ({ id: e, name: t, fromDate: n, toDate: a, minimumPersonCount: s, fromPrice: c, description: l, images: u }) => (f(), r(Ze, {
804
807
  key: e,
805
808
  "listing-id": e,
806
809
  name: t,
@@ -810,7 +813,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
810
813
  "to-date": a,
811
814
  "minimum-person-count": s,
812
815
  fromPrice: c,
813
- "tracking-enabled": o(Q),
816
+ "tracking-enabled": o(Z),
814
817
  callback: i
815
818
  }, null, 8, [
816
819
  "listing-id",
@@ -824,14 +827,14 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
824
827
  "tracking-enabled",
825
828
  "callback"
826
829
  ]))), 128)) : c("", !0)]),
827
- o(Y).length > 0 && t.onlyShow !== "templates" ? (f(), y(O, { key: 2 }, [a("h2", bt, [s(J, {
830
+ o(Y).length > 0 && t.onlyShow !== "templates" ? (f(), y(D, { key: 2 }, [a("h2", bt, [s(J, {
828
831
  icon: "calendar-circle-exclamation",
829
832
  type: "fal",
830
833
  color: "header"
831
- }), a("span", null, n(o(l)("event.availableLater")), 1)]), a("ul", xt, [(f(!0), y(O, null, e(o(Y), (e) => (f(), r(Ye, {
834
+ }), a("span", null, n(o(l)("event.availableLater")), 1)]), a("ul", xt, [(f(!0), y(D, null, e(o(Y), (e) => (f(), r(Je, {
832
835
  name: e.name,
833
836
  events: e.events,
834
- "tracking-enabled": o(Q),
837
+ "tracking-enabled": o(Z),
835
838
  callback: i
836
839
  }, null, 8, [
837
840
  "name",
@@ -839,21 +842,21 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
839
842
  "tracking-enabled",
840
843
  "callback"
841
844
  ]))), 256))])], 64)) : c("", !0),
842
- (!o(L) && !o(R) || !o(L) && t.onlyShow === "events" || !o(R) && t.onlyShow === "templates") && !o(X) ? (f(), y("div", {
845
+ (!o(I) && !o(R) || !o(I) && t.onlyShow === "events" || !o(R) && t.onlyShow === "templates") && !o(ge) ? (f(), y("div", {
843
846
  key: 3,
844
847
  class: "konnectio-panel",
845
848
  innerHTML: o(l)("event.nothingAvailable")
846
849
  }, null, 8, St)) : c("", !0)
847
- ])) : (f(), r(Ce, { key: 1 }))]),
850
+ ])) : (f(), r(we, { key: 1 }))]),
848
851
  _: 2
849
852
  }, 1024)]),
850
- addons: h(({ next: t, prev: i }) => [o(ue) ? (f(), r(ft, {
853
+ addons: h(({ next: t, prev: i }) => [o(ue) ? (f(), r(dt, {
851
854
  key: 0,
852
- "prev-callback": () => o(Le)(i)
855
+ "prev-callback": () => o(Q)(i)
853
856
  }, {
854
857
  form: h(() => [a("form", Ct, [
855
858
  a("h2", null, [a("span", null, n(o(l)("event.selectProducts")), 1)]),
856
- o(V) && o(V).length > 0 ? (f(), y("ul", wt, [(f(!0), y(O, null, e(o(V), ({ roomGroupId: t, addons: i, adultPerRoom: c }, u) => (f(), y("li", { key: t }, [a("h5", null, [
859
+ o(V) && o(V).length > 0 ? (f(), y("ul", wt, [(f(!0), y(D, null, e(o(V), ({ roomGroupId: t, addons: i, adultPerRoom: c }, u) => (f(), y("li", { key: t }, [a("h5", null, [
857
860
  a("span", null, n(o(l)("booking.reservation.room")) + " #" + n(u + 1), 1),
858
861
  d[9] ||= v(" (", -1),
859
862
  s(J, {
@@ -868,11 +871,11 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
868
871
  d[10] ||= a("th", { class: "konnectio-event-addons-input" }, null, -1),
869
872
  a("th", Et, [a("span", null, n(o(l)("booking.availability.price")), 1)])
870
873
  ])]),
871
- a("tbody", null, [(f(!0), y(O, null, e(i, ({ id: e, cardinality: i, name: s, price: c, quantityStrategy: l }) => (f(), y("tr", { key: e }, [
874
+ a("tbody", null, [(f(!0), y(D, null, e(i, ({ id: e, cardinality: i, name: s, price: c, quantityStrategy: l }) => (f(), y("tr", { key: e }, [
872
875
  a("td", null, [
873
876
  a("b", null, n(s), 1),
874
877
  d[11] ||= a("br", null, null, -1),
875
- a("span", null, n(o(I)(c, o(Z))) + " " + n(o(ee)(l)), 1)
878
+ a("span", null, n(o(P)(c, o(X))) + " " + n(o(ee)(l)), 1)
876
879
  ]),
877
880
  a("td", Dt, [i === 3 ? (f(), r(G, {
878
881
  key: 0,
@@ -886,18 +889,18 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
886
889
  "onUpdate:modelValue": (n) => o(m)[`${t}.${e}.${u}`] = n,
887
890
  numeric: !0
888
891
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))]),
889
- a("td", Ot, [a("span", null, n(o(I)(o(Pe)(e, t, u), o(Z))), 1)])
892
+ a("td", Ot, [a("span", null, n(o(P)(o(Fe)(e, t, u), o(X))), 1)])
890
893
  ]))), 128))]),
891
894
  a("tfoot", null, [a("tr", null, [
892
895
  d[12] ||= a("td", null, null, -1),
893
896
  d[13] ||= a("td", null, null, -1),
894
- a("td", kt, [a("u", null, [a("span", null, n(o(I)(o(Fe)(t, u), o(Z))), 1)])])
897
+ a("td", kt, [a("u", null, [a("span", null, n(o(P)(o(Ie)(t, u), o(X))), 1)])])
895
898
  ])])
896
899
  ])]))), 128))])) : c("", !0),
897
- o(oe) ? (f(), y("table", At, [a("tbody", null, [(f(!0), y(O, null, e(o(B).products, ({ id: e, name: t, price: r, description: i }) => (f(), y("tr", { key: e }, [a("td", jt, [
898
- a("b", null, [a("span", null, n(o(N)(t)), 1)]),
899
- i && i !== t ? (f(), y("span", Mt, n(o(N)(i)), 1)) : c("", !0),
900
- a("u", null, n(o(I)(r, o(Z))), 1)
900
+ o(se) ? (f(), y("table", At, [a("tbody", null, [(f(!0), y(D, null, e(o(B).products, ({ id: e, name: t, price: r, description: i }) => (f(), y("tr", { key: e }, [a("td", jt, [
901
+ a("b", null, [a("span", null, n(o(ne)(t)), 1)]),
902
+ i && i !== t ? (f(), y("span", Mt, n(o(ne)(i)), 1)) : c("", !0),
903
+ a("u", null, n(o(P)(r, o(X))), 1)
901
904
  ]), a("td", Nt, [s(G, {
902
905
  modelValue: o(g)[e],
903
906
  "onUpdate:modelValue": (t) => o(g)[e] = t,
@@ -917,10 +920,10 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
917
920
  ])]),
918
921
  _: 2
919
922
  }, 1032, ["prev-callback"])) : c("", !0)]),
920
- reservation: h(({ next: e, prev: i }) => [s(ft, {
923
+ reservation: h(({ next: e, prev: i }) => [s(dt, {
921
924
  "show-terms-notice": !0,
922
925
  "show-gift-card": !0,
923
- "prev-callback": () => o(Le)(i)
926
+ "prev-callback": () => o(Q)(i)
924
927
  }, {
925
928
  form: h(() => [a("form", Pt, [
926
929
  a("h2", null, [a("span", null, n(o(l)("booking.reservation.detailsTitle")), 1)]),
@@ -938,8 +941,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
938
941
  "placeholder"
939
942
  ]),
940
943
  s(W, {
941
- modelValue: o(E),
942
- "onUpdate:modelValue": d[1] ||= (e) => _(E) ? E.value = e : null,
944
+ modelValue: o(O),
945
+ "onUpdate:modelValue": d[1] ||= (e) => _(O) ? O.value = e : null,
943
946
  label: o(l)("booking.reservation.email"),
944
947
  type: "email",
945
948
  name: "email",
@@ -966,8 +969,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
966
969
  ]),
967
970
  o(me) ? (f(), r(Se, {
968
971
  key: 0,
969
- modelValue: o(P),
970
- "onUpdate:modelValue": d[3] ||= (e) => _(P) ? P.value = e : null,
972
+ modelValue: o(F),
973
+ "onUpdate:modelValue": d[3] ||= (e) => _(F) ? F.value = e : null,
971
974
  label: o(l)("event.selectArrivalTime"),
972
975
  name: "eventTimeTable",
973
976
  checkboxes: Ve.value,
@@ -977,7 +980,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
977
980
  "label",
978
981
  "checkboxes"
979
982
  ])) : c("", !0),
980
- o(ce) === o(ae).FullDayEvent ? (f(), r(G, {
983
+ o(ce) === o(ie).FullDayEvent ? (f(), r(G, {
981
984
  key: 1,
982
985
  modelValue: o(x),
983
986
  "onUpdate:modelValue": d[4] ||= (e) => _(x) ? x.value = e : null,
@@ -1014,8 +1017,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
1014
1017
  ])),
1015
1018
  t.hideAllergies !== "yes" && o(B)?.showAllergyFoodFieldOnline ? (f(), r(W, {
1016
1019
  key: 5,
1017
- modelValue: o(A),
1018
- "onUpdate:modelValue": d[8] ||= (e) => _(A) ? A.value = e : null,
1020
+ modelValue: o(M),
1021
+ "onUpdate:modelValue": d[8] ||= (e) => _(M) ? M.value = e : null,
1019
1022
  type: "textarea",
1020
1023
  label: o(l)("booking.reservation.allergies"),
1021
1024
  icon: "allergies",
@@ -1046,27 +1049,14 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
1046
1049
  }, 8, ["steps"])]),
1047
1050
  _: 1
1048
1051
  }, 8, ["access-token", "callback"])]),
1049
- fallback: h(() => [s(gt)]),
1052
+ fallback: h(() => [s(ht)]),
1050
1053
  _: 1
1051
1054
  }))]),
1052
1055
  _: 1
1053
1056
  }, 8, ["styling"]));
1054
1057
  }
1055
- }), [["__scopeId", "data-v-eed27455"]]), It = m(), Lt = E(), Rt = class extends HTMLElement {
1056
- vueApp;
1057
- constructor() {
1058
- super();
1059
- }
1060
- disconnectedCallback() {
1061
- this.vueApp.unmount();
1062
- }
1063
- connectedCallback() {
1064
- let e = w(Ft, this.attributes);
1065
- this.vueApp = x(Ft, e), this.vueApp.provide("emitter", Lt), this.vueApp.use(A), this.vueApp.use(C), this.vueApp.use(It), this.vueApp.use(Te), this.vueApp.use(ve), this.vueApp.use(Z);
1066
- let t = document.createElement("div");
1067
- this.vueApp.mount(t), this.appendChild(t.children[0]);
1068
- }
1069
- };
1070
- window.customElements.define("konnectio-event", Rt);
1058
+ }), [["__scopeId", "data-v-75f83557"]]), It = m(), Lt = T(), Rt = C("konnectio-event", Ft, (e) => {
1059
+ e.provide("emitter", Lt), e.use(k), e.use(S), e.use(It), e.use(Te), e.use(ve), e.use(Ce);
1060
+ });
1071
1061
  //#endregion
1072
1062
  export { Rt as default };