@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.
- package/dist/{ActionField-l77AHDt_.js → ActionField-BmdEaU7R.js} +2 -2
- package/dist/ActionField-BmdEaU7R.js.br +0 -0
- package/dist/{AvailabilitySkeleton-6QuYlrqw.js → AvailabilitySkeleton-D-WEI9Yg.js} +4 -4
- package/dist/AvailabilitySkeleton-D-WEI9Yg.js.br +0 -0
- 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
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js.br +0 -0
- package/dist/{CheckoutWindow-CNF_LAo6.js → CheckoutWindow-DdkwNLy3.js} +2 -2
- package/dist/CheckoutWindow-DdkwNLy3.js.br +0 -0
- package/dist/{ErrorMessage-B0Hm-dJ0.js → ErrorMessage-Cyrsqt8X.js} +2 -2
- package/dist/ErrorMessage-Cyrsqt8X.js.br +0 -0
- package/dist/{EventAvailabilityForm-BfhYKChb.js → EventAvailabilityForm-BBVSXf1v.js} +140 -140
- package/dist/EventAvailabilityForm-BBVSXf1v.js.br +0 -0
- package/dist/{Field-BJ8nOhMT.js → Field-cLYq6dB7.js} +2 -2
- package/dist/Field-cLYq6dB7.js.br +0 -0
- 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
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js.br +0 -0
- package/dist/{TermsOfService-f7DfHbk2.js → TermsOfService-CmEZmmhy.js} +3 -3
- package/dist/TermsOfService-CmEZmmhy.js.br +0 -0
- package/dist/{_-CaC826yR.js → _-BIlhnQ1K.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-BLztxup-.js → _.vue_vue_type_style_index_0_lang-CYFSipoN.js} +2 -2
- package/dist/_.vue_vue_type_style_index_0_lang-CYFSipoN.js.br +0 -0
- package/dist/availability.js +5 -5
- package/dist/availability.js.br +0 -0
- package/dist/event.js +107 -102
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +6 -6
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +7 -7
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-DhbT2_l0.js → giftCard-B9vV1-Jc.js} +5 -5
- package/dist/giftCard-B9vV1-Jc.js.br +0 -0
- package/dist/hotel.js +706 -702
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CVpZ_aQu.js → masonry.plugin-CpLUlFxC.js} +265 -279
- package/dist/masonry.plugin-CpLUlFxC.js.br +0 -0
- package/dist/navigation.js +2 -2
- package/dist/polyfill.js +193 -193
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +2 -2
- package/dist/ActionField-l77AHDt_.js.br +0 -0
- package/dist/AvailabilitySkeleton-6QuYlrqw.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js.br +0 -0
- package/dist/CheckoutWindow-CNF_LAo6.js.br +0 -0
- package/dist/ErrorMessage-B0Hm-dJ0.js.br +0 -0
- package/dist/EventAvailabilityForm-BfhYKChb.js.br +0 -0
- package/dist/Field-BJ8nOhMT.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js.br +0 -0
- package/dist/TermsOfService-f7DfHbk2.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BLztxup-.js.br +0 -0
- package/dist/giftCard-DhbT2_l0.js.br +0 -0
- 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-
|
|
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-
|
|
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-
|
|
3
|
-
import { _ as we } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-
|
|
4
|
-
import { F as f } from "./Field-
|
|
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-
|
|
288
|
+
//# sourceMappingURL=AvailabilitySkeleton-D-WEI9Yg.js.map
|
|
Binary file
|
|
@@ -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-
|
|
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-
|
|
7814
|
+
//# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js.map
|
package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js.br
ADDED
|
Binary file
|
|
@@ -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-
|
|
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-
|
|
668
|
+
//# sourceMappingURL=CheckoutWindow-DdkwNLy3.js.map
|
|
Binary file
|
|
@@ -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-
|
|
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-
|
|
45
|
+
//# sourceMappingURL=ErrorMessage-Cyrsqt8X.js.map
|
|
Binary file
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { r as i, c as a, d as
|
|
2
|
-
import { d as
|
|
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
|
|
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] = "
|
|
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
|
|
13
|
-
const w =
|
|
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
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
29
|
+
}), oe = a(() => {
|
|
30
30
|
if (s(t.value))
|
|
31
31
|
return t.value.rooms;
|
|
32
32
|
});
|
|
33
|
-
function H(e, n,
|
|
33
|
+
function H(e, n, u) {
|
|
34
34
|
let h = 0;
|
|
35
35
|
if (s(t.value)) {
|
|
36
|
-
const v = t.value.rooms[
|
|
36
|
+
const v = t.value.rooms[u];
|
|
37
37
|
if (v) {
|
|
38
|
-
const _ = v.addons, S = y.value[`${n}.${e}.${
|
|
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 +=
|
|
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
|
|
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 && (
|
|
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
|
-
|
|
63
|
-
return
|
|
62
|
+
u += H(parseInt(h)) * T.value;
|
|
63
|
+
return u;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
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,
|
|
69
|
-
|
|
68
|
+
(e, n, u) => e + Q(n, u),
|
|
69
|
+
le.value
|
|
70
70
|
) || 0;
|
|
71
71
|
{
|
|
72
72
|
let e = Q();
|
|
73
|
-
return e +=
|
|
73
|
+
return e += ne.value, e;
|
|
74
74
|
}
|
|
75
|
-
}),
|
|
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
|
|
79
|
-
n += Number.isNaN(e[
|
|
78
|
+
for (const u in e)
|
|
79
|
+
n += Number.isNaN(e[u]) ? 0 : e[u];
|
|
80
80
|
return n > 0;
|
|
81
|
-
}),
|
|
82
|
-
function
|
|
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
|
|
86
|
-
async function
|
|
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
|
|
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
|
-
|
|
97
|
+
$.value = e;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
m({
|
|
100
100
|
message: N.t("alert.error.couldntFetchMetadata"),
|
|
101
101
|
type: "warning"
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
async function
|
|
105
|
+
async function Ve() {
|
|
106
106
|
r.value = p.AvailabilityState, o.value = !0;
|
|
107
107
|
try {
|
|
108
|
-
const e = (await
|
|
108
|
+
const e = (await V.get("https://production.hotel-service.konnectio.dk/api/event/get", {
|
|
109
109
|
params: {
|
|
110
110
|
language: C(),
|
|
111
|
-
restaurantId:
|
|
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
|
-
|
|
121
|
+
m({
|
|
122
122
|
message: N.t("alert.error.couldntFetchListings"),
|
|
123
123
|
type: "warning"
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
async function
|
|
127
|
+
async function $e(e) {
|
|
128
128
|
r.value = p.ReservationState, o.value = !0;
|
|
129
129
|
try {
|
|
130
|
-
const n = (await
|
|
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:
|
|
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 ?
|
|
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,
|
|
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
|
|
154
|
+
async function Fe(e) {
|
|
155
155
|
r.value = p.ReservationState, o.value = !0;
|
|
156
156
|
try {
|
|
157
|
-
const n = (await
|
|
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:
|
|
164
|
-
restaurantId:
|
|
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,
|
|
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
|
|
179
|
+
async function Ge() {
|
|
180
180
|
try {
|
|
181
|
-
const e = (await
|
|
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:
|
|
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),
|
|
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
|
|
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,
|
|
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
|
|
208
|
+
let u, h, v;
|
|
209
209
|
const _ = [];
|
|
210
210
|
if (s(t.value))
|
|
211
|
-
|
|
212
|
-
const
|
|
213
|
-
let
|
|
214
|
-
for (const
|
|
215
|
-
const J =
|
|
216
|
-
parseInt(J[0]) === b.roomGroupId && parseInt(J[2]) === R &&
|
|
217
|
-
id:
|
|
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:
|
|
220
|
-
}),
|
|
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:
|
|
226
|
+
addons: re
|
|
227
227
|
});
|
|
228
|
-
}),
|
|
229
|
-
templateID:
|
|
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:
|
|
247
|
-
date:
|
|
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:
|
|
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 =
|
|
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
|
|
271
|
+
function je(e) {
|
|
272
272
|
y.value = {}, d.value = {}, I.value = "", e();
|
|
273
273
|
}
|
|
274
|
-
async function
|
|
275
|
-
await Promise.all([
|
|
274
|
+
async function Be() {
|
|
275
|
+
await Promise.all([ie(), f.fetchMetadata()]);
|
|
276
276
|
}
|
|
277
277
|
return {
|
|
278
|
-
metaData:
|
|
278
|
+
metaData: $,
|
|
279
279
|
listingData: g,
|
|
280
|
-
tableBasePrice:
|
|
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:
|
|
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:
|
|
296
|
-
isTemplateEvent:
|
|
297
|
-
maxNumberOfPeople:
|
|
298
|
-
title:
|
|
299
|
-
subtitle:
|
|
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:
|
|
303
|
-
fromDate:
|
|
302
|
+
numberOfRooms: ke,
|
|
303
|
+
fromDate: Ie,
|
|
304
304
|
getEventData: L,
|
|
305
|
-
length:
|
|
306
|
-
templateId:
|
|
307
|
-
getEvents:
|
|
308
|
-
getTemplates:
|
|
309
|
-
hasEvents:
|
|
310
|
-
hasTemplates:
|
|
311
|
-
basePrice:
|
|
312
|
-
totalPrice:
|
|
313
|
-
getTemplateData:
|
|
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:
|
|
316
|
-
weekendFee:
|
|
317
|
-
hasProducts:
|
|
318
|
-
eventRateType:
|
|
319
|
-
isReservationFormFilled:
|
|
320
|
-
isMetadataAvailable:
|
|
321
|
-
areListingsAvailable:
|
|
322
|
-
isAvailabilityDataAvailable:
|
|
323
|
-
isPaymentLoading:
|
|
324
|
-
isEventListingLoading:
|
|
325
|
-
fetchMetadata:
|
|
326
|
-
fetchListings:
|
|
327
|
-
getTemplateAvailability:
|
|
328
|
-
getEventAvailability:
|
|
329
|
-
validateDiscountCode:
|
|
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:
|
|
333
|
-
reset:
|
|
334
|
-
initialize:
|
|
332
|
+
createBooking: xe,
|
|
333
|
+
reset: je,
|
|
334
|
+
initialize: Be,
|
|
335
335
|
hasListingData: B
|
|
336
336
|
};
|
|
337
|
-
}),
|
|
337
|
+
}), dt = {
|
|
338
338
|
class: "konnectio-search-button",
|
|
339
339
|
key: "search"
|
|
340
|
-
},
|
|
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:
|
|
348
|
+
eventLocation: m,
|
|
349
349
|
eventLocations: D,
|
|
350
|
-
hasEventLocations:
|
|
350
|
+
hasEventLocations: $,
|
|
351
351
|
eventLocationControl: j,
|
|
352
|
-
searchDate:
|
|
352
|
+
searchDate: f,
|
|
353
353
|
isExpired: g
|
|
354
|
-
} = ee(
|
|
355
|
-
get: () => l.redirection ? k.value :
|
|
356
|
-
set: (
|
|
357
|
-
l.redirection ? k.value = Number(
|
|
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 ?
|
|
361
|
-
set: (
|
|
362
|
-
l.redirection ?
|
|
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
|
|
372
|
-
l.link[
|
|
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
|
|
378
|
+
return qe(() => {
|
|
379
379
|
g.value && B(), l.redirection;
|
|
380
|
-
}), (
|
|
381
|
-
class:
|
|
380
|
+
}), (c, y) => (de(), Ke("form", {
|
|
381
|
+
class: Ye([
|
|
382
382
|
"konnectio-event-search-form",
|
|
383
|
-
{ "has-locations": z(
|
|
384
|
-
{ "auto-search": !
|
|
383
|
+
{ "has-locations": z($) },
|
|
384
|
+
{ "auto-search": !c.redirection }
|
|
385
385
|
]),
|
|
386
|
-
onSubmit:
|
|
386
|
+
onSubmit: Ze(x, ["prevent"])
|
|
387
387
|
}, [
|
|
388
|
-
|
|
388
|
+
W(Xe, {
|
|
389
389
|
class: "konnectio-event-search-form-content",
|
|
390
390
|
tag: "ul"
|
|
391
391
|
}, {
|
|
392
|
-
default:
|
|
393
|
-
z(
|
|
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"])) :
|
|
406
|
-
|
|
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
|
-
|
|
416
|
-
|
|
415
|
+
We("li", dt, [
|
|
416
|
+
W(rt, {
|
|
417
417
|
type: "submit",
|
|
418
418
|
label: z(A)("availability.buttonLabel")
|
|
419
419
|
}, null, 8, ["label"])
|
|
420
|
-
])
|
|
420
|
+
])
|
|
421
421
|
]),
|
|
422
422
|
_: 1
|
|
423
423
|
})
|
|
424
424
|
], 34));
|
|
425
425
|
}
|
|
426
|
-
}),
|
|
426
|
+
}), ht = /* @__PURE__ */ ut(pt, [["__scopeId", "data-v-14a328f5"]]);
|
|
427
427
|
export {
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
ht as E,
|
|
429
|
+
vt as u
|
|
430
430
|
};
|
|
431
|
-
//# sourceMappingURL=EventAvailabilityForm-
|
|
431
|
+
//# sourceMappingURL=EventAvailabilityForm-BBVSXf1v.js.map
|
|
Binary file
|
|
@@ -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-
|
|
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-
|
|
50
|
+
//# sourceMappingURL=Field-cLYq6dB7.js.map
|
|
Binary file
|