@konnectio/core 4.0.56-rc49 → 4.0.56-rc50
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-B9sCmWFD.js → ActionField-BQQitCzR.js} +3 -3
- package/dist/ActionField-BQQitCzR.js.br +0 -0
- package/dist/{AvailabilitySkeleton-sGz2nSbb.js → AvailabilitySkeleton-TZiNrJ8t.js} +102 -96
- package/dist/AvailabilitySkeleton-TZiNrJ8t.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js} +3 -3
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js.br +0 -0
- package/dist/{CheckoutWindow-CrzoIK1a.js → CheckoutWindow-DBBmXrsX.js} +3 -3
- package/dist/CheckoutWindow-DBBmXrsX.js.br +0 -0
- package/dist/{ErrorMessage-SZPwCpu-.js → ErrorMessage-Dw-TLplp.js} +3 -3
- package/dist/ErrorMessage-Dw-TLplp.js.br +0 -0
- package/dist/EventAvailabilityForm-DimufYUP.js +437 -0
- package/dist/EventAvailabilityForm-DimufYUP.js.br +0 -0
- package/dist/{Field-CLXqVSAA.js → Field-B4x3qSfU.js} +3 -3
- package/dist/Field-B4x3qSfU.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js} +2466 -2464
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js.br +0 -0
- package/dist/{TermsOfService-DBwm3BP2.js → TermsOfService-DLchxC08.js} +4 -4
- package/dist/TermsOfService-DLchxC08.js.br +0 -0
- package/dist/{_-BOjhcjBA.js → _-C7wxqlYk.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js → _.vue_vue_type_style_index_0_lang-BGyUJK1I.js} +3 -3
- package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js.br +0 -0
- package/dist/availability.js +8 -8
- package/dist/availability.js.br +0 -0
- package/dist/{navigation.js → deep-link.js} +3 -3
- package/dist/event.js +146 -146
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +22 -22
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +10 -10
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-hEwcI_Rx.js → giftCard-9uCMmY6r.js} +25 -26
- package/dist/giftCard-9uCMmY6r.js.br +0 -0
- package/dist/hotel.js +561 -557
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-C474cwA-.js → masonry.plugin-C4-Uj22v.js} +10 -10
- package/dist/masonry.plugin-C4-Uj22v.js.br +0 -0
- package/dist/polyfill.js +99 -98
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/{tracing-pAUg9FFo.js → tracing-Dm-FNj-F.js} +198 -209
- package/dist/tracing-Dm-FNj-F.js.br +0 -0
- package/package.json +4 -4
- package/dist/ActionField-B9sCmWFD.js.br +0 -0
- package/dist/AvailabilitySkeleton-sGz2nSbb.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js.br +0 -0
- package/dist/CheckoutWindow-CrzoIK1a.js.br +0 -0
- package/dist/ErrorMessage-SZPwCpu-.js.br +0 -0
- package/dist/EventAvailabilityForm-DFuang-b.js +0 -431
- package/dist/EventAvailabilityForm-DFuang-b.js.br +0 -0
- package/dist/Field-CLXqVSAA.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js.br +0 -0
- package/dist/TermsOfService-DBwm3BP2.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js.br +0 -0
- package/dist/giftCard-hEwcI_Rx.js.br +0 -0
- package/dist/masonry.plugin-C474cwA-.js.br +0 -0
- package/dist/tracing-pAUg9FFo.js.br +0 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.0.56-
|
|
3
|
+
"version": "4.0.56-rc50",
|
|
4
4
|
"author": "Konnectio <info@konnectio.com> (https://konnectio.dk)",
|
|
5
5
|
"homepage": "https://konnectio.dk",
|
|
6
6
|
"description": "Konnectio Core Frontend Integration.",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"recaptcha-v3": "1.10.0",
|
|
64
64
|
"regenerator-runtime": "0.14.1",
|
|
65
65
|
"text-clipper": "2.2.0",
|
|
66
|
-
"vue": "3.4.
|
|
66
|
+
"vue": "3.4.26",
|
|
67
67
|
"vue-gtag": "2.0.1",
|
|
68
68
|
"vue-i18n": "9.13.1",
|
|
69
69
|
"vue-inner-image-zoom": "2.0.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
80
80
|
"@sentry/vite-plugin": "2.16.1",
|
|
81
81
|
"@types/node": "20.12.7",
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
83
|
-
"@typescript-eslint/parser": "7.
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "7.8.0",
|
|
83
|
+
"@typescript-eslint/parser": "7.8.0",
|
|
84
84
|
"@vitejs/plugin-vue": "5.0.4",
|
|
85
85
|
"@vue/eslint-config-typescript": "13.0.0",
|
|
86
86
|
"@vue/test-utils": "2.4.5",
|
|
Binary file
|
|
Binary file
|
package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js.br
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
import { r as i, c as a, d as Ue, h as qe, o as de, a as Ke, f as W, w as He, u as z, b as Qe, e as Je, g as We, l as Xe, n as Ye, i as Ze } from "./tracing-pAUg9FFo.js";
|
|
2
|
-
import { d as et, u as tt, s as Z, v as at, a as nt, b as pe, m as ee, w as p, c as X, O as fe, S as Y, x as ot, e as V, g as C, i as N, y as lt, h as st, k as it, C as rt, _ as ut } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js";
|
|
3
|
-
import "./navigation.js";
|
|
4
|
-
import { _ as ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js";
|
|
5
|
-
(function() {
|
|
6
|
-
try {
|
|
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] = "342b63c6-f026-485f-a544-5157f3cb11cd", w._sentryDebugIdIdentifier = "sentry-dbid-342b63c6-f026-485f-a544-5157f3cb11cd");
|
|
9
|
-
} catch {
|
|
10
|
-
}
|
|
11
|
-
})();
|
|
12
|
-
const vt = et("event", () => {
|
|
13
|
-
const w = tt(), { voucher: l } = Z(at()), { display: f } = nt(), { bearerToken: D, metaData: $ } = Z(pe()), j = pe(), m = ee(), 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), F = i(NaN), I = i(""), E = X("konnectio_name", "", void 0, { serializer: Y.string }), G = X("konnectio_phone", "", void 0, { serializer: Y.string }), x = X("konnectio_email", "", void 0, { serializer: Y.string }), c = i(""), y = i({}), d = i({}), U = i("");
|
|
14
|
-
function s(e) {
|
|
15
|
-
return e ? e.templateId !== void 0 : !1;
|
|
16
|
-
}
|
|
17
|
-
const me = a(() => j.metaData.hotels.findIndex((e) => e.id === m.eventLocation) || 0), M = a(() => j.metaData.hotels[me.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 : ""), O = a(() => m.searchDate.toISOString()), be = a(() => s(t.value)), q = a(() => s(t.value) ? t.value.numberOfDays : T.value), ke = a(() => s(t.value) ? t.value.packageCount : 0), Ie = 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), we = a(() => L.value ? L.value.length : void 0), te = a(() => s(t.value) ? t.value.templateId : 0), De = a(() => g.value.events), Ae = a(() => g.value.templates), Se = a(() => g.value.events.length > 0), Pe = a(() => g.value.templates.length > 0), ae = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : fe.None), K = a(() => {
|
|
18
|
-
if (!s(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 === I.value
|
|
24
|
-
);
|
|
25
|
-
if (e && e.price)
|
|
26
|
-
return e.price;
|
|
27
|
-
}
|
|
28
|
-
return 0;
|
|
29
|
-
}), oe = a(() => {
|
|
30
|
-
if (s(t.value))
|
|
31
|
-
return t.value.rooms;
|
|
32
|
-
});
|
|
33
|
-
function H(e, n, u) {
|
|
34
|
-
let h = 0;
|
|
35
|
-
if (s(t.value)) {
|
|
36
|
-
const v = t.value.rooms[u];
|
|
37
|
-
if (v) {
|
|
38
|
-
const _ = v.addons, S = y.value[`${n}.${e}.${u}`] || 0;
|
|
39
|
-
if (S > 0) {
|
|
40
|
-
const P = _?.find((R) => R.id === e), b = typeof S == "boolean" ? 1 : S;
|
|
41
|
-
h += ot(P?.price, P?.quantityStrategy, q.value, v.adultPerRoom) * b;
|
|
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
|
-
_ && (h += _.price * v);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return h;
|
|
52
|
-
}
|
|
53
|
-
function Q(e, n) {
|
|
54
|
-
let u = 0;
|
|
55
|
-
if (s(t.value))
|
|
56
|
-
for (const h in y.value) {
|
|
57
|
-
const v = h.split(".");
|
|
58
|
-
parseInt(v[0]) === e && parseInt(v[2]) === n && (u += H(parseInt(v[1]), e, n));
|
|
59
|
-
}
|
|
60
|
-
else
|
|
61
|
-
for (const h in d.value)
|
|
62
|
-
u += H(parseInt(h)) * T.value;
|
|
63
|
-
return u;
|
|
64
|
-
}
|
|
65
|
-
const le = a(() => s(t.value) && t.value.totalPrice || 0), Ee = 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, u) => e + Q(n, u),
|
|
69
|
-
le.value
|
|
70
|
-
) || 0;
|
|
71
|
-
{
|
|
72
|
-
let e = Q();
|
|
73
|
-
return e += ne.value, e;
|
|
74
|
-
}
|
|
75
|
-
}), Le = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), _e = a(() => s(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 u in e)
|
|
79
|
-
n += Number.isNaN(e[u]) ? 0 : e[u];
|
|
80
|
-
return n > 0;
|
|
81
|
-
}), se = a(() => s(t.value) ? !1 : Object.keys(d.value).length > 0), Ce = a(() => !!(E.value !== "" && x.value !== "" && G.value.length >= 5 && (!se.value || Ne.value) && (!(!s(t.value) && ae.value !== fe.FullDayEvent) || I.value !== "")));
|
|
82
|
-
function Te(e) {
|
|
83
|
-
return r.value === p.ReservationState && k.value === e && o.value;
|
|
84
|
-
}
|
|
85
|
-
const Me = a(() => !(r.value === p.InitialState && o.value)), Oe = a(() => !(r.value === p.AvailabilityState && o.value)), Re = a(() => t.value !== void 0), ze = a(() => r.value === p.PaymentState && o.value);
|
|
86
|
-
async function ie() {
|
|
87
|
-
try {
|
|
88
|
-
const e = (await V.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
|
|
89
|
-
params: {
|
|
90
|
-
language: C()
|
|
91
|
-
},
|
|
92
|
-
headers: {
|
|
93
|
-
Authorization: D.value,
|
|
94
|
-
Accept: "application/json"
|
|
95
|
-
}
|
|
96
|
-
})).data;
|
|
97
|
-
$.value = e;
|
|
98
|
-
} catch {
|
|
99
|
-
f({
|
|
100
|
-
message: N.t("alert.error.couldntFetchMetadata"),
|
|
101
|
-
type: "warning"
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
async function Ve() {
|
|
106
|
-
r.value = p.AvailabilityState, o.value = !0;
|
|
107
|
-
try {
|
|
108
|
-
const e = (await V.get("https://production.hotel-service.konnectio.dk/api/event/get", {
|
|
109
|
-
params: {
|
|
110
|
-
language: C(),
|
|
111
|
-
restaurantId: m.eventLocation,
|
|
112
|
-
date: O.value
|
|
113
|
-
},
|
|
114
|
-
headers: {
|
|
115
|
-
Authorization: D.value,
|
|
116
|
-
Accept: "application/json"
|
|
117
|
-
}
|
|
118
|
-
})).data;
|
|
119
|
-
g.value = e, o.value = !1;
|
|
120
|
-
} catch {
|
|
121
|
-
f({
|
|
122
|
-
message: N.t("alert.error.couldntFetchListings"),
|
|
123
|
-
type: "warning"
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
async function $e(e) {
|
|
128
|
-
r.value = p.ReservationState, o.value = !0;
|
|
129
|
-
try {
|
|
130
|
-
const n = (await V.get("https://production.hotel-service.konnectio.dk/api/event/get-template", {
|
|
131
|
-
params: {
|
|
132
|
-
language: C(),
|
|
133
|
-
date: O.value,
|
|
134
|
-
templateId: k.value,
|
|
135
|
-
restaurantId: m.eventLocation,
|
|
136
|
-
numberOfPeople: A.value
|
|
137
|
-
},
|
|
138
|
-
headers: {
|
|
139
|
-
Authorization: D.value,
|
|
140
|
-
Accept: "application/json"
|
|
141
|
-
}
|
|
142
|
-
})).data;
|
|
143
|
-
n.rooms.length === 0 ? f({
|
|
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, f({
|
|
149
|
-
message: N.t("alert.error.couldntFetchEvent"),
|
|
150
|
-
type: "warning"
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
async function Fe(e) {
|
|
155
|
-
r.value = p.ReservationState, o.value = !0;
|
|
156
|
-
try {
|
|
157
|
-
const n = (await V.get("https://production.hotel-service.konnectio.dk/api/event/vacant-times", {
|
|
158
|
-
params: {
|
|
159
|
-
language: C(),
|
|
160
|
-
date: O.value,
|
|
161
|
-
numberOfPeople: A.value,
|
|
162
|
-
eventId: k.value,
|
|
163
|
-
tableGroupId: F.value,
|
|
164
|
-
restaurantId: m.eventLocation
|
|
165
|
-
},
|
|
166
|
-
headers: {
|
|
167
|
-
Authorization: D.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, f({
|
|
174
|
-
message: N.t("alert.error.couldntFetchEvent"),
|
|
175
|
-
type: "warning"
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
async function Ge() {
|
|
180
|
-
try {
|
|
181
|
-
const e = (await V.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
|
|
182
|
-
language: C(),
|
|
183
|
-
date: O.value,
|
|
184
|
-
discountCode: U.value,
|
|
185
|
-
restaurantId: m.eventLocation
|
|
186
|
-
}, {
|
|
187
|
-
headers: {
|
|
188
|
-
Authorization: D.value,
|
|
189
|
-
Accept: "application/json"
|
|
190
|
-
}
|
|
191
|
-
})).data;
|
|
192
|
-
console.log(e);
|
|
193
|
-
} catch (e) {
|
|
194
|
-
console.log(e), f({
|
|
195
|
-
message: N.t("alert.error.discountCodeValidation"),
|
|
196
|
-
type: "warning"
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
async function xe(e) {
|
|
201
|
-
r.value = p.PaymentState, o.value = !0;
|
|
202
|
-
const n = () => {
|
|
203
|
-
o.value = !1, r.value = p.ReservationState, f({
|
|
204
|
-
message: N.t("booking.other.errorMessage"),
|
|
205
|
-
type: "warning"
|
|
206
|
-
});
|
|
207
|
-
};
|
|
208
|
-
let u, h, v;
|
|
209
|
-
const _ = [];
|
|
210
|
-
if (s(t.value))
|
|
211
|
-
oe.value?.forEach((b, R) => {
|
|
212
|
-
const re = [];
|
|
213
|
-
let ue = 0;
|
|
214
|
-
for (const ce in y.value) {
|
|
215
|
-
const J = ce.split("."), ve = y.value[ce];
|
|
216
|
-
parseInt(J[0]) === b.roomGroupId && parseInt(J[2]) === R && ve > 0 && (re.push({
|
|
217
|
-
id: ue,
|
|
218
|
-
addonID: parseInt(J[1]),
|
|
219
|
-
quantity: ve
|
|
220
|
-
}), ue++);
|
|
221
|
-
}
|
|
222
|
-
_.push({
|
|
223
|
-
adultPerRoom: b.adultPerRoom,
|
|
224
|
-
count: b.count,
|
|
225
|
-
roomGroupID: b.roomGroupId,
|
|
226
|
-
addons: re
|
|
227
|
-
});
|
|
228
|
-
}), u = {
|
|
229
|
-
templateID: te.value,
|
|
230
|
-
numberOfDays: T.value,
|
|
231
|
-
templateCounts: _
|
|
232
|
-
};
|
|
233
|
-
else {
|
|
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
|
-
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: m.eventLocation,
|
|
247
|
-
date: lt(O.value),
|
|
248
|
-
name: E.value,
|
|
249
|
-
email: x.value,
|
|
250
|
-
phone: G.value,
|
|
251
|
-
remark: c.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 = u : (P.time = v, P.eventId = k.value, P.products = h, S = "https://production.hotel-service.konnectio.dk/api/event/book-event"), await V.post(S, P, {
|
|
260
|
-
headers: {
|
|
261
|
-
Authorization: D.value,
|
|
262
|
-
Accept: "application/json"
|
|
263
|
-
}
|
|
264
|
-
}).then((b) => {
|
|
265
|
-
o.value = !1, w.pay({
|
|
266
|
-
callback: e,
|
|
267
|
-
response: b.data
|
|
268
|
-
});
|
|
269
|
-
}).catch(() => n());
|
|
270
|
-
}
|
|
271
|
-
function je(e) {
|
|
272
|
-
y.value = {}, d.value = {}, I.value = "", e();
|
|
273
|
-
}
|
|
274
|
-
async function Be() {
|
|
275
|
-
await Promise.all([ie(), m.fetchMetadata()]);
|
|
276
|
-
}
|
|
277
|
-
return {
|
|
278
|
-
metaData: $,
|
|
279
|
-
listingData: g,
|
|
280
|
-
tableBasePrice: ne,
|
|
281
|
-
availabilityData: t,
|
|
282
|
-
isLoading: o,
|
|
283
|
-
moduleState: r,
|
|
284
|
-
numberOfPeople: A,
|
|
285
|
-
numberOfDays: T,
|
|
286
|
-
eventId: k,
|
|
287
|
-
tableGroupId: F,
|
|
288
|
-
arrivalTime: I,
|
|
289
|
-
addons: y,
|
|
290
|
-
products: d,
|
|
291
|
-
discountCode: U,
|
|
292
|
-
name: E,
|
|
293
|
-
phone: G,
|
|
294
|
-
email: x,
|
|
295
|
-
remark: c,
|
|
296
|
-
isTemplateEvent: be,
|
|
297
|
-
maxNumberOfPeople: ge,
|
|
298
|
-
title: ye,
|
|
299
|
-
subtitle: he,
|
|
300
|
-
date: O,
|
|
301
|
-
numberOfTotalDays: q,
|
|
302
|
-
numberOfRooms: ke,
|
|
303
|
-
fromDate: Ie,
|
|
304
|
-
getEventData: L,
|
|
305
|
-
length: we,
|
|
306
|
-
templateId: te,
|
|
307
|
-
getEvents: De,
|
|
308
|
-
getTemplates: Ae,
|
|
309
|
-
hasEvents: Se,
|
|
310
|
-
hasTemplates: Pe,
|
|
311
|
-
basePrice: le,
|
|
312
|
-
totalPrice: Ee,
|
|
313
|
-
getTemplateData: oe,
|
|
314
|
-
getEventTableData: K,
|
|
315
|
-
roomUpgrade: _e,
|
|
316
|
-
weekendFee: Le,
|
|
317
|
-
hasProducts: se,
|
|
318
|
-
eventRateType: ae,
|
|
319
|
-
isReservationFormFilled: Ce,
|
|
320
|
-
isMetadataAvailable: Me,
|
|
321
|
-
areListingsAvailable: Oe,
|
|
322
|
-
isAvailabilityDataAvailable: Re,
|
|
323
|
-
isPaymentLoading: ze,
|
|
324
|
-
isEventListingLoading: Te,
|
|
325
|
-
fetchMetadata: ie,
|
|
326
|
-
fetchListings: Ve,
|
|
327
|
-
getTemplateAvailability: $e,
|
|
328
|
-
getEventAvailability: Fe,
|
|
329
|
-
validateDiscountCode: Ge,
|
|
330
|
-
localAddonPrice: H,
|
|
331
|
-
totalAddonPrice: Q,
|
|
332
|
-
createBooking: xe,
|
|
333
|
-
reset: je,
|
|
334
|
-
initialize: Be,
|
|
335
|
-
hasListingData: B
|
|
336
|
-
};
|
|
337
|
-
}), dt = {
|
|
338
|
-
class: "konnectio-search-button",
|
|
339
|
-
key: "search"
|
|
340
|
-
}, pt = /* @__PURE__ */ Ue({
|
|
341
|
-
__name: "EventAvailabilityForm",
|
|
342
|
-
props: {
|
|
343
|
-
link: {},
|
|
344
|
-
redirection: { type: Boolean, default: !0 }
|
|
345
|
-
},
|
|
346
|
-
setup(w) {
|
|
347
|
-
const l = w, {
|
|
348
|
-
eventLocation: f,
|
|
349
|
-
eventLocations: D,
|
|
350
|
-
hasEventLocations: $,
|
|
351
|
-
eventLocationControl: j,
|
|
352
|
-
searchDate: m,
|
|
353
|
-
isExpired: g
|
|
354
|
-
} = Z(ee()), { reset: B, fetchMetadata: t, updateEventAvailability: o } = ee(), { fetchListings: r } = vt(), { t: A } = st(), T = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), k = i(j.value), F = i(T()), I = a({
|
|
355
|
-
get: () => l.redirection ? k.value : f.value,
|
|
356
|
-
set: (c) => {
|
|
357
|
-
l.redirection ? k.value = Number(c) : f.value = Number(c);
|
|
358
|
-
}
|
|
359
|
-
}), E = a({
|
|
360
|
-
get: () => l.redirection ? F.value : m.value,
|
|
361
|
-
set: (c) => {
|
|
362
|
-
l.redirection ? F.value = c : m.value = c;
|
|
363
|
-
}
|
|
364
|
-
}), G = a(() => typeof l.link != "string");
|
|
365
|
-
function x() {
|
|
366
|
-
if (l.redirection === !0)
|
|
367
|
-
if (o({
|
|
368
|
-
date: E.value,
|
|
369
|
-
location: I.value
|
|
370
|
-
}), G.value) {
|
|
371
|
-
const c = C();
|
|
372
|
-
l.link[c] ? window.location.replace(l.link[c]) : l.link.en && window.location.replace(l.link.en);
|
|
373
|
-
} else
|
|
374
|
-
window.location.replace(l.link);
|
|
375
|
-
else
|
|
376
|
-
r();
|
|
377
|
-
}
|
|
378
|
-
return qe(() => {
|
|
379
|
-
g.value && B(), l.redirection;
|
|
380
|
-
}), (c, y) => (de(), Ke("form", {
|
|
381
|
-
class: Ye([
|
|
382
|
-
"konnectio-event-search-form",
|
|
383
|
-
{ "has-locations": z($) },
|
|
384
|
-
{ "auto-search": !c.redirection }
|
|
385
|
-
]),
|
|
386
|
-
onSubmit: Ze(x, ["prevent"])
|
|
387
|
-
}, [
|
|
388
|
-
W(Xe, {
|
|
389
|
-
class: "konnectio-event-search-form-content",
|
|
390
|
-
tag: "ul"
|
|
391
|
-
}, {
|
|
392
|
-
default: He(() => [
|
|
393
|
-
z($) ? (de(), Qe(it, {
|
|
394
|
-
modelValue: I.value,
|
|
395
|
-
"onUpdate:modelValue": y[0] || (y[0] = (d) => I.value = d),
|
|
396
|
-
key: "location",
|
|
397
|
-
label: z(A)("general.location"),
|
|
398
|
-
icon: "location-dot",
|
|
399
|
-
"icon-type": "fas",
|
|
400
|
-
"icon-placement": "label",
|
|
401
|
-
"label-key": "name",
|
|
402
|
-
"value-key": "id",
|
|
403
|
-
options: z(D),
|
|
404
|
-
searchable: !1
|
|
405
|
-
}, null, 8, ["modelValue", "label", "options"])) : Je("", !0),
|
|
406
|
-
W(ct, {
|
|
407
|
-
modelValue: E.value,
|
|
408
|
-
"onUpdate:modelValue": y[1] || (y[1] = (d) => E.value = d),
|
|
409
|
-
key: "date",
|
|
410
|
-
label: z(A)("event.selectDate"),
|
|
411
|
-
"icon-type": "fas",
|
|
412
|
-
"icon-placement": "label",
|
|
413
|
-
"min-date": /* @__PURE__ */ new Date()
|
|
414
|
-
}, null, 8, ["modelValue", "label", "min-date"]),
|
|
415
|
-
We("li", dt, [
|
|
416
|
-
W(rt, {
|
|
417
|
-
type: "submit",
|
|
418
|
-
label: z(A)("availability.buttonLabel")
|
|
419
|
-
}, null, 8, ["label"])
|
|
420
|
-
])
|
|
421
|
-
]),
|
|
422
|
-
_: 1
|
|
423
|
-
})
|
|
424
|
-
], 34));
|
|
425
|
-
}
|
|
426
|
-
}), ht = /* @__PURE__ */ ut(pt, [["__scopeId", "data-v-14a328f5"]]);
|
|
427
|
-
export {
|
|
428
|
-
ht as E,
|
|
429
|
-
vt as u
|
|
430
|
-
};
|
|
431
|
-
//# sourceMappingURL=EventAvailabilityForm-DFuang-b.js.map
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|