@konnectio/core 4.0.56-rc46 → 4.0.56-rc48

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 (53) hide show
  1. package/dist/{ActionField-l77AHDt_.js → ActionField-BmdEaU7R.js} +2 -2
  2. package/dist/ActionField-BmdEaU7R.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-6QuYlrqw.js → AvailabilitySkeleton-D-WEI9Yg.js} +4 -4
  4. package/dist/AvailabilitySkeleton-D-WEI9Yg.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js} +2 -2
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js.br +0 -0
  7. package/dist/{CheckoutWindow-CNF_LAo6.js → CheckoutWindow-DdkwNLy3.js} +2 -2
  8. package/dist/CheckoutWindow-DdkwNLy3.js.br +0 -0
  9. package/dist/{ErrorMessage-B0Hm-dJ0.js → ErrorMessage-Cyrsqt8X.js} +2 -2
  10. package/dist/ErrorMessage-Cyrsqt8X.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-BfhYKChb.js → EventAvailabilityForm-BBVSXf1v.js} +140 -140
  12. package/dist/EventAvailabilityForm-BBVSXf1v.js.br +0 -0
  13. package/dist/{Field-BJ8nOhMT.js → Field-cLYq6dB7.js} +2 -2
  14. package/dist/Field-cLYq6dB7.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js} +10 -10
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js.br +0 -0
  17. package/dist/{TermsOfService-f7DfHbk2.js → TermsOfService-CmEZmmhy.js} +3 -3
  18. package/dist/TermsOfService-CmEZmmhy.js.br +0 -0
  19. package/dist/{_-CaC826yR.js → _-BIlhnQ1K.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-BLztxup-.js → _.vue_vue_type_style_index_0_lang-CYFSipoN.js} +2 -2
  21. package/dist/_.vue_vue_type_style_index_0_lang-CYFSipoN.js.br +0 -0
  22. package/dist/availability.js +5 -5
  23. package/dist/availability.js.br +0 -0
  24. package/dist/event.js +107 -102
  25. package/dist/event.js.br +0 -0
  26. package/dist/gift-card-validation.js +6 -6
  27. package/dist/gift-card-validation.js.br +0 -0
  28. package/dist/gift-card.js +7 -7
  29. package/dist/gift-card.js.br +0 -0
  30. package/dist/{giftCard-DhbT2_l0.js → giftCard-B9vV1-Jc.js} +5 -5
  31. package/dist/giftCard-B9vV1-Jc.js.br +0 -0
  32. package/dist/hotel.js +706 -702
  33. package/dist/hotel.js.br +0 -0
  34. package/dist/{masonry.plugin-CVpZ_aQu.js → masonry.plugin-CpLUlFxC.js} +265 -279
  35. package/dist/masonry.plugin-CpLUlFxC.js.br +0 -0
  36. package/dist/navigation.js +2 -2
  37. package/dist/polyfill.js +193 -193
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/package.json +2 -2
  42. package/dist/ActionField-l77AHDt_.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-6QuYlrqw.js.br +0 -0
  44. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js.br +0 -0
  45. package/dist/CheckoutWindow-CNF_LAo6.js.br +0 -0
  46. package/dist/ErrorMessage-B0Hm-dJ0.js.br +0 -0
  47. package/dist/EventAvailabilityForm-BfhYKChb.js.br +0 -0
  48. package/dist/Field-BJ8nOhMT.js.br +0 -0
  49. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js.br +0 -0
  50. package/dist/TermsOfService-f7DfHbk2.js.br +0 -0
  51. package/dist/_.vue_vue_type_style_index_0_lang-BLztxup-.js.br +0 -0
  52. package/dist/giftCard-DhbT2_l0.js.br +0 -0
  53. package/dist/masonry.plugin-CVpZ_aQu.js.br +0 -0
@@ -1,5 +1,5 @@
1
1
  import { d as c, c as f, o as i, b as u, w as V, g, u as s, f as v } from "./_commonjsHelpers-ytV6SVHa.js";
