@konnectio/core 4.0.56-rc51 → 4.0.56-rc53
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-CsHUzdDM.js → ActionField-BbnT98_d.js} +2 -2
- package/dist/ActionField-BbnT98_d.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BpS3qH0r.js → AvailabilitySkeleton-eS7Uh_Km.js} +4 -4
- package/dist/AvailabilitySkeleton-eS7Uh_Km.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BuBqQSom.js} +2 -2
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BuBqQSom.js.br +0 -0
- package/dist/{CheckoutWindow-DQUTHQEL.js → CheckoutWindow-Dk-o8a2K.js} +2 -2
- package/dist/CheckoutWindow-Dk-o8a2K.js.br +0 -0
- package/dist/{ErrorMessage-CWHVx0Pk.js → ErrorMessage-BLQS8AY1.js} +2 -2
- package/dist/ErrorMessage-BLQS8AY1.js.br +0 -0
- package/dist/EventAvailabilityForm-heF8nd-H.js +452 -0
- package/dist/EventAvailabilityForm-heF8nd-H.js.br +0 -0
- package/dist/{Field-CIQ61QX5.js → Field-tinXCBfJ.js} +2 -2
- package/dist/Field-tinXCBfJ.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CIaEjs0f.js} +2796 -2788
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CIaEjs0f.js.br +0 -0
- package/dist/{TermsOfService-BZzRUgUN.js → TermsOfService-C-Z0lzj2.js} +3 -3
- package/dist/TermsOfService-C-Z0lzj2.js.br +0 -0
- package/dist/{_-CRFAvFk8.js → _-CjnTPqFP.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-DF6d_VKc.js → _.vue_vue_type_style_index_0_lang-B2bWg8_F.js} +2 -2
- package/dist/_.vue_vue_type_style_index_0_lang-B2bWg8_F.js.br +0 -0
- package/dist/availability.js +5 -5
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +2 -2
- package/dist/event.js +141 -137
- 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-iMEwS4uA.js → giftCard-DZylNc7h.js} +9 -9
- package/dist/giftCard-DZylNc7h.js.br +0 -0
- package/dist/hotel.js +507 -487
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-BSptmqjG.js → masonry.plugin-7lHYsZoI.js} +4 -4
- package/dist/masonry.plugin-7lHYsZoI.js.br +0 -0
- package/dist/polyfill.js +773 -772
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-CsHUzdDM.js.br +0 -0
- package/dist/AvailabilitySkeleton-BpS3qH0r.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js.br +0 -0
- package/dist/CheckoutWindow-DQUTHQEL.js.br +0 -0
- package/dist/ErrorMessage-CWHVx0Pk.js.br +0 -0
- package/dist/EventAvailabilityForm-Bk4wdYKU.js +0 -437
- package/dist/EventAvailabilityForm-Bk4wdYKU.js.br +0 -0
- package/dist/Field-CIQ61QX5.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js.br +0 -0
- package/dist/TermsOfService-BZzRUgUN.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DF6d_VKc.js.br +0 -0
- package/dist/giftCard-iMEwS4uA.js.br +0 -0
- package/dist/masonry.plugin-BSptmqjG.js.br +0 -0
package/dist/style.css.br
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js.br
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,437 +0,0 @@
|
|
|
1
|
-
import { r, c as a, d as Ue, h as qe, o as de, a as Ke, f as W, w as He, u as V, b as Qe, e as Je, g as We, l as Xe, n as Ye, i as Ze } from "./_commonjsHelpers-04Qj4xBt.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 $, g as C, i as P, 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-2iMaQIEk.js";
|
|
3
|
-
import "./deep-link.js";
|
|
4
|
-
import { _ as ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js";
|
|
5
|
-
(function() {
|
|
6
|
-
try {
|
|
7
|
-
var I = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
|
|
8
|
-
s && (I._sentryDebugIds = I._sentryDebugIds || {}, I._sentryDebugIds[s] = "73eddfed-bcab-49c4-8363-474b34d7b104", I._sentryDebugIdIdentifier = "sentry-dbid-73eddfed-bcab-49c4-8363-474b34d7b104");
|
|
9
|
-
} catch {
|
|
10
|
-
}
|
|
11
|
-
})();
|
|
12
|
-
const vt = et("event", () => {
|
|
13
|
-
const I = tt(), { voucher: s } = Z(at()), { display: d } = nt(), { bearerToken: w, metaData: F } = Z(pe()), j = pe(), m = ee(), f = r({}), U = a(() => Object.keys(f.value).length > 0), t = r(void 0), o = r(!0), i = r(p.InitialState), T = r(NaN), E = r(1), b = r(NaN), O = r(NaN), k = r(""), G = X("konnectio_name", "", void 0, { serializer: Y.string }), x = X("konnectio_phone", "", void 0, { serializer: Y.string }), u = X("konnectio_email", "", void 0, { serializer: Y.string }), L = r(""), h = r({}), D = r({}), B = r("");
|
|
14
|
-
function l(e) {
|
|
15
|
-
return e ? e.templateId !== void 0 : !1;
|
|
16
|
-
}
|
|
17
|
-
const fe = a(() => j.metaData.hotels.findIndex((e) => e.id === m.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 : ""), R = a(() => m.searchDate.toISOString()), be = a(() => l(t.value)), q = a(() => l(t.value) ? t.value.numberOfDays : E.value), ke = a(() => l(t.value) ? t.value.packageCount : 0), Ie = a(() => l(t.value) ? t.value.fromDate : ""), _ = a(() => f.value.events !== void 0 ? f.value.events.find((e) => e.id === b.value) : void 0), we = a(() => _.value ? _.value.length : void 0), te = a(() => l(t.value) ? t.value.templateId : 0), De = a(() => f.value.events), Ae = a(() => f.value.templates), Se = a(() => f.value.events.length > 0), Pe = a(() => f.value.templates.length > 0), ae = a(() => _.value && _.value.eventRateType ? _.value.eventRateType : me.None), K = a(() => {
|
|
18
|
-
if (!l(t.value))
|
|
19
|
-
return t.value;
|
|
20
|
-
}), ne = a(() => {
|
|
21
|
-
if (K.value !== void 0) {
|
|
22
|
-
const e = K.value.find(
|
|
23
|
-
(n) => n.time === k.value
|
|
24
|
-
);
|
|
25
|
-
if (e && e.price)
|
|
26
|
-
return e.price;
|
|
27
|
-
}
|
|
28
|
-
return 0;
|
|
29
|
-
}), oe = a(() => {
|
|
30
|
-
if (l(t.value))
|
|
31
|
-
return t.value.rooms;
|
|
32
|
-
});
|
|
33
|
-
function H(e, n, c) {
|
|
34
|
-
let g = 0;
|
|
35
|
-
if (l(t.value)) {
|
|
36
|
-
const v = t.value.rooms[c];
|
|
37
|
-
if (v) {
|
|
38
|
-
const N = v.addons, A = h.value[`${n}.${e}.${c}`] || 0;
|
|
39
|
-
if (A > 0) {
|
|
40
|
-
const S = N?.find((z) => z.id === e), y = typeof A == "boolean" ? 1 : A;
|
|
41
|
-
g += ot(S?.price, S?.quantityStrategy, q.value, v.adultPerRoom) * y;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
} else {
|
|
45
|
-
const v = D.value[e] || 0;
|
|
46
|
-
if (v > 0) {
|
|
47
|
-
const N = _.value?.products?.find((A) => A.productID === e);
|
|
48
|
-
N && (g += N.price * v);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return g;
|
|
52
|
-
}
|
|
53
|
-
function Q(e, n) {
|
|
54
|
-
let c = 0;
|
|
55
|
-
if (l(t.value))
|
|
56
|
-
for (const g in h.value) {
|
|
57
|
-
const v = g.split(".");
|
|
58
|
-
parseInt(v[0]) === e && parseInt(v[2]) === n && (c += H(parseInt(v[1]), e, n));
|
|
59
|
-
}
|
|
60
|
-
else
|
|
61
|
-
for (const g in D.value)
|
|
62
|
-
c += H(parseInt(g)) * E.value;
|
|
63
|
-
return c;
|
|
64
|
-
}
|
|
65
|
-
const le = a(() => l(t.value) && t.value.totalPrice || 0), Ee = a(() => {
|
|
66
|
-
if (l(t.value))
|
|
67
|
-
return t.value.rooms === void 0 ? NaN : t.value.rooms.flatMap((e) => e.roomGroupId).reduce(
|
|
68
|
-
(e, n, c) => e + Q(n, c),
|
|
69
|
-
le.value
|
|
70
|
-
) || 0;
|
|
71
|
-
{
|
|
72
|
-
let e = Q();
|
|
73
|
-
return e += ne.value, e;
|
|
74
|
-
}
|
|
75
|
-
}), Le = a(() => l(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), _e = a(() => l(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Ne = a(() => {
|
|
76
|
-
const e = D.value;
|
|
77
|
-
let n = 0;
|
|
78
|
-
for (const c in e)
|
|
79
|
-
n += Number.isNaN(e[c]) ? 0 : e[c];
|
|
80
|
-
return n > 0;
|
|
81
|
-
}), se = a(() => l(t.value) ? !1 : Object.keys(D.value).length > 0), Ce = a(() => !!(G.value !== "" && u.value !== "" && x.value.length >= 5 && (!se.value || Ne.value) && (!(!l(t.value) && ae.value !== me.FullDayEvent) || k.value !== "")));
|
|
82
|
-
function Te(e) {
|
|
83
|
-
return i.value === p.ReservationState && b.value === e && o.value;
|
|
84
|
-
}
|
|
85
|
-
const Oe = a(() => !(i.value === p.InitialState && o.value)), Me = a(() => !(i.value === p.AvailabilityState && o.value)), Re = a(() => t.value !== void 0), ze = a(() => i.value === p.PaymentState && o.value);
|
|
86
|
-
async function ie() {
|
|
87
|
-
try {
|
|
88
|
-
const e = (await $.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
|
|
89
|
-
params: {
|
|
90
|
-
language: C()
|
|
91
|
-
},
|
|
92
|
-
headers: {
|
|
93
|
-
Authorization: w.value,
|
|
94
|
-
Accept: "application/json"
|
|
95
|
-
}
|
|
96
|
-
})).data;
|
|
97
|
-
F.value = e;
|
|
98
|
-
} catch {
|
|
99
|
-
d({
|
|
100
|
-
message: P.t("alert.error.couldntFetchMetadata"),
|
|
101
|
-
type: "warning"
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
async function Ve() {
|
|
106
|
-
i.value = p.AvailabilityState, o.value = !0;
|
|
107
|
-
try {
|
|
108
|
-
const e = (await $.get("https://production.hotel-service.konnectio.dk/api/event/get", {
|
|
109
|
-
params: {
|
|
110
|
-
language: C(),
|
|
111
|
-
restaurantId: m.eventLocation,
|
|
112
|
-
date: R.value
|
|
113
|
-
},
|
|
114
|
-
headers: {
|
|
115
|
-
Authorization: w.value,
|
|
116
|
-
Accept: "application/json"
|
|
117
|
-
}
|
|
118
|
-
})).data;
|
|
119
|
-
f.value = e, o.value = !1;
|
|
120
|
-
} catch {
|
|
121
|
-
d({
|
|
122
|
-
message: P.t("alert.error.couldntFetchListings"),
|
|
123
|
-
type: "warning"
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
async function $e(e) {
|
|
128
|
-
i.value = p.ReservationState, o.value = !0;
|
|
129
|
-
try {
|
|
130
|
-
const n = (await $.get("https://production.hotel-service.konnectio.dk/api/event/get-template", {
|
|
131
|
-
params: {
|
|
132
|
-
language: C(),
|
|
133
|
-
date: R.value,
|
|
134
|
-
templateId: b.value,
|
|
135
|
-
restaurantId: m.eventLocation,
|
|
136
|
-
numberOfPeople: T.value
|
|
137
|
-
},
|
|
138
|
-
headers: {
|
|
139
|
-
Authorization: w.value,
|
|
140
|
-
Accept: "application/json"
|
|
141
|
-
}
|
|
142
|
-
})).data;
|
|
143
|
-
n.rooms.length === 0 ? d({
|
|
144
|
-
message: P.t("alert.error.eventNotAvailable"),
|
|
145
|
-
type: "warning"
|
|
146
|
-
}) : (t.value = n, e()), o.value = !1;
|
|
147
|
-
} catch {
|
|
148
|
-
o.value = !1, i.value = p.AvailabilityState, d({
|
|
149
|
-
message: P.t("alert.error.couldntFetchEvent"),
|
|
150
|
-
type: "warning"
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
async function Fe(e) {
|
|
155
|
-
i.value = p.ReservationState, o.value = !0;
|
|
156
|
-
try {
|
|
157
|
-
const n = (await $.get("https://production.hotel-service.konnectio.dk/api/event/vacant-times", {
|
|
158
|
-
params: {
|
|
159
|
-
language: C(),
|
|
160
|
-
date: R.value,
|
|
161
|
-
numberOfPeople: T.value,
|
|
162
|
-
eventId: b.value,
|
|
163
|
-
tableGroupId: O.value,
|
|
164
|
-
restaurantId: m.eventLocation
|
|
165
|
-
},
|
|
166
|
-
headers: {
|
|
167
|
-
Authorization: w.value,
|
|
168
|
-
Accept: "application/json"
|
|
169
|
-
}
|
|
170
|
-
})).data;
|
|
171
|
-
t.value = n, o.value = !1, e();
|
|
172
|
-
} catch {
|
|
173
|
-
o.value = !1, i.value = p.AvailabilityState, d({
|
|
174
|
-
message: P.t("alert.error.couldntFetchEvent"),
|
|
175
|
-
type: "warning"
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
async function Ge() {
|
|
180
|
-
if (B.value !== "")
|
|
181
|
-
try {
|
|
182
|
-
const e = (await $.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
|
|
183
|
-
language: C(),
|
|
184
|
-
date: R.value,
|
|
185
|
-
discountCode: B.value,
|
|
186
|
-
restaurantId: m.eventLocation
|
|
187
|
-
}, {
|
|
188
|
-
headers: {
|
|
189
|
-
Authorization: w.value,
|
|
190
|
-
Accept: "application/json"
|
|
191
|
-
}
|
|
192
|
-
})).data;
|
|
193
|
-
console.log(e);
|
|
194
|
-
} catch (e) {
|
|
195
|
-
console.log(e), d({
|
|
196
|
-
message: P.t("alert.error.discountCodeValidation"),
|
|
197
|
-
type: "warning"
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
else
|
|
201
|
-
d({
|
|
202
|
-
message: P.t("alert.error.discountCodeEmpty"),
|
|
203
|
-
type: "error"
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
async function xe(e) {
|
|
207
|
-
i.value = p.PaymentState, o.value = !0;
|
|
208
|
-
const n = () => {
|
|
209
|
-
o.value = !1, i.value = p.ReservationState, d({
|
|
210
|
-
message: P.t("booking.other.errorMessage"),
|
|
211
|
-
type: "warning"
|
|
212
|
-
});
|
|
213
|
-
};
|
|
214
|
-
let c, g, v;
|
|
215
|
-
const N = [];
|
|
216
|
-
if (l(t.value))
|
|
217
|
-
oe.value?.forEach((y, z) => {
|
|
218
|
-
const re = [];
|
|
219
|
-
let ue = 0;
|
|
220
|
-
for (const ce in h.value) {
|
|
221
|
-
const J = ce.split("."), ve = h.value[ce];
|
|
222
|
-
parseInt(J[0]) === y.roomGroupId && parseInt(J[2]) === z && ve > 0 && (re.push({
|
|
223
|
-
id: ue,
|
|
224
|
-
addonID: parseInt(J[1]),
|
|
225
|
-
quantity: ve
|
|
226
|
-
}), ue++);
|
|
227
|
-
}
|
|
228
|
-
N.push({
|
|
229
|
-
adultPerRoom: y.adultPerRoom,
|
|
230
|
-
count: y.count,
|
|
231
|
-
roomGroupID: y.roomGroupId,
|
|
232
|
-
addons: re
|
|
233
|
-
});
|
|
234
|
-
}), c = {
|
|
235
|
-
templateID: te.value,
|
|
236
|
-
numberOfDays: E.value,
|
|
237
|
-
templateCounts: N
|
|
238
|
-
};
|
|
239
|
-
else {
|
|
240
|
-
g = [], v = k.value;
|
|
241
|
-
for (const y in D.value) {
|
|
242
|
-
const z = D.value[parseInt(y)];
|
|
243
|
-
z > 0 && g.push({
|
|
244
|
-
id: parseInt(y),
|
|
245
|
-
quantity: z
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
let A = "https://production.hotel-service.konnectio.dk/api/event/book-template";
|
|
250
|
-
const S = {
|
|
251
|
-
language: C(),
|
|
252
|
-
restaurantId: m.eventLocation,
|
|
253
|
-
date: lt(R.value),
|
|
254
|
-
name: G.value,
|
|
255
|
-
email: u.value,
|
|
256
|
-
phone: x.value,
|
|
257
|
-
remark: L.value,
|
|
258
|
-
numberOfPeople: T.value,
|
|
259
|
-
days: q.value,
|
|
260
|
-
discountCode: B.value,
|
|
261
|
-
giftCardCode: s.value,
|
|
262
|
-
checkoutUrl: window.location.origin,
|
|
263
|
-
privacyUrl: window.location.origin
|
|
264
|
-
};
|
|
265
|
-
l(t.value) ? S.templateGroup = c : (S.time = v, S.eventId = b.value, S.products = g, A = "https://production.hotel-service.konnectio.dk/api/event/book-event"), await $.post(A, S, {
|
|
266
|
-
headers: {
|
|
267
|
-
Authorization: w.value,
|
|
268
|
-
Accept: "application/json"
|
|
269
|
-
}
|
|
270
|
-
}).then((y) => {
|
|
271
|
-
o.value = !1, I.pay({
|
|
272
|
-
callback: e,
|
|
273
|
-
response: y.data
|
|
274
|
-
});
|
|
275
|
-
}).catch(() => n());
|
|
276
|
-
}
|
|
277
|
-
function je(e) {
|
|
278
|
-
h.value = {}, D.value = {}, k.value = "", e();
|
|
279
|
-
}
|
|
280
|
-
async function Be() {
|
|
281
|
-
await Promise.all([ie(), m.fetchMetadata()]);
|
|
282
|
-
}
|
|
283
|
-
return {
|
|
284
|
-
metaData: F,
|
|
285
|
-
listingData: f,
|
|
286
|
-
tableBasePrice: ne,
|
|
287
|
-
availabilityData: t,
|
|
288
|
-
isLoading: o,
|
|
289
|
-
moduleState: i,
|
|
290
|
-
numberOfPeople: T,
|
|
291
|
-
numberOfDays: E,
|
|
292
|
-
eventId: b,
|
|
293
|
-
tableGroupId: O,
|
|
294
|
-
arrivalTime: k,
|
|
295
|
-
addons: h,
|
|
296
|
-
products: D,
|
|
297
|
-
discountCode: B,
|
|
298
|
-
name: G,
|
|
299
|
-
phone: x,
|
|
300
|
-
email: u,
|
|
301
|
-
remark: L,
|
|
302
|
-
isTemplateEvent: be,
|
|
303
|
-
maxNumberOfPeople: ge,
|
|
304
|
-
title: ye,
|
|
305
|
-
subtitle: he,
|
|
306
|
-
date: R,
|
|
307
|
-
numberOfTotalDays: q,
|
|
308
|
-
numberOfRooms: ke,
|
|
309
|
-
fromDate: Ie,
|
|
310
|
-
getEventData: _,
|
|
311
|
-
length: we,
|
|
312
|
-
templateId: te,
|
|
313
|
-
getEvents: De,
|
|
314
|
-
getTemplates: Ae,
|
|
315
|
-
hasEvents: Se,
|
|
316
|
-
hasTemplates: Pe,
|
|
317
|
-
basePrice: le,
|
|
318
|
-
totalPrice: Ee,
|
|
319
|
-
getTemplateData: oe,
|
|
320
|
-
getEventTableData: K,
|
|
321
|
-
roomUpgrade: _e,
|
|
322
|
-
weekendFee: Le,
|
|
323
|
-
hasProducts: se,
|
|
324
|
-
eventRateType: ae,
|
|
325
|
-
isReservationFormFilled: Ce,
|
|
326
|
-
isMetadataAvailable: Oe,
|
|
327
|
-
areListingsAvailable: Me,
|
|
328
|
-
isAvailabilityDataAvailable: Re,
|
|
329
|
-
isPaymentLoading: ze,
|
|
330
|
-
isEventListingLoading: Te,
|
|
331
|
-
fetchMetadata: ie,
|
|
332
|
-
fetchListings: Ve,
|
|
333
|
-
getTemplateAvailability: $e,
|
|
334
|
-
getEventAvailability: Fe,
|
|
335
|
-
validateDiscountCode: Ge,
|
|
336
|
-
localAddonPrice: H,
|
|
337
|
-
totalAddonPrice: Q,
|
|
338
|
-
createBooking: xe,
|
|
339
|
-
reset: je,
|
|
340
|
-
initialize: Be,
|
|
341
|
-
hasListingData: U
|
|
342
|
-
};
|
|
343
|
-
}), dt = {
|
|
344
|
-
class: "konnectio-search-button",
|
|
345
|
-
key: "search"
|
|
346
|
-
}, pt = /* @__PURE__ */ Ue({
|
|
347
|
-
__name: "EventAvailabilityForm",
|
|
348
|
-
props: {
|
|
349
|
-
link: {},
|
|
350
|
-
redirection: { type: Boolean, default: !0 }
|
|
351
|
-
},
|
|
352
|
-
setup(I) {
|
|
353
|
-
const s = I, {
|
|
354
|
-
eventLocation: d,
|
|
355
|
-
eventLocations: w,
|
|
356
|
-
hasEventLocations: F,
|
|
357
|
-
eventLocationControl: j,
|
|
358
|
-
searchDate: m,
|
|
359
|
-
isExpired: f
|
|
360
|
-
} = Z(ee()), { reset: U, updateEventAvailability: t } = ee(), { fetchListings: o } = vt(), { t: i } = st(), T = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), E = r(j.value), b = r(T()), O = a({
|
|
361
|
-
get: () => s.redirection ? E.value : d.value,
|
|
362
|
-
set: (u) => {
|
|
363
|
-
s.redirection ? E.value = Number(u) : d.value = Number(u);
|
|
364
|
-
}
|
|
365
|
-
}), k = a({
|
|
366
|
-
get: () => s.redirection ? b.value : m.value,
|
|
367
|
-
set: (u) => {
|
|
368
|
-
s.redirection ? b.value = u : m.value = u;
|
|
369
|
-
}
|
|
370
|
-
}), G = a(() => typeof s.link != "string");
|
|
371
|
-
function x() {
|
|
372
|
-
if (s.redirection === !0)
|
|
373
|
-
if (t({
|
|
374
|
-
date: k.value,
|
|
375
|
-
location: O.value
|
|
376
|
-
}), G.value) {
|
|
377
|
-
const u = C();
|
|
378
|
-
s.link[u] ? window.location.replace(s.link[u]) : s.link.en && window.location.replace(s.link.en);
|
|
379
|
-
} else
|
|
380
|
-
window.location.replace(s.link);
|
|
381
|
-
else
|
|
382
|
-
o();
|
|
383
|
-
}
|
|
384
|
-
return qe(() => {
|
|
385
|
-
f.value && U();
|
|
386
|
-
}), (u, L) => (de(), Ke("form", {
|
|
387
|
-
class: Ye([
|
|
388
|
-
"konnectio-event-search-form",
|
|
389
|
-
{ "has-locations": V(F) },
|
|
390
|
-
{ "auto-search": !u.redirection }
|
|
391
|
-
]),
|
|
392
|
-
onSubmit: Ze(x, ["prevent"])
|
|
393
|
-
}, [
|
|
394
|
-
W(Xe, {
|
|
395
|
-
class: "konnectio-event-search-form-content",
|
|
396
|
-
tag: "ul"
|
|
397
|
-
}, {
|
|
398
|
-
default: He(() => [
|
|
399
|
-
V(F) ? (de(), Qe(it, {
|
|
400
|
-
modelValue: O.value,
|
|
401
|
-
"onUpdate:modelValue": L[0] || (L[0] = (h) => O.value = h),
|
|
402
|
-
key: "location",
|
|
403
|
-
label: V(i)("general.location"),
|
|
404
|
-
icon: "location-dot",
|
|
405
|
-
"icon-type": "fas",
|
|
406
|
-
"icon-placement": "label",
|
|
407
|
-
"label-key": "name",
|
|
408
|
-
"value-key": "id",
|
|
409
|
-
options: V(w),
|
|
410
|
-
searchable: !1
|
|
411
|
-
}, null, 8, ["modelValue", "label", "options"])) : Je("", !0),
|
|
412
|
-
W(ct, {
|
|
413
|
-
modelValue: k.value,
|
|
414
|
-
"onUpdate:modelValue": L[1] || (L[1] = (h) => k.value = h),
|
|
415
|
-
key: "date",
|
|
416
|
-
label: V(i)("event.selectDate"),
|
|
417
|
-
"icon-type": "fas",
|
|
418
|
-
"icon-placement": "label",
|
|
419
|
-
"min-date": /* @__PURE__ */ new Date()
|
|
420
|
-
}, null, 8, ["modelValue", "label", "min-date"]),
|
|
421
|
-
We("li", dt, [
|
|
422
|
-
W(rt, {
|
|
423
|
-
type: "submit",
|
|
424
|
-
label: V(i)("availability.buttonLabel")
|
|
425
|
-
}, null, 8, ["label"])
|
|
426
|
-
])
|
|
427
|
-
]),
|
|
428
|
-
_: 1
|
|
429
|
-
})
|
|
430
|
-
], 34));
|
|
431
|
-
}
|
|
432
|
-
}), ht = /* @__PURE__ */ ut(pt, [["__scopeId", "data-v-3cccc04d"]]);
|
|
433
|
-
export {
|
|
434
|
-
ht as E,
|
|
435
|
-
vt as u
|
|
436
|
-
};
|
|
437
|
-
//# sourceMappingURL=EventAvailabilityForm-Bk4wdYKU.js.map
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|