@konnectio/core 4.7.17 → 4.8.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 (115) hide show
  1. package/dist/{ActionField-Dtyg_Xqt.js → ActionField-CiBTmhVP.js} +5 -5
  2. package/dist/ActionField-CiBTmhVP.js.br +0 -0
  3. package/dist/ActionField-CiBTmhVP.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-6jjgsDUN.js → AvailabilitySkeleton-Tv_yaXPa.js} +1515 -1357
  5. package/dist/AvailabilitySkeleton-Tv_yaXPa.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-Tv_yaXPa.js.gz +0 -0
  7. package/dist/{CheckoutWindow-CUoVKHnQ.js → CheckoutWindow-3gTfVepQ.js} +21 -17
  8. package/dist/CheckoutWindow-3gTfVepQ.js.br +0 -0
  9. package/dist/CheckoutWindow-3gTfVepQ.js.gz +0 -0
  10. package/dist/{ErrorMessage-CeH20mgp.js → ErrorMessage-ClFJa4be.js} +8 -8
  11. package/dist/ErrorMessage-ClFJa4be.js.br +0 -0
  12. package/dist/ErrorMessage-ClFJa4be.js.gz +0 -0
  13. package/dist/{EventAvailabilityForm-CEi0n5w5.js → EventAvailabilityForm-D_UqbRBj.js} +22 -21
  14. package/dist/EventAvailabilityForm-D_UqbRBj.js.br +0 -0
  15. package/dist/EventAvailabilityForm-D_UqbRBj.js.gz +0 -0
  16. package/dist/{Field-nvWxJ8O5.js → Field-CzT0QKcQ.js} +2 -2
  17. package/dist/Field-CzT0QKcQ.js.br +0 -0
  18. package/dist/Field-CzT0QKcQ.js.gz +0 -0
  19. package/dist/HotelAvailabilityForm-oY9nC2co.js +324 -0
  20. package/dist/HotelAvailabilityForm-oY9nC2co.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-oY9nC2co.js.gz +0 -0
  22. package/dist/{SelectField-DO26J3vV.js → SelectField-DMU4o8wT.js} +2871 -2748
  23. package/dist/SelectField-DMU4o8wT.js.br +0 -0
  24. package/dist/SelectField-DMU4o8wT.js.gz +0 -0
  25. package/dist/{TermsOfService-1ml1UlRa.js → TermsOfService-Bh49zB1Y.js} +3 -3
  26. package/dist/TermsOfService-Bh49zB1Y.js.br +0 -0
  27. package/dist/TermsOfService-Bh49zB1Y.js.gz +0 -0
  28. package/dist/{_-BfUSBI8s.js → _-CYKi9htj.js} +3 -3
  29. package/dist/_-CYKi9htj.js.br +0 -0
  30. package/dist/_-CYKi9htj.js.gz +7 -0
  31. package/dist/availability.js +8 -8
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +13 -13
  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 +1 -1
  41. package/dist/deep-link.js.br +0 -0
  42. package/dist/deep-link.js.gz +0 -0
  43. package/dist/dist-Dhf-kBcE.js +3631 -0
  44. package/dist/dist-Dhf-kBcE.js.br +0 -0
  45. package/dist/dist-Dhf-kBcE.js.gz +0 -0
  46. package/dist/{dist-DvERnyi9.js → dist-IXFfy6j_.js} +79 -66
  47. package/dist/dist-IXFfy6j_.js.br +0 -0
  48. package/dist/dist-IXFfy6j_.js.gz +0 -0
  49. package/dist/event.js +190 -176
  50. package/dist/event.js.br +0 -0
  51. package/dist/event.js.gz +0 -0
  52. package/dist/gift-card-validation.js +16 -16
  53. package/dist/gift-card-validation.js.br +0 -0
  54. package/dist/gift-card-validation.js.gz +0 -0
  55. package/dist/gift-card.js +10 -10
  56. package/dist/gift-card.js.br +0 -0
  57. package/dist/gift-card.js.gz +0 -0
  58. package/dist/{giftCard-Cp7GosHw.js → giftCard-BP6ydQ7Q.js} +10 -10
  59. package/dist/giftCard-BP6ydQ7Q.js.br +0 -0
  60. package/dist/giftCard-BP6ydQ7Q.js.gz +0 -0
  61. package/dist/hotel.js +2849 -1726
  62. package/dist/hotel.js.br +0 -0
  63. package/dist/hotel.js.gz +0 -0
  64. package/dist/{i18n-DwFTw_rF.js → i18n-BF6zkld-.js} +3397 -3461
  65. package/dist/i18n-BF6zkld-.js.br +0 -0
  66. package/dist/i18n-BF6zkld-.js.gz +0 -0
  67. package/dist/polyfill.js +1906 -1641
  68. package/dist/polyfill.js.br +0 -0
  69. package/dist/polyfill.js.gz +0 -0
  70. package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  71. package/dist/rolldown-runtime-B0aSnxlc.js.br +0 -0
  72. package/dist/rolldown-runtime-B0aSnxlc.js.gz +5 -0
  73. package/dist/{style-DS_dEN32.js → style-CXIHVW9k.js} +8 -6
  74. package/dist/style-CXIHVW9k.js.br +0 -0
  75. package/dist/style-CXIHVW9k.js.gz +0 -0
  76. package/dist-wix/availability.js +42 -36
  77. package/dist-wix/event.js +32 -25
  78. package/dist-wix/gift-card-validation.js +33 -33
  79. package/dist-wix/gift-card.js +42 -35
  80. package/dist-wix/hotel.js +34 -27
  81. package/package.json +26 -24
  82. package/dist/ActionField-Dtyg_Xqt.js.br +0 -0
  83. package/dist/ActionField-Dtyg_Xqt.js.gz +0 -0
  84. package/dist/AvailabilitySkeleton-6jjgsDUN.js.br +0 -0
  85. package/dist/AvailabilitySkeleton-6jjgsDUN.js.gz +0 -0
  86. package/dist/CheckoutWindow-CUoVKHnQ.js.br +0 -0
  87. package/dist/CheckoutWindow-CUoVKHnQ.js.gz +0 -0
  88. package/dist/ErrorMessage-CeH20mgp.js.br +0 -0
  89. package/dist/ErrorMessage-CeH20mgp.js.gz +0 -0
  90. package/dist/EventAvailabilityForm-CEi0n5w5.js.br +0 -0
  91. package/dist/EventAvailabilityForm-CEi0n5w5.js.gz +0 -0
  92. package/dist/Field-nvWxJ8O5.js.br +0 -0
  93. package/dist/Field-nvWxJ8O5.js.gz +0 -0
  94. package/dist/HotelAvailabilityForm-CmL_Zi12.js +0 -323
  95. package/dist/HotelAvailabilityForm-CmL_Zi12.js.br +0 -0
  96. package/dist/HotelAvailabilityForm-CmL_Zi12.js.gz +0 -0
  97. package/dist/SelectField-DO26J3vV.js.br +0 -0
  98. package/dist/SelectField-DO26J3vV.js.gz +0 -0
  99. package/dist/TermsOfService-1ml1UlRa.js.br +0 -0
  100. package/dist/TermsOfService-1ml1UlRa.js.gz +0 -2
  101. package/dist/_-BfUSBI8s.js.br +0 -0
  102. package/dist/_-BfUSBI8s.js.gz +0 -0
  103. package/dist/dist-DvERnyi9.js.br +0 -0
  104. package/dist/dist-DvERnyi9.js.gz +0 -0
  105. package/dist/dist-UZ0ttnnU.js +0 -1338
  106. package/dist/dist-UZ0ttnnU.js.br +0 -0
  107. package/dist/dist-UZ0ttnnU.js.gz +0 -0
  108. package/dist/giftCard-Cp7GosHw.js.br +0 -0
  109. package/dist/giftCard-Cp7GosHw.js.gz +0 -10
  110. package/dist/i18n-DwFTw_rF.js.br +0 -0
  111. package/dist/i18n-DwFTw_rF.js.gz +0 -0
  112. package/dist/rolldown-runtime-Dqa2HsxW.js.br +0 -0
  113. package/dist/rolldown-runtime-Dqa2HsxW.js.gz +0 -2
  114. package/dist/style-DS_dEN32.js.br +0 -0
  115. package/dist/style-DS_dEN32.js.gz +0 -0