2
- import { r as I, k, l as q, T as w, C as B, I as C, _ as D } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
2
+ import { r as I, k, l as q, T as w, C as B, I as C, _ as D } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js";
3
3
  (function() {
4
4
  try {
5
5
  var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
@@ -104,4 +104,4 @@ const F = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ c({
104
104
  export {
105
105
  T as A
106
106
  };
107
- //# sourceMappingURL=ActionField-l77AHDt_.js.map
107
+ //# sourceMappingURL=ActionField-BmdEaU7R.js.map
Binary file
@@ -1,7 +1,7 @@
1
1
  import { d as Y, m as be, r as g, c as s, q as G, h as me, o as n, a as r, f as u, w as pe, u as e, b as D, e as y, g as N, F as J, n as $, l as ge, i as De } from "./_commonjsHelpers-ytV6SVHa.js";
2
- import { h as fe, s as L, m as K, y as P, b as ye, T as x, k as ke, l as Q, C as W, g as he, _ as Z, E as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
3
- import { _ as we } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js";
4
- import { F as f } from "./Field-BJ8nOhMT.js";
2
+ import { h as fe, s as L, m as K, y as P, b as ye, T as x, k as ke, l as Q, C as W, g as he, _ as Z, E as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js";
3
+ import { _ as we } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js";
4
+ import { F as f } from "./Field-cLYq6dB7.js";
5
5
  (function() {
6
6
  try {
7
7
  var c = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new Error().stack;
@@ -285,4 +285,4 @@ export {
285
285
  Oe as A,
286
286
  Me as H
287
287
  };
288
- //# sourceMappingURL=AvailabilitySkeleton-6QuYlrqw.js.map
288
+ //# sourceMappingURL=AvailabilitySkeleton-D-WEI9Yg.js.map
@@ -1,5 +1,5 @@
1
1
  import { Z as da, r as K, d as qe, B as Vt, a7 as ia, h as Ze, K as dt, _ as Ma, q as Ct, c as L, o as A, a as F, f as at, C as Ke, A as $e, w as me, v as le, Q as Fe, R as Xe, u as y, L as Ue, x as Mn, b as _e, T as Ut, e as q, ai as xa, J as Yr, n as De, U as $r, al as xn, M as ce, g as ue, i as Ae, F as ke, I as rt, t as je, D as _t, am as Rr, y as ba, z as wa, a9 as Sr, aa as Nr } from "./_commonjsHelpers-ytV6SVHa.js";
2
- import { r as Br, g as Ir, I as Vr } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
2
+ import { r as Br, g as Ir, I as Vr } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js";
3
3
  (function() {
4
4
  try {
5
5
  var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
@@ -7811,4 +7811,4 @@ export {
7811
7811
  Zs as m,
7812
7812
  se as t
7813
7813
  };
7814
- //# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js.map
7814
+ //# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js.map
@@ -1,5 +1,5 @@
1
1
  import { d as C, o as u, a as m, r as c, h as j, E as ve, G as me, q as X, c as U, H as he, b as I, g as r, f as H, w as $, y as Z, z as Q, I as q, T as x, n as v, v as V, e as S, J as ge, K as be, t as b, u as y, B as we, L as Se, M as ke, D as W, p as Ce, j as $e } from "./_commonjsHelpers-ytV6SVHa.js";
2
- import { z as Be, _ as z, r as ee, T as oe, I as ne, h as Ve, s as Pe, b as Te, P as Ie } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
2
+ import { z as Be, _ as z, r as ee, T as oe, I as ne, h as Ve, s as Pe, b as Te, P as Ie } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js";
3
3
  (function() {
4
4
  try {
5
5
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, o = new Error().stack;
@@ -665,4 +665,4 @@ export {
665
665
  lo as _,
666
666
  po as a
667
667
  };
668
- //# sourceMappingURL=CheckoutWindow-CNF_LAo6.js.map
668
+ //# sourceMappingURL=CheckoutWindow-DdkwNLy3.js.map
@@ -1,5 +1,5 @@
1
1
  import { d as g, o as B, a as J, g as E, t as i, p as S, j as R } from "./_commonjsHelpers-ytV6SVHa.js";
2
- import { _ as k } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
2
+ import { _ as k } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js";
3
3
  (function() {
4
4
  try {
5
5
  var A = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, C = new Error().stack;
@@ -42,4 +42,4 @@ const o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACCQAAAgkCAYAAABoLDe6AAA
42
42
  export {
43
43
  l as E
44
44
  };
45
- //# sourceMappingURL=ErrorMessage-B0Hm-dJ0.js.map
45
+ //# sourceMappingURL=ErrorMessage-Cyrsqt8X.js.map
Binary file
@@ -1,23 +1,23 @@
1
- import { r as i, c as a, d as Ke, h as He, o as W, a as fe, f as X, w as Qe, u as z, b as Je, e as me, l as We, n as Xe, i as Ye } from "./_commonjsHelpers-ytV6SVHa.js";
2
- import { d as Ze, u as et, s as ee, t as tt, a as at, b as ge, m as te, v as p, c as Y, O as ye, S as Z, w as nt, e as $, g as C, i as N, x as ot, h as lt, k as st, C as it, _ as rt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
1
+ import { r as i, c as a, d as Ue, h as qe, o as de, a as Ke, f as W, w as He, u as z, b as Qe, e as Je, g as We, l as Xe, n as Ye, i as Ze } from "./_commonjsHelpers-ytV6SVHa.js";
2
+ import { d as et, u as tt, s as Z, t as at, a as nt, b as pe, m as ee, v as p, c as X, O as me, S as Y, w as ot, e as V, g as C, i as N, x as lt, h as st, k as it, C as rt, _ as ut } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js";
3
3
  import "./navigation.js";
4
- import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js";
4
+ import { _ as ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js";
5
5
  (function() {
6
6
  try {
7
7
  var w = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
8
- l && (w._sentryDebugIds = w._sentryDebugIds || {}, w._sentryDebugIds[l] = "49af46c3-9ec5-423f-96fb-49917160686e", w._sentryDebugIdIdentifier = "sentry-dbid-49af46c3-9ec5-423f-96fb-49917160686e");
8
+ l && (w._sentryDebugIds = w._sentryDebugIds || {}, w._sentryDebugIds[l] = "0a563b84-1abd-49a2-8522-5b41eeb9f4ce", w._sentryDebugIdIdentifier = "sentry-dbid-0a563b84-1abd-49a2-8522-5b41eeb9f4ce");
9
9
  } catch {
10
10
  }
11
11
  })();
12
- const ct = Ze("event", () => {
13
- const w = et(), { voucher: l } = ee(tt()), { display: f } = at(), { bearerToken: D, metaData: F } = ee(ge()), j = ge(), m = te(), g = i({}), B = a(() => Object.keys(g.value).length > 0), t = i(void 0), o = i(!0), r = i(p.InitialState), A = i(NaN), T = i(1), k = i(NaN), V = i(NaN), I = i(""), E = Y("konnectio_name", "", void 0, { serializer: Z.string }), G = Y("konnectio_phone", "", void 0, { serializer: Z.string }), x = Y("konnectio_email", "", void 0, { serializer: Z.string }), u = i(""), y = i({}), d = i({}), U = i("");
12
+ const vt = et("event", () => {
13
+ const w = tt(), { voucher: l } = Z(at()), { display: m } = nt(), { bearerToken: D, metaData: $ } = Z(pe()), j = pe(), f = ee(), g = i({}), B = a(() => Object.keys(g.value).length > 0), t = i(void 0), o = i(!0), r = i(p.InitialState), A = i(NaN), T = i(1), k = i(NaN), F = i(NaN), I = i(""), E = X("konnectio_name", "", void 0, { serializer: Y.string }), G = X("konnectio_phone", "", void 0, { serializer: Y.string }), x = X("konnectio_email", "", void 0, { serializer: Y.string }), c = i(""), y = i({}), d = i({}), U = i("");
14
14
  function s(e) {
15
15
  return e ? e.templateId !== void 0 : !1;
16
16
  }
17
- const he = a(() => j.metaData.hotels.findIndex((e) => e.id === m.eventLocation) || 0), M = a(() => j.metaData.hotels[he.value]), be = a(() => M.value.maxNumberPerBooking ? M.value.maxNumberPerBooking : 1 / 0), ke = a(() => M.value.name ? M.value.name : ""), Ie = a(() => M.value.subtitle ? M.value.subtitle : ""), O = a(() => m.searchDate.toISOString()), we = a(() => s(t.value)), q = a(() => s(t.value) ? t.value.numberOfDays : T.value), De = a(() => s(t.value) ? t.value.packageCount : 0), Ae = a(() => s(t.value) ? t.value.fromDate : ""), L = a(() => g.value.events !== void 0 ? g.value.events.find((e) => e.id === k.value) : void 0), Se = a(() => L.value ? L.value.length : void 0), ae = a(() => s(t.value) ? t.value.templateId : 0), Pe = a(() => g.value.events), Ee = a(() => g.value.templates), Le = a(() => g.value.events.length > 0), _e = a(() => g.value.templates.length > 0), ne = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : ye.None), K = a(() => {
17
+ const fe = a(() => j.metaData.hotels.findIndex((e) => e.id === f.eventLocation) || 0), M = a(() => j.metaData.hotels[fe.value]), ge = a(() => M.value ? M.value.maxNumberPerBooking : 1 / 0), ye = a(() => M.value.name ? M.value.name : ""), he = a(() => M.value.subtitle ? M.value.subtitle : ""), O = a(() => f.searchDate.toISOString()), be = a(() => s(t.value)), q = a(() => s(t.value) ? t.value.numberOfDays : T.value), ke = a(() => s(t.value) ? t.value.packageCount : 0), Ie = a(() => s(t.value) ? t.value.fromDate : ""), L = a(() => g.value.events !== void 0 ? g.value.events.find((e) => e.id === k.value) : void 0), we = a(() => L.value ? L.value.length : void 0), te = a(() => s(t.value) ? t.value.templateId : 0), De = a(() => g.value.events), Ae = a(() => g.value.templates), Se = a(() => g.value.events.length > 0), Pe = a(() => g.value.templates.length > 0), ae = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : me.None), K = a(() => {
18
18
  if (!s(t.value))
19
19
  return t.value;
20
- }), oe = a(() => {
20
+ }), ne = a(() => {
21
21
  if (K.value !== void 0) {
22
22
  const e = K.value.find(
23
23
  (n) => n.time === I.value
@@ -26,19 +26,19 @@ const ct = Ze("event", () => {
26
26
  return e.price;
27
27
  }
28
28
  return 0;
29
- }), le = a(() => {
29
+ }), oe = a(() => {
30
30
  if (s(t.value))
31
31
  return t.value.rooms;
32
32
  });
33
- function H(e, n, c) {
33
+ function H(e, n, u) {
34
34
  let h = 0;
35
35
  if (s(t.value)) {
36
- const v = t.value.rooms[c];
36
+ const v = t.value.rooms[u];
37
37
  if (v) {
38
- const _ = v.addons, S = y.value[`${n}.${e}.${c}`] || 0;
38
+ const _ = v.addons, S = y.value[`${n}.${e}.${u}`] || 0;
39
39
  if (S > 0) {
40
40
  const P = _?.find((R) => R.id === e), b = typeof S == "boolean" ? 1 : S;
41
- h += nt(P?.price, P?.quantityStrategy, q.value, v.adultPerRoom) * b;
41
+ h += ot(P?.price, P?.quantityStrategy, q.value, v.adultPerRoom) * b;
42
42
  }
43
43
  }
44
44
  } else {
@@ -51,41 +51,41 @@ const ct = Ze("event", () => {
51
51
  return h;
52
52
  }
53
53
  function Q(e, n) {
54
- let c = 0;
54
+ let u = 0;
55
55
  if (s(t.value))
56
56
  for (const h in y.value) {
57
57
  const v = h.split(".");
58
- parseInt(v[0]) === e && parseInt(v[2]) === n && (c += H(parseInt(v[1]), e, n));
58
+ parseInt(v[0]) === e && parseInt(v[2]) === n && (u += H(parseInt(v[1]), e, n));
59
59
  }
60
60
  else
61
61
  for (const h in d.value)
62
- c += H(parseInt(h)) * T.value;
63
- return c;
62
+ u += H(parseInt(h)) * T.value;
63
+ return u;
64
64
  }
65
- const se = a(() => s(t.value) && t.value.totalPrice || 0), Ne = a(() => {
65
+ const le = a(() => s(t.value) && t.value.totalPrice || 0), Ee = a(() => {
66
66
  if (s(t.value))
67
67
  return t.value.rooms === void 0 ? NaN : t.value.rooms.flatMap((e) => e.roomGroupId).reduce(
68
- (e, n, c) => e + Q(n, c),
69
- se.value
68
+ (e, n, u) => e + Q(n, u),
69
+ le.value
70
70
  ) || 0;
71
71
  {
72
72
  let e = Q();
73
- return e += oe.value, e;
73
+ return e += ne.value, e;
74
74
  }
75
- }), Ce = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Te = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Me = a(() => {
75
+ }), Le = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), _e = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Ne = a(() => {
76
76
  const e = d.value;
77
77
  let n = 0;
78
- for (const c in e)
79
- n += Number.isNaN(e[c]) ? 0 : e[c];
78
+ for (const u in e)
79
+ n += Number.isNaN(e[u]) ? 0 : e[u];
80
80
  return n > 0;
81
- }), ie = a(() => s(t.value) ? !1 : Object.keys(d.value).length > 0), Oe = a(() => !!(E.value !== "" && x.value !== "" && G.value.length >= 5 && (!ie.value || Me.value) && (!(!s(t.value) && ne.value !== ye.FullDayEvent) || I.value !== "")));
82
- function Re(e) {
81
+ }), se = a(() => s(t.value) ? !1 : Object.keys(d.value).length > 0), Ce = a(() => !!(E.value !== "" && x.value !== "" && G.value.length >= 5 && (!se.value || Ne.value) && (!(!s(t.value) && ae.value !== me.FullDayEvent) || I.value !== "")));
82
+ function Te(e) {
83
83
  return r.value === p.ReservationState && k.value === e && o.value;
84
84
  }
85
- const ze = a(() => !(r.value === p.InitialState && o.value)), $e = a(() => !(r.value === p.AvailabilityState && o.value)), Fe = a(() => t.value !== void 0), Ve = a(() => r.value === p.PaymentState && o.value);
86
- async function re() {
85
+ const Me = a(() => !(r.value === p.InitialState && o.value)), Oe = a(() => !(r.value === p.AvailabilityState && o.value)), Re = a(() => t.value !== void 0), ze = a(() => r.value === p.PaymentState && o.value);
86
+ async function ie() {
87
87
  try {
88
- const e = (await $.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
88
+ const e = (await V.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
89
89
  params: {
90
90
  language: C()
91
91
  },
@@ -94,21 +94,21 @@ const ct = Ze("event", () => {
94
94
  Accept: "application/json"
95
95
  }
96
96
  })).data;
97
- F.value = e, ue();
97
+ $.value = e;
98
98
  } catch {
99
- f({
99
+ m({
100
100
  message: N.t("alert.error.couldntFetchMetadata"),
101
101
  type: "warning"
102
102
  });
103
103
  }
104
104
  }
105
- async function ue() {
105
+ async function Ve() {
106
106
  r.value = p.AvailabilityState, o.value = !0;
107
107
  try {
108
- const e = (await $.get("https://production.hotel-service.konnectio.dk/api/event/get", {
108
+ const e = (await V.get("https://production.hotel-service.konnectio.dk/api/event/get", {
109
109
  params: {
110
110
  language: C(),
111
- restaurantId: m.eventLocation,
111
+ restaurantId: f.eventLocation,
112
112
  date: O.value
113
113
  },
114
114
  headers: {
@@ -118,21 +118,21 @@ const ct = Ze("event", () => {
118
118
  })).data;
119
119
  g.value = e, o.value = !1;
120
120
  } catch {
121
- f({
121
+ m({
122
122
  message: N.t("alert.error.couldntFetchListings"),
123
123
  type: "warning"
124
124
  });
125
125
  }
126
126
  }
127
- async function Ge(e) {
127
+ async function $e(e) {
128
128
  r.value = p.ReservationState, o.value = !0;
129
129
  try {
130
- const n = (await $.get("https://production.hotel-service.konnectio.dk/api/event/get-template", {
130
+ const n = (await V.get("https://production.hotel-service.konnectio.dk/api/event/get-template", {
131
131
  params: {
132
132
  language: C(),
133
133
  date: O.value,
134
134
  templateId: k.value,
135
- restaurantId: m.eventLocation,
135
+ restaurantId: f.eventLocation,
136
136
  numberOfPeople: A.value
137
137
  },
138
138
  headers: {
@@ -140,28 +140,28 @@ const ct = Ze("event", () => {
140
140
  Accept: "application/json"
141
141
  }
142
142
  })).data;
143
- n.rooms.length === 0 ? f({
143
+ n.rooms.length === 0 ? m({
144
144
  message: N.t("alert.error.eventNotAvailable"),
145
145
  type: "warning"
146
146
  }) : (t.value = n, e()), o.value = !1;
147
147
  } catch {
148
- o.value = !1, r.value = p.AvailabilityState, f({
148
+ o.value = !1, r.value = p.AvailabilityState, m({
149
149
  message: N.t("alert.error.couldntFetchEvent"),
150
150
  type: "warning"
151
151
  });
152
152
  }
153
153
  }
154
- async function xe(e) {
154
+ async function Fe(e) {
155
155
  r.value = p.ReservationState, o.value = !0;
156
156
  try {
157
- const n = (await $.get("https://production.hotel-service.konnectio.dk/api/event/vacant-times", {
157
+ const n = (await V.get("https://production.hotel-service.konnectio.dk/api/event/vacant-times", {
158
158
  params: {
159
159
  language: C(),
160
160
  date: O.value,
161
161
  numberOfPeople: A.value,
162
162
  eventId: k.value,
163
- tableGroupId: V.value,
164
- restaurantId: m.eventLocation
163
+ tableGroupId: F.value,
164
+ restaurantId: f.eventLocation
165
165
  },
166
166
  headers: {
167
167
  Authorization: D.value,
@@ -170,19 +170,19 @@ const ct = Ze("event", () => {
170
170
  })).data;
171
171
  t.value = n, o.value = !1, e();
172
172
  } catch {
173
- o.value = !1, r.value = p.AvailabilityState, f({
173
+ o.value = !1, r.value = p.AvailabilityState, m({
174
174
  message: N.t("alert.error.couldntFetchEvent"),
175
175
  type: "warning"
176
176
  });
177
177
  }
178
178
  }
179
- async function je() {
179
+ async function Ge() {
180
180
  try {
181
- const e = (await $.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
181
+ const e = (await V.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
182
182
  language: C(),
183
183
  date: O.value,
184
184
  discountCode: U.value,
185
- restaurantId: m.eventLocation
185
+ restaurantId: f.eventLocation
186
186
  }, {
187
187
  headers: {
188
188
  Authorization: D.value,
@@ -191,42 +191,42 @@ const ct = Ze("event", () => {
191
191
  })).data;
192
192
  console.log(e);
193
193
  } catch (e) {
194
- console.log(e), f({
194
+ console.log(e), m({
195
195
  message: N.t("alert.error.discountCodeValidation"),
196
196
  type: "warning"
197
197
  });
198
198
  }
199
199
  }
200
- async function Be(e) {
200
+ async function xe(e) {
201
201
  r.value = p.PaymentState, o.value = !0;
202
202
  const n = () => {
203
- o.value = !1, r.value = p.ReservationState, f({
203
+ o.value = !1, r.value = p.ReservationState, m({
204
204
  message: N.t("booking.other.errorMessage"),
205
205
  type: "warning"
206
206
  });
207
207
  };
208
- let c, h, v;
208
+ let u, h, v;
209
209
  const _ = [];
210
210
  if (s(t.value))
211
- le.value?.forEach((b, R) => {
212
- const ce = [];
213
- let ve = 0;
214
- for (const de in y.value) {
215
- const J = de.split("."), pe = y.value[de];
216
- parseInt(J[0]) === b.roomGroupId && parseInt(J[2]) === R && pe > 0 && (ce.push({
217
- id: ve,
211
+ oe.value?.forEach((b, R) => {
212
+ const re = [];
213
+ let ue = 0;
214
+ for (const ce in y.value) {
215
+ const J = ce.split("."), ve = y.value[ce];
216
+ parseInt(J[0]) === b.roomGroupId && parseInt(J[2]) === R && ve > 0 && (re.push({
217
+ id: ue,
218
218
  addonID: parseInt(J[1]),
219
- quantity: pe
220
- }), ve++);
219
+ quantity: ve
220
+ }), ue++);
221
221
  }
222
222
  _.push({
223
223
  adultPerRoom: b.adultPerRoom,
224
224
  count: b.count,
225
225
  roomGroupID: b.roomGroupId,
226
- addons: ce
226
+ addons: re
227
227
  });
228
- }), c = {
229
- templateID: ae.value,
228
+ }), u = {
229
+ templateID: te.value,
230
230
  numberOfDays: T.value,
231
231
  templateCounts: _
232
232
  };
@@ -243,12 +243,12 @@ const ct = Ze("event", () => {
243
243
  let S = "https://production.hotel-service.konnectio.dk/api/event/book-template";
244
244
  const P = {
245
245
  language: C(),
246
- restaurantId: m.eventLocation,
247
- date: ot(O.value),
246
+ restaurantId: f.eventLocation,
247
+ date: lt(O.value),
248
248
  name: E.value,
249
249
  email: x.value,
250
250
  phone: G.value,
251
- remark: u.value,
251
+ remark: c.value,
252
252
  numberOfPeople: A.value,
253
253
  days: q.value,
254
254
  discountCode: U.value,
@@ -256,7 +256,7 @@ const ct = Ze("event", () => {
256
256
  checkoutUrl: window.location.origin,
257
257
  privacyUrl: window.location.origin
258
258
  };
259
- s(t.value) ? P.templateGroup = c : (P.time = v, P.eventId = k.value, P.products = h, S = "https://production.hotel-service.konnectio.dk/api/event/book-event"), await $.post(S, P, {
259
+ s(t.value) ? P.templateGroup = u : (P.time = v, P.eventId = k.value, P.products = h, S = "https://production.hotel-service.konnectio.dk/api/event/book-event"), await V.post(S, P, {
260
260
  headers: {
261
261
  Authorization: D.value,
262
262
  Accept: "application/json"
@@ -268,23 +268,23 @@ const ct = Ze("event", () => {
268
268
  });
269
269
  }).catch(() => n());
270
270
  }
271
- function Ue(e) {
271
+ function je(e) {
272
272
  y.value = {}, d.value = {}, I.value = "", e();
273
273
  }
274
- async function qe() {
275
- await Promise.all([re(), m.fetchMetadata()]);
274
+ async function Be() {
275
+ await Promise.all([ie(), f.fetchMetadata()]);
276
276
  }
277
277
  return {
278
- metaData: F,
278
+ metaData: $,
279
279
  listingData: g,
280
- tableBasePrice: oe,
280
+ tableBasePrice: ne,
281
281
  availabilityData: t,
282
282
  isLoading: o,
283
283
  moduleState: r,
284
284
  numberOfPeople: A,
285
285
  numberOfDays: T,
286
286
  eventId: k,
287
- tableGroupId: V,
287
+ tableGroupId: F,
288
288
  arrivalTime: I,
289
289
  addons: y,
290
290
  products: d,
@@ -292,52 +292,52 @@ const ct = Ze("event", () => {
292
292
  name: E,
293
293
  phone: G,
294
294
  email: x,
295
- remark: u,
296
- isTemplateEvent: we,
297
- maxNumberOfPeople: be,
298
- title: ke,
299
- subtitle: Ie,
295
+ remark: c,
296
+ isTemplateEvent: be,
297
+ maxNumberOfPeople: ge,
298
+ title: ye,
299
+ subtitle: he,
300
300
  date: O,
301
301
  numberOfTotalDays: q,
302
- numberOfRooms: De,
303
- fromDate: Ae,
302
+ numberOfRooms: ke,
303
+ fromDate: Ie,
304
304
  getEventData: L,
305
- length: Se,
306
- templateId: ae,
307
- getEvents: Pe,
308
- getTemplates: Ee,
309
- hasEvents: Le,
310
- hasTemplates: _e,
311
- basePrice: se,
312
- totalPrice: Ne,
313
- getTemplateData: le,
305
+ length: we,
306
+ templateId: te,
307
+ getEvents: De,
308
+ getTemplates: Ae,
309
+ hasEvents: Se,
310
+ hasTemplates: Pe,
311
+ basePrice: le,
312
+ totalPrice: Ee,
313
+ getTemplateData: oe,
314
314
  getEventTableData: K,
315
- roomUpgrade: Te,
316
- weekendFee: Ce,
317
- hasProducts: ie,
318
- eventRateType: ne,
319
- isReservationFormFilled: Oe,
320
- isMetadataAvailable: ze,
321
- areListingsAvailable: $e,
322
- isAvailabilityDataAvailable: Fe,
323
- isPaymentLoading: Ve,
324
- isEventListingLoading: Re,
325
- fetchMetadata: re,
326
- fetchListings: ue,
327
- getTemplateAvailability: Ge,
328
- getEventAvailability: xe,
329
- validateDiscountCode: je,
315
+ roomUpgrade: _e,
316
+ weekendFee: Le,
317
+ hasProducts: se,
318
+ eventRateType: ae,
319
+ isReservationFormFilled: Ce,
320
+ isMetadataAvailable: Me,
321
+ areListingsAvailable: Oe,
322
+ isAvailabilityDataAvailable: Re,
323
+ isPaymentLoading: ze,
324
+ isEventListingLoading: Te,
325
+ fetchMetadata: ie,
326
+ fetchListings: Ve,
327
+ getTemplateAvailability: $e,
328
+ getEventAvailability: Fe,
329
+ validateDiscountCode: Ge,
330
330
  localAddonPrice: H,
331
331
  totalAddonPrice: Q,
332
- createBooking: Be,
333
- reset: Ue,
334
- initialize: qe,
332
+ createBooking: xe,
333
+ reset: je,
334
+ initialize: Be,
335
335
  hasListingData: B
336
336
  };
337
- }), vt = {
337
+ }), dt = {
338
338
  class: "konnectio-search-button",
339
339
  key: "search"
340
- }, dt = /* @__PURE__ */ Ke({
340
+ }, pt = /* @__PURE__ */ Ue({
341
341
  __name: "EventAvailabilityForm",
342
342
  props: {
343
343
  link: {},
@@ -345,21 +345,21 @@ const ct = Ze("event", () => {
345
345
  },
346
346
  setup(w) {
347
347
  const l = w, {
348
- eventLocation: f,
348
+ eventLocation: m,
349
349
  eventLocations: D,
350
- hasEventLocations: F,
350
+ hasEventLocations: $,
351
351
  eventLocationControl: j,
352
- searchDate: m,
352
+ searchDate: f,
353
353
  isExpired: g
354
- } = ee(te()), { reset: B, fetchMetadata: t, updateEventAvailability: o } = te(), { fetchListings: r } = ct(), { t: A } = lt(), T = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), k = i(j.value), V = i(T()), I = a({
355
- get: () => l.redirection ? k.value : f.value,
356
- set: (u) => {
357
- l.redirection ? k.value = Number(u) : f.value = Number(u);
354
+ } = Z(ee()), { reset: B, fetchMetadata: t, updateEventAvailability: o } = ee(), { fetchListings: r } = vt(), { t: A } = st(), T = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), k = i(j.value), F = i(T()), I = a({
355
+ get: () => l.redirection ? k.value : m.value,
356
+ set: (c) => {
357
+ l.redirection ? k.value = Number(c) : m.value = Number(c);
358
358
  }
359
359
  }), E = a({
360
- get: () => l.redirection ? V.value : m.value,
361
- set: (u) => {
362
- l.redirection ? V.value = u : m.value = u;
360
+ get: () => l.redirection ? F.value : f.value,
361
+ set: (c) => {
362
+ l.redirection ? F.value = c : f.value = c;
363
363
  }
364
364
  }), G = a(() => typeof l.link != "string");
365
365
  function x() {
@@ -368,29 +368,29 @@ const ct = Ze("event", () => {
368
368
  date: E.value,
369
369
  location: I.value
370
370
  }), G.value) {
371
- const u = C();
372
- l.link[u] ? window.location.replace(l.link[u]) : l.link.en && window.location.replace(l.link.en);
371
+ const c = C();
372
+ l.link[c] ? window.location.replace(l.link[c]) : l.link.en && window.location.replace(l.link.en);
373
373
  } else
374
374
  window.location.replace(l.link);
375
375
  else
376
376
  r();
377
377
  }
378
- return He(() => {
378
+ return qe(() => {
379
379
  g.value && B(), l.redirection;
380
- }), (u, y) => (W(), fe("form", {
381
- class: Xe([
380
+ }), (c, y) => (de(), Ke("form", {
381
+ class: Ye([
382
382
  "konnectio-event-search-form",
383
- { "has-locations": z(F) },
384
- { "auto-search": !u.redirection }
383
+ { "has-locations": z($) },
384
+ { "auto-search": !c.redirection }
385
385
  ]),
386
- onSubmit: Ye(x, ["prevent"])
386
+ onSubmit: Ze(x, ["prevent"])
387
387
  }, [
388
- X(We, {
388
+ W(Xe, {
389
389
  class: "konnectio-event-search-form-content",
390
390
  tag: "ul"
391
391
  }, {
392
- default: Qe(() => [
393
- z(F) ? (W(), Je(st, {
392
+ default: He(() => [
393
+ z($) ? (de(), Qe(it, {
394
394
  modelValue: I.value,
395
395
  "onUpdate:modelValue": y[0] || (y[0] = (d) => I.value = d),
396
396
  key: "location",
@@ -402,8 +402,8 @@ const ct = Ze("event", () => {
402
402
  "value-key": "id",
403
403
  options: z(D),
404
404
  searchable: !1
405
- }, null, 8, ["modelValue", "label", "options"])) : me("", !0),
406
- X(ut, {
405
+ }, null, 8, ["modelValue", "label", "options"])) : Je("", !0),
406
+ W(ct, {
407
407
  modelValue: E.value,
408
408
  "onUpdate:modelValue": y[1] || (y[1] = (d) => E.value = d),
409
409
  key: "date",
@@ -412,20 +412,20 @@ const ct = Ze("event", () => {
412
412
  "icon-placement": "label",
413
413
  "min-date": /* @__PURE__ */ new Date()
414
414
  }, null, 8, ["modelValue", "label", "min-date"]),
415
- u.redirection ? (W(), fe("li", vt, [
416
- X(it, {
415
+ We("li", dt, [
416
+ W(rt, {
417
417
  type: "submit",
418
418
  label: z(A)("availability.buttonLabel")
419
419
  }, null, 8, ["label"])
420
- ])) : me("", !0)
420
+ ])
421
421
  ]),
422
422
  _: 1
423
423
  })
424
424
  ], 34));
425
425
  }
426
- }), yt = /* @__PURE__ */ rt(dt, [["__scopeId", "data-v-8b1ddb1a"]]);
426
+ }), ht = /* @__PURE__ */ ut(pt, [["__scopeId", "data-v-14a328f5"]]);
427
427
  export {
428
- yt as E,
429
- ct as u
428
+ ht as E,
429
+ vt as u
430
430
  };
431
- //# sourceMappingURL=EventAvailabilityForm-BfhYKChb.js.map
431
+ //# sourceMappingURL=EventAvailabilityForm-BBVSXf1v.js.map
@@ -1,5 +1,5 @@
1
1
  import { d as l, o as a, a as o, b as i, e as r, f as n, n as f } from "./_commonjsHelpers-ytV6SVHa.js";
2
- import { E as s, _ as c } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
2
+ import { E as s, _ as c } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js";
3
3
  (function() {
4
4
  try {
5
5
  var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
@@ -47,4 +47,4 @@ const p = {
47
47
  export {
48
48
  y as F
49
49
  };
50
- //# sourceMappingURL=Field-BJ8nOhMT.js.map
50
+ //# sourceMappingURL=Field-cLYq6dB7.js.map
Binary file