@konnectio/core 4.0.56-rc33 → 4.0.56-rc35

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 (42) hide show
  1. package/dist/{ActionField-tze5AH3K.js → ActionField-Bruv7ZZW.js} +1 -1
  2. package/dist/ActionField-Bruv7ZZW.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-BO4Erg_O.js → AvailabilitySkeleton-DxVPZPw3.js} +3 -3
  4. package/dist/AvailabilitySkeleton-DxVPZPw3.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js} +1 -1
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js.br +0 -0
  7. package/dist/{CheckoutWindow-CIZWV-gI.js → CheckoutWindow-Dn3fiFuv.js} +1 -1
  8. package/dist/{CheckoutWindow-CIZWV-gI.js.br → CheckoutWindow-Dn3fiFuv.js.br} +0 -0
  9. package/dist/{ErrorMessage-BzZDhDkX.js → ErrorMessage-VK8egk99.js} +1 -1
  10. package/dist/ErrorMessage-VK8egk99.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-D73TXrag.js → EventAvailabilityForm-DbkL5luy.js} +141 -141
  12. package/dist/EventAvailabilityForm-DbkL5luy.js.br +0 -0
  13. package/dist/{Field-oZiblvji.js → Field-fZ3Q2e9-.js} +1 -1
  14. package/dist/Field-fZ3Q2e9-.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js} +8 -8
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js.br +0 -0
  17. package/dist/{TermsOfService-yJlRLBDk.js → TermsOfService-2g29W45E.js} +2 -2
  18. package/dist/availability.js +4 -4
  19. package/dist/availability.js.br +0 -0
  20. package/dist/event.js +223 -222
  21. package/dist/event.js.br +0 -0
  22. package/dist/gift-card-validation.js +4 -4
  23. package/dist/gift-card-validation.js.br +0 -0
  24. package/dist/gift-card.js +59 -58
  25. package/dist/gift-card.js.br +0 -0
  26. package/dist/hotel.js +492 -531
  27. package/dist/hotel.js.br +0 -0
  28. package/dist/{masonry.plugin-B71LqMrD.js → masonry.plugin-WFnnzw7L.js} +642 -602
  29. package/dist/masonry.plugin-WFnnzw7L.js.br +0 -0
  30. package/dist/polyfill.js +1 -1
  31. package/dist/polyfill.js.br +0 -0
  32. package/dist/style.css +1 -1
  33. package/dist/style.css.br +0 -0
  34. package/package.json +5 -5
  35. package/dist/ActionField-tze5AH3K.js.br +0 -0
  36. package/dist/AvailabilitySkeleton-BO4Erg_O.js.br +0 -0
  37. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js.br +0 -0
  38. package/dist/ErrorMessage-BzZDhDkX.js.br +0 -0
  39. package/dist/EventAvailabilityForm-D73TXrag.js.br +0 -0
  40. package/dist/Field-oZiblvji.js.br +0 -0
  41. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js.br +0 -0
  42. package/dist/masonry.plugin-B71LqMrD.js.br +0 -0
