@konnectio/core 4.5.10 → 4.7.0

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 (113) hide show
  1. package/README.md +274 -274
  2. package/dist/{ActionField-DRRWeUYM.js → ActionField-DcJ46kr8.js} +4 -4
  3. package/dist/ActionField-DcJ46kr8.js.br +0 -0
  4. package/dist/ActionField-DcJ46kr8.js.gz +0 -0
  5. package/dist/{AvailabilitySkeleton-Dts-myrc.js → AvailabilitySkeleton-D_WemNm7.js} +2677 -2639
  6. package/dist/AvailabilitySkeleton-D_WemNm7.js.br +0 -0
  7. package/dist/AvailabilitySkeleton-D_WemNm7.js.gz +0 -0
  8. package/dist/{CheckoutWindow-BHVG2dxQ.js → CheckoutWindow-Cxf3LsRu.js} +11 -11
  9. package/dist/CheckoutWindow-Cxf3LsRu.js.br +0 -0
  10. package/dist/CheckoutWindow-Cxf3LsRu.js.gz +0 -0
  11. package/dist/{ErrorMessage-B9Z6kWVl.js → ErrorMessage-CWRDhW-r.js} +4 -4
  12. package/dist/ErrorMessage-CWRDhW-r.js.br +0 -0
  13. package/dist/ErrorMessage-CWRDhW-r.js.gz +0 -0
  14. package/dist/{EventAvailabilityForm-kkiWxezV.js → EventAvailabilityForm--wnnA59l.js} +5 -5
  15. package/dist/EventAvailabilityForm--wnnA59l.js.br +0 -0
  16. package/dist/EventAvailabilityForm--wnnA59l.js.gz +0 -0
  17. package/dist/{Field-uy59BBE5.js → Field-C0HFlyA-.js} +9 -9
  18. package/dist/Field-C0HFlyA-.js.br +0 -0
  19. package/dist/Field-C0HFlyA-.js.gz +0 -0
  20. package/dist/{HotelAvailabilityForm-BorqaKO9.js → HotelAvailabilityForm-CXhF2zZd.js} +5 -5
  21. package/dist/HotelAvailabilityForm-CXhF2zZd.js.br +0 -0
  22. package/dist/HotelAvailabilityForm-CXhF2zZd.js.gz +0 -0
  23. package/dist/{SelectField-Deugng4e.js → SelectField-BuepNFGh.js} +2834 -2512
  24. package/dist/SelectField-BuepNFGh.js.br +0 -0
  25. package/dist/SelectField-BuepNFGh.js.gz +0 -0
  26. package/dist/{TermsOfService-B0e2zZ1G.js → TermsOfService-CI6N0yyP.js} +5 -5
  27. package/dist/TermsOfService-CI6N0yyP.js.br +0 -0
  28. package/dist/TermsOfService-CI6N0yyP.js.gz +1 -0
  29. package/dist/{_-BLU96am3.js → _-CrX9aXtd.js} +4 -4
  30. package/dist/_-CrX9aXtd.js.br +0 -0
  31. package/dist/_-CrX9aXtd.js.gz +0 -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-CkHp-kIg.js → dist-Bmb1V_bQ.js} +290 -231
  45. package/dist/dist-Bmb1V_bQ.js.br +0 -0
  46. package/dist/dist-Bmb1V_bQ.js.gz +0 -0
  47. package/dist/event.js +144 -160
  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 +93 -105
  54. package/dist/gift-card.js.br +0 -0
  55. package/dist/gift-card.js.gz +0 -0
  56. package/dist/{giftCard-D4xa9d4r.js → giftCard-4K4sLoYc.js} +2 -2
  57. package/dist/giftCard-4K4sLoYc.js.br +0 -0
  58. package/dist/giftCard-4K4sLoYc.js.gz +0 -0
  59. package/dist/hotel.js +978 -945
  60. package/dist/hotel.js.br +0 -0
  61. package/dist/hotel.js.gz +0 -0
  62. package/dist/{masonry.plugin-DeTZh8E2.js → masonry.plugin-CB5zqVnY.js} +2864 -3816
  63. package/dist/masonry.plugin-CB5zqVnY.js.br +0 -0
  64. package/dist/masonry.plugin-CB5zqVnY.js.gz +0 -0
  65. package/dist/{mitt-Dp_pykgV.js → mitt-D_sfUt2u.js} +3462 -3343
  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 +27 -27
  69. package/dist/polyfill.js.br +0 -0
  70. package/dist/polyfill.js.gz +0 -0
  71. package/dist/rolldown-runtime-Dqa2HsxW.js.gz +2 -0
  72. package/dist/{style-CyChAn2F.js → style-DxH0isic.js} +4 -4
  73. package/dist/style-DxH0isic.js.br +0 -0
  74. package/dist/style-DxH0isic.js.gz +0 -0
  75. package/dist-wix/availability.js +1116 -0
  76. package/dist-wix/event.js +1117 -0
  77. package/dist-wix/gift-card-validation.js +1106 -0
  78. package/dist-wix/gift-card.js +1115 -0
  79. package/dist-wix/hotel.js +1117 -0
  80. package/package.json +121 -121
  81. package/dist/ActionField-DRRWeUYM.js.br +0 -0
  82. package/dist/ActionField-DRRWeUYM.js.gz +0 -0
  83. package/dist/AvailabilitySkeleton-Dts-myrc.js.br +0 -0
  84. package/dist/AvailabilitySkeleton-Dts-myrc.js.gz +0 -0
  85. package/dist/CheckoutWindow-BHVG2dxQ.js.br +0 -0
  86. package/dist/CheckoutWindow-BHVG2dxQ.js.gz +0 -0
  87. package/dist/ErrorMessage-B9Z6kWVl.js.br +0 -0
  88. package/dist/ErrorMessage-B9Z6kWVl.js.gz +0 -0
  89. package/dist/EventAvailabilityForm-kkiWxezV.js.br +0 -0
  90. package/dist/EventAvailabilityForm-kkiWxezV.js.gz +0 -0
  91. package/dist/Field-uy59BBE5.js.br +0 -0
  92. package/dist/Field-uy59BBE5.js.gz +0 -0
  93. package/dist/HotelAvailabilityForm-BorqaKO9.js.br +0 -0
  94. package/dist/HotelAvailabilityForm-BorqaKO9.js.gz +0 -0
  95. package/dist/SelectField-Deugng4e.js.br +0 -0
  96. package/dist/SelectField-Deugng4e.js.gz +0 -0
  97. package/dist/TermsOfService-B0e2zZ1G.js.br +0 -0
  98. package/dist/TermsOfService-B0e2zZ1G.js.gz +0 -1
  99. package/dist/_-BLU96am3.js.br +0 -0
  100. package/dist/_-BLU96am3.js.gz +0 -0
  101. package/dist/chunk-BPfpcrXh.js.gz +0 -0
  102. package/dist/dist-CkHp-kIg.js.br +0 -0
  103. package/dist/dist-CkHp-kIg.js.gz +0 -0
  104. package/dist/giftCard-D4xa9d4r.js.br +0 -0
  105. package/dist/giftCard-D4xa9d4r.js.gz +0 -9
  106. package/dist/masonry.plugin-DeTZh8E2.js.br +0 -0
  107. package/dist/masonry.plugin-DeTZh8E2.js.gz +0 -0
  108. package/dist/mitt-Dp_pykgV.js.br +0 -0
  109. package/dist/mitt-Dp_pykgV.js.gz +0 -0
  110. package/dist/style-CyChAn2F.js.br +0 -0
  111. package/dist/style-CyChAn2F.js.gz +0 -0
  112. /package/dist/{chunk-BPfpcrXh.js → rolldown-runtime-Dqa2HsxW.js} +0 -0
  113. /package/dist/{chunk-BPfpcrXh.js.br → rolldown-runtime-Dqa2HsxW.js.br} +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-Dp_pykgV.js";
