@konnectio/core 4.0.56-rc33 → 4.0.56-rc35
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-tze5AH3K.js → ActionField-Bruv7ZZW.js} +1 -1
- package/dist/ActionField-Bruv7ZZW.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BO4Erg_O.js → AvailabilitySkeleton-DxVPZPw3.js} +3 -3
- package/dist/AvailabilitySkeleton-DxVPZPw3.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js} +1 -1
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js.br +0 -0
- package/dist/{CheckoutWindow-CIZWV-gI.js → CheckoutWindow-Dn3fiFuv.js} +1 -1
- package/dist/{CheckoutWindow-CIZWV-gI.js.br → CheckoutWindow-Dn3fiFuv.js.br} +0 -0
- package/dist/{ErrorMessage-BzZDhDkX.js → ErrorMessage-VK8egk99.js} +1 -1
- package/dist/ErrorMessage-VK8egk99.js.br +0 -0
- package/dist/{EventAvailabilityForm-D73TXrag.js → EventAvailabilityForm-DbkL5luy.js} +141 -141
- package/dist/EventAvailabilityForm-DbkL5luy.js.br +0 -0
- package/dist/{Field-oZiblvji.js → Field-fZ3Q2e9-.js} +1 -1
- package/dist/Field-fZ3Q2e9-.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js} +8 -8
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js.br +0 -0
- package/dist/{TermsOfService-yJlRLBDk.js → TermsOfService-2g29W45E.js} +2 -2
- package/dist/availability.js +4 -4
- package/dist/availability.js.br +0 -0
- package/dist/event.js +223 -222
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +4 -4
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +59 -58
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +492 -531
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-B71LqMrD.js → masonry.plugin-WFnnzw7L.js} +642 -602
- package/dist/masonry.plugin-WFnnzw7L.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +5 -5
- package/dist/ActionField-tze5AH3K.js.br +0 -0
- package/dist/AvailabilitySkeleton-BO4Erg_O.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js.br +0 -0
- package/dist/ErrorMessage-BzZDhDkX.js.br +0 -0
- package/dist/EventAvailabilityForm-D73TXrag.js.br +0 -0
- package/dist/Field-oZiblvji.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js.br +0 -0
- package/dist/masonry.plugin-B71LqMrD.js.br +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { H as Ke, J as He, K as ee, L as Qe, M as Je, N as me, l as te, m as s, i as a, O as
|
|
2
|
-
import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-
|
|
1
|
+
import { H as Ke, J as He, K as ee, L as Qe, M as Je, N as me, l as te, m as s, i as a, O as p, P as W, Q as fe, R as X, U as We, V as R, W as _, X as N, Y as Xe, d as Ye, u as Ze, p as et, o as Y, c as ge, e as Z, w as tt, g as z, a as at, j as nt, b as he, C as ot, Z as lt, n as st, q as it, _ as rt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
|
|
2
|
+
import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js";
|
|
3
3
|
const ct = Ke("event", () => {
|
|
4
|
-
const U = He(), { voucher: i } = ee(Qe()), { display:
|
|
4
|
+
const U = He(), { voucher: i } = ee(Qe()), { display: y } = Je(), { bearerToken: I, metaData: V } = ee(me()), j = me(), b = te(), m = s({}), x = a(() => Object.keys(m.value).length > 0), t = s(void 0), o = s(!0), r = s(p.InitialState), A = s(NaN), C = s(1), k = s(NaN), $ = s(NaN), D = s(""), P = W("konnectio_name", "", void 0, { serializer: X.string }), F = W("konnectio_phone", "", void 0, { serializer: X.string }), G = W("konnectio_email", "", void 0, { serializer: X.string }), u = s(""), f = s({}), d = s({}), B = s("");
|
|
5
5
|
function l(e) {
|
|
6
6
|
return e ? e.templateId !== void 0 : !1;
|
|
7
7
|
}
|
|
8
|
-
const ye = a(() =>
|
|
8
|
+
const ye = a(() => j.metaData.hotels.findIndex((e) => e.id === b.eventLocation) || 0), T = a(() => j.metaData.hotels[ye.value]), be = a(() => T.value.maxNumberPerBooking ? T.value.maxNumberPerBooking : 1 / 0), ke = a(() => T.value.name ? T.value.name : ""), De = a(() => T.value.subtitle ? T.value.subtitle : ""), M = a(() => b.searchDate.toISOString()), Ie = a(() => l(t.value)), q = a(() => l(t.value) ? t.value.numberOfDays : C.value), Ae = a(() => l(t.value) ? t.value.packageCount : 0), we = a(() => l(t.value) ? t.value.fromDate : ""), L = a(() => m.value.events !== void 0 ? m.value.events.find((e) => e.id === k.value) : void 0), Se = a(() => L.value ? L.value.length : void 0), ae = a(() => l(t.value) ? t.value.templateId : 0), Pe = a(() => m.value.events), Le = a(() => m.value.templates), Ee = a(() => m.value.events.length > 0), Ne = a(() => m.value.templates.length > 0), ne = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : fe.None), K = a(() => {
|
|
9
9
|
if (!l(t.value))
|
|
10
10
|
return t.value;
|
|
11
11
|
}), oe = a(() => {
|
|
@@ -19,43 +19,43 @@ const ct = Ke("event", () => {
|
|
|
19
19
|
return 0;
|
|
20
20
|
}), le = a(() => {
|
|
21
21
|
if (l(t.value))
|
|
22
|
-
return t.value.
|
|
22
|
+
return t.value.rooms;
|
|
23
23
|
});
|
|
24
24
|
function H(e, n, c) {
|
|
25
|
-
let
|
|
25
|
+
let g = 0;
|
|
26
26
|
if (l(t.value)) {
|
|
27
|
-
const v = t.value.
|
|
27
|
+
const v = t.value.rooms[c];
|
|
28
28
|
if (v) {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
const S =
|
|
32
|
-
|
|
29
|
+
const E = v.addons, w = f.value[`${n}.${e}.${c}`] || 0;
|
|
30
|
+
if (w > 0) {
|
|
31
|
+
const S = E?.find((O) => O.id === e), h = typeof w == "boolean" ? 1 : w;
|
|
32
|
+
g += We(S?.price, S?.quantityStrategy, q.value, v.adultPerRoom) * h;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
} else {
|
|
36
|
-
const v =
|
|
36
|
+
const v = d.value[e] || 0;
|
|
37
37
|
if (v > 0) {
|
|
38
|
-
const
|
|
39
|
-
|
|
38
|
+
const E = L.value?.products?.find((w) => w.productID === e);
|
|
39
|
+
E && (g += E.price * v);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return g;
|
|
43
43
|
}
|
|
44
44
|
function Q(e, n) {
|
|
45
45
|
let c = 0;
|
|
46
46
|
if (l(t.value))
|
|
47
|
-
for (const
|
|
48
|
-
const v =
|
|
47
|
+
for (const g in f.value) {
|
|
48
|
+
const v = g.split(".");
|
|
49
49
|
parseInt(v[0]) === e && parseInt(v[2]) === n && (c += H(parseInt(v[1]), e, n));
|
|
50
50
|
}
|
|
51
51
|
else
|
|
52
|
-
for (const
|
|
53
|
-
c += H(parseInt(
|
|
52
|
+
for (const g in d.value)
|
|
53
|
+
c += H(parseInt(g)) * C.value;
|
|
54
54
|
return c;
|
|
55
55
|
}
|
|
56
|
-
const se = a(() => l(t.value) && t.value.totalPrice || 0),
|
|
56
|
+
const se = a(() => l(t.value) && t.value.totalPrice || 0), _e = a(() => {
|
|
57
57
|
if (l(t.value))
|
|
58
|
-
return t.value.
|
|
58
|
+
return t.value.rooms === void 0 ? NaN : t.value.rooms.flatMap((e) => e.roomGroupId).reduce(
|
|
59
59
|
(e, n, c) => e + Q(n, c),
|
|
60
60
|
se.value
|
|
61
61
|
) || 0;
|
|
@@ -63,43 +63,43 @@ const ct = Ke("event", () => {
|
|
|
63
63
|
let e = Q();
|
|
64
64
|
return e += oe.value, e;
|
|
65
65
|
}
|
|
66
|
-
}),
|
|
67
|
-
const e =
|
|
66
|
+
}), Ce = a(() => l(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Te = a(() => l(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Me = a(() => {
|
|
67
|
+
const e = d.value;
|
|
68
68
|
let n = 0;
|
|
69
69
|
for (const c in e)
|
|
70
70
|
n += Number.isNaN(e[c]) ? 0 : e[c];
|
|
71
71
|
return n > 0;
|
|
72
|
-
}), ie = a(() => l(t.value) ? !1 : Object.keys(
|
|
72
|
+
}), ie = a(() => l(t.value) ? !1 : Object.keys(d.value).length > 0), Oe = a(() => !!(P.value !== "" && G.value !== "" && F.value.length >= 5 && (!ie.value || Me.value) && (!(!l(t.value) && ne.value !== fe.FullDayEvent) || D.value !== "")));
|
|
73
73
|
function Re(e) {
|
|
74
|
-
return r.value ===
|
|
74
|
+
return r.value === p.ReservationState && k.value === e && o.value;
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const ze = a(() => !(r.value === p.InitialState && o.value)), Ve = a(() => !(r.value === p.AvailabilityState && o.value)), $e = a(() => t.value !== void 0), Fe = a(() => r.value === p.PaymentState && o.value);
|
|
77
77
|
async function re() {
|
|
78
78
|
try {
|
|
79
79
|
const e = (await R.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
|
|
80
80
|
params: {
|
|
81
|
-
language:
|
|
81
|
+
language: _()
|
|
82
82
|
},
|
|
83
83
|
headers: {
|
|
84
84
|
Authorization: I.value,
|
|
85
85
|
Accept: "application/json"
|
|
86
86
|
}
|
|
87
87
|
})).data;
|
|
88
|
-
|
|
88
|
+
V.value = e, ue();
|
|
89
89
|
} catch {
|
|
90
|
-
|
|
91
|
-
message:
|
|
90
|
+
y({
|
|
91
|
+
message: N.t("alert.error.couldntFetchMetadata"),
|
|
92
92
|
type: "warning"
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
async function ue() {
|
|
97
|
-
r.value =
|
|
97
|
+
r.value = p.AvailabilityState, o.value = !0;
|
|
98
98
|
try {
|
|
99
99
|
const e = (await R.get("https://production.hotel-service.konnectio.dk/api/event/get", {
|
|
100
100
|
params: {
|
|
101
|
-
language:
|
|
102
|
-
restaurantId:
|
|
101
|
+
language: _(),
|
|
102
|
+
restaurantId: b.eventLocation,
|
|
103
103
|
date: M.value
|
|
104
104
|
},
|
|
105
105
|
headers: {
|
|
@@ -107,62 +107,62 @@ const ct = Ke("event", () => {
|
|
|
107
107
|
Accept: "application/json"
|
|
108
108
|
}
|
|
109
109
|
})).data;
|
|
110
|
-
|
|
110
|
+
m.value = e, o.value = !1;
|
|
111
111
|
} catch {
|
|
112
|
-
|
|
113
|
-
message:
|
|
112
|
+
y({
|
|
113
|
+
message: N.t("alert.error.couldntFetchListings"),
|
|
114
114
|
type: "warning"
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
async function
|
|
119
|
-
r.value =
|
|
118
|
+
async function Ge(e) {
|
|
119
|
+
r.value = p.ReservationState, o.value = !0;
|
|
120
120
|
try {
|
|
121
121
|
const n = (await R.get("https://production.hotel-service.konnectio.dk/api/event/get-template", {
|
|
122
122
|
params: {
|
|
123
|
-
language:
|
|
123
|
+
language: _(),
|
|
124
124
|
date: M.value,
|
|
125
125
|
templateId: k.value,
|
|
126
|
-
restaurantId:
|
|
127
|
-
numberOfPeople:
|
|
126
|
+
restaurantId: b.eventLocation,
|
|
127
|
+
numberOfPeople: A.value
|
|
128
128
|
},
|
|
129
129
|
headers: {
|
|
130
130
|
Authorization: I.value,
|
|
131
131
|
Accept: "application/json"
|
|
132
132
|
}
|
|
133
133
|
})).data;
|
|
134
|
-
n.
|
|
135
|
-
message:
|
|
134
|
+
n.rooms.length === 0 ? y({
|
|
135
|
+
message: N.t("alert.error.eventNotAvailable"),
|
|
136
136
|
type: "warning"
|
|
137
137
|
}) : (t.value = n, e()), o.value = !1;
|
|
138
138
|
} catch {
|
|
139
|
-
o.value = !1, r.value =
|
|
140
|
-
message:
|
|
139
|
+
o.value = !1, r.value = p.AvailabilityState, y({
|
|
140
|
+
message: N.t("alert.error.couldntFetchEvent"),
|
|
141
141
|
type: "warning"
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
async function
|
|
146
|
-
r.value =
|
|
145
|
+
async function je(e) {
|
|
146
|
+
r.value = p.ReservationState, o.value = !0;
|
|
147
147
|
try {
|
|
148
148
|
const n = (await R.get("https://production.hotel-service.konnectio.dk/api/event/vacant-times", {
|
|
149
149
|
params: {
|
|
150
|
-
language:
|
|
150
|
+
language: _(),
|
|
151
151
|
date: M.value,
|
|
152
|
-
numberOfPeople:
|
|
152
|
+
numberOfPeople: A.value,
|
|
153
153
|
eventId: k.value,
|
|
154
|
-
tableGroupId:
|
|
155
|
-
restaurantId:
|
|
154
|
+
tableGroupId: $.value,
|
|
155
|
+
restaurantId: b.eventLocation
|
|
156
156
|
},
|
|
157
157
|
headers: {
|
|
158
158
|
Authorization: I.value,
|
|
159
|
-
|
|
159
|
+
Accept: "application/json"
|
|
160
160
|
}
|
|
161
161
|
})).data;
|
|
162
162
|
t.value = n, o.value = !1, e();
|
|
163
163
|
} catch {
|
|
164
|
-
o.value = !1, r.value =
|
|
165
|
-
message:
|
|
164
|
+
o.value = !1, r.value = p.AvailabilityState, y({
|
|
165
|
+
message: N.t("alert.error.couldntFetchEvent"),
|
|
166
166
|
type: "warning"
|
|
167
167
|
});
|
|
168
168
|
}
|
|
@@ -170,120 +170,120 @@ const ct = Ke("event", () => {
|
|
|
170
170
|
async function Ue() {
|
|
171
171
|
try {
|
|
172
172
|
const e = (await R.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
|
|
173
|
-
language:
|
|
173
|
+
language: _(),
|
|
174
174
|
date: M.value,
|
|
175
|
-
discountCode:
|
|
176
|
-
restaurantId:
|
|
175
|
+
discountCode: B.value,
|
|
176
|
+
restaurantId: b.eventLocation
|
|
177
177
|
}, {
|
|
178
178
|
headers: {
|
|
179
179
|
Authorization: I.value,
|
|
180
|
-
|
|
180
|
+
Accept: "application/json"
|
|
181
181
|
}
|
|
182
182
|
})).data;
|
|
183
183
|
console.log(e);
|
|
184
184
|
} catch (e) {
|
|
185
|
-
console.log(e),
|
|
186
|
-
message:
|
|
185
|
+
console.log(e), y({
|
|
186
|
+
message: N.t("alert.error.discountCodeValidation"),
|
|
187
187
|
type: "warning"
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
async function xe(e) {
|
|
192
|
-
r.value =
|
|
192
|
+
r.value = p.PaymentState, o.value = !0;
|
|
193
193
|
const n = () => {
|
|
194
|
-
o.value = !1, r.value =
|
|
195
|
-
message:
|
|
194
|
+
o.value = !1, r.value = p.ReservationState, y({
|
|
195
|
+
message: N.t("booking.other.errorMessage"),
|
|
196
196
|
type: "warning"
|
|
197
197
|
});
|
|
198
198
|
};
|
|
199
|
-
let c,
|
|
200
|
-
const
|
|
199
|
+
let c, g, v;
|
|
200
|
+
const E = [];
|
|
201
201
|
if (l(t.value))
|
|
202
|
-
le.value?.forEach((
|
|
202
|
+
le.value?.forEach((h, O) => {
|
|
203
203
|
const ce = [];
|
|
204
204
|
let ve = 0;
|
|
205
|
-
for (const de in
|
|
206
|
-
const J = de.split("."), pe =
|
|
207
|
-
parseInt(J[0]) ===
|
|
205
|
+
for (const de in f.value) {
|
|
206
|
+
const J = de.split("."), pe = f.value[de];
|
|
207
|
+
parseInt(J[0]) === h.roomGroupId && parseInt(J[2]) === O && pe > 0 && (ce.push({
|
|
208
208
|
id: ve,
|
|
209
209
|
addonID: parseInt(J[1]),
|
|
210
210
|
quantity: pe
|
|
211
211
|
}), ve++);
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
adultPerRoom:
|
|
215
|
-
count:
|
|
216
|
-
roomGroupID:
|
|
213
|
+
E.push({
|
|
214
|
+
adultPerRoom: h.adultPerRoom,
|
|
215
|
+
count: h.count,
|
|
216
|
+
roomGroupID: h.roomGroupId,
|
|
217
217
|
addons: ce
|
|
218
218
|
});
|
|
219
219
|
}), c = {
|
|
220
220
|
templateID: ae.value,
|
|
221
|
-
numberOfDays:
|
|
222
|
-
templateCounts:
|
|
221
|
+
numberOfDays: C.value,
|
|
222
|
+
templateCounts: E
|
|
223
223
|
};
|
|
224
224
|
else {
|
|
225
|
-
|
|
226
|
-
for (const
|
|
227
|
-
const O =
|
|
228
|
-
O > 0 &&
|
|
229
|
-
id: parseInt(
|
|
225
|
+
g = [], v = D.value;
|
|
226
|
+
for (const h in d.value) {
|
|
227
|
+
const O = d.value[parseInt(h)];
|
|
228
|
+
O > 0 && g.push({
|
|
229
|
+
id: parseInt(h),
|
|
230
230
|
quantity: O
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
let
|
|
234
|
+
let w = "https://production.hotel-service.konnectio.dk/api/event/book-template";
|
|
235
235
|
const S = {
|
|
236
|
-
language:
|
|
237
|
-
restaurantId:
|
|
236
|
+
language: _(),
|
|
237
|
+
restaurantId: b.eventLocation,
|
|
238
238
|
date: Xe(M.value),
|
|
239
239
|
name: P.value,
|
|
240
|
-
email:
|
|
241
|
-
phone:
|
|
240
|
+
email: G.value,
|
|
241
|
+
phone: F.value,
|
|
242
242
|
remark: u.value,
|
|
243
|
-
numberOfPeople:
|
|
243
|
+
numberOfPeople: A.value,
|
|
244
244
|
days: q.value,
|
|
245
|
-
discountCode:
|
|
245
|
+
discountCode: B.value,
|
|
246
246
|
giftCardCode: i.value,
|
|
247
247
|
checkoutUrl: window.location.origin,
|
|
248
248
|
privacyUrl: window.location.origin
|
|
249
249
|
};
|
|
250
|
-
l(t.value) ? S.templateGroup = c : (S.time = v, S.eventId = k.value, S.products =
|
|
250
|
+
l(t.value) ? S.templateGroup = c : (S.time = v, S.eventId = k.value, S.products = g, w = "https://production.hotel-service.konnectio.dk/api/event/book-event"), await R.post(w, S, {
|
|
251
251
|
headers: {
|
|
252
252
|
Authorization: I.value,
|
|
253
|
-
|
|
253
|
+
Accept: "application/json"
|
|
254
254
|
}
|
|
255
|
-
}).then((
|
|
255
|
+
}).then((h) => {
|
|
256
256
|
o.value = !1, U.pay({
|
|
257
257
|
callback: e,
|
|
258
|
-
response:
|
|
258
|
+
response: h.data
|
|
259
259
|
});
|
|
260
260
|
}).catch(() => n());
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
|
|
262
|
+
function Be(e) {
|
|
263
|
+
f.value = {}, d.value = {}, D.value = "", e();
|
|
264
264
|
}
|
|
265
265
|
function qe() {
|
|
266
266
|
re();
|
|
267
267
|
}
|
|
268
268
|
return {
|
|
269
269
|
fetchMetaData: re,
|
|
270
|
-
metaData:
|
|
271
|
-
listingData:
|
|
270
|
+
metaData: V,
|
|
271
|
+
listingData: m,
|
|
272
272
|
tableBasePrice: oe,
|
|
273
273
|
availabilityData: t,
|
|
274
274
|
isLoading: o,
|
|
275
275
|
moduleState: r,
|
|
276
|
-
numberOfPeople:
|
|
277
|
-
numberOfDays:
|
|
276
|
+
numberOfPeople: A,
|
|
277
|
+
numberOfDays: C,
|
|
278
278
|
eventId: k,
|
|
279
|
-
tableGroupId:
|
|
279
|
+
tableGroupId: $,
|
|
280
280
|
arrivalTime: D,
|
|
281
|
-
addons:
|
|
282
|
-
products:
|
|
283
|
-
discountCode:
|
|
281
|
+
addons: f,
|
|
282
|
+
products: d,
|
|
283
|
+
discountCode: B,
|
|
284
284
|
name: P,
|
|
285
|
-
phone:
|
|
286
|
-
email:
|
|
285
|
+
phone: F,
|
|
286
|
+
email: G,
|
|
287
287
|
remark: u,
|
|
288
288
|
isTemplateEvent: Ie,
|
|
289
289
|
maxNumberOfPeople: be,
|
|
@@ -291,38 +291,38 @@ const ct = Ke("event", () => {
|
|
|
291
291
|
subtitle: De,
|
|
292
292
|
date: M,
|
|
293
293
|
numberOfTotalDays: q,
|
|
294
|
-
numberOfRooms:
|
|
295
|
-
fromDate:
|
|
294
|
+
numberOfRooms: Ae,
|
|
295
|
+
fromDate: we,
|
|
296
296
|
getEventData: L,
|
|
297
297
|
length: Se,
|
|
298
298
|
templateId: ae,
|
|
299
299
|
getEvents: Pe,
|
|
300
300
|
getTemplates: Le,
|
|
301
|
-
hasEvents:
|
|
302
|
-
hasTemplates:
|
|
301
|
+
hasEvents: Ee,
|
|
302
|
+
hasTemplates: Ne,
|
|
303
303
|
basePrice: se,
|
|
304
|
-
totalPrice:
|
|
304
|
+
totalPrice: _e,
|
|
305
305
|
getTemplateData: le,
|
|
306
306
|
getEventTableData: K,
|
|
307
307
|
roomUpgrade: Te,
|
|
308
|
-
weekendFee:
|
|
308
|
+
weekendFee: Ce,
|
|
309
309
|
hasProducts: ie,
|
|
310
310
|
eventRateType: ne,
|
|
311
311
|
isReservationFormFilled: Oe,
|
|
312
|
-
isMetaDataAvailable:
|
|
313
|
-
areListingsAvailable:
|
|
314
|
-
isAvailabilityDataAvailable:
|
|
315
|
-
isPaymentLoading:
|
|
312
|
+
isMetaDataAvailable: ze,
|
|
313
|
+
areListingsAvailable: Ve,
|
|
314
|
+
isAvailabilityDataAvailable: $e,
|
|
315
|
+
isPaymentLoading: Fe,
|
|
316
316
|
isEventListingLoading: Re,
|
|
317
317
|
// fetchMetaData,
|
|
318
318
|
fetchListings: ue,
|
|
319
|
-
getTemplateAvailability:
|
|
320
|
-
getEventAvailability:
|
|
319
|
+
getTemplateAvailability: Ge,
|
|
320
|
+
getEventAvailability: je,
|
|
321
321
|
validateDiscountCode: Ue,
|
|
322
322
|
localAddonPrice: H,
|
|
323
323
|
totalAddonPrice: Q,
|
|
324
324
|
createBooking: xe,
|
|
325
|
-
reset:
|
|
325
|
+
reset: Be,
|
|
326
326
|
initialize: qe,
|
|
327
327
|
hasListingData: x
|
|
328
328
|
};
|
|
@@ -337,30 +337,30 @@ const ct = Ke("event", () => {
|
|
|
337
337
|
},
|
|
338
338
|
setup(U) {
|
|
339
339
|
const i = U, {
|
|
340
|
-
eventLocation:
|
|
340
|
+
eventLocation: y,
|
|
341
341
|
eventLocations: I,
|
|
342
|
-
hasEventLocations:
|
|
343
|
-
eventLocationControl:
|
|
344
|
-
searchDate:
|
|
345
|
-
isExpired:
|
|
346
|
-
} = ee(te()), { reset: x, fetchMetadata: t, updateEventAvailability: o } = te(), { fetchListings: r } = ct(), { t:
|
|
347
|
-
get: () => i.redirection ? k.value :
|
|
342
|
+
hasEventLocations: V,
|
|
343
|
+
eventLocationControl: j,
|
|
344
|
+
searchDate: b,
|
|
345
|
+
isExpired: m
|
|
346
|
+
} = ee(te()), { reset: x, fetchMetadata: t, updateEventAvailability: o } = te(), { fetchListings: r } = ct(), { t: A } = Ze(), C = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), k = s(j.value), $ = s(C()), D = a({
|
|
347
|
+
get: () => i.redirection ? k.value : y.value,
|
|
348
348
|
set: (u) => {
|
|
349
|
-
i.redirection ? k.value = Number(u) :
|
|
349
|
+
i.redirection ? k.value = Number(u) : y.value = Number(u);
|
|
350
350
|
}
|
|
351
351
|
}), P = a({
|
|
352
|
-
get: () => i.redirection ?
|
|
352
|
+
get: () => i.redirection ? $.value : b.value,
|
|
353
353
|
set: (u) => {
|
|
354
|
-
i.redirection ?
|
|
354
|
+
i.redirection ? $.value = u : b.value = u;
|
|
355
355
|
}
|
|
356
|
-
}),
|
|
357
|
-
function
|
|
356
|
+
}), F = a(() => typeof i.link != "string");
|
|
357
|
+
function G() {
|
|
358
358
|
if (i.redirection === !0)
|
|
359
359
|
if (o({
|
|
360
360
|
date: P.value,
|
|
361
361
|
location: D.value
|
|
362
|
-
}),
|
|
363
|
-
const u =
|
|
362
|
+
}), F.value) {
|
|
363
|
+
const u = _();
|
|
364
364
|
i.link[u] ? window.location.replace(i.link[u]) : i.link.en && window.location.replace(i.link.en);
|
|
365
365
|
} else
|
|
366
366
|
window.location.replace(i.link);
|
|
@@ -368,38 +368,38 @@ const ct = Ke("event", () => {
|
|
|
368
368
|
r();
|
|
369
369
|
}
|
|
370
370
|
return et(() => {
|
|
371
|
-
|
|
372
|
-
}), (u,
|
|
371
|
+
m.value && x(), i.redirection === !1 && t();
|
|
372
|
+
}), (u, f) => (Y(), ge("form", {
|
|
373
373
|
class: st([
|
|
374
374
|
"konnectio-event-search-form",
|
|
375
|
-
{ "has-locations": V
|
|
375
|
+
{ "has-locations": z(V) },
|
|
376
376
|
{ "auto-search": !u.redirection }
|
|
377
377
|
]),
|
|
378
|
-
onSubmit: it(
|
|
378
|
+
onSubmit: it(G, ["prevent"])
|
|
379
379
|
}, [
|
|
380
380
|
Z(lt, {
|
|
381
381
|
class: "konnectio-event-search-form-content",
|
|
382
382
|
tag: "ul"
|
|
383
383
|
}, {
|
|
384
384
|
default: tt(() => [
|
|
385
|
-
V
|
|
385
|
+
z(V) ? (Y(), at(nt, {
|
|
386
386
|
modelValue: D.value,
|
|
387
|
-
"onUpdate:modelValue":
|
|
387
|
+
"onUpdate:modelValue": f[0] || (f[0] = (d) => D.value = d),
|
|
388
388
|
key: "location",
|
|
389
|
-
label:
|
|
389
|
+
label: z(A)("general.location"),
|
|
390
390
|
icon: "location-dot",
|
|
391
391
|
"icon-type": "fas",
|
|
392
392
|
"icon-placement": "label",
|
|
393
393
|
"label-key": "name",
|
|
394
394
|
"value-key": "id",
|
|
395
|
-
options:
|
|
395
|
+
options: z(I),
|
|
396
396
|
searchable: !1
|
|
397
397
|
}, null, 8, ["modelValue", "label", "options"])) : he("", !0),
|
|
398
398
|
Z(ut, {
|
|
399
399
|
modelValue: P.value,
|
|
400
|
-
"onUpdate:modelValue":
|
|
400
|
+
"onUpdate:modelValue": f[1] || (f[1] = (d) => P.value = d),
|
|
401
401
|
key: "date",
|
|
402
|
-
label:
|
|
402
|
+
label: z(A)("event.selectDate"),
|
|
403
403
|
"icon-type": "fas",
|
|
404
404
|
"icon-placement": "label",
|
|
405
405
|
"min-date": /* @__PURE__ */ new Date()
|
|
@@ -407,7 +407,7 @@ const ct = Ke("event", () => {
|
|
|
407
407
|
u.redirection ? (Y(), ge("li", vt, [
|
|
408
408
|
Z(ot, {
|
|
409
409
|
type: "submit",
|
|
410
|
-
label:
|
|
410
|
+
label: z(A)("availability.buttonLabel")
|
|
411
411
|
}, null, 8, ["label"])
|
|
412
412
|
])) : he("", !0)
|
|
413
413
|
]),
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as l, o as a, c as t, a as n, b as i, e as s, E as o, n as d, _ as r } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
1
|
+
import { d as l, o as a, c as t, a as n, b as i, e as s, E as o, n as d, _ as r } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
|
|
2
2
|
const p = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "skeleton-field-label"
|
|
Binary file
|
|
@@ -15922,7 +15922,7 @@ const Iy = Sa("tracking", () => {
|
|
|
15922
15922
|
headers: {
|
|
15923
15923
|
Authorization: Z.value,
|
|
15924
15924
|
Accept: "application/json",
|
|
15925
|
-
"Konnectio-Ver": "4.0.56-
|
|
15925
|
+
"Konnectio-Ver": "4.0.56-rc35"
|
|
15926
15926
|
}
|
|
15927
15927
|
})).data;
|
|
15928
15928
|
i.value = X, X.success !== void 0 ? z.value = !X.success : z.value = !1;
|
|
@@ -15939,7 +15939,7 @@ const Iy = Sa("tracking", () => {
|
|
|
15939
15939
|
headers: {
|
|
15940
15940
|
Authorization: Z.value,
|
|
15941
15941
|
Accept: "application/json",
|
|
15942
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
15942
|
+
"Fresh-Booking-Ver": "4.0.56-rc35"
|
|
15943
15943
|
}
|
|
15944
15944
|
}).then((j) => {
|
|
15945
15945
|
const { settings: X, translations: te } = j.data;
|
|
@@ -16006,7 +16006,7 @@ const Iy = Sa("tracking", () => {
|
|
|
16006
16006
|
headers: {
|
|
16007
16007
|
Authorization: t.value,
|
|
16008
16008
|
Accept: "application/json",
|
|
16009
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
16009
|
+
"Fresh-Booking-Ver": "4.0.56-rc35"
|
|
16010
16010
|
}
|
|
16011
16011
|
}).then((d) => {
|
|
16012
16012
|
const {
|
|
@@ -16277,7 +16277,7 @@ const Iy = Sa("tracking", () => {
|
|
|
16277
16277
|
headers: {
|
|
16278
16278
|
Authorization: s.value,
|
|
16279
16279
|
Accept: "application/json",
|
|
16280
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
16280
|
+
"Fresh-Booking-Ver": "4.0.56-rc35"
|
|
16281
16281
|
}
|
|
16282
16282
|
})).data;
|
|
16283
16283
|
o.value = Ne;
|
|
@@ -16305,7 +16305,7 @@ const Iy = Sa("tracking", () => {
|
|
|
16305
16305
|
headers: {
|
|
16306
16306
|
Authorization: s.value,
|
|
16307
16307
|
Accept: "application/json",
|
|
16308
|
-
"Konnectio-Ver": "4.0.56-
|
|
16308
|
+
"Konnectio-Ver": "4.0.56-rc35"
|
|
16309
16309
|
}
|
|
16310
16310
|
});
|
|
16311
16311
|
Re.status !== 200 ? a({
|
|
@@ -16393,7 +16393,7 @@ const Iy = Sa("tracking", () => {
|
|
|
16393
16393
|
headers: {
|
|
16394
16394
|
Authorization: s.value,
|
|
16395
16395
|
Accept: "application/json",
|
|
16396
|
-
"Konnectio-Ver": "4.0.56-
|
|
16396
|
+
"Konnectio-Ver": "4.0.56-rc35"
|
|
16397
16397
|
}
|
|
16398
16398
|
}).then((Ne) => {
|
|
16399
16399
|
$t.value = !1;
|
|
@@ -16428,7 +16428,7 @@ const Iy = Sa("tracking", () => {
|
|
|
16428
16428
|
headers: {
|
|
16429
16429
|
Authorization: s.value,
|
|
16430
16430
|
Accept: "application/json",
|
|
16431
|
-
"Konnectio-Ver": "4.0.56-
|
|
16431
|
+
"Konnectio-Ver": "4.0.56-rc35"
|
|
16432
16432
|
}
|
|
16433
16433
|
}).then((Re) => {
|
|
16434
16434
|
me.value = !1, T.value = !1, n.pay({
|
|
@@ -16558,7 +16558,7 @@ const Iy = Sa("tracking", () => {
|
|
|
16558
16558
|
headers: {
|
|
16559
16559
|
Authorization: n.bearerToken,
|
|
16560
16560
|
Accept: "application/json",
|
|
16561
|
-
"Konnectio-Ver": "4.0.56-
|
|
16561
|
+
"Konnectio-Ver": "4.0.56-rc35"
|
|
16562
16562
|
}
|
|
16563
16563
|
})).data;
|
|
16564
16564
|
i.value = O, O.defaultHotelId && (isNaN(u.value) ? u.value = O.defaultHotelId : u.value !== O.defaultHotelId && (C(), u.value = O.defaultHotelId), isNaN(c.value) && (c.value = O.defaultHotelId)), O.defaultEventId && (isNaN(p.value) ? p.value = O.defaultEventId : p.value !== O.defaultEventId && (C(), p.value = O.defaultEventId), isNaN(_.value) && (_.value = O.defaultEventId));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as o, u as a, o as r, a as i, w as c, f as e, g as s, h as p, _ } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
2
|
-
import { B as d } from "./CheckoutWindow-
|
|
1
|
+
import { d as o, u as a, o as r, a as i, w as c, f as e, g as s, h as p, _ } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
|
|
2
|
+
import { B as d } from "./CheckoutWindow-Dn3fiFuv.js";
|
|
3
3
|
const l = { class: "konnectio-terms-side-panel" }, f = ["innerHTML"], m = /* @__PURE__ */ o({
|
|
4
4
|
__name: "TermsOfService",
|
|
5
5
|
props: {
|
package/dist/availability.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as w, u as E, l as S, m as T, i as h, p as B, o as r, a as v, w as d, S as I, f as a, e as b, c as N, n as f, q as A, t as L, g as _, F as z, b as g, s as M, v as F, x as H, y as P, z as V, _ as O, A as $, B as j, D, G as U } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
2
|
-
import { H as Z, A as q } from "./AvailabilitySkeleton-
|
|
3
|
-
import { E as G } from "./EventAvailabilityForm-
|
|
4
|
-
import { E as K } from "./ErrorMessage-
|
|
1
|
+
import { d as w, u as E, l as S, m as T, i as h, p as B, o as r, a as v, w as d, S as I, f as a, e as b, c as N, n as f, q as A, t as L, g as _, F as z, b as g, s as M, v as F, x as H, y as P, z as V, _ as O, A as $, B as j, D, G as U } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
|
|
2
|
+
import { H as Z, A as q } from "./AvailabilitySkeleton-DxVPZPw3.js";
|
|
3
|
+
import { E as G } from "./EventAvailabilityForm-DbkL5luy.js";
|
|
4
|
+
import { E as K } from "./ErrorMessage-VK8egk99.js";
|
|
5
5
|
const x = (l) => (P("data-v-5c1e7504"), l = l(), V(), l), J = { class: "konnectio-availability-module" }, Q = { class: "konnectio-availability-navigation" }, R = /* @__PURE__ */ x(() => /* @__PURE__ */ a("div", { class: "konnectio-availability-divider" }, null, -1)), W = { class: "konnectio-availability-search-form" }, X = /* @__PURE__ */ w({
|
|
6
6
|
name: "AvailabilityLayout",
|
|
7
7
|
__name: "Availability",
|
package/dist/availability.js.br
CHANGED
|
Binary file
|