package/dist/event.js CHANGED
@@ -1,43 +1,48 @@
1
- import { $ as e, A as t, D as n, E as r, Et as i, J as a, K as o, N as s, O as c, Q as l, T as u, Tt as d, a as f, b as p, ht as m, j as h, k as g, kt as _, l as v, n as y, o as b, ot as x, s as S, ut as C, v as w, w as T, x as E, yt as D } from "./i18n-DwFTw_rF.js";
2
- import { t as O } from "./dist-UZ0ttnnU.js";
3
- import { B as k, C as A, D as ee, E as j, G as M, I as N, J as P, N as F, Q as I, R as L, S as R, V as te, W as ne, X as z, Z as B, at as re, b as V, et as ie, ht as ae, j as oe, n as H, q as U, r as W, v as G, w as K, x as q } from "./SelectField-DO26J3vV.js";
4
- import { t as se } from "./_-BfUSBI8s.js";
5
- import { a as J, 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 ge, u as _e } from "./AvailabilitySkeleton-6jjgsDUN.js";
6
- import { t as ve } from "./EventAvailabilityForm-CEi0n5w5.js";
7
- import { t as Y } from "./style-DS_dEN32.js";
8
- import { a as ye, c as be, i as xe, l as Se, n as Ce, o as we, s as Te, t as Ee, u as X } from "./dist-DvERnyi9.js";
9
- import { a as De, i as Oe, n as ke, t as Ae } from "./CheckoutWindow-CUoVKHnQ.js";
1
+ import { $ as e, A as t, D as n, E as r, Et as i, J as a, K as o, N as s, O as c, Q as l, T as u, Tt as d, a as f, b as p, ht as m, j as h, k as g, kt as _, l as v, n as y, o as b, ot as x, s as S, ut as C, v as w, w as T, x as E, yt as D } from "./i18n-BF6zkld-.js";
2
+ import { t as O } from "./dist-Dhf-kBcE.js";
3
+ import { $ as k, C as A, D as ee, E as j, H as M, J as N, L as P, N as F, S as I, V as L, W as te, X as R, Z as z, b as ne, ct as re, et as B, j as ie, mt as V, n as H, q as ae, r as U, rt as W, st as oe, tt as se, v as G, w as K, x as q, z as ce } from "./SelectField-DMU4o8wT.js";
4
+ import { t as le } from "./_-CYKi9htj.js";
5
+ import { a as J, c as ue, d as de, f as fe, i as pe, l as me, n as he, o as ge, r as _e, s as ve, u as ye } from "./AvailabilitySkeleton-Tv_yaXPa.js";
6
+ import { t as be } from "./EventAvailabilityForm-D_UqbRBj.js";
7
+ import { t as Y } from "./style-CXIHVW9k.js";
8
+ import { a as xe, c as Se, i as Ce, l as we, n as Te, o as Ee, s as De, t as Oe, u as X } from "./dist-IXFfy6j_.js";
9
+ import { a as ke, i as Ae, n as je, t as Me } from "./CheckoutWindow-3gTfVepQ.js";
10
10
  //#region node_modules/date-fns/formatDistanceStrict.js
11
11
  function Z(e, t, n) {
12
- let r = ce(), i = n?.locale ?? r.locale ?? he, a = J(e, t);
12
+ let r = ue(), i = n?.locale ?? r.locale ?? _e, a = J(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] = me(n?.in, ...a > 0 ? [t, e] : [e, t]), l = de(n?.roundingMethod ?? "round"), u = c.getTime() - s.getTime(), d = u / fe, f = (u - (ge(c) - ge(s))) / fe, p = n?.unit, m;
17
+ }), [s, c] = ge(n?.in, ...a > 0 ? [t, e] : [e, t]), l = pe(n?.roundingMethod ?? "round"), u = c.getTime() - s.getTime(), d = u / me, f = (u - (ve(c) - ve(s))) / me, 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);
21
- } else if (m === "minute") {
21
+ }
22
+ if (m === "minute") {
22
23
  let e = l(d);
23
24
  return i.formatDistance("xMinutes", e, o);
24
- } else if (m === "hour") {
25
+ }
26
+ if (m === "hour") {
25
27
  let e = l(d / 60);
26
28
  return i.formatDistance("xHours", e, o);
27
- } else if (m === "day") {
28
- let e = l(f / _e);
29
+ }
30
+ if (m === "day") {
31
+ let e = l(f / ye);
29
32
  return i.formatDistance("xDays", e, o);
30
- } else if (m === "month") {
31
- let e = l(f / le);
33
+ }
34
+ if (m === "month") {
35
+ let e = l(f / de);
32
36
  return e === 12 && p !== "month" ? i.formatDistance("xYears", 1, o) : i.formatDistance("xMonths", e, o);
33
- } else {
34
- let e = l(f / ue);
37
+ }
38
+ {
39
+ let e = l(f / fe);
35
40
  return i.formatDistance("xYears", e, o);
36
41
  }
37
42
  }
38
43
  //#endregion
39
44
  //#region src/components/listings/event/_.vue?vue&type=script&setup=true&lang.ts
