@konnectio/core 4.3.18 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/README.md +274 -274
  2. package/dist/{ActionField-Bg0yFXyo.js → ActionField-DFZa6XEE.js} +4 -4
  3. package/dist/ActionField-DFZa6XEE.js.br +0 -0
  4. package/dist/ActionField-DFZa6XEE.js.gz +0 -0
  5. package/dist/{AvailabilitySkeleton-DLjqFg6U.js → AvailabilitySkeleton-DF-xbqwc.js} +8 -8
  6. package/dist/AvailabilitySkeleton-DF-xbqwc.js.br +0 -0
  7. package/dist/AvailabilitySkeleton-DF-xbqwc.js.gz +0 -0
  8. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CRRajYbg.js +10189 -0
  9. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CRRajYbg.js.br +0 -0
  10. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CRRajYbg.js.gz +0 -0
  11. package/dist/{CheckoutWindow-BMdnoHy9.js → CheckoutWindow-D1K21oen.js} +13 -13
  12. package/dist/CheckoutWindow-D1K21oen.js.br +0 -0
  13. package/dist/CheckoutWindow-D1K21oen.js.gz +0 -0
  14. package/dist/{ErrorMessage-jEofs6LL.js → ErrorMessage-BK__LpVs.js} +4 -4
  15. package/dist/ErrorMessage-BK__LpVs.js.br +0 -0
  16. package/dist/ErrorMessage-BK__LpVs.js.gz +0 -0
  17. package/dist/{EventAvailabilityForm-DP2s7m8v.js → EventAvailabilityForm-0wtbzDvF.js} +5 -5
  18. package/dist/EventAvailabilityForm-0wtbzDvF.js.br +0 -0
  19. package/dist/EventAvailabilityForm-0wtbzDvF.js.gz +0 -0
  20. package/dist/{Field-3KNgiKPM.js → Field-BtzC8Gm7.js} +7 -7
  21. package/dist/Field-BtzC8Gm7.js.br +0 -0
  22. package/dist/Field-BtzC8Gm7.js.gz +0 -0
  23. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BiqNvDQ-.js +21 -0
  24. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BiqNvDQ-.js.br +2 -0
  25. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BiqNvDQ-.js.gz +0 -0
  26. package/dist/{SelectField.vue_vue_type_style_index_0_lang-k2xp8Gqw.js → SelectField.vue_vue_type_style_index_0_lang-HOvwUDvl.js} +4867 -4261
  27. package/dist/SelectField.vue_vue_type_style_index_0_lang-HOvwUDvl.js.br +0 -0
  28. package/dist/SelectField.vue_vue_type_style_index_0_lang-HOvwUDvl.js.gz +0 -0
  29. package/dist/{TermsOfService-CAwgDlMG.js → TermsOfService-BDjNCWRO.js} +8 -8
  30. package/dist/TermsOfService-BDjNCWRO.js.br +0 -0
  31. package/dist/TermsOfService-BDjNCWRO.js.gz +0 -0
  32. package/dist/_-CgubYUBN.js +5 -0
  33. package/dist/_-CgubYUBN.js.br +0 -0
  34. package/dist/_-CgubYUBN.js.gz +0 -0
  35. package/dist/{_.vue_vue_type_style_index_0_lang-Bp4LTg7i.js → _.vue_vue_type_style_index_0_lang-B5YYDdEe.js} +3 -3
  36. package/dist/_.vue_vue_type_style_index_0_lang-B5YYDdEe.js.br +0 -0
  37. package/dist/_.vue_vue_type_style_index_0_lang-B5YYDdEe.js.gz +0 -0
  38. package/dist/_commonjsHelpers-DaMA6jEr.js.gz +0 -0
  39. package/dist/availability.js +9 -9
  40. package/dist/availability.js.br +0 -0
  41. package/dist/availability.js.gz +0 -0
  42. package/dist/cancel-reservation.js +7 -7
  43. package/dist/cancel-reservation.js.br +0 -0
  44. package/dist/cancel-reservation.js.gz +0 -0
  45. package/dist/core.css +1 -1
  46. package/dist/core.css.br +0 -0
  47. package/dist/core.css.gz +0 -0
  48. package/dist/deep-link.js +1 -1
  49. package/dist/deep-link.js.br +0 -0
  50. package/dist/deep-link.js.gz +0 -0
  51. package/dist/event.js +367 -373
  52. package/dist/event.js.br +0 -0
  53. package/dist/event.js.gz +0 -0
  54. package/dist/gift-card-validation.js +14 -14
  55. package/dist/gift-card-validation.js.br +0 -0
  56. package/dist/gift-card-validation.js.gz +0 -0
  57. package/dist/gift-card.js +14 -14
  58. package/dist/gift-card.js.br +0 -0
  59. package/dist/gift-card.js.gz +0 -0
  60. package/dist/{giftCard-CrwgJ6Fm.js → giftCard-ClmfxLn7.js} +3 -3
  61. package/dist/giftCard-ClmfxLn7.js.br +0 -0
  62. package/dist/giftCard-ClmfxLn7.js.gz +0 -0
  63. package/dist/hotel.js +523 -518
  64. package/dist/hotel.js.br +0 -0
  65. package/dist/hotel.js.gz +0 -0
  66. package/dist/{index-DR2Ax4hj.js → index-CypuSCab.js} +50 -48
  67. package/dist/index-CypuSCab.js.br +0 -0
  68. package/dist/index-CypuSCab.js.gz +0 -0
  69. package/dist/{masonry.plugin-CKPCoYcs.js → masonry.plugin-BRPC0wYu.js} +121 -158
  70. package/dist/masonry.plugin-BRPC0wYu.js.br +0 -0
  71. package/dist/masonry.plugin-BRPC0wYu.js.gz +0 -0
  72. package/dist/{mitt-CqW9zFaX.js → mitt-CvmiLPAX.js} +4643 -4431
  73. package/dist/mitt-CvmiLPAX.js.br +0 -0
  74. package/dist/mitt-CvmiLPAX.js.gz +0 -0
  75. package/dist/polyfill.js +5965 -5688
  76. package/dist/polyfill.js.br +0 -0
  77. package/dist/polyfill.js.gz +0 -0
  78. package/dist/style-DisyGIDX.js +1750 -0
  79. package/dist/style-DisyGIDX.js.br +0 -0
  80. package/dist/style-DisyGIDX.js.gz +0 -0
  81. package/package.json +118 -118
  82. package/dist/ActionField-Bg0yFXyo.js.br +0 -0
  83. package/dist/ActionField-Bg0yFXyo.js.gz +0 -0
  84. package/dist/AvailabilitySkeleton-DLjqFg6U.js.br +0 -0
  85. package/dist/AvailabilitySkeleton-DLjqFg6U.js.gz +0 -0
  86. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-CgMThV2A.js +0 -9324
  87. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-CgMThV2A.js.br +0 -0
  88. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-CgMThV2A.js.gz +0 -0
  89. package/dist/CheckoutWindow-BMdnoHy9.js.br +0 -0
  90. package/dist/CheckoutWindow-BMdnoHy9.js.gz +0 -0
  91. package/dist/ErrorMessage-jEofs6LL.js.br +0 -0
  92. package/dist/ErrorMessage-jEofs6LL.js.gz +0 -0
  93. package/dist/EventAvailabilityForm-DP2s7m8v.js.br +0 -0
  94. package/dist/EventAvailabilityForm-DP2s7m8v.js.gz +0 -0
  95. package/dist/Field-3KNgiKPM.js.br +0 -0
  96. package/dist/Field-3KNgiKPM.js.gz +0 -0
  97. package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B5c8ufB9.js +0 -21
  98. package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B5c8ufB9.js.br +0 -0
  99. package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B5c8ufB9.js.gz +0 -0
  100. package/dist/SelectField.vue_vue_type_style_index_0_lang-k2xp8Gqw.js.br +0 -0
  101. package/dist/SelectField.vue_vue_type_style_index_0_lang-k2xp8Gqw.js.gz +0 -0
  102. package/dist/TermsOfService-CAwgDlMG.js.br +0 -0
  103. package/dist/TermsOfService-CAwgDlMG.js.gz +0 -0
  104. package/dist/_-DQD4tHzx.js +0 -5
  105. package/dist/_-DQD4tHzx.js.br +0 -0
  106. package/dist/_-DQD4tHzx.js.gz +0 -2
  107. package/dist/_.vue_vue_type_style_index_0_lang-Bp4LTg7i.js.br +0 -0
  108. package/dist/_.vue_vue_type_style_index_0_lang-Bp4LTg7i.js.gz +0 -0
  109. package/dist/giftCard-CrwgJ6Fm.js.br +0 -0
  110. package/dist/giftCard-CrwgJ6Fm.js.gz +0 -0
  111. package/dist/index-DR2Ax4hj.js.br +0 -0
  112. package/dist/index-DR2Ax4hj.js.gz +0 -0
  113. package/dist/masonry.plugin-CKPCoYcs.js.br +0 -0
  114. package/dist/masonry.plugin-CKPCoYcs.js.gz +0 -0
  115. package/dist/mitt-CqW9zFaX.js.br +0 -0
  116. package/dist/mitt-CqW9zFaX.js.gz +0 -0
  117. package/dist/style-Tyu_krEp.js +0 -2340
  118. package/dist/style-Tyu_krEp.js.br +0 -0
  119. package/dist/style-Tyu_krEp.js.gz +0 -0
package/dist/event.js CHANGED
@@ -1,52 +1,46 @@
1
- import { d as M, u as _, s as q, c as Z, r as Ie, a as m, b as l, g as e, w as v, q as K, e as n, i as r, f as h, n as lt, h as s, t as o, F as N, v as R, o as ot, j as it, x as ue, y as st, z as S, A as rt, S as ct, k as dt, _ as ut, l as mt, m as vt, p as bt } from "./mitt-CqW9zFaX.js";
2
- import { G as gt } from "./style-Tyu_krEp.js";
3
- import { a as Ee, f as oe, g as X, h as Ae, B as kt, i as ae, l as ft, s as z, e as me, _ as G, I as le, j as yt, k as ve, u as Pe, m as ht, n as pt, o as Dt, p as J, T as de, O as Pt, q as Et, r as xe, C as $t, t as wt, v as xt } from "./SelectField.vue_vue_type_style_index_0_lang-k2xp8Gqw.js";
4
- import { _ as Ot } from "./_.vue_vue_type_style_index_0_lang-Bp4LTg7i.js";
5
- import { B as Tt, _ as Vt, R as Ft, L as Se, S as Nt, M as Lt, T as Ct, C as Bt, V as It, a as At } from "./masonry.plugin-CKPCoYcs.js";
6
- import { g as St, e as Rt, c as Mt, n as Ut, a as Oe, m as Te, b as Ve, d as Fe, f as Ne, _ as Ht } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-CgMThV2A.js";
7
- import { C as Gt, P as zt, a as Le } from "./CheckoutWindow-BMdnoHy9.js";
8
- import { E as qt } from "./EventAvailabilityForm-DP2s7m8v.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B5c8ufB9.js";
10
- import { f as Yt } from "./index-DR2Ax4hj.js";
11
- function jt(t) {
12
- return (i) => {
13
- const k = (t ? Math[t] : Math.trunc)(i);
14
- return k === 0 ? 0 : k;
15
- };
16
- }
17
- function Wt(t, i, a) {
18
- const k = St(), b = a?.locale ?? k.locale ?? Rt, f = Mt(t, i);
1
+ import { d as M, u as _, s as q, c as Y, r as Ae, a as v, b as l, g as e, w as b, q as K, e as n, i as r, f as h, n as ot, h as s, t as o, F as N, v as R, o as it, j as st, x as ue, y as rt, z as S, A as dt, S as ct, k as ut, _ as mt, l as vt, m as bt, p as gt } from "./mitt-CvmiLPAX.js";
2
+ import { G as ft } from "./style-DisyGIDX.js";
3
+ import { a as Ee, f as oe, g as X, h as Se, B as kt, i as ae, l as yt, s as z, e as me, _ as G, I as le, j as ht, k as ve, u as Pe, m as pt, n as Dt, o as Pt, p as J, T as ce, O as Et, q as $t, r as xe, C as wt, t as Ot, v as xt } from "./SelectField.vue_vue_type_style_index_0_lang-HOvwUDvl.js";
4
+ import { _ as Tt } from "./_.vue_vue_type_style_index_0_lang-B5YYDdEe.js";
5
+ import { B as Vt, _ as Ft, R as Nt, L as Re, S as Lt, M as Ct, T as Bt, C as It, V as At, a as St } from "./masonry.plugin-BRPC0wYu.js";
6
+ import { g as Rt, e as Mt, c as Ut, n as Ht, a as Te, b as Gt, m as Ve, d as Fe, f as Ne, h as Le, _ as zt } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CRRajYbg.js";
7
+ import { C as qt, P as Yt, a as Ce } from "./CheckoutWindow-D1K21oen.js";
8
+ import { E as jt } from "./EventAvailabilityForm-0wtbzDvF.js";
9
+ import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BiqNvDQ-.js";
10
+ import { f as Wt } from "./index-CypuSCab.js";
11
+ function Zt(t, i, a) {
12
+ const E = Rt(), m = a?.locale ?? E.locale ?? Mt, f = Ut(t, i);
19
13
  if (isNaN(f))
20
14
  throw new RangeError("Invalid time value");
21
15
  const g = Object.assign({}, a, {
22
16
  addSuffix: a?.addSuffix,
23
17
  comparison: f
24
- }), [y, p] = Ut(
18
+ }), [k, p] = Ht(
25
19
  a?.in,
26
20
  ...f > 0 ? [i, t] : [t, i]
27
- ), P = jt("round"), $ = p.getTime() - y.getTime(), E = $ / Ne, T = Oe(p) - Oe(y), w = ($ - T) / Ne, O = a?.unit;
21
+ ), D = Gt("round"), $ = p.getTime() - k.getTime(), P = $ / Le, T = Te(p) - Te(k), w = ($ - T) / Le, x = a?.unit;
28
22
  let u;
29
- if (E < 1 ? u = "second" : E < 60 ? u = "minute" : E < Te ? u = "hour" : w < Ve ? u = "day" : w < Fe ? u = "month" : u = "year", u === "second") {
30
- const D = P($ / 1e3);
31
- return b.formatDistance("xSeconds", D, g);
23
+ if (P < 1 ? u = "second" : P < 60 ? u = "minute" : P < Ve ? u = "hour" : w < Fe ? u = "day" : w < Ne ? u = "month" : u = "year", u === "second") {
24
+ const y = D($ / 1e3);
25
+ return m.formatDistance("xSeconds", y, g);
32
26
  } else if (u === "minute") {
33
- const D = P(E);
34
- return b.formatDistance("xMinutes", D, g);
27
+ const y = D(P);
28
+ return m.formatDistance("xMinutes", y, g);
35
29
  } else if (u === "hour") {
36
- const D = P(E / 60);
37
- return b.formatDistance("xHours", D, g);
30
+ const y = D(P / 60);
31
+ return m.formatDistance("xHours", y, g);
38
32
  } else if (u === "day") {
39
- const D = P(w / Te);
40
- return b.formatDistance("xDays", D, g);
33
+ const y = D(w / Ve);
34
+ return m.formatDistance("xDays", y, g);
41
35
  } else if (u === "month") {
42
- const D = P(w / Ve);
43
- return D === 12 && O !== "month" ? b.formatDistance("xYears", 1, g) : b.formatDistance("xMonths", D, g);
36
+ const y = D(w / Fe);
37
+ return y === 12 && x !== "month" ? m.formatDistance("xYears", 1, g) : m.formatDistance("xMonths", y, g);
44
38
  } else {
45
- const D = P(w / Fe);
46
- return b.formatDistance("xYears", D, g);
39
+ const y = D(w / Ne);
40
+ return m.formatDistance("xYears", y, g);
47
41
  }
48
42
  }
49
- const Zt = { class: "konnectio-event-listing-action-button" }, Qt = /* @__PURE__ */ M({
43
+ const Qt = { class: "konnectio-event-listing-action-button" }, Jt = /* @__PURE__ */ M({
50
44
  __name: "_",
51
45
  props: {
52
46
  name: {},
@@ -71,21 +65,21 @@ const Zt = { class: "konnectio-event-listing-action-button" }, Qt = /* @__PURE__
71
65
  callback: {}
72
66
  },
73
67
  setup(t) {
74
- const { t: i } = _(), a = t, { display: k } = Ee(), {
75
- hideEventGuestAmount: b
68
+ const { t: i } = _(), a = t, { display: E } = Ee(), {
69
+ hideEventGuestAmount: m
76
70
  } = q(oe()), {
77
71
  maxNumberOfPeople: f,
78
72
  numberOfPeople: g,
79
- eventId: y,
73
+ eventId: k,
80
74
  currentEventDate: p,
81
- tableGroupId: P
75
+ tableGroupId: D
82
76
  } = q(X()), {
83
77
  getTemplateAvailability: $,
84
- getEventAvailability: E,
78
+ getEventAvailability: P,
85
79
  isEventListingLoading: T
86
- } = X(), { addToCart: w } = Ae(), O = Z(() => a.maxGuests || a.maxOnlineReservationLimit || f.value || 1 / 0), u = Ie(0), D = Z(() => T(a.listingId)), Y = () => {
80
+ } = X(), { addToCart: w } = Se(), x = Y(() => a.maxGuests || a.maxOnlineReservationLimit || f.value || 1 / 0), u = Ae(0), y = Y(() => T(a.listingId)), j = () => {
87
81
  if (!a.useNumberOfProductsForPersons && (u.value === 0 || isNaN(u.value))) {
88
- k({
82
+ E({
89
83
  type: "error",
90
84
  message: i("alert.error.selectPeople")
91
85
  });
@@ -95,10 +89,10 @@ const Zt = { class: "konnectio-event-listing-action-button" }, Qt = /* @__PURE__
95
89
  id: a.listingId,
96
90
  name: a.name,
97
91
  value: a.fromPrice || 0
98
- }), y.value = a.listingId, g.value = a.useNumberOfProductsForPersons ? NaN : u.value, $(a.callback);
92
+ }), k.value = a.listingId, g.value = a.useNumberOfProductsForPersons ? NaN : u.value, $(a.callback);
99
93
  }, B = () => {
100
94
  if (!a.useNumberOfProductsForPersons && (u.value === 0 || isNaN(u.value))) {
101
- k({
95
+ E({
102
96
  type: "error",
103
97
  message: i("alert.error.selectPeople")
104
98
  });
@@ -108,9 +102,9 @@ const Zt = { class: "konnectio-event-listing-action-button" }, Qt = /* @__PURE__
108
102
  id: a.listingId,
109
103
  name: a.name,
110
104
  value: a.fromPrice || 0
111
- }), y.value = a.listingId, P.value = a.tableGroupId, g.value = a.useNumberOfProductsForPersons ? NaN : u.value, E(a.callback);
105
+ }), k.value = a.listingId, D.value = a.tableGroupId, g.value = a.useNumberOfProductsForPersons ? NaN : u.value, P(a.callback);
112
106
  };
113
- return (C, U) => (l(), m(Tt, {
107
+ return (C, U) => (l(), v(Vt, {
114
108
  type: "event",
115
109
  "listing-id": t.listingId,
116
110
  gallery: t.gallery,
@@ -121,18 +115,18 @@ const Zt = { class: "konnectio-event-listing-action-button" }, Qt = /* @__PURE__
121
115
  layout: e(kt).Event,
122
116
  "disable-deep-link": t.disableDeepLink
123
117
  }, {
124
- description: v(() => [
118
+ description: b(() => [
125
119
  K(C.$slots, "description", { maxNumberOfPeople: e(f) }, void 0, !0)
126
120
  ]),
127
- action: v(() => [
121
+ action: b(() => [
128
122
  K(C.$slots, "action", {}, () => [
129
123
  n("div", {
130
- class: lt([
124
+ class: ot([
131
125
  "konnectio-event-listing-action",
132
126
  { "no-selectable-people": t.useNumberOfProductsForPersons }
133
127
  ])
134
128
  }, [
135
- t.useNumberOfProductsForPersons ? r("", !0) : (l(), m(ae, {
129
+ t.useNumberOfProductsForPersons ? r("", !0) : (l(), v(ae, {
136
130
  key: 0,
137
131
  modelValue: u.value,
138
132
  "onUpdate:modelValue": U[0] || (U[0] = (Q) => u.value = Q),
@@ -140,18 +134,18 @@ const Zt = { class: "konnectio-event-listing-action-button" }, Qt = /* @__PURE__
140
134
  icon: "users",
141
135
  "icon-type": "fas",
142
136
  "icon-placement": "label",
143
- description: O.value <= 20 && !e(b) ? `${e(i)("general.availableFor")}: 1 - ${O.value} ${e(ft)(e(i)("general.guests"))}` : void 0,
137
+ description: x.value <= 20 && !e(m) ? `${e(i)("general.availableFor")}: 1 - ${x.value} ${e(yt)(e(i)("general.guests"))}` : void 0,
144
138
  "min-value": 0,
145
- "max-value": O.value
139
+ "max-value": x.value
146
140
  }, null, 8, ["modelValue", "label", "description", "max-value"])),
147
- n("div", Zt, [
141
+ n("div", Qt, [
148
142
  h(me, {
149
143
  label: t.soldOut ? e(i)("event.soldOut") : e(i)("event.bookNowButton"),
150
144
  disabled: t.soldOut,
151
- "is-loading": D.value,
145
+ "is-loading": y.value,
152
146
  "full-width": "",
153
147
  "sub-label": e(z)(e(p)),
154
- onClickEvent: U[1] || (U[1] = (Q) => t.type === "event" ? B() : Y())
148
+ onClickEvent: U[1] || (U[1] = (Q) => t.type === "event" ? B() : j())
155
149
  }, null, 8, ["label", "disabled", "is-loading", "sub-label"])
156
150
  ])
157
151
  ], 2)
@@ -160,14 +154,14 @@ const Zt = { class: "konnectio-event-listing-action-button" }, Qt = /* @__PURE__
160
154
  _: 3
161
155
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout", "disable-deep-link"]));
162
156
  }
163
- }), Re = /* @__PURE__ */ G(Qt, [["__scopeId", "data-v-bfd98c31"]]), Jt = { class: "konnectio-event-listing-information-new" };
164
- const Kt = {
157
+ }), Me = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-23ac9949"]]), Kt = { class: "konnectio-event-listing-information-new" };
158
+ const Xt = {
165
159
  key: 1,
166
160
  class: "konnectio-pill-button"
167
- }, Xt = {
161
+ }, _t = {
168
162
  key: 2,
169
163
  class: "konnectio-pill-button"
170
- }, _t = { key: 0 }, en = { key: 1 }, tn = /* @__PURE__ */ M({
164
+ }, en = { key: 0 }, tn = { key: 1 }, nn = /* @__PURE__ */ M({
171
165
  __name: "Event",
172
166
  props: {
173
167
  name: {},
@@ -191,18 +185,18 @@ const Kt = {
191
185
  },
192
186
  setup(t) {
193
187
  const i = t, { t: a } = _(), {
194
- hideEventLength: k,
195
- hideEventEndTime: b
196
- } = q(oe()), f = Z(() => {
188
+ hideEventLength: E,
189
+ hideEventEndTime: m
190
+ } = q(oe()), f = Y(() => {
197
191
  if (!i.length)
198
192
  return;
199
193
  const g = i.length.split(":");
200
- return Wt(
194
+ return Zt(
201
195
  new Date(2e3, 0, 1, Number(g[0]), Number(g[1]), 0),
202
196
  new Date(2e3, 0, 1, 0, 0, 0)
203
197
  );
204
198
  });
205
- return (g, y) => (l(), m(Re, {
199
+ return (g, k) => (l(), v(Me, {
206
200
  "listing-id": t.listingId,
207
201
  name: t.name,
208
202
  description: t.description,
@@ -217,14 +211,14 @@ const Kt = {
217
211
  "tracking-enabled": t.trackingEnabled,
218
212
  callback: t.callback
219
213
  }, {
220
- description: v(() => [
221
- t.description ? (l(), m(Vt, {
214
+ description: b(() => [
215
+ t.description ? (l(), v(Ft, {
222
216
  key: 0,
223
217
  text: t.description
224
218
  }, null, 8, ["text"])) : r("", !0),
225
- n("ul", Jt, [
219
+ n("ul", Kt, [
226
220
  r("", !0),
227
- !e(k) && f.value ? (l(), s("li", Kt, [
221
+ !e(E) && f.value ? (l(), s("li", Xt, [
228
222
  n("div", null, [
229
223
  h(le, {
230
224
  icon: "calendar-clock",
@@ -234,7 +228,7 @@ const Kt = {
234
228
  ]),
235
229
  n("span", null, o(f.value), 1)
236
230
  ])) : r("", !0),
237
- t.timeFrom ? (l(), s("li", Xt, [
231
+ t.timeFrom ? (l(), s("li", _t, [
238
232
  n("div", null, [
239
233
  h(le, {
240
234
  icon: "calendar-clock",
@@ -242,20 +236,20 @@ const Kt = {
242
236
  }),
243
237
  n("span", null, o(e(a)("event.startAndEndTime")), 1)
244
238
  ]),
245
- e(b) ? (l(), s("span", en, o(e(ve)(t.timeFrom)), 1)) : (l(), s("span", _t, o(e(yt)(t.timeFrom, t.timeTo)), 1))
239
+ e(m) ? (l(), s("span", tn, o(e(ve)(t.timeFrom)), 1)) : (l(), s("span", en, o(e(ht)(t.timeFrom, t.timeTo)), 1))
246
240
  ])) : r("", !0)
247
241
  ])
248
242
  ]),
249
- action: v(() => [
243
+ action: b(() => [
250
244
  K(g.$slots, "action", {}, void 0, !0)
251
245
  ]),
252
246
  _: 3
253
247
  }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "use-number-of-products-for-persons", "to-date", "sold-out", "tracking-enabled", "callback"]));
254
248
  }
255
- }), be = /* @__PURE__ */ G(tn, [["__scopeId", "data-v-2ecac268"]]), nn = {
249
+ }), be = /* @__PURE__ */ G(nn, [["__scopeId", "data-v-40cbbf2c"]]), an = {
256
250
  key: 0,
257
251
  class: "konnectio-event-grouped-listings-container"
258
- }, an = { class: "konnectio-event-grouped-listings" }, ln = /* @__PURE__ */ M({
252
+ }, ln = { class: "konnectio-event-grouped-listings" }, on = /* @__PURE__ */ M({
259
253
  __name: "Event",
260
254
  props: {
261
255
  name: {},
@@ -264,44 +258,44 @@ const Kt = {
264
258
  callback: { type: Function }
265
259
  },
266
260
  setup(t) {
267
- return (i, a) => t.events && t.events.length > 1 ? (l(), s("div", nn, [
261
+ return (i, a) => t.events && t.events.length > 1 ? (l(), s("div", an, [
268
262
  r("", !0),
269
- n("ul", an, [
263
+ n("ul", ln, [
270
264
  (l(!0), s(N, null, R(t.events, ({
271
- id: k,
272
- days: b,
265
+ id: E,
266
+ days: m,
273
267
  name: f,
274
268
  timeFrom: g,
275
- timeTo: y,
269
+ timeTo: k,
276
270
  tableGroupId: p,
277
- description: P,
271
+ description: D,
278
272
  soldOut: $,
279
- length: E,
273
+ length: P,
280
274
  images: T,
281
275
  maxOnlineReservationLimit: w,
282
- maxPaxPerReservation: O,
276
+ maxPaxPerReservation: x,
283
277
  useNumberOfProductsForPersons: u,
284
- maxTicketsLimit: D
285
- }) => (l(), m(be, {
286
- key: k,
278
+ maxTicketsLimit: y
279
+ }) => (l(), v(be, {
280
+ key: E,
287
281
  type: "event",
288
- "listing-id": k,
282
+ "listing-id": E,
289
283
  "table-group-id": p,
290
- description: P,
284
+ description: D,
291
285
  name: f,
292
- length: E,
286
+ length: P,
293
287
  gallery: T,
294
- days: b,
295
- "max-online-reservation-limit": O || w || D || void 0,
288
+ days: m,
289
+ "max-online-reservation-limit": x || w || y || void 0,
296
290
  "time-from": g,
297
- "time-to": y,
291
+ "time-to": k,
298
292
  "sold-out": $,
299
293
  "use-number-of-products-for-persons": u,
300
294
  "tracking-enabled": t.trackingEnabled,
301
295
  callback: t.callback
302
296
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "tracking-enabled", "callback"]))), 128))
303
297
  ])
304
- ])) : t.events ? (l(), m(be, {
298
+ ])) : t.events ? (l(), v(be, {
305
299
  key: t.events[0].id,
306
300
  type: "event",
307
301
  "listing-id": t.events[0].id,
@@ -322,7 +316,7 @@ const Kt = {
322
316
  callback: t.callback
323
317
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "tracking-enabled", "callback"])) : r("", !0);
324
318
  }
325
- }), on = /* @__PURE__ */ G(ln, [["__scopeId", "data-v-20b8c0bd"]]), sn = { class: "konnectio-special-offer-availability" }, rn = { class: "konnectio-special-offer-availability-button" }, cn = { class: "konnectio-warning-notice" }, dn = { key: 0 }, un = { key: 1 }, mn = /* @__PURE__ */ M({
319
+ }), sn = /* @__PURE__ */ G(on, [["__scopeId", "data-v-374ad034"]]), rn = { class: "konnectio-special-offer-availability" }, dn = { class: "konnectio-special-offer-availability-button" }, cn = { class: "konnectio-warning-notice" }, un = { key: 0 }, mn = { key: 1 }, vn = /* @__PURE__ */ M({
326
320
  __name: "NextEvent",
327
321
  props: {
328
322
  name: {},
@@ -344,17 +338,17 @@ const Kt = {
344
338
  callback: { type: Function }
345
339
  },
346
340
  setup(t) {
347
- const { t: i } = _(), { updateEventDate: a } = Pe(), { display: k } = Ee(), b = Ie(), f = t;
341
+ const { t: i } = _(), { updateEventDate: a } = Pe(), { display: E } = Ee(), m = Ae(), f = t;
348
342
  function g() {
349
- b.value ? a(b.value) : k({
343
+ m.value ? a(m.value) : E({
350
344
  message: i("alert.error.selectDate"),
351
345
  type: "error"
352
346
  });
353
347
  }
354
- const y = Z(() => ht(f.fromDate, f.toDate) <= 1), p = Z(() => [0, 1, 2, 3, 4, 5, 6].filter((P) => !pt(f.days).includes(P)));
355
- return ot(() => {
356
- y.value && (b.value = new Date(f.fromDate));
357
- }), (P, $) => (l(), m(be, {
348
+ const k = Y(() => pt(f.fromDate, f.toDate) <= 1), p = Y(() => [0, 1, 2, 3, 4, 5, 6].filter((D) => !Dt(f.days).includes(D)));
349
+ return it(() => {
350
+ k.value && (m.value = new Date(f.fromDate));
351
+ }), (D, $) => (l(), v(be, {
358
352
  name: t.name,
359
353
  description: t.description,
360
354
  "from-date": t.fromDate,
@@ -374,36 +368,36 @@ const Kt = {
374
368
  callback: t.callback,
375
369
  "disable-deep-link": !0
376
370
  }, {
377
- action: v(() => [
371
+ action: b(() => [
378
372
  n("div", null, [
379
- n("div", sn, [
380
- h(Ht, {
381
- modelValue: b.value,
382
- "onUpdate:modelValue": $[0] || ($[0] = (E) => b.value = E),
373
+ n("div", rn, [
374
+ h(zt, {
375
+ modelValue: m.value,
376
+ "onUpdate:modelValue": $[0] || ($[0] = (P) => m.value = P),
383
377
  label: `${e(i)("event.selectDate")}*`,
384
378
  placeholder: e(i)("event.selectDate"),
385
379
  "icon-type": "fas",
386
380
  "icon-placement": "label",
387
- readonly: y.value,
381
+ readonly: k.value,
388
382
  "start-date": t.fromDate !== "0001-01-01T00:00:00Z" ? new Date(t.fromDate) : new Date(t.toDate),
389
383
  "min-date": t.fromDate !== "0001-01-01T00:00:00Z" ? new Date(t.fromDate) : new Date(t.toDate),
390
384
  "max-date": new Date(t.toDate),
391
385
  "disabled-week-days": p.value
392
386
  }, null, 8, ["modelValue", "label", "placeholder", "readonly", "start-date", "min-date", "max-date", "disabled-week-days"]),
393
- n("div", rn, [
387
+ n("div", dn, [
394
388
  h(me, {
395
389
  label: e(i)("availability.buttonLabel"),
396
- onClick: it(g, ["prevent"])
390
+ onClick: st(g, ["prevent"])
397
391
  }, null, 8, ["label"])
398
392
  ])
399
393
  ]),
400
394
  n("div", cn, [
401
- y.value ? (l(), s("span", dn, [
395
+ k.value ? (l(), s("span", un, [
402
396
  ue("*" + o(e(i)("event.canBeBooked")) + " ", 1),
403
397
  n("u", null, o(e(z)(t.fromDate)), 1)
404
- ])) : (l(), s("span", un, [
398
+ ])) : (l(), s("span", mn, [
405
399
  ue("*" + o(e(i)("event.canBeBooked")) + " ", 1),
406
- n("u", null, o(e(Dt)(t.days)), 1)
400
+ n("u", null, o(e(Pt)(t.days)), 1)
407
401
  ]))
408
402
  ])
409
403
  ])
@@ -411,10 +405,10 @@ const Kt = {
411
405
  _: 1
412
406
  }, 8, ["name", "description", "from-date", "to-date", "length", "time-from", "time-to", "gallery", "days", "listing-id", "table-group-id", "max-online-reservation-limit", "minimum-person-count", "use-number-of-products-for-persons", "tracking-enabled", "sold-out", "callback"]));
413
407
  }
414
- }), Ce = /* @__PURE__ */ G(mn, [["__scopeId", "data-v-91ea584c"]]), vn = {
408
+ }), Be = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-f6aed3b0"]]), bn = {
415
409
  key: 0,
416
410
  class: "konnectio-event-grouped-listings-container"
417
- }, bn = { class: "konnectio-event-grouped-listings" }, gn = /* @__PURE__ */ M({
411
+ }, gn = { class: "konnectio-event-grouped-listings" }, fn = /* @__PURE__ */ M({
418
412
  __name: "NextEvent",
419
413
  props: {
420
414
  name: {},
@@ -423,48 +417,48 @@ const Kt = {
423
417
  callback: { type: Function }
424
418
  },
425
419
  setup(t) {
426
- return (i, a) => t.events && t.events.length > 1 ? (l(), s("div", vn, [
420
+ return (i, a) => t.events && t.events.length > 1 ? (l(), s("div", bn, [
427
421
  r("", !0),
428
- n("ul", bn, [
422
+ n("ul", gn, [
429
423
  (l(!0), s(N, null, R(t.events, ({
430
- id: k,
431
- days: b,
424
+ id: E,
425
+ days: m,
432
426
  name: f,
433
427
  timeFrom: g,
434
- timeTo: y,
428
+ timeTo: k,
435
429
  fromDate: p,
436
- toDate: P,
430
+ toDate: D,
437
431
  tableGroupId: $,
438
- description: E,
432
+ description: P,
439
433
  soldOut: T,
440
434
  length: w,
441
- images: O,
435
+ images: x,
442
436
  maxOnlineReservationLimit: u,
443
- maxPaxPerReservation: D,
444
- useNumberOfProductsForPersons: Y,
437
+ maxPaxPerReservation: y,
438
+ useNumberOfProductsForPersons: j,
445
439
  maxTicketsLimit: B
446
- }) => (l(), m(Ce, {
447
- key: k,
440
+ }) => (l(), v(Be, {
441
+ key: E,
448
442
  type: "event",
449
- "listing-id": k,
443
+ "listing-id": E,
450
444
  "table-group-id": $,
451
- description: E,
445
+ description: P,
452
446
  name: f,
453
447
  length: w,
454
- gallery: O,
455
- days: b,
448
+ gallery: x,
449
+ days: m,
456
450
  "from-date": p,
457
- "to-date": P,
458
- "max-online-reservation-limit": D || u || B || void 0,
451
+ "to-date": D,
452
+ "max-online-reservation-limit": y || u || B || void 0,
459
453
  "time-from": g,
460
- "time-to": y,
454
+ "time-to": k,
461
455
  "sold-out": T,
462
- "use-number-of-products-for-persons": Y,
456
+ "use-number-of-products-for-persons": j,
463
457
  "tracking-enabled": t.trackingEnabled,
464
458
  callback: t.callback
465
459
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "tracking-enabled", "callback"]))), 128))
466
460
  ])
467
- ])) : t.events ? (l(), m(Ce, {
461
+ ])) : t.events ? (l(), v(Be, {
468
462
  key: t.events[0].id,
469
463
  type: "event",
470
464
  "listing-id": t.events[0].id,
@@ -485,7 +479,7 @@ const Kt = {
485
479
  callback: t.callback
486
480
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "tracking-enabled", "callback"])) : r("", !0);
487
481
  }
488
- }), kn = /* @__PURE__ */ G(gn, [["__scopeId", "data-v-dc867986"]]), fn = ["innerHTML"], yn = /* @__PURE__ */ M({
482
+ }), kn = /* @__PURE__ */ G(fn, [["__scopeId", "data-v-39263761"]]), yn = ["innerHTML"], hn = /* @__PURE__ */ M({
489
483
  __name: "FallbackEvent",
490
484
  props: {
491
485
  name: {},
@@ -499,7 +493,7 @@ const Kt = {
499
493
  },
500
494
  setup(t) {
501
495
  const { t: i } = _();
502
- return (a, k) => (l(), m(be, {
496
+ return (a, E) => (l(), v(be, {
503
497
  name: t.name,
504
498
  description: t.description,
505
499
  "from-date": t.fromDate,
@@ -510,16 +504,16 @@ const Kt = {
510
504
  callback: t.callback,
511
505
  "disable-deep-link": !0
512
506
  }, {
513
- action: v(() => [
507
+ action: b(() => [
514
508
  n("div", {
515
509
  class: "konnectio-filter-notice konnectio-top-message",
516
510
  innerHTML: e(i)("event.notAvailable", { name: `<b>${t.name}</b>` })
517
- }, null, 8, fn)
511
+ }, null, 8, yn)
518
512
  ]),
519
513
  _: 1
520
514
  }, 8, ["name", "description", "from-date", "gallery", "days", "listing-id", "tracking-enabled", "callback"]));
521
515
  }
522
- }), hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-af0f6d2a"]]), pn = /* @__PURE__ */ M({
516
+ }), pn = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-0167deff"]]), Dn = /* @__PURE__ */ M({
523
517
  __name: "Template",
524
518
  props: {
525
519
  name: {},
@@ -536,7 +530,7 @@ const Kt = {
536
530
  callback: {}
537
531
  },
538
532
  setup(t) {
539
- return (i, a) => (l(), m(Re, {
533
+ return (i, a) => (l(), v(Me, {
540
534
  "listing-id": t.listingId,
541
535
  gallery: t.images,
542
536
  name: t.name,
@@ -548,13 +542,13 @@ const Kt = {
548
542
  callback: t.callback
549
543
  }, null, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "tracking-enabled", "callback"]));
550
544
  }
551
- }), Dn = {
545
+ }), Pn = {
552
546
  key: 0,
553
547
  class: "konnectio-panel konnectio-reservation-notice-mobile"
554
- }, Pn = ["innerHTML"], En = { key: 0 }, $n = { key: 1 }, wn = { key: 2 }, xn = { key: 0 }, On = { key: 4 }, Tn = { key: 5 }, Vn = { key: 6 }, Fn = { key: 0 }, Nn = { key: 0 }, Ln = { key: 1 }, Cn = {
548
+ }, En = ["innerHTML"], $n = { key: 0 }, wn = { key: 1 }, On = { key: 2 }, xn = { key: 0 }, Tn = { key: 4 }, Vn = { key: 5 }, Fn = { key: 6 }, Nn = { key: 0 }, Ln = { key: 0 }, Cn = { key: 1 }, Bn = {
555
549
  key: 0,
556
550
  class: "konnectio-capitalize"
557
- }, Bn = /* @__PURE__ */ M({
551
+ }, In = /* @__PURE__ */ M({
558
552
  __name: "EventReservationForm",
559
553
  props: {
560
554
  showGiftCard: { type: Boolean, default: !1 },
@@ -562,156 +556,156 @@ const Kt = {
562
556
  prevCallback: {}
563
557
  },
564
558
  setup(t) {
565
- const { t: i } = _(), a = st(), {
566
- areListingsAvailable: k,
567
- arrivalTime: b,
559
+ const { t: i } = _(), a = rt(), {
560
+ areListingsAvailable: E,
561
+ arrivalTime: m,
568
562
  numberOfPeople: f,
569
563
  numberOfRooms: g,
570
- numberOfTotalDays: y,
564
+ numberOfTotalDays: k,
571
565
  isTemplateEvent: p,
572
- currentEventDate: P,
566
+ currentEventDate: D,
573
567
  length: $,
574
- fromDate: E,
568
+ fromDate: P,
575
569
  tableBasePrice: T,
576
570
  getTemplateData: w,
577
- basePrice: O,
571
+ basePrice: x,
578
572
  totalPrice: u,
579
- weekendFee: D,
580
- roomUpgrade: Y,
573
+ weekendFee: y,
574
+ roomUpgrade: j,
581
575
  discountCode: B,
582
576
  totalSelectedProducts: C,
583
577
  discountValue: U,
584
578
  appliedDiscountCode: Q
585
- } = q(X()), { totalAddonPrice: ie, validateDiscountCode: ge } = X(), { currency: se, hideEventLength: ke } = q(oe()), ee = i("event.reservationNotice");
586
- return (te, re) => (l(), m(Ft, {
579
+ } = q(X()), { totalAddonPrice: ie, validateDiscountCode: ge } = X(), { currency: se, hideEventLength: fe } = q(oe()), ee = i("event.reservationNotice");
580
+ return (te, re) => (l(), v(Nt, {
587
581
  "discount-code": e(B),
588
- "onUpdate:discountCode": re[0] || (re[0] = (j) => S(B) ? B.value = j : null),
582
+ "onUpdate:discountCode": re[0] || (re[0] = (W) => S(B) ? B.value = W : null),
589
583
  "validate-discount-code": e(ge),
590
584
  "show-gift-card": t.showGiftCard,
591
585
  "show-terms-notice": t.showTermsNotice,
592
- "is-sidebar-loading": !e(k),
593
- "base-price": e(O),
586
+ "is-sidebar-loading": !e(E),
587
+ "base-price": e(x),
594
588
  "total-price": e(u),
595
- "weekend-fee": e(D),
596
- "room-upgrade": e(Y),
589
+ "weekend-fee": e(y),
590
+ "room-upgrade": e(j),
597
591
  notice: e(ee),
598
592
  "prev-callback": t.prevCallback
599
- }, rt({
600
- form: v(() => [
593
+ }, dt({
594
+ form: b(() => [
601
595
  K(te.$slots, "form", {}, void 0, !0),
602
- e(ee) ? (l(), s("div", Dn, [
596
+ e(ee) ? (l(), s("div", Pn, [
603
597
  n("p", {
604
598
  innerHTML: e(ee),
605
599
  class: "konnectio-wysiwyg"
606
- }, null, 8, Pn)
600
+ }, null, 8, En)
607
601
  ])) : r("", !0)
608
602
  ]),
609
- "reservation-summary": v(() => [
610
- e(p) ? r("", !0) : (l(), s("li", En, [
603
+ "reservation-summary": b(() => [
604
+ e(p) ? r("", !0) : (l(), s("li", $n, [
611
605
  n("span", null, o(e(i)("general.date")), 1),
612
- n("b", null, o(e(z)(e(P))), 1)
606
+ n("b", null, o(e(z)(e(D))), 1)
613
607
  ])),
614
- e(f) > 0 ? (l(), s("li", $n, [
608
+ e(f) > 0 ? (l(), s("li", wn, [
615
609
  n("span", null, o(e(i)("event.numberOfGuests")), 1),
616
610
  n("b", null, o(e(f)), 1)
617
611
  ])) : r("", !0),
618
- !e(p) && e(C) > 0 ? (l(), s("li", wn, [
612
+ !e(p) && e(C) > 0 ? (l(), s("li", On, [
619
613
  n("span", null, o(e(i)("event.numberOfProducts")), 1),
620
614
  n("b", null, o(e(C)), 1)
621
615
  ])) : r("", !0),
622
616
  e(p) ? (l(), s(N, { key: 3 }, [
623
617
  n("li", null, [
624
618
  n("span", null, o(e(i)("booking.reservation.arrival")), 1),
625
- n("b", null, o(e(z)(e(E))), 1)
619
+ n("b", null, o(e(z)(e(P))), 1)
626
620
  ]),
627
621
  n("li", null, [
628
622
  n("span", null, o(e(i)("booking.reservation.departure")), 1),
629
- n("b", null, o(e(z)(e(E), e(y))), 1)
623
+ n("b", null, o(e(z)(e(P), e(k))), 1)
630
624
  ]),
631
625
  n("li", null, [
632
626
  n("span", null, o(e(i)("event.numberOfRooms")), 1),
633
627
  n("b", null, o(e(g)), 1)
634
628
  ]),
635
- e(y) > 0 ? (l(), s("li", xn, [
629
+ e(k) > 0 ? (l(), s("li", xn, [
636
630
  n("span", null, o(e(i)("event.numberOfDays")), 1),
637
- n("b", null, o(e(y)), 1)
631
+ n("b", null, o(e(k)), 1)
638
632
  ])) : r("", !0)
639
633
  ], 64)) : r("", !0),
640
- !e(p) && e(b) ? (l(), s("li", On, [
634
+ !e(p) && e(m) ? (l(), s("li", Tn, [
641
635
  n("span", null, o(e(i)("event.startOfEvent")), 1),
642
- n("b", null, o(e(ve)(e(b))), 1)
636
+ n("b", null, o(e(ve)(e(m))), 1)
643
637
  ])) : r("", !0),
644
- !e(p) && e($) && !e(ke) ? (l(), s("li", Tn, [
638
+ !e(p) && e($) && !e(fe) ? (l(), s("li", Vn, [
645
639
  n("span", null, o(e(i)("event.lengthOfEvent")), 1),
646
640
  n("b", null, o(e(ve)(e($))), 1)
647
641
  ])) : r("", !0),
648
- e(U) ? (l(), s("li", Vn, [
642
+ e(U) ? (l(), s("li", Fn, [
649
643
  n("span", null, o(e(i)("general.discountCode")), 1),
650
644
  n("b", null, o(e(Q)), 1)
651
645
  ])) : r("", !0)
652
646
  ]),
653
- "price-summary": v(() => [
654
- !e(p) && e(T) > 0 ? (l(), s("li", Fn, [
647
+ "price-summary": b(() => [
648
+ !e(p) && e(T) > 0 ? (l(), s("li", Nn, [
655
649
  n("span", null, o(e(i)("booking.availability.basePrice")), 1),
656
650
  n("b", null, o(e(J)(e(T), e(se))), 1)
657
651
  ])) : r("", !0),
658
- e(w) ? (l(!0), s(N, { key: 1 }, R(e(w), ({ roomGroupId: j }, W) => (l(), s(N, null, [
659
- e(ie)(j, W) > 0 ? (l(), s("li", { key: j }, [
660
- n("span", null, o(e(i)("booking.reservation.addons")) + " - " + o(e(i)("booking.reservation.room")) + " #" + o(W + 1), 1),
661
- n("b", null, o(e(J)(e(ie)(j, W), e(se))), 1)
652
+ e(w) ? (l(!0), s(N, { key: 1 }, R(e(w), ({ roomGroupId: W }, Z) => (l(), s(N, null, [
653
+ e(ie)(W, Z) > 0 ? (l(), s("li", { key: W }, [
654
+ n("span", null, o(e(i)("booking.reservation.addons")) + " - " + o(e(i)("booking.reservation.room")) + " #" + o(Z + 1), 1),
655
+ n("b", null, o(e(J)(e(ie)(W, Z), e(se))), 1)
662
656
  ])) : r("", !0)
663
657
  ], 64))), 256)) : r("", !0)
664
658
  ]),
665
- navigation: v(() => [
659
+ navigation: b(() => [
666
660
  K(te.$slots, "navigation", {}, void 0, !0)
667
661
  ]),
668
- "mobile-under-price": v(() => [
669
- e(p) && e(y) > 0 ? (l(), s("div", Nn, [
670
- n("span", null, o(e(z)(e(E))) + " - " + o(e(z)(e(E), e(y))), 1)
671
- ])) : (l(), s("div", Ln, [
672
- n("span", null, o(e(z)(e(P))), 1)
662
+ "mobile-under-price": b(() => [
663
+ e(p) && e(k) > 0 ? (l(), s("div", Ln, [
664
+ n("span", null, o(e(z)(e(P))) + " - " + o(e(z)(e(P), e(k))), 1)
665
+ ])) : (l(), s("div", Cn, [
666
+ n("span", null, o(e(z)(e(D))), 1)
673
667
  ]))
674
668
  ]),
675
- "mobile-summary": v(() => [
676
- !e(p) && e(C) > 0 ? (l(), s("span", Cn, o(e(i)("event.numberOfProducts")) + ": " + o(e(C)), 1)) : r("", !0)
669
+ "mobile-summary": b(() => [
670
+ !e(p) && e(C) > 0 ? (l(), s("span", Bn, o(e(i)("event.numberOfProducts")) + ": " + o(e(C)), 1)) : r("", !0)
677
671
  ]),
678
672
  _: 2
679
673
  }, [
680
674
  e(a).sidebar ? {
681
675
  name: "sidebar",
682
- fn: v(() => [
676
+ fn: b(() => [
683
677
  K(te.$slots, "sidebar", {}, void 0, !0)
684
678
  ]),
685
679
  key: "0"
686
680
  } : void 0
687
681
  ]), 1032, ["discount-code", "validate-discount-code", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "notice", "prev-callback"]));
688
682
  }
689
- }), De = /* @__PURE__ */ G(Bn, [["__scopeId", "data-v-c1e1c642"]]), In = { class: "event-skeleton" }, An = { class: "event-skeleton-content" }, Sn = { class: "event-skeleton-sidebar" }, Rn = /* @__PURE__ */ M({
683
+ }), De = /* @__PURE__ */ G(In, [["__scopeId", "data-v-d2ff3f68"]]), An = { class: "event-skeleton" }, Sn = { class: "event-skeleton-content" }, Rn = { class: "event-skeleton-sidebar" }, Mn = /* @__PURE__ */ M({
690
684
  __name: "EventSkeleton",
691
685
  setup(t) {
692
- return (i, a) => (l(), s("div", In, [
693
- n("div", An, [
694
- h(Se)
695
- ]),
686
+ return (i, a) => (l(), s("div", An, [
696
687
  n("div", Sn, [
688
+ h(Re)
689
+ ]),
690
+ n("div", Rn, [
697
691
  r("", !0),
698
- h(Nt)
692
+ h(Lt)
699
693
  ])
700
694
  ]));
701
695
  }
702
- }), Mn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-af0e7efb"]]), Un = {
696
+ }), Un = /* @__PURE__ */ G(Mn, [["__scopeId", "data-v-3e15c4e3"]]), Hn = {
703
697
  key: 0,
704
698
  id: "konnectio-event-listings-wrapper"
705
- }, Hn = {
699
+ }, Gn = {
706
700
  key: 1,
707
701
  class: "konnectio-hotel-availability-title"
708
- }, Gn = { class: "konnectio-event-listings" }, zn = { class: "konnectio-hotel-availability-title" }, qn = { class: "konnectio-event-listings" }, Yn = ["innerHTML"], jn = { class: "konnectio-panel" }, Wn = {
702
+ }, zn = { class: "konnectio-event-listings" }, qn = { class: "konnectio-hotel-availability-title" }, Yn = { class: "konnectio-event-listings" }, jn = ["innerHTML"], Wn = { class: "konnectio-panel" }, Zn = {
709
703
  key: 0,
710
704
  id: "konnectio-event-addons"
711
- }, Zn = { class: "konnectio-table with-lines" }, Qn = { class: "konnectio-event-addons-price" }, Jn = { class: "konnectio-event-addons-input" }, Kn = { class: "konnectio-event-addons-price" }, Xn = { class: "konnectio-event-addons-price" }, _n = {
705
+ }, Qn = { class: "konnectio-table with-lines" }, Jn = { class: "konnectio-event-addons-price" }, Kn = { class: "konnectio-event-addons-input" }, Xn = { class: "konnectio-event-addons-price" }, _n = { class: "konnectio-event-addons-price" }, ea = {
712
706
  key: 1,
713
707
  class: "konnectio-table with-lines without-header"
714
- }, ea = { class: "konnectio-table-addons-information" }, ta = { key: 0 }, na = { class: "konnectio-table-addons-option" }, aa = { class: "konnectio-panel" }, la = /* @__PURE__ */ M({
708
+ }, ta = { class: "konnectio-table-addons-information" }, na = { key: 0 }, aa = { class: "konnectio-table-addons-option" }, la = { class: "konnectio-panel" }, oa = /* @__PURE__ */ M({
715
709
  name: "EventLayout",
716
710
  __name: "Event",
717
711
  props: {
@@ -724,25 +718,25 @@ const Kt = {
724
718
  hideAllergies: { default: "no" },
725
719
  showFlagOnTable: { default: "no" },
726
720
  showHighChairs: {},
721
+ sortOrder: { default: "asc" },
727
722
  styling: {}
728
723
  },
729
724
  setup(t) {
730
- const i = t, { t: a } = _(), {
731
- addons: k,
732
- products: b,
733
- numberOfDays: f,
734
- flagOnTable: g,
735
- numberOfHighChairs: y,
736
- name: p,
737
- phone: P,
738
- email: $,
739
- remark: E,
740
- allergies: T,
741
- arrivalTime: w,
742
- hasEvents: O,
743
- hasTemplates: u,
744
- getEvents: D,
745
- getTemplates: Y,
725
+ const i = t, { t: a } = _(), E = X(), {
726
+ addons: m,
727
+ products: f,
728
+ numberOfDays: g,
729
+ flagOnTable: k,
730
+ numberOfHighChairs: p,
731
+ name: D,
732
+ phone: $,
733
+ email: P,
734
+ remark: T,
735
+ allergies: w,
736
+ arrivalTime: x,
737
+ hasEvents: u,
738
+ hasTemplates: y,
739
+ getTemplates: j,
746
740
  getEventData: B,
747
741
  getTemplateData: C,
748
742
  getEventTableData: U,
@@ -750,23 +744,23 @@ const Kt = {
750
744
  eventRateType: ie,
751
745
  areListingsAvailable: ge,
752
746
  isAvailabilityDataAvailable: se,
753
- hasListingData: ke,
747
+ hasListingData: fe,
754
748
  isPaymentLoading: ee,
755
749
  isReservationFormFilled: te,
756
750
  requiresArrivalTime: re,
757
- hasSelectedRequiredProducts: j,
758
- getUnavailableEvents: W,
751
+ hasSelectedRequiredProducts: W,
752
+ getUnavailableEvents: Z,
759
753
  hasFallbackEvents: $e,
760
- getFallbackEvents: Me
761
- } = q(X()), { currency: ce, enableTracking: ne } = q(oe()), { setActiveIdFilter: Ue } = oe(), { eventDate: He, eventLocation: Ge } = q(Pe()), { isValidRestaurantId: ze } = Pe(), {
762
- initialize: qe,
763
- fetchListings: Ye,
764
- createBooking: je,
765
- localAddonPrice: We,
766
- totalAddonPrice: Ze,
767
- reset: Qe,
768
- goBack: we
769
- } = X(), { beginEventCheckout: Je } = Ae(), { display: fe } = Ee(), Ke = Z(() => [
754
+ getFallbackEvents: Ue
755
+ } = q(E), we = Y(() => E.getSortedEvents(i.sortOrder)), { currency: de, enableTracking: ne } = q(oe()), { setActiveIdFilter: He } = oe(), { eventDate: Ge, eventLocation: ze } = q(Pe()), { isValidRestaurantId: qe } = Pe(), {
756
+ initialize: Ye,
757
+ fetchListings: je,
758
+ createBooking: We,
759
+ localAddonPrice: Ze,
760
+ totalAddonPrice: Qe,
761
+ reset: Je,
762
+ goBack: Oe
763
+ } = X(), { beginEventCheckout: Ke } = Se(), { display: ke } = Ee(), Xe = Y(() => [
770
764
  {
771
765
  id: "availability",
772
766
  label: a("booking.availability.title"),
@@ -792,83 +786,83 @@ const Kt = {
792
786
  label: a("booking.confirmation.title"),
793
787
  icon: "calendar-check"
794
788
  }
795
- ]), Xe = Z(() => {
789
+ ]), _e = Y(() => {
796
790
  const L = [];
797
- return U.value && U.value.forEach((d) => {
798
- L.find((V) => V.value === d.time) || L.push({
799
- label: ve(d.time),
800
- value: d.time
791
+ return U.value && U.value.forEach((c) => {
792
+ L.find((V) => V.value === c.time) || L.push({
793
+ label: ve(c.time),
794
+ value: c.time
801
795
  });
802
796
  }), L;
803
797
  });
804
- function _e() {
805
- Qe(i.resetDate === "yes");
798
+ function et() {
799
+ Je(i.resetDate === "yes");
806
800
  }
807
- function et(L) {
808
- ne.value && Je(), je(L);
801
+ function tt(L) {
802
+ ne.value && Ke(), We(L);
809
803
  }
810
- function tt() {
811
- const L = wt("history", {
804
+ function nt() {
805
+ const L = Ot("history", {
812
806
  removeNullishValues: !0
813
- }), d = parseInt(L.rid), V = L.d, x = parseInt(L.eid);
807
+ }), c = parseInt(L.rid), V = L.d, O = parseInt(L.eid);
814
808
  if (V)
815
809
  if (xt(V)) {
816
- const c = new Date(V), I = c.setHours(12, 0, 0, 0), H = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
817
- I >= H ? He.value = c : (fe({
810
+ const d = new Date(V), I = d.setHours(12, 0, 0, 0), H = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
811
+ I >= H ? Ge.value = d : (ke({
818
812
  message: a("alert.error.invalidDateRange"),
819
813
  type: "error"
820
814
  }), L.d = void 0);
821
815
  } else
822
- fe({
816
+ ke({
823
817
  message: a("alert.error.wrongDateFormat"),
824
818
  type: "error"
825
819
  });
826
- isNaN(d) || (ze(d) ? Ge.value = d : (L.rid = void 0, fe({
820
+ isNaN(c) || (qe(c) ? ze.value = c : (L.rid = void 0, ke({
827
821
  message: a("alert.error.hotelIdNotFound"),
828
822
  type: "error"
829
- }))), isNaN(x) || Ue(x), Ye();
823
+ }))), isNaN(O) || He(O), je();
830
824
  }
831
- return (L, d) => (l(), m($t, { styling: t.styling }, {
832
- default: v(() => [
833
- (l(), m(ct, { onResolve: tt }, {
834
- default: v(() => [
835
- h(Ot, {
825
+ return (L, c) => (l(), v(wt, { styling: t.styling }, {
826
+ default: b(() => [
827
+ (l(), v(ct, { onResolve: nt }, {
828
+ default: b(() => [
829
+ h(Tt, {
836
830
  id: "konnectio-event-module",
837
831
  "access-token": t.accessToken,
838
- callback: e(qe)
832
+ callback: e(Ye)
839
833
  }, {
840
- default: v(() => [
841
- h(Lt, {
842
- steps: Ke.value,
843
- onReset: _e
834
+ default: b(() => [
835
+ h(Ct, {
836
+ steps: Xe.value,
837
+ onReset: et
844
838
  }, {
845
- availability: v(({ next: V }) => [
839
+ availability: b(({ next: V }) => [
846
840
  h(De, null, {
847
- sidebar: v(() => [
848
- h(qt, {
841
+ sidebar: b(() => [
842
+ h(jt, {
849
843
  redirection: !1,
850
844
  "selected-location": Number(t.selectedLocation),
851
845
  "hide-locations": t.hideLocations === "yes"
852
846
  }, null, 8, ["selected-location", "hide-locations"])
853
847
  ]),
854
- form: v(() => [
855
- e(ke) && e(ge) ? (l(), s("div", Un, [
856
- e($e) ? (l(!0), s(N, { key: 0 }, R(e(Me), ({
857
- id: x,
858
- name: c,
848
+ form: b(() => [
849
+ e(fe) && e(ge) ? (l(), s("div", Hn, [
850
+ e($e) ? (l(!0), s(N, { key: 0 }, R(e(Ue), ({
851
+ id: O,
852
+ name: d,
859
853
  description: I,
860
854
  images: H
861
- }) => (l(), m(hn, {
862
- key: x,
855
+ }) => (l(), v(pn, {
856
+ key: O,
863
857
  type: "event",
864
- "listing-id": x,
858
+ "listing-id": O,
865
859
  description: I,
866
- name: c,
860
+ name: d,
867
861
  gallery: H,
868
862
  "tracking-enabled": e(ne),
869
863
  callback: V
870
864
  }, null, 8, ["listing-id", "description", "name", "gallery", "tracking-enabled", "callback"]))), 128)) : r("", !0),
871
- e(D).length > 0 && e(W).length > 0 ? (l(), s("h2", Hn, [
865
+ we.value.length > 0 && e(Z).length > 0 ? (l(), s("h2", Gn, [
872
866
  h(le, {
873
867
  icon: "calendar-clock",
874
868
  type: "fal",
@@ -876,26 +870,26 @@ const Kt = {
876
870
  }),
877
871
  n("span", null, o(e(a)("event.availableNow")), 1)
878
872
  ])) : r("", !0),
879
- n("ul", Gn, [
880
- e(O) && t.onlyShow !== "templates" ? (l(!0), s(N, { key: 0 }, R(e(D), (x) => (l(), m(on, {
881
- name: x.name,
882
- events: x.events,
873
+ n("ul", zn, [
874
+ e(u) && t.onlyShow !== "templates" ? (l(!0), s(N, { key: 0 }, R(we.value, (O) => (l(), v(sn, {
875
+ name: O.name,
876
+ events: O.events,
883
877
  "tracking-enabled": e(ne),
884
878
  callback: V
885
879
  }, null, 8, ["name", "events", "tracking-enabled", "callback"]))), 256)) : r("", !0),
886
- e(u) && t.onlyShow !== "events" ? (l(!0), s(N, { key: 1 }, R(e(Y), ({
887
- id: x,
888
- name: c,
880
+ e(y) && t.onlyShow !== "events" ? (l(!0), s(N, { key: 1 }, R(e(j), ({
881
+ id: O,
882
+ name: d,
889
883
  fromDate: I,
890
884
  toDate: H,
891
885
  minimumPersonCount: F,
892
886
  fromPrice: A,
893
887
  description: ye,
894
888
  images: he
895
- }) => (l(), m(pn, {
896
- key: x,
897
- "listing-id": x,
898
- name: c,
889
+ }) => (l(), v(Dn, {
890
+ key: O,
891
+ "listing-id": O,
892
+ name: d,
899
893
  images: he,
900
894
  description: ye,
901
895
  "from-date": I,
@@ -906,8 +900,8 @@ const Kt = {
906
900
  callback: V
907
901
  }, null, 8, ["listing-id", "name", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "tracking-enabled", "callback"]))), 128)) : r("", !0)
908
902
  ]),
909
- e(W).length > 0 && t.onlyShow !== "templates" ? (l(), s(N, { key: 2 }, [
910
- n("h2", zn, [
903
+ e(Z).length > 0 && t.onlyShow !== "templates" ? (l(), s(N, { key: 2 }, [
904
+ n("h2", qn, [
911
905
  h(le, {
912
906
  icon: "calendar-circle-exclamation",
913
907
  type: "fal",
@@ -915,44 +909,44 @@ const Kt = {
915
909
  }),
916
910
  n("span", null, o(e(a)("event.availableLater")), 1)
917
911
  ]),
918
- n("ul", qn, [
919
- (l(!0), s(N, null, R(e(W), (x) => (l(), m(kn, {
920
- name: x.name,
921
- events: x.events,
912
+ n("ul", Yn, [
913
+ (l(!0), s(N, null, R(e(Z), (O) => (l(), v(kn, {
914
+ name: O.name,
915
+ events: O.events,
922
916
  "tracking-enabled": e(ne),
923
917
  callback: V
924
918
  }, null, 8, ["name", "events", "tracking-enabled", "callback"]))), 256))
925
919
  ])
926
920
  ], 64)) : r("", !0),
927
- (!e(O) && !e(u) || !e(O) && t.onlyShow === "events" || !e(u) && t.onlyShow === "templates") && !e($e) ? (l(), s("div", {
921
+ (!e(u) && !e(y) || !e(u) && t.onlyShow === "events" || !e(y) && t.onlyShow === "templates") && !e($e) ? (l(), s("div", {
928
922
  key: 3,
929
923
  class: "konnectio-panel",
930
924
  innerHTML: e(a)("event.nothingAvailable")
931
- }, null, 8, Yn)) : r("", !0)
932
- ])) : (l(), m(Se, { key: 1 }))
925
+ }, null, 8, jn)) : r("", !0)
926
+ ])) : (l(), v(Re, { key: 1 }))
933
927
  ]),
934
928
  _: 2
935
929
  }, 1024)
936
930
  ]),
937
- addons: v(({ next: V, prev: x }) => [
938
- e(se) ? (l(), m(De, {
931
+ addons: b(({ next: V, prev: O }) => [
932
+ e(se) ? (l(), v(De, {
939
933
  key: 0,
940
- "prev-callback": () => e(we)(x)
934
+ "prev-callback": () => e(Oe)(O)
941
935
  }, {
942
- form: v(() => [
943
- n("form", jn, [
936
+ form: b(() => [
937
+ n("form", Wn, [
944
938
  n("h2", null, [
945
939
  n("span", null, o(e(a)("event.selectProducts")), 1)
946
940
  ]),
947
- e(C) && e(C).length > 0 ? (l(), s("ul", Wn, [
941
+ e(C) && e(C).length > 0 ? (l(), s("ul", Zn, [
948
942
  (l(!0), s(N, null, R(e(C), ({
949
- roomGroupId: c,
943
+ roomGroupId: d,
950
944
  addons: I,
951
945
  adultPerRoom: H
952
- }, F) => (l(), s("li", { key: c }, [
946
+ }, F) => (l(), s("li", { key: d }, [
953
947
  n("h5", null, [
954
948
  n("span", null, o(e(a)("booking.reservation.room")) + " #" + o(F + 1), 1),
955
- d[9] || (d[9] = ue(" (", -1)),
949
+ c[9] || (c[9] = ue(" (", -1)),
956
950
  h(le, {
957
951
  icon: "male",
958
952
  type: "fas",
@@ -960,14 +954,14 @@ const Kt = {
960
954
  }),
961
955
  ue(" " + o(H) + ") ", 1)
962
956
  ]),
963
- n("table", Zn, [
957
+ n("table", Qn, [
964
958
  n("thead", null, [
965
959
  n("tr", null, [
966
960
  n("th", null, [
967
961
  n("span", null, o(e(a)("booking.reservation.addons")), 1)
968
962
  ]),
969
- d[10] || (d[10] = n("th", { class: "konnectio-event-addons-input" }, null, -1)),
970
- n("th", Qn, [
963
+ c[10] || (c[10] = n("th", { class: "konnectio-event-addons-input" }, null, -1)),
964
+ n("th", Jn, [
971
965
  n("span", null, o(e(a)("booking.availability.price")), 1)
972
966
  ])
973
967
  ])
@@ -977,40 +971,40 @@ const Kt = {
977
971
  id: A,
978
972
  cardinality: ye,
979
973
  name: he,
980
- price: nt,
981
- quantityStrategy: at
974
+ price: at,
975
+ quantityStrategy: lt
982
976
  }) => (l(), s("tr", { key: A }, [
983
977
  n("td", null, [
984
978
  n("b", null, o(he), 1),
985
- d[11] || (d[11] = n("br", null, null, -1)),
986
- n("span", null, o(e(J)(nt, e(ce))) + " " + o(e(Et)(at)), 1)
979
+ c[11] || (c[11] = n("br", null, null, -1)),
980
+ n("span", null, o(e(J)(at, e(de))) + " " + o(e($t)(lt)), 1)
987
981
  ]),
988
- n("td", Jn, [
989
- ye === 3 ? (l(), m(ae, {
982
+ n("td", Kn, [
983
+ ye === 3 ? (l(), v(ae, {
990
984
  key: 0,
991
- modelValue: e(k)[`${c}.${A}.${F}`],
992
- "onUpdate:modelValue": (pe) => e(k)[`${c}.${A}.${F}`] = pe,
985
+ modelValue: e(m)[`${d}.${A}.${F}`],
986
+ "onUpdate:modelValue": (pe) => e(m)[`${d}.${A}.${F}`] = pe,
993
987
  small: !0,
994
988
  "min-value": 0
995
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), m(Le, {
989
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), v(Ce, {
996
990
  key: 1,
997
- modelValue: e(k)[`${c}.${A}.${F}`],
998
- "onUpdate:modelValue": (pe) => e(k)[`${c}.${A}.${F}`] = pe,
991
+ modelValue: e(m)[`${d}.${A}.${F}`],
992
+ "onUpdate:modelValue": (pe) => e(m)[`${d}.${A}.${F}`] = pe,
999
993
  numeric: !0
1000
994
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1001
995
  ]),
1002
- n("td", Kn, [
1003
- n("span", null, o(e(J)(e(We)(A, c, F), e(ce))), 1)
996
+ n("td", Xn, [
997
+ n("span", null, o(e(J)(e(Ze)(A, d, F), e(de))), 1)
1004
998
  ])
1005
999
  ]))), 128))
1006
1000
  ]),
1007
1001
  n("tfoot", null, [
1008
1002
  n("tr", null, [
1009
- d[12] || (d[12] = n("td", null, null, -1)),
1010
- d[13] || (d[13] = n("td", null, null, -1)),
1011
- n("td", Xn, [
1003
+ c[12] || (c[12] = n("td", null, null, -1)),
1004
+ c[13] || (c[13] = n("td", null, null, -1)),
1005
+ n("td", _n, [
1012
1006
  n("u", null, [
1013
- n("span", null, o(e(J)(e(Ze)(c, F), e(ce))), 1)
1007
+ n("span", null, o(e(J)(e(Qe)(d, F), e(de))), 1)
1014
1008
  ])
1015
1009
  ])
1016
1010
  ])
@@ -1018,20 +1012,20 @@ const Kt = {
1018
1012
  ])
1019
1013
  ]))), 128))
1020
1014
  ])) : r("", !0),
1021
- e(Q) ? (l(), s("table", _n, [
1015
+ e(Q) ? (l(), s("table", ea, [
1022
1016
  n("tbody", null, [
1023
- (l(!0), s(N, null, R(e(B).products, ({ id: c, name: I, price: H, description: F }) => (l(), s("tr", { key: c }, [
1024
- n("td", ea, [
1017
+ (l(!0), s(N, null, R(e(B).products, ({ id: d, name: I, price: H, description: F }) => (l(), s("tr", { key: d }, [
1018
+ n("td", ta, [
1025
1019
  n("b", null, [
1026
1020
  n("span", null, o(e(xe)(I)), 1)
1027
1021
  ]),
1028
- F && F !== I ? (l(), s("span", ta, o(e(xe)(F)), 1)) : r("", !0),
1029
- n("u", null, o(e(J)(H, e(ce))), 1)
1022
+ F && F !== I ? (l(), s("span", na, o(e(xe)(F)), 1)) : r("", !0),
1023
+ n("u", null, o(e(J)(H, e(de))), 1)
1030
1024
  ]),
1031
- n("td", na, [
1025
+ n("td", aa, [
1032
1026
  h(ae, {
1033
- modelValue: e(b)[c],
1034
- "onUpdate:modelValue": (A) => e(b)[c] = A,
1027
+ modelValue: e(f)[d],
1028
+ "onUpdate:modelValue": (A) => e(f)[d] = A,
1035
1029
  small: !0,
1036
1030
  "min-value": 0
1037
1031
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -1041,10 +1035,10 @@ const Kt = {
1041
1035
  ])) : r("", !0)
1042
1036
  ])
1043
1037
  ]),
1044
- navigation: v(() => [
1038
+ navigation: b(() => [
1045
1039
  h(me, {
1046
1040
  label: e(a)("event.startReservation"),
1047
- disabled: !e(j),
1041
+ disabled: !e(W),
1048
1042
  "full-width": "",
1049
1043
  onClickEvent: V
1050
1044
  }, null, 8, ["label", "disabled", "onClickEvent"])
@@ -1052,29 +1046,29 @@ const Kt = {
1052
1046
  _: 2
1053
1047
  }, 1032, ["prev-callback"])) : r("", !0)
1054
1048
  ]),
1055
- reservation: v(({ next: V, prev: x }) => [
1049
+ reservation: b(({ next: V, prev: O }) => [
1056
1050
  h(De, {
1057
1051
  "show-terms-notice": !0,
1058
1052
  "show-gift-card": !0,
1059
- "prev-callback": () => e(we)(x)
1053
+ "prev-callback": () => e(Oe)(O)
1060
1054
  }, {
1061
- form: v(() => [
1062
- n("form", aa, [
1055
+ form: b(() => [
1056
+ n("form", la, [
1063
1057
  n("h2", null, [
1064
1058
  n("span", null, o(e(a)("booking.reservation.detailsTitle")), 1)
1065
1059
  ]),
1066
- h(de, {
1067
- modelValue: e(p),
1068
- "onUpdate:modelValue": d[0] || (d[0] = (c) => S(p) ? p.value = c : null),
1060
+ h(ce, {
1061
+ modelValue: e(D),
1062
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => S(D) ? D.value = d : null),
1069
1063
  type: "text",
1070
1064
  label: e(a)("booking.reservation.name"),
1071
1065
  icon: "user-alt",
1072
1066
  placeholder: e(a)("booking.reservation.namePlaceholder"),
1073
1067
  required: ""
1074
1068
  }, null, 8, ["modelValue", "label", "placeholder"]),
1075
- h(de, {
1076
- modelValue: e($),
1077
- "onUpdate:modelValue": d[1] || (d[1] = (c) => S($) ? $.value = c : null),
1069
+ h(ce, {
1070
+ modelValue: e(P),
1071
+ "onUpdate:modelValue": c[1] || (c[1] = (d) => S(P) ? P.value = d : null),
1078
1072
  label: e(a)("booking.reservation.email"),
1079
1073
  type: "email",
1080
1074
  name: "email",
@@ -1083,58 +1077,58 @@ const Kt = {
1083
1077
  placeholder: e(a)("booking.reservation.emailPlaceholder"),
1084
1078
  required: ""
1085
1079
  }, null, 8, ["modelValue", "label", "placeholder"]),
1086
- h(zt, {
1087
- modelValue: e(P),
1088
- "onUpdate:modelValue": d[2] || (d[2] = (c) => S(P) ? P.value = c : null),
1080
+ h(Yt, {
1081
+ modelValue: e($),
1082
+ "onUpdate:modelValue": c[2] || (c[2] = (d) => S($) ? $.value = d : null),
1089
1083
  label: e(a)("booking.reservation.phone"),
1090
1084
  icon: "phone-office",
1091
1085
  placeholder: e(a)("booking.reservation.phonePlaceholder"),
1092
1086
  required: ""
1093
1087
  }, null, 8, ["modelValue", "label", "placeholder"]),
1094
- e(re) ? (l(), m(Bt, {
1088
+ e(re) ? (l(), v(It, {
1095
1089
  key: 0,
1096
- modelValue: e(w),
1097
- "onUpdate:modelValue": d[3] || (d[3] = (c) => S(w) ? w.value = c : null),
1090
+ modelValue: e(x),
1091
+ "onUpdate:modelValue": c[3] || (c[3] = (d) => S(x) ? x.value = d : null),
1098
1092
  label: e(a)("event.selectArrivalTime"),
1099
1093
  name: "eventTimeTable",
1100
- checkboxes: Xe.value,
1094
+ checkboxes: _e.value,
1101
1095
  required: ""
1102
1096
  }, null, 8, ["modelValue", "label", "checkboxes"])) : r("", !0),
1103
- e(ie) === e(Pt).FullDayEvent ? (l(), m(ae, {
1097
+ e(ie) === e(Et).FullDayEvent ? (l(), v(ae, {
1104
1098
  key: 1,
1105
- modelValue: e(f),
1106
- "onUpdate:modelValue": d[4] || (d[4] = (c) => S(f) ? f.value = c : null),
1099
+ modelValue: e(g),
1100
+ "onUpdate:modelValue": c[4] || (c[4] = (d) => S(g) ? g.value = d : null),
1107
1101
  label: e(a)("event.numberOfDays"),
1108
1102
  "min-value": 1,
1109
1103
  required: ""
1110
1104
  }, null, 8, ["modelValue", "label"])) : r("", !0),
1111
- t.showHighChairs === "yes" ? (l(), m(ae, {
1105
+ t.showHighChairs === "yes" ? (l(), v(ae, {
1112
1106
  key: 2,
1113
- modelValue: e(y),
1114
- "onUpdate:modelValue": d[5] || (d[5] = (c) => S(y) ? y.value = c : null),
1107
+ modelValue: e(p),
1108
+ "onUpdate:modelValue": c[5] || (c[5] = (d) => S(p) ? p.value = d : null),
1115
1109
  label: e(a)("event.numberOfHighChairs"),
1116
1110
  icon: "baby",
1117
1111
  "no-optional-label": !1
1118
1112
  }, null, 8, ["modelValue", "label"])) : r("", !0),
1119
- t.showFlagOnTable === "yes" ? (l(), m(Le, {
1113
+ t.showFlagOnTable === "yes" ? (l(), v(Ce, {
1120
1114
  key: 3,
1121
- modelValue: e(g),
1122
- "onUpdate:modelValue": d[6] || (d[6] = (c) => S(g) ? g.value = c : null),
1115
+ modelValue: e(k),
1116
+ "onUpdate:modelValue": c[6] || (c[6] = (d) => S(k) ? k.value = d : null),
1123
1117
  label: e(a)("event.flagOnTable")
1124
1118
  }, null, 8, ["modelValue", "label"])) : r("", !0),
1125
- t.hideRemarks !== "yes" ? (l(), m(de, {
1119
+ t.hideRemarks !== "yes" ? (l(), v(ce, {
1126
1120
  key: 4,
1127
- modelValue: e(E),
1128
- "onUpdate:modelValue": d[7] || (d[7] = (c) => S(E) ? E.value = c : null),
1121
+ modelValue: e(T),
1122
+ "onUpdate:modelValue": c[7] || (c[7] = (d) => S(T) ? T.value = d : null),
1129
1123
  type: "textarea",
1130
1124
  label: e(a)("booking.reservation.remark"),
1131
1125
  icon: "info-circle",
1132
1126
  placeholder: e(a)("booking.reservation.remarkPlaceholder")
1133
1127
  }, null, 8, ["modelValue", "label", "placeholder"])) : r("", !0),
1134
- t.hideAllergies !== "yes" && e(B)?.showAllergyFoodFieldOnline ? (l(), m(de, {
1128
+ t.hideAllergies !== "yes" && e(B)?.showAllergyFoodFieldOnline ? (l(), v(ce, {
1135
1129
  key: 5,
1136
- modelValue: e(T),
1137
- "onUpdate:modelValue": d[8] || (d[8] = (c) => S(T) ? T.value = c : null),
1130
+ modelValue: e(w),
1131
+ "onUpdate:modelValue": c[8] || (c[8] = (d) => S(w) ? w.value = d : null),
1138
1132
  type: "textarea",
1139
1133
  label: e(a)("booking.reservation.allergies"),
1140
1134
  icon: "allergies",
@@ -1142,23 +1136,23 @@ const Kt = {
1142
1136
  }, null, 8, ["modelValue", "label", "placeholder"])) : r("", !0)
1143
1137
  ])
1144
1138
  ]),
1145
- navigation: v(() => [
1139
+ navigation: b(() => [
1146
1140
  h(me, {
1147
1141
  label: e(a)("general.confirmReservation"),
1148
1142
  "is-loading": e(ee),
1149
1143
  disabled: !e(te),
1150
1144
  "full-width": "",
1151
- onClickEvent: (c) => et(V)
1145
+ onClickEvent: (d) => tt(V)
1152
1146
  }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"])
1153
1147
  ]),
1154
1148
  _: 2
1155
1149
  }, 1032, ["prev-callback"])
1156
1150
  ]),
1157
- payment: v(() => [
1158
- h(Gt)
1151
+ payment: b(() => [
1152
+ h(qt)
1159
1153
  ]),
1160
- confirmation: v(() => [
1161
- h(Ct, {
1154
+ confirmation: b(() => [
1155
+ h(Bt, {
1162
1156
  message: e(a)("event.confirmationMessage")
1163
1157
  }, null, 8, ["message"])
1164
1158
  ]),
@@ -1168,8 +1162,8 @@ const Kt = {
1168
1162
  _: 1
1169
1163
  }, 8, ["access-token", "callback"])
1170
1164
  ]),
1171
- fallback: v(() => [
1172
- h(Mn)
1165
+ fallback: b(() => [
1166
+ h(Un)
1173
1167
  ]),
1174
1168
  _: 1
1175
1169
  }))
@@ -1177,8 +1171,8 @@ const Kt = {
1177
1171
  _: 1
1178
1172
  }, 8, ["styling"]));
1179
1173
  }
1180
- }), Be = /* @__PURE__ */ G(la, [["__scopeId", "data-v-ca0645a8"]]), oa = dt(), ia = ut, sa = ia();
1181
- class ra extends HTMLElement {
1174
+ }), Ie = /* @__PURE__ */ G(oa, [["__scopeId", "data-v-f58c56d6"]]), ia = ut(), sa = mt, ra = sa();
1175
+ class da extends HTMLElement {
1182
1176
  vueApp;
1183
1177
  constructor() {
1184
1178
  super();
@@ -1187,14 +1181,14 @@ class ra extends HTMLElement {
1187
1181
  this.vueApp.unmount();
1188
1182
  }
1189
1183
  connectedCallback() {
1190
- const i = mt(Be, this.attributes);
1191
- this.vueApp = vt(Be, i), this.vueApp.provide("emitter", sa), this.vueApp.use(Yt), this.vueApp.use(bt), this.vueApp.use(oa), this.vueApp.use(It), this.vueApp.use(gt), this.vueApp.use(At);
1184
+ const i = vt(Ie, this.attributes);
1185
+ this.vueApp = bt(Ie, i), this.vueApp.provide("emitter", ra), this.vueApp.use(Wt), this.vueApp.use(gt), this.vueApp.use(ia), this.vueApp.use(At), this.vueApp.use(ft), this.vueApp.use(St);
1192
1186
  const a = document.createElement("div");
1193
1187
  this.vueApp.mount(a), this.appendChild(a.children[0]);
1194
1188
  }
1195
1189
  }
1196
- window.customElements.define("konnectio-event", ra);
1190
+ window.customElements.define("konnectio-event", da);
1197
1191
  export {
1198
- ra as default
1192
+ da as default
1199
1193
  };
1200
1194
  //# sourceMappingURL=event.js.map