@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.
Files changed (52) hide show
  1. package/dist/{ActionField-IOx3ZRnf.js → ActionField-C3Cyxi5Q.js} +2 -2
  2. package/dist/ActionField-C3Cyxi5Q.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DJZ5q3NO.js → AvailabilitySkeleton-BIc6OPvo.js} +5 -5
  4. package/dist/AvailabilitySkeleton-BIc6OPvo.js.br +0 -0
  5. 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
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BnJFLLBB.js.br +0 -0
  7. package/dist/{CheckoutWindow-BoDi-872.js → CheckoutWindow-D4TzWjhF.js} +2 -2
  8. package/dist/CheckoutWindow-D4TzWjhF.js.br +0 -0
  9. package/dist/{ErrorMessage-Dm6szrbM.js → ErrorMessage-CIeuHK4s.js} +2 -2
  10. package/dist/ErrorMessage-CIeuHK4s.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-SimpuNtH.js → EventAvailabilityForm-BLI0AB6C.js} +3 -3
  12. package/dist/EventAvailabilityForm-BLI0AB6C.js.br +0 -0
  13. package/dist/{Field-NwGowmOF.js → Field-3yPNEwdb.js} +3 -3
  14. package/dist/Field-3yPNEwdb.js.br +0 -0
  15. 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
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-BrxKwUUL.js → SelectField.vue_vue_type_style_index_0_lang-DdksDWOr.js} +2 -2
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-DdksDWOr.js.br +0 -0
  18. package/dist/{TermsOfService-BrVaz2YB.js → TermsOfService-Cbm3UR7t.js} +3 -3
  19. package/dist/_-CAqjShU3.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-BMOiT4OK.js → _.vue_vue_type_style_index_0_lang-CLXvfe45.js} +2 -2
  21. package/dist/availability.js +5 -5
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +3 -3
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/event.js +406 -402
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +7 -7
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +8 -8
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/{giftCard-ApIE63zX.js → giftCard-DlkMDK-m.js} +2 -2
  32. package/dist/giftCard-DlkMDK-m.js.br +0 -0
  33. package/dist/hotel.js +425 -431
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-CFKgaeSf.js → masonry.plugin-CZHScYDX.js} +6 -6
  36. package/dist/masonry.plugin-CZHScYDX.js.br +0 -0
  37. package/dist/polyfill.js +1 -1
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/package.json +7 -7
  42. package/dist/ActionField-IOx3ZRnf.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-DJZ5q3NO.js.br +0 -0
  44. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-bIDNSR5b.js.br +0 -0
  45. package/dist/CheckoutWindow-BoDi-872.js.br +0 -0
  46. package/dist/ErrorMessage-Dm6szrbM.js.br +0 -0
  47. package/dist/EventAvailabilityForm-SimpuNtH.js.br +0 -0
  48. package/dist/Field-NwGowmOF.js.br +0 -0
  49. package/dist/SelectField.vue_vue_type_style_index_0_lang-BrxKwUUL.js.br +0 -0
  50. package/dist/_-BU4kS4Or.js +0 -5
  51. package/dist/giftCard-ApIE63zX.js.br +0 -0
  52. 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-BrxKwUUL.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-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, Y, te = !1) => {
5897
- var I, we;
5898
- x(te) && (g.value[D] || (g.value[D] = { month: 0, year: 0 }), g.value[D].month = ir(ae) ? (I = g.value[D]) == null ? void 0 : I.month : ae, g.value[D].year = ir(Y) ? (we = g.value[D]) == null ? void 0 : we.year : Y);
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 Y = 1; Y < y.value.count; Y++) {
5918
- const te = Oe(G(), { month: pe.value(Y - 1), year: k.value(Y - 1) }), I = fr(te, { months: 1 });
5919
- g.value[Y] = { month: De(I), year: ge(I) };
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]), Y = De(D[1]);
5927
- return Math.abs(Y - ae) < y.value.count ? 0 : 1;
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 Y = (te, I) => [
5932
+ const I = (te, Y) => [
5933
5933
  te(D[0]),
5934
- D[1] ? te(D[1]) : u[I][1]
5934
+ D[1] ? te(D[1]) : u[Y][1]
5935
5935
  ];
5936
- B("hours", Y(Nt, "hours")), B("minutes", Y(Wt, "minutes")), B("seconds", Y(va, "seconds"));
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 Y = D[D.length - 1];
5942
- return T(Y, ae);
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 Y = Oe(G(), { month: pe.value(ae), year: k.value(ae) }), te = D < 0 ? Dt(Y, 1) : pa(Y, 1);
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 Y = pa(Oe(G(), { month: pe.value(ae + 1), year: k.value(ae + 1) }), 1);
5953
- b(ae, De(Y), ge(Y));
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 Y = Dt(Oe(G(), { month: pe.value(ae - 1), year: k.value(ae - 1) }), 1);
5957
- b(ae, De(Y), ge(Y));
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, Y] = [De(m.value[0]), ge(m.value[0])], [te, I] = [De(m.value[1]), ge(m.value[1])];
5964
- (ae !== te || ae === te && Y !== I) && y.value.solo && b(1, De(D), ge(D));
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 Y = (/* @__PURE__ */ new Date()).getTime() - l.value.getTime(), te = Math.abs(D.deltaY);
5971
- let I = 500;
5972
- te > 1 && (I = 100), te > 100 && (I = 0), Y > I && (l.value = /* @__PURE__ */ new Date(), se(e.monthChangeOnScroll !== "inverse" ? -D.deltaY : D.deltaY, ae));
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, Y = !1) => {
5975
- e.monthChangeOnArrows && e.vertical === Y && V(D, ae);
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, Y, te) => {
5994
+ }, he = (D, ae, I, te) => {
5995
5995
  if (e.sixWeeks && D.length < 6) {
5996
- const I = 6 - D.length, we = (ae.getDay() + 7 - te) % 7, $e = 6 - (Y.getDay() + 7 - te) % 7, [Be, je] = R(we, $e);
5997
- for (let vt = 1; vt <= I; 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 Y = G(D), te = [];
6009
- for (let I = 0; I < 7; I++) {
6010
- const we = _t(Y, I), $e = De(we) !== ae;
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 Y = [], te = new Date(ae, D), I = new Date(ae, D + 1, 0), we = e.weekStart, $e = Pt(te, { weekStartsOn: we }), Be = (je) => {
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 (Y.push({ days: vt }), !Y[Y.length - 1].days.some(
6023
- (Ke) => Pe(it(Ke.value), it(I))
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(Y, te, I, we);
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 Y = [
6038
+ const I = [
6039
6039
  G(D.value),
6040
6040
  _t(G(D.value), +h.value.autoRange)
6041
6041
  ];
6042
- ne(Y) ? (ae && wt(D.value), r.value = Y) : t("invalid-date", D.value);
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)), Y = ge(G(D));
6045
- if (b(0, ae, Y), y.value.count > 0)
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 I = Ni(
6047
+ const Y = Ni(
6048
6048
  Oe(G(D), { year: k.value(te - 1), month: pe.value(te - 1) })
6049
6049
  );
6050
- b(te, I.month, I.year);
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 Y;
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 = (Y = e.flow) != null && Y.length ? e.flow[e.flowStep] : void 0;
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, Y = !1) => {
6121
- E(D, ae, Y, Ma);
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 Y = oe(M.value);
7587
- Y?.addEventListener("scroll", Z), window?.addEventListener("resize", R);
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 Y = oe(M.value);
7593
- Y?.removeEventListener("scroll", Z), window?.removeEventListener("resize", R);
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 Y, te;
7635
- return (te = (Y = p.value) == null ? void 0 : Y.$el) == null ? void 0 : te.getBoundingClientRect();
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 Y;
7639
+ var I;
7640
7640
  o.value && _();
7641
- const te = (Y = u.value) == null ? void 0 : Y.$el.getBoundingClientRect().width;
7641
+ const te = (I = u.value) == null ? void 0 : I.$el.getBoundingClientRect().width;
7642
7642
  S.value = document.body.offsetWidth <= te;
7643
- }, he = (Y) => {
7644
- Y.key === "Tab" && !B.value.enabled && !r.teleport && F.value.tabOutClosesMenu && (M.value.contains(document.activeElement) || rt()), f.value = Y.shiftKey;
7645
- }, P = (Y) => {
7646
- f.value = Y.shiftKey;
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 Y;
7651
- T.value = "", jt(), (Y = p.value) == null || Y.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), F.value.closeOnClearValue && rt();
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 Y = i.value;
7654
- return !Y || !Array.isArray(Y) && ne(Y) ? !0 : Array.isArray(Y) ? ce.value.enabled || Y.length === 2 && ne(Y[0]) && ne(Y[1]) ? !0 : le.value.partialRange && !r.timePicker ? ne(Y[0]) : !1 : !1;
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 = (Y) => {
7658
- wt(), Q(), F.value.closeOnAutoApply && !Y && rt();
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 = (Y = !1) => {
7662
- r.autoApply && N(i.value) && be() && (le.value.enabled && Array.isArray(i.value) ? (le.value.partialRange || i.value.length === 2) && ve(Y) : ve(Y));
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 = (Y, te, I = !1) => {
7668
- if (!Y) {
7667
+ }, Qt = (I, te, Y = !1) => {
7668
+ if (!I) {
7669
7669
  i.value = null;
7670
7670
  return;
7671
7671
  }
7672
- const we = Array.isArray(Y) ? !Y.some((Be) => !ne(Be)) : ne(Y), $e = N(Y);
7673
- we && $e ? (L.value = !0, i.value = Y, te && (h.value = I, nt(), a("text-submit")), ft().then(() => {
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", Y);
7675
+ })) : a("invalid-date", I);
7676
7676
  }, ba = () => {
7677
7677
  r.autoApply && N(i.value) && Q(), wt();
7678
- }, aa = () => o.value ? rt() : K(), wa = (Y) => {
7679
- i.value = Y;
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 Y = Yi(M.value, f.value);
7685
- Y?.focus();
7684
+ const I = Yi(M.value, f.value);
7685
+ I?.focus();
7686
7686
  }
7687
7687
  a("blur");
7688
- }, _a = (Y) => {
7688
+ }, _a = (I) => {
7689
7689
  u.value && u.value.updateMonthYear(0, {
7690
- month: or(Y.month),
7691
- year: or(Y.year)
7690
+ month: or(I.month),
7691
+ year: or(I.year)
7692
7692
  });
7693
- }, Ma = (Y) => {
7694
- w(Y ?? r.modelValue);
7695
- }, Da = (Y, te) => {
7696
- var I;
7697
- (I = u.value) == null || I.switchView(Y, te);
7698
- }, D = (Y) => F.value.onClickOutside ? F.value.onClickOutside(Y) : rt(), ae = (Y = 0) => {
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(Y);
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
- }), (Y, te) => (O(), X("div", {
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] = (I) => zn(T) ? T.value = I : null),
7728
+ "onUpdate:inputValue": te[0] || (te[0] = (Y) => zn(T) ? T.value = Y : null),
7729
7729
  "is-menu-open": o.value
7730
- }, Y.$props, {
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] = (I) => y.value = !1),
7741
- onTextInput: te[2] || (te[2] = (I) => Y.$emit("text-input", I))
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), (I, we) => ({
7744
- name: I,
7743
+ Ie(c(b), (Y, we) => ({
7744
+ name: Y,
7745
7745
  fn: ke(($e) => [
7746
- ue(Y.$slots, I, Xe(st($e)))
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(Y.teleport ? nl : "div"), Xe(st(C.value)), {
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
- }, Y.$props, {
7768
+ }, I.$props, {
7769
7769
  "internal-model-value": c(i),
7770
- "onUpdate:internalModelValue": te[3] || (te[3] = (I) => zn(i) ? i.value = I : null),
7771
- class: { [Ne.value]: !0, "dp--menu-wrapper": Y.teleport },
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] = (I) => Y.$emit("flow-step", I)),
7782
- onUpdateMonthYear: te[5] || (te[5] = (I) => Y.$emit("update-month-year", I)),
7783
- onInvalidSelect: te[6] || (te[6] = (I) => Y.$emit("invalid-select", c(i))),
7784
- onAutoApplyInvalid: te[7] || (te[7] = (I) => Y.$emit("invalid-select", I)),
7785
- onInvalidFixedRange: te[8] || (te[8] = (I) => Y.$emit("invalid-fixed-range", I)),
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] = (I) => Y.$emit("tooltip-open", I)),
7788
- onTooltipClose: te[10] || (te[10] = (I) => Y.$emit("tooltip-close", I)),
7789
- onTimePickerOpen: te[11] || (te[11] = (I) => Y.$emit("time-picker-open", I)),
7790
- onTimePickerClose: te[12] || (te[12] = (I) => Y.$emit("time-picker-close", I)),
7791
- onAmPmChange: te[13] || (te[13] = (I) => Y.$emit("am-pm-change", I)),
7792
- onRangeStart: te[14] || (te[14] = (I) => Y.$emit("range-start", I)),
7793
- onRangeEnd: te[15] || (te[15] = (I) => Y.$emit("range-end", I)),
7794
- onDateUpdate: te[16] || (te[16] = (I) => Y.$emit("date-update", I)),
7795
- onInvalidDate: te[17] || (te[17] = (I) => Y.$emit("invalid-date", I)),
7796
- onOverlayToggle: te[18] || (te[18] = (I) => Y.$emit("overlay-toggle", I))
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), (I, we) => ({
7799
- name: I,
7798
+ Ie(c(x), (Y, we) => ({
7799
+ name: Y,
7800
7800
  fn: ke(($e) => [
7801
- ue(Y.$slots, I, Xe(st({ ...$e })))
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(I) {
8728
- return I ? I.templateId !== void 0 : !1;
8727
+ function B(Y) {
8728
+ return Y ? Y.templateId !== void 0 : !1;
8729
8729
  }
8730
- const F = A(() => l.metaData.hotels.findIndex((I) => I.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((I) => I.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(() => {
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 I = s.value.find(
8735
+ const Y = s.value.find(
8736
8736
  (we) => we.time === S.value
8737
8737
  );
8738
- if (I && I.price)
8739
- return I.price;
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(I, we, $e) {
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}.${I}.${$e}`] || 0;
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 === I), mt = typeof Ke == "boolean" ? 1 : Ke;
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[I] || 0;
8758
+ const je = E.value[Y] || 0;
8759
8759
  if (je > 0) {
8760
- const vt = w.value?.products?.find((Ke) => Ke.id === I);
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(I, we) {
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]) === I && parseInt(je[2]) === we && ($e += R(parseInt(je[1]), I, we));
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((I) => I.roomGroupId).reduce(
8781
- (I, we, $e) => I + he(we, $e),
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 I = he();
8786
- return I += V.value, I;
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((I) => I.weekendFee).reduce((I, we) => I + we, 0) || 0), be = A(() => B(g.value) && g.value.rooms !== void 0 && g.value.rooms.flatMap((I) => I.roomUpgrade).reduce((I, we) => I + we, 0) || 0), nt = A(() => {
8789
- const I = E.value;
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 I)
8792
- we += Number.isNaN(I[$e]) ? 0 : I[$e];
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(I) {
8796
- return p.value === yt.ReservationState && h.value === I && u.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 I = (await la.get("https://production.hotel-service.konnectio.com/api/event/metadata", {
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 = I;
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(I) {
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: I
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(I) {
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, I()), u.value = !1;
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(I) {
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 ? I() : I(2);
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 I = (await la.post("https://production.hotel-service.konnectio.com/api/event/validate-discount-code", {
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(I);
8916
- } catch (I) {
8917
- console.log(I), n({
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(I) {
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) ? 0 : 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: I,
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(I) {
9004
- oe.value || ve.value ? I() : I(2);
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: Y,
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-bIDNSR5b.js.map
9087
+ //# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BnJFLLBB.js.map