@konnectio/core 4.0.56-rc35 → 4.0.56-rc36
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-Bruv7ZZW.js → ActionField-Ct6NhfWq.js} +43 -34
- package/dist/ActionField-Ct6NhfWq.js.br +0 -0
- package/dist/AvailabilitySkeleton-DOhrMVl4.js +286 -0
- package/dist/AvailabilitySkeleton-DOhrMVl4.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js} +519 -510
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js.br +0 -0
- package/dist/{CheckoutWindow-Dn3fiFuv.js → CheckoutWindow-BVIOQbbL.js} +143 -134
- package/dist/CheckoutWindow-BVIOQbbL.js.br +0 -0
- package/dist/{ErrorMessage-VK8egk99.js → ErrorMessage-DTSuSB8R.js} +27 -18
- package/dist/ErrorMessage-DTSuSB8R.js.br +0 -0
- package/dist/EventAvailabilityForm-DVcDsdr8.js +432 -0
- package/dist/EventAvailabilityForm-DVcDsdr8.js.br +0 -0
- package/dist/Field-IsLH1tNU.js +50 -0
- package/dist/Field-IsLH1tNU.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js +21280 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js.br +0 -0
- package/dist/TermsOfService-BORqI07-.js +35 -0
- package/dist/TermsOfService-BORqI07-.js.br +0 -0
- package/dist/_commonjsHelpers-UWZO_9XV.js +11796 -0
- package/dist/_commonjsHelpers-UWZO_9XV.js.br +0 -0
- package/dist/availability.js +60 -50
- package/dist/availability.js.br +0 -0
- package/dist/event.js +284 -274
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +75 -65
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +242 -232
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +697 -693
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-WFnnzw7L.js → masonry.plugin-gY-oSFpV.js} +43 -34
- package/dist/masonry.plugin-gY-oSFpV.js.br +0 -0
- package/dist/navigation.js +10 -1
- package/dist/polyfill.js +14745 -4715
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +8 -6
- package/dist/ActionField-Bruv7ZZW.js.br +0 -0
- package/dist/AvailabilitySkeleton-DxVPZPw3.js +0 -277
- package/dist/AvailabilitySkeleton-DxVPZPw3.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js.br +0 -0
- package/dist/CheckoutWindow-Dn3fiFuv.js.br +0 -0
- package/dist/ErrorMessage-VK8egk99.js.br +0 -0
- package/dist/EventAvailabilityForm-DbkL5luy.js +0 -422
- package/dist/EventAvailabilityForm-DbkL5luy.js.br +0 -0
- package/dist/Field-fZ3Q2e9-.js +0 -41
- package/dist/Field-fZ3Q2e9-.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js +0 -30755
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js.br +0 -0
- package/dist/TermsOfService-2g29W45E.js +0 -26
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/masonry.plugin-WFnnzw7L.js.br +0 -0
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
import { r as i, g as a, d as Ke, h as He, o as W, c as me, e as X, w as Qe, u as z, a as Je, b as fe, l as We, n as Xe, i as Ye } from "./_commonjsHelpers-UWZO_9XV.js";
|
|
2
|
+
import { j as Ze, k as et, s as ee, l as tt, n as at, o as ge, d as te, p, q as Y, O as ye, S as Z, t as nt, v as $, w as C, x as N, y as ot, u as lt, a as st, C as it, _ as rt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js";
|
|
3
|
+
import "./navigation.js";
|
|
4
|
+
import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var I = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
|
|
8
|
+
l && (I._sentryDebugIds = I._sentryDebugIds || {}, I._sentryDebugIds[l] = "9936e361-dc5f-4273-a47b-d3b89b26fedc", I._sentryDebugIdIdentifier = "sentry-dbid-9936e361-dc5f-4273-a47b-d3b89b26fedc");
|
|
9
|
+
} catch {
|
|
10
|
+
}
|
|
11
|
+
})();
|
|
12
|
+
const ct = Ze("event", () => {
|
|
13
|
+
const I = et(), { voucher: l } = ee(tt()), { display: m } = at(), { bearerToken: w, metaData: F } = ee(ge()), x = ge(), b = te(), f = i({}), B = a(() => Object.keys(f.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), D = i(""), E = Y("konnectio_name", "", void 0, { serializer: Z.string }), G = Y("konnectio_phone", "", void 0, { serializer: Z.string }), j = Y("konnectio_email", "", void 0, { serializer: Z.string }), u = i(""), g = i({}), d = i({}), U = i("");
|
|
14
|
+
function s(e) {
|
|
15
|
+
return e ? e.templateId !== void 0 : !1;
|
|
16
|
+
}
|
|
17
|
+
const he = a(() => x.metaData.hotels.findIndex((e) => e.id === b.eventLocation) || 0), O = a(() => x.metaData.hotels[he.value]), be = a(() => O.value.maxNumberPerBooking ? O.value.maxNumberPerBooking : 1 / 0), ke = a(() => O.value.name ? O.value.name : ""), De = a(() => O.value.subtitle ? O.value.subtitle : ""), M = a(() => b.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), Ae = a(() => s(t.value) ? t.value.fromDate : ""), L = a(() => f.value.events !== void 0 ? f.value.events.find((e) => e.id === k.value) : void 0), Se = a(() => L.value ? L.value.length : void 0), ae = a(() => s(t.value) ? t.value.templateId : 0), Pe = a(() => f.value.events), Ee = a(() => f.value.templates), Le = a(() => f.value.events.length > 0), _e = a(() => f.value.templates.length > 0), ne = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : ye.None), K = a(() => {
|
|
18
|
+
if (!s(t.value))
|
|
19
|
+
return t.value;
|
|
20
|
+
}), oe = a(() => {
|
|
21
|
+
if (K.value !== void 0) {
|
|
22
|
+
const e = K.value.find(
|
|
23
|
+
(n) => n.time === D.value
|
|
24
|
+
);
|
|
25
|
+
if (e && e.price)
|
|
26
|
+
return e.price;
|
|
27
|
+
}
|
|
28
|
+
return 0;
|
|
29
|
+
}), le = a(() => {
|
|
30
|
+
if (s(t.value))
|
|
31
|
+
return t.value.rooms;
|
|
32
|
+
});
|
|
33
|
+
function H(e, n, c) {
|
|
34
|
+
let y = 0;
|
|
35
|
+
if (s(t.value)) {
|
|
36
|
+
const v = t.value.rooms[c];
|
|
37
|
+
if (v) {
|
|
38
|
+
const _ = v.addons, S = g.value[`${n}.${e}.${c}`] || 0;
|
|
39
|
+
if (S > 0) {
|
|
40
|
+
const P = _?.find((R) => R.id === e), h = typeof S == "boolean" ? 1 : S;
|
|
41
|
+
y += nt(P?.price, P?.quantityStrategy, q.value, v.adultPerRoom) * h;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
} else {
|
|
45
|
+
const v = d.value[e] || 0;
|
|
46
|
+
if (v > 0) {
|
|
47
|
+
const _ = L.value?.products?.find((S) => S.productID === e);
|
|
48
|
+
_ && (y += _.price * v);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return y;
|
|
52
|
+
}
|
|
53
|
+
function Q(e, n) {
|
|
54
|
+
let c = 0;
|
|
55
|
+
if (s(t.value))
|
|
56
|
+
for (const y in g.value) {
|
|
57
|
+
const v = y.split(".");
|
|
58
|
+
parseInt(v[0]) === e && parseInt(v[2]) === n && (c += H(parseInt(v[1]), e, n));
|
|
59
|
+
}
|
|
60
|
+
else
|
|
61
|
+
for (const y in d.value)
|
|
62
|
+
c += H(parseInt(y)) * T.value;
|
|
63
|
+
return c;
|
|
64
|
+
}
|
|
65
|
+
const se = a(() => s(t.value) && t.value.totalPrice || 0), Ne = a(() => {
|
|
66
|
+
if (s(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
|
+
se.value
|
|
70
|
+
) || 0;
|
|
71
|
+
{
|
|
72
|
+
let e = Q();
|
|
73
|
+
return e += oe.value, e;
|
|
74
|
+
}
|
|
75
|
+
}), Ce = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Te = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Oe = 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
|
+
}), ie = a(() => s(t.value) ? !1 : Object.keys(d.value).length > 0), Me = a(() => !!(E.value !== "" && j.value !== "" && G.value.length >= 5 && (!ie.value || Oe.value) && (!(!s(t.value) && ne.value !== ye.FullDayEvent) || D.value !== "")));
|
|
82
|
+
function Re(e) {
|
|
83
|
+
return r.value === p.ReservationState && k.value === e && o.value;
|
|
84
|
+
}
|
|
85
|
+
const ze = a(() => !(r.value === p.InitialState && o.value)), $e = a(() => !(r.value === p.AvailabilityState && o.value)), Fe = a(() => t.value !== void 0), Ve = a(() => r.value === p.PaymentState && o.value);
|
|
86
|
+
async function re() {
|
|
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, ue();
|
|
98
|
+
} catch {
|
|
99
|
+
m({
|
|
100
|
+
message: N.t("alert.error.couldntFetchMetadata"),
|
|
101
|
+
type: "warning"
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async function ue() {
|
|
106
|
+
r.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: b.eventLocation,
|
|
112
|
+
date: M.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
|
+
m({
|
|
122
|
+
message: N.t("alert.error.couldntFetchListings"),
|
|
123
|
+
type: "warning"
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
async function Ge(e) {
|
|
128
|
+
r.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: M.value,
|
|
134
|
+
templateId: k.value,
|
|
135
|
+
restaurantId: b.eventLocation,
|
|
136
|
+
numberOfPeople: A.value
|
|
137
|
+
},
|
|
138
|
+
headers: {
|
|
139
|
+
Authorization: w.value,
|
|
140
|
+
Accept: "application/json"
|
|
141
|
+
}
|
|
142
|
+
})).data;
|
|
143
|
+
n.rooms.length === 0 ? m({
|
|
144
|
+
message: N.t("alert.error.eventNotAvailable"),
|
|
145
|
+
type: "warning"
|
|
146
|
+
}) : (t.value = n, e()), o.value = !1;
|
|
147
|
+
} catch {
|
|
148
|
+
o.value = !1, r.value = p.AvailabilityState, m({
|
|
149
|
+
message: N.t("alert.error.couldntFetchEvent"),
|
|
150
|
+
type: "warning"
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
async function je(e) {
|
|
155
|
+
r.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: M.value,
|
|
161
|
+
numberOfPeople: A.value,
|
|
162
|
+
eventId: k.value,
|
|
163
|
+
tableGroupId: V.value,
|
|
164
|
+
restaurantId: b.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, r.value = p.AvailabilityState, m({
|
|
174
|
+
message: N.t("alert.error.couldntFetchEvent"),
|
|
175
|
+
type: "warning"
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
async function xe() {
|
|
180
|
+
try {
|
|
181
|
+
const e = (await $.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
|
|
182
|
+
language: C(),
|
|
183
|
+
date: M.value,
|
|
184
|
+
discountCode: U.value,
|
|
185
|
+
restaurantId: b.eventLocation
|
|
186
|
+
}, {
|
|
187
|
+
headers: {
|
|
188
|
+
Authorization: w.value,
|
|
189
|
+
Accept: "application/json"
|
|
190
|
+
}
|
|
191
|
+
})).data;
|
|
192
|
+
console.log(e);
|
|
193
|
+
} catch (e) {
|
|
194
|
+
console.log(e), m({
|
|
195
|
+
message: N.t("alert.error.discountCodeValidation"),
|
|
196
|
+
type: "warning"
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
async function Be(e) {
|
|
201
|
+
r.value = p.PaymentState, o.value = !0;
|
|
202
|
+
const n = () => {
|
|
203
|
+
o.value = !1, r.value = p.ReservationState, m({
|
|
204
|
+
message: N.t("booking.other.errorMessage"),
|
|
205
|
+
type: "warning"
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
let c, y, v;
|
|
209
|
+
const _ = [];
|
|
210
|
+
if (s(t.value))
|
|
211
|
+
le.value?.forEach((h, R) => {
|
|
212
|
+
const ce = [];
|
|
213
|
+
let ve = 0;
|
|
214
|
+
for (const de in g.value) {
|
|
215
|
+
const J = de.split("."), pe = g.value[de];
|
|
216
|
+
parseInt(J[0]) === h.roomGroupId && parseInt(J[2]) === R && pe > 0 && (ce.push({
|
|
217
|
+
id: ve,
|
|
218
|
+
addonID: parseInt(J[1]),
|
|
219
|
+
quantity: pe
|
|
220
|
+
}), ve++);
|
|
221
|
+
}
|
|
222
|
+
_.push({
|
|
223
|
+
adultPerRoom: h.adultPerRoom,
|
|
224
|
+
count: h.count,
|
|
225
|
+
roomGroupID: h.roomGroupId,
|
|
226
|
+
addons: ce
|
|
227
|
+
});
|
|
228
|
+
}), c = {
|
|
229
|
+
templateID: ae.value,
|
|
230
|
+
numberOfDays: T.value,
|
|
231
|
+
templateCounts: _
|
|
232
|
+
};
|
|
233
|
+
else {
|
|
234
|
+
y = [], v = D.value;
|
|
235
|
+
for (const h in d.value) {
|
|
236
|
+
const R = d.value[parseInt(h)];
|
|
237
|
+
R > 0 && y.push({
|
|
238
|
+
id: parseInt(h),
|
|
239
|
+
quantity: R
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
let S = "https://production.hotel-service.konnectio.dk/api/event/book-template";
|
|
244
|
+
const P = {
|
|
245
|
+
language: C(),
|
|
246
|
+
restaurantId: b.eventLocation,
|
|
247
|
+
date: ot(M.value),
|
|
248
|
+
name: E.value,
|
|
249
|
+
email: j.value,
|
|
250
|
+
phone: G.value,
|
|
251
|
+
remark: u.value,
|
|
252
|
+
numberOfPeople: A.value,
|
|
253
|
+
days: q.value,
|
|
254
|
+
discountCode: U.value,
|
|
255
|
+
giftCardCode: l.value,
|
|
256
|
+
checkoutUrl: window.location.origin,
|
|
257
|
+
privacyUrl: window.location.origin
|
|
258
|
+
};
|
|
259
|
+
s(t.value) ? P.templateGroup = c : (P.time = v, P.eventId = k.value, P.products = y, S = "https://production.hotel-service.konnectio.dk/api/event/book-event"), await $.post(S, P, {
|
|
260
|
+
headers: {
|
|
261
|
+
Authorization: w.value,
|
|
262
|
+
Accept: "application/json"
|
|
263
|
+
}
|
|
264
|
+
}).then((h) => {
|
|
265
|
+
o.value = !1, I.pay({
|
|
266
|
+
callback: e,
|
|
267
|
+
response: h.data
|
|
268
|
+
});
|
|
269
|
+
}).catch(() => n());
|
|
270
|
+
}
|
|
271
|
+
function Ue(e) {
|
|
272
|
+
g.value = {}, d.value = {}, D.value = "", e();
|
|
273
|
+
}
|
|
274
|
+
function qe() {
|
|
275
|
+
re();
|
|
276
|
+
}
|
|
277
|
+
return {
|
|
278
|
+
fetchMetaData: re,
|
|
279
|
+
metaData: F,
|
|
280
|
+
listingData: f,
|
|
281
|
+
tableBasePrice: oe,
|
|
282
|
+
availabilityData: t,
|
|
283
|
+
isLoading: o,
|
|
284
|
+
moduleState: r,
|
|
285
|
+
numberOfPeople: A,
|
|
286
|
+
numberOfDays: T,
|
|
287
|
+
eventId: k,
|
|
288
|
+
tableGroupId: V,
|
|
289
|
+
arrivalTime: D,
|
|
290
|
+
addons: g,
|
|
291
|
+
products: d,
|
|
292
|
+
discountCode: U,
|
|
293
|
+
name: E,
|
|
294
|
+
phone: G,
|
|
295
|
+
email: j,
|
|
296
|
+
remark: u,
|
|
297
|
+
isTemplateEvent: Ie,
|
|
298
|
+
maxNumberOfPeople: be,
|
|
299
|
+
title: ke,
|
|
300
|
+
subtitle: De,
|
|
301
|
+
date: M,
|
|
302
|
+
numberOfTotalDays: q,
|
|
303
|
+
numberOfRooms: we,
|
|
304
|
+
fromDate: Ae,
|
|
305
|
+
getEventData: L,
|
|
306
|
+
length: Se,
|
|
307
|
+
templateId: ae,
|
|
308
|
+
getEvents: Pe,
|
|
309
|
+
getTemplates: Ee,
|
|
310
|
+
hasEvents: Le,
|
|
311
|
+
hasTemplates: _e,
|
|
312
|
+
basePrice: se,
|
|
313
|
+
totalPrice: Ne,
|
|
314
|
+
getTemplateData: le,
|
|
315
|
+
getEventTableData: K,
|
|
316
|
+
roomUpgrade: Te,
|
|
317
|
+
weekendFee: Ce,
|
|
318
|
+
hasProducts: ie,
|
|
319
|
+
eventRateType: ne,
|
|
320
|
+
isReservationFormFilled: Me,
|
|
321
|
+
isMetaDataAvailable: ze,
|
|
322
|
+
areListingsAvailable: $e,
|
|
323
|
+
isAvailabilityDataAvailable: Fe,
|
|
324
|
+
isPaymentLoading: Ve,
|
|
325
|
+
isEventListingLoading: Re,
|
|
326
|
+
// fetchMetaData,
|
|
327
|
+
fetchListings: ue,
|
|
328
|
+
getTemplateAvailability: Ge,
|
|
329
|
+
getEventAvailability: je,
|
|
330
|
+
validateDiscountCode: xe,
|
|
331
|
+
localAddonPrice: H,
|
|
332
|
+
totalAddonPrice: Q,
|
|
333
|
+
createBooking: Be,
|
|
334
|
+
reset: Ue,
|
|
335
|
+
initialize: qe,
|
|
336
|
+
hasListingData: B
|
|
337
|
+
};
|
|
338
|
+
}), vt = {
|
|
339
|
+
class: "konnectio-search-button",
|
|
340
|
+
key: "search"
|
|
341
|
+
}, dt = /* @__PURE__ */ Ke({
|
|
342
|
+
__name: "EventAvailabilityForm",
|
|
343
|
+
props: {
|
|
344
|
+
link: {},
|
|
345
|
+
redirection: { type: Boolean, default: !0 }
|
|
346
|
+
},
|
|
347
|
+
setup(I) {
|
|
348
|
+
const l = I, {
|
|
349
|
+
eventLocation: m,
|
|
350
|
+
eventLocations: w,
|
|
351
|
+
hasEventLocations: F,
|
|
352
|
+
eventLocationControl: x,
|
|
353
|
+
searchDate: b,
|
|
354
|
+
isExpired: f
|
|
355
|
+
} = 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(x.value), V = i(T()), D = a({
|
|
356
|
+
get: () => l.redirection ? k.value : m.value,
|
|
357
|
+
set: (u) => {
|
|
358
|
+
l.redirection ? k.value = Number(u) : m.value = Number(u);
|
|
359
|
+
}
|
|
360
|
+
}), E = a({
|
|
361
|
+
get: () => l.redirection ? V.value : b.value,
|
|
362
|
+
set: (u) => {
|
|
363
|
+
l.redirection ? V.value = u : b.value = u;
|
|
364
|
+
}
|
|
365
|
+
}), G = a(() => typeof l.link != "string");
|
|
366
|
+
function j() {
|
|
367
|
+
if (l.redirection === !0)
|
|
368
|
+
if (o({
|
|
369
|
+
date: E.value,
|
|
370
|
+
location: D.value
|
|
371
|
+
}), G.value) {
|
|
372
|
+
const u = C();
|
|
373
|
+
l.link[u] ? window.location.replace(l.link[u]) : l.link.en && window.location.replace(l.link.en);
|
|
374
|
+
} else
|
|
375
|
+
window.location.replace(l.link);
|
|
376
|
+
else
|
|
377
|
+
r();
|
|
378
|
+
}
|
|
379
|
+
return He(() => {
|
|
380
|
+
f.value && B(), l.redirection === !1 && t();
|
|
381
|
+
}), (u, g) => (W(), me("form", {
|
|
382
|
+
class: Xe([
|
|
383
|
+
"konnectio-event-search-form",
|
|
384
|
+
{ "has-locations": z(F) },
|
|
385
|
+
{ "auto-search": !u.redirection }
|
|
386
|
+
]),
|
|
387
|
+
onSubmit: Ye(j, ["prevent"])
|
|
388
|
+
}, [
|
|
389
|
+
X(We, {
|
|
390
|
+
class: "konnectio-event-search-form-content",
|
|
391
|
+
tag: "ul"
|
|
392
|
+
}, {
|
|
393
|
+
default: Qe(() => [
|
|
394
|
+
z(F) ? (W(), Je(st, {
|
|
395
|
+
modelValue: D.value,
|
|
396
|
+
"onUpdate:modelValue": g[0] || (g[0] = (d) => D.value = d),
|
|
397
|
+
key: "location",
|
|
398
|
+
label: z(A)("general.location"),
|
|
399
|
+
icon: "location-dot",
|
|
400
|
+
"icon-type": "fas",
|
|
401
|
+
"icon-placement": "label",
|
|
402
|
+
"label-key": "name",
|
|
403
|
+
"value-key": "id",
|
|
404
|
+
options: z(w),
|
|
405
|
+
searchable: !1
|
|
406
|
+
}, null, 8, ["modelValue", "label", "options"])) : fe("", !0),
|
|
407
|
+
X(ut, {
|
|
408
|
+
modelValue: E.value,
|
|
409
|
+
"onUpdate:modelValue": g[1] || (g[1] = (d) => E.value = d),
|
|
410
|
+
key: "date",
|
|
411
|
+
label: z(A)("event.selectDate"),
|
|
412
|
+
"icon-type": "fas",
|
|
413
|
+
"icon-placement": "label",
|
|
414
|
+
"min-date": /* @__PURE__ */ new Date()
|
|
415
|
+
}, null, 8, ["modelValue", "label", "min-date"]),
|
|
416
|
+
u.redirection ? (W(), me("li", vt, [
|
|
417
|
+
X(it, {
|
|
418
|
+
type: "submit",
|
|
419
|
+
label: z(A)("availability.buttonLabel")
|
|
420
|
+
}, null, 8, ["label"])
|
|
421
|
+
])) : fe("", !0)
|
|
422
|
+
]),
|
|
423
|
+
_: 1
|
|
424
|
+
})
|
|
425
|
+
], 34));
|
|
426
|
+
}
|
|
427
|
+
}), yt = /* @__PURE__ */ rt(dt, [["__scopeId", "data-v-0440a795"]]);
|
|
428
|
+
export {
|
|
429
|
+
yt as E,
|
|
430
|
+
ct as u
|
|
431
|
+
};
|
|
432
|
+
//# sourceMappingURL=EventAvailabilityForm-DVcDsdr8.js.map
|
|
Binary file
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { d as l, o as a, c as o, a as i, b as r, e as n, n as f } from "./_commonjsHelpers-UWZO_9XV.js";
|
|
2
|
+
import { E as s, _ as c } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js";
|
|
3
|
+
(function() {
|
|
4
|
+
try {
|
|
5
|
+
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
|
|
6
|
+
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "c4cf8338-365b-41b1-bb4f-ab1820711d2d", t._sentryDebugIdIdentifier = "sentry-dbid-c4cf8338-365b-41b1-bb4f-ab1820711d2d");
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
})();
|
|
10
|
+
const b = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "skeleton-field-label"
|
|
13
|
+
}, p = { key: 1 }, h = /* @__PURE__ */ l({
|
|
14
|
+
__name: "Field",
|
|
15
|
+
props: {
|
|
16
|
+
withIcon: { type: Boolean, default: !1 },
|
|
17
|
+
noLabel: { type: Boolean, default: !1 },
|
|
18
|
+
isTextArea: { type: Boolean, default: !1 }
|
|
19
|
+
},
|
|
20
|
+
setup(t) {
|
|
21
|
+
return (e, d) => (a(), o("div", {
|
|
22
|
+
class: f([
|
|
23
|
+
"skeleton-field",
|
|
24
|
+
{ "is-text-area": e.isTextArea },
|
|
25
|
+
{ "no-label": e.noLabel }
|
|
26
|
+
])
|
|
27
|
+
}, [
|
|
28
|
+
e.noLabel ? (a(), o("div", p)) : (a(), o("div", b, [
|
|
29
|
+
e.withIcon ? (a(), i(s, {
|
|
30
|
+
key: 0,
|
|
31
|
+
height: "15px",
|
|
32
|
+
width: "15px"
|
|
33
|
+
})) : r("", !0),
|
|
34
|
+
n(s, {
|
|
35
|
+
height: "15px",
|
|
36
|
+
width: "30%"
|
|
37
|
+
})
|
|
38
|
+
])),
|
|
39
|
+
n(s, {
|
|
40
|
+
height: e.isTextArea ? "82px" : "44px",
|
|
41
|
+
width: "100%",
|
|
42
|
+
"border-radius": "6px"
|
|
43
|
+
}, null, 8, ["height"])
|
|
44
|
+
], 2));
|
|
45
|
+
}
|
|
46
|
+
}), y = /* @__PURE__ */ c(h, [["__scopeId", "data-v-992f78a1"]]);
|
|
47
|
+
export {
|
|
48
|
+
y as F
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=Field-IsLH1tNU.js.map
|
|
Binary file
|