@konnectio/core 4.0.99 → 4.0.101
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-IOx3ZRnf.js → ActionField-C3Cyxi5Q.js} +2 -2
- package/dist/ActionField-C3Cyxi5Q.js.br +0 -0
- package/dist/{AvailabilitySkeleton-DJZ5q3NO.js → AvailabilitySkeleton-BIc6OPvo.js} +5 -5
- package/dist/AvailabilitySkeleton-BIc6OPvo.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-bIDNSR5b.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BnJFLLBB.js} +160 -160
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BnJFLLBB.js.br +0 -0
- package/dist/{CheckoutWindow-BoDi-872.js → CheckoutWindow-D4TzWjhF.js} +2 -2
- package/dist/CheckoutWindow-D4TzWjhF.js.br +0 -0
- package/dist/{ErrorMessage-Dm6szrbM.js → ErrorMessage-CIeuHK4s.js} +2 -2
- package/dist/ErrorMessage-CIeuHK4s.js.br +0 -0
- package/dist/{EventAvailabilityForm-SimpuNtH.js → EventAvailabilityForm-BLI0AB6C.js} +3 -3
- package/dist/EventAvailabilityForm-BLI0AB6C.js.br +0 -0
- package/dist/{Field-NwGowmOF.js → Field-3yPNEwdb.js} +3 -3
- package/dist/Field-3yPNEwdb.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B_h4O-O8.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7UgYF-.js} +2 -2
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-BrxKwUUL.js → SelectField.vue_vue_type_style_index_0_lang-DdksDWOr.js} +2 -2
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DdksDWOr.js.br +0 -0
- package/dist/{TermsOfService-BrVaz2YB.js → TermsOfService-Cbm3UR7t.js} +3 -3
- package/dist/_-CAqjShU3.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-BMOiT4OK.js → _.vue_vue_type_style_index_0_lang-CLXvfe45.js} +2 -2
- package/dist/availability.js +5 -5
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +3 -3
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/event.js +406 -402
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +7 -7
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +8 -8
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-ApIE63zX.js → giftCard-DlkMDK-m.js} +2 -2
- package/dist/giftCard-DlkMDK-m.js.br +0 -0
- package/dist/hotel.js +425 -431
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CFKgaeSf.js → masonry.plugin-CZHScYDX.js} +6 -6
- package/dist/masonry.plugin-CZHScYDX.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +7 -7
- package/dist/ActionField-IOx3ZRnf.js.br +0 -0
- package/dist/AvailabilitySkeleton-DJZ5q3NO.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-bIDNSR5b.js.br +0 -0
- package/dist/CheckoutWindow-BoDi-872.js.br +0 -0
- package/dist/ErrorMessage-Dm6szrbM.js.br +0 -0
- package/dist/EventAvailabilityForm-SimpuNtH.js.br +0 -0
- package/dist/Field-NwGowmOF.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BrxKwUUL.js.br +0 -0
- package/dist/_-BU4kS4Or.js +0 -5
- package/dist/giftCard-ApIE63zX.js.br +0 -0
- package/dist/masonry.plugin-CFKgaeSf.js.br +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { W as Ra, r as z, d as Ge, x as ea, $ as Ca, o as at, M as ft, X as ja, C as bt, c as A, a as O, g as X, f as ut, y as tt, z as Ie, w as ke, v as ue, a0 as Xe, a1 as st, i as c, a2 as Ue, A as zn, b as xe, T as ya, j as ee, a3 as Qa, a4 as nl, n as Me, e as ye, F as _e, Y as gt, h as Oa, t as et, Q as rl, a5 as jn, a6 as ll, B as Et, a7 as ol, G as Va, H as Fa, a8 as il, a9 as sl, aa as ul, I as dl, s as Qn, J as Yt } from "./mitt-BvlSsOyy.js";
|
|
2
|
-
import { D as cl, r as vl, q as Xt, v as ml, t as pl, a as fl, g as Xn, u as hl, H as yt, w as en, O as Un, S as tn, J as yl, x as la, K as an } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { D as cl, r as vl, q as Xt, v as ml, t as pl, a as fl, g as Xn, u as hl, H as yt, w as en, O as Un, S as tn, J as yl, x as la, K as an } from "./SelectField.vue_vue_type_style_index_0_lang-DdksDWOr.js";
|
|
3
3
|
function me(e) {
|
|
4
4
|
const t = Object.prototype.toString.call(e);
|
|
5
5
|
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
|
@@ -5893,9 +5893,9 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Hr = (e, t) =
|
|
|
5893
5893
|
() => (D) => g.value[D] ? g.value[D].month : 0
|
|
5894
5894
|
), k = A(
|
|
5895
5895
|
() => (D) => g.value[D] ? g.value[D].year : 0
|
|
5896
|
-
), x = (D) => !f.value.keepViewOnOffsetClick || D ? !0 : !o.value, b = (D, ae,
|
|
5897
|
-
var
|
|
5898
|
-
x(te) && (g.value[D] || (g.value[D] = { month: 0, year: 0 }), g.value[D].month = ir(ae) ? (
|
|
5896
|
+
), x = (D) => !f.value.keepViewOnOffsetClick || D ? !0 : !o.value, b = (D, ae, I, te = !1) => {
|
|
5897
|
+
var Y, we;
|
|
5898
|
+
x(te) && (g.value[D] || (g.value[D] = { month: 0, year: 0 }), g.value[D].month = ir(ae) ? (Y = g.value[D]) == null ? void 0 : Y.month : ae, g.value[D].year = ir(I) ? (we = g.value[D]) == null ? void 0 : we.year : I);
|
|
5899
5899
|
}, W = () => {
|
|
5900
5900
|
e.autoApply && t("select-date");
|
|
5901
5901
|
};
|
|
@@ -5914,65 +5914,65 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Hr = (e, t) =
|
|
|
5914
5914
|
return q(G(), D);
|
|
5915
5915
|
}, oe = () => Array.isArray(m.value) && h.value.enabled ? De(m.value[0]) === De(m.value[1] ?? m.value[0]) : !1, q = (D = /* @__PURE__ */ new Date(), ae = !1) => {
|
|
5916
5916
|
if ((!y.value.count || !y.value.static || ae) && b(0, De(D), ge(D)), y.value.count && (!y.value.solo || !m.value || oe()))
|
|
5917
|
-
for (let
|
|
5918
|
-
const te = Oe(G(), { month: pe.value(
|
|
5919
|
-
g.value[
|
|
5917
|
+
for (let I = 1; I < y.value.count; I++) {
|
|
5918
|
+
const te = Oe(G(), { month: pe.value(I - 1), year: k.value(I - 1) }), Y = fr(te, { months: 1 });
|
|
5919
|
+
g.value[I] = { month: De(Y), year: ge(Y) };
|
|
5920
5920
|
}
|
|
5921
5921
|
}, T = (D, ae) => {
|
|
5922
5922
|
q(D), B("hours", Nt(D)), B("minutes", Wt(D)), B("seconds", va(D)), y.value.count && ae && Ne();
|
|
5923
5923
|
}, i = (D) => {
|
|
5924
5924
|
if (y.value.count) {
|
|
5925
5925
|
if (y.value.solo) return 0;
|
|
5926
|
-
const ae = De(D[0]),
|
|
5927
|
-
return Math.abs(
|
|
5926
|
+
const ae = De(D[0]), I = De(D[1]);
|
|
5927
|
+
return Math.abs(I - ae) < y.value.count ? 0 : 1;
|
|
5928
5928
|
}
|
|
5929
5929
|
return 1;
|
|
5930
5930
|
}, w = (D, ae) => {
|
|
5931
5931
|
D[1] && h.value.showLastInRange ? q(D[i(D)], ae) : q(D[0], ae);
|
|
5932
|
-
const
|
|
5932
|
+
const I = (te, Y) => [
|
|
5933
5933
|
te(D[0]),
|
|
5934
|
-
D[1] ? te(D[1]) : u[
|
|
5934
|
+
D[1] ? te(D[1]) : u[Y][1]
|
|
5935
5935
|
];
|
|
5936
|
-
B("hours",
|
|
5936
|
+
B("hours", I(Nt, "hours")), B("minutes", I(Wt, "minutes")), B("seconds", I(va, "seconds"));
|
|
5937
5937
|
}, Q = (D, ae) => {
|
|
5938
5938
|
if ((h.value.enabled || e.weekPicker) && !U.value.enabled)
|
|
5939
5939
|
return w(D, ae);
|
|
5940
5940
|
if (U.value.enabled && ae) {
|
|
5941
|
-
const
|
|
5942
|
-
return T(
|
|
5941
|
+
const I = D[D.length - 1];
|
|
5942
|
+
return T(I, ae);
|
|
5943
5943
|
}
|
|
5944
5944
|
}, d = (D) => {
|
|
5945
5945
|
const ae = m.value;
|
|
5946
5946
|
Q(ae, D), y.value.count && y.value.solo && Ne();
|
|
5947
5947
|
}, se = (D, ae) => {
|
|
5948
|
-
const
|
|
5948
|
+
const I = Oe(G(), { month: pe.value(ae), year: k.value(ae) }), te = D < 0 ? Dt(I, 1) : pa(I, 1);
|
|
5949
5949
|
$(De(te), ge(te), D < 0, e.preventMinMaxNavigation) && (b(ae, De(te), ge(te)), t("update-month-year", { instance: ae, month: De(te), year: ge(te) }), y.value.count && !y.value.solo && fe(ae), n());
|
|
5950
5950
|
}, fe = (D) => {
|
|
5951
5951
|
for (let ae = D - 1; ae >= 0; ae--) {
|
|
5952
|
-
const
|
|
5953
|
-
b(ae, De(
|
|
5952
|
+
const I = pa(Oe(G(), { month: pe.value(ae + 1), year: k.value(ae + 1) }), 1);
|
|
5953
|
+
b(ae, De(I), ge(I));
|
|
5954
5954
|
}
|
|
5955
5955
|
for (let ae = D + 1; ae <= y.value.count - 1; ae++) {
|
|
5956
|
-
const
|
|
5957
|
-
b(ae, De(
|
|
5956
|
+
const I = Dt(Oe(G(), { month: pe.value(ae - 1), year: k.value(ae - 1) }), 1);
|
|
5957
|
+
b(ae, De(I), ge(I));
|
|
5958
5958
|
}
|
|
5959
5959
|
}, Ne = () => {
|
|
5960
5960
|
if (Array.isArray(m.value) && m.value.length === 2) {
|
|
5961
5961
|
const D = G(
|
|
5962
5962
|
G(m.value[1] ? m.value[1] : Dt(m.value[0], 1))
|
|
5963
|
-
), [ae,
|
|
5964
|
-
(ae !== te || ae === te &&
|
|
5963
|
+
), [ae, I] = [De(m.value[0]), ge(m.value[0])], [te, Y] = [De(m.value[1]), ge(m.value[1])];
|
|
5964
|
+
(ae !== te || ae === te && I !== Y) && y.value.solo && b(1, De(D), ge(D));
|
|
5965
5965
|
} else m.value && !Array.isArray(m.value) && (b(0, De(m.value), ge(m.value)), q(G()));
|
|
5966
5966
|
}, C = () => {
|
|
5967
5967
|
e.startDate && (b(0, De(G(e.startDate)), ge(G(e.startDate))), y.value.count && fe(0));
|
|
5968
5968
|
}, J = (D, ae) => {
|
|
5969
5969
|
if (e.monthChangeOnScroll) {
|
|
5970
|
-
const
|
|
5971
|
-
let
|
|
5972
|
-
te > 1 && (
|
|
5970
|
+
const I = (/* @__PURE__ */ new Date()).getTime() - l.value.getTime(), te = Math.abs(D.deltaY);
|
|
5971
|
+
let Y = 500;
|
|
5972
|
+
te > 1 && (Y = 100), te > 100 && (Y = 0), I > Y && (l.value = /* @__PURE__ */ new Date(), se(e.monthChangeOnScroll !== "inverse" ? -D.deltaY : D.deltaY, ae));
|
|
5973
5973
|
}
|
|
5974
|
-
}, s = (D, ae,
|
|
5975
|
-
e.monthChangeOnArrows && e.vertical ===
|
|
5974
|
+
}, s = (D, ae, I = !1) => {
|
|
5975
|
+
e.monthChangeOnArrows && e.vertical === I && V(D, ae);
|
|
5976
5976
|
}, V = (D, ae) => {
|
|
5977
5977
|
se(D === "right" ? -1 : 1, ae);
|
|
5978
5978
|
}, Z = (D) => {
|
|
@@ -5991,10 +5991,10 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Hr = (e, t) =
|
|
|
5991
5991
|
default:
|
|
5992
5992
|
return [!1, !1];
|
|
5993
5993
|
}
|
|
5994
|
-
}, he = (D, ae,
|
|
5994
|
+
}, he = (D, ae, I, te) => {
|
|
5995
5995
|
if (e.sixWeeks && D.length < 6) {
|
|
5996
|
-
const
|
|
5997
|
-
for (let vt = 1; vt <=
|
|
5996
|
+
const Y = 6 - D.length, we = (ae.getDay() + 7 - te) % 7, $e = 6 - (I.getDay() + 7 - te) % 7, [Be, je] = R(we, $e);
|
|
5997
|
+
for (let vt = 1; vt <= Y; vt++)
|
|
5998
5998
|
if (je ? !!(vt % 2) == Be : Be) {
|
|
5999
5999
|
const Ke = D[0].days[0], ht = P(_t(Ke.value, -7), De(ae));
|
|
6000
6000
|
D.unshift({ days: ht });
|
|
@@ -6005,9 +6005,9 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Hr = (e, t) =
|
|
|
6005
6005
|
}
|
|
6006
6006
|
return D;
|
|
6007
6007
|
}, P = (D, ae) => {
|
|
6008
|
-
const
|
|
6009
|
-
for (let
|
|
6010
|
-
const we = _t(
|
|
6008
|
+
const I = G(D), te = [];
|
|
6009
|
+
for (let Y = 0; Y < 7; Y++) {
|
|
6010
|
+
const we = _t(I, Y), $e = De(we) !== ae;
|
|
6011
6011
|
te.push({
|
|
6012
6012
|
text: e.hideOffsetDates && $e ? "" : we.getDate(),
|
|
6013
6013
|
value: we,
|
|
@@ -6017,16 +6017,16 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Hr = (e, t) =
|
|
|
6017
6017
|
}
|
|
6018
6018
|
return te;
|
|
6019
6019
|
}, K = (D, ae) => {
|
|
6020
|
-
const
|
|
6020
|
+
const I = [], te = new Date(ae, D), Y = new Date(ae, D + 1, 0), we = e.weekStart, $e = Pt(te, { weekStartsOn: we }), Be = (je) => {
|
|
6021
6021
|
const vt = P(je, D);
|
|
6022
|
-
if (
|
|
6023
|
-
(Ke) => Pe(it(Ke.value), it(
|
|
6022
|
+
if (I.push({ days: vt }), !I[I.length - 1].days.some(
|
|
6023
|
+
(Ke) => Pe(it(Ke.value), it(Y))
|
|
6024
6024
|
)) {
|
|
6025
6025
|
const Ke = _t(je, 7);
|
|
6026
6026
|
Be(Ke);
|
|
6027
6027
|
}
|
|
6028
6028
|
};
|
|
6029
|
-
return Be($e), he(
|
|
6029
|
+
return Be($e), he(I, te, Y, we);
|
|
6030
6030
|
}, de = (D) => {
|
|
6031
6031
|
const ae = Ft(G(D.value), u.hours, u.minutes, rt());
|
|
6032
6032
|
t("date-update", ae), U.value.enabled ? Bn(ae, m, U.value.limit) : m.value = ae, a(), ft().then(() => {
|
|
@@ -6035,19 +6035,19 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Hr = (e, t) =
|
|
|
6035
6035
|
}, be = (D) => h.value.noDisabledRange ? Wr(r.value[0], D).some((ae) => j(ae)) : !1, nt = () => {
|
|
6036
6036
|
r.value = m.value ? m.value.slice() : [], r.value.length === 2 && !(h.value.fixedStart || h.value.fixedEnd) && (r.value = []);
|
|
6037
6037
|
}, ve = (D, ae) => {
|
|
6038
|
-
const
|
|
6038
|
+
const I = [
|
|
6039
6039
|
G(D.value),
|
|
6040
6040
|
_t(G(D.value), +h.value.autoRange)
|
|
6041
6041
|
];
|
|
6042
|
-
ne(
|
|
6042
|
+
ne(I) ? (ae && wt(D.value), r.value = I) : t("invalid-date", D.value);
|
|
6043
6043
|
}, wt = (D) => {
|
|
6044
|
-
const ae = De(G(D)),
|
|
6045
|
-
if (b(0, ae,
|
|
6044
|
+
const ae = De(G(D)), I = ge(G(D));
|
|
6045
|
+
if (b(0, ae, I), y.value.count > 0)
|
|
6046
6046
|
for (let te = 1; te < y.value.count; te++) {
|
|
6047
|
-
const
|
|
6047
|
+
const Y = Ni(
|
|
6048
6048
|
Oe(G(D), { year: k.value(te - 1), month: pe.value(te - 1) })
|
|
6049
6049
|
);
|
|
6050
|
-
b(te,
|
|
6050
|
+
b(te, Y.month, Y.year);
|
|
6051
6051
|
}
|
|
6052
6052
|
}, ct = (D) => {
|
|
6053
6053
|
if (be(D.value) || !N(D.value, m.value, h.value.fixedStart ? 0 : 1))
|
|
@@ -6074,9 +6074,9 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Hr = (e, t) =
|
|
|
6074
6074
|
if (o.value = JSON.parse(JSON.stringify(D)), !h.value.enabled) return de(D);
|
|
6075
6075
|
mr(u.hours) && mr(u.minutes) && !U.value.enabled && (jt(D, ae), aa());
|
|
6076
6076
|
}, na = (D, ae) => {
|
|
6077
|
-
var
|
|
6077
|
+
var I;
|
|
6078
6078
|
b(D, ae.month, ae.year, !0), y.value.count && !y.value.solo && fe(D), t("update-month-year", { instance: D, month: ae.month, year: ae.year }), n(y.value.solo ? D : void 0);
|
|
6079
|
-
const te = (
|
|
6079
|
+
const te = (I = e.flow) != null && I.length ? e.flow[e.flowStep] : void 0;
|
|
6080
6080
|
!ae.fromNav && (te === Ze.month || te === Ze.year) && a();
|
|
6081
6081
|
}, ka = (D, ae) => {
|
|
6082
6082
|
Kr({
|
|
@@ -6117,8 +6117,8 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Hr = (e, t) =
|
|
|
6117
6117
|
updateMonthYear: na,
|
|
6118
6118
|
presetDate: ka,
|
|
6119
6119
|
selectCurrentDate: _a,
|
|
6120
|
-
updateTime: (D, ae = !0,
|
|
6121
|
-
E(D, ae,
|
|
6120
|
+
updateTime: (D, ae = !0, I = !1) => {
|
|
6121
|
+
E(D, ae, I, Ma);
|
|
6122
6122
|
},
|
|
6123
6123
|
assignMonthAndYear: q
|
|
6124
6124
|
};
|
|
@@ -7583,14 +7583,14 @@ const ou = ({
|
|
|
7583
7583
|
at(() => {
|
|
7584
7584
|
w(r.modelValue), ft().then(() => {
|
|
7585
7585
|
if (!B.value.enabled) {
|
|
7586
|
-
const
|
|
7587
|
-
|
|
7586
|
+
const I = oe(M.value);
|
|
7587
|
+
I?.addEventListener("scroll", Z), window?.addEventListener("resize", R);
|
|
7588
7588
|
}
|
|
7589
7589
|
}), B.value.enabled && (o.value = !0), window?.addEventListener("keyup", he), window?.addEventListener("keydown", P);
|
|
7590
7590
|
}), ja(() => {
|
|
7591
7591
|
if (!B.value.enabled) {
|
|
7592
|
-
const
|
|
7593
|
-
|
|
7592
|
+
const I = oe(M.value);
|
|
7593
|
+
I?.removeEventListener("scroll", Z), window?.removeEventListener("resize", R);
|
|
7594
7594
|
}
|
|
7595
7595
|
window?.removeEventListener("keyup", he), window?.removeEventListener("keydown", P);
|
|
7596
7596
|
});
|
|
@@ -7631,73 +7631,73 @@ const ou = ({
|
|
|
7631
7631
|
to: typeof r.teleport == "boolean" ? "body" : r.teleport,
|
|
7632
7632
|
disabled: !r.teleport || B.value.enabled
|
|
7633
7633
|
} : {}), J = A(() => ({ class: "dp__outer_menu_wrap" })), s = A(() => B.value.enabled && (r.timePicker || r.monthPicker || r.yearPicker || r.quarterPicker)), V = () => {
|
|
7634
|
-
var
|
|
7635
|
-
return (te = (
|
|
7634
|
+
var I, te;
|
|
7635
|
+
return (te = (I = p.value) == null ? void 0 : I.$el) == null ? void 0 : te.getBoundingClientRect();
|
|
7636
7636
|
}, Z = () => {
|
|
7637
7637
|
o.value && (F.value.closeOnScroll ? rt() : _());
|
|
7638
7638
|
}, R = () => {
|
|
7639
|
-
var
|
|
7639
|
+
var I;
|
|
7640
7640
|
o.value && _();
|
|
7641
|
-
const te = (
|
|
7641
|
+
const te = (I = u.value) == null ? void 0 : I.$el.getBoundingClientRect().width;
|
|
7642
7642
|
S.value = document.body.offsetWidth <= te;
|
|
7643
|
-
}, he = (
|
|
7644
|
-
|
|
7645
|
-
}, P = (
|
|
7646
|
-
f.value =
|
|
7643
|
+
}, he = (I) => {
|
|
7644
|
+
I.key === "Tab" && !B.value.enabled && !r.teleport && F.value.tabOutClosesMenu && (M.value.contains(document.activeElement) || rt()), f.value = I.shiftKey;
|
|
7645
|
+
}, P = (I) => {
|
|
7646
|
+
f.value = I.shiftKey;
|
|
7647
7647
|
}, K = () => {
|
|
7648
7648
|
!r.disabled && !r.readonly && (q(pr, r), _(!1), o.value = !0, o.value && a("open"), o.value || jt(), w(r.modelValue));
|
|
7649
7649
|
}, de = () => {
|
|
7650
|
-
var
|
|
7651
|
-
T.value = "", jt(), (
|
|
7650
|
+
var I;
|
|
7651
|
+
T.value = "", jt(), (I = p.value) == null || I.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), F.value.closeOnClearValue && rt();
|
|
7652
7652
|
}, be = () => {
|
|
7653
|
-
const
|
|
7654
|
-
return !
|
|
7653
|
+
const I = i.value;
|
|
7654
|
+
return !I || !Array.isArray(I) && ne(I) ? !0 : Array.isArray(I) ? ce.value.enabled || I.length === 2 && ne(I[0]) && ne(I[1]) ? !0 : le.value.partialRange && !r.timePicker ? ne(I[0]) : !1 : !1;
|
|
7655
7655
|
}, nt = () => {
|
|
7656
7656
|
se() && be() ? (Q(), rt()) : a("invalid-select", i.value);
|
|
7657
|
-
}, ve = (
|
|
7658
|
-
wt(), Q(), F.value.closeOnAutoApply && !
|
|
7657
|
+
}, ve = (I) => {
|
|
7658
|
+
wt(), Q(), F.value.closeOnAutoApply && !I && rt();
|
|
7659
7659
|
}, wt = () => {
|
|
7660
7660
|
p.value && re.value.enabled && p.value.setParsedDate(i.value);
|
|
7661
|
-
}, ct = (
|
|
7662
|
-
r.autoApply && N(i.value) && be() && (le.value.enabled && Array.isArray(i.value) ? (le.value.partialRange || i.value.length === 2) && ve(
|
|
7661
|
+
}, ct = (I = !1) => {
|
|
7662
|
+
r.autoApply && N(i.value) && be() && (le.value.enabled && Array.isArray(i.value) ? (le.value.partialRange || i.value.length === 2) && ve(I) : ve(I));
|
|
7663
7663
|
}, jt = () => {
|
|
7664
7664
|
re.value.enabled || (i.value = null);
|
|
7665
7665
|
}, rt = () => {
|
|
7666
7666
|
B.value.enabled || (o.value && (o.value = !1, H.value = !1, U(!1), $(!1), j(), a("closed"), T.value && w(v.value)), jt(), a("blur"));
|
|
7667
|
-
}, Qt = (
|
|
7668
|
-
if (!
|
|
7667
|
+
}, Qt = (I, te, Y = !1) => {
|
|
7668
|
+
if (!I) {
|
|
7669
7669
|
i.value = null;
|
|
7670
7670
|
return;
|
|
7671
7671
|
}
|
|
7672
|
-
const we = Array.isArray(
|
|
7673
|
-
we && $e ? (L.value = !0, i.value =
|
|
7672
|
+
const we = Array.isArray(I) ? !I.some((Be) => !ne(Be)) : ne(I), $e = N(I);
|
|
7673
|
+
we && $e ? (L.value = !0, i.value = I, te && (h.value = Y, nt(), a("text-submit")), ft().then(() => {
|
|
7674
7674
|
L.value = !1;
|
|
7675
|
-
})) : a("invalid-date",
|
|
7675
|
+
})) : a("invalid-date", I);
|
|
7676
7676
|
}, ba = () => {
|
|
7677
7677
|
r.autoApply && N(i.value) && Q(), wt();
|
|
7678
|
-
}, aa = () => o.value ? rt() : K(), wa = (
|
|
7679
|
-
i.value =
|
|
7678
|
+
}, aa = () => o.value ? rt() : K(), wa = (I) => {
|
|
7679
|
+
i.value = I;
|
|
7680
7680
|
}, na = () => {
|
|
7681
7681
|
re.value.enabled && (y.value = !0, d()), a("focus");
|
|
7682
7682
|
}, ka = () => {
|
|
7683
7683
|
if (re.value.enabled && (y.value = !1, w(r.modelValue), h.value)) {
|
|
7684
|
-
const
|
|
7685
|
-
|
|
7684
|
+
const I = Yi(M.value, f.value);
|
|
7685
|
+
I?.focus();
|
|
7686
7686
|
}
|
|
7687
7687
|
a("blur");
|
|
7688
|
-
}, _a = (
|
|
7688
|
+
}, _a = (I) => {
|
|
7689
7689
|
u.value && u.value.updateMonthYear(0, {
|
|
7690
|
-
month: or(
|
|
7691
|
-
year: or(
|
|
7690
|
+
month: or(I.month),
|
|
7691
|
+
year: or(I.year)
|
|
7692
7692
|
});
|
|
7693
|
-
}, Ma = (
|
|
7694
|
-
w(
|
|
7695
|
-
}, Da = (
|
|
7696
|
-
var
|
|
7697
|
-
(
|
|
7698
|
-
}, D = (
|
|
7693
|
+
}, Ma = (I) => {
|
|
7694
|
+
w(I ?? r.modelValue);
|
|
7695
|
+
}, Da = (I, te) => {
|
|
7696
|
+
var Y;
|
|
7697
|
+
(Y = u.value) == null || Y.switchView(I, te);
|
|
7698
|
+
}, D = (I) => F.value.onClickOutside ? F.value.onClickOutside(I) : rt(), ae = (I = 0) => {
|
|
7699
7699
|
var te;
|
|
7700
|
-
(te = u.value) == null || te.handleFlow(
|
|
7700
|
+
(te = u.value) == null || te.handleFlow(I);
|
|
7701
7701
|
};
|
|
7702
7702
|
return bu(g, p, () => D(be)), t({
|
|
7703
7703
|
closeMenu: rt,
|
|
@@ -7715,7 +7715,7 @@ const ou = ({
|
|
|
7715
7715
|
toggleMenu: aa,
|
|
7716
7716
|
handleFlow: ae,
|
|
7717
7717
|
dpWrapMenuRef: g
|
|
7718
|
-
}), (
|
|
7718
|
+
}), (I, te) => (O(), X("div", {
|
|
7719
7719
|
ref_key: "pickerWrapperRef",
|
|
7720
7720
|
ref: M,
|
|
7721
7721
|
class: Me(fe.value),
|
|
@@ -7725,9 +7725,9 @@ const ou = ({
|
|
|
7725
7725
|
ref_key: "inputRef",
|
|
7726
7726
|
ref: p,
|
|
7727
7727
|
"input-value": c(T),
|
|
7728
|
-
"onUpdate:inputValue": te[0] || (te[0] = (
|
|
7728
|
+
"onUpdate:inputValue": te[0] || (te[0] = (Y) => zn(T) ? T.value = Y : null),
|
|
7729
7729
|
"is-menu-open": o.value
|
|
7730
|
-
},
|
|
7730
|
+
}, I.$props, {
|
|
7731
7731
|
onClear: de,
|
|
7732
7732
|
onOpen: K,
|
|
7733
7733
|
onSetInputDate: Qt,
|
|
@@ -7737,17 +7737,17 @@ const ou = ({
|
|
|
7737
7737
|
onClose: rt,
|
|
7738
7738
|
onFocus: na,
|
|
7739
7739
|
onBlur: ka,
|
|
7740
|
-
onRealBlur: te[1] || (te[1] = (
|
|
7741
|
-
onTextInput: te[2] || (te[2] = (
|
|
7740
|
+
onRealBlur: te[1] || (te[1] = (Y) => y.value = !1),
|
|
7741
|
+
onTextInput: te[2] || (te[2] = (Y) => I.$emit("text-input", Y))
|
|
7742
7742
|
}), tt({ _: 2 }, [
|
|
7743
|
-
Ie(c(b), (
|
|
7744
|
-
name:
|
|
7743
|
+
Ie(c(b), (Y, we) => ({
|
|
7744
|
+
name: Y,
|
|
7745
7745
|
fn: ke(($e) => [
|
|
7746
|
-
ue(
|
|
7746
|
+
ue(I.$slots, Y, Xe(st($e)))
|
|
7747
7747
|
])
|
|
7748
7748
|
}))
|
|
7749
7749
|
]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
|
|
7750
|
-
(O(), xe(Qa(
|
|
7750
|
+
(O(), xe(Qa(I.teleport ? nl : "div"), Xe(st(C.value)), {
|
|
7751
7751
|
default: ke(() => [
|
|
7752
7752
|
ut(ya, {
|
|
7753
7753
|
name: c(pe)(c(W)),
|
|
@@ -7765,10 +7765,10 @@ const ou = ({
|
|
|
7765
7765
|
ut(pr, Ue({
|
|
7766
7766
|
ref_key: "dpMenuRef",
|
|
7767
7767
|
ref: u
|
|
7768
|
-
},
|
|
7768
|
+
}, I.$props, {
|
|
7769
7769
|
"internal-model-value": c(i),
|
|
7770
|
-
"onUpdate:internalModelValue": te[3] || (te[3] = (
|
|
7771
|
-
class: { [Ne.value]: !0, "dp--menu-wrapper":
|
|
7770
|
+
"onUpdate:internalModelValue": te[3] || (te[3] = (Y) => zn(i) ? i.value = Y : null),
|
|
7771
|
+
class: { [Ne.value]: !0, "dp--menu-wrapper": I.teleport },
|
|
7772
7772
|
"open-on-top": c(W),
|
|
7773
7773
|
"no-overlay-focus": s.value,
|
|
7774
7774
|
collapse: S.value,
|
|
@@ -7778,27 +7778,27 @@ const ou = ({
|
|
|
7778
7778
|
onSelectDate: nt,
|
|
7779
7779
|
onAutoApply: ct,
|
|
7780
7780
|
onTimeUpdate: ba,
|
|
7781
|
-
onFlowStep: te[4] || (te[4] = (
|
|
7782
|
-
onUpdateMonthYear: te[5] || (te[5] = (
|
|
7783
|
-
onInvalidSelect: te[6] || (te[6] = (
|
|
7784
|
-
onAutoApplyInvalid: te[7] || (te[7] = (
|
|
7785
|
-
onInvalidFixedRange: te[8] || (te[8] = (
|
|
7781
|
+
onFlowStep: te[4] || (te[4] = (Y) => I.$emit("flow-step", Y)),
|
|
7782
|
+
onUpdateMonthYear: te[5] || (te[5] = (Y) => I.$emit("update-month-year", Y)),
|
|
7783
|
+
onInvalidSelect: te[6] || (te[6] = (Y) => I.$emit("invalid-select", c(i))),
|
|
7784
|
+
onAutoApplyInvalid: te[7] || (te[7] = (Y) => I.$emit("invalid-select", Y)),
|
|
7785
|
+
onInvalidFixedRange: te[8] || (te[8] = (Y) => I.$emit("invalid-fixed-range", Y)),
|
|
7786
7786
|
onRecalculatePosition: c(_),
|
|
7787
|
-
onTooltipOpen: te[9] || (te[9] = (
|
|
7788
|
-
onTooltipClose: te[10] || (te[10] = (
|
|
7789
|
-
onTimePickerOpen: te[11] || (te[11] = (
|
|
7790
|
-
onTimePickerClose: te[12] || (te[12] = (
|
|
7791
|
-
onAmPmChange: te[13] || (te[13] = (
|
|
7792
|
-
onRangeStart: te[14] || (te[14] = (
|
|
7793
|
-
onRangeEnd: te[15] || (te[15] = (
|
|
7794
|
-
onDateUpdate: te[16] || (te[16] = (
|
|
7795
|
-
onInvalidDate: te[17] || (te[17] = (
|
|
7796
|
-
onOverlayToggle: te[18] || (te[18] = (
|
|
7787
|
+
onTooltipOpen: te[9] || (te[9] = (Y) => I.$emit("tooltip-open", Y)),
|
|
7788
|
+
onTooltipClose: te[10] || (te[10] = (Y) => I.$emit("tooltip-close", Y)),
|
|
7789
|
+
onTimePickerOpen: te[11] || (te[11] = (Y) => I.$emit("time-picker-open", Y)),
|
|
7790
|
+
onTimePickerClose: te[12] || (te[12] = (Y) => I.$emit("time-picker-close", Y)),
|
|
7791
|
+
onAmPmChange: te[13] || (te[13] = (Y) => I.$emit("am-pm-change", Y)),
|
|
7792
|
+
onRangeStart: te[14] || (te[14] = (Y) => I.$emit("range-start", Y)),
|
|
7793
|
+
onRangeEnd: te[15] || (te[15] = (Y) => I.$emit("range-end", Y)),
|
|
7794
|
+
onDateUpdate: te[16] || (te[16] = (Y) => I.$emit("date-update", Y)),
|
|
7795
|
+
onInvalidDate: te[17] || (te[17] = (Y) => I.$emit("invalid-date", Y)),
|
|
7796
|
+
onOverlayToggle: te[18] || (te[18] = (Y) => I.$emit("overlay-toggle", Y))
|
|
7797
7797
|
}), tt({ _: 2 }, [
|
|
7798
|
-
Ie(c(x), (
|
|
7799
|
-
name:
|
|
7798
|
+
Ie(c(x), (Y, we) => ({
|
|
7799
|
+
name: Y,
|
|
7800
7800
|
fn: ke(($e) => [
|
|
7801
|
-
ue(
|
|
7801
|
+
ue(I.$slots, Y, Xe(st({ ...$e })))
|
|
7802
7802
|
])
|
|
7803
7803
|
}))
|
|
7804
7804
|
]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "is-text-input-date", "onRecalculatePosition"])
|
|
@@ -8724,51 +8724,51 @@ const Du = {
|
|
|
8724
8724
|
}
|
|
8725
8725
|
}), Id = dl("event", () => {
|
|
8726
8726
|
const e = ml(), { voucher: t } = Qn(pl()), { display: n } = fl(), { bearerToken: a, metaData: r } = Qn(Xn()), l = Xn(), o = hl(), v = z({}), m = A(() => Object.keys(v.value).length > 0), g = z(void 0), u = z(!0), p = z(yt.InitialState), y = z(NaN), M = z(1), h = z(NaN), f = z(NaN), S = z(""), L = en("konnectio_name", "", void 0, { serializer: tn.string }), U = en("konnectio_phone", "", void 0, { serializer: tn.string }), $ = en("konnectio_email", "", void 0, { serializer: tn.string }), j = z(""), ne = z(""), N = z({}), E = z({}), re = z("");
|
|
8727
|
-
function B(
|
|
8728
|
-
return
|
|
8727
|
+
function B(Y) {
|
|
8728
|
+
return Y ? Y.templateId !== void 0 : !1;
|
|
8729
8729
|
}
|
|
8730
|
-
const F = A(() => l.metaData.hotels.findIndex((
|
|
8730
|
+
const F = A(() => l.metaData.hotels.findIndex((Y) => Y.id === o.eventLocation) || 0), le = A(() => l.metaData.hotels[F.value]), ce = A(() => le.value ? le.value.maxNumberPerBooking : 1 / 0), pe = A(() => le.value.name ? le.value.name : ""), k = A(() => le.value.subtitle ? le.value.subtitle : ""), x = z(o.eventDate), b = z(o.eventLocation), W = A(() => x.value !== o.eventDate), ie = A(() => b.value !== o.eventLocation), H = A(() => W.value || ie.value), _ = A(() => o.eventDate.toISOString()), oe = A(() => B(g.value)), q = A(() => B(g.value) ? g.value.numberOfDays : M.value), T = A(() => B(g.value) ? g.value.packageCount : 0), i = A(() => B(g.value) ? g.value.fromDate : ""), w = A(() => v.value.events !== void 0 ? v.value.events.find((Y) => Y.id === h.value) : void 0), Q = A(() => w.value ? w.value.length : void 0), d = A(() => B(g.value) ? g.value.templateId : 0), se = A(() => v.value.events), fe = A(() => v.value.templates), Ne = A(() => v.value.events.length > 0), C = A(() => v.value.templates.length > 0), J = A(() => w.value && w.value.eventRateType ? w.value.eventRateType : Un.None), s = A(() => {
|
|
8731
8731
|
if (!B(g.value))
|
|
8732
8732
|
return g.value;
|
|
8733
8733
|
}), V = A(() => {
|
|
8734
8734
|
if (s.value !== void 0) {
|
|
8735
|
-
const
|
|
8735
|
+
const Y = s.value.find(
|
|
8736
8736
|
(we) => we.time === S.value
|
|
8737
8737
|
);
|
|
8738
|
-
if (
|
|
8739
|
-
return
|
|
8738
|
+
if (Y && Y.price)
|
|
8739
|
+
return Y.price;
|
|
8740
8740
|
}
|
|
8741
8741
|
return 0;
|
|
8742
8742
|
}), Z = A(() => {
|
|
8743
8743
|
if (B(g.value))
|
|
8744
8744
|
return g.value.rooms;
|
|
8745
8745
|
});
|
|
8746
|
-
function R(
|
|
8746
|
+
function R(Y, we, $e) {
|
|
8747
8747
|
let Be = 0;
|
|
8748
8748
|
if (B(g.value)) {
|
|
8749
8749
|
const je = g.value.rooms[$e];
|
|
8750
8750
|
if (je) {
|
|
8751
|
-
const vt = je.addons, Ke = N.value[`${we}.${
|
|
8751
|
+
const vt = je.addons, Ke = N.value[`${we}.${Y}.${$e}`] || 0;
|
|
8752
8752
|
if (Ke > 0) {
|
|
8753
|
-
const ht = vt?.find((ra) => ra.id ===
|
|
8753
|
+
const ht = vt?.find((ra) => ra.id === Y), mt = typeof Ke == "boolean" ? 1 : Ke;
|
|
8754
8754
|
Be += yl(ht?.price, ht?.quantityStrategy, q.value, je.adultPerRoom) * mt;
|
|
8755
8755
|
}
|
|
8756
8756
|
}
|
|
8757
8757
|
} else {
|
|
8758
|
-
const je = E.value[
|
|
8758
|
+
const je = E.value[Y] || 0;
|
|
8759
8759
|
if (je > 0) {
|
|
8760
|
-
const vt = w.value?.products?.find((Ke) => Ke.id ===
|
|
8760
|
+
const vt = w.value?.products?.find((Ke) => Ke.id === Y);
|
|
8761
8761
|
vt && (Be += vt.price * je);
|
|
8762
8762
|
}
|
|
8763
8763
|
}
|
|
8764
8764
|
return Be;
|
|
8765
8765
|
}
|
|
8766
|
-
function he(
|
|
8766
|
+
function he(Y, we) {
|
|
8767
8767
|
let $e = 0;
|
|
8768
8768
|
if (B(g.value))
|
|
8769
8769
|
for (const Be in N.value) {
|
|
8770
8770
|
const je = Be.split(".");
|
|
8771
|
-
parseInt(je[0]) ===
|
|
8771
|
+
parseInt(je[0]) === Y && parseInt(je[2]) === we && ($e += R(parseInt(je[1]), Y, we));
|
|
8772
8772
|
}
|
|
8773
8773
|
else
|
|
8774
8774
|
for (const Be in E.value)
|
|
@@ -8777,28 +8777,28 @@ const Du = {
|
|
|
8777
8777
|
}
|
|
8778
8778
|
const P = A(() => B(g.value) && g.value.totalPrice || 0), K = A(() => {
|
|
8779
8779
|
if (B(g.value))
|
|
8780
|
-
return g.value.rooms === void 0 ? NaN : g.value.rooms.flatMap((
|
|
8781
|
-
(
|
|
8780
|
+
return g.value.rooms === void 0 ? NaN : g.value.rooms.flatMap((Y) => Y.roomGroupId).reduce(
|
|
8781
|
+
(Y, we, $e) => Y + he(we, $e),
|
|
8782
8782
|
P.value
|
|
8783
8783
|
) || 0;
|
|
8784
8784
|
{
|
|
8785
|
-
let
|
|
8786
|
-
return
|
|
8785
|
+
let Y = he();
|
|
8786
|
+
return Y += V.value, Y;
|
|
8787
8787
|
}
|
|
8788
|
-
}), de = A(() => B(g.value) && g.value.rooms !== void 0 && g.value.rooms.flatMap((
|
|
8789
|
-
const
|
|
8788
|
+
}), de = A(() => B(g.value) && g.value.rooms !== void 0 && g.value.rooms.flatMap((Y) => Y.weekendFee).reduce((Y, we) => Y + we, 0) || 0), be = A(() => B(g.value) && g.value.rooms !== void 0 && g.value.rooms.flatMap((Y) => Y.roomUpgrade).reduce((Y, we) => Y + we, 0) || 0), nt = A(() => {
|
|
8789
|
+
const Y = E.value;
|
|
8790
8790
|
let we = 0;
|
|
8791
|
-
for (const $e in
|
|
8792
|
-
we += Number.isNaN(
|
|
8791
|
+
for (const $e in Y)
|
|
8792
|
+
we += Number.isNaN(Y[$e]) ? 0 : Y[$e];
|
|
8793
8793
|
return we > 0;
|
|
8794
8794
|
}), ve = A(() => B(g.value) ? !1 : w.value?.products.length > 0), wt = A(() => ve.value ? nt.value : !0), ct = A(() => J.value !== Un.FullDayEvent && !oe.value), jt = A(() => !!(L.value !== "" && $.value !== "" && U.value.length >= 5 && wt.value && (!ct.value || S.value !== "")));
|
|
8795
|
-
function rt(
|
|
8796
|
-
return p.value === yt.ReservationState && h.value ===
|
|
8795
|
+
function rt(Y) {
|
|
8796
|
+
return p.value === yt.ReservationState && h.value === Y && u.value;
|
|
8797
8797
|
}
|
|
8798
8798
|
const Qt = A(() => !(p.value === yt.InitialState && u.value)), ba = A(() => !(p.value === yt.AvailabilityState && u.value)), aa = A(() => g.value !== void 0), wa = A(() => p.value === yt.PaymentState && u.value);
|
|
8799
8799
|
async function na() {
|
|
8800
8800
|
try {
|
|
8801
|
-
const
|
|
8801
|
+
const Y = (await la.get("https://production.hotel-service.konnectio.com/api/event/metadata", {
|
|
8802
8802
|
params: {
|
|
8803
8803
|
language: Xt()
|
|
8804
8804
|
},
|
|
@@ -8807,7 +8807,7 @@ const Du = {
|
|
|
8807
8807
|
Accept: "application/json"
|
|
8808
8808
|
}
|
|
8809
8809
|
})).data;
|
|
8810
|
-
r.value =
|
|
8810
|
+
r.value = Y;
|
|
8811
8811
|
} catch {
|
|
8812
8812
|
n({
|
|
8813
8813
|
message: Yt.t("alert.error.couldntFetchMetadata"),
|
|
@@ -8815,9 +8815,9 @@ const Du = {
|
|
|
8815
8815
|
});
|
|
8816
8816
|
}
|
|
8817
8817
|
}
|
|
8818
|
-
async function ka(
|
|
8818
|
+
async function ka(Y) {
|
|
8819
8819
|
p.value = yt.AvailabilityState, u.value = !0;
|
|
8820
|
-
const we = new Date(new Date(new Date(o.eventDate)).setHours(12, 0, 0, 0)), $e = new Date(new Date(/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0));
|
|
8820
|
+
const we = new Date(new Date(new Date(o.eventDate)).setHours(12, 0, 0, 0)).getTime(), $e = new Date(new Date(/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0)).getTime();
|
|
8821
8821
|
if (we < $e && (o.eventDate = /* @__PURE__ */ new Date()), isNaN(o.eventLocation)) {
|
|
8822
8822
|
n({
|
|
8823
8823
|
message: Yt.t("alert.error.selectEventId"),
|
|
@@ -8831,7 +8831,7 @@ const Du = {
|
|
|
8831
8831
|
language: Xt(),
|
|
8832
8832
|
date: an(o.eventDate),
|
|
8833
8833
|
restaurantId: o.eventLocation,
|
|
8834
|
-
eventId:
|
|
8834
|
+
eventId: Y
|
|
8835
8835
|
},
|
|
8836
8836
|
headers: {
|
|
8837
8837
|
Authorization: a.value,
|
|
@@ -8846,7 +8846,7 @@ const Du = {
|
|
|
8846
8846
|
});
|
|
8847
8847
|
}
|
|
8848
8848
|
}
|
|
8849
|
-
async function _a(
|
|
8849
|
+
async function _a(Y) {
|
|
8850
8850
|
p.value = yt.ReservationState, u.value = !0;
|
|
8851
8851
|
try {
|
|
8852
8852
|
const we = (await la.get("https://production.hotel-service.konnectio.com/api/event/get-template", {
|
|
@@ -8865,7 +8865,7 @@ const Du = {
|
|
|
8865
8865
|
we.rooms.length === 0 ? n({
|
|
8866
8866
|
message: Yt.t("alert.error.eventNotAvailable"),
|
|
8867
8867
|
type: "warning"
|
|
8868
|
-
}) : (g.value = we,
|
|
8868
|
+
}) : (g.value = we, Y()), u.value = !1;
|
|
8869
8869
|
} catch {
|
|
8870
8870
|
u.value = !1, p.value = yt.AvailabilityState, n({
|
|
8871
8871
|
message: Yt.t("alert.error.couldntFetchEvent"),
|
|
@@ -8873,7 +8873,7 @@ const Du = {
|
|
|
8873
8873
|
});
|
|
8874
8874
|
}
|
|
8875
8875
|
}
|
|
8876
|
-
async function Ma(
|
|
8876
|
+
async function Ma(Y) {
|
|
8877
8877
|
p.value = yt.ReservationState, u.value = !0;
|
|
8878
8878
|
try {
|
|
8879
8879
|
const we = (await la.get("https://production.hotel-service.konnectio.com/api/event/vacant-times", {
|
|
@@ -8890,7 +8890,7 @@ const Du = {
|
|
|
8890
8890
|
Accept: "application/json"
|
|
8891
8891
|
}
|
|
8892
8892
|
})).data;
|
|
8893
|
-
g.value = we, u.value = !1, ve.value ?
|
|
8893
|
+
g.value = we, u.value = !1, ve.value ? Y() : Y(2);
|
|
8894
8894
|
} catch {
|
|
8895
8895
|
u.value = !1, p.value = yt.AvailabilityState, n({
|
|
8896
8896
|
message: Yt.t("alert.error.couldntFetchEvent"),
|
|
@@ -8901,7 +8901,7 @@ const Du = {
|
|
|
8901
8901
|
async function Da() {
|
|
8902
8902
|
if (re.value !== "")
|
|
8903
8903
|
try {
|
|
8904
|
-
const
|
|
8904
|
+
const Y = (await la.post("https://production.hotel-service.konnectio.com/api/event/validate-discount-code", {
|
|
8905
8905
|
language: Xt(),
|
|
8906
8906
|
date: x.value,
|
|
8907
8907
|
discountCode: re.value,
|
|
@@ -8912,9 +8912,9 @@ const Du = {
|
|
|
8912
8912
|
Accept: "application/json"
|
|
8913
8913
|
}
|
|
8914
8914
|
})).data;
|
|
8915
|
-
console.log(
|
|
8916
|
-
} catch (
|
|
8917
|
-
console.log(
|
|
8915
|
+
console.log(Y);
|
|
8916
|
+
} catch (Y) {
|
|
8917
|
+
console.log(Y), n({
|
|
8918
8918
|
message: Yt.t("alert.error.discountCodeValidation"),
|
|
8919
8919
|
type: "warning"
|
|
8920
8920
|
});
|
|
@@ -8925,7 +8925,7 @@ const Du = {
|
|
|
8925
8925
|
type: "error"
|
|
8926
8926
|
});
|
|
8927
8927
|
}
|
|
8928
|
-
async function D(
|
|
8928
|
+
async function D(Y) {
|
|
8929
8929
|
p.value = yt.PaymentState, u.value = !0;
|
|
8930
8930
|
const we = () => {
|
|
8931
8931
|
u.value = !1, p.value = yt.ReservationState, n({
|
|
@@ -8977,7 +8977,7 @@ const Du = {
|
|
|
8977
8977
|
email: $.value,
|
|
8978
8978
|
phone: U.value,
|
|
8979
8979
|
remark: j.value,
|
|
8980
|
-
numberOfPeople: isNaN(y.value) ?
|
|
8980
|
+
numberOfPeople: isNaN(y.value) ? 1 : y.value,
|
|
8981
8981
|
days: q.value,
|
|
8982
8982
|
allergyFood: ne.value,
|
|
8983
8983
|
discountCode: re.value,
|
|
@@ -8992,16 +8992,16 @@ const Du = {
|
|
|
8992
8992
|
}
|
|
8993
8993
|
}).then((mt) => {
|
|
8994
8994
|
u.value = !1, e.pay({
|
|
8995
|
-
callback:
|
|
8995
|
+
callback: Y,
|
|
8996
8996
|
response: mt.data
|
|
8997
8997
|
});
|
|
8998
8998
|
}).catch(() => we());
|
|
8999
8999
|
}
|
|
9000
|
-
function ae() {
|
|
9001
|
-
g.value = void 0, N.value = {}, E.value = {}, S.value = "", o.resetEventDate();
|
|
9000
|
+
function ae(Y = !1) {
|
|
9001
|
+
g.value = void 0, N.value = {}, E.value = {}, S.value = "", Y && o.resetEventDate();
|
|
9002
9002
|
}
|
|
9003
|
-
function Y
|
|
9004
|
-
oe.value || ve.value ?
|
|
9003
|
+
function I(Y) {
|
|
9004
|
+
oe.value || ve.value ? Y() : Y(2);
|
|
9005
9005
|
}
|
|
9006
9006
|
async function te() {
|
|
9007
9007
|
await Promise.all([na(), o.fetchMetadata()]);
|
|
@@ -9068,7 +9068,7 @@ const Du = {
|
|
|
9068
9068
|
createBooking: D,
|
|
9069
9069
|
reset: ae,
|
|
9070
9070
|
initialize: te,
|
|
9071
|
-
goBack:
|
|
9071
|
+
goBack: I,
|
|
9072
9072
|
hasListingData: m,
|
|
9073
9073
|
hasSelectedProducts: nt,
|
|
9074
9074
|
requiresArrivalTime: ct,
|
|
@@ -9084,4 +9084,4 @@ export {
|
|
|
9084
9084
|
Dd as m,
|
|
9085
9085
|
Id as u
|
|
9086
9086
|
};
|
|
9087
|
-
//# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-
|
|
9087
|
+
//# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BnJFLLBB.js.map
|