@@ -1,11 +1,11 @@
1
- import { H as Ke, J as He, K as ee, L as Qe, M as Je, N as me, l as te, m as s, i as a, O as m, P as W, Q as fe, R as X, U as We, V as R, W as N, X as E, Y as Xe, d as Ye, u as Ze, p as et, o as Y, c as ge, e as Z, w as tt, g as V, a as at, j as nt, b as he, C as ot, Z as lt, n as st, q as it, _ as rt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js";
2
- import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js";
1
+ import { H as Ke, J as He, K as ee, L as Qe, M as Je, N as me, l as te, m as s, i as a, O as p, P as W, Q as fe, R as X, U as We, V as R, W as _, X as N, Y as Xe, d as Ye, u as Ze, p as et, o as Y, c as ge, e as Z, w as tt, g as z, a as at, j as nt, b as he, C as ot, Z as lt, n as st, q as it, _ as rt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
2
+ import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js";
3
3
  const ct = Ke("event", () => {
4
- const U = He(), { voucher: i } = ee(Qe()), { display: b } = Je(), { bearerToken: I, metaData: z } = ee(me()), G = me(), d = te(), f = s({}), x = a(() => Object.keys(f.value).length > 0), t = s(void 0), o = s(!0), r = s(m.InitialState), w = s(NaN), _ = s(1), k = s(NaN), F = s(NaN), D = s(""), P = W("konnectio_name", "", void 0, { serializer: X.string }), $ = W("konnectio_phone", "", void 0, { serializer: X.string }), B = W("konnectio_email", "", void 0, { serializer: X.string }), u = s(""), g = s({}), p = s({}), j = s("");
4
+ const U = He(), { voucher: i } = ee(Qe()), { display: y } = Je(), { bearerToken: I, metaData: V } = ee(me()), j = me(), b = te(), m = s({}), x = a(() => Object.keys(m.value).length > 0), t = s(void 0), o = s(!0), r = s(p.InitialState), A = s(NaN), C = s(1), k = s(NaN), $ = s(NaN), D = s(""), P = W("konnectio_name", "", void 0, { serializer: X.string }), F = W("konnectio_phone", "", void 0, { serializer: X.string }), G = W("konnectio_email", "", void 0, { serializer: X.string }), u = s(""), f = s({}), d = s({}), B = s("");
5
5
  function l(e) {
6
6
  return e ? e.templateId !== void 0 : !1;
7
7
  }
8
- const ye = a(() => G.metaData.hotels.findIndex((e) => e.id === d.eventLocation) || 0), T = a(() => G.metaData.hotels[ye.value]), be = a(() => T.value.maxNumberPerBooking ? T.value.maxNumberPerBooking : 1 / 0), ke = a(() => T.value.name ? T.value.name : ""), De = a(() => T.value.subtitle ? T.value.subtitle : ""), M = a(() => d.searchDate.toISOString()), Ie = a(() => l(t.value)), q = a(() => l(t.value) ? t.value.numberOfDays : _.value), we = a(() => l(t.value) ? t.value.packageCount : 0), Ae = a(() => l(t.value) ? t.value.fromDate : ""), L = a(() => f.value.events !== void 0 ? f.value.events.find((e) => e.id === k.value) : void 0), Se = a(() => L.value ? L.value.length : void 0), ae = a(() => l(t.value) ? t.value.templateID : 0), Pe = a(() => f.value.events), Le = a(() => f.value.templates), Ce = a(() => f.value.events.length > 0), Ee = a(() => f.value.templates.length > 0), ne = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : fe.None), K = a(() => {
8
+ const ye = a(() => j.metaData.hotels.findIndex((e) => e.id === b.eventLocation) || 0), T = a(() => j.metaData.hotels[ye.value]), be = a(() => T.value.maxNumberPerBooking ? T.value.maxNumberPerBooking : 1 / 0), ke = a(() => T.value.name ? T.value.name : ""), De = a(() => T.value.subtitle ? T.value.subtitle : ""), M = a(() => b.searchDate.toISOString()), Ie = a(() => l(t.value)), q = a(() => l(t.value) ? t.value.numberOfDays : C.value), Ae = a(() => l(t.value) ? t.value.packageCount : 0), we = a(() => l(t.value) ? t.value.fromDate : ""), L = a(() => m.value.events !== void 0 ? m.value.events.find((e) => e.id === k.value) : void 0), Se = a(() => L.value ? L.value.length : void 0), ae = a(() => l(t.value) ? t.value.templateId : 0), Pe = a(() => m.value.events), Le = a(() => m.value.templates), Ee = a(() => m.value.events.length > 0), Ne = a(() => m.value.templates.length > 0), ne = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : fe.None), K = a(() => {
9
9
  if (!l(t.value))
10
10
  return t.value;
11
11
  }), oe = a(() => {
@@ -19,43 +19,43 @@ const ct = Ke("event", () => {
19
19
  return 0;
20
20
  }), le = a(() => {
21
21
  if (l(t.value))
22
- return t.value.templateCounts;
22
+ return t.value.rooms;
23
23
  });
24
24
  function H(e, n, c) {
25
- let h = 0;
25
+ let g = 0;
26
26
  if (l(t.value)) {
27
- const v = t.value.templateCounts[c];
27
+ const v = t.value.rooms[c];
28
28
  if (v) {
29
- const C = v.addons, A = g.value[`${n}.${e}.${c}`] || 0;
30
- if (A > 0) {
31
- const S = C?.find((O) => O.addonID === e), y = typeof A == "boolean" ? 1 : A;
32
- h += We(S?.price, S?.quantityStrategy, q.value, v.adultPerRoom) * y;
29
+ const E = v.addons, w = f.value[`${n}.${e}.${c}`] || 0;
30
+ if (w > 0) {
31
+ const S = E?.find((O) => O.id === e), h = typeof w == "boolean" ? 1 : w;
32
+ g += We(S?.price, S?.quantityStrategy, q.value, v.adultPerRoom) * h;
33
33
  }
34
34
  }
35
35
  } else {
36
- const v = p.value[e] || 0;
36
+ const v = d.value[e] || 0;
37
37
  if (v > 0) {
38
- const C = L.value?.products?.find((A) => A.productID === e);
39
- C && (h += C.price * v);
38
+ const E = L.value?.products?.find((w) => w.productID === e);
39
+ E && (g += E.price * v);
40
40
  }
41
41
  }
42
- return h;
42
+ return g;
43
43
  }
44
44
  function Q(e, n) {
45
45
  let c = 0;
46
46
  if (l(t.value))
47
- for (const h in g.value) {
48
- const v = h.split(".");
47
+ for (const g in f.value) {
48
+ const v = g.split(".");
49
49
  parseInt(v[0]) === e && parseInt(v[2]) === n && (c += H(parseInt(v[1]), e, n));
50
50
  }
51
51
  else
52
- for (const h in p.value)
53
- c += H(parseInt(h)) * _.value;
52
+ for (const g in d.value)
53
+ c += H(parseInt(g)) * C.value;
54
54
  return c;
55
55
  }
56
- const se = a(() => l(t.value) && t.value.totalPrice || 0), Ne = a(() => {
56
+ const se = a(() => l(t.value) && t.value.totalPrice || 0), _e = a(() => {
57
57
  if (l(t.value))
58
- return t.value.templateCounts === void 0 ? NaN : t.value.templateCounts.flatMap((e) => e.roomGroupID).reduce(
58
+ return t.value.rooms === void 0 ? NaN : t.value.rooms.flatMap((e) => e.roomGroupId).reduce(
59
59
  (e, n, c) => e + Q(n, c),
60
60
  se.value
61
61
  ) || 0;
@@ -63,43 +63,43 @@ const ct = Ke("event", () => {
63
63
  let e = Q();
64
64
  return e += oe.value, e;
65
65
  }
66
- }), _e = a(() => l(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Te = a(() => l(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Me = a(() => {
67
- const e = p.value;
66
+ }), Ce = a(() => l(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Te = a(() => l(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Me = a(() => {
67
+ const e = d.value;
68
68
  let n = 0;
69
69
  for (const c in e)
70
70
  n += Number.isNaN(e[c]) ? 0 : e[c];
71
71
  return n > 0;
72
- }), ie = a(() => l(t.value) ? !1 : Object.keys(p.value).length > 0), Oe = a(() => !!(P.value !== "" && B.value !== "" && $.value.length >= 5 && (!ie.value || Me.value) && (!(!l(t.value) && ne.value !== fe.FullDayEvent) || D.value !== "")));
72
+ }), ie = a(() => l(t.value) ? !1 : Object.keys(d.value).length > 0), Oe = a(() => !!(P.value !== "" && G.value !== "" && F.value.length >= 5 && (!ie.value || Me.value) && (!(!l(t.value) && ne.value !== fe.FullDayEvent) || D.value !== "")));
73
73
  function Re(e) {
74
- return r.value === m.ReservationState && k.value === e && o.value;
74
+ return r.value === p.ReservationState && k.value === e && o.value;
75
75
  }
76
- const Ve = a(() => !(r.value === m.InitialState && o.value)), ze = a(() => !(r.value === m.AvailabilityState && o.value)), Fe = a(() => t.value !== void 0), $e = a(() => r.value === m.PaymentState && o.value);
76
+ const ze = a(() => !(r.value === p.InitialState && o.value)), Ve = a(() => !(r.value === p.AvailabilityState && o.value)), $e = a(() => t.value !== void 0), Fe = a(() => r.value === p.PaymentState && o.value);
77
77
  async function re() {
78
78
  try {
79
79
  const e = (await R.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
80
80
  params: {
81
- language: N()
81
+ language: _()
82
82
  },
83
83
  headers: {
84
84
  Authorization: I.value,
85
85
  Accept: "application/json"
86
86
  }
87
87
  })).data;
88
- z.value = e, e.restaurantId && isNaN(d.eventLocation) && e.restaurantId && (d.eventLocation = e.restaurantId), ue();
88
+ V.value = e, ue();
89
89
  } catch {
90
- b({
91
- message: E.t("alert.error.couldntFetchMetadata"),
90
+ y({
91
+ message: N.t("alert.error.couldntFetchMetadata"),
92
92
  type: "warning"
93
93
  });
94
94
  }
95
95
  }
96
96
  async function ue() {
97
- r.value = m.AvailabilityState, o.value = !0;
97
+ r.value = p.AvailabilityState, o.value = !0;
98
98
  try {
99
99
  const e = (await R.get("https://production.hotel-service.konnectio.dk/api/event/get", {
100
100
  params: {
101
- language: N(),
102
- restaurantId: d.eventLocation,
101
+ language: _(),
102
+ restaurantId: b.eventLocation,
103
103
  date: M.value
104
104
  },
105
105
  headers: {
@@ -107,62 +107,62 @@ const ct = Ke("event", () => {
107
107
  Accept: "application/json"
108
108
  }
109
109
  })).data;
110
- f.value = e, o.value = !1;
110
+ m.value = e, o.value = !1;
111
111
  } catch {
112
- b({
113
- message: E.t("alert.error.couldntFetchListings"),
112
+ y({
113
+ message: N.t("alert.error.couldntFetchListings"),
114
114
  type: "warning"
115
115
  });
116
116
  }
117
117
  }
118
- async function Be(e) {
119
- r.value = m.ReservationState, o.value = !0;
118
+ async function Ge(e) {
119
+ r.value = p.ReservationState, o.value = !0;
120
120
  try {
121
121
  const n = (await R.get("https://production.hotel-service.konnectio.dk/api/event/get-template", {
122
122
  params: {
123
- language: N(),
123
+ language: _(),
124
124
  date: M.value,
125
125
  templateId: k.value,
126
- restaurantId: d.eventLocation,
127
- numberOfPeople: w.value
126
+ restaurantId: b.eventLocation,
127
+ numberOfPeople: A.value
128
128
  },
129
129
  headers: {
130
130
  Authorization: I.value,
131
131
  Accept: "application/json"
132
132
  }
133
133
  })).data;
134
- n.templateCounts.length === 0 ? b({
135
- message: E.t("alert.error.eventNotAvailable"),
134
+ n.rooms.length === 0 ? y({
135
+ message: N.t("alert.error.eventNotAvailable"),
136
136
  type: "warning"
137
137
  }) : (t.value = n, e()), o.value = !1;
138
138
  } catch {
139
- o.value = !1, r.value = m.AvailabilityState, b({
140
- message: E.t("alert.error.couldntFetchEvent"),
139
+ o.value = !1, r.value = p.AvailabilityState, y({
140
+ message: N.t("alert.error.couldntFetchEvent"),
141
141
  type: "warning"
142
142
  });
143
143
  }
144
144
  }
145
- async function Ge(e) {
146
- r.value = m.ReservationState, o.value = !0;
145
+ async function je(e) {
146
+ r.value = p.ReservationState, o.value = !0;
147
147
  try {
148
148
  const n = (await R.get("https://production.hotel-service.konnectio.dk/api/event/vacant-times", {
149
149
  params: {
150
- language: N(),
150
+ language: _(),
151
151
  date: M.value,
152
- numberOfPeople: w.value,
152
+ numberOfPeople: A.value,
153
153
  eventId: k.value,
154
- tableGroupId: F.value,
155
- restaurantId: d.eventLocation
154
+ tableGroupId: $.value,
155
+ restaurantId: b.eventLocation
156
156
  },
157
157
  headers: {
158
158
  Authorization: I.value,
159
- "Fresh-Booking-Ver": "4.0.56-rc33"
159
+ Accept: "application/json"
160
160
  }
161
161
  })).data;
162
162
  t.value = n, o.value = !1, e();
163
163
  } catch {
164
- o.value = !1, r.value = m.AvailabilityState, b({
165
- message: E.t("alert.error.couldntFetchEvent"),
164
+ o.value = !1, r.value = p.AvailabilityState, y({
165
+ message: N.t("alert.error.couldntFetchEvent"),
166
166
  type: "warning"
167
167
  });
168
168
  }
@@ -170,120 +170,120 @@ const ct = Ke("event", () => {
170
170
  async function Ue() {
171
171
  try {
172
172
  const e = (await R.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
173
- language: N(),
173
+ language: _(),
174
174
  date: M.value,
175
- discountCode: j.value,
176
- restaurantId: d.eventLocation
175
+ discountCode: B.value,
176
+ restaurantId: b.eventLocation
177
177
  }, {
178
178
  headers: {
179
179
  Authorization: I.value,
180
- "Konnectio-Ver": "4.0.56-rc33"
180
+ Accept: "application/json"
181
181
  }
182
182
  })).data;
183
183
  console.log(e);
184
184
  } catch (e) {
185
- console.log(e), b({
186
- message: E.t("alert.error.discountCodeValidation"),
185
+ console.log(e), y({
186
+ message: N.t("alert.error.discountCodeValidation"),
187
187
  type: "warning"
188
188
  });
189
189
  }
190
190
  }
191
191
  async function xe(e) {
192
- r.value = m.PaymentState, o.value = !0;
192
+ r.value = p.PaymentState, o.value = !0;
193
193
  const n = () => {
194
- o.value = !1, r.value = m.ReservationState, b({
195
- message: E.t("booking.other.errorMessage"),
194
+ o.value = !1, r.value = p.ReservationState, y({
195
+ message: N.t("booking.other.errorMessage"),
196
196
  type: "warning"
197
197
  });
198
198
  };
199
- let c, h, v;
200
- const C = [];
199
+ let c, g, v;
200
+ const E = [];
201
201
  if (l(t.value))
202
- le.value?.forEach((y, O) => {
202
+ le.value?.forEach((h, O) => {
203
203
  const ce = [];
204
204
  let ve = 0;
205
- for (const de in g.value) {
206
- const J = de.split("."), pe = g.value[de];
207
- parseInt(J[0]) === y.roomGroupID && parseInt(J[2]) === O && pe > 0 && (ce.push({
205
+ for (const de in f.value) {
206
+ const J = de.split("."), pe = f.value[de];
207
+ parseInt(J[0]) === h.roomGroupId && parseInt(J[2]) === O && pe > 0 && (ce.push({
208
208
  id: ve,
209
209
  addonID: parseInt(J[1]),
210
210
  quantity: pe
211
211
  }), ve++);
212
212
  }
213
- C.push({
214
- adultPerRoom: y.adultPerRoom,
215
- count: y.count,
216
- roomGroupID: y.roomGroupID,
213
+ E.push({
214
+ adultPerRoom: h.adultPerRoom,
215
+ count: h.count,
216
+ roomGroupID: h.roomGroupId,
217
217
  addons: ce
218
218
  });
219
219
  }), c = {
220
220
  templateID: ae.value,
221
- numberOfDays: _.value,
222
- templateCounts: C
221
+ numberOfDays: C.value,
222
+ templateCounts: E
223
223
  };
224
224
  else {
225
- h = [], v = D.value;
226
- for (const y in p.value) {
227
- const O = p.value[parseInt(y)];
228
- O > 0 && h.push({
229
- id: parseInt(y),
225
+ g = [], v = D.value;
226
+ for (const h in d.value) {
227
+ const O = d.value[parseInt(h)];
228
+ O > 0 && g.push({
229
+ id: parseInt(h),
230
230
  quantity: O
231
231
  });
232
232
  }
233
233
  }
234
- let A = "https://production.hotel-service.konnectio.dk/api/event/book-template";
234
+ let w = "https://production.hotel-service.konnectio.dk/api/event/book-template";
235
235
  const S = {
236
- language: N(),
237
- restaurantId: d.eventLocation,
236
+ language: _(),
237
+ restaurantId: b.eventLocation,
238
238
  date: Xe(M.value),
239
239
  name: P.value,
240
- email: B.value,
241
- phone: $.value,
240
+ email: G.value,
241
+ phone: F.value,
242
242
  remark: u.value,
243
- numberOfPeople: w.value,
243
+ numberOfPeople: A.value,
244
244
  days: q.value,
245
- discountCode: j.value,
245
+ discountCode: B.value,
246
246
  giftCardCode: i.value,
247
247
  checkoutUrl: window.location.origin,
248
248
  privacyUrl: window.location.origin
249
249
  };
250
- l(t.value) ? S.templateGroup = c : (S.time = v, S.eventId = k.value, S.products = h, A = "https://production.hotel-service.konnectio.dk/api/event/book-event"), await R.post(A, S, {
250
+ l(t.value) ? S.templateGroup = c : (S.time = v, S.eventId = k.value, S.products = g, w = "https://production.hotel-service.konnectio.dk/api/event/book-event"), await R.post(w, S, {
251
251
  headers: {
252
252
  Authorization: I.value,
253
- "Fresh-Booking-Ver": "4.0.56-rc33"
253
+ Accept: "application/json"
254
254
  }
255
- }).then((y) => {
255
+ }).then((h) => {
256
256
  o.value = !1, U.pay({
257
257
  callback: e,
258
- response: y.data
258
+ response: h.data
259
259
  });
260
260
  }).catch(() => n());
261
261
  }
262
- function je(e) {
263
- g.value = {}, p.value = {}, D.value = "", e();
262
+ function Be(e) {
263
+ f.value = {}, d.value = {}, D.value = "", e();
264
264
  }
265
265
  function qe() {
266
266
  re();
267
267
  }
268
268
  return {
269
269
  fetchMetaData: re,
270
- metaData: z,
271
- listingData: f,
270
+ metaData: V,
271
+ listingData: m,
272
272
  tableBasePrice: oe,
273
273
  availabilityData: t,
274
274
  isLoading: o,
275
275
  moduleState: r,
276
- numberOfPeople: w,
277
- numberOfDays: _,
276
+ numberOfPeople: A,
277
+ numberOfDays: C,
278
278
  eventId: k,
279
- tableGroupId: F,
279
+ tableGroupId: $,
280
280
  arrivalTime: D,
281
- addons: g,
282
- products: p,
283
- discountCode: j,
281
+ addons: f,
282
+ products: d,
283
+ discountCode: B,
284
284
  name: P,
285
- phone: $,
286
- email: B,
285
+ phone: F,
286
+ email: G,
287
287
  remark: u,
288
288
  isTemplateEvent: Ie,
289
289
  maxNumberOfPeople: be,
@@ -291,38 +291,38 @@ const ct = Ke("event", () => {
291
291
  subtitle: De,
292
292
  date: M,
293
293
  numberOfTotalDays: q,
294
- numberOfRooms: we,
295
- fromDate: Ae,
294
+ numberOfRooms: Ae,
295
+ fromDate: we,
296
296
  getEventData: L,
297
297
  length: Se,
298
298
  templateId: ae,
299
299
  getEvents: Pe,
300
300
  getTemplates: Le,
301
- hasEvents: Ce,
302
- hasTemplates: Ee,
301
+ hasEvents: Ee,
302
+ hasTemplates: Ne,
303
303
  basePrice: se,
304
- totalPrice: Ne,
304
+ totalPrice: _e,
305
305
  getTemplateData: le,
306
306
  getEventTableData: K,
307
307
  roomUpgrade: Te,
308
- weekendFee: _e,
308
+ weekendFee: Ce,
309
309
  hasProducts: ie,
310
310
  eventRateType: ne,
311
311
  isReservationFormFilled: Oe,
312
- isMetaDataAvailable: Ve,
313
- areListingsAvailable: ze,
314
- isAvailabilityDataAvailable: Fe,
315
- isPaymentLoading: $e,
312
+ isMetaDataAvailable: ze,
313
+ areListingsAvailable: Ve,
314
+ isAvailabilityDataAvailable: $e,
315
+ isPaymentLoading: Fe,
316
316
  isEventListingLoading: Re,
317
317
  // fetchMetaData,
318
318
  fetchListings: ue,
319
- getTemplateAvailability: Be,
320
- getEventAvailability: Ge,
319
+ getTemplateAvailability: Ge,
320
+ getEventAvailability: je,
321
321
  validateDiscountCode: Ue,
322
322
  localAddonPrice: H,
323
323
  totalAddonPrice: Q,
324
324
  createBooking: xe,
325
- reset: je,
325
+ reset: Be,
326
326
  initialize: qe,
327
327
  hasListingData: x
328
328
  };
@@ -337,30 +337,30 @@ const ct = Ke("event", () => {
337
337
  },
338
338
  setup(U) {
339
339
  const i = U, {
340
- eventLocation: b,
340
+ eventLocation: y,
341
341
  eventLocations: I,
342
- hasEventLocations: z,
343
- eventLocationControl: G,
344
- searchDate: d,
345
- isExpired: f
346
- } = ee(te()), { reset: x, fetchMetadata: t, updateEventAvailability: o } = te(), { fetchListings: r } = ct(), { t: w } = Ze(), _ = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), k = s(G.value), F = s(_()), D = a({
347
- get: () => i.redirection ? k.value : b.value,
342
+ hasEventLocations: V,
343
+ eventLocationControl: j,
344
+ searchDate: b,
345
+ isExpired: m
346
+ } = ee(te()), { reset: x, fetchMetadata: t, updateEventAvailability: o } = te(), { fetchListings: r } = ct(), { t: A } = Ze(), C = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), k = s(j.value), $ = s(C()), D = a({
347
+ get: () => i.redirection ? k.value : y.value,
348
348
  set: (u) => {
349
- i.redirection ? k.value = Number(u) : b.value = Number(u);
349
+ i.redirection ? k.value = Number(u) : y.value = Number(u);
350
350
  }
351
351
  }), P = a({
352
- get: () => i.redirection ? F.value : d.value,
352
+ get: () => i.redirection ? $.value : b.value,
353
353
  set: (u) => {
354
- i.redirection ? F.value = u : d.value = u;
354
+ i.redirection ? $.value = u : b.value = u;
355
355
  }
356
- }), $ = a(() => typeof i.link != "string");
357
- function B() {
356
+ }), F = a(() => typeof i.link != "string");
357
+ function G() {
358
358
  if (i.redirection === !0)
359
359
  if (o({
360
360
  date: P.value,
361
361
  location: D.value
362
- }), $.value) {
363
- const u = N();
362
+ }), F.value) {
363
+ const u = _();
364
364
  i.link[u] ? window.location.replace(i.link[u]) : i.link.en && window.location.replace(i.link.en);
365
365
  } else
366
366
  window.location.replace(i.link);
@@ -368,38 +368,38 @@ const ct = Ke("event", () => {
368
368
  r();
369
369
  }
370
370
  return et(() => {
371
- f.value && x(), i.redirection === !1 && t();
372
- }), (u, g) => (Y(), ge("form", {
371
+ m.value && x(), i.redirection === !1 && t();
372
+ }), (u, f) => (Y(), ge("form", {
373
373
  class: st([
374
374
  "konnectio-event-search-form",
375
- { "has-locations": V(z) },
375
+ { "has-locations": z(V) },
376
376
  { "auto-search": !u.redirection }
377
377
  ]),
378
- onSubmit: it(B, ["prevent"])
378
+ onSubmit: it(G, ["prevent"])
379
379
  }, [
380
380
  Z(lt, {
381
381
  class: "konnectio-event-search-form-content",
382
382
  tag: "ul"
383
383
  }, {
384
384
  default: tt(() => [
385
- V(z) ? (Y(), at(nt, {
385
+ z(V) ? (Y(), at(nt, {
386
386
  modelValue: D.value,
387
- "onUpdate:modelValue": g[0] || (g[0] = (p) => D.value = p),
387
+ "onUpdate:modelValue": f[0] || (f[0] = (d) => D.value = d),
388
388
  key: "location",
389
- label: V(w)("general.location"),
389
+ label: z(A)("general.location"),
390
390
  icon: "location-dot",
391
391
  "icon-type": "fas",
392
392
  "icon-placement": "label",
393
393
  "label-key": "name",
394
394
  "value-key": "id",
395
- options: V(I),
395
+ options: z(I),
396
396
  searchable: !1
397
397
  }, null, 8, ["modelValue", "label", "options"])) : he("", !0),
398
398
  Z(ut, {
399
399
  modelValue: P.value,
400
- "onUpdate:modelValue": g[1] || (g[1] = (p) => P.value = p),
400
+ "onUpdate:modelValue": f[1] || (f[1] = (d) => P.value = d),
401
401
  key: "date",
402
- label: V(w)("event.selectDate"),
402
+ label: z(A)("event.selectDate"),
403
403
  "icon-type": "fas",
404
404
  "icon-placement": "label",
405
405
  "min-date": /* @__PURE__ */ new Date()
@@ -407,7 +407,7 @@ const ct = Ke("event", () => {
407
407
  u.redirection ? (Y(), ge("li", vt, [
408
408
  Z(ot, {
409
409
  type: "submit",
410
- label: V(w)("availability.buttonLabel")
410
+ label: z(A)("availability.buttonLabel")
411
411
  }, null, 8, ["label"])
412
412
  ])) : he("", !0)
413
413
  ]),
@@ -1,4 +1,4 @@
1
- import { d as l, o as a, c as t, a as n, b as i, e as s, E as o, n as d, _ as r } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js";
1
+ import { d as l, o as a, c as t, a as n, b as i, e as s, E as o, n as d, _ as r } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
2
2
  const p = {
3
3
  key: 0,
4
4
  class: "skeleton-field-label"
Binary file
@@ -15922,7 +15922,7 @@ const Iy = Sa("tracking", () => {
15922
15922
  headers: {
15923
15923
  Authorization: Z.value,
15924
15924
  Accept: "application/json",
15925
- "Konnectio-Ver": "4.0.56-rc33"
15925
+ "Konnectio-Ver": "4.0.56-rc35"
15926
15926
  }
15927
15927
  })).data;
15928
15928
  i.value = X, X.success !== void 0 ? z.value = !X.success : z.value = !1;
@@ -15939,7 +15939,7 @@ const Iy = Sa("tracking", () => {
15939
15939
  headers: {
15940
15940
  Authorization: Z.value,
15941
15941
  Accept: "application/json",
15942
- "Fresh-Booking-Ver": "4.0.56-rc33"
15942
+ "Fresh-Booking-Ver": "4.0.56-rc35"
15943
15943
  }
15944
15944
  }).then((j) => {
15945
15945
  const { settings: X, translations: te } = j.data;
@@ -16006,7 +16006,7 @@ const Iy = Sa("tracking", () => {
16006
16006
  headers: {
16007
16007
  Authorization: t.value,
16008
16008
  Accept: "application/json",
16009
- "Fresh-Booking-Ver": "4.0.56-rc33"
16009
+ "Fresh-Booking-Ver": "4.0.56-rc35"
16010
16010
  }
16011
16011
  }).then((d) => {
16012
16012
  const {
@@ -16277,7 +16277,7 @@ const Iy = Sa("tracking", () => {
16277
16277
  headers: {
16278
16278
  Authorization: s.value,
16279
16279
  Accept: "application/json",
16280
- "Fresh-Booking-Ver": "4.0.56-rc33"
16280
+ "Fresh-Booking-Ver": "4.0.56-rc35"
16281
16281
  }
16282
16282
  })).data;
16283
16283
  o.value = Ne;
@@ -16305,7 +16305,7 @@ const Iy = Sa("tracking", () => {
16305
16305
  headers: {
16306
16306
  Authorization: s.value,
16307
16307
  Accept: "application/json",
16308
- "Konnectio-Ver": "4.0.56-rc33"
16308
+ "Konnectio-Ver": "4.0.56-rc35"
16309
16309
  }
16310
16310
  });
16311
16311
  Re.status !== 200 ? a({
@@ -16393,7 +16393,7 @@ const Iy = Sa("tracking", () => {
16393
16393
  headers: {
16394
16394
  Authorization: s.value,
16395
16395
  Accept: "application/json",
16396
- "Konnectio-Ver": "4.0.56-rc33"
16396
+ "Konnectio-Ver": "4.0.56-rc35"
16397
16397
  }
16398
16398
  }).then((Ne) => {
16399
16399
  $t.value = !1;
@@ -16428,7 +16428,7 @@ const Iy = Sa("tracking", () => {
16428
16428
  headers: {
16429
16429
  Authorization: s.value,
16430
16430
  Accept: "application/json",
16431
- "Konnectio-Ver": "4.0.56-rc33"
16431
+ "Konnectio-Ver": "4.0.56-rc35"
16432
16432
  }
16433
16433
  }).then((Re) => {
16434
16434
  me.value = !1, T.value = !1, n.pay({
@@ -16558,7 +16558,7 @@ const Iy = Sa("tracking", () => {
16558
16558
  headers: {
16559
16559
  Authorization: n.bearerToken,
16560
16560
  Accept: "application/json",
16561
- "Konnectio-Ver": "4.0.56-rc33"
16561
+ "Konnectio-Ver": "4.0.56-rc35"
16562
16562
  }
16563
16563
  })).data;
16564
16564
  i.value = O, O.defaultHotelId && (isNaN(u.value) ? u.value = O.defaultHotelId : u.value !== O.defaultHotelId && (C(), u.value = O.defaultHotelId), isNaN(c.value) && (c.value = O.defaultHotelId)), O.defaultEventId && (isNaN(p.value) ? p.value = O.defaultEventId : p.value !== O.defaultEventId && (C(), p.value = O.defaultEventId), isNaN(_.value) && (_.value = O.defaultEventId));
@@ -1,5 +1,5 @@
1
- import { d as o, u as a, o as r, a as i, w as c, f as e, g as s, h as p, _ } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js";
2
- import { B as d } from "./CheckoutWindow-CIZWV-gI.js";
1
+ import { d as o, u as a, o as r, a as i, w as c, f as e, g as s, h as p, _ } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
2
+ import { B as d } from "./CheckoutWindow-Dn3fiFuv.js";
3
3
  const l = { class: "konnectio-terms-side-panel" }, f = ["innerHTML"], m = /* @__PURE__ */ o({
4
4
  __name: "TermsOfService",
5
5
  props: {
@@ -1,7 +1,7 @@
1
- import { d as w, u as E, l as S, m as T, i as h, p as B, o as r, a as v, w as d, S as I, f as a, e as b, c as N, n as f, q as A, t as L, g as _, F as z, b as g, s as M, v as F, x as H, y as P, z as V, _ as O, A as $, B as j, D, G as U } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js";
2
- import { H as Z, A as q } from "./AvailabilitySkeleton-BO4Erg_O.js";
3
- import { E as G } from "./EventAvailabilityForm-D73TXrag.js";
4
- import { E as K } from "./ErrorMessage-BzZDhDkX.js";
1
+ import { d as w, u as E, l as S, m as T, i as h, p as B, o as r, a as v, w as d, S as I, f as a, e as b, c as N, n as f, q as A, t as L, g as _, F as z, b as g, s as M, v as F, x as H, y as P, z as V, _ as O, A as $, B as j, D, G as U } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
2
+ import { H as Z, A as q } from "./AvailabilitySkeleton-DxVPZPw3.js";
3
+ import { E as G } from "./EventAvailabilityForm-DbkL5luy.js";
4
+ import { E as K } from "./ErrorMessage-VK8egk99.js";
5
5
  const x = (l) => (P("data-v-5c1e7504"), l = l(), V(), l), J = { class: "konnectio-availability-module" }, Q = { class: "konnectio-availability-navigation" }, R = /* @__PURE__ */ x(() => /* @__PURE__ */ a("div", { class: "konnectio-availability-divider" }, null, -1)), W = { class: "konnectio-availability-search-form" }, X = /* @__PURE__ */ w({
6
6
  name: "AvailabilityLayout",
7
7
  __name: "Availability",
Binary file