@konnectio/core 4.0.56-rc45 → 4.0.56-rc47
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-DgGRyzyW.js → ActionField-Ck8cxR78.js} +10 -10
- package/dist/ActionField-Ck8cxR78.js.br +0 -0
- package/dist/{AvailabilitySkeleton-D_svZV0K.js → AvailabilitySkeleton-C_OWp8Fq.js} +61 -61
- package/dist/AvailabilitySkeleton-C_OWp8Fq.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C2xXzeRY.js +7814 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C2xXzeRY.js.br +0 -0
- package/dist/{CheckoutWindow-B85nPXcN.js → CheckoutWindow-DcaNMI9K.js} +14 -14
- package/dist/CheckoutWindow-DcaNMI9K.js.br +0 -0
- package/dist/{ErrorMessage-hoBbvZJL.js → ErrorMessage-DH5q_ieB.js} +4 -4
- package/dist/ErrorMessage-DH5q_ieB.js.br +0 -0
- package/dist/{EventAvailabilityForm-CqiuFIoF.js → EventAvailabilityForm-DphCQOMO.js} +115 -116
- package/dist/EventAvailabilityForm-DphCQOMO.js.br +0 -0
- package/dist/{Field-Crk3SejD.js → Field-Dg8W7a_X.js} +8 -8
- package/dist/Field-Dg8W7a_X.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DxwVk__I.js} +3187 -3187
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DxwVk__I.js.br +0 -0
- package/dist/{TermsOfService-CIIPZAIU.js → TermsOfService-DenzWB_O.js} +10 -10
- package/dist/TermsOfService-DenzWB_O.js.br +0 -0
- package/dist/_-DgexTosT.js +12 -0
- package/dist/_.vue_vue_type_style_index_0_lang-VOXCSp8f.js +68 -0
- package/dist/_.vue_vue_type_style_index_0_lang-VOXCSp8f.js.br +0 -0
- package/dist/_commonjsHelpers-ytV6SVHa.js +9541 -0
- package/dist/_commonjsHelpers-ytV6SVHa.js.br +0 -0
- package/dist/availability.js +56 -55
- package/dist/availability.js.br +0 -0
- package/dist/event.js +164 -159
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +19 -18
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +138 -138
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-CeKChSm1.js → giftCard-BpIUm5ol.js} +6 -6
- package/dist/giftCard-BpIUm5ol.js.br +0 -0
- package/dist/hotel.js +820 -815
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CKLroL2Q.js → masonry.plugin-Bo5QRvUz.js} +3425 -3408
- package/dist/masonry.plugin-Bo5QRvUz.js.br +0 -0
- package/dist/navigation.js +3 -3
- package/dist/polyfill.js +3994 -3991
- package/dist/polyfill.js.br +0 -0
- package/dist/sentry-D1A53_C5.js +18 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/tracing-wxeFiHIa.js +2287 -0
- package/dist/tracing-wxeFiHIa.js.br +0 -0
- package/package.json +7 -7
- package/dist/ActionField-DgGRyzyW.js.br +0 -0
- package/dist/AvailabilitySkeleton-D_svZV0K.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvjkJdcx.js +0 -7746
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvjkJdcx.js.br +0 -0
- package/dist/CheckoutWindow-B85nPXcN.js.br +0 -0
- package/dist/ErrorMessage-hoBbvZJL.js.br +0 -0
- package/dist/EventAvailabilityForm-CqiuFIoF.js.br +0 -0
- package/dist/Field-Crk3SejD.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js.br +0 -0
- package/dist/TermsOfService-CIIPZAIU.js.br +0 -0
- package/dist/_-DuaWvsgR.js +0 -12
- package/dist/_.vue_vue_type_style_index_0_lang-MG6OWZHv.js +0 -71
- package/dist/_.vue_vue_type_style_index_0_lang-MG6OWZHv.js.br +0 -0
- package/dist/_commonjsHelpers-CbB_C6Ai.js +0 -11816
- package/dist/_commonjsHelpers-CbB_C6Ai.js.br +0 -0
- package/dist/giftCard-CeKChSm1.js.br +0 -0
- package/dist/masonry.plugin-CKLroL2Q.js.br +0 -0
package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C2xXzeRY.js.br
ADDED
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
2
|
-
import {
|
|
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";
|
|
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;
|
|
6
|
-
o && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[o] = "
|
|
6
|
+
o && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[o] = "22258c0a-2d2f-4a41-a161-a0b6f4bc03bf", e._sentryDebugIdIdentifier = "sentry-dbid-22258c0a-2d2f-4a41-a161-a0b6f4bc03bf");
|
|
7
7
|
} catch {
|
|
8
8
|
}
|
|
9
9
|
})();
|
|
@@ -226,9 +226,9 @@ var Y = C({
|
|
|
226
226
|
}), me(() => {
|
|
227
227
|
const { modelValue: p, lockScroll: g } = e;
|
|
228
228
|
g && a.value && p && G(a.value, !1), n && document.body.removeChild(n), window.removeEventListener("resize", B);
|
|
229
|
-
}),
|
|
229
|
+
}), X(() => [s.value, l.value, e.height, e.width, e.side, e.modelValue], () => {
|
|
230
230
|
be(() => B());
|
|
231
|
-
}),
|
|
231
|
+
}), X(() => [e.modelValue, a.value], (p, g) => {
|
|
232
232
|
const fe = g ? g[0] : !1, [R, N] = p, pe = R, ye = fe && !R;
|
|
233
233
|
if (N) {
|
|
234
234
|
if (pe && (J.value = !!document.body.style.overflow), R) {
|
|
@@ -295,7 +295,7 @@ function Re(e, o, t, n, a, i) {
|
|
|
295
295
|
persisted: ""
|
|
296
296
|
}, {
|
|
297
297
|
default: $(() => [
|
|
298
|
-
|
|
298
|
+
Z(r(
|
|
299
299
|
"div",
|
|
300
300
|
{
|
|
301
301
|
ref: "overlay",
|
|
@@ -307,7 +307,7 @@ function Re(e, o, t, n, a, i) {
|
|
|
307
307
|
4
|
|
308
308
|
/* STYLE */
|
|
309
309
|
), [
|
|
310
|
-
[
|
|
310
|
+
[Q, e.modelValue]
|
|
311
311
|
])
|
|
312
312
|
]),
|
|
313
313
|
_: 1
|
|
@@ -319,7 +319,7 @@ function Re(e, o, t, n, a, i) {
|
|
|
319
319
|
onAfterLeave: o[2] || (o[2] = (s) => e.$emit("closed"))
|
|
320
320
|
}, {
|
|
321
321
|
default: $(() => [
|
|
322
|
-
!e.rerender || e.modelValue ?
|
|
322
|
+
!e.rerender || e.modelValue ? Z((u(), m(
|
|
323
323
|
"div",
|
|
324
324
|
{
|
|
325
325
|
key: 0,
|
|
@@ -375,7 +375,7 @@ function Re(e, o, t, n, a, i) {
|
|
|
375
375
|
6
|
|
376
376
|
/* CLASS, STYLE */
|
|
377
377
|
)), [
|
|
378
|
-
[
|
|
378
|
+
[Q, e.rerender ? !0 : e.modelValue]
|
|
379
379
|
]) : S("v-if", !0)
|
|
380
380
|
]),
|
|
381
381
|
_: 3
|
|
@@ -523,7 +523,7 @@ const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-pan
|
|
|
523
523
|
_: 1
|
|
524
524
|
}, 8, ["label", "id", "required", "readonly"]));
|
|
525
525
|
}
|
|
526
|
-
}), fo = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-5cd094ab"]]),
|
|
526
|
+
}), fo = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-5cd094ab"]]), Xe = ["required", "type", "name", "readonly", "disabled", "value", "checked"], Ze = ["data-test"], Qe = { key: 0 }, xe = {
|
|
527
527
|
key: 1,
|
|
528
528
|
class: /* @__PURE__ */ v(["konnectio-click-box-label", "inline"])
|
|
529
529
|
}, eo = /* @__PURE__ */ C({
|
|
@@ -574,7 +574,7 @@ const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-pan
|
|
|
574
574
|
value: l.type === "radio" ? l.val : l.modelValue,
|
|
575
575
|
checked: l.type === "radio" ? l.val === l.modelValue : !!l.modelValue,
|
|
576
576
|
onChange: s[0] || (s[0] = (d) => i())
|
|
577
|
-
}), null, 16,
|
|
577
|
+
}), null, 16, Xe),
|
|
578
578
|
r("div", {
|
|
579
579
|
class: v([
|
|
580
580
|
"konnectio-click-box",
|
|
@@ -584,13 +584,13 @@ const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-pan
|
|
|
584
584
|
style: q(l.inputStyle),
|
|
585
585
|
"data-test": l.name,
|
|
586
586
|
onKeyup: s[1] || (s[1] = ke((d) => i(), ["enter"]))
|
|
587
|
-
}, null, 46,
|
|
587
|
+
}, null, 46, Ze),
|
|
588
588
|
l.label ? (u(), m("div", {
|
|
589
589
|
key: 0,
|
|
590
590
|
class: v(["konnectio-click-box-label", "text-hover", { "with-price": l.price }])
|
|
591
591
|
}, [
|
|
592
592
|
r("span", null, b(l.label), 1),
|
|
593
|
-
l.price ? (u(), m("span",
|
|
593
|
+
l.price ? (u(), m("span", Qe, b(l.price), 1)) : S("", !0)
|
|
594
594
|
], 2)) : y(a).default ? (u(), m("div", xe, [
|
|
595
595
|
V(l.$slots, "default", {}, void 0, !0)
|
|
596
596
|
])) : S("", !0)
|
|
@@ -665,4 +665,4 @@ export {
|
|
|
665
665
|
lo as _,
|
|
666
666
|
po as a
|
|
667
667
|
};
|
|
668
|
-
//# sourceMappingURL=CheckoutWindow-
|
|
668
|
+
//# sourceMappingURL=CheckoutWindow-DcaNMI9K.js.map
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
2
|
-
import { _ as k } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
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";
|
|
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;
|
|
6
|
-
C && (A._sentryDebugIds = A._sentryDebugIds || {}, A._sentryDebugIds[C] = "
|
|
6
|
+
C && (A._sentryDebugIds = A._sentryDebugIds || {}, A._sentryDebugIds[C] = "56752e7b-973c-4e4e-8825-035e9160b3e6", A._sentryDebugIdIdentifier = "sentry-dbid-56752e7b-973c-4e4e-8825-035e9160b3e6");
|
|
7
7
|
} catch {
|
|
8
8
|
}
|
|
9
9
|
})();
|
|
@@ -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-DH5q_ieB.js.map
|
|
Binary file
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { r as i, c as a, d as Ke, h as He, o as W, a as
|
|
2
|
-
import { d as Ze, u as et, s as ee,
|
|
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";
|
|
3
3
|
import "./navigation.js";
|
|
4
|
-
import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-
|
|
4
|
+
import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C2xXzeRY.js";
|
|
5
5
|
(function() {
|
|
6
6
|
try {
|
|
7
|
-
var
|
|
8
|
-
l && (
|
|
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");
|
|
9
9
|
} catch {
|
|
10
10
|
}
|
|
11
11
|
})();
|
|
12
12
|
const ct = Ze("event", () => {
|
|
13
|
-
const
|
|
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("");
|
|
14
14
|
function s(e) {
|
|
15
15
|
return e ? e.templateId !== void 0 : !1;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
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(() => {
|
|
18
18
|
if (!s(t.value))
|
|
19
19
|
return t.value;
|
|
20
20
|
}), oe = a(() => {
|
|
@@ -31,38 +31,38 @@ const ct = Ze("event", () => {
|
|
|
31
31
|
return t.value.rooms;
|
|
32
32
|
});
|
|
33
33
|
function H(e, n, c) {
|
|
34
|
-
let
|
|
34
|
+
let h = 0;
|
|
35
35
|
if (s(t.value)) {
|
|
36
36
|
const v = t.value.rooms[c];
|
|
37
37
|
if (v) {
|
|
38
|
-
const _ = v.addons, S =
|
|
38
|
+
const _ = v.addons, S = y.value[`${n}.${e}.${c}`] || 0;
|
|
39
39
|
if (S > 0) {
|
|
40
|
-
const P = _?.find((R) => R.id === e),
|
|
41
|
-
|
|
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;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
} else {
|
|
45
45
|
const v = d.value[e] || 0;
|
|
46
46
|
if (v > 0) {
|
|
47
47
|
const _ = L.value?.products?.find((S) => S.productID === e);
|
|
48
|
-
_ && (
|
|
48
|
+
_ && (h += _.price * v);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
return
|
|
51
|
+
return h;
|
|
52
52
|
}
|
|
53
53
|
function Q(e, n) {
|
|
54
54
|
let c = 0;
|
|
55
55
|
if (s(t.value))
|
|
56
|
-
for (const
|
|
57
|
-
const v =
|
|
56
|
+
for (const h in y.value) {
|
|
57
|
+
const v = h.split(".");
|
|
58
58
|
parseInt(v[0]) === e && parseInt(v[2]) === n && (c += H(parseInt(v[1]), e, n));
|
|
59
59
|
}
|
|
60
60
|
else
|
|
61
|
-
for (const
|
|
62
|
-
c += H(parseInt(
|
|
61
|
+
for (const h in d.value)
|
|
62
|
+
c += H(parseInt(h)) * T.value;
|
|
63
63
|
return c;
|
|
64
64
|
}
|
|
65
|
-
const se = a(() => s(t.value) && t.value.totalPrice || 0),
|
|
65
|
+
const se = a(() => s(t.value) && t.value.totalPrice || 0), _e = 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
68
|
(e, n, c) => e + Q(n, c),
|
|
@@ -72,17 +72,17 @@ const ct = Ze("event", () => {
|
|
|
72
72
|
let e = Q();
|
|
73
73
|
return e += oe.value, e;
|
|
74
74
|
}
|
|
75
|
-
}),
|
|
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(() => {
|
|
76
76
|
const e = d.value;
|
|
77
77
|
let n = 0;
|
|
78
78
|
for (const c in e)
|
|
79
79
|
n += Number.isNaN(e[c]) ? 0 : e[c];
|
|
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 ||
|
|
82
|
-
function
|
|
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) {
|
|
83
83
|
return r.value === p.ReservationState && k.value === e && o.value;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
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
86
|
async function re() {
|
|
87
87
|
try {
|
|
88
88
|
const e = (await $.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
|
|
@@ -90,35 +90,35 @@ const ct = Ze("event", () => {
|
|
|
90
90
|
language: C()
|
|
91
91
|
},
|
|
92
92
|
headers: {
|
|
93
|
-
Authorization:
|
|
93
|
+
Authorization: D.value,
|
|
94
94
|
Accept: "application/json"
|
|
95
95
|
}
|
|
96
96
|
})).data;
|
|
97
|
-
F.value = e
|
|
97
|
+
F.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
108
|
const e = (await $.get("https://production.hotel-service.konnectio.dk/api/event/get", {
|
|
109
109
|
params: {
|
|
110
110
|
language: C(),
|
|
111
|
-
restaurantId:
|
|
112
|
-
date:
|
|
111
|
+
restaurantId: f.eventLocation,
|
|
112
|
+
date: O.value
|
|
113
113
|
},
|
|
114
114
|
headers: {
|
|
115
|
-
Authorization:
|
|
115
|
+
Authorization: D.value,
|
|
116
116
|
Accept: "application/json"
|
|
117
117
|
}
|
|
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
|
});
|
|
@@ -130,22 +130,22 @@ const ct = Ze("event", () => {
|
|
|
130
130
|
const n = (await $.get("https://production.hotel-service.konnectio.dk/api/event/get-template", {
|
|
131
131
|
params: {
|
|
132
132
|
language: C(),
|
|
133
|
-
date:
|
|
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: {
|
|
139
|
-
Authorization:
|
|
139
|
+
Authorization: D.value,
|
|
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
|
});
|
|
@@ -157,20 +157,20 @@ const ct = Ze("event", () => {
|
|
|
157
157
|
const n = (await $.get("https://production.hotel-service.konnectio.dk/api/event/vacant-times", {
|
|
158
158
|
params: {
|
|
159
159
|
language: C(),
|
|
160
|
-
date:
|
|
160
|
+
date: O.value,
|
|
161
161
|
numberOfPeople: A.value,
|
|
162
162
|
eventId: k.value,
|
|
163
163
|
tableGroupId: V.value,
|
|
164
|
-
restaurantId:
|
|
164
|
+
restaurantId: f.eventLocation
|
|
165
165
|
},
|
|
166
166
|
headers: {
|
|
167
|
-
Authorization:
|
|
167
|
+
Authorization: D.value,
|
|
168
168
|
Accept: "application/json"
|
|
169
169
|
}
|
|
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
|
});
|
|
@@ -180,18 +180,18 @@ const ct = Ze("event", () => {
|
|
|
180
180
|
try {
|
|
181
181
|
const e = (await $.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
|
|
182
182
|
language: C(),
|
|
183
|
-
date:
|
|
183
|
+
date: O.value,
|
|
184
184
|
discountCode: U.value,
|
|
185
|
-
restaurantId:
|
|
185
|
+
restaurantId: f.eventLocation
|
|
186
186
|
}, {
|
|
187
187
|
headers: {
|
|
188
|
-
Authorization:
|
|
188
|
+
Authorization: D.value,
|
|
189
189
|
Accept: "application/json"
|
|
190
190
|
}
|
|
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
|
});
|
|
@@ -200,30 +200,30 @@ const ct = Ze("event", () => {
|
|
|
200
200
|
async function Be(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 c,
|
|
208
|
+
let c, h, v;
|
|
209
209
|
const _ = [];
|
|
210
210
|
if (s(t.value))
|
|
211
|
-
le.value?.forEach((
|
|
212
|
-
const
|
|
213
|
-
let
|
|
214
|
-
for (const
|
|
215
|
-
const J =
|
|
216
|
-
parseInt(J[0]) ===
|
|
217
|
-
id:
|
|
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,
|
|
218
218
|
addonID: parseInt(J[1]),
|
|
219
|
-
quantity:
|
|
220
|
-
}),
|
|
219
|
+
quantity: de
|
|
220
|
+
}), ce++);
|
|
221
221
|
}
|
|
222
222
|
_.push({
|
|
223
|
-
adultPerRoom:
|
|
224
|
-
count:
|
|
225
|
-
roomGroupID:
|
|
226
|
-
addons:
|
|
223
|
+
adultPerRoom: b.adultPerRoom,
|
|
224
|
+
count: b.count,
|
|
225
|
+
roomGroupID: b.roomGroupId,
|
|
226
|
+
addons: ue
|
|
227
227
|
});
|
|
228
228
|
}), c = {
|
|
229
229
|
templateID: ae.value,
|
|
@@ -231,11 +231,11 @@ const ct = Ze("event", () => {
|
|
|
231
231
|
templateCounts: _
|
|
232
232
|
};
|
|
233
233
|
else {
|
|
234
|
-
|
|
235
|
-
for (const
|
|
236
|
-
const R = d.value[parseInt(
|
|
237
|
-
R > 0 &&
|
|
238
|
-
id: parseInt(
|
|
234
|
+
h = [], v = I.value;
|
|
235
|
+
for (const b in d.value) {
|
|
236
|
+
const R = d.value[parseInt(b)];
|
|
237
|
+
R > 0 && h.push({
|
|
238
|
+
id: parseInt(b),
|
|
239
239
|
quantity: R
|
|
240
240
|
});
|
|
241
241
|
}
|
|
@@ -243,8 +243,8 @@ 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: ot(
|
|
246
|
+
restaurantId: f.eventLocation,
|
|
247
|
+
date: ot(O.value),
|
|
248
248
|
name: E.value,
|
|
249
249
|
email: x.value,
|
|
250
250
|
phone: G.value,
|
|
@@ -256,28 +256,27 @@ 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 =
|
|
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, {
|
|
260
260
|
headers: {
|
|
261
|
-
Authorization:
|
|
261
|
+
Authorization: D.value,
|
|
262
262
|
Accept: "application/json"
|
|
263
263
|
}
|
|
264
|
-
}).then((
|
|
265
|
-
o.value = !1,
|
|
264
|
+
}).then((b) => {
|
|
265
|
+
o.value = !1, w.pay({
|
|
266
266
|
callback: e,
|
|
267
|
-
response:
|
|
267
|
+
response: b.data
|
|
268
268
|
});
|
|
269
269
|
}).catch(() => n());
|
|
270
270
|
}
|
|
271
271
|
function Ue(e) {
|
|
272
|
-
|
|
272
|
+
y.value = {}, d.value = {}, I.value = "", e();
|
|
273
273
|
}
|
|
274
|
-
function qe() {
|
|
275
|
-
re();
|
|
274
|
+
async function qe() {
|
|
275
|
+
await Promise.all([re(), f.fetchMetadata()]);
|
|
276
276
|
}
|
|
277
277
|
return {
|
|
278
|
-
fetchMetadata: re,
|
|
279
278
|
metaData: F,
|
|
280
|
-
listingData:
|
|
279
|
+
listingData: g,
|
|
281
280
|
tableBasePrice: oe,
|
|
282
281
|
availabilityData: t,
|
|
283
282
|
isLoading: o,
|
|
@@ -287,44 +286,44 @@ const ct = Ze("event", () => {
|
|
|
287
286
|
eventId: k,
|
|
288
287
|
tableGroupId: V,
|
|
289
288
|
arrivalTime: I,
|
|
290
|
-
addons:
|
|
289
|
+
addons: y,
|
|
291
290
|
products: d,
|
|
292
291
|
discountCode: U,
|
|
293
292
|
name: E,
|
|
294
293
|
phone: G,
|
|
295
294
|
email: x,
|
|
296
295
|
remark: u,
|
|
297
|
-
isTemplateEvent:
|
|
298
|
-
maxNumberOfPeople:
|
|
299
|
-
title:
|
|
300
|
-
subtitle:
|
|
301
|
-
date:
|
|
296
|
+
isTemplateEvent: Ie,
|
|
297
|
+
maxNumberOfPeople: he,
|
|
298
|
+
title: be,
|
|
299
|
+
subtitle: ke,
|
|
300
|
+
date: O,
|
|
302
301
|
numberOfTotalDays: q,
|
|
303
302
|
numberOfRooms: we,
|
|
304
|
-
fromDate:
|
|
303
|
+
fromDate: De,
|
|
305
304
|
getEventData: L,
|
|
306
|
-
length:
|
|
305
|
+
length: Ae,
|
|
307
306
|
templateId: ae,
|
|
308
|
-
getEvents:
|
|
309
|
-
getTemplates:
|
|
310
|
-
hasEvents:
|
|
311
|
-
hasTemplates:
|
|
307
|
+
getEvents: Se,
|
|
308
|
+
getTemplates: Pe,
|
|
309
|
+
hasEvents: Ee,
|
|
310
|
+
hasTemplates: Le,
|
|
312
311
|
basePrice: se,
|
|
313
|
-
totalPrice:
|
|
312
|
+
totalPrice: _e,
|
|
314
313
|
getTemplateData: le,
|
|
315
314
|
getEventTableData: K,
|
|
316
|
-
roomUpgrade:
|
|
317
|
-
weekendFee:
|
|
315
|
+
roomUpgrade: Ce,
|
|
316
|
+
weekendFee: Ne,
|
|
318
317
|
hasProducts: ie,
|
|
319
318
|
eventRateType: ne,
|
|
320
319
|
isReservationFormFilled: Me,
|
|
321
|
-
isMetadataAvailable:
|
|
322
|
-
areListingsAvailable:
|
|
323
|
-
isAvailabilityDataAvailable:
|
|
324
|
-
isPaymentLoading:
|
|
325
|
-
isEventListingLoading:
|
|
326
|
-
|
|
327
|
-
fetchListings:
|
|
320
|
+
isMetadataAvailable: Re,
|
|
321
|
+
areListingsAvailable: ze,
|
|
322
|
+
isAvailabilityDataAvailable: $e,
|
|
323
|
+
isPaymentLoading: Fe,
|
|
324
|
+
isEventListingLoading: Oe,
|
|
325
|
+
fetchMetadata: re,
|
|
326
|
+
fetchListings: Ve,
|
|
328
327
|
getTemplateAvailability: Ge,
|
|
329
328
|
getEventAvailability: xe,
|
|
330
329
|
validateDiscountCode: je,
|
|
@@ -344,23 +343,23 @@ const ct = Ze("event", () => {
|
|
|
344
343
|
link: {},
|
|
345
344
|
redirection: { type: Boolean, default: !0 }
|
|
346
345
|
},
|
|
347
|
-
setup(
|
|
348
|
-
const l =
|
|
349
|
-
eventLocation:
|
|
350
|
-
eventLocations:
|
|
346
|
+
setup(w) {
|
|
347
|
+
const l = w, {
|
|
348
|
+
eventLocation: m,
|
|
349
|
+
eventLocations: D,
|
|
351
350
|
hasEventLocations: F,
|
|
352
351
|
eventLocationControl: j,
|
|
353
|
-
searchDate:
|
|
354
|
-
isExpired:
|
|
352
|
+
searchDate: f,
|
|
353
|
+
isExpired: g
|
|
355
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({
|
|
356
|
-
get: () => l.redirection ? k.value :
|
|
355
|
+
get: () => l.redirection ? k.value : m.value,
|
|
357
356
|
set: (u) => {
|
|
358
|
-
l.redirection ? k.value = Number(u) :
|
|
357
|
+
l.redirection ? k.value = Number(u) : m.value = Number(u);
|
|
359
358
|
}
|
|
360
359
|
}), E = a({
|
|
361
|
-
get: () => l.redirection ? V.value :
|
|
360
|
+
get: () => l.redirection ? V.value : f.value,
|
|
362
361
|
set: (u) => {
|
|
363
|
-
l.redirection ? V.value = u :
|
|
362
|
+
l.redirection ? V.value = u : f.value = u;
|
|
364
363
|
}
|
|
365
364
|
}), G = a(() => typeof l.link != "string");
|
|
366
365
|
function x() {
|
|
@@ -377,8 +376,8 @@ const ct = Ze("event", () => {
|
|
|
377
376
|
r();
|
|
378
377
|
}
|
|
379
378
|
return He(() => {
|
|
380
|
-
|
|
381
|
-
}), (u,
|
|
379
|
+
g.value && B(), l.redirection;
|
|
380
|
+
}), (u, y) => (W(), pe("form", {
|
|
382
381
|
class: Xe([
|
|
383
382
|
"konnectio-event-search-form",
|
|
384
383
|
{ "has-locations": z(F) },
|
|
@@ -393,7 +392,7 @@ const ct = Ze("event", () => {
|
|
|
393
392
|
default: Qe(() => [
|
|
394
393
|
z(F) ? (W(), Je(st, {
|
|
395
394
|
modelValue: I.value,
|
|
396
|
-
"onUpdate:modelValue":
|
|
395
|
+
"onUpdate:modelValue": y[0] || (y[0] = (d) => I.value = d),
|
|
397
396
|
key: "location",
|
|
398
397
|
label: z(A)("general.location"),
|
|
399
398
|
icon: "location-dot",
|
|
@@ -401,19 +400,19 @@ const ct = Ze("event", () => {
|
|
|
401
400
|
"icon-placement": "label",
|
|
402
401
|
"label-key": "name",
|
|
403
402
|
"value-key": "id",
|
|
404
|
-
options: z(
|
|
403
|
+
options: z(D),
|
|
405
404
|
searchable: !1
|
|
406
405
|
}, null, 8, ["modelValue", "label", "options"])) : me("", !0),
|
|
407
406
|
X(ut, {
|
|
408
407
|
modelValue: E.value,
|
|
409
|
-
"onUpdate:modelValue":
|
|
408
|
+
"onUpdate:modelValue": y[1] || (y[1] = (d) => E.value = d),
|
|
410
409
|
key: "date",
|
|
411
410
|
label: z(A)("event.selectDate"),
|
|
412
411
|
"icon-type": "fas",
|
|
413
412
|
"icon-placement": "label",
|
|
414
413
|
"min-date": /* @__PURE__ */ new Date()
|
|
415
414
|
}, null, 8, ["modelValue", "label", "min-date"]),
|
|
416
|
-
u.redirection ? (W(),
|
|
415
|
+
u.redirection ? (W(), pe("li", vt, [
|
|
417
416
|
X(it, {
|
|
418
417
|
type: "submit",
|
|
419
418
|
label: z(A)("availability.buttonLabel")
|
|
@@ -424,9 +423,9 @@ const ct = Ze("event", () => {
|
|
|
424
423
|
})
|
|
425
424
|
], 34));
|
|
426
425
|
}
|
|
427
|
-
}), yt = /* @__PURE__ */ rt(dt, [["__scopeId", "data-v-
|
|
426
|
+
}), yt = /* @__PURE__ */ rt(dt, [["__scopeId", "data-v-8b1ddb1a"]]);
|
|
428
427
|
export {
|
|
429
428
|
yt as E,
|
|
430
429
|
ct as u
|
|
431
430
|
};
|
|
432
|
-
//# sourceMappingURL=EventAvailabilityForm-
|
|
431
|
+
//# sourceMappingURL=EventAvailabilityForm-DphCQOMO.js.map
|
|
Binary file
|