@konnectio/core 4.0.56-rc4 → 4.0.56-rc5
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-UFZMmHDy.js → ActionField--byx0Lp1.js} +27 -28
- package/dist/ActionField--byx0Lp1.js.br +0 -0
- package/dist/AvailabilitySkeleton-cL6E9wAp.js +239 -0
- package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
- package/dist/{CheckoutWindow-2RMgPiGi.js → CheckoutWindow-_ZUCAYgm.js} +46 -47
- package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
- package/dist/{Container-XBRB0sOV.js → Container-6UeOakwz.js} +6 -7
- package/dist/Container-6UeOakwz.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js → DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js} +5 -6
- package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
- package/dist/{Field-uK3Wuuv6.js → Field-GdMucFcQ.js} +12 -13
- package/dist/Field-GdMucFcQ.js.br +5 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +27240 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
- package/dist/{ThankYou-nz4vPX4O.js → ThankYou-9pzt2SfJ.js} +1829 -1670
- package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
- package/dist/_-5uiOrU07.js +19 -0
- package/dist/_commonjsHelpers-4t9S7M5p.js +30 -0
- package/dist/availability.js +34 -35
- package/dist/availability.js.br +0 -0
- package/dist/{event--wgsUkQp.js → event-jnP6wH4w.js} +53 -54
- package/dist/event-jnP6wH4w.js.br +0 -0
- package/dist/event.js +212 -213
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +57 -58
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +106 -107
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +916 -906
- package/dist/hotel.js.br +0 -0
- package/dist/polyfill.js +2 -2
- package/dist/polyfill.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-UFZMmHDy.js.br +0 -0
- package/dist/AvailabilitySkeleton-hVUJYdXH.js +0 -242
- package/dist/AvailabilitySkeleton-hVUJYdXH.js.br +0 -0
- package/dist/CheckoutWindow-2RMgPiGi.js.br +0 -0
- package/dist/Container-XBRB0sOV.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js.br +0 -0
- package/dist/Field-uK3Wuuv6.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js +0 -21472
- package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js.br +0 -0
- package/dist/ThankYou-nz4vPX4O.js.br +0 -0
- package/dist/_-oPH7HiaC.js +0 -20
- package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
- package/dist/event--wgsUkQp.js.br +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var I = (M, B, v) => new Promise((y, p) => {
|
|
2
|
-
var
|
|
2
|
+
var m = (l) => {
|
|
3
3
|
try {
|
|
4
4
|
o(v.next(l));
|
|
5
5
|
} catch (P) {
|
|
@@ -11,18 +11,17 @@ var I = (M, B, v) => new Promise((y, p) => {
|
|
|
11
11
|
} catch (P) {
|
|
12
12
|
p(P);
|
|
13
13
|
}
|
|
14
|
-
}, o = (l) => l.done ? y(l.value) : Promise.resolve(l.value).then(
|
|
14
|
+
}, o = (l) => l.done ? y(l.value) : Promise.resolve(l.value).then(m, t);
|
|
15
15
|
o((v = v.apply(M, B)).next());
|
|
16
16
|
});
|
|
17
|
-
import { d as Ge, u as Ue, s as ue, a as _e, b as qe, c as Ke, E as d, e as Q, O as ie, S as H, g as xe,
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
function r(e) {
|
|
17
|
+
import { d as Ge, u as Ue, s as ue, a as _e, b as qe, c as Ke, r as u, E as d, e as Q, f as a, O as ie, S as H, g as xe, h as $, i as F, j as S } from "./SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js";
|
|
18
|
+
const He = Ge("event", () => {
|
|
19
|
+
const M = Ue(), { voucher: B } = ue(_e()), { display: v } = qe(), { bearerToken: y } = ue(Ke()), p = u({}), m = u({}), t = u(void 0), o = u(!0), l = u(d.InitialState), P = u(/* @__PURE__ */ new Date()), O = u(NaN), R = u(1), w = u(NaN), J = u(NaN), N = u(""), V = Q("konnectio_name", "", void 0, { serializer: H.string }), L = Q("konnectio_phone", "", void 0, { serializer: H.string }), G = Q("konnectio_email", "", void 0, { serializer: H.string }), W = u(""), A = u({}), b = u({}), U = u("");
|
|
20
|
+
function s(e) {
|
|
22
21
|
return e.templateID !== void 0;
|
|
23
22
|
}
|
|
24
|
-
const ve = a(() => p.value.currency), ce = a(() => p.value.maxNumberPerBooking), de = a(() => p.value.title), pe = a(() => p.value.subtitle),
|
|
25
|
-
if (!
|
|
23
|
+
const ve = a(() => p.value.currency), ce = a(() => p.value.maxNumberPerBooking), de = a(() => p.value.title), pe = a(() => p.value.subtitle), ge = a(() => p.value.slideshow), C = a(() => P.value.toISOString()), me = a(() => s(t.value)), _ = a(() => s(t.value) ? t.value.numberOfDays : R.value), fe = a(() => s(t.value) ? t.value.packageCount : 0), he = a(() => s(t.value) ? t.value.fromDate : ""), D = a(() => m.value.events.find((e) => e.id === w.value)), ye = a(() => D.value ? D.value.length : void 0), X = a(() => s(t.value) ? t.value.templateID : 0), be = a(() => m.value.events), ke = a(() => m.value.templates), De = a(() => m.value.events.length > 0), Ie = a(() => m.value.templates.length > 0), Y = a(() => D.value && D.value.eventRateType ? D.value.eventRateType : ie.None), q = a(() => {
|
|
24
|
+
if (!s(t.value))
|
|
26
25
|
return t.value;
|
|
27
26
|
}), Z = a(() => {
|
|
28
27
|
if (q.value !== void 0) {
|
|
@@ -34,44 +33,44 @@ const Je = Ge("event", () => {
|
|
|
34
33
|
}
|
|
35
34
|
return 0;
|
|
36
35
|
}), ee = a(() => {
|
|
37
|
-
if (
|
|
36
|
+
if (s(t.value))
|
|
38
37
|
return t.value.templateCounts;
|
|
39
38
|
}), Se = a(() => (e) => p.value.eventImages.filter((n) => n.eventID === e));
|
|
40
39
|
function K(e, n, i) {
|
|
41
40
|
var f, T;
|
|
42
|
-
let
|
|
43
|
-
if (
|
|
41
|
+
let g = 0;
|
|
42
|
+
if (s(t.value)) {
|
|
44
43
|
const h = t.value.templateCounts[i];
|
|
45
44
|
if (h) {
|
|
46
45
|
const c = h.addons, k = A.value[`${n}.${e}.${i}`] || 0;
|
|
47
46
|
if (k > 0) {
|
|
48
|
-
const
|
|
49
|
-
|
|
47
|
+
const r = c == null ? void 0 : c.find((z) => z.addonID === e), E = typeof k == "boolean" ? 1 : k;
|
|
48
|
+
g += xe(r == null ? void 0 : r.price, r == null ? void 0 : r.quantityStrategy, _.value, h.adultPerRoom) * E;
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
} else {
|
|
53
52
|
const h = b.value[e] || 0;
|
|
54
53
|
if (h > 0) {
|
|
55
54
|
const c = (T = (f = D.value) == null ? void 0 : f.products) == null ? void 0 : T.find((k) => k.productID === e);
|
|
56
|
-
c && (
|
|
55
|
+
c && (g += c.price * h);
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
|
-
return
|
|
58
|
+
return g;
|
|
60
59
|
}
|
|
61
60
|
function x(e, n) {
|
|
62
61
|
let i = 0;
|
|
63
|
-
if (
|
|
64
|
-
for (const
|
|
65
|
-
const f =
|
|
62
|
+
if (s(t.value))
|
|
63
|
+
for (const g in A.value) {
|
|
64
|
+
const f = g.split(".");
|
|
66
65
|
parseInt(f[0]) === e && parseInt(f[2]) === n && (i += K(parseInt(f[1]), e, n));
|
|
67
66
|
}
|
|
68
67
|
else
|
|
69
|
-
for (const
|
|
70
|
-
i += K(parseInt(
|
|
68
|
+
for (const g in b.value)
|
|
69
|
+
i += K(parseInt(g)) * R.value;
|
|
71
70
|
return i;
|
|
72
71
|
}
|
|
73
|
-
const te = a(() =>
|
|
74
|
-
if (
|
|
72
|
+
const te = a(() => s(t.value) && t.value.totalPrice || 0), Pe = a(() => {
|
|
73
|
+
if (s(t.value))
|
|
75
74
|
return t.value.templateCounts === void 0 ? NaN : t.value.templateCounts.flatMap((e) => e.roomGroupID).reduce(
|
|
76
75
|
(e, n, i) => e + x(n, i),
|
|
77
76
|
te.value
|
|
@@ -80,13 +79,13 @@ const Je = Ge("event", () => {
|
|
|
80
79
|
let e = x();
|
|
81
80
|
return e += Z.value, e;
|
|
82
81
|
}
|
|
83
|
-
}), we = a(() =>
|
|
82
|
+
}), we = a(() => s(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Ae = a(() => s(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Ce = a(() => {
|
|
84
83
|
const e = b.value;
|
|
85
84
|
let n = 0;
|
|
86
85
|
for (const i in e)
|
|
87
86
|
n += Number.isNaN(e[i]) ? 0 : e[i];
|
|
88
87
|
return n > 0;
|
|
89
|
-
}), ae = a(() =>
|
|
88
|
+
}), ae = a(() => s(t.value) ? !1 : Object.keys(b.value).length > 0), Ee = a(() => !!(V.value !== "" && G.value !== "" && L.value.length >= 5 && (!ae.value || Ce.value) && (!(!s(t.value) && Y.value !== ie.FullDayEvent) || N.value !== "")));
|
|
90
89
|
function Fe(e) {
|
|
91
90
|
return l.value === d.ReservationState && w.value === e && o.value;
|
|
92
91
|
}
|
|
@@ -100,7 +99,7 @@ const Je = Ge("event", () => {
|
|
|
100
99
|
},
|
|
101
100
|
headers: {
|
|
102
101
|
Authorization: y.value,
|
|
103
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
102
|
+
"Fresh-Booking-Ver": "4.0.56-rc5"
|
|
104
103
|
}
|
|
105
104
|
})).data;
|
|
106
105
|
p.value = e, oe();
|
|
@@ -123,10 +122,10 @@ const Je = Ge("event", () => {
|
|
|
123
122
|
},
|
|
124
123
|
headers: {
|
|
125
124
|
Authorization: y.value,
|
|
126
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
125
|
+
"Fresh-Booking-Ver": "4.0.56-rc5"
|
|
127
126
|
}
|
|
128
127
|
})).data;
|
|
129
|
-
|
|
128
|
+
m.value = e, o.value = !1;
|
|
130
129
|
} catch (e) {
|
|
131
130
|
v({
|
|
132
131
|
message: S.t("alert.error.couldntFetchListings"),
|
|
@@ -148,7 +147,7 @@ const Je = Ge("event", () => {
|
|
|
148
147
|
},
|
|
149
148
|
headers: {
|
|
150
149
|
Authorization: y.value,
|
|
151
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
150
|
+
"Fresh-Booking-Ver": "4.0.56-rc5"
|
|
152
151
|
}
|
|
153
152
|
})).data;
|
|
154
153
|
n.templateCounts.length === 0 ? v({
|
|
@@ -177,7 +176,7 @@ const Je = Ge("event", () => {
|
|
|
177
176
|
},
|
|
178
177
|
headers: {
|
|
179
178
|
Authorization: y.value,
|
|
180
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
179
|
+
"Fresh-Booking-Ver": "4.0.56-rc5"
|
|
181
180
|
}
|
|
182
181
|
})).data;
|
|
183
182
|
t.value = n, o.value = !1, e();
|
|
@@ -200,7 +199,7 @@ const Je = Ge("event", () => {
|
|
|
200
199
|
},
|
|
201
200
|
headers: {
|
|
202
201
|
Authorization: y.value,
|
|
203
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
202
|
+
"Fresh-Booking-Ver": "4.0.56-rc5"
|
|
204
203
|
}
|
|
205
204
|
})).data;
|
|
206
205
|
console.log(e);
|
|
@@ -222,24 +221,24 @@ const Je = Ge("event", () => {
|
|
|
222
221
|
type: "warning"
|
|
223
222
|
});
|
|
224
223
|
};
|
|
225
|
-
let i,
|
|
224
|
+
let i, g, f;
|
|
226
225
|
const T = [];
|
|
227
|
-
if (
|
|
228
|
-
(k = ee.value) == null || k.forEach((
|
|
226
|
+
if (s(t.value))
|
|
227
|
+
(k = ee.value) == null || k.forEach((r, E) => {
|
|
229
228
|
const z = [];
|
|
230
229
|
let le = 0;
|
|
231
|
-
for (const
|
|
232
|
-
const j =
|
|
233
|
-
parseInt(j[0]) ===
|
|
230
|
+
for (const se in A.value) {
|
|
231
|
+
const j = se.split("."), re = A.value[se];
|
|
232
|
+
parseInt(j[0]) === r.roomGroupID && parseInt(j[2]) === E && re > 0 && (z.push({
|
|
234
233
|
id: le,
|
|
235
234
|
addonID: parseInt(j[1]),
|
|
236
|
-
quantity:
|
|
235
|
+
quantity: re
|
|
237
236
|
}), le++);
|
|
238
237
|
}
|
|
239
238
|
T.push({
|
|
240
|
-
adultPerRoom:
|
|
241
|
-
count:
|
|
242
|
-
roomGroupID:
|
|
239
|
+
adultPerRoom: r.adultPerRoom,
|
|
240
|
+
count: r.count,
|
|
241
|
+
roomGroupID: r.roomGroupID,
|
|
243
242
|
addons: z
|
|
244
243
|
});
|
|
245
244
|
}), i = {
|
|
@@ -248,11 +247,11 @@ const Je = Ge("event", () => {
|
|
|
248
247
|
templateCounts: T
|
|
249
248
|
};
|
|
250
249
|
else {
|
|
251
|
-
|
|
252
|
-
for (const
|
|
253
|
-
const E = b.value[parseInt(
|
|
254
|
-
E > 0 &&
|
|
255
|
-
id: parseInt(
|
|
250
|
+
g = [], f = N.value;
|
|
251
|
+
for (const r in b.value) {
|
|
252
|
+
const E = b.value[parseInt(r)];
|
|
253
|
+
E > 0 && g.push({
|
|
254
|
+
id: parseInt(r),
|
|
256
255
|
quantity: E
|
|
257
256
|
});
|
|
258
257
|
}
|
|
@@ -271,15 +270,15 @@ const Je = Ge("event", () => {
|
|
|
271
270
|
checkoutUrl: window.location.origin,
|
|
272
271
|
privacyUrl: window.location.origin
|
|
273
272
|
};
|
|
274
|
-
|
|
273
|
+
s(t.value) ? c.templateGroup = i : (c.time = f, c.eventId = w.value, c.products = g, h = "https://production.hotel-service.konnectio.dk/api/v3/event/event-book"), yield F.post(h, c, {
|
|
275
274
|
headers: {
|
|
276
275
|
Authorization: y.value,
|
|
277
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
276
|
+
"Fresh-Booking-Ver": "4.0.56-rc5"
|
|
278
277
|
}
|
|
279
|
-
}).then((
|
|
278
|
+
}).then((r) => {
|
|
280
279
|
o.value = !1, M.pay({
|
|
281
280
|
callback: e,
|
|
282
|
-
response:
|
|
281
|
+
response: r.data
|
|
283
282
|
});
|
|
284
283
|
}).catch(() => n());
|
|
285
284
|
});
|
|
@@ -292,7 +291,7 @@ const Je = Ge("event", () => {
|
|
|
292
291
|
}
|
|
293
292
|
return {
|
|
294
293
|
metaData: p,
|
|
295
|
-
listingData:
|
|
294
|
+
listingData: m,
|
|
296
295
|
tableBasePrice: Z,
|
|
297
296
|
availabilityData: t,
|
|
298
297
|
isLoading: o,
|
|
@@ -310,12 +309,12 @@ const Je = Ge("event", () => {
|
|
|
310
309
|
phone: L,
|
|
311
310
|
email: G,
|
|
312
311
|
remark: W,
|
|
313
|
-
isTemplateEvent:
|
|
312
|
+
isTemplateEvent: me,
|
|
314
313
|
currency: ve,
|
|
315
314
|
maxNumberOfPeople: ce,
|
|
316
315
|
title: de,
|
|
317
316
|
subtitle: pe,
|
|
318
|
-
slideshow:
|
|
317
|
+
slideshow: ge,
|
|
319
318
|
date: C,
|
|
320
319
|
numberOfTotalDays: _,
|
|
321
320
|
numberOfRooms: fe,
|
|
@@ -355,5 +354,5 @@ const Je = Ge("event", () => {
|
|
|
355
354
|
};
|
|
356
355
|
});
|
|
357
356
|
export {
|
|
358
|
-
|
|
357
|
+
He as u
|
|
359
358
|
};
|
|
Binary file
|