@konnectio/core 4.5.8 → 4.5.9
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/README.md +274 -274
- package/dist/{ActionField-DlqhtdHW.js → ActionField-DyjxZZyN.js} +2 -2
- package/dist/ActionField-DyjxZZyN.js.br +0 -0
- package/dist/ActionField-DyjxZZyN.js.gz +3 -0
- package/dist/{AvailabilitySkeleton-DVRsnt_Y.js → AvailabilitySkeleton-CvLRIPE0.js} +3 -3
- package/dist/AvailabilitySkeleton-CvLRIPE0.js.br +0 -0
- package/dist/AvailabilitySkeleton-CvLRIPE0.js.gz +0 -0
- package/dist/{CheckoutWindow-Cx1MBwXg.js → CheckoutWindow-BRCeuWbT.js} +5 -5
- package/dist/CheckoutWindow-BRCeuWbT.js.br +0 -0
- package/dist/CheckoutWindow-BRCeuWbT.js.gz +0 -0
- package/dist/{ErrorMessage-B6saHmHE.js → ErrorMessage-l1MRSwlZ.js} +2 -2
- package/dist/ErrorMessage-l1MRSwlZ.js.br +0 -0
- package/dist/ErrorMessage-l1MRSwlZ.js.gz +0 -0
- package/dist/{EventAvailabilityForm-Dy1fXJzt.js → EventAvailabilityForm-B3hxMqPk.js} +3 -3
- package/dist/EventAvailabilityForm-B3hxMqPk.js.br +0 -0
- package/dist/EventAvailabilityForm-B3hxMqPk.js.gz +0 -0
- package/dist/{Field-BjtJJFJG.js → Field-DSIOH875.js} +6 -6
- package/dist/Field-DSIOH875.js.br +0 -0
- package/dist/Field-DSIOH875.js.gz +0 -0
- package/dist/{HotelAvailabilityForm-DxA1wrkE.js → HotelAvailabilityForm-pH7a7asC.js} +89 -83
- package/dist/HotelAvailabilityForm-pH7a7asC.js.br +0 -0
- package/dist/HotelAvailabilityForm-pH7a7asC.js.gz +0 -0
- package/dist/{SelectField-CfD2awPl.js → SelectField-DYAslcYJ.js} +216 -215
- package/dist/SelectField-DYAslcYJ.js.br +0 -0
- package/dist/SelectField-DYAslcYJ.js.gz +0 -0
- package/dist/{TermsOfService-C6R8tC_d.js → TermsOfService-B6eru9e1.js} +3 -3
- package/dist/TermsOfService-B6eru9e1.js.br +0 -0
- package/dist/TermsOfService-B6eru9e1.js.gz +0 -0
- package/dist/{_-13YE3WJt.js → _-DWVjjr86.js} +1 -1
- package/dist/_-DWVjjr86.js.br +0 -0
- package/dist/_-DWVjjr86.js.gz +0 -0
- package/dist/availability.js +9 -9
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +6 -6
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/chunk-BPfpcrXh.js.gz +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/{dist-CcS6KL-S.js → dist-DD6lclAX.js} +560 -228
- package/dist/dist-DD6lclAX.js.br +0 -0
- package/dist/dist-DD6lclAX.js.gz +0 -0
- package/dist/event.js +17 -17
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +9 -9
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +12 -12
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-3Rb6QoQd.js → giftCard-BwZuGOwg.js} +1 -1
- package/dist/giftCard-BwZuGOwg.js.br +0 -0
- package/dist/giftCard-BwZuGOwg.js.gz +0 -0
- package/dist/hotel.js +21 -21
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{masonry.plugin-BfiSV-UY.js → masonry.plugin-BtDSdMW6.js} +15 -15
- package/dist/masonry.plugin-BtDSdMW6.js.br +0 -0
- package/dist/masonry.plugin-BtDSdMW6.js.gz +0 -0
- package/dist/mitt-Dp_pykgV.js.gz +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{style-Bpqv9k-3.js → style-CBzCVvI0.js} +1 -1
- package/dist/style-CBzCVvI0.js.br +0 -0
- package/dist/style-CBzCVvI0.js.gz +0 -0
- package/package.json +121 -121
- package/dist/ActionField-DlqhtdHW.js.br +0 -0
- package/dist/ActionField-DlqhtdHW.js.gz +0 -0
- package/dist/AvailabilitySkeleton-DVRsnt_Y.js.br +0 -0
- package/dist/AvailabilitySkeleton-DVRsnt_Y.js.gz +0 -0
- package/dist/CheckoutWindow-Cx1MBwXg.js.br +0 -0
- package/dist/CheckoutWindow-Cx1MBwXg.js.gz +0 -0
- package/dist/ErrorMessage-B6saHmHE.js.br +0 -0
- package/dist/ErrorMessage-B6saHmHE.js.gz +0 -0
- package/dist/EventAvailabilityForm-Dy1fXJzt.js.br +0 -0
- package/dist/EventAvailabilityForm-Dy1fXJzt.js.gz +0 -0
- package/dist/Field-BjtJJFJG.js.br +0 -0
- package/dist/Field-BjtJJFJG.js.gz +0 -0
- package/dist/HotelAvailabilityForm-DxA1wrkE.js.br +0 -0
- package/dist/HotelAvailabilityForm-DxA1wrkE.js.gz +0 -0
- package/dist/SelectField-CfD2awPl.js.br +0 -0
- package/dist/SelectField-CfD2awPl.js.gz +0 -0
- package/dist/TermsOfService-C6R8tC_d.js.br +0 -0
- package/dist/TermsOfService-C6R8tC_d.js.gz +0 -4
- package/dist/_-13YE3WJt.js.br +0 -0
- package/dist/_-13YE3WJt.js.gz +0 -5
- package/dist/dist-CcS6KL-S.js.br +0 -0
- package/dist/dist-CcS6KL-S.js.gz +0 -0
- package/dist/giftCard-3Rb6QoQd.js.br +0 -0
- package/dist/giftCard-3Rb6QoQd.js.gz +0 -0
- package/dist/masonry.plugin-BfiSV-UY.js.br +0 -0
- package/dist/masonry.plugin-BfiSV-UY.js.gz +0 -0
- package/dist/style-Bpqv9k-3.js.br +0 -0
- package/dist/style-Bpqv9k-3.js.gz +0 -0
- package/dist-wix/availability.js +0 -594
- package/dist-wix/event.js +0 -595
- package/dist-wix/gift-card-validation.js +0 -584
- package/dist-wix/gift-card.js +0 -593
- package/dist-wix/hotel.js +0 -595
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./chunk-BPfpcrXh.js";
|
|
2
|
-
import { $ as t, At as n, Ct as r, D as i, Dt as a, E as o, Et as s, F as c, H as l, I as u, L as d, M as f, O as p, Ot as m, P as h, St as g, T as _, Tt as v, V as y, Y as b, _ as x, _t as S, at as C, bt as w, d as T, dt as E, et as D, ft as O, g as k, h as A, ht as j, i as ee, j as M, k as N, kt as te, l as ne, lt as P, mt as
|
|
2
|
+
import { $ as t, At as n, Ct as r, D as i, Dt as a, E as o, Et as s, F as c, H as l, I as u, L as d, M as f, O as p, Ot as m, P as h, St as g, T as _, Tt as v, V as y, Y as b, _ as x, _t as S, at as C, bt as w, d as T, dt as E, et as D, ft as O, g as k, h as A, ht as j, i as ee, j as M, k as N, kt as te, l as ne, lt as P, mt as F, n as I, nt as re, o as ie, q as ae, rt as oe, t as se, u as ce, vt as le, wt as ue, x as de, xt as L, y as fe, yt as pe } from "./mitt-Dp_pykgV.js";
|
|
3
3
|
//#region node_modules/@vueuse/shared/dist/index.js
|
|
4
|
-
function
|
|
4
|
+
function me(e, t) {
|
|
5
5
|
return j() ? (S(e, t), !0) : !1;
|
|
6
6
|
}
|
|
7
7
|
var he = typeof window < "u" && typeof document < "u";
|
|
@@ -12,9 +12,9 @@ function xe() {
|
|
|
12
12
|
return he && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
13
13
|
}
|
|
14
14
|
function Se(...e) {
|
|
15
|
-
if (e.length !== 1) return
|
|
15
|
+
if (e.length !== 1) return ue(...e);
|
|
16
16
|
let t = e[0];
|
|
17
|
-
return typeof t == "function" ?
|
|
17
|
+
return typeof t == "function" ? pe(F(() => ({
|
|
18
18
|
get: t,
|
|
19
19
|
set: ye
|
|
20
20
|
}))) : w(t);
|
|
@@ -41,7 +41,7 @@ function Te(e = we, t = {}) {
|
|
|
41
41
|
r.value = !0;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
isActive:
|
|
44
|
+
isActive: L(r),
|
|
45
45
|
pause: i,
|
|
46
46
|
resume: a,
|
|
47
47
|
eventFilter: (...t) => {
|
|
@@ -82,7 +82,7 @@ function Ae(e, t, n = {}) {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
function je(e, t = !0, n) {
|
|
85
|
-
Oe(n) ?
|
|
85
|
+
Oe(n) ? ae(e, n) : t ? e() : l(e);
|
|
86
86
|
}
|
|
87
87
|
function Me(e, t, n = {}) {
|
|
88
88
|
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = g(!1), o;
|
|
@@ -97,8 +97,8 @@ function Me(e, t, n = {}) {
|
|
|
97
97
|
a.value = !1, o = void 0, e(...n);
|
|
98
98
|
}, v(t));
|
|
99
99
|
}
|
|
100
|
-
return r && (a.value = !0, he && l()),
|
|
101
|
-
isPending:
|
|
100
|
+
return r && (a.value = !0, he && l()), me(c), {
|
|
101
|
+
isPending: L(a),
|
|
102
102
|
start: l,
|
|
103
103
|
stop: c
|
|
104
104
|
};
|
|
@@ -207,7 +207,7 @@ function Re(e, t, n = {}) {
|
|
|
207
207
|
}
|
|
208
208
|
function ze() {
|
|
209
209
|
let e = g(!1), t = c();
|
|
210
|
-
return t &&
|
|
210
|
+
return t && ae(() => {
|
|
211
211
|
e.value = !0;
|
|
212
212
|
}, t), e;
|
|
213
213
|
}
|
|
@@ -285,10 +285,10 @@ function He(e = {}) {
|
|
|
285
285
|
return e === "granted" || e === "prompt";
|
|
286
286
|
}
|
|
287
287
|
return {
|
|
288
|
-
copyPending:
|
|
288
|
+
copyPending: L(f),
|
|
289
289
|
isSupported: l,
|
|
290
|
-
text:
|
|
291
|
-
copied:
|
|
290
|
+
text: L(u),
|
|
291
|
+
copied: L(d),
|
|
292
292
|
copy: y
|
|
293
293
|
};
|
|
294
294
|
}
|
|
@@ -441,7 +441,7 @@ function Xe(e, t, n = {}) {
|
|
|
441
441
|
}) : ye, p = () => {
|
|
442
442
|
u(), f(), d.value = !1;
|
|
443
443
|
};
|
|
444
|
-
return
|
|
444
|
+
return me(p), {
|
|
445
445
|
isSupported: c,
|
|
446
446
|
isActive: d,
|
|
447
447
|
pause() {
|
|
@@ -454,10 +454,10 @@ function Xe(e, t, n = {}) {
|
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
456
|
function Ze(e, t = {}) {
|
|
457
|
-
let { threshold: n = 50, onSwipe: r, onSwipeEnd: i, onSwipeStart: a, passive: o = !0 } = t, s =
|
|
457
|
+
let { threshold: n = 50, onSwipe: r, onSwipeEnd: i, onSwipeStart: a, passive: o = !0 } = t, s = le({
|
|
458
458
|
x: 0,
|
|
459
459
|
y: 0
|
|
460
|
-
}), c =
|
|
460
|
+
}), c = le({
|
|
461
461
|
x: 0,
|
|
462
462
|
y: 0
|
|
463
463
|
}), l = _(() => s.x - c.x), u = _(() => s.y - c.y), { max: d, abs: f } = Math, p = _(() => d(f(l.value), f(u.value)) >= n), m = g(!1), h = _(() => p.value ? f(l.value) > f(u.value) ? l.value > 0 ? "left" : "right" : u.value > 0 ? "up" : "down" : "none"), v = (e) => [e.touches[0].clientX, e.touches[0].clientY], y = (e, t) => {
|
|
@@ -494,8 +494,8 @@ function Ze(e, t = {}) {
|
|
|
494
494
|
}
|
|
495
495
|
function Qe(e = "history", t = {}) {
|
|
496
496
|
let { initialValue: n = {}, removeNullishValues: r = !0, removeFalsyValues: i = !1, write: a = !0, writeMode: o = "replace", window: s = Pe, stringify: c = (e) => e.toString() } = t;
|
|
497
|
-
if (!s) return
|
|
498
|
-
let u =
|
|
497
|
+
if (!s) return le(n);
|
|
498
|
+
let u = le({});
|
|
499
499
|
function d() {
|
|
500
500
|
if (e === "history") return s.location.search || "";
|
|
501
501
|
if (e === "hash") {
|
|
@@ -1485,14 +1485,14 @@ var W = /* @__PURE__ */ function(e) {
|
|
|
1485
1485
|
//#region src/assets/typescript/mixins.ts
|
|
1486
1486
|
function Lr(e) {
|
|
1487
1487
|
switch (e) {
|
|
1488
|
-
case W.PerUnit: return
|
|
1489
|
-
case W.PerPerson: return
|
|
1490
|
-
case W.PerAdult: return
|
|
1491
|
-
case W.PerChild: return
|
|
1492
|
-
case W.PerNight: return
|
|
1493
|
-
case W.PerPersonPerNight: return
|
|
1494
|
-
case W.PerAdultPerNight: return
|
|
1495
|
-
case W.PerChildPerNight: return
|
|
1488
|
+
case W.PerUnit: return I.t("general.perUnit");
|
|
1489
|
+
case W.PerPerson: return I.t("general.perPerson");
|
|
1490
|
+
case W.PerAdult: return I.t("general.perAdult");
|
|
1491
|
+
case W.PerChild: return I.t("general.perChild");
|
|
1492
|
+
case W.PerNight: return I.t("general.perNight");
|
|
1493
|
+
case W.PerPersonPerNight: return I.t("general.perPersonPerNight");
|
|
1494
|
+
case W.PerAdultPerNight: return I.t("general.perAdultPerNight");
|
|
1495
|
+
case W.PerChildPerNight: return I.t("general.perChildPerNight");
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
1498
|
function Rr(e, t, n, r = 0, i = 0) {
|
|
@@ -1524,10 +1524,10 @@ function Br(e) {
|
|
|
1524
1524
|
}
|
|
1525
1525
|
function Vr(e) {
|
|
1526
1526
|
switch (e) {
|
|
1527
|
-
case 2: return
|
|
1528
|
-
case 3: return
|
|
1529
|
-
case 4: return
|
|
1530
|
-
case 5: return
|
|
1527
|
+
case 2: return I.t("booking.reservation.nameTitleMr");
|
|
1528
|
+
case 3: return I.t("booking.reservation.nameTitleMs");
|
|
1529
|
+
case 4: return I.t("booking.reservation.nameTitleMrs");
|
|
1530
|
+
case 5: return I.t("booking.reservation.nameTitleDr");
|
|
1531
1531
|
default: return "";
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
@@ -1718,7 +1718,7 @@ function $r(e) {
|
|
|
1718
1718
|
};
|
|
1719
1719
|
break;
|
|
1720
1720
|
}
|
|
1721
|
-
return t = r.map((e) => i[e]).join(", "), r.length === 1 ? t = `${i[r[0]]}` : r.length === 7 ? t =
|
|
1721
|
+
return t = r.map((e) => i[e]).join(", "), r.length === 1 ? t = `${i[r[0]]}` : r.length === 7 ? t = I.t("general.everyday") : Zr(n, r) ? t = I.t("general.weekends") : Xr(r) && r.length > 1 && (t = `${i[r[0]]} - ${i[r[r.length - 1]]}`), t;
|
|
1722
1722
|
}
|
|
1723
1723
|
function ei(e) {
|
|
1724
1724
|
let t = e, n = e.split(":");
|
|
@@ -3820,7 +3820,7 @@ var tc = ne("applyGiftCard", () => {
|
|
|
3820
3820
|
let { display: e } = ws(), t = w(0), n = w(""), r = w(""), i = w(""), a = w(!1), o = w(!1);
|
|
3821
3821
|
async function s() {
|
|
3822
3822
|
n.value === "" ? e({
|
|
3823
|
-
message:
|
|
3823
|
+
message: I.t("alert.error.giftCardEmpty"),
|
|
3824
3824
|
type: "error"
|
|
3825
3825
|
}) : (o.value = !0, await J().get("/gift-card/validate", { params: {
|
|
3826
3826
|
giftcardCode: n.value,
|
|
@@ -3828,17 +3828,17 @@ var tc = ne("applyGiftCard", () => {
|
|
|
3828
3828
|
} }).then((n) => {
|
|
3829
3829
|
let { valid: o, amount: s, expirationDate: c, productName: l } = n.data;
|
|
3830
3830
|
o ? (t.value = s, r.value = c, i.value = l, a.value = !0, e({
|
|
3831
|
-
message:
|
|
3831
|
+
message: I.t("alert.success.giftCardApplied"),
|
|
3832
3832
|
type: "success"
|
|
3833
3833
|
})) : (a.value = !1, e({
|
|
3834
|
-
message:
|
|
3834
|
+
message: I.t("alert.error.giftCardInvalid"),
|
|
3835
3835
|
type: "warning"
|
|
3836
3836
|
}));
|
|
3837
3837
|
}), o.value = !1);
|
|
3838
3838
|
}
|
|
3839
3839
|
function c() {
|
|
3840
3840
|
t.value = 0, n.value = "", a.value = !1, e({
|
|
3841
|
-
message:
|
|
3841
|
+
message: I.t("alert.success.giftCardRemoved"),
|
|
3842
3842
|
type: "success"
|
|
3843
3843
|
});
|
|
3844
3844
|
}
|
|
@@ -3853,7 +3853,7 @@ var tc = ne("applyGiftCard", () => {
|
|
|
3853
3853
|
reset: c
|
|
3854
3854
|
};
|
|
3855
3855
|
}), nc = ne("payment", () => {
|
|
3856
|
-
let { display: e } = ws(), { paymentGatewayId: t } =
|
|
3856
|
+
let { display: e } = ws(), { paymentGatewayId: t } = ce(oc()), n = w({}), r = w(), i = w(NaN), a = _(() => t.value !== Ar.None), o = _(() => n.value && n.value.guest ? n.value.guest.name : ""), s = _(() => n.value && n.value.guest ? n.value.guest.email : ""), c = _(() => n.value && n.value.guest ? n.value.guest.phone : ""), l = _(() => n.value.adults), u = _(() => n.value.children), d = _(() => n.value.totalPrice || 0), f = _(() => n.value.totalVAT || 0), p = _(() => n.value.offerDate), m = _(() => d.value - f.value), h = _(() => n.value.orderLines), g = _(() => h.value ? h.value.length > 0 : !1);
|
|
3857
3857
|
function v() {
|
|
3858
3858
|
J().put("/capture/confirm", { confirmationId: r.value });
|
|
3859
3859
|
let e = {
|
|
@@ -3886,19 +3886,19 @@ var tc = ne("applyGiftCard", () => {
|
|
|
3886
3886
|
}
|
|
3887
3887
|
async function y({ callback: a, response: o }) {
|
|
3888
3888
|
if (!o.error) if (!o.offer) e({
|
|
3889
|
-
message:
|
|
3889
|
+
message: I.t("booking.other.errorMessage"),
|
|
3890
3890
|
type: "warning"
|
|
3891
3891
|
});
|
|
3892
3892
|
else if (n.value = o.offer, r.value = o.confirmationId, i.value = o.offer.id, o.easyPayment) if (a(), t.value === Ar.ReePay) {
|
|
3893
3893
|
let t = new Reepay.EmbeddedCheckout(o.easyPayment.paymentID, { html_element: "konnectio-payment-checkout" });
|
|
3894
3894
|
t.addEventHandler(Dr.Accept, () => {
|
|
3895
3895
|
v(), e({
|
|
3896
|
-
message:
|
|
3896
|
+
message: I.t("alert.success.payment"),
|
|
3897
3897
|
type: "success"
|
|
3898
3898
|
}), a();
|
|
3899
3899
|
}), t.addEventHandler(Dr.Error, () => {
|
|
3900
3900
|
e({
|
|
3901
|
-
message:
|
|
3901
|
+
message: I.t("alert.error.payment"),
|
|
3902
3902
|
type: "warning"
|
|
3903
3903
|
});
|
|
3904
3904
|
});
|
|
@@ -3911,7 +3911,7 @@ var tc = ne("applyGiftCard", () => {
|
|
|
3911
3911
|
}, n = new Dibs.Checkout(t);
|
|
3912
3912
|
n.on("payment-completed", () => {
|
|
3913
3913
|
console.log("Konnectio: Payment completed!"), v(), e({
|
|
3914
|
-
message:
|
|
3914
|
+
message: I.t("alert.success.payment"),
|
|
3915
3915
|
type: "success"
|
|
3916
3916
|
}), a();
|
|
3917
3917
|
}), n.on("pay-initialized", () => {
|
|
@@ -3941,8 +3941,8 @@ var tc = ne("applyGiftCard", () => {
|
|
|
3941
3941
|
pay: y,
|
|
3942
3942
|
clearOfferId: b
|
|
3943
3943
|
};
|
|
3944
|
-
}), rc =
|
|
3945
|
-
let e = hc(), t = ac(), n = nc(), { voucher: r, amount: i } =
|
|
3944
|
+
}), rc = se(), ic = ne("hotel", () => {
|
|
3945
|
+
let e = hc(), t = ac(), n = nc(), { voucher: r, amount: i } = ce(tc()), { display: a } = ws(), { metaData: o } = ce(oc()), s = oc(), c = w({}), l = _(() => {
|
|
3946
3946
|
let t = [];
|
|
3947
3947
|
for (let n in c.value) {
|
|
3948
3948
|
let r = parseInt(n), i = P.value.roomGroups.find((e) => e.id === r), a = {
|
|
@@ -4027,8 +4027,8 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4027
4027
|
}
|
|
4028
4028
|
let g = _(() => {
|
|
4029
4029
|
let t = [];
|
|
4030
|
-
for (let n in
|
|
4031
|
-
let r = parseInt(n), i =
|
|
4030
|
+
for (let n in ae.value) {
|
|
4031
|
+
let r = parseInt(n), i = ae.value[r];
|
|
4032
4032
|
if (i > 0) {
|
|
4033
4033
|
let { price: n, name: a, quantityStrategy: o } = rt.value.flatMap((e) => e.addons).find((e) => e.id === r);
|
|
4034
4034
|
t.push({
|
|
@@ -4059,7 +4059,7 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4059
4059
|
}
|
|
4060
4060
|
return r;
|
|
4061
4061
|
}
|
|
4062
|
-
let y = _(() =>
|
|
4062
|
+
let y = _(() => se.value.length > 0 ? se.value.reduce((e, t) => e + t.unitConfigs.reduce((e, n) => e + v(n.addons, t.roomGroupId).reduce((e, { totalPrice: t }) => e + t, 0), 0), 0) : g.value.reduce((e, { totalPrice: t }) => e + t, 0)), b = _(() => {
|
|
4063
4063
|
let e = 0, t = 0 - i.value;
|
|
4064
4064
|
if (Pe.value && rt.value.length > 0) {
|
|
4065
4065
|
let n = rt.value.flatMap((e) => h(e.id) || []);
|
|
@@ -4069,17 +4069,17 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4069
4069
|
e = l.value.flatMap(({ variants: e }) => e).flatMap(({ rooms: e }) => e).flatMap(({ roomAddons: e }) => e).reduce((e, { totalPrice: t }) => e + t, n);
|
|
4070
4070
|
}
|
|
4071
4071
|
return Je.value && Je.value?.providesDiscount && (e -= e * (Je.value.discountPercent / 100)), e;
|
|
4072
|
-
}), x = _(() => nt.value ? nt.value.weekendFee : 0), S = _(() => l.value.flatMap(({ variants: e }) => e).flatMap(({ rooms: e }) => e)), C = _(() => Pe.value ? it.value.length : S.value.length), T = _(() => Pe.value ? it.value.reduce((e, t) => e + t.adults, 0) : S.value.reduce((e, { adultsCount: t }) => e + t, 0)), E = _(() => Pe.value ? it.value.reduce((e, t) => e + t.children, 0) : S.value.reduce((e, { childrenCount: t }) => e + t, 0)), D = _(() => T.value > 0 ? T.value !== e.adults : !1), O = _(() => E.value > 0 ? E.value !== e.children : !1), k = w(e.arrivalDate), A = w(e.departureDate), j = w(e.adults), ee = w(e.children), M = w(e.location || NaN), N = _(() => k.value !== e.arrivalDate && A.value !== e.departureDate), te = _(() => M.value !== e.location), ne = _(() => N.value || te.value), P = w({}),
|
|
4072
|
+
}), x = _(() => nt.value ? nt.value.weekendFee : 0), S = _(() => l.value.flatMap(({ variants: e }) => e).flatMap(({ rooms: e }) => e)), C = _(() => Pe.value ? it.value.length : S.value.length), T = _(() => Pe.value ? it.value.reduce((e, t) => e + t.adults, 0) : S.value.reduce((e, { adultsCount: t }) => e + t, 0)), E = _(() => Pe.value ? it.value.reduce((e, t) => e + t.children, 0) : S.value.reduce((e, { childrenCount: t }) => e + t, 0)), D = _(() => T.value > 0 ? T.value !== e.adults : !1), O = _(() => E.value > 0 ? E.value !== e.children : !1), k = w(e.arrivalDate), A = w(e.departureDate), j = w(e.adults), ee = w(e.children), M = w(e.location || NaN), N = _(() => k.value !== e.arrivalDate && A.value !== e.departureDate), te = _(() => M.value !== e.location), ne = _(() => N.value || te.value), P = w({}), F = w(!0), re = w(0), ie = w(NaN), ae = w({}), oe = w(NaN), se = w([]), le = w(""), ue = w(""), de = w(""), L = w(""), fe = w(""), pe = w(null), me = w(null), he = B("konnectio_name", "", void 0, { serializer: z.string }), ge = B("konnectio_nameTitle", 2, void 0, { serializer: z.number }), _e = B("konnectio_email", "", void 0, { serializer: z.string }), ve = B("konnectio_phone", "", void 0, { serializer: z.string }), ye = B("konnectio_company", "", void 0, { serializer: z.string }), be = B("konnectio_postal", "", void 0, { serializer: z.string }), xe = B("konnectio_city", "", void 0, { serializer: z.string }), Se = B("konnectio_country", 57, void 0, { serializer: z.number }), Ce = B("konnectio_address", "", void 0, { serializer: z.string }), we = B("konnectio_sortingKeys", { pricesFrom: !1 }, void 0, { serializer: z.object }), Te = w(""), Ee = w(""), De = w(!1), Oe = w(!1), ke = w(!1), Ae = w(null), je = w(void 0), Me = w(), Ne = w(), Pe = _(() => !isNaN(ie.value)), Fe = _(() => s.metaData.hotels.findIndex((t) => t.id === e.location) || 0), R = _(() => s.metaData.hotels[Fe.value]), Ie = _(() => s.metaData.hotels && s.metaData.hotels.length > 1), Le = _(() => s.metaData.hotels ? s.metaData.hotels.flatMap((e) => ({
|
|
4073
4073
|
id: e.id,
|
|
4074
4074
|
name: e.name
|
|
4075
|
-
})) : []), Re = _(() => !!
|
|
4075
|
+
})) : []), Re = _(() => !!pe.value), ze = _(() => !!me.value), Be = _(() => R.value.termsOfService ? R.value.termsOfService : ""), Ve = _(() => R.value.hotelMapImage ? R.value.hotelMapImage : null), He = _(() => R.value.useDiscountCard ? R.value.useDiscountCard : !1), Ue = _(() => Be.value !== ""), We = _(() => R.value.country ? R.value.country.name : ""), Ge = _(() => s.metaData.countries ? s.metaData.countries : []), Ke = _(() => s.metaData.cardTypes ? s.metaData.cardTypes : []), qe = _(() => Ke.value.map((e) => ({
|
|
4076
4076
|
value: e.name,
|
|
4077
4077
|
label: e.shortDescription
|
|
4078
|
-
}))), Je = _(() => Ke.value.find((e) => e.name === je.value?.cardType)), Ye = _(() => R.value.name ? R.value.name : ""), Xe = _(() => s.metaData && Object.keys(s.metaData).length !== 0), Ze = _(() => Object.keys(P.value).length !== 0), Qe = _(() => !(!he.value[1] || !_e.value || !(ve.value.length >= 5) || !be.value || !xe.value || !Ce.value)), $e = _(() =>
|
|
4079
|
-
if (tt.value.length > 0) return tt.value.find((e) => e.id ===
|
|
4080
|
-
}), rt = _(() => !nt.value || !
|
|
4078
|
+
}))), Je = _(() => Ke.value.find((e) => e.name === je.value?.cardType)), Ye = _(() => R.value.name ? R.value.name : ""), Xe = _(() => s.metaData && Object.keys(s.metaData).length !== 0), Ze = _(() => Object.keys(P.value).length !== 0), Qe = _(() => !(!he.value[1] || !_e.value || !(ve.value.length >= 5) || !be.value || !xe.value || !Ce.value)), $e = _(() => re.value === 1 && F.value), et = _(() => re.value === 3 && F.value), tt = _(() => Ze.value ? P.value.templates.concat(P.value.specialTemplates) : []), nt = _(() => {
|
|
4079
|
+
if (tt.value.length > 0) return tt.value.find((e) => e.id === ie.value);
|
|
4080
|
+
}), rt = _(() => !nt.value || !se.value ? [] : se.value.map((e) => nt.value.templateRoomGroups.find((t) => t.id === e.roomGroupId)).filter((e) => e !== void 0)), it = _(() => {
|
|
4081
4081
|
let e = [];
|
|
4082
|
-
return
|
|
4082
|
+
return se.value.forEach((t, n) => {
|
|
4083
4083
|
t.unitConfigs.forEach((r, i) => {
|
|
4084
4084
|
e.push({
|
|
4085
4085
|
roomGroupId: t.roomGroupId,
|
|
@@ -4090,7 +4090,7 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4090
4090
|
});
|
|
4091
4091
|
});
|
|
4092
4092
|
}), e;
|
|
4093
|
-
}), at = _(() => U.value ? U.value.offer.offerTemplates[0].totalPrice : rt.value.length === 0 ? 0 :
|
|
4093
|
+
}), at = _(() => U.value ? U.value.offer.offerTemplates[0].totalPrice : rt.value.length === 0 ? 0 : se.value.reduce((e, t) => e + (rt.value.find((e) => e.id === t.roomGroupId)?.extraPrice ?? 0) * t.unitConfigs.length, 0));
|
|
4094
4094
|
function ot(e, t) {
|
|
4095
4095
|
let n = [];
|
|
4096
4096
|
e && (n = e.filter((e) => !((e.quantityStrategy === W.PerChild || e.quantityStrategy === W.PerChildPerNight) && t == 0)));
|
|
@@ -4104,23 +4104,23 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4104
4104
|
return `[REMARKS]: ${Te.value} \r\n [ALLERGIES]: ${Ee.value} \r\n [REQUESTED ARRIVAL]: ${e} \r\n [REQUESTED DEPARTURE]: ${t}`;
|
|
4105
4105
|
}
|
|
4106
4106
|
function lt(e, t, n, r) {
|
|
4107
|
-
let i = (t ? n : r ?
|
|
4107
|
+
let i = (t ? n : r ? ue.value : de.value).split(":");
|
|
4108
4108
|
return Wr(new Date(e).setUTCHours(parseInt(i[0]), parseInt(i[1]), 0, 0));
|
|
4109
4109
|
}
|
|
4110
4110
|
function ut(t) {
|
|
4111
4111
|
return Gr(e.arrivalDate, e.departureDate) * t;
|
|
4112
4112
|
}
|
|
4113
4113
|
async function dt() {
|
|
4114
|
-
|
|
4114
|
+
F.value = !0;
|
|
4115
4115
|
try {
|
|
4116
4116
|
o.value = (await J().get("/hotel/metadata", { params: { language: Kr() } })).data;
|
|
4117
4117
|
} catch {
|
|
4118
4118
|
a({
|
|
4119
|
-
message:
|
|
4119
|
+
message: I.t("alert.error.couldntFetchMetadata"),
|
|
4120
4120
|
type: "warning"
|
|
4121
4121
|
});
|
|
4122
4122
|
}
|
|
4123
|
-
|
|
4123
|
+
F.value = !1;
|
|
4124
4124
|
}
|
|
4125
4125
|
let ft = w(), pt = _(() => ft.value?.name);
|
|
4126
4126
|
async function mt(t) {
|
|
@@ -4128,7 +4128,7 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4128
4128
|
let n = await J().post("/hotel/check-guest-discount", { guestDiscountId: t });
|
|
4129
4129
|
if (n.data.isValid) {
|
|
4130
4130
|
a({
|
|
4131
|
-
message:
|
|
4131
|
+
message: I.t("alert.success.guestDiscountCodeApplied"),
|
|
4132
4132
|
type: "success"
|
|
4133
4133
|
});
|
|
4134
4134
|
let t = n.data.guestDiscount;
|
|
@@ -4137,18 +4137,18 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4137
4137
|
return r > i ? (e.updateDates(new Date(t.periods[0].fromDate)), !0) : (e.updateDates(i), !0);
|
|
4138
4138
|
}
|
|
4139
4139
|
return a({
|
|
4140
|
-
message:
|
|
4140
|
+
message: I.t("alert.error.guestDiscountCodeInvalid"),
|
|
4141
4141
|
type: "error"
|
|
4142
4142
|
}), !1;
|
|
4143
4143
|
} catch {
|
|
4144
4144
|
return a({
|
|
4145
|
-
message:
|
|
4145
|
+
message: I.t("booking.other.errorMessage"),
|
|
4146
4146
|
type: "error"
|
|
4147
4147
|
}), !1;
|
|
4148
4148
|
}
|
|
4149
4149
|
}
|
|
4150
4150
|
async function V() {
|
|
4151
|
-
|
|
4151
|
+
re.value = 1, F.value = !0;
|
|
4152
4152
|
let n = e.location;
|
|
4153
4153
|
isNaN(n) && (n = null);
|
|
4154
4154
|
try {
|
|
@@ -4159,29 +4159,29 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4159
4159
|
childrenCount: e.children,
|
|
4160
4160
|
roomCount: e.roomCount,
|
|
4161
4161
|
roomGroupIds: s.hasActiveIdFilter ? s.activeIdFilter : null,
|
|
4162
|
-
guestDiscountId:
|
|
4163
|
-
guestDiscountCode:
|
|
4162
|
+
guestDiscountId: pe.value,
|
|
4163
|
+
guestDiscountCode: me.value,
|
|
4164
4164
|
language: Kr(),
|
|
4165
4165
|
hotelId: n
|
|
4166
4166
|
} });
|
|
4167
|
-
r.status === 200 ? (P.value = r.data, j.value = e.adults, ee.value = e.children, k.value = e.arrivalDate, A.value = e.departureDate, M.value = e.location,
|
|
4168
|
-
message: `${
|
|
4167
|
+
r.status === 200 ? (P.value = r.data, j.value = e.adults, ee.value = e.children, k.value = e.arrivalDate, A.value = e.departureDate, M.value = e.location, ue.value = s.defaultArrivalTime(M.value), de.value = s.defaultDepartureTime(M.value), rc.emit("scrollToTop"), t.viewItemList()) : a({
|
|
4168
|
+
message: `${I.t("booking.other.errorMessage")} (HTTP: ${r.status})`,
|
|
4169
4169
|
type: "warning"
|
|
4170
4170
|
});
|
|
4171
4171
|
} catch {
|
|
4172
4172
|
a({
|
|
4173
|
-
message:
|
|
4173
|
+
message: I.t("alert.error.couldntFetchListings"),
|
|
4174
4174
|
type: "warning"
|
|
4175
4175
|
});
|
|
4176
4176
|
}
|
|
4177
|
-
|
|
4177
|
+
F.value = !1;
|
|
4178
4178
|
}
|
|
4179
4179
|
async function H() {
|
|
4180
4180
|
await Promise.all([dt(), e.fetchMetadata()]);
|
|
4181
4181
|
}
|
|
4182
4182
|
function ht(e = !1) {
|
|
4183
4183
|
let t = [];
|
|
4184
|
-
isNaN(
|
|
4184
|
+
isNaN(ie.value) ? l.value.forEach(({ variants: e, roomGroupID: n }) => {
|
|
4185
4185
|
let r = h(n);
|
|
4186
4186
|
e?.forEach(({ rooms: e, ratePlanID: i }) => {
|
|
4187
4187
|
e?.forEach(({ adultsCount: e, childrenCount: a, roomAddons: o, roomId: s }) => {
|
|
@@ -4200,10 +4200,10 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4200
4200
|
});
|
|
4201
4201
|
});
|
|
4202
4202
|
});
|
|
4203
|
-
}) :
|
|
4204
|
-
let n =
|
|
4203
|
+
}) : se.value.length > 0 ? it.value.forEach((e) => {
|
|
4204
|
+
let n = se.value[e.selectionIdx].unitConfigs[e.configIdx], r = v(n.addons, e.roomGroupId);
|
|
4205
4205
|
t.push({
|
|
4206
|
-
templateID:
|
|
4206
|
+
templateID: ie.value,
|
|
4207
4207
|
roomGroupID: e.roomGroupId,
|
|
4208
4208
|
ratePlanID: null,
|
|
4209
4209
|
adultsCount: e.adults,
|
|
@@ -4219,12 +4219,12 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4219
4219
|
}
|
|
4220
4220
|
});
|
|
4221
4221
|
}) : t.push({
|
|
4222
|
-
templateID:
|
|
4223
|
-
roomGroupID:
|
|
4222
|
+
templateID: ie.value,
|
|
4223
|
+
roomGroupID: oe.value,
|
|
4224
4224
|
ratePlanID: null,
|
|
4225
4225
|
adultsCount: j.value,
|
|
4226
4226
|
childrenCount: ee.value,
|
|
4227
|
-
roomAddons: g.value.concat(h(
|
|
4227
|
+
roomAddons: g.value.concat(h(oe.value) || []),
|
|
4228
4228
|
guest: {
|
|
4229
4229
|
title: Vr(ge.value),
|
|
4230
4230
|
guestID: 0,
|
|
@@ -4242,7 +4242,7 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4242
4242
|
toDate: ti(A.value),
|
|
4243
4243
|
hotelId: n,
|
|
4244
4244
|
guest: {
|
|
4245
|
-
travellingFor:
|
|
4245
|
+
travellingFor: le.value,
|
|
4246
4246
|
title: Vr(ge.value),
|
|
4247
4247
|
guestID: 0,
|
|
4248
4248
|
name: he.value,
|
|
@@ -4256,7 +4256,7 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4256
4256
|
newsmails: De.value
|
|
4257
4257
|
},
|
|
4258
4258
|
giftCardCode: r.value,
|
|
4259
|
-
discountCode: e ?
|
|
4259
|
+
discountCode: e ? fe.value : L.value,
|
|
4260
4260
|
selectedRooms: t,
|
|
4261
4261
|
remark: ct(lt(k.value, !s.hasUserArrivalSelection(M.value), s.defaultArrivalTime(M.value), !0), lt(A.value, !s.hasUserDepartureSelection(M.value), s.defaultDepartureTime(M.value), !1)),
|
|
4262
4262
|
checkoutUrl: window.location.origin,
|
|
@@ -4267,36 +4267,36 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4267
4267
|
}
|
|
4268
4268
|
let U = w(), gt = w(!1);
|
|
4269
4269
|
async function _t() {
|
|
4270
|
-
if (
|
|
4270
|
+
if (L.value !== "") {
|
|
4271
4271
|
gt.value = !0;
|
|
4272
|
-
let e =
|
|
4272
|
+
let e = L.value;
|
|
4273
4273
|
J().post("/hotel/validate-discount-code", ht()).then((t) => {
|
|
4274
4274
|
gt.value = !1;
|
|
4275
4275
|
let n = t.data;
|
|
4276
|
-
n.discountApplyed === !0 ? (U.value = n,
|
|
4277
|
-
message:
|
|
4276
|
+
n.discountApplyed === !0 ? (U.value = n, fe.value = e, me.value = e, L.value = "", a({
|
|
4277
|
+
message: I.t("alert.success.discountCodeApplied"),
|
|
4278
4278
|
type: "success"
|
|
4279
|
-
})) : (
|
|
4280
|
-
message:
|
|
4279
|
+
})) : (me.value === e && (me.value = null), n.error == "CodeNotApplicable" ? a({
|
|
4280
|
+
message: I.t("alert.error.discountCodeNotApplicable"),
|
|
4281
4281
|
type: "error"
|
|
4282
4282
|
}) : a({
|
|
4283
|
-
message:
|
|
4283
|
+
message: I.t("alert.error.discountCodeInvalid"),
|
|
4284
4284
|
type: "error"
|
|
4285
4285
|
}));
|
|
4286
4286
|
}).catch(() => {
|
|
4287
|
-
gt.value = !1,
|
|
4288
|
-
message: `${
|
|
4287
|
+
gt.value = !1, me.value === e && (me.value = null), a({
|
|
4288
|
+
message: `${I.t("alert.error.discountCodeValidation")}`,
|
|
4289
4289
|
type: "warning"
|
|
4290
4290
|
});
|
|
4291
4291
|
});
|
|
4292
4292
|
} else a({
|
|
4293
|
-
message:
|
|
4293
|
+
message: I.t("alert.error.discountCodeEmpty"),
|
|
4294
4294
|
type: "error"
|
|
4295
4295
|
});
|
|
4296
4296
|
}
|
|
4297
4297
|
let vt = _(() => U.value?.offer.properties);
|
|
4298
4298
|
function yt() {
|
|
4299
|
-
U.value = void 0,
|
|
4299
|
+
U.value = void 0, L.value = "", fe.value = "", me.value = null;
|
|
4300
4300
|
}
|
|
4301
4301
|
async function bt() {
|
|
4302
4302
|
if (Ae.value && Me.value) {
|
|
@@ -4308,47 +4308,47 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4308
4308
|
};
|
|
4309
4309
|
J().post("/hotel/validate-card-number", e).then((t) => {
|
|
4310
4310
|
t.status === 200 && (t.data.success === !0 ? (je.value = e, a({
|
|
4311
|
-
message:
|
|
4311
|
+
message: I.t("alert.success.memberCardValid"),
|
|
4312
4312
|
type: "success"
|
|
4313
4313
|
})) : a({
|
|
4314
|
-
message:
|
|
4314
|
+
message: I.t("alert.error.memberCardInvalid"),
|
|
4315
4315
|
type: "error"
|
|
4316
4316
|
}));
|
|
4317
4317
|
});
|
|
4318
4318
|
} else a({
|
|
4319
|
-
message:
|
|
4319
|
+
message: I.t("alert.error.memberCardEmpty"),
|
|
4320
4320
|
type: "error"
|
|
4321
4321
|
});
|
|
4322
4322
|
}
|
|
4323
4323
|
async function xt(e, t) {
|
|
4324
4324
|
if (ke.value === !1 && Ue.value) {
|
|
4325
4325
|
a({
|
|
4326
|
-
message:
|
|
4326
|
+
message: I.t("alert.error.acceptTerms", { terms: I.t("general.termsAndConditions") }),
|
|
4327
4327
|
type: "error"
|
|
4328
4328
|
});
|
|
4329
4329
|
return;
|
|
4330
4330
|
}
|
|
4331
|
-
|
|
4332
|
-
Oe.value = !1,
|
|
4331
|
+
re.value = 3, F.value = !0, await J().post("/hotel/create-reservation", ht(!0)).then((t) => {
|
|
4332
|
+
Oe.value = !1, F.value = !1;
|
|
4333
4333
|
try {
|
|
4334
4334
|
n.pay({
|
|
4335
4335
|
callback: e,
|
|
4336
4336
|
response: t.data
|
|
4337
4337
|
});
|
|
4338
4338
|
} catch {
|
|
4339
|
-
|
|
4340
|
-
message:
|
|
4339
|
+
re.value = 2, a({
|
|
4340
|
+
message: I.t("booking.other.errorMessage"),
|
|
4341
4341
|
type: "warning"
|
|
4342
4342
|
});
|
|
4343
4343
|
}
|
|
4344
4344
|
}).catch((e) => {
|
|
4345
|
-
|
|
4345
|
+
F.value = !1;
|
|
4346
4346
|
let { status: n } = e.response;
|
|
4347
|
-
n === 503 ? (
|
|
4348
|
-
message:
|
|
4347
|
+
n === 503 ? (re.value = 1, a({
|
|
4348
|
+
message: I.t("alert.error.noRoomAvailable"),
|
|
4349
4349
|
type: "warning"
|
|
4350
|
-
}), t(), Ot()) : (
|
|
4351
|
-
message:
|
|
4350
|
+
}), t(), Ot()) : (re.value = 2, a({
|
|
4351
|
+
message: I.t("booking.other.errorMessage"),
|
|
4352
4352
|
type: "warning"
|
|
4353
4353
|
}));
|
|
4354
4354
|
});
|
|
@@ -4361,19 +4361,19 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4361
4361
|
});
|
|
4362
4362
|
}
|
|
4363
4363
|
function Ct(e) {
|
|
4364
|
-
|
|
4364
|
+
pe.value = e;
|
|
4365
4365
|
}
|
|
4366
4366
|
function wt(e) {
|
|
4367
|
-
|
|
4367
|
+
me.value = e;
|
|
4368
4368
|
}
|
|
4369
4369
|
function Tt() {
|
|
4370
|
-
|
|
4370
|
+
pe.value = null;
|
|
4371
4371
|
}
|
|
4372
4372
|
function Et() {
|
|
4373
|
-
|
|
4373
|
+
me.value = null;
|
|
4374
4374
|
}
|
|
4375
4375
|
function Dt() {
|
|
4376
|
-
|
|
4376
|
+
ie.value = NaN, oe.value = NaN, ae.value = {}, se.value = [];
|
|
4377
4377
|
}
|
|
4378
4378
|
function Ot() {
|
|
4379
4379
|
u(), yt(), Dt();
|
|
@@ -4401,13 +4401,13 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4401
4401
|
currentLocation: M,
|
|
4402
4402
|
isValidatingDiscountCode: gt,
|
|
4403
4403
|
discountVouchers: vt,
|
|
4404
|
-
discountCode:
|
|
4404
|
+
discountCode: L,
|
|
4405
4405
|
datesMismatch: N,
|
|
4406
|
-
appliedDiscountCode:
|
|
4406
|
+
appliedDiscountCode: fe,
|
|
4407
4407
|
hasGuestDiscountId: Re,
|
|
4408
4408
|
hasGuestDiscountCode: ze,
|
|
4409
|
-
guestDiscountId:
|
|
4410
|
-
guestDiscountCode:
|
|
4409
|
+
guestDiscountId: pe,
|
|
4410
|
+
guestDiscountCode: me,
|
|
4411
4411
|
hasMemberCards: He,
|
|
4412
4412
|
getMandatoryRoomGroupAddons: h,
|
|
4413
4413
|
resetDiscountVoucher: yt,
|
|
@@ -4431,16 +4431,16 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4431
4431
|
termsOfService: Be,
|
|
4432
4432
|
metaData: o,
|
|
4433
4433
|
availabilityData: P,
|
|
4434
|
-
isLoading:
|
|
4435
|
-
moduleState:
|
|
4436
|
-
templateAddons:
|
|
4437
|
-
templateID:
|
|
4438
|
-
roomGroupID:
|
|
4439
|
-
templateRoomSelections:
|
|
4434
|
+
isLoading: F,
|
|
4435
|
+
moduleState: re,
|
|
4436
|
+
templateAddons: ae,
|
|
4437
|
+
templateID: ie,
|
|
4438
|
+
roomGroupID: oe,
|
|
4439
|
+
templateRoomSelections: se,
|
|
4440
4440
|
templateRoomUnits: it,
|
|
4441
|
-
travelingFor:
|
|
4442
|
-
arrivalTime:
|
|
4443
|
-
departureTime:
|
|
4441
|
+
travelingFor: le,
|
|
4442
|
+
arrivalTime: ue,
|
|
4443
|
+
departureTime: de,
|
|
4444
4444
|
name: he,
|
|
4445
4445
|
nameTitle: ge,
|
|
4446
4446
|
email: _e,
|
|
@@ -4605,44 +4605,44 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4605
4605
|
viewItemList: s
|
|
4606
4606
|
};
|
|
4607
4607
|
}), oc = ne("utilities", () => {
|
|
4608
|
-
let e = hc(), t = ac(), { display: n } = ws(), r = B("k_utils_settings", {}, void 0, { serializer: z.object }), i = w([]), a = w({}), o = _(() => (e) => i.value[e] ? !i.value[e].disableChildSelection : !0), s = _(() => (e) => i.value[e] ? !i.value[e].hideArrivalDepartureInputs : !1), c = _(() => (e) => i.value[e] ? !i.value[e].disableArrivalUserSelection : !1), l = _(() => (e) => i.value[e] ? !i.value[e].disableDepartureUserSelection : !1), u = _(() => (e) => i.value[e] ? i.value[e].enableRoomAmountSearch : !1), d = _(() => (e) => i.value[e].arrivalEarliest), f = _(() => (e) => i.value[e].arrivalDefault), p = _(() => (e) => i.value[e].arrivalLatest), m = _(() => (e) => i.value[e].departureEarliest), h = _(() => (e) => i.value[e].departureDefault), g = _(() => (e) => i.value[e].departureLatest), v = _(() => r.value.maximumNightsAvailable), y = _(() => r.value.enableTracking), b = _(() => r.value.googleApiKey), x = _(() => r.value.recaptchaSiteKey), S = _(() => r.value.defaultAdultAmount), C = _(() => r.value.defaultChildAmount), T = _(() => r.value.maxAdultAmount), E = _(() => r.value.maxChildAmount), D = _(() => r.value.firstSelectableDateOffset), O = _(() => r.value.lastSelectableDateOffset), k = _(() => r.value.hideTitle), A = _(() => r.value.headerHeight), j = _(() => r.value.enableStickyHeader), M = _(() => r.value.disableNamePrefix), N = _(() => r.value.disableGiftCardVoucher), te = _(() => r.value.disableDiscountVoucher), ne = _(() => r.value.disablePricesFrom), P = _(() => r.value.hideAvailableRoomAmount), re = _(() => r.value.disableNewsletterSignup), ie = _(() => r.value.disableTravelingFor), ae = _(() => r.value.disableTravelingForBleasure), oe = _(() => r.value.disableCompanyField), se = _(() => r.value.hideEventLength), ce = _(() => r.value.hideEventEndTime), le = _(() => r.value.hideAvailabilityNotice), ue = _(() => r.value.autoSelectRateId), de = _(() => r.value.splitBookingCalendar),
|
|
4608
|
+
let e = hc(), t = ac(), { display: n } = ws(), r = B("k_utils_settings", {}, void 0, { serializer: z.object }), i = w([]), a = w({}), o = _(() => (e) => i.value[e] ? !i.value[e].disableChildSelection : !0), s = _(() => (e) => i.value[e] ? !i.value[e].hideArrivalDepartureInputs : !1), c = _(() => (e) => i.value[e] ? !i.value[e].disableArrivalUserSelection : !1), l = _(() => (e) => i.value[e] ? !i.value[e].disableDepartureUserSelection : !1), u = _(() => (e) => i.value[e] ? i.value[e].enableRoomAmountSearch : !1), d = _(() => (e) => i.value[e].arrivalEarliest), f = _(() => (e) => i.value[e].arrivalDefault), p = _(() => (e) => i.value[e].arrivalLatest), m = _(() => (e) => i.value[e].departureEarliest), h = _(() => (e) => i.value[e].departureDefault), g = _(() => (e) => i.value[e].departureLatest), v = _(() => r.value.maximumNightsAvailable), y = _(() => r.value.enableTracking), b = _(() => r.value.googleApiKey), x = _(() => r.value.recaptchaSiteKey), S = _(() => r.value.defaultAdultAmount), C = _(() => r.value.defaultChildAmount), T = _(() => r.value.maxAdultAmount), E = _(() => r.value.maxChildAmount), D = _(() => r.value.firstSelectableDateOffset), O = _(() => r.value.lastSelectableDateOffset), k = _(() => r.value.hideTitle), A = _(() => r.value.headerHeight), j = _(() => r.value.enableStickyHeader), M = _(() => r.value.disableNamePrefix), N = _(() => r.value.disableGiftCardVoucher), te = _(() => r.value.disableDiscountVoucher), ne = _(() => r.value.disablePricesFrom), P = _(() => r.value.disableCalendarPricesAvailability), F = _(() => r.value.hideAvailableRoomAmount), re = _(() => r.value.disableNewsletterSignup), ie = _(() => r.value.disableTravelingFor), ae = _(() => r.value.disableTravelingForBleasure), oe = _(() => r.value.disableCompanyField), se = _(() => r.value.hideEventLength), ce = _(() => r.value.hideEventEndTime), le = _(() => r.value.hideAvailabilityNotice), ue = _(() => r.value.autoSelectRateId), de = _(() => r.value.splitBookingCalendar), L = _(() => r.value.hideEventGuestAmount), fe = _(() => r.value.hideOptionalLabel), pe = _(() => r.value.enableMultipleConfigurations), me = _(() => r.value.selectGiftCardAsDefault), he = w(null), ge = w(""), _e = w(!1), ve = _(() => `Bearer ${ge.value}`), ye = _(() => !!a.value && !!a.value.hotels), be = _(() => ye.value ? a.value.hotels[0].currency.currencyCode : ""), xe = _(() => ye.value ? a.value.hotels[0].currency.id : NaN), Se = _(() => ye.value ? a.value.hotels[0].name : ""), Ce = _(() => ye.value && a.value.hotels[0].paymentGatewayId || Ar.None), we = _(() => !!x.value), Te = _(() => !!he.value), Ee = _(() => {
|
|
4609
4609
|
let e = !0;
|
|
4610
|
-
return (
|
|
4611
|
-
}),
|
|
4612
|
-
async function
|
|
4613
|
-
|
|
4610
|
+
return (Ce.value === Ar.None || Ce.value === Ar.AskForCreditCard) && (e = !1), e;
|
|
4611
|
+
}), De = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + D.value)).setHours(12, 0, 0, 0)), Oe = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + D.value + 1)).setHours(12, 0, 0, 0));
|
|
4612
|
+
async function ke(e) {
|
|
4613
|
+
ge.value = e, await lc();
|
|
4614
4614
|
}
|
|
4615
|
-
async function
|
|
4615
|
+
async function Ae(e = "none") {
|
|
4616
4616
|
try {
|
|
4617
4617
|
if (e !== "none") {
|
|
4618
4618
|
let t = (await J().get(`/${e}/metadata`, { params: { language: Kr() } })).data;
|
|
4619
|
-
a.value = t, t.success === void 0 ?
|
|
4619
|
+
a.value = t, t.success === void 0 ? _e.value = !1 : _e.value = !t.success;
|
|
4620
4620
|
}
|
|
4621
4621
|
} catch {
|
|
4622
4622
|
n({
|
|
4623
|
-
message:
|
|
4623
|
+
message: I.t("alert.error.couldntFetchMetadata"),
|
|
4624
4624
|
type: "warning"
|
|
4625
4625
|
});
|
|
4626
4626
|
}
|
|
4627
4627
|
}
|
|
4628
|
-
async function
|
|
4628
|
+
async function je() {
|
|
4629
4629
|
await J().get("/utility/get-settings-and-translations").then((n) => {
|
|
4630
4630
|
let { settings: a, hotelSettings: o, translations: s } = n.data;
|
|
4631
|
-
r.value = a, i.value = o, isNaN(e.adults) && (e.adults = a.defaultAdultAmount), isNaN(e.children) && (e.children = a.defaultChildAmount), e.arrivalDate === null && (e.arrivalDate =
|
|
4631
|
+
r.value = a, i.value = o, isNaN(e.adults) && (e.adults = a.defaultAdultAmount), isNaN(e.children) && (e.children = a.defaultChildAmount), e.arrivalDate === null && (e.arrivalDate = De()), e.departureDate === null && (e.departureDate = Oe()), ee(s), r.value.enableTracking && t.setup();
|
|
4632
4632
|
});
|
|
4633
4633
|
}
|
|
4634
|
-
function
|
|
4635
|
-
|
|
4634
|
+
function Me(e) {
|
|
4635
|
+
he.value = e;
|
|
4636
4636
|
}
|
|
4637
|
-
function
|
|
4638
|
-
|
|
4637
|
+
function Ne() {
|
|
4638
|
+
he.value = null;
|
|
4639
4639
|
}
|
|
4640
4640
|
return {
|
|
4641
|
-
activeIdFilter:
|
|
4641
|
+
activeIdFilter: he,
|
|
4642
4642
|
autoSelectRateId: ue,
|
|
4643
|
-
bearerToken:
|
|
4644
|
-
currency:
|
|
4645
|
-
currencyId:
|
|
4643
|
+
bearerToken: ve,
|
|
4644
|
+
currency: be,
|
|
4645
|
+
currencyId: xe,
|
|
4646
4646
|
defaultAdultAmount: S,
|
|
4647
4647
|
defaultArrivalTime: f,
|
|
4648
4648
|
defaultChildAmount: C,
|
|
@@ -4653,6 +4653,7 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4653
4653
|
disableNamePrefix: M,
|
|
4654
4654
|
disableNewsletterSignup: re,
|
|
4655
4655
|
disablePricesFrom: ne,
|
|
4656
|
+
disableCalendarPricesAvailability: P,
|
|
4656
4657
|
disableTravelingFor: ie,
|
|
4657
4658
|
disableTravelingForBleasure: ae,
|
|
4658
4659
|
earliestArrivalTime: d,
|
|
@@ -4662,25 +4663,25 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4662
4663
|
enableTracking: y,
|
|
4663
4664
|
firstSelectableDateOffset: D,
|
|
4664
4665
|
googleApiKey: b,
|
|
4665
|
-
hasActiveIdFilter:
|
|
4666
|
+
hasActiveIdFilter: Te,
|
|
4666
4667
|
hasArrivalDepartureInputs: s,
|
|
4667
4668
|
hasChildSelection: o,
|
|
4668
|
-
hasError:
|
|
4669
|
-
hasMetadata:
|
|
4670
|
-
hasPaymentGateway:
|
|
4669
|
+
hasError: _e,
|
|
4670
|
+
hasMetadata: ye,
|
|
4671
|
+
hasPaymentGateway: Ee,
|
|
4671
4672
|
hasRoomAmountSelection: u,
|
|
4672
4673
|
hasUserArrivalSelection: c,
|
|
4673
4674
|
hasUserDepartureSelection: l,
|
|
4674
4675
|
headerHeight: A,
|
|
4675
4676
|
hideAvailabilityNotice: le,
|
|
4676
|
-
hideAvailableRoomAmount:
|
|
4677
|
+
hideAvailableRoomAmount: F,
|
|
4677
4678
|
hideEventEndTime: ce,
|
|
4678
|
-
hideEventGuestAmount:
|
|
4679
|
+
hideEventGuestAmount: L,
|
|
4679
4680
|
hideEventLength: se,
|
|
4680
|
-
hideOptionalLabel:
|
|
4681
|
+
hideOptionalLabel: fe,
|
|
4681
4682
|
hideTitle: k,
|
|
4682
4683
|
hotelSettings: i,
|
|
4683
|
-
isRecaptchaEnabled:
|
|
4684
|
+
isRecaptchaEnabled: we,
|
|
4684
4685
|
lastSelectableDateOffset: O,
|
|
4685
4686
|
latestArrivalTime: p,
|
|
4686
4687
|
latestDepartureTime: g,
|
|
@@ -4688,19 +4689,19 @@ var tc = ne("applyGiftCard", () => {
|
|
|
4688
4689
|
maxChildAmount: E,
|
|
4689
4690
|
maximumNightsAvailable: v,
|
|
4690
4691
|
metaData: a,
|
|
4691
|
-
name:
|
|
4692
|
-
paymentGatewayId:
|
|
4692
|
+
name: Se,
|
|
4693
|
+
paymentGatewayId: Ce,
|
|
4693
4694
|
recaptchaSiteKey: x,
|
|
4694
4695
|
selectGiftCardAsDefault: me,
|
|
4695
4696
|
settings: r,
|
|
4696
4697
|
splitBookingCalendar: de,
|
|
4697
|
-
clearActiveIdFilter:
|
|
4698
|
-
defaultArrivalDate:
|
|
4699
|
-
defaultDepartureDate:
|
|
4700
|
-
fetchMetadata:
|
|
4701
|
-
fetchUtilities:
|
|
4702
|
-
setAccessToken:
|
|
4703
|
-
setActiveIdFilter:
|
|
4698
|
+
clearActiveIdFilter: Ne,
|
|
4699
|
+
defaultArrivalDate: De,
|
|
4700
|
+
defaultDepartureDate: Oe,
|
|
4701
|
+
fetchMetadata: Ae,
|
|
4702
|
+
fetchUtilities: je,
|
|
4703
|
+
setAccessToken: ke,
|
|
4704
|
+
setActiveIdFilter: Me
|
|
4704
4705
|
};
|
|
4705
4706
|
}), sc = w(""), cc = Qe("history", { removeNullishValues: !0 });
|
|
4706
4707
|
async function lc() {
|
|
@@ -4713,7 +4714,7 @@ function J() {
|
|
|
4713
4714
|
headers: {
|
|
4714
4715
|
Accept: "application/json",
|
|
4715
4716
|
Authorization: sc.value,
|
|
4716
|
-
"Konnectio-Version": "4.5.
|
|
4717
|
+
"Konnectio-Version": "4.5.9",
|
|
4717
4718
|
"Konnectio-Ref": cc.ref
|
|
4718
4719
|
}
|
|
4719
4720
|
});
|
|
@@ -4721,11 +4722,11 @@ function J() {
|
|
|
4721
4722
|
//#endregion
|
|
4722
4723
|
//#region src/store/event.ts
|
|
4723
4724
|
var uc = ne("event", () => {
|
|
4724
|
-
let e = nc(), { voucher: t } =
|
|
4725
|
+
let e = nc(), { voucher: t } = ce(tc()), { display: n } = ws(), { metaData: r } = ce(oc()), i = oc(), a = hc(), o = w({}), s = _(() => Object.keys(o.value).length > 0), c = w(void 0), l = w(!0), u = w(Fr.InitialState), d = w(NaN), f = w(1), p = w(NaN), m = w(NaN), h = w(""), g = B("konnectio_name", "", void 0, { serializer: z.string }), v = B("konnectio_phone", "", void 0, { serializer: z.string }), y = B("konnectio_email", "", void 0, { serializer: z.string }), b = w(""), x = w(""), S = w(!1), C = w(0), T = w({}), E = w({}), D = w(""), O = w(""), k = w("");
|
|
4725
4726
|
function A(e) {
|
|
4726
4727
|
return e ? e.templateId !== void 0 : !1;
|
|
4727
4728
|
}
|
|
4728
|
-
let j = _(() => i.metaData.hotels.findIndex((e) => e.id === a.eventLocation) || 0), ee = _(() => i.metaData.hotels[j.value]), M = _(() => ee.value ? ee.value.maxNumberPerBooking : Infinity), N = _(() => ee.value.name ? ee.value.name : ""), te = _(() => ee.value.subtitle ? ee.value.subtitle : ""), ne = _(() => ee.value.timezone ? ee.value.timezone : ""), P = w(a.eventDate ?? /* @__PURE__ */ new Date()),
|
|
4729
|
+
let j = _(() => i.metaData.hotels.findIndex((e) => e.id === a.eventLocation) || 0), ee = _(() => i.metaData.hotels[j.value]), M = _(() => ee.value ? ee.value.maxNumberPerBooking : Infinity), N = _(() => ee.value.name ? ee.value.name : ""), te = _(() => ee.value.subtitle ? ee.value.subtitle : ""), ne = _(() => ee.value.timezone ? ee.value.timezone : ""), P = w(a.eventDate ?? /* @__PURE__ */ new Date()), F = w(a.eventLocation), re = _(() => P.value !== a.eventDate), ie = _(() => F.value !== a.eventLocation), ae = _(() => re.value || ie.value), oe = _(() => (a.eventDate ?? /* @__PURE__ */ new Date()).toISOString()), se = _(() => A(c.value)), le = _(() => A(c.value) ? c.value.numberOfDays : f.value), ue = _(() => A(c.value) ? c.value.packageCount : 0), de = _(() => A(c.value) ? c.value.fromDate : ""), L = _(() => o.value.events === void 0 ? void 0 : o.value.events.flatMap((e) => e.events).find((e) => e.id === p.value)), fe = _(() => L.value ? L.value.length : void 0), pe = _(() => A(c.value) ? c.value.templateId : 0), me = _(() => o.value.events.map((e) => ({
|
|
4729
4730
|
...e,
|
|
4730
4731
|
events: e.events?.filter((e) => e.isAvailable === !0 || e.isAvailable === !1 && ti(e.fromDate) === ti(P.value))
|
|
4731
4732
|
})).filter((e) => e.events && e.events.length > 0)), he = _(() => o.value.events.map((e) => ({
|
|
@@ -4733,9 +4734,9 @@ var uc = ne("event", () => {
|
|
|
4733
4734
|
events: e.events?.filter((e) => e.isAvailable === !1 && ti(e.fromDate) !== ti(P.value)).sort((e, t) => e.fromDate > t.fromDate ? 1 : -1)
|
|
4734
4735
|
})).filter((e) => e.events && e.events.length > 0)), ge = _(() => o.value.templates);
|
|
4735
4736
|
function _e(e = "asc") {
|
|
4736
|
-
return [...
|
|
4737
|
+
return [...me.value].sort((t, n) => e === "asc" ? t.id - n.id : n.id - t.id);
|
|
4737
4738
|
}
|
|
4738
|
-
let ve = _(() => o.value.fallbackEvents), ye = _(() => o.value.events.length > 0), be = _(() => o.value.fallbackEvents.length > 0), xe = _(() => o.value.templates.length > 0), Se = _(() =>
|
|
4739
|
+
let ve = _(() => o.value.fallbackEvents), ye = _(() => o.value.events.length > 0), be = _(() => o.value.fallbackEvents.length > 0), xe = _(() => o.value.templates.length > 0), Se = _(() => L.value && L.value.eventRateType ? L.value.eventRateType : Pr.None), Ce = _(() => {
|
|
4739
4740
|
if (!A(c.value)) return c.value;
|
|
4740
4741
|
}), we = _(() => {
|
|
4741
4742
|
if (Ce.value !== void 0) {
|
|
@@ -4754,13 +4755,13 @@ var uc = ne("event", () => {
|
|
|
4754
4755
|
let a = i.addons, o = T.value[`${t}.${e}.${n}`] || 0;
|
|
4755
4756
|
if (o > 0) {
|
|
4756
4757
|
let t = a?.find((t) => t.id === e), n = typeof o == "boolean" ? 1 : o;
|
|
4757
|
-
r += Rr(t?.price, t?.quantityStrategy,
|
|
4758
|
+
r += Rr(t?.price, t?.quantityStrategy, le.value, i.adultPerRoom) * n;
|
|
4758
4759
|
}
|
|
4759
4760
|
}
|
|
4760
4761
|
} else {
|
|
4761
4762
|
let t = E.value[e] || 0;
|
|
4762
4763
|
if (t > 0) {
|
|
4763
|
-
let n =
|
|
4764
|
+
let n = L.value?.products?.find((t) => t.id === e);
|
|
4764
4765
|
n && (r += n.price * t);
|
|
4765
4766
|
}
|
|
4766
4767
|
}
|
|
@@ -4783,7 +4784,7 @@ var uc = ne("event", () => {
|
|
|
4783
4784
|
let e = E.value, t = 0;
|
|
4784
4785
|
for (let n in e) t += Number.isNaN(e[n]) ? 0 : e[n];
|
|
4785
4786
|
return t;
|
|
4786
|
-
}), Ne = _(() => Me.value > 0), Pe = _(() => !A(c.value) &&
|
|
4787
|
+
}), Ne = _(() => Me.value > 0), Pe = _(() => !A(c.value) && L.value ? L.value.products.length > 0 : !1), Fe = _(() => Pe.value ? Ne.value : !0), R = _(() => Se.value !== Pr.FullDayEvent && !se.value), Ie = _(() => !!(g.value !== "" && y.value !== "" && v.value.length >= 5 && Fe.value && (!R.value || h.value !== "")));
|
|
4787
4788
|
function Le(e) {
|
|
4788
4789
|
return u.value === Fr.ReservationState && p.value === e && l.value;
|
|
4789
4790
|
}
|
|
@@ -4793,7 +4794,7 @@ var uc = ne("event", () => {
|
|
|
4793
4794
|
r.value = (await J().get("/event/metadata", { params: { language: Kr() } })).data;
|
|
4794
4795
|
} catch {
|
|
4795
4796
|
n({
|
|
4796
|
-
message:
|
|
4797
|
+
message: I.t("alert.error.couldntFetchMetadata"),
|
|
4797
4798
|
type: "warning"
|
|
4798
4799
|
});
|
|
4799
4800
|
}
|
|
@@ -4801,7 +4802,7 @@ var uc = ne("event", () => {
|
|
|
4801
4802
|
async function Ue() {
|
|
4802
4803
|
if (u.value = Fr.AvailabilityState, l.value = !0, _i.tz(ne.value, new Date(a.eventDate)).setHours(12, 0, 0, 0) < _i.tz(ne.value).setHours(12, 0, 0, 0) && (a.eventDate = _i.tz(ne.value)), isNaN(a.eventLocation)) {
|
|
4803
4804
|
n({
|
|
4804
|
-
message:
|
|
4805
|
+
message: I.t("alert.error.selectEventId"),
|
|
4805
4806
|
type: "warning"
|
|
4806
4807
|
});
|
|
4807
4808
|
return;
|
|
@@ -4813,10 +4814,10 @@ var uc = ne("event", () => {
|
|
|
4813
4814
|
restaurantId: a.eventLocation,
|
|
4814
4815
|
eventId: i.hasActiveIdFilter ? i.activeIdFilter : null,
|
|
4815
4816
|
excludeEventId: !i.hasActiveIdFilter && k.value ? k.value : null
|
|
4816
|
-
} })).data, P.value = a.eventDate,
|
|
4817
|
+
} })).data, P.value = a.eventDate, F.value = a.eventLocation, rc.emit("scrollToTop"), l.value = !1;
|
|
4817
4818
|
} catch {
|
|
4818
4819
|
n({
|
|
4819
|
-
message:
|
|
4820
|
+
message: I.t("alert.error.couldntFetchListings"),
|
|
4820
4821
|
type: "warning"
|
|
4821
4822
|
});
|
|
4822
4823
|
}
|
|
@@ -4828,16 +4829,16 @@ var uc = ne("event", () => {
|
|
|
4828
4829
|
language: Kr(),
|
|
4829
4830
|
date: ti(P.value),
|
|
4830
4831
|
templateId: p.value,
|
|
4831
|
-
restaurantId:
|
|
4832
|
+
restaurantId: F.value,
|
|
4832
4833
|
numberOfPeople: isNaN(d.value) ? 0 : d.value
|
|
4833
4834
|
} })).data;
|
|
4834
4835
|
t.rooms.length === 0 ? n({
|
|
4835
|
-
message:
|
|
4836
|
+
message: I.t("alert.error.eventNotAvailable"),
|
|
4836
4837
|
type: "warning"
|
|
4837
4838
|
}) : (c.value = t, e()), l.value = !1;
|
|
4838
4839
|
} catch {
|
|
4839
4840
|
l.value = !1, u.value = Fr.AvailabilityState, n({
|
|
4840
|
-
message:
|
|
4841
|
+
message: I.t("alert.error.couldntFetchEvent"),
|
|
4841
4842
|
type: "warning"
|
|
4842
4843
|
});
|
|
4843
4844
|
}
|
|
@@ -4851,11 +4852,11 @@ var uc = ne("event", () => {
|
|
|
4851
4852
|
numberOfPeople: isNaN(d.value) ? 1 : d.value,
|
|
4852
4853
|
eventId: p.value,
|
|
4853
4854
|
tableGroupId: m.value,
|
|
4854
|
-
restaurantId:
|
|
4855
|
+
restaurantId: F.value
|
|
4855
4856
|
} })).data, l.value = !1, Pe.value ? e() : e(2);
|
|
4856
4857
|
} catch {
|
|
4857
4858
|
l.value = !1, u.value = Fr.AvailabilityState, n({
|
|
4858
|
-
message:
|
|
4859
|
+
message: I.t("alert.error.couldntFetchEvent"),
|
|
4859
4860
|
type: "warning"
|
|
4860
4861
|
});
|
|
4861
4862
|
}
|
|
@@ -4879,23 +4880,23 @@ var uc = ne("event", () => {
|
|
|
4879
4880
|
date: ti(P.value),
|
|
4880
4881
|
onlineDiscountCode: D.value,
|
|
4881
4882
|
products: Ke(),
|
|
4882
|
-
restaurantId:
|
|
4883
|
+
restaurantId: F.value
|
|
4883
4884
|
})).data;
|
|
4884
4885
|
e.total ? (qe.value = e.total, O.value = D.value, D.value = "", n({
|
|
4885
|
-
message:
|
|
4886
|
+
message: I.t("alert.success.discountCodeApplied"),
|
|
4886
4887
|
type: "success"
|
|
4887
4888
|
})) : n({
|
|
4888
|
-
message:
|
|
4889
|
+
message: I.t("alert.error.discountCodeValidation"),
|
|
4889
4890
|
type: "warning"
|
|
4890
4891
|
});
|
|
4891
4892
|
} catch {
|
|
4892
4893
|
n({
|
|
4893
|
-
message:
|
|
4894
|
+
message: I.t("alert.error.discountCodeValidation"),
|
|
4894
4895
|
type: "warning"
|
|
4895
4896
|
});
|
|
4896
4897
|
}
|
|
4897
4898
|
else n({
|
|
4898
|
-
message:
|
|
4899
|
+
message: I.t("alert.error.discountCodeEmpty"),
|
|
4899
4900
|
type: "error"
|
|
4900
4901
|
});
|
|
4901
4902
|
}
|
|
@@ -4903,7 +4904,7 @@ var uc = ne("event", () => {
|
|
|
4903
4904
|
u.value = Fr.PaymentState, l.value = !0;
|
|
4904
4905
|
let i = () => {
|
|
4905
4906
|
l.value = !1, u.value = Fr.ReservationState, n({
|
|
4906
|
-
message:
|
|
4907
|
+
message: I.t("booking.other.errorMessage"),
|
|
4907
4908
|
type: "warning"
|
|
4908
4909
|
});
|
|
4909
4910
|
}, a, o, s, m = [];
|
|
@@ -4925,21 +4926,21 @@ var uc = ne("event", () => {
|
|
|
4925
4926
|
});
|
|
4926
4927
|
}), a = {
|
|
4927
4928
|
totalPerson: isNaN(d.value) ? Me.value : d.value,
|
|
4928
|
-
templateID:
|
|
4929
|
+
templateID: pe.value,
|
|
4929
4930
|
numberOfDays: f.value,
|
|
4930
4931
|
templateCounts: m,
|
|
4931
4932
|
fromDate: ti(P.value)
|
|
4932
4933
|
}) : (o = Ke(), s = h.value);
|
|
4933
4934
|
let _ = "/event/book-template", w = {
|
|
4934
4935
|
language: Kr(),
|
|
4935
|
-
restaurantId:
|
|
4936
|
+
restaurantId: F.value,
|
|
4936
4937
|
date: ti(P.value),
|
|
4937
4938
|
name: g.value,
|
|
4938
4939
|
email: y.value,
|
|
4939
4940
|
phone: v.value,
|
|
4940
4941
|
remark: b.value,
|
|
4941
4942
|
numberOfPeople: isNaN(d.value) ? Me.value : d.value,
|
|
4942
|
-
days:
|
|
4943
|
+
days: le.value > 0 ? le.value : 1,
|
|
4943
4944
|
allergyFood: x.value,
|
|
4944
4945
|
discountCode: O.value,
|
|
4945
4946
|
giftCardCode: t.value,
|
|
@@ -4962,7 +4963,7 @@ var uc = ne("event", () => {
|
|
|
4962
4963
|
c.value = void 0, T.value = {}, E.value = {}, h.value = "", Xe(), e && a.resetEventDate();
|
|
4963
4964
|
}
|
|
4964
4965
|
function Qe(e) {
|
|
4965
|
-
|
|
4966
|
+
se.value || Pe.value ? e() : e(2), Xe();
|
|
4966
4967
|
}
|
|
4967
4968
|
async function $e() {
|
|
4968
4969
|
await Promise.all([He(), a.fetchMetadata()]);
|
|
@@ -4970,9 +4971,9 @@ var uc = ne("event", () => {
|
|
|
4970
4971
|
return {
|
|
4971
4972
|
flagOnTable: S,
|
|
4972
4973
|
allergies: x,
|
|
4973
|
-
isSearchOutdated:
|
|
4974
|
+
isSearchOutdated: ae,
|
|
4974
4975
|
currentEventDate: P,
|
|
4975
|
-
currentEventLocation:
|
|
4976
|
+
currentEventLocation: F,
|
|
4976
4977
|
metaData: r,
|
|
4977
4978
|
listingData: o,
|
|
4978
4979
|
tableBasePrice: we,
|
|
@@ -4991,18 +4992,18 @@ var uc = ne("event", () => {
|
|
|
4991
4992
|
phone: v,
|
|
4992
4993
|
email: y,
|
|
4993
4994
|
remark: b,
|
|
4994
|
-
isTemplateEvent:
|
|
4995
|
+
isTemplateEvent: se,
|
|
4995
4996
|
maxNumberOfPeople: M,
|
|
4996
4997
|
title: N,
|
|
4997
4998
|
subtitle: te,
|
|
4998
|
-
date:
|
|
4999
|
-
numberOfTotalDays:
|
|
5000
|
-
numberOfRooms:
|
|
5001
|
-
fromDate:
|
|
5002
|
-
getEventData:
|
|
5003
|
-
length:
|
|
5004
|
-
templateId:
|
|
5005
|
-
getEvents:
|
|
4999
|
+
date: oe,
|
|
5000
|
+
numberOfTotalDays: le,
|
|
5001
|
+
numberOfRooms: ue,
|
|
5002
|
+
fromDate: de,
|
|
5003
|
+
getEventData: L,
|
|
5004
|
+
length: fe,
|
|
5005
|
+
templateId: pe,
|
|
5006
|
+
getEvents: me,
|
|
5006
5007
|
getTemplates: ge,
|
|
5007
5008
|
hasEvents: ye,
|
|
5008
5009
|
hasFallbackEvents: be,
|
|
@@ -5086,7 +5087,7 @@ var uc = ne("event", () => {
|
|
|
5086
5087
|
i.value = e, o.value && te(), e.defaultHotelId && (isNaN(p.value) ? p.value = e.defaultHotelId : p.value !== e.defaultHotelId && (p.value = e.defaultHotelId, f.value = p.value), isNaN(f.value) && (f.value = e.defaultHotelId)), e.defaultEventId && (isNaN(S.value) ? S.value = e.defaultEventId : S.value !== e.defaultEventId && (S.value = e.defaultEventId, x.value = S.value), isNaN(x.value) && (x.value = e.defaultEventId));
|
|
5087
5088
|
} catch {
|
|
5088
5089
|
r({
|
|
5089
|
-
message:
|
|
5090
|
+
message: I.t("alert.error.couldntFetchMetadata"),
|
|
5090
5091
|
type: "warning"
|
|
5091
5092
|
});
|
|
5092
5093
|
}
|
|
@@ -9205,7 +9206,7 @@ var lm = {
|
|
|
9205
9206
|
let n = e.__vccOpts || e;
|
|
9206
9207
|
for (let [e, r] of t) n[e] = r;
|
|
9207
9208
|
return n;
|
|
9208
|
-
}, rg = /* @__PURE__ */ ng(tg, [["__scopeId", "data-v-
|
|
9209
|
+
}, rg = /* @__PURE__ */ ng(tg, [["__scopeId", "data-v-2999dd6a"]]), ig = {
|
|
9209
9210
|
key: 0,
|
|
9210
9211
|
class: "konnectio-alert-message"
|
|
9211
9212
|
}, ag = /* @__PURE__ */ ng(/* @__PURE__ */ h({
|
|
@@ -9217,7 +9218,7 @@ var lm = {
|
|
|
9217
9218
|
error: "exclamation-triangle",
|
|
9218
9219
|
warning: "do-not-enter",
|
|
9219
9220
|
success: "check-circle"
|
|
9220
|
-
}, { message: r, type: i, status: c } =
|
|
9221
|
+
}, { message: r, type: i, status: c } = ce(ws());
|
|
9221
9222
|
return (e, l) => (b(), N("div", {
|
|
9222
9223
|
class: a([
|
|
9223
9224
|
"konnectio-alert",
|
|
@@ -9227,7 +9228,7 @@ var lm = {
|
|
|
9227
9228
|
role: "alert"
|
|
9228
9229
|
}, [s(r) ? (b(), N("div", ig, [f(rg, { icon: t[s(i)] }, null, 8, ["icon"]), o("span", null, n(s(r)), 1)])) : p("", !0)], 2));
|
|
9229
9230
|
}
|
|
9230
|
-
}), [["__scopeId", "data-v-
|
|
9231
|
+
}), [["__scopeId", "data-v-d76e20b7"]]), og = { class: "konnectio-container" }, sg = /* @__PURE__ */ ng(/* @__PURE__ */ h({
|
|
9231
9232
|
__name: "Container",
|
|
9232
9233
|
props: { styling: {} },
|
|
9233
9234
|
setup(e) {
|
|
@@ -9284,12 +9285,12 @@ var lm = {
|
|
|
9284
9285
|
stepBarBackground: "#d0d5da",
|
|
9285
9286
|
...t.styling
|
|
9286
9287
|
}));
|
|
9287
|
-
return
|
|
9288
|
+
return ae(() => {
|
|
9288
9289
|
let e = document.documentElement.style;
|
|
9289
9290
|
e.setProperty("--accentColor", n.value.accentColor), e.setProperty("--accentColorSecondary", n.value.accentColorSecondary), e.setProperty("--buttonBackground", n.value.buttonBackground), e.setProperty("--buttonBorder", n.value.buttonBorder), e.setProperty("--buttonBorderRadius", n.value.buttonBorderRadius), e.setProperty("--buttonColor", n.value.buttonColor), e.setProperty("--buttonFontFamily", n.value.buttonFontFamily), e.setProperty("--buttonFontSize", n.value.buttonFontSize), e.setProperty("--buttonFontWeight", n.value.buttonFontWeight), e.setProperty("--buttonTextTransform", n.value.buttonTextTransform), e.setProperty("--dangerColor", n.value.dangerColor), e.setProperty("--fontColor", n.value.fontColor), e.setProperty("--fontFamily", n.value.fontFamily), e.setProperty("--fontWeight", n.value.fontWeight), e.setProperty("--fontSize", n.value.fontSize), e.setProperty("--grayColor", n.value.grayColor), e.setProperty("--headerColor", n.value.headerColor), e.setProperty("--headerFontFamily", n.value.headerFontFamily), e.setProperty("--headerLetterSpacing", n.value.headerLetterSpacing), e.setProperty("--headerTextTransform", n.value.headerTextTransform), e.setProperty("--highlightBackground", n.value.highlightBackground), e.setProperty("--inputBackground", n.value.inputBackground), e.setProperty("--inputBorder", n.value.inputBorder), e.setProperty("--inputBorderRadius", n.value.inputBorderRadius), e.setProperty("--inputBorderWidth", n.value.inputBorderWidth), e.setProperty("--inputFontColor", n.value.inputFontColor), e.setProperty("--inputFontWeight", n.value.inputFontWeight), e.setProperty("--inputFontSize", n.value.inputFontSize), e.setProperty("--labelFontColor", n.value.labelFontColor), e.setProperty("--labelFontWeight", n.value.labelFontWeight), e.setProperty("--labelFontSize", n.value.labelFontSize), e.setProperty("--labelPadding", n.value.labelPadding), e.setProperty("--labelTextTransform", n.value.labelTextTransform), e.setProperty("--linkColor", n.value.linkColor), e.setProperty("--linkHoverColor", n.value.linkHoverColor), e.setProperty("--loadingColor", n.value.loadingColor), e.setProperty("--panelBackground", n.value.panelBackground), e.setProperty("--panelBorder", n.value.panelBorder), e.setProperty("--panelBorderRadius", n.value.panelBorderRadius), e.setProperty("--panelInnerPadding", n.value.panelInnerPadding), e.setProperty("--panelMaxWidth", n.value.panelMaxWidth), e.setProperty("--panelPadding", n.value.panelPadding), e.setProperty("--panelSectionBackground", n.value.panelSectionBackground), e.setProperty("--panelSectionBorder", n.value.panelSectionBorder), e.setProperty("--panelSectionBorderRadius", n.value.panelSectionBorderRadius), e.setProperty("--panelShadow", n.value.panelShadow), e.setProperty("--successColor", n.value.successColor), e.setProperty("--stepBarBorderRadius", n.value.stepBarBorderRadius), e.setProperty("--stepBarBackground", n.value.stepBarBackground);
|
|
9290
9291
|
}), (e, t) => (b(), N("div", null, [o("div", og, [D(e.$slots, "default", {}, void 0, !0)]), f(ag, { "local-domain": "global" })]));
|
|
9291
9292
|
}
|
|
9292
|
-
}), [["__scopeId", "data-v-
|
|
9293
|
+
}), [["__scopeId", "data-v-30a34810"]]), cg = /* @__PURE__ */ ng(/* @__PURE__ */ h({
|
|
9293
9294
|
__name: "Loading",
|
|
9294
9295
|
props: {
|
|
9295
9296
|
color: {},
|
|
@@ -9306,11 +9307,11 @@ var lm = {
|
|
|
9306
9307
|
o("div", { style: te({ background: e.color }) }, null, 4)
|
|
9307
9308
|
], 2));
|
|
9308
9309
|
}
|
|
9309
|
-
}), [["__scopeId", "data-v-
|
|
9310
|
+
}), [["__scopeId", "data-v-03f93282"]]), lg = {}, ug = { class: "konnectio-spinner" };
|
|
9310
9311
|
function dg(e, t) {
|
|
9311
9312
|
return b(), N("div", ug, [...t[0] ||= [o("span", null, null, -1)]]);
|
|
9312
9313
|
}
|
|
9313
|
-
var fg = /* @__PURE__ */ ng(lg, [["render", dg], ["__scopeId", "data-v-
|
|
9314
|
+
var fg = /* @__PURE__ */ ng(lg, [["render", dg], ["__scopeId", "data-v-9fca0a3f"]]), pg = [
|
|
9314
9315
|
"type",
|
|
9315
9316
|
"tabindex",
|
|
9316
9317
|
"disabled"
|
|
@@ -9370,7 +9371,7 @@ var fg = /* @__PURE__ */ ng(lg, [["render", dg], ["__scopeId", "data-v-88ad2e2d"
|
|
|
9370
9371
|
}, [e.isLoading ? c.value ? (b(), i(fg, { key: 1 })) : (b(), i(cg, {
|
|
9371
9372
|
key: 2,
|
|
9372
9373
|
"inside-button": !0
|
|
9373
|
-
})) : (b(), N(
|
|
9374
|
+
})) : (b(), N(de, { key: 0 }, [
|
|
9374
9375
|
o("span", mg, [e.icon ? (b(), i(rg, {
|
|
9375
9376
|
key: 0,
|
|
9376
9377
|
icon: e.icon,
|
|
@@ -9389,7 +9390,7 @@ var fg = /* @__PURE__ */ ng(lg, [["render", dg], ["__scopeId", "data-v-88ad2e2d"
|
|
|
9389
9390
|
})])
|
|
9390
9391
|
], 64))], 10, pg));
|
|
9391
9392
|
}
|
|
9392
|
-
}), [["__scopeId", "data-v-
|
|
9393
|
+
}), [["__scopeId", "data-v-62d9a593"]]), yg = { class: "konnectio-input-field" }, bg = ["for"], xg = { key: 0 }, Sg = {
|
|
9393
9394
|
key: 0,
|
|
9394
9395
|
class: "konnectio-description-label"
|
|
9395
9396
|
}, Cg = ["for"], wg = {
|
|
@@ -9422,7 +9423,7 @@ var fg = /* @__PURE__ */ ng(lg, [["render", dg], ["__scopeId", "data-v-88ad2e2d"
|
|
|
9422
9423
|
}
|
|
9423
9424
|
},
|
|
9424
9425
|
setup(e) {
|
|
9425
|
-
let t = e, { t: r } =
|
|
9426
|
+
let t = e, { t: r } = ie(), { hideOptionalLabel: c } = ce(oc()), l = t.id || qr(), u = _(() => !!t.icon && t.iconPlacement === "label"), d = _(() => !!t.icon && t.iconPlacement === "field"), m = _(() => {
|
|
9426
9427
|
if (t.limit !== Infinity) {
|
|
9427
9428
|
let e = t.limit.toString().length;
|
|
9428
9429
|
return e <= 2 ? "has-2-digit-limit" : e === 3 ? "has-3-digit-limit" : "has-4-digit-limit";
|
|
@@ -9469,7 +9470,7 @@ var fg = /* @__PURE__ */ ng(lg, [["render", dg], ["__scopeId", "data-v-88ad2e2d"
|
|
|
9469
9470
|
e.description && e.descriptionPlacement === "field" ? (b(), N("div", wg, [o("span", { innerHTML: e.description }, null, 8, Tg)])) : p("", !0)
|
|
9470
9471
|
]));
|
|
9471
9472
|
}
|
|
9472
|
-
}), [["__scopeId", "data-v-
|
|
9473
|
+
}), [["__scopeId", "data-v-53b78f27"]]), Dg = [
|
|
9473
9474
|
"top",
|
|
9474
9475
|
"right",
|
|
9475
9476
|
"bottom",
|
|
@@ -10112,7 +10113,7 @@ var D_ = /* @__PURE__ */ h({
|
|
|
10112
10113
|
function o(e) {
|
|
10113
10114
|
n("update:modelValue", e);
|
|
10114
10115
|
}
|
|
10115
|
-
return
|
|
10116
|
+
return ae(() => {
|
|
10116
10117
|
r.modelValue || o(r.minValue);
|
|
10117
10118
|
}), (t, n) => (b(), i(Eg, {
|
|
10118
10119
|
label: e.label,
|
|
@@ -10239,7 +10240,7 @@ var D_ = /* @__PURE__ */ h({
|
|
|
10239
10240
|
},
|
|
10240
10241
|
emits: ["update:modelValue"],
|
|
10241
10242
|
setup(e, { emit: t }) {
|
|
10242
|
-
let r = t, { t: c } =
|
|
10243
|
+
let r = t, { t: c } = ie(), l = e, u = w(), d = l.id || qr(), f = _({
|
|
10243
10244
|
get: () => l.modelValue,
|
|
10244
10245
|
set: (e) => {
|
|
10245
10246
|
r("update:modelValue", e);
|
|
@@ -10258,10 +10259,10 @@ var D_ = /* @__PURE__ */ h({
|
|
|
10258
10259
|
let e = u.value;
|
|
10259
10260
|
e.style.height = "auto", e.style.height = e.scrollHeight + "px";
|
|
10260
10261
|
}
|
|
10261
|
-
return
|
|
10262
|
+
return ae(() => {
|
|
10262
10263
|
S();
|
|
10263
10264
|
}), (t, r) => {
|
|
10264
|
-
let l =
|
|
10265
|
+
let l = re("tooltip");
|
|
10265
10266
|
return b(), i(Eg, {
|
|
10266
10267
|
label: e.label,
|
|
10267
10268
|
id: s(d),
|
|
@@ -10319,7 +10320,7 @@ var D_ = /* @__PURE__ */ h({
|
|
|
10319
10320
|
e.suffix ? (b(), N("div", j_, [o("div", null, [o("span", null, n(e.suffix), 1)])])) : p("", !0),
|
|
10320
10321
|
e.clipboard ? (b(), N("div", M_, [O((b(), N("div", null, [o("button", {
|
|
10321
10322
|
class: "konnectio-copy-button",
|
|
10322
|
-
onClick: r[2] ||=
|
|
10323
|
+
onClick: r[2] ||= fe((e) => s(m)(f.value), ["prevent"])
|
|
10323
10324
|
}, [o("span", null, n(s(c)("general.copy")), 1)])])), [[l, {
|
|
10324
10325
|
content: s(c)("general.copiedToClipboard"),
|
|
10325
10326
|
classes: ["tooltip", "konnectio-tooltip"],
|
|
@@ -10349,7 +10350,7 @@ var D_ = /* @__PURE__ */ h({
|
|
|
10349
10350
|
]);
|
|
10350
10351
|
};
|
|
10351
10352
|
}
|
|
10352
|
-
}), [["__scopeId", "data-v-
|
|
10353
|
+
}), [["__scopeId", "data-v-1fad6b59"]]), F_ = Object.defineProperty, I_ = Object.defineProperties, L_ = Object.getOwnPropertyDescriptors, R_ = Object.getOwnPropertySymbols, z_ = Object.prototype.hasOwnProperty, B_ = Object.prototype.propertyIsEnumerable, V_ = (e, t, n) => t in e ? F_(e, t, {
|
|
10353
10354
|
enumerable: !0,
|
|
10354
10355
|
configurable: !0,
|
|
10355
10356
|
writable: !0,
|
|
@@ -10963,7 +10964,7 @@ https://vue-select.org/api/props.html#getoptionlabel`) : e;
|
|
|
10963
10964
|
class: "vs__no-options"
|
|
10964
10965
|
}, yv = /* @__PURE__ */ M(" Sorry, no matching options. "), bv = ["id"];
|
|
10965
10966
|
function xv(e, r, s, c, l, d) {
|
|
10966
|
-
let h =
|
|
10967
|
+
let h = re("append-to-body");
|
|
10967
10968
|
return b(), N("div", {
|
|
10968
10969
|
dir: s.dir,
|
|
10969
10970
|
class: a(["v-select", d.stateClasses])
|
|
@@ -10978,7 +10979,7 @@ function xv(e, r, s, c, l, d) {
|
|
|
10978
10979
|
"aria-owns": `vs${s.uid}__listbox`,
|
|
10979
10980
|
"aria-label": "Search for option",
|
|
10980
10981
|
onMousedown: r[1] ||= (e) => d.toggleDropdown(e)
|
|
10981
|
-
}, [o("div", dv, [(b(!0), N(
|
|
10982
|
+
}, [o("div", dv, [(b(!0), N(de, null, t(d.selectedValue, (t, r) => D(e.$slots, "selected-option-container", {
|
|
10982
10983
|
option: d.normalizeOptionForSlot(t),
|
|
10983
10984
|
deselect: d.deselect,
|
|
10984
10985
|
multiple: s.multiple,
|
|
@@ -10996,7 +10997,7 @@ function xv(e, r, s, c, l, d) {
|
|
|
10996
10997
|
title: `Deselect ${s.getOptionLabel(t)}`,
|
|
10997
10998
|
"aria-label": `Deselect ${s.getOptionLabel(t)}`,
|
|
10998
10999
|
onClick: (e) => d.deselect(t)
|
|
10999
|
-
}, [(b(), i(
|
|
11000
|
+
}, [(b(), i(oe(d.childComponents.Deselect)))], 8, fv)) : p("", !0)]))])), 256)), D(e.$slots, "search", m(u(d.scope.search)), () => [o("input", y({ class: "vs__search" }, d.scope.search.attributes, C(d.scope.search.events)), null, 16)])], 512), o("div", pv, [
|
|
11000
11001
|
O(o("button", {
|
|
11001
11002
|
ref: "clearButton",
|
|
11002
11003
|
disabled: s.disabled,
|
|
@@ -11005,8 +11006,8 @@ function xv(e, r, s, c, l, d) {
|
|
|
11005
11006
|
title: "Clear Selected",
|
|
11006
11007
|
"aria-label": "Clear Selected",
|
|
11007
11008
|
onClick: r[0] ||= (...e) => d.clearSelection && d.clearSelection(...e)
|
|
11008
|
-
}, [(b(), i(
|
|
11009
|
-
D(e.$slots, "open-indicator", m(u(d.scope.openIndicator)), () => [s.noDrop ? p("", !0) : (b(), i(
|
|
11009
|
+
}, [(b(), i(oe(d.childComponents.Deselect)))], 8, mv), [[x, d.showClearButton]]),
|
|
11010
|
+
D(e.$slots, "open-indicator", m(u(d.scope.openIndicator)), () => [s.noDrop ? p("", !0) : (b(), i(oe(d.childComponents.OpenIndicator), m(y({ key: 0 }, d.scope.openIndicator.attributes)), null, 16))]),
|
|
11010
11011
|
D(e.$slots, "spinner", m(u(d.scope.spinner)), () => [O(o("div", hv, "Loading...", 512), [[x, e.mutableLoading]])])
|
|
11011
11012
|
], 512)], 40, uv),
|
|
11012
11013
|
f(T, { name: s.transition }, {
|
|
@@ -11017,11 +11018,11 @@ function xv(e, r, s, c, l, d) {
|
|
|
11017
11018
|
class: "vs__dropdown-menu",
|
|
11018
11019
|
role: "listbox",
|
|
11019
11020
|
tabindex: "-1",
|
|
11020
|
-
onMousedown: r[2] ||=
|
|
11021
|
+
onMousedown: r[2] ||= fe((...e) => d.onMousedown && d.onMousedown(...e), ["prevent"]),
|
|
11021
11022
|
onMouseup: r[3] ||= (...e) => d.onMouseUp && d.onMouseUp(...e)
|
|
11022
11023
|
}, [
|
|
11023
11024
|
D(e.$slots, "list-header", m(u(d.scope.listHeader))),
|
|
11024
|
-
(b(!0), N(
|
|
11025
|
+
(b(!0), N(de, null, t(d.filteredOptions, (t, r) => (b(), N("li", {
|
|
11025
11026
|
id: `vs${s.uid}__option-${r}`,
|
|
11026
11027
|
key: s.getOptionKey(t),
|
|
11027
11028
|
role: "option",
|
|
@@ -11033,7 +11034,7 @@ function xv(e, r, s, c, l, d) {
|
|
|
11033
11034
|
}]),
|
|
11034
11035
|
"aria-selected": r === e.typeAheadPointer ? !0 : null,
|
|
11035
11036
|
onMouseover: (n) => s.selectable(t) ? e.typeAheadPointer = r : null,
|
|
11036
|
-
onClick:
|
|
11037
|
+
onClick: fe((e) => s.selectable(t) ? d.select(t) : null, ["prevent", "stop"])
|
|
11037
11038
|
}, [D(e.$slots, "option", m(u(d.normalizeOptionForSlot(t))), () => [M(n(s.getOptionLabel(t)), 1)])], 42, _v))), 128)),
|
|
11038
11039
|
d.filteredOptions.length === 0 ? (b(), N("li", vv, [D(e.$slots, "no-options", m(u(d.scope.noOptions)), () => [yv])])) : p("", !0),
|
|
11039
11040
|
D(e.$slots, "list-footer", m(u(d.scope.listFooter)))
|