@konnectio/core 4.3.8 → 4.3.10

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