2
- import { t as A } from "./dist-CkHp-kIg.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, dt 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-Deugng4e.js";
4
- import { t as se } from "./_-BLU96am3.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-Dts-myrc.js";
6
- import { t as _e } from "./EventAvailabilityForm-kkiWxezV.js";
7
- import { t as ve } from "./style-CyChAn2F.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-DeTZh8E2.js";
9
- import { i as De, r as Oe, t as ke } from "./CheckoutWindow-BHVG2dxQ.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-Bmb1V_bQ.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-BuepNFGh.js";
4
+ import { t as oe } from "./_-CrX9aXtd.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-D_WemNm7.js";
6
+ import { t as _e } from "./EventAvailabilityForm--wnnA59l.js";
7
+ import { t as ve } from "./style-DxH0isic.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-CB5zqVnY.js";
9
+ import { i as De, r as Oe, t as ke } from "./CheckoutWindow-Cxf3LsRu.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-bfd98c31"]]), Ne = { class: "konnectio-event-listing-information-new" }, Pe = {
151
+ }), [["__scopeId", "data-v-23ac9949"]]), 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-2ecac268"]]), Re = {
231
+ }), [["__scopeId", "data-v-40cbbf2c"]]), 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-20b8c0bd"]]), 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-374ad034"]]), 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-91ea584c"]]), qe = {
419
+ }), [["__scopeId", "data-v-f6aed3b0"]]), 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-dc867986"]]), Xe = ["innerHTML"], Ze = /* @__PURE__ */ B(/* @__PURE__ */ l({
505
+ }), [["__scopeId", "data-v-39263761"]]), 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-af0f6d2a"]]), Qe = /* @__PURE__ */ l({
546
+ }), [["__scopeId", "data-v-0167deff"]]), 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,27 +657,24 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
657
657
  "prev-callback"
658
658
  ]));
659
659
  }
660
- }), [["__scopeId", "data-v-c1e1c642"]]), pt = { class: "event-skeleton" }, mt = { class: "event-skeleton-content" }, ht = { class: "event-skeleton-sidebar" }, gt = /* @__PURE__ */ B(/* @__PURE__ */ l({
660
+ }), [["__scopeId", "data-v-d2ff3f68"]]), 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-af0e7efb"]]), _t = {
665
+ }), [["__scopeId", "data-v-3e15c4e3"]]), gt = {
666
666
  key: 0,
667
667
  id: "konnectio-event-listings-wrapper"
668
- }, vt = {
669
- key: 0,
670
- class: "konnectio-event-listings"
671
- }, yt = {
668
+ }, _t = {
672
669
  key: 1,
673
670
  class: "konnectio-hotel-availability-title"
674
- }, bt = { class: "konnectio-event-listings" }, xt = { class: "konnectio-hotel-availability-title" }, St = { class: "konnectio-event-listings" }, Ct = ["innerHTML"], wt = { class: "konnectio-panel" }, Tt = {
671
+ }, vt = { class: "konnectio-event-listings" }, yt = { class: "konnectio-hotel-availability-title" }, bt = { class: "konnectio-event-listings" }, xt = ["innerHTML"], St = { class: "konnectio-panel" }, Ct = {
675
672
  key: 0,
676
673
  id: "konnectio-event-addons"
677
- }, Et = { class: "konnectio-table with-lines" }, Dt = { class: "konnectio-event-addons-price" }, Ot = { class: "konnectio-event-addons-input" }, kt = { class: "konnectio-event-addons-price" }, At = { class: "konnectio-event-addons-price" }, jt = {
674
+ }, wt = { class: "konnectio-table with-lines" }, Tt = { class: "konnectio-event-addons-price" }, Et = { class: "konnectio-event-addons-input" }, Dt = { class: "konnectio-event-addons-price" }, Ot = { class: "konnectio-event-addons-price" }, kt = {
678
675
  key: 1,
679
676
  class: "konnectio-table with-lines without-header"
680
- }, Mt = { class: "konnectio-table-addons-information" }, Nt = { key: 0 }, Pt = { class: "konnectio-table-addons-option" }, Ft = { class: "konnectio-panel" }, It = /* @__PURE__ */ B(/* @__PURE__ */ l({
677
+ }, At = { class: "konnectio-table-addons-information" }, jt = { key: 0 }, Mt = { class: "konnectio-table-addons-option" }, Nt = { class: "konnectio-panel" }, Pt = /*#__PURE__*/ z(/* @__PURE__ */ l({
681
678
  name: "EventLayout",
682
679
  __name: "Event",
683
680
  props: {
@@ -695,7 +692,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
695
692
  styling: {}
696
693
  },
697
694
  setup(t) {
698
- 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(() => [
695
+ 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(() => [
699
696
  {
700
697
  id: "availability",
701
698
  label: l("booking.availability.title"),
@@ -723,62 +720,62 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
723
720
  }
724
721
  ]), Ve = d(() => {
725
722
  let e = [];
726
- return H.value && H.value.forEach((t) => {
723
+ return ae.value && ae.value.forEach((t) => {
727
724
  e.find((e) => e.value === t.time) || e.push({
728
- label: U(t.time),
725
+ label: H(t.time),
729
726
  value: t.time
730
727
  });
731
728
  }), e;
732
729
  });
733
730
  function He() {
734
- Ie(i.resetDate === "yes");
731
+ Le(i.resetDate === "yes");
735
732
  }
736
733
  function Ue(e) {
737
- Q.value && $(), Ne(e);
734
+ Z.value && Re(), Pe(e);
738
735
  }
739
736
  function We() {
740
- let e = ie("history", { removeNullishValues: !0 }), t = parseInt(e.rid), n = e.d, r = parseInt(e.eid);
741
- if (n) if (F(n)) {
737
+ let e = re("history", { removeNullishValues: !0 }), t = parseInt(e.rid), n = e.d, r = parseInt(e.eid);
738
+ if (n) if (N(n)) {
742
739
  let t = new Date(n);
743
- t.setHours(12, 0, 0, 0) >= (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0) ? Te.value = t : (Re({
740
+ t.setHours(12, 0, 0, 0) >= (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0) ? Ee.value = t : ($({
744
741
  message: l("alert.error.invalidDateRange"),
745
742
  type: "error"
746
743
  }), e.d = void 0);
747
- } else Re({
744
+ } else $({
748
745
  message: l("alert.error.wrongDateFormat"),
749
746
  type: "error"
750
747
  });
751
- isNaN(t) || (Ae(t) ? Ee.value = t : (e.rid = void 0, Re({
748
+ isNaN(t) || (je(t) ? Ae.value = t : (e.rid = void 0, $({
752
749
  message: l("alert.error.hotelIdNotFound"),
753
750
  type: "error"
754
- }))), isNaN(r) || we(r), i.excludeEventIds && (ve.value = i.excludeEventIds), Me();
751
+ }))), isNaN(r) || Te(r), i.excludeEventIds && (xe.value = i.excludeEventIds), Ne();
755
752
  }
756
- return (i, d) => (f(), r(re, { styling: t.styling }, {
753
+ return (i, d) => (f(), r(U, { styling: t.styling }, {
757
754
  default: h(() => [(f(), r(u, { onResolve: We }, {
758
- default: h(() => [s(se, {
755
+ default: h(() => [s(oe, {
759
756
  id: "konnectio-event-module",
760
757
  "access-token": t.accessToken,
761
- callback: o(je)
758
+ callback: o(Me)
762
759
  }, {
763
760
  default: h(() => [s(be, {
764
- steps: ze.value,
761
+ steps: Be.value,
765
762
  onReset: He
766
763
  }, {
767
- availability: h(({ next: i }) => [s(ft, null, {
764
+ availability: h(({ next: i }) => [s(dt, null, {
768
765
  sidebar: h(() => [s(_e, {
769
766
  redirection: !1,
770
767
  "selected-location": Number(t.selectedLocation),
771
768
  "hide-locations": t.hideLocations === "yes"
772
769
  }, null, 8, ["selected-location", "hide-locations"])]),
773
- form: h(() => [o(de) && o(le) ? (f(), y("div", _t, [
774
- o(X) ? (f(), y("ul", vt, [(f(!0), y(O, null, e(o(ge), ({ id: e, name: t, description: n, images: a }) => (f(), r(Ze, {
770
+ form: h(() => [o(de) && o(le) ? (f(), y("div", gt, [
771
+ o(ge) ? (f(!0), y(D, { key: 0 }, e(o(ve), ({ id: e, name: t, description: n, images: a }) => (f(), r(Xe, {
775
772
  key: e,
776
773
  type: "event",
777
774
  "listing-id": e,
778
775
  description: n,
779
776
  name: t,
780
777
  gallery: a,
781
- "tracking-enabled": o(Q),
778
+ "tracking-enabled": o(Z),
782
779
  callback: i
783
780
  }, null, 8, [
784
781
  "listing-id",
@@ -787,23 +784,23 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
787
784
  "gallery",
788
785
  "tracking-enabled",
789
786
  "callback"
790
- ]))), 128))])) : c("", !0),
791
- xe.value.length > 0 && o(Y).length > 0 ? (f(), y("h2", yt, [s(J, {
787
+ ]))), 128)) : c("", !0),
788
+ Ce.value.length > 0 && o(Y).length > 0 ? (f(), y("h2", _t, [s(J, {
792
789
  icon: "calendar-clock",
793
790
  type: "fal",
794
791
  color: "header"
795
792
  }), a("span", null, n(o(l)("event.availableNow")), 1)])) : c("", !0),
796
- a("ul", bt, [o(L) && t.onlyShow !== "templates" ? (f(!0), y(O, { key: 0 }, e(xe.value, (e) => (f(), r(Be, {
793
+ a("ul", vt, [o(I) && t.onlyShow !== "templates" ? (f(!0), y(D, { key: 0 }, e(Ce.value, (e) => (f(), r(ze, {
797
794
  name: e.name,
798
795
  events: e.events,
799
- "tracking-enabled": o(Q),
796
+ "tracking-enabled": o(Z),
800
797
  callback: i
801
798
  }, null, 8, [
802
799
  "name",
803
800
  "events",
804
801
  "tracking-enabled",
805
802
  "callback"
806
- ]))), 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, {
803
+ ]))), 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, {
807
804
  key: e,
808
805
  "listing-id": e,
809
806
  name: t,
@@ -813,7 +810,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
813
810
  "to-date": a,
814
811
  "minimum-person-count": s,
815
812
  fromPrice: c,
816
- "tracking-enabled": o(Q),
813
+ "tracking-enabled": o(Z),
817
814
  callback: i
818
815
  }, null, 8, [
819
816
  "listing-id",
@@ -827,14 +824,14 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
827
824
  "tracking-enabled",
828
825
  "callback"
829
826
  ]))), 128)) : c("", !0)]),
830
- o(Y).length > 0 && t.onlyShow !== "templates" ? (f(), y(O, { key: 2 }, [a("h2", xt, [s(J, {
827
+ o(Y).length > 0 && t.onlyShow !== "templates" ? (f(), y(D, { key: 2 }, [a("h2", yt, [s(J, {
831
828
  icon: "calendar-circle-exclamation",
832
829
  type: "fal",
833
830
  color: "header"
834
- }), a("span", null, n(o(l)("event.availableLater")), 1)]), a("ul", St, [(f(!0), y(O, null, e(o(Y), (e) => (f(), r(Ye, {
831
+ }), a("span", null, n(o(l)("event.availableLater")), 1)]), a("ul", bt, [(f(!0), y(D, null, e(o(Y), (e) => (f(), r(Je, {
835
832
  name: e.name,
836
833
  events: e.events,
837
- "tracking-enabled": o(Q),
834
+ "tracking-enabled": o(Z),
838
835
  callback: i
839
836
  }, null, 8, [
840
837
  "name",
@@ -842,21 +839,21 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
842
839
  "tracking-enabled",
843
840
  "callback"
844
841
  ]))), 256))])], 64)) : c("", !0),
845
- (!o(L) && !o(R) || !o(L) && t.onlyShow === "events" || !o(R) && t.onlyShow === "templates") && !o(X) ? (f(), y("div", {
842
+ (!o(I) && !o(R) || !o(I) && t.onlyShow === "events" || !o(R) && t.onlyShow === "templates") && !o(ge) ? (f(), y("div", {
846
843
  key: 3,
847
844
  class: "konnectio-panel",
848
845
  innerHTML: o(l)("event.nothingAvailable")
849
- }, null, 8, Ct)) : c("", !0)
850
- ])) : (f(), r(Ce, { key: 1 }))]),
846
+ }, null, 8, xt)) : c("", !0)
847
+ ])) : (f(), r(we, { key: 1 }))]),
851
848
  _: 2
852
849
  }, 1024)]),
853
- addons: h(({ next: t, prev: i }) => [o(ue) ? (f(), r(ft, {
850
+ addons: h(({ next: t, prev: i }) => [o(ue) ? (f(), r(dt, {
854
851
  key: 0,
855
- "prev-callback": () => o(Le)(i)
852
+ "prev-callback": () => o(Q)(i)
856
853
  }, {
857
- form: h(() => [a("form", wt, [
854
+ form: h(() => [a("form", St, [
858
855
  a("h2", null, [a("span", null, n(o(l)("event.selectProducts")), 1)]),
859
- o(V) && o(V).length > 0 ? (f(), y("ul", Tt, [(f(!0), y(O, null, e(o(V), ({ roomGroupId: t, addons: i, adultPerRoom: c }, u) => (f(), y("li", { key: t }, [a("h5", null, [
856
+ o(V) && o(V).length > 0 ? (f(), y("ul", Ct, [(f(!0), y(D, null, e(o(V), ({ roomGroupId: t, addons: i, adultPerRoom: c }, u) => (f(), y("li", { key: t }, [a("h5", null, [
860
857
  a("span", null, n(o(l)("booking.reservation.room")) + " #" + n(u + 1), 1),
861
858
  d[9] ||= v(" (", -1),
862
859
  s(J, {
@@ -865,19 +862,19 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
865
862
  color: "header"
866
863
  }),
867
864
  v(" " + n(c) + ") ", 1)
868
- ]), a("table", Et, [
865
+ ]), a("table", wt, [
869
866
  a("thead", null, [a("tr", null, [
870
867
  a("th", null, [a("span", null, n(o(l)("booking.reservation.addons")), 1)]),
871
868
  d[10] ||= a("th", { class: "konnectio-event-addons-input" }, null, -1),
872
- a("th", Dt, [a("span", null, n(o(l)("booking.availability.price")), 1)])
869
+ a("th", Tt, [a("span", null, n(o(l)("booking.availability.price")), 1)])
873
870
  ])]),
874
- 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 }, [
871
+ 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 }, [
875
872
  a("td", null, [
876
873
  a("b", null, n(s), 1),
877
874
  d[11] ||= a("br", null, null, -1),
878
- a("span", null, n(o(I)(c, o(Z))) + " " + n(o(ee)(l)), 1)
875
+ a("span", null, n(o(P)(c, o(X))) + " " + n(o(ee)(l)), 1)
879
876
  ]),
880
- a("td", Ot, [i === 3 ? (f(), r(G, {
877
+ a("td", Et, [i === 3 ? (f(), r(G, {
881
878
  key: 0,
882
879
  modelValue: o(m)[`${t}.${e}.${u}`],
883
880
  "onUpdate:modelValue": (n) => o(m)[`${t}.${e}.${u}`] = n,
@@ -889,19 +886,19 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
889
886
  "onUpdate:modelValue": (n) => o(m)[`${t}.${e}.${u}`] = n,
890
887
  numeric: !0
891
888
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))]),
892
- a("td", kt, [a("span", null, n(o(I)(o(Pe)(e, t, u), o(Z))), 1)])
889
+ a("td", Dt, [a("span", null, n(o(P)(o(Fe)(e, t, u), o(X))), 1)])
893
890
  ]))), 128))]),
894
891
  a("tfoot", null, [a("tr", null, [
895
892
  d[12] ||= a("td", null, null, -1),
896
893
  d[13] ||= a("td", null, null, -1),
897
- a("td", At, [a("u", null, [a("span", null, n(o(I)(o(Fe)(t, u), o(Z))), 1)])])
894
+ a("td", Ot, [a("u", null, [a("span", null, n(o(P)(o(Ie)(t, u), o(X))), 1)])])
898
895
  ])])
899
896
  ])]))), 128))])) : c("", !0),
900
- o(oe) ? (f(), y("table", jt, [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", Mt, [
901
- a("b", null, [a("span", null, n(o(N)(t)), 1)]),
902
- i && i !== t ? (f(), y("span", Nt, n(o(N)(i)), 1)) : c("", !0),
903
- a("u", null, n(o(I)(r, o(Z))), 1)
904
- ]), a("td", Pt, [s(G, {
897
+ o(se) ? (f(), y("table", kt, [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", At, [
898
+ a("b", null, [a("span", null, n(o(ne)(t)), 1)]),
899
+ i && i !== t ? (f(), y("span", jt, n(o(ne)(i)), 1)) : c("", !0),
900
+ a("u", null, n(o(P)(r, o(X))), 1)
901
+ ]), a("td", Mt, [s(G, {
905
902
  modelValue: o(g)[e],
906
903
  "onUpdate:modelValue": (t) => o(g)[e] = t,
907
904
  small: !0,
@@ -920,12 +917,12 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
920
917
  ])]),
921
918
  _: 2
922
919
  }, 1032, ["prev-callback"])) : c("", !0)]),
923
- reservation: h(({ next: e, prev: i }) => [s(ft, {
920
+ reservation: h(({ next: e, prev: i }) => [s(dt, {
924
921
  "show-terms-notice": !0,
925
922
  "show-gift-card": !0,
926
- "prev-callback": () => o(Le)(i)
923
+ "prev-callback": () => o(Q)(i)
927
924
  }, {
928
- form: h(() => [a("form", Ft, [
925
+ form: h(() => [a("form", Nt, [
929
926
  a("h2", null, [a("span", null, n(o(l)("booking.reservation.detailsTitle")), 1)]),
930
927
  s(W, {
931
928
  modelValue: o(w),
@@ -941,8 +938,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
941
938
  "placeholder"
942
939
  ]),
943
940
  s(W, {
944
- modelValue: o(E),
945
- "onUpdate:modelValue": d[1] ||= (e) => _(E) ? E.value = e : null,
941
+ modelValue: o(O),
942
+ "onUpdate:modelValue": d[1] ||= (e) => _(O) ? O.value = e : null,
946
943
  label: o(l)("booking.reservation.email"),
947
944
  type: "email",
948
945
  name: "email",
@@ -969,8 +966,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
969
966
  ]),
970
967
  o(me) ? (f(), r(Se, {
971
968
  key: 0,
972
- modelValue: o(P),
973
- "onUpdate:modelValue": d[3] ||= (e) => _(P) ? P.value = e : null,
969
+ modelValue: o(F),
970
+ "onUpdate:modelValue": d[3] ||= (e) => _(F) ? F.value = e : null,
974
971
  label: o(l)("event.selectArrivalTime"),
975
972
  name: "eventTimeTable",
976
973
  checkboxes: Ve.value,
@@ -980,7 +977,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
980
977
  "label",
981
978
  "checkboxes"
982
979
  ])) : c("", !0),
983
- o(ce) === o(ae).FullDayEvent ? (f(), r(G, {
980
+ o(ce) === o(ie).FullDayEvent ? (f(), r(G, {
984
981
  key: 1,
985
982
  modelValue: o(x),
986
983
  "onUpdate:modelValue": d[4] ||= (e) => _(x) ? x.value = e : null,
@@ -1017,8 +1014,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
1017
1014
  ])),
1018
1015
  t.hideAllergies !== "yes" && o(B)?.showAllergyFoodFieldOnline ? (f(), r(W, {
1019
1016
  key: 5,
1020
- modelValue: o(A),
1021
- "onUpdate:modelValue": d[8] ||= (e) => _(A) ? A.value = e : null,
1017
+ modelValue: o(M),
1018
+ "onUpdate:modelValue": d[8] ||= (e) => _(M) ? M.value = e : null,
1022
1019
  type: "textarea",
1023
1020
  label: o(l)("booking.reservation.allergies"),
1024
1021
  icon: "allergies",
@@ -1049,27 +1046,14 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /* @__PURE__ *
1049
1046
  }, 8, ["steps"])]),
1050
1047
  _: 1
1051
1048
  }, 8, ["access-token", "callback"])]),
1052
- fallback: h(() => [s(gt)]),
1049
+ fallback: h(() => [s(ht)]),
1053
1050
  _: 1
1054
1051
  }))]),
1055
1052
  _: 1
1056
1053
  }, 8, ["styling"]));
1057
1054
  }
1058
- }), [["__scopeId", "data-v-75f83557"]]), Lt = m(), Rt = E(), zt = class extends HTMLElement {
1059
- vueApp;
1060
- constructor() {
1061
- super();
1062
- }
1063
- disconnectedCallback() {
1064
- this.vueApp.unmount();
1065
- }
1066
- connectedCallback() {
1067
- let e = w(It, this.attributes);
1068
- this.vueApp = x(It, e), this.vueApp.provide("emitter", Rt), this.vueApp.use(A), this.vueApp.use(C), this.vueApp.use(Lt), this.vueApp.use(Te), this.vueApp.use(ve), this.vueApp.use(Z);
1069
- let t = document.createElement("div");
1070
- this.vueApp.mount(t), this.appendChild(t.children[0]);
1071
- }
1072
- };
1073
- window.customElements.define("konnectio-event", zt);
1055
+ }), [["__scopeId", "data-v-eed27455"]]), Ft = m(), It = T(), Lt = C("konnectio-event", Pt, (e) => {
1056
+ e.provide("emitter", It), e.use(k), e.use(S), e.use(Ft), e.use(Te), e.use(ve), e.use(Ce);
1057
+ });
1074
1058
  //#endregion
1075
- export { zt as default };
1059
+ export { Lt as default };