40
- var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/ R(/* @__PURE__ */ s({
45
+ var Ne = { class: "konnectio-event-listing-action-button" }, Pe = /*#__PURE__*/ I(/* @__PURE__ */ s({
41
46
  __name: "_",
42
47
  props: {
43
48
  name: {},
@@ -81,7 +86,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
81
86
  name: s.name,
82
87
  value: s.fromPrice || 0
83
88
  }), g.value = s.listingId, m.value = s.useNumberOfProductsForPersons ? NaN : O.value, b(s.callback);
84
- }, N = () => {
89
+ }, M = () => {
85
90
  if (!s.useNumberOfProductsForPersons && (O.value === 0 || isNaN(O.value))) {
86
91
  c({
87
92
  type: "error",
@@ -95,7 +100,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
95
100
  value: s.fromPrice || 0
96
101
  }), g.value = s.listingId, y.value = s.tableGroupId, m.value = s.useNumberOfProductsForPersons ? NaN : O.value, x(s.callback);
97
102
  };
98
- return (s, c) => (a(), r(Se, {
103
+ return (s, c) => (a(), r(we, {
99
104
  type: "event",
100
105
  "listing-id": t.listingId,
101
106
  gallery: t.gallery,
@@ -103,11 +108,11 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
103
108
  description: t.description,
104
109
  "prices-from": t.fromPrice,
105
110
  "to-date": t.toDate,
106
- layout: d(ie).Event,
111
+ layout: d(W).Event,
107
112
  "disable-deep-link": t.disableDeepLink
108
113
  }, {
109
114
  description: C(() => [e(s.$slots, "description", { maxNumberOfPeople: d(p) }, void 0, !0)]),
110
- action: C(() => [e(s.$slots, "action", {}, () => [u("div", { class: i(["konnectio-event-listing-action", { "no-selectable-people": t.useNumberOfProductsForPersons }]) }, [t.useNumberOfProductsForPersons ? n("", !0) : (a(), r(W, {
115
+ action: C(() => [e(s.$slots, "action", {}, () => [u("div", { class: i(["konnectio-event-listing-action", { "no-selectable-people": t.useNumberOfProductsForPersons }]) }, [t.useNumberOfProductsForPersons ? n("", !0) : (a(), r(U, {
111
116
  key: 0,
112
117
  modelValue: O.value,
113
118
  "onUpdate:modelValue": c[0] ||= (e) => O.value = e,
@@ -115,7 +120,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
115
120
  icon: "users",
116
121
  "icon-type": "fas",
117
122
  "icon-placement": "label",
118
- description: E.value <= 20 && !d(l) ? `${d(o)("general.availableFor")}: 1 - ${E.value} ${d(M)(d(o)("general.guests"))}` : void 0,
123
+ description: E.value <= 20 && !d(l) ? `${d(o)("general.availableFor")}: 1 - ${E.value} ${d(N)(d(o)("general.guests"))}` : void 0,
119
124
  "min-value": 0,
120
125
  "max-value": E.value
121
126
  }, null, 8, [
@@ -123,13 +128,13 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
123
128
  "label",
124
129
  "description",
125
130
  "max-value"
126
- ])), u("div", je, [h(G, {
131
+ ])), u("div", Ne, [h(G, {
127
132
  label: t.soldOut ? d(o)("event.soldOut") : d(o)("event.bookNowButton"),
128
133
  disabled: t.soldOut,
129
134
  "is-loading": k.value,
130
135
  "full-width": "",
131
- "sub-label": d(U)(d(_)),
132
- onClickEvent: c[1] ||= (e) => t.type === "event" ? N() : A()
136
+ "sub-label": d(R)(d(_)),
137
+ onClickEvent: c[1] ||= (e) => t.type === "event" ? M() : A()
133
138
  }, null, 8, [
134
139
  "label",
135
140
  "disabled",
@@ -148,13 +153,13 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
148
153
  "disable-deep-link"
149
154
  ]));
150
155
  }
151
- }), [["__scopeId", "data-v-bfd98c31"]]), Ne = { class: "konnectio-event-listing-information-new" }, Pe = {
156
+ }), [["__scopeId", "data-v-bfd98c31"]]), Fe = { class: "konnectio-event-listing-information-new" }, Ie = {
152
157
  key: 1,
153
158
  class: "konnectio-pill-button"
154
- }, Fe = {
159
+ }, Le = {
155
160
  key: 2,
156
161
  class: "konnectio-pill-button"
157
- }, Ie = { key: 0 }, Le = { key: 1 }, Q = /*#__PURE__*/ R(/* @__PURE__ */ s({
162
+ }, Re = { key: 0 }, ze = { key: 1 }, Q = /*#__PURE__*/ I(/* @__PURE__ */ s({
158
163
  __name: "Event",
159
164
  props: {
160
165
  name: {},
@@ -182,7 +187,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
182
187
  let e = i.length.split(":");
183
188
  return Z(new Date(2e3, 0, 1, Number(e[0]), Number(e[1]), 0), new Date(2e3, 0, 1, 0, 0, 0));
184
189
  });
185
- return (i, f) => (a(), r(Me, {
190
+ return (i, f) => (a(), r(Pe, {
186
191
  "listing-id": t.listingId,
187
192
  name: t.name,
188
193
  description: t.description,
@@ -200,16 +205,16 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
200
205
  description: C(() => [t.description ? (a(), r(X, {
201
206
  key: 0,
202
207
  text: t.description
203
- }, null, 8, ["text"])) : n("", !0), u("ul", Ne, [
208
+ }, null, 8, ["text"])) : n("", !0), u("ul", Fe, [
204
209
  n("", !0),
205
- !d(s) && p.value ? (a(), c("li", Pe, [u("div", null, [h(q, {
210
+ !d(s) && p.value ? (a(), c("li", Ie, [u("div", null, [h(q, {
206
211
  icon: "calendar-clock",
207
212
  color: "header"
208
213
  }), u("span", null, _(d(o)("event.lengthOfEvent")), 1)]), u("span", null, _(p.value), 1)])) : n("", !0),
209
- t.timeFrom ? (a(), c("li", Fe, [u("div", null, [h(q, {
214
+ t.timeFrom ? (a(), c("li", Le, [u("div", null, [h(q, {
210
215
  icon: "calendar-clock",
211
216
  color: "header"
212
- }), u("span", null, _(d(o)("event.startAndEndTime")), 1)]), d(l) ? (a(), c("span", Le, _(d(B)(t.timeFrom)), 1)) : (a(), c("span", Ie, _(d(I)(t.timeFrom, t.timeTo)), 1))])) : n("", !0)
217
+ }), u("span", null, _(d(o)("event.startAndEndTime")), 1)]), d(l) ? (a(), c("span", ze, _(d(B)(t.timeFrom)), 1)) : (a(), c("span", Re, _(d(se)(t.timeFrom, t.timeTo)), 1))])) : n("", !0)
213
218
  ])]),
214
219
  action: C(() => [e(i.$slots, "action", {}, void 0, !0)]),
215
220
  _: 3
@@ -228,10 +233,10 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
228
233
  "callback"
229
234
  ]));
230
235
  }
231
- }), [["__scopeId", "data-v-2ecac268"]]), Re = {
236
+ }), [["__scopeId", "data-v-2ecac268"]]), Be = {
232
237
  key: 0,
233
238
  class: "konnectio-event-grouped-listings-container"
234
- }, ze = { class: "konnectio-event-grouped-listings" }, Be = /*#__PURE__*/ R(/* @__PURE__ */ s({
239
+ }, Ve = { class: "konnectio-event-grouped-listings" }, He = /*#__PURE__*/ I(/* @__PURE__ */ s({
235
240
  __name: "Event",
236
241
  props: {
237
242
  name: {},
@@ -240,7 +245,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
240
245
  callback: { type: Function }
241
246
  },
242
247
  setup(e) {
243
- return (t, i) => e.events && e.events.length > 1 ? (a(), c("div", Re, [n("", !0), u("ul", ze, [(a(!0), c(p, null, l(e.events, ({ id: t, days: n, name: i, timeFrom: o, timeTo: s, tableGroupId: c, description: l, soldOut: u, length: d, images: f, maxOnlineReservationLimit: p, maxPaxPerReservation: m, useNumberOfProductsForPersons: h, maxTicketsLimit: g }) => (a(), r(Q, {
248
+ return (t, i) => e.events && e.events.length > 1 ? (a(), c("div", Be, [n("", !0), u("ul", Ve, [(a(!0), c(p, null, l(e.events, ({ id: t, days: n, name: i, timeFrom: o, timeTo: s, tableGroupId: c, description: l, soldOut: u, length: d, images: f, maxOnlineReservationLimit: p, maxPaxPerReservation: m, useNumberOfProductsForPersons: h, maxTicketsLimit: g }) => (a(), r(Q, {
244
249
  key: t,
245
250
  type: "event",
246
251
  "listing-id": t,
@@ -310,7 +315,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
310
315
  "callback"
311
316
  ])) : n("", !0);
312
317
  }
313
- }), [["__scopeId", "data-v-3584070d"]]), Ve = { class: "konnectio-special-offer-availability" }, He = { class: "konnectio-special-offer-availability-button" }, $ = { class: "konnectio-warning-notice" }, Ue = { key: 0 }, We = { key: 1 }, Ge = /*#__PURE__*/ R(/* @__PURE__ */ s({
318
+ }), [["__scopeId", "data-v-3584070d"]]), Ue = { class: "konnectio-special-offer-availability" }, We = { class: "konnectio-special-offer-availability-button" }, $ = { class: "konnectio-warning-notice" }, Ge = { key: 0 }, Ke = { key: 1 }, qe = /*#__PURE__*/ I(/* @__PURE__ */ s({
314
319
  __name: "NextEvent",
315
320
  props: {
316
321
  name: {},
@@ -339,7 +344,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
339
344
  type: "error"
340
345
  });
341
346
  }
342
- let g = T(() => L(p.fromDate, p.toDate) <= 1), v = T(() => [
347
+ let g = T(() => ce(p.fromDate, p.toDate) <= 1), v = T(() => [
343
348
  0,
344
349
  1,
345
350
  2,
@@ -347,7 +352,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
347
352
  4,
348
353
  5,
349
354
  6
350
- ].filter((e) => !k(p.days).includes(e)));
355
+ ].filter((e) => !L(p.days).includes(e)));
351
356
  return o(() => {
352
357
  g.value && (l.value = new Date(p.fromDate));
353
358
  }), (i, o) => (a(), r(Q, {
@@ -370,7 +375,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
370
375
  callback: e.callback,
371
376
  "disable-deep-link": !0
372
377
  }, {
373
- action: C(() => [u("div", null, [u("div", Ve, [h(pe, {
378
+ action: C(() => [u("div", null, [u("div", Ue, [h(he, {
374
379
  modelValue: l.value,
375
380
  "onUpdate:modelValue": o[0] ||= (e) => l.value = e,
376
381
  label: `${d(n)("event.selectDate")}*`,
@@ -391,10 +396,10 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
391
396
  "min-date",
392
397
  "max-date",
393
398
  "disabled-week-days"
394
- ]), u("div", He, [h(G, {
399
+ ]), u("div", We, [h(G, {
395
400
  label: d(n)("availability.buttonLabel"),
396
401
  onClick: w(m, ["prevent"])
397
- }, null, 8, ["label"])])]), u("div", $, [g.value ? (a(), c("span", Ue, [t("*" + _(d(n)("event.canBeBooked")) + " ", 1), u("u", null, _(d(U)(e.fromDate)), 1)])) : (a(), c("span", We, [t("*" + _(d(n)("event.canBeBooked")) + " ", 1), u("u", null, _(d(P)(e.days)), 1)]))])])]),
402
+ }, null, 8, ["label"])])]), u("div", $, [g.value ? (a(), c("span", Ge, [t("*" + _(d(n)("event.canBeBooked")) + " ", 1), u("u", null, _(d(R)(e.fromDate)), 1)])) : (a(), c("span", Ke, [t("*" + _(d(n)("event.canBeBooked")) + " ", 1), u("u", null, _(d(z)(e.days)), 1)]))])])]),
398
403
  _: 1
399
404
  }, 8, [
400
405
  "name",
@@ -416,10 +421,10 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
416
421
  "callback"
417
422
  ]));
418
423
  }
419
- }), [["__scopeId", "data-v-91ea584c"]]), Ke = {
424
+ }), [["__scopeId", "data-v-91ea584c"]]), Je = {
420
425
  key: 0,
421
426
  class: "konnectio-event-grouped-listings-container"
422
- }, qe = { class: "konnectio-event-grouped-listings" }, Je = /*#__PURE__*/ R(/* @__PURE__ */ s({
427
+ }, Ye = { class: "konnectio-event-grouped-listings" }, Xe = /*#__PURE__*/ I(/* @__PURE__ */ s({
423
428
  __name: "NextEvent",
424
429
  props: {
425
430
  name: {},
@@ -428,7 +433,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
428
433
  callback: { type: Function }
429
434
  },
430
435
  setup(e) {
431
- return (t, i) => e.events && e.events.length > 1 ? (a(), c("div", Ke, [n("", !0), u("ul", qe, [(a(!0), c(p, null, l(e.events, ({ id: t, days: n, name: i, timeFrom: o, timeTo: s, fromDate: c, toDate: l, tableGroupId: u, description: d, soldOut: f, length: p, images: m, maxOnlineReservationLimit: h, maxPaxPerReservation: g, useNumberOfProductsForPersons: _, maxTicketsLimit: v }) => (a(), r(Ge, {
436
+ return (t, i) => e.events && e.events.length > 1 ? (a(), c("div", Je, [n("", !0), u("ul", Ye, [(a(!0), c(p, null, l(e.events, ({ id: t, days: n, name: i, timeFrom: o, timeTo: s, fromDate: c, toDate: l, tableGroupId: u, description: d, soldOut: f, length: p, images: m, maxOnlineReservationLimit: h, maxPaxPerReservation: g, useNumberOfProductsForPersons: _, maxTicketsLimit: v }) => (a(), r(qe, {
432
437
  key: t,
433
438
  type: "event",
434
439
  "listing-id": t,
@@ -464,7 +469,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
464
469
  "use-number-of-products-for-persons",
465
470
  "tracking-enabled",
466
471
  "callback"
467
- ]))), 128))])])) : e.events ? (a(), r(Ge, {
472
+ ]))), 128))])])) : e.events ? (a(), r(qe, {
468
473
  key: e.events[0].id,
469
474
  type: "event",
470
475
  "listing-id": e.events[0].id,
@@ -502,7 +507,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
502
507
  "callback"
503
508
  ])) : n("", !0);
504
509
  }
505
- }), [["__scopeId", "data-v-138f6cac"]]), Ye = ["innerHTML"], Xe = /*#__PURE__*/ R(/* @__PURE__ */ s({
510
+ }), [["__scopeId", "data-v-138f6cac"]]), Ze = ["innerHTML"], Qe = /*#__PURE__*/ I(/* @__PURE__ */ s({
506
511
  __name: "FallbackEvent",
507
512
  props: {
508
513
  name: {},
@@ -530,7 +535,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
530
535
  action: C(() => [u("div", {
531
536
  class: "konnectio-filter-notice konnectio-top-message",
532
537
  innerHTML: d(t)("event.notAvailable", { name: `<b>${e.name}</b>` })
533
- }, null, 8, Ye)]),
538
+ }, null, 8, Ze)]),
534
539
  _: 1
535
540
  }, 8, [
536
541
  "name",
@@ -543,7 +548,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
543
548
  "callback"
544
549
  ]));
545
550
  }
546
- }), [["__scopeId", "data-v-aca89b02"]]), Ze = /* @__PURE__ */ s({
551
+ }), [["__scopeId", "data-v-aca89b02"]]), $e = /* @__PURE__ */ s({
547
552
  __name: "Template",
548
553
  props: {
549
554
  name: {},
@@ -560,7 +565,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
560
565
  callback: {}
561
566
  },
562
567
  setup(e) {
563
- return (t, n) => (a(), r(Me, {
568
+ return (t, n) => (a(), r(Pe, {
564
569
  "listing-id": e.listingId,
565
570
  gallery: e.images,
566
571
  name: e.name,
@@ -581,13 +586,13 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
581
586
  "callback"
582
587
  ]));
583
588
  }
584
- }), Qe = {
589
+ }), et = {
585
590
  key: 0,
586
591
  class: "konnectio-panel konnectio-reservation-notice-mobile"
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 = {
592
+ }, tt = ["innerHTML"], nt = { key: 0 }, rt = { key: 1 }, it = { key: 2 }, at = { key: 0 }, ot = { key: 4 }, st = { key: 5 }, ct = { key: 6 }, lt = { key: 0 }, ut = { key: 0 }, dt = { key: 1 }, ft = {
588
593
  key: 0,
589
594
  class: "konnectio-capitalize"
590
- }, dt = /*#__PURE__*/ R(/* @__PURE__ */ s({
595
+ }, pt = /*#__PURE__*/ I(/* @__PURE__ */ s({
591
596
  __name: "EventReservationForm",
592
597
  props: {
593
598
  showGiftCard: {
@@ -601,43 +606,43 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
601
606
  prevCallback: {}
602
607
  },
603
608
  setup(t) {
604
- let { t: i } = f(), o = x(), { areListingsAvailable: s, arrivalTime: h, numberOfPeople: y, numberOfRooms: b, numberOfTotalDays: S, isTemplateEvent: w, currentEventDate: T, length: E, fromDate: D, tableBasePrice: O, getTemplateData: k, basePrice: A, totalPrice: ee, weekendFee: M, roomUpgrade: N, discountCode: P, totalSelectedProducts: F, discountValue: I, appliedDiscountCode: L } = v(K()), { totalAddonPrice: R, validateDiscountCode: te } = K(), { currency: ne, hideEventLength: re } = v(j()), V = i("event.reservationNotice");
605
- return (f, v) => (a(), r(ye, {
606
- "discount-code": d(P),
607
- "onUpdate:discountCode": v[0] ||= (e) => m(P) ? P.value = e : null,
608
- "validate-discount-code": d(te),
609
+ let { t: i } = f(), o = x(), { areListingsAvailable: s, arrivalTime: h, numberOfPeople: y, numberOfRooms: b, numberOfTotalDays: S, isTemplateEvent: w, currentEventDate: T, length: E, fromDate: D, tableBasePrice: O, getTemplateData: A, basePrice: ee, totalPrice: M, weekendFee: N, roomUpgrade: P, discountCode: F, totalSelectedProducts: I, discountValue: L, appliedDiscountCode: te } = v(K()), { totalAddonPrice: z, validateDiscountCode: ne } = K(), { currency: re, hideEventLength: ie } = v(j()), V = i("event.reservationNotice");
610
+ return (f, v) => (a(), r(xe, {
611
+ "discount-code": d(F),
612
+ "onUpdate:discountCode": v[0] ||= (e) => m(F) ? F.value = e : null,
613
+ "validate-discount-code": d(ne),
609
614
  "show-gift-card": t.showGiftCard,
610
615
  "show-terms-notice": t.showTermsNotice,
611
616
  "is-sidebar-loading": !d(s),
612
- "base-price": d(A),
613
- "total-price": d(ee),
614
- "weekend-fee": d(M),
615
- "room-upgrade": d(N),
617
+ "base-price": d(ee),
618
+ "total-price": d(M),
619
+ "weekend-fee": d(N),
620
+ "room-upgrade": d(P),
616
621
  notice: d(V),
617
622
  "prev-callback": t.prevCallback
618
623
  }, g({
619
- form: C(() => [e(f.$slots, "form", {}, void 0, !0), d(V) ? (a(), c("div", Qe, [u("p", {
624
+ form: C(() => [e(f.$slots, "form", {}, void 0, !0), d(V) ? (a(), c("div", et, [u("p", {
620
625
  innerHTML: d(V),
621
626
  class: "konnectio-wysiwyg"
622
- }, null, 8, $e)])) : n("", !0)]),
627
+ }, null, 8, tt)])) : n("", !0)]),
623
628
  "reservation-summary": C(() => [
624
- d(w) ? n("", !0) : (a(), c("li", et, [u("span", null, _(d(i)("general.date")), 1), u("b", null, _(d(U)(d(T))), 1)])),
625
- d(y) > 0 ? (a(), c("li", tt, [u("span", null, _(d(i)("event.numberOfGuests")), 1), u("b", null, _(d(y)), 1)])) : n("", !0),
626
- !d(w) && d(F) > 0 ? (a(), c("li", nt, [u("span", null, _(d(i)("event.numberOfProducts")), 1), u("b", null, _(d(F)), 1)])) : n("", !0),
629
+ d(w) ? n("", !0) : (a(), c("li", nt, [u("span", null, _(d(i)("general.date")), 1), u("b", null, _(d(R)(d(T))), 1)])),
630
+ d(y) > 0 ? (a(), c("li", rt, [u("span", null, _(d(i)("event.numberOfGuests")), 1), u("b", null, _(d(y)), 1)])) : n("", !0),
631
+ !d(w) && d(I) > 0 ? (a(), c("li", it, [u("span", null, _(d(i)("event.numberOfProducts")), 1), u("b", null, _(d(I)), 1)])) : n("", !0),
627
632
  d(w) ? (a(), c(p, { key: 3 }, [
628
- u("li", null, [u("span", null, _(d(i)("booking.reservation.arrival")), 1), u("b", null, _(d(U)(d(D))), 1)]),
629
- u("li", null, [u("span", null, _(d(i)("booking.reservation.departure")), 1), u("b", null, _(d(U)(d(D), d(S))), 1)]),
633
+ u("li", null, [u("span", null, _(d(i)("booking.reservation.arrival")), 1), u("b", null, _(d(R)(d(D))), 1)]),
634
+ u("li", null, [u("span", null, _(d(i)("booking.reservation.departure")), 1), u("b", null, _(d(R)(d(D), d(S))), 1)]),
630
635
  u("li", null, [u("span", null, _(d(i)("event.numberOfRooms")), 1), u("b", null, _(d(b)), 1)]),
631
- d(S) > 0 ? (a(), c("li", rt, [u("span", null, _(d(i)("event.numberOfDays")), 1), u("b", null, _(d(S)), 1)])) : n("", !0)
636
+ d(S) > 0 ? (a(), c("li", at, [u("span", null, _(d(i)("event.numberOfDays")), 1), u("b", null, _(d(S)), 1)])) : n("", !0)
632
637
  ], 64)) : n("", !0),
633
- !d(w) && d(h) ? (a(), c("li", it, [u("span", null, _(d(i)("event.startOfEvent")), 1), u("b", null, _(d(B)(d(h))), 1)])) : n("", !0),
634
- !d(w) && d(E) && !d(re) ? (a(), c("li", at, [u("span", null, _(d(i)("event.lengthOfEvent")), 1), u("b", null, _(d(B)(d(E))), 1)])) : n("", !0),
635
- d(I) ? (a(), c("li", ot, [u("span", null, _(d(i)("general.discountCode")), 1), u("b", null, _(d(L)), 1)])) : n("", !0)
638
+ !d(w) && d(h) ? (a(), c("li", ot, [u("span", null, _(d(i)("event.startOfEvent")), 1), u("b", null, _(d(B)(d(h))), 1)])) : n("", !0),
639
+ !d(w) && d(E) && !d(ie) ? (a(), c("li", st, [u("span", null, _(d(i)("event.lengthOfEvent")), 1), u("b", null, _(d(B)(d(E))), 1)])) : n("", !0),
640
+ d(L) ? (a(), c("li", ct, [u("span", null, _(d(i)("general.discountCode")), 1), u("b", null, _(d(te)), 1)])) : n("", !0)
636
641
  ]),
637
- "price-summary": C(() => [!d(w) && d(O) > 0 ? (a(), c("li", st, [u("span", null, _(d(i)("booking.availability.basePrice")), 1), u("b", null, _(d(z)(d(O), d(ne))), 1)])) : n("", !0), d(k) ? (a(!0), c(p, { key: 1 }, l(d(k), ({ roomGroupId: e }, t) => (a(), c(p, null, [d(R)(e, t) > 0 ? (a(), c("li", { key: e }, [u("span", null, _(d(i)("booking.reservation.addons")) + " - " + _(d(i)("booking.reservation.room")) + " #" + _(t + 1), 1), u("b", null, _(d(z)(d(R)(e, t), d(ne))), 1)])) : n("", !0)], 64))), 256)) : n("", !0)]),
642
+ "price-summary": C(() => [!d(w) && d(O) > 0 ? (a(), c("li", lt, [u("span", null, _(d(i)("booking.availability.basePrice")), 1), u("b", null, _(d(k)(d(O), d(re))), 1)])) : n("", !0), d(A) ? (a(!0), c(p, { key: 1 }, l(d(A), ({ roomGroupId: e }, t) => (a(), c(p, null, [d(z)(e, t) > 0 ? (a(), c("li", { key: e }, [u("span", null, _(d(i)("booking.reservation.addons")) + " - " + _(d(i)("booking.reservation.room")) + " #" + _(t + 1), 1), u("b", null, _(d(k)(d(z)(e, t), d(re))), 1)])) : n("", !0)], 64))), 256)) : n("", !0)]),
638
643
  navigation: C(() => [e(f.$slots, "navigation", {}, void 0, !0)]),
639
- "mobile-under-price": C(() => [d(w) && d(S) > 0 ? (a(), c("div", ct, [u("span", null, _(d(U)(d(D))) + " - " + _(d(U)(d(D), d(S))), 1)])) : (a(), c("div", lt, [u("span", null, _(d(U)(d(T))), 1)]))]),
640
- "mobile-summary": C(() => [!d(w) && d(F) > 0 ? (a(), c("span", ut, _(d(i)("event.numberOfProducts")) + ": " + _(d(F)), 1)) : n("", !0)]),
644
+ "mobile-under-price": C(() => [d(w) && d(S) > 0 ? (a(), c("div", ut, [u("span", null, _(d(R)(d(D))) + " - " + _(d(R)(d(D), d(S))), 1)])) : (a(), c("div", dt, [u("span", null, _(d(R)(d(T))), 1)]))]),
645
+ "mobile-summary": C(() => [!d(w) && d(I) > 0 ? (a(), c("span", ft, _(d(i)("event.numberOfProducts")) + ": " + _(d(I)), 1)) : n("", !0)]),
641
646
  _: 2
642
647
  }, [d(o).sidebar ? {
643
648
  name: "sidebar",
@@ -657,27 +662,27 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
657
662
  "prev-callback"
658
663
  ]));
659
664
  }
660
- }), [["__scopeId", "data-v-c1e1c642"]]), ft = { class: "event-skeleton" }, pt = { class: "event-skeleton-content" }, mt = { class: "event-skeleton-sidebar" }, ht = /*#__PURE__*/ R(/* @__PURE__ */ s({
665
+ }), [["__scopeId", "data-v-c1e1c642"]]), mt = { class: "event-skeleton" }, ht = { class: "event-skeleton-content" }, gt = { class: "event-skeleton-sidebar" }, _t = /*#__PURE__*/ I(/* @__PURE__ */ s({
661
666
  __name: "EventSkeleton",
662
667
  setup(e) {
663
- return (e, t) => (a(), c("div", ft, [u("div", pt, [h(Ce)]), u("div", mt, [n("", !0), h(we)])]));
668
+ return (e, t) => (a(), c("div", mt, [u("div", ht, [h(Te)]), u("div", gt, [n("", !0), h(Ee)])]));
664
669
  }
665
- }), [["__scopeId", "data-v-af0e7efb"]]), gt = {
670
+ }), [["__scopeId", "data-v-af0e7efb"]]), vt = {
666
671
  key: 0,
667
672
  id: "konnectio-event-listings-wrapper"
668
- }, _t = {
673
+ }, yt = {
669
674
  key: 0,
670
675
  class: "konnectio-event-listings"
671
- }, vt = {
676
+ }, bt = {
672
677
  key: 1,
673
678
  class: "konnectio-hotel-availability-title"
674
- }, yt = { class: "konnectio-event-listings" }, bt = { class: "konnectio-hotel-availability-title" }, xt = { class: "konnectio-event-listings" }, St = ["innerHTML"], Ct = { class: "konnectio-panel" }, wt = {
679
+ }, xt = { class: "konnectio-event-listings" }, St = { class: "konnectio-hotel-availability-title" }, Ct = { class: "konnectio-event-listings" }, wt = ["innerHTML"], Tt = { class: "konnectio-panel" }, Et = {
675
680
  key: 0,
676
681
  id: "konnectio-event-addons"
677
- }, Tt = { class: "konnectio-table with-lines" }, Et = { class: "konnectio-event-addons-price" }, Dt = { class: "konnectio-event-addons-input" }, Ot = { class: "konnectio-event-addons-price" }, kt = { class: "konnectio-event-addons-price" }, At = {
682
+ }, Dt = { class: "konnectio-table with-lines" }, Ot = { class: "konnectio-event-addons-price" }, kt = { class: "konnectio-event-addons-input" }, At = { class: "konnectio-event-addons-price" }, jt = { class: "konnectio-event-addons-price" }, Mt = {
678
683
  key: 1,
679
684
  class: "konnectio-table with-lines without-header"
680
- }, jt = { class: "konnectio-table-addons-information" }, Mt = { key: 0 }, Nt = { class: "konnectio-table-addons-option" }, Pt = { class: "konnectio-panel" }, Ft = /*#__PURE__*/ R(/* @__PURE__ */ s({
685
+ }, Nt = { class: "konnectio-table-addons-information" }, Pt = { key: 0 }, Ft = { class: "konnectio-table-addons-option" }, It = { class: "konnectio-panel" }, Lt = /*#__PURE__*/ I(/* @__PURE__ */ s({
681
686
  name: "EventLayout",
682
687
  __name: "Event",
683
688
  props: {
@@ -695,7 +700,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
695
700
  styling: {}
696
701
  },
697
702
  setup(e) {
698
- let i = e, { t: o } = f(), s = K(), { isHostedCheckoutActive: g } = v(oe()), { addons: y, products: b, numberOfDays: x, flagOnTable: S, numberOfHighChairs: w, name: D, phone: O, email: k, remark: M, allergies: P, arrivalTime: I, hasEvents: L, hasTemplates: R, getTemplates: ie, getEventData: U, getTemplateData: J, getEventTableData: ce, hasProducts: le, eventRateType: ue, areListingsAvailable: de, isAvailabilityDataAvailable: fe, hasListingData: pe, isPaymentLoading: me, isReservationFormFilled: he, requiresArrivalTime: ge, hasSelectedRequiredProducts: _e, getUnavailableEvents: Y, hasFallbackEvents: ye, getFallbackEvents: Se, excludeEventIds: we } = v(s), Ee = T(() => s.getSortedEvents(i.sortOrder)), { currency: X, enableTracking: Z } = v(j()), { setActiveIdFilter: je } = j(), { eventDate: Me, eventLocation: Ne } = v(A()), { isValidRestaurantId: Pe } = A(), { initialize: Fe, fetchListings: Ie, createBooking: Le, localAddonPrice: Q, totalAddonPrice: Re, reset: ze, goBack: Ve } = K(), { beginEventCheckout: He } = ee(), { display: $ } = F(), Ue = T(() => [
703
+ let i = e, { t: o } = f(), s = K(), { isHostedCheckoutActive: g } = v(ie()), { addons: y, products: b, numberOfDays: x, flagOnTable: S, numberOfHighChairs: w, name: D, phone: O, email: N, remark: I, allergies: L, arrivalTime: R, hasEvents: z, hasTemplates: W, getTemplates: se, getEventData: ce, getTemplateData: J, getEventTableData: ue, hasProducts: de, eventRateType: fe, areListingsAvailable: pe, isAvailabilityDataAvailable: me, hasListingData: he, isPaymentLoading: ge, isReservationFormFilled: _e, requiresArrivalTime: ve, hasSelectedRequiredProducts: ye, getUnavailableEvents: Y, hasFallbackEvents: xe, getFallbackEvents: we, excludeEventIds: Ee } = v(s), Oe = T(() => s.getSortedEvents(i.sortOrder)), { currency: X, enableTracking: Z } = v(j()), { setActiveIdFilter: Ne } = j(), { eventDate: Pe, eventLocation: Fe } = v(A()), { isValidRestaurantId: Ie } = A(), { initialize: Le, fetchListings: Re, createBooking: ze, localAddonPrice: Q, totalAddonPrice: Be, reset: Ve, goBack: Ue } = K(), { beginEventCheckout: We } = ee(), { display: $ } = F(), Ge = T(() => [
699
704
  {
700
705
  id: "availability",
701
706
  label: o("booking.availability.title"),
@@ -721,57 +726,59 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
721
726
  label: o("booking.confirmation.title"),
722
727
  icon: "calendar-check"
723
728
  }
724
- ]), We = T(() => {
729
+ ]), Ke = T(() => {
725
730
  let e = [];
726
- return ce.value && ce.value.forEach((t) => {
731
+ return ue.value && ue.value.forEach((t) => {
727
732
  e.find((e) => e.value === t.time) || e.push({
728
733
  label: B(t.time),
729
734
  value: t.time
730
735
  });
731
736
  }), e;
732
737
  });
733
- function Ge() {
734
- ze(i.resetDate === "yes");
738
+ function qe() {
739
+ Ve(i.resetDate === "yes");
735
740
  }
736
- function Ke(e) {
737
- Z.value && He(), Le(e);
741
+ function Je(e) {
742
+ Z.value && We(), ze(e);
738
743
  }
739
- function qe() {
740
- let e = ae("history", { removeNullishValues: !0 }), t = parseInt(e.rid), n = e.d, r = parseInt(e.eid);
741
- if (n) if (ne(n)) {
742
- let t = new Date(n);
743
- t.setHours(12, 0, 0, 0) >= (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0) ? Me.value = t : ($({
744
- message: o("alert.error.invalidDateRange"),
744
+ function Ye() {
745
+ let e = V("history", { removeNullishValues: !0 }), t = parseInt(e.rid), n = e.d, r = parseInt(e.eid);
746
+ if (n) {
747
+ if (ae(n)) {
748
+ let t = new Date(n);
749
+ t.setHours(12, 0, 0, 0) >= (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0) ? Pe.value = t : ($({
750
+ message: o("alert.error.invalidDateRange"),
751
+ type: "error"
752
+ }), e.d = void 0);
753
+ } else $({
754
+ message: o("alert.error.wrongDateFormat"),
745
755
  type: "error"
746
- }), e.d = void 0);
747
- } else $({
748
- message: o("alert.error.wrongDateFormat"),
749
- type: "error"
750
- });
751
- isNaN(t) || (Pe(t) ? Ne.value = t : (e.rid = void 0, $({
756
+ });
757
+ }
758
+ isNaN(t) || (Ie(t) ? Fe.value = t : (e.rid = void 0, $({
752
759
  message: o("alert.error.hotelIdNotFound"),
753
760
  type: "error"
754
- }))), isNaN(r) || je(String(r)), i.excludeEventIds && (we.value = i.excludeEventIds), Ie();
761
+ }))), isNaN(r) || Ne(String(r)), i.excludeEventIds && (Ee.value = i.excludeEventIds), Re();
755
762
  }
756
- return (i, s) => (a(), r(V, { styling: e.styling }, {
757
- default: C(() => [(a(), r(E, { onResolve: qe }, {
758
- default: C(() => [h(se, {
763
+ return (i, s) => (a(), r(ne, { styling: e.styling }, {
764
+ default: C(() => [(a(), r(E, { onResolve: Ye }, {
765
+ default: C(() => [h(le, {
759
766
  id: "konnectio-event-module",
760
767
  "access-token": e.accessToken,
761
- callback: d(Fe)
768
+ callback: d(Le)
762
769
  }, {
763
- default: C(() => [h(Te, {
764
- steps: Ue.value,
765
- onReset: Ge
770
+ default: C(() => [h(De, {
771
+ steps: Ge.value,
772
+ onReset: qe
766
773
  }, {
767
- availability: C(({ next: t }) => [h(dt, null, {
768
- sidebar: C(() => [h(ve, {
774
+ availability: C(({ next: t }) => [h(pt, null, {
775
+ sidebar: C(() => [h(be, {
769
776
  redirection: !1,
770
777
  "selected-location": Number(e.selectedLocation),
771
778
  "hide-locations": e.hideLocations === "yes"
772
779
  }, null, 8, ["selected-location", "hide-locations"])]),
773
- form: C(() => [d(pe) && d(de) ? (a(), c("div", gt, [
774
- d(ye) ? (a(), c("ul", _t, [(a(!0), c(p, null, l(d(Se), ({ id: e, name: n, description: i, images: o }) => (a(), r(Xe, {
780
+ form: C(() => [d(he) && d(pe) ? (a(), c("div", vt, [
781
+ d(xe) ? (a(), c("ul", yt, [(a(!0), c(p, null, l(d(we), ({ id: e, name: n, description: i, images: o }) => (a(), r(Qe, {
775
782
  key: e,
776
783
  type: "event",
777
784
  "listing-id": e,
@@ -788,12 +795,12 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
788
795
  "tracking-enabled",
789
796
  "callback"
790
797
  ]))), 128))])) : n("", !0),
791
- Ee.value.length > 0 && d(Y).length > 0 ? (a(), c("h2", vt, [h(q, {
798
+ Oe.value.length > 0 && d(Y).length > 0 ? (a(), c("h2", bt, [h(q, {
792
799
  icon: "calendar-clock",
793
800
  type: "fal",
794
801
  color: "header"
795
802
  }), u("span", null, _(d(o)("event.availableNow")), 1)])) : n("", !0),
796
- u("ul", yt, [d(L) && e.onlyShow !== "templates" ? (a(!0), c(p, { key: 0 }, l(Ee.value, (e) => (a(), r(Be, {
803
+ u("ul", xt, [d(z) && e.onlyShow !== "templates" ? (a(!0), c(p, { key: 0 }, l(Oe.value, (e) => (a(), r(He, {
797
804
  name: e.name,
798
805
  events: e.events ?? [],
799
806
  "tracking-enabled": d(Z),
@@ -803,7 +810,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
803
810
  "events",
804
811
  "tracking-enabled",
805
812
  "callback"
806
- ]))), 256)) : n("", !0), d(R) && e.onlyShow !== "events" ? (a(!0), c(p, { key: 1 }, l(d(ie), ({ id: e, name: n, fromDate: i, toDate: o, minimumPersonCount: s, fromPrice: c, description: l, images: u }) => (a(), r(Ze, {
813
+ ]))), 256)) : n("", !0), d(W) && e.onlyShow !== "events" ? (a(!0), c(p, { key: 1 }, l(d(se), ({ id: e, name: n, fromDate: i, toDate: o, minimumPersonCount: s, fromPrice: c, description: l, images: u }) => (a(), r($e, {
807
814
  key: e,
808
815
  "listing-id": e,
809
816
  name: n,
@@ -827,11 +834,11 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
827
834
  "tracking-enabled",
828
835
  "callback"
829
836
  ]))), 128)) : n("", !0)]),
830
- d(Y).length > 0 && e.onlyShow !== "templates" ? (a(), c(p, { key: 2 }, [u("h2", bt, [h(q, {
837
+ d(Y).length > 0 && e.onlyShow !== "templates" ? (a(), c(p, { key: 2 }, [u("h2", St, [h(q, {
831
838
  icon: "calendar-circle-exclamation",
832
839
  type: "fal",
833
840
  color: "header"
834
- }), u("span", null, _(d(o)("event.availableLater")), 1)]), u("ul", xt, [(a(!0), c(p, null, l(d(Y), (e) => (a(), r(Je, {
841
+ }), u("span", null, _(d(o)("event.availableLater")), 1)]), u("ul", Ct, [(a(!0), c(p, null, l(d(Y), (e) => (a(), r(Xe, {
835
842
  name: e.name,
836
843
  events: e.events ?? [],
837
844
  "tracking-enabled": d(Z),
@@ -842,21 +849,21 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
842
849
  "tracking-enabled",
843
850
  "callback"
844
851
  ]))), 256))])], 64)) : n("", !0),
845
- (!d(L) && !d(R) || !d(L) && e.onlyShow === "events" || !d(R) && e.onlyShow === "templates") && !d(ye) ? (a(), c("div", {
852
+ (!d(z) && !d(W) || !d(z) && e.onlyShow === "events" || !d(W) && e.onlyShow === "templates") && !d(xe) ? (a(), c("div", {
846
853
  key: 3,
847
854
  class: "konnectio-panel",
848
855
  innerHTML: d(o)("event.nothingAvailable")
849
- }, null, 8, St)) : n("", !0)
850
- ])) : (a(), r(Ce, { key: 1 }))]),
856
+ }, null, 8, wt)) : n("", !0)
857
+ ])) : (a(), r(Te, { key: 1 }))]),
851
858
  _: 2
852
859
  }, 1024)]),
853
- addons: C(({ next: e, prev: i }) => [d(fe) ? (a(), r(dt, {
860
+ addons: C(({ next: e, prev: i }) => [d(me) ? (a(), r(pt, {
854
861
  key: 0,
855
- "prev-callback": () => d(Ve)(i)
862
+ "prev-callback": () => d(Ue)(i)
856
863
  }, {
857
- form: C(() => [u("form", Ct, [
864
+ form: C(() => [u("form", Tt, [
858
865
  u("h2", null, [u("span", null, _(d(o)("event.selectProducts")), 1)]),
859
- d(J) && d(J).length > 0 ? (a(), c("ul", wt, [(a(!0), c(p, null, l(d(J), ({ roomGroupId: e, addons: n, adultPerRoom: i }, f) => (a(), c("li", { key: e }, [u("h5", null, [
866
+ d(J) && d(J).length > 0 ? (a(), c("ul", Et, [(a(!0), c(p, null, l(d(J), ({ roomGroupId: e, addons: n, adultPerRoom: i }, f) => (a(), c("li", { key: e }, [u("h5", null, [
860
867
  u("span", null, _(d(o)("booking.reservation.room")) + " #" + _(f + 1), 1),
861
868
  s[9] ||= t(" (", -1),
862
869
  h(q, {
@@ -865,43 +872,50 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
865
872
  color: "header"
866
873
  }),
867
874
  t(" " + _(i) + ") ", 1)
868
- ]), u("table", Tt, [
875
+ ]), u("table", Dt, [
869
876
  u("thead", null, [u("tr", null, [
870
877
  u("th", null, [u("span", null, _(d(o)("booking.reservation.addons")), 1)]),
871
878
  s[10] ||= u("th", { class: "konnectio-event-addons-input" }, null, -1),
872
- u("th", Et, [u("span", null, _(d(o)("booking.availability.price")), 1)])
879
+ u("th", Ot, [u("span", null, _(d(o)("booking.availability.price")), 1)])
873
880
  ])]),
874
881
  u("tbody", null, [(a(!0), c(p, null, l(n, ({ id: t, cardinality: n, name: i, price: o, quantityStrategy: l }) => (a(), c("tr", { key: t }, [
875
882
  u("td", null, [
876
883
  u("b", null, _(i), 1),
877
884
  s[11] ||= u("br", null, null, -1),
878
- u("span", null, _(d(z)(o, d(X))) + " " + _(d(te)(l)), 1)
885
+ u("span", null, _(d(k)(o, d(X))) + " " + _(d(te)(l)), 1)
879
886
  ]),
880
- u("td", Dt, [n === 3 ? (a(), r(W, {
887
+ u("td", kt, [n === d(oe).Mandatory ? (a(), r(U, {
881
888
  key: 0,
882
- modelValue: d(y)[`${e}.${t}.${f}`],
883
- "onUpdate:modelValue": (n) => d(y)[`${e}.${t}.${f}`] = n,
889
+ "model-value": 1,
884
890
  small: !0,
885
- "min-value": 0
886
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), r(Oe, {
891
+ "min-value": 1,
892
+ "max-value": 1,
893
+ readonly: ""
894
+ })) : (a(), r(U, {
887
895
  key: 1,
888
896
  modelValue: d(y)[`${e}.${t}.${f}`],
889
897
  "onUpdate:modelValue": (n) => d(y)[`${e}.${t}.${f}`] = n,
890
- numeric: !0
891
- }, null, 8, ["modelValue", "onUpdate:modelValue"]))]),
892
- u("td", Ot, [u("span", null, _(d(z)(d(Q)(t, e, f), d(X))), 1)])
898
+ small: !0,
899
+ "min-value": 0,
900
+ "max-value": d(M)(n)
901
+ }, null, 8, [
902
+ "modelValue",
903
+ "onUpdate:modelValue",
904
+ "max-value"
905
+ ]))]),
906
+ u("td", At, [u("span", null, _(d(k)(d(Q)(t, e, f), d(X))), 1)])
893
907
  ]))), 128))]),
894
908
  u("tfoot", null, [u("tr", null, [
895
909
  s[12] ||= u("td", null, null, -1),
896
910
  s[13] ||= u("td", null, null, -1),
897
- u("td", kt, [u("u", null, [u("span", null, _(d(z)(d(Re)(e, f), d(X))), 1)])])
911
+ u("td", jt, [u("u", null, [u("span", null, _(d(k)(d(Be)(e, f), d(X))), 1)])])
898
912
  ])])
899
913
  ])]))), 128))])) : n("", !0),
900
- d(le) ? (a(), c("table", At, [u("tbody", null, [(a(!0), c(p, null, l(d(U).products, ({ id: e, name: t, price: r, description: i }) => (a(), c("tr", { key: e }, [u("td", jt, [
901
- u("b", null, [u("span", null, _(d(N)(t)), 1)]),
902
- i && i !== t ? (a(), c("span", Mt, _(d(N)(i)), 1)) : n("", !0),
903
- u("u", null, _(d(z)(r, d(X))), 1)
904
- ]), u("td", Nt, [h(W, {
914
+ d(de) ? (a(), c("table", Mt, [u("tbody", null, [(a(!0), c(p, null, l(d(ce).products, ({ id: e, name: t, price: r, description: i }) => (a(), c("tr", { key: e }, [u("td", Nt, [
915
+ u("b", null, [u("span", null, _(d(P)(t)), 1)]),
916
+ i && i !== t ? (a(), c("span", Pt, _(d(P)(i)), 1)) : n("", !0),
917
+ u("u", null, _(d(k)(r, d(X))), 1)
918
+ ]), u("td", Ft, [h(U, {
905
919
  modelValue: d(b)[e],
906
920
  "onUpdate:modelValue": (t) => d(b)[e] = t,
907
921
  small: !0,
@@ -910,7 +924,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
910
924
  ])]),
911
925
  navigation: C(() => [h(G, {
912
926
  label: d(o)("event.startReservation"),
913
- disabled: !d(_e),
927
+ disabled: !d(ye),
914
928
  "full-width": "",
915
929
  onClickEvent: e
916
930
  }, null, 8, [
@@ -920,12 +934,12 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
920
934
  ])]),
921
935
  _: 2
922
936
  }, 1032, ["prev-callback"])) : n("", !0)]),
923
- reservation: C(({ next: t, prev: i }) => [h(dt, {
937
+ reservation: C(({ next: t, prev: i }) => [h(pt, {
924
938
  "show-terms-notice": !0,
925
939
  "show-gift-card": !0,
926
- "prev-callback": () => d(Ve)(i)
940
+ "prev-callback": () => d(Ue)(i)
927
941
  }, {
928
- form: C(() => [u("form", Pt, [
942
+ form: C(() => [u("form", It, [
929
943
  u("h2", null, [u("span", null, _(d(o)("booking.reservation.detailsTitle")), 1)]),
930
944
  h(H, {
931
945
  modelValue: d(D),
@@ -941,8 +955,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
941
955
  "placeholder"
942
956
  ]),
943
957
  h(H, {
944
- modelValue: d(k),
945
- "onUpdate:modelValue": s[1] ||= (e) => m(k) ? k.value = e : null,
958
+ modelValue: d(N),
959
+ "onUpdate:modelValue": s[1] ||= (e) => m(N) ? N.value = e : null,
946
960
  label: d(o)("booking.reservation.email"),
947
961
  type: "email",
948
962
  name: "email",
@@ -955,7 +969,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
955
969
  "label",
956
970
  "placeholder"
957
971
  ]),
958
- h(De, {
972
+ h(ke, {
959
973
  modelValue: d(O),
960
974
  "onUpdate:modelValue": s[2] ||= (e) => m(O) ? O.value = e : null,
961
975
  label: d(o)("booking.reservation.phone"),
@@ -967,20 +981,20 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
967
981
  "label",
968
982
  "placeholder"
969
983
  ]),
970
- d(ge) ? (a(), r(be, {
984
+ d(ve) ? (a(), r(Se, {
971
985
  key: 0,
972
- modelValue: d(I),
973
- "onUpdate:modelValue": s[3] ||= (e) => m(I) ? I.value = e : null,
986
+ modelValue: d(R),
987
+ "onUpdate:modelValue": s[3] ||= (e) => m(R) ? R.value = e : null,
974
988
  label: d(o)("event.selectArrivalTime"),
975
989
  name: "eventTimeTable",
976
- checkboxes: We.value,
990
+ checkboxes: Ke.value,
977
991
  required: ""
978
992
  }, null, 8, [
979
993
  "modelValue",
980
994
  "label",
981
995
  "checkboxes"
982
996
  ])) : n("", !0),
983
- d(ue) === d(re).FullDayEvent ? (a(), r(W, {
997
+ d(fe) === d(re).FullDayEvent ? (a(), r(U, {
984
998
  key: 1,
985
999
  modelValue: d(x),
986
1000
  "onUpdate:modelValue": s[4] ||= (e) => m(x) ? x.value = e : null,
@@ -988,7 +1002,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
988
1002
  "min-value": 1,
989
1003
  required: ""
990
1004
  }, null, 8, ["modelValue", "label"])) : n("", !0),
991
- e.showHighChairs === "yes" ? (a(), r(W, {
1005
+ e.showHighChairs === "yes" ? (a(), r(U, {
992
1006
  key: 2,
993
1007
  modelValue: d(w),
994
1008
  "onUpdate:modelValue": s[5] ||= (e) => m(w) ? w.value = e : null,
@@ -996,7 +1010,7 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
996
1010
  icon: "baby",
997
1011
  "no-optional-label": !1
998
1012
  }, null, 8, ["modelValue", "label"])) : n("", !0),
999
- e.showFlagOnTable === "yes" ? (a(), r(Oe, {
1013
+ e.showFlagOnTable === "yes" ? (a(), r(Ae, {
1000
1014
  key: 3,
1001
1015
  modelValue: d(S),
1002
1016
  "onUpdate:modelValue": s[6] ||= (e) => m(S) ? S.value = e : null,
@@ -1004,8 +1018,8 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
1004
1018
  }, null, 8, ["modelValue", "label"])) : n("", !0),
1005
1019
  e.hideRemarks === "yes" ? n("", !0) : (a(), r(H, {
1006
1020
  key: 4,
1007
- modelValue: d(M),
1008
- "onUpdate:modelValue": s[7] ||= (e) => m(M) ? M.value = e : null,
1021
+ modelValue: d(I),
1022
+ "onUpdate:modelValue": s[7] ||= (e) => m(I) ? I.value = e : null,
1009
1023
  type: "textarea",
1010
1024
  label: d(o)("booking.reservation.remark"),
1011
1025
  icon: "info-circle",
@@ -1015,10 +1029,10 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
1015
1029
  "label",
1016
1030
  "placeholder"
1017
1031
  ])),
1018
- e.hideAllergies !== "yes" && d(U)?.showAllergyFoodFieldOnline ? (a(), r(H, {
1032
+ e.hideAllergies !== "yes" && d(ce)?.showAllergyFoodFieldOnline ? (a(), r(H, {
1019
1033
  key: 5,
1020
- modelValue: d(P),
1021
- "onUpdate:modelValue": s[8] ||= (e) => m(P) ? P.value = e : null,
1034
+ modelValue: d(L),
1035
+ "onUpdate:modelValue": s[8] ||= (e) => m(L) ? L.value = e : null,
1022
1036
  type: "textarea",
1023
1037
  label: d(o)("booking.reservation.allergies"),
1024
1038
  icon: "allergies",
@@ -1029,12 +1043,12 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
1029
1043
  "placeholder"
1030
1044
  ])) : n("", !0)
1031
1045
  ])]),
1032
- navigation: C(() => [d(g) ? (a(), r(ke, { key: 0 })) : n("", !0), h(G, {
1046
+ navigation: C(() => [d(g) ? (a(), r(je, { key: 0 })) : n("", !0), h(G, {
1033
1047
  label: d(o)("general.confirmReservation"),
1034
- "is-loading": d(me) || d(g),
1035
- disabled: !d(he),
1048
+ "is-loading": d(ge) || d(g),
1049
+ disabled: !d(_e),
1036
1050
  "full-width": "",
1037
- onClickEvent: (e) => Ke(t)
1051
+ onClickEvent: (e) => Je(t)
1038
1052
  }, null, 8, [
1039
1053
  "label",
1040
1054
  "is-loading",
@@ -1043,20 +1057,20 @@ var je = { class: "konnectio-event-listing-action-button" }, Me = /*#__PURE__*/
1043
1057
  ])]),
1044
1058
  _: 2
1045
1059
  }, 1032, ["prev-callback"])]),
1046
- payment: C(() => [h(Ae)]),
1047
- confirmation: C(() => [h(xe, { message: d(o)("event.confirmationMessage") }, null, 8, ["message"])]),
1060
+ payment: C(() => [h(Me)]),
1061
+ confirmation: C(() => [h(Ce, { message: d(o)("event.confirmationMessage") }, null, 8, ["message"])]),
1048
1062
  _: 1
1049
1063
  }, 8, ["steps"])]),
1050
1064
  _: 1
1051
1065
  }, 8, ["access-token", "callback"])]),
1052
- fallback: C(() => [h(ht)]),
1066
+ fallback: C(() => [h(_t)]),
1053
1067
  _: 1
1054
1068
  }))]),
1055
1069
  _: 1
1056
1070
  }, 8, ["styling"]));
1057
1071
  }
1058
- }), [["__scopeId", "data-v-c36cf4ac"]]), It = S(), Lt = b("konnectio-event", Ft, (e) => {
1059
- e.use(O), e.use(y), e.use(It), e.use(Y), e.use(Ee);
1072
+ }), [["__scopeId", "data-v-f90b7287"]]), Rt = S(), zt = b("konnectio-event", Lt, (e) => {
1073
+ e.use(O), e.use(y), e.use(Rt), e.use(Y), e.use(Oe);
1060
1074
  });
1061
1075
  //#endregion
1062
- export { Lt as default };
1076
+ export { zt as default };