@konnectio/core 4.3.2 → 4.3.3

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