@konnectio/core 4.0.56-rc47 → 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-Ck8cxR78.js → ActionField-BmdEaU7R.js} +2 -2
  2. package/dist/ActionField-BmdEaU7R.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-C_OWp8Fq.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-C2xXzeRY.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-DcaNMI9K.js → CheckoutWindow-DdkwNLy3.js} +2 -2
  8. package/dist/CheckoutWindow-DdkwNLy3.js.br +0 -0
  9. package/dist/{ErrorMessage-DH5q_ieB.js → ErrorMessage-Cyrsqt8X.js} +2 -2
  10. package/dist/ErrorMessage-Cyrsqt8X.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-DphCQOMO.js → EventAvailabilityForm-BBVSXf1v.js} +123 -123
  12. package/dist/EventAvailabilityForm-BBVSXf1v.js.br +0 -0
  13. package/dist/{Field-Dg8W7a_X.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-DxwVk__I.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-DenzWB_O.js → TermsOfService-CmEZmmhy.js} +3 -3
  18. package/dist/TermsOfService-CmEZmmhy.js.br +0 -0
  19. package/dist/{_-DgexTosT.js → _-BIlhnQ1K.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-VOXCSp8f.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 +75 -73
  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-BpIUm5ol.js → giftCard-B9vV1-Jc.js} +5 -5
  31. package/dist/giftCard-B9vV1-Jc.js.br +0 -0
  32. package/dist/hotel.js +7 -7
  33. package/dist/hotel.js.br +0 -0
  34. package/dist/{masonry.plugin-Bo5QRvUz.js → masonry.plugin-CpLUlFxC.js} +4 -4
  35. package/dist/masonry.plugin-CpLUlFxC.js.br +0 -0
  36. package/dist/navigation.js +2 -2
  37. package/dist/polyfill.js +94 -94
  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 +1 -1
  42. package/dist/ActionField-Ck8cxR78.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-C_OWp8Fq.js.br +0 -0
  44. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C2xXzeRY.js.br +0 -0
  45. package/dist/CheckoutWindow-DcaNMI9K.js.br +0 -0
  46. package/dist/ErrorMessage-DH5q_ieB.js.br +0 -0
  47. package/dist/EventAvailabilityForm-DphCQOMO.js.br +0 -0
  48. package/dist/Field-Dg8W7a_X.js.br +0 -0
  49. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DxwVk__I.js.br +0 -0
  50. package/dist/TermsOfService-DenzWB_O.js.br +0 -0
  51. package/dist/_.vue_vue_type_style_index_0_lang-VOXCSp8f.js.br +0 -0
  52. package/dist/giftCard-BpIUm5ol.js.br +0 -0
  53. package/dist/masonry.plugin-Bo5QRvUz.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-DxwVk__I.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-Ck8cxR78.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-DxwVk__I.js";
3
- import { _ as we } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C2xXzeRY.js";
4
- import { F as f } from "./Field-Dg8W7a_X.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-C_OWp8Fq.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-DxwVk__I.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-C2xXzeRY.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-DxwVk__I.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-DcaNMI9K.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-DxwVk__I.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-DH5q_ieB.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 pe, 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 fe, m as te, v as p, c as Y, O as ge, 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-DxwVk__I.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-C2xXzeRY.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] = "7f3004a0-6c5d-4662-9b4e-053fb32b4e6c", w._sentryDebugIdIdentifier = "sentry-dbid-7f3004a0-6c5d-4662-9b4e-053fb32b4e6c");
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: m } = at(), { bearerToken: D, metaData: F } = ee(fe()), j = fe(), f = 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 ye = a(() => j.metaData.hotels.findIndex((e) => e.id === f.eventLocation) || 0), M = a(() => j.metaData.hotels[ye.value]), he = a(() => M.value.maxNumberPerBooking ? M.value.maxNumberPerBooking : 1 / 0), be = a(() => M.value.name ? M.value.name : ""), ke = a(() => M.value.subtitle ? M.value.subtitle : ""), O = a(() => f.searchDate.toISOString()), Ie = a(() => s(t.value)), q = a(() => s(t.value) ? t.value.numberOfDays : T.value), we = a(() => s(t.value) ? t.value.packageCount : 0), De = 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), Ae = a(() => L.value ? L.value.length : void 0), ae = a(() => s(t.value) ? t.value.templateId : 0), Se = a(() => g.value.events), Pe = a(() => g.value.templates), Ee = a(() => g.value.events.length > 0), Le = a(() => g.value.templates.length > 0), ne = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : ge.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), _e = 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
- }), Ne = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Ce = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Te = 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), Me = a(() => !!(E.value !== "" && x.value !== "" && G.value.length >= 5 && (!ie.value || Te.value) && (!(!s(t.value) && ne.value !== ge.FullDayEvent) || I.value !== "")));
82
- function Oe(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 Re = a(() => !(r.value === p.InitialState && o.value)), ze = a(() => !(r.value === p.AvailabilityState && o.value)), $e = a(() => t.value !== void 0), Fe = 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,7 +94,7 @@ const ct = Ze("event", () => {
94
94
  Accept: "application/json"
95
95
  }
96
96
  })).data;
97
- F.value = e;
97
+ $.value = e;
98
98
  } catch {
99
99
  m({
100
100
  message: N.t("alert.error.couldntFetchMetadata"),
@@ -105,7 +105,7 @@ const ct = Ze("event", () => {
105
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
111
  restaurantId: f.eventLocation,
@@ -124,10 +124,10 @@ const ct = Ze("event", () => {
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,
@@ -151,16 +151,16 @@ const ct = Ze("event", () => {
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,
163
+ tableGroupId: F.value,
164
164
  restaurantId: f.eventLocation
165
165
  },
166
166
  headers: {
@@ -176,9 +176,9 @@ const ct = Ze("event", () => {
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,
@@ -197,7 +197,7 @@ const ct = Ze("event", () => {
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
203
  o.value = !1, r.value = p.ReservationState, m({
@@ -205,28 +205,28 @@ const ct = Ze("event", () => {
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 ue = [];
213
- let ce = 0;
214
- for (const ve in y.value) {
215
- const J = ve.split("."), de = y.value[ve];
216
- parseInt(J[0]) === b.roomGroupId && parseInt(J[2]) === R && de > 0 && (ue.push({
217
- id: ce,
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: de
220
- }), ce++);
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: ue
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
  };
@@ -244,11 +244,11 @@ const ct = Ze("event", () => {
244
244
  const P = {
245
245
  language: C(),
246
246
  restaurantId: f.eventLocation,
247
- date: ot(O.value),
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(), f.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: Ie,
297
- maxNumberOfPeople: he,
298
- title: be,
299
- subtitle: ke,
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: we,
303
- fromDate: De,
302
+ numberOfRooms: ke,
303
+ fromDate: Ie,
304
304
  getEventData: L,
305
- length: Ae,
306
- templateId: ae,
307
- getEvents: Se,
308
- getTemplates: Pe,
309
- hasEvents: Ee,
310
- hasTemplates: Le,
311
- basePrice: se,
312
- totalPrice: _e,
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: Ce,
316
- weekendFee: Ne,
317
- hasProducts: ie,
318
- eventRateType: ne,
319
- isReservationFormFilled: Me,
320
- isMetadataAvailable: Re,
321
- areListingsAvailable: ze,
322
- isAvailabilityDataAvailable: $e,
323
- isPaymentLoading: Fe,
324
- isEventListingLoading: Oe,
325
- fetchMetadata: re,
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
326
  fetchListings: Ve,
327
- getTemplateAvailability: Ge,
328
- getEventAvailability: xe,
329
- validateDiscountCode: je,
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: {},
@@ -347,19 +347,19 @@ const ct = Ze("event", () => {
347
347
  const l = w, {
348
348
  eventLocation: m,
349
349
  eventLocations: D,
350
- hasEventLocations: F,
350
+ hasEventLocations: $,
351
351
  eventLocationControl: j,
352
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({
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
355
  get: () => l.redirection ? k.value : m.value,
356
- set: (u) => {
357
- l.redirection ? k.value = Number(u) : m.value = Number(u);
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 : f.value,
361
- set: (u) => {
362
- l.redirection ? V.value = u : f.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(), pe("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(), pe("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-DphCQOMO.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-DxwVk__I.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-Dg8W7a_X.js.map
50
+ //# sourceMappingURL=Field-cLYq6dB7.js.map
Binary file