@konnectio/core 4.6.0 → 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 (106) hide show
  1. package/dist/{ActionField-B7UmJY0Z.js → ActionField-DcJ46kr8.js} +2 -2
  2. package/dist/ActionField-DcJ46kr8.js.br +0 -0
  3. package/dist/ActionField-DcJ46kr8.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-BUHF365q.js → AvailabilitySkeleton-D_WemNm7.js} +3 -3
  5. package/dist/AvailabilitySkeleton-D_WemNm7.js.br +0 -0
  6. package/dist/{AvailabilitySkeleton-BUHF365q.js.gz → AvailabilitySkeleton-D_WemNm7.js.gz} +0 -0
  7. package/dist/{CheckoutWindow-0YZfQh0h.js → CheckoutWindow-Cxf3LsRu.js} +2 -2
  8. package/dist/CheckoutWindow-Cxf3LsRu.js.br +0 -0
  9. package/dist/CheckoutWindow-Cxf3LsRu.js.gz +0 -0
  10. package/dist/{ErrorMessage-DAJHMXps.js → ErrorMessage-CWRDhW-r.js} +2 -2
  11. package/dist/ErrorMessage-CWRDhW-r.js.br +0 -0
  12. package/dist/ErrorMessage-CWRDhW-r.js.gz +0 -0
  13. package/dist/{EventAvailabilityForm-CYqJiGK-.js → EventAvailabilityForm--wnnA59l.js} +3 -3
  14. package/dist/EventAvailabilityForm--wnnA59l.js.br +0 -0
  15. package/dist/EventAvailabilityForm--wnnA59l.js.gz +0 -0
  16. package/dist/{Field-Bot3mYQN.js → Field-C0HFlyA-.js} +2 -2
  17. package/dist/Field-C0HFlyA-.js.br +0 -0
  18. package/dist/Field-C0HFlyA-.js.gz +0 -0
  19. package/dist/{HotelAvailabilityForm-B7kyXx-7.js → HotelAvailabilityForm-CXhF2zZd.js} +3 -3
  20. package/dist/HotelAvailabilityForm-CXhF2zZd.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-CXhF2zZd.js.gz +0 -0
  22. package/dist/{SelectField-hnSeKsyE.js → SelectField-BuepNFGh.js} +18 -5
  23. package/dist/SelectField-BuepNFGh.js.br +0 -0
  24. package/dist/SelectField-BuepNFGh.js.gz +0 -0
  25. package/dist/{TermsOfService-BNMlDWlr.js → TermsOfService-CI6N0yyP.js} +3 -3
  26. package/dist/TermsOfService-CI6N0yyP.js.br +0 -0
  27. package/dist/TermsOfService-CI6N0yyP.js.gz +1 -0
  28. package/dist/{_-C-uU-YJK.js → _-CrX9aXtd.js} +2 -2
  29. package/dist/_-CrX9aXtd.js.br +0 -0
  30. package/dist/_-CrX9aXtd.js.gz +0 -0
  31. package/dist/availability.js +28 -41
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +34 -47
  35. package/dist/cancel-reservation.js.br +0 -0
  36. package/dist/cancel-reservation.js.gz +0 -0
  37. package/dist/core.css +1 -1
  38. package/dist/core.css.br +0 -0
  39. package/dist/core.css.gz +0 -0
  40. package/dist/deep-link.js +11 -24
  41. package/dist/deep-link.js.br +0 -0
  42. package/dist/deep-link.js.gz +0 -0
  43. package/dist/{dist-BRLG6yf0.js → dist-Bmb1V_bQ.js} +4 -4
  44. package/dist/dist-Bmb1V_bQ.js.br +0 -0
  45. package/dist/dist-Bmb1V_bQ.js.gz +0 -0
  46. package/dist/event.js +141 -154
  47. package/dist/event.js.br +0 -0
  48. package/dist/event.js.gz +0 -0
  49. package/dist/gift-card-validation.js +37 -50
  50. package/dist/gift-card-validation.js.br +0 -0
  51. package/dist/gift-card-validation.js.gz +0 -0
  52. package/dist/gift-card.js +92 -105
  53. package/dist/gift-card.js.br +0 -0
  54. package/dist/gift-card.js.gz +0 -0
  55. package/dist/{giftCard-DVmVkjIL.js → giftCard-4K4sLoYc.js} +2 -2
  56. package/dist/giftCard-4K4sLoYc.js.br +0 -0
  57. package/dist/giftCard-4K4sLoYc.js.gz +0 -0
  58. package/dist/hotel.js +1204 -1217
  59. package/dist/hotel.js.br +0 -0
  60. package/dist/hotel.js.gz +0 -0
  61. package/dist/{masonry.plugin-BE-hxMX3.js → masonry.plugin-CB5zqVnY.js} +28 -24
  62. package/dist/masonry.plugin-CB5zqVnY.js.br +0 -0
  63. package/dist/masonry.plugin-CB5zqVnY.js.gz +0 -0
  64. package/dist/{mitt-CC88Lv06.js → mitt-D_sfUt2u.js} +534 -520
  65. package/dist/mitt-D_sfUt2u.js.br +0 -0
  66. package/dist/{mitt-CC88Lv06.js.gz → mitt-D_sfUt2u.js.gz} +0 -0
  67. package/dist/polyfill.js +1 -1
  68. package/dist/polyfill.js.br +0 -0
  69. package/dist/polyfill.js.gz +0 -0
  70. package/dist/{style-BYpuwNCr.js → style-DxH0isic.js} +2 -2
  71. package/dist/style-DxH0isic.js.br +0 -0
  72. package/dist/style-DxH0isic.js.gz +0 -0
  73. package/dist-wix/availability.js +593 -71
  74. package/dist-wix/event.js +591 -69
  75. package/dist-wix/gift-card-validation.js +590 -68
  76. package/dist-wix/gift-card.js +592 -70
  77. package/dist-wix/hotel.js +591 -69
  78. package/package.json +4 -4
  79. package/dist/ActionField-B7UmJY0Z.js.br +0 -0
  80. package/dist/ActionField-B7UmJY0Z.js.gz +0 -0
  81. package/dist/AvailabilitySkeleton-BUHF365q.js.br +0 -0
  82. package/dist/CheckoutWindow-0YZfQh0h.js.br +0 -0
  83. package/dist/CheckoutWindow-0YZfQh0h.js.gz +0 -0
  84. package/dist/ErrorMessage-DAJHMXps.js.br +0 -0
  85. package/dist/ErrorMessage-DAJHMXps.js.gz +0 -0
  86. package/dist/EventAvailabilityForm-CYqJiGK-.js.br +0 -0
  87. package/dist/EventAvailabilityForm-CYqJiGK-.js.gz +0 -0
  88. package/dist/Field-Bot3mYQN.js.br +0 -0
  89. package/dist/Field-Bot3mYQN.js.gz +0 -0
  90. package/dist/HotelAvailabilityForm-B7kyXx-7.js.br +0 -0
  91. package/dist/HotelAvailabilityForm-B7kyXx-7.js.gz +0 -0
  92. package/dist/SelectField-hnSeKsyE.js.br +0 -0
  93. package/dist/SelectField-hnSeKsyE.js.gz +0 -0
  94. package/dist/TermsOfService-BNMlDWlr.js.br +0 -0
  95. package/dist/TermsOfService-BNMlDWlr.js.gz +0 -3
  96. package/dist/_-C-uU-YJK.js.br +0 -0
  97. package/dist/_-C-uU-YJK.js.gz +0 -4
  98. package/dist/dist-BRLG6yf0.js.br +0 -0
  99. package/dist/dist-BRLG6yf0.js.gz +0 -0
  100. package/dist/giftCard-DVmVkjIL.js.br +0 -0
  101. package/dist/giftCard-DVmVkjIL.js.gz +0 -0
  102. package/dist/masonry.plugin-BE-hxMX3.js.br +0 -0
  103. package/dist/masonry.plugin-BE-hxMX3.js.gz +0 -0
  104. package/dist/mitt-CC88Lv06.js.br +0 -0
  105. package/dist/style-BYpuwNCr.js.br +0 -0
  106. 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-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",
@@ -154,7 +154,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
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
@@ -231,7 +231,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
231
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-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-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-f6aed3b0"]]), 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-39263761"]]), 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-0167deff"]]), 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,24 +657,24 @@ 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-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-3e15c4e3"]]), _t = {
665
+ }), [["__scopeId", "data-v-3e15c4e3"]]), gt = {
666
666
  key: 0,
667
667
  id: "konnectio-event-listings-wrapper"
668
- }, vt = {
668
+ }, _t = {
669
669
  key: 1,
670
670
  class: "konnectio-hotel-availability-title"
671
- }, yt = { class: "konnectio-event-listings" }, bt = { class: "konnectio-hotel-availability-title" }, xt = { class: "konnectio-event-listings" }, St = ["innerHTML"], Ct = { class: "konnectio-panel" }, wt = {
671
+ }, vt = { class: "konnectio-event-listings" }, yt = { class: "konnectio-hotel-availability-title" }, bt = { class: "konnectio-event-listings" }, xt = ["innerHTML"], St = { class: "konnectio-panel" }, Ct = {
672
672
  key: 0,
673
673
  id: "konnectio-event-addons"
674
- }, 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 = {
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 = {
675
675
  key: 1,
676
676
  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({
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({
678
678
  name: "EventLayout",
679
679
  __name: "Event",
680
680
  props: {
@@ -692,7 +692,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
692
692
  styling: {}
693
693
  },
694
694
  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(() => [
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(() => [
696
696
  {
697
697
  id: "availability",
698
698
  label: l("booking.availability.title"),
@@ -720,62 +720,62 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
720
720
  }
721
721
  ]), Ve = d(() => {
722
722
  let e = [];
723
- return H.value && H.value.forEach((t) => {
723
+ return ae.value && ae.value.forEach((t) => {
724
724
  e.find((e) => e.value === t.time) || e.push({
725
- label: U(t.time),
725
+ label: H(t.time),
726
726
  value: t.time
727
727
  });
728
728
  }), e;
729
729
  });
730
730
  function He() {
731
- Ie(i.resetDate === "yes");
731
+ Le(i.resetDate === "yes");
732
732
  }
733
733
  function Ue(e) {
734
- Q.value && $(), Ne(e);
734
+ Z.value && Re(), Pe(e);
735
735
  }
736
736
  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)) {
737
+ let e = re("history", { removeNullishValues: !0 }), t = parseInt(e.rid), n = e.d, r = parseInt(e.eid);
738
+ if (n) if (N(n)) {
739
739
  let t = new Date(n);
740
- 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 : ($({
741
741
  message: l("alert.error.invalidDateRange"),
742
742
  type: "error"
743
743
  }), e.d = void 0);
744
- } else Re({
744
+ } else $({
745
745
  message: l("alert.error.wrongDateFormat"),
746
746
  type: "error"
747
747
  });
748
- isNaN(t) || (Ae(t) ? Ee.value = t : (e.rid = void 0, Re({
748
+ isNaN(t) || (je(t) ? Ae.value = t : (e.rid = void 0, $({
749
749
  message: l("alert.error.hotelIdNotFound"),
750
750
  type: "error"
751
- }))), isNaN(r) || we(r), i.excludeEventIds && (ve.value = i.excludeEventIds), Me();
751
+ }))), isNaN(r) || Te(r), i.excludeEventIds && (xe.value = i.excludeEventIds), Ne();
752
752
  }
753
- return (i, d) => (f(), r(re, { styling: t.styling }, {
753
+ return (i, d) => (f(), r(U, { styling: t.styling }, {
754
754
  default: h(() => [(f(), r(u, { onResolve: We }, {
755
- default: h(() => [s(se, {
755
+ default: h(() => [s(oe, {
756
756
  id: "konnectio-event-module",
757
757
  "access-token": t.accessToken,
758
- callback: o(je)
758
+ callback: o(Me)
759
759
  }, {
760
760
  default: h(() => [s(be, {
761
- steps: ze.value,
761
+ steps: Be.value,
762
762
  onReset: He
763
763
  }, {
764
- availability: h(({ next: i }) => [s(ft, null, {
764
+ availability: h(({ next: i }) => [s(dt, null, {
765
765
  sidebar: h(() => [s(_e, {
766
766
  redirection: !1,
767
767
  "selected-location": Number(t.selectedLocation),
768
768
  "hide-locations": t.hideLocations === "yes"
769
769
  }, 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, {
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, {
772
772
  key: e,
773
773
  type: "event",
774
774
  "listing-id": e,
775
775
  description: n,
776
776
  name: t,
777
777
  gallery: a,
778
- "tracking-enabled": o(Q),
778
+ "tracking-enabled": o(Z),
779
779
  callback: i
780
780
  }, null, 8, [
781
781
  "listing-id",
@@ -785,22 +785,22 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
785
785
  "tracking-enabled",
786
786
  "callback"
787
787
  ]))), 128)) : c("", !0),
788
- xe.value.length > 0 && o(Y).length > 0 ? (f(), y("h2", vt, [s(J, {
788
+ Ce.value.length > 0 && o(Y).length > 0 ? (f(), y("h2", _t, [s(J, {
789
789
  icon: "calendar-clock",
790
790
  type: "fal",
791
791
  color: "header"
792
792
  }), 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, {
793
+ a("ul", vt, [o(I) && t.onlyShow !== "templates" ? (f(!0), y(D, { key: 0 }, e(Ce.value, (e) => (f(), r(ze, {
794
794
  name: e.name,
795
795
  events: e.events,
796
- "tracking-enabled": o(Q),
796
+ "tracking-enabled": o(Z),
797
797
  callback: i
798
798
  }, null, 8, [
799
799
  "name",
800
800
  "events",
801
801
  "tracking-enabled",
802
802
  "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, {
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, {
804
804
  key: e,
805
805
  "listing-id": e,
806
806
  name: t,
@@ -810,7 +810,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
810
810
  "to-date": a,
811
811
  "minimum-person-count": s,
812
812
  fromPrice: c,
813
- "tracking-enabled": o(Q),
813
+ "tracking-enabled": o(Z),
814
814
  callback: i
815
815
  }, null, 8, [
816
816
  "listing-id",
@@ -824,14 +824,14 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
824
824
  "tracking-enabled",
825
825
  "callback"
826
826
  ]))), 128)) : c("", !0)]),
827
- o(Y).length > 0 && t.onlyShow !== "templates" ? (f(), y(O, { key: 2 }, [a("h2", bt, [s(J, {
827
+ o(Y).length > 0 && t.onlyShow !== "templates" ? (f(), y(D, { key: 2 }, [a("h2", yt, [s(J, {
828
828
  icon: "calendar-circle-exclamation",
829
829
  type: "fal",
830
830
  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, {
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, {
832
832
  name: e.name,
833
833
  events: e.events,
834
- "tracking-enabled": o(Q),
834
+ "tracking-enabled": o(Z),
835
835
  callback: i
836
836
  }, null, 8, [
837
837
  "name",
@@ -839,21 +839,21 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
839
839
  "tracking-enabled",
840
840
  "callback"
841
841
  ]))), 256))])], 64)) : c("", !0),
842
- (!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", {
843
843
  key: 3,
844
844
  class: "konnectio-panel",
845
845
  innerHTML: o(l)("event.nothingAvailable")
846
- }, null, 8, St)) : c("", !0)
847
- ])) : (f(), r(Ce, { key: 1 }))]),
846
+ }, null, 8, xt)) : c("", !0)
847
+ ])) : (f(), r(we, { key: 1 }))]),
848
848
  _: 2
849
849
  }, 1024)]),
850
- addons: h(({ next: t, prev: i }) => [o(ue) ? (f(), r(ft, {
850
+ addons: h(({ next: t, prev: i }) => [o(ue) ? (f(), r(dt, {
851
851
  key: 0,
852
- "prev-callback": () => o(Le)(i)
852
+ "prev-callback": () => o(Q)(i)
853
853
  }, {
854
- form: h(() => [a("form", Ct, [
854
+ form: h(() => [a("form", St, [
855
855
  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, [
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, [
857
857
  a("span", null, n(o(l)("booking.reservation.room")) + " #" + n(u + 1), 1),
858
858
  d[9] ||= v(" (", -1),
859
859
  s(J, {
@@ -862,19 +862,19 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
862
862
  color: "header"
863
863
  }),
864
864
  v(" " + n(c) + ") ", 1)
865
- ]), a("table", Tt, [
865
+ ]), a("table", wt, [
866
866
  a("thead", null, [a("tr", null, [
867
867
  a("th", null, [a("span", null, n(o(l)("booking.reservation.addons")), 1)]),
868
868
  d[10] ||= a("th", { class: "konnectio-event-addons-input" }, null, -1),
869
- a("th", Et, [a("span", null, n(o(l)("booking.availability.price")), 1)])
869
+ a("th", Tt, [a("span", null, n(o(l)("booking.availability.price")), 1)])
870
870
  ])]),
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 }, [
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 }, [
872
872
  a("td", null, [
873
873
  a("b", null, n(s), 1),
874
874
  d[11] ||= a("br", null, null, -1),
875
- 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)
876
876
  ]),
877
- a("td", Dt, [i === 3 ? (f(), r(G, {
877
+ a("td", Et, [i === 3 ? (f(), r(G, {
878
878
  key: 0,
879
879
  modelValue: o(m)[`${t}.${e}.${u}`],
880
880
  "onUpdate:modelValue": (n) => o(m)[`${t}.${e}.${u}`] = n,
@@ -886,19 +886,19 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
886
886
  "onUpdate:modelValue": (n) => o(m)[`${t}.${e}.${u}`] = n,
887
887
  numeric: !0
888
888
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))]),
889
- a("td", Ot, [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)])
890
890
  ]))), 128))]),
891
891
  a("tfoot", null, [a("tr", null, [
892
892
  d[12] ||= a("td", null, null, -1),
893
893
  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)])])
894
+ a("td", Ot, [a("u", null, [a("span", null, n(o(P)(o(Ie)(t, u), o(X))), 1)])])
895
895
  ])])
896
896
  ])]))), 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)
901
- ]), a("td", Nt, [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, {
902
902
  modelValue: o(g)[e],
903
903
  "onUpdate:modelValue": (t) => o(g)[e] = t,
904
904
  small: !0,
@@ -917,12 +917,12 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
917
917
  ])]),
918
918
  _: 2
919
919
  }, 1032, ["prev-callback"])) : c("", !0)]),
920
- reservation: h(({ next: e, prev: i }) => [s(ft, {
920
+ reservation: h(({ next: e, prev: i }) => [s(dt, {
921
921
  "show-terms-notice": !0,
922
922
  "show-gift-card": !0,
923
- "prev-callback": () => o(Le)(i)
923
+ "prev-callback": () => o(Q)(i)
924
924
  }, {
925
- form: h(() => [a("form", Pt, [
925
+ form: h(() => [a("form", Nt, [
926
926
  a("h2", null, [a("span", null, n(o(l)("booking.reservation.detailsTitle")), 1)]),
927
927
  s(W, {
928
928
  modelValue: o(w),
@@ -938,8 +938,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
938
938
  "placeholder"
939
939
  ]),
940
940
  s(W, {
941
- modelValue: o(E),
942
- "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,
943
943
  label: o(l)("booking.reservation.email"),
944
944
  type: "email",
945
945
  name: "email",
@@ -966,8 +966,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
966
966
  ]),
967
967
  o(me) ? (f(), r(Se, {
968
968
  key: 0,
969
- modelValue: o(P),
970
- "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,
971
971
  label: o(l)("event.selectArrivalTime"),
972
972
  name: "eventTimeTable",
973
973
  checkboxes: Ve.value,
@@ -977,7 +977,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
977
977
  "label",
978
978
  "checkboxes"
979
979
  ])) : c("", !0),
980
- o(ce) === o(ae).FullDayEvent ? (f(), r(G, {
980
+ o(ce) === o(ie).FullDayEvent ? (f(), r(G, {
981
981
  key: 1,
982
982
  modelValue: o(x),
983
983
  "onUpdate:modelValue": d[4] ||= (e) => _(x) ? x.value = e : null,
@@ -1014,8 +1014,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
1014
1014
  ])),
1015
1015
  t.hideAllergies !== "yes" && o(B)?.showAllergyFoodFieldOnline ? (f(), r(W, {
1016
1016
  key: 5,
1017
- modelValue: o(A),
1018
- "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,
1019
1019
  type: "textarea",
1020
1020
  label: o(l)("booking.reservation.allergies"),
1021
1021
  icon: "allergies",
@@ -1046,27 +1046,14 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
1046
1046
  }, 8, ["steps"])]),
1047
1047
  _: 1
1048
1048
  }, 8, ["access-token", "callback"])]),
1049
- fallback: h(() => [s(gt)]),
1049
+ fallback: h(() => [s(ht)]),
1050
1050
  _: 1
1051
1051
  }))]),
1052
1052
  _: 1
1053
1053
  }, 8, ["styling"]));
1054
1054
  }
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);
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
+ });
1071
1058
  //#endregion
1072
- export { Rt as default };
1059
+ export { Lt as default };