@konnectio/core 4.3.7 → 4.3.8

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