@konnectio/core 4.0.56-rc45 → 4.0.56-rc46

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 (63) hide show
  1. package/dist/{ActionField-DgGRyzyW.js → ActionField-l77AHDt_.js} +10 -10
  2. package/dist/ActionField-l77AHDt_.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-D_svZV0K.js → AvailabilitySkeleton-6QuYlrqw.js} +61 -61
  4. package/dist/AvailabilitySkeleton-6QuYlrqw.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js +7814 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js.br +0 -0
  7. package/dist/{CheckoutWindow-B85nPXcN.js → CheckoutWindow-CNF_LAo6.js} +14 -14
  8. package/dist/CheckoutWindow-CNF_LAo6.js.br +0 -0
  9. package/dist/{ErrorMessage-hoBbvZJL.js → ErrorMessage-B0Hm-dJ0.js} +4 -4
  10. package/dist/ErrorMessage-B0Hm-dJ0.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CqiuFIoF.js → EventAvailabilityForm-BfhYKChb.js} +77 -78
  12. package/dist/EventAvailabilityForm-BfhYKChb.js.br +0 -0
  13. package/dist/{Field-Crk3SejD.js → Field-BJ8nOhMT.js} +8 -8
  14. package/dist/Field-BJ8nOhMT.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js} +3187 -3187
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js.br +0 -0
  17. package/dist/{TermsOfService-CIIPZAIU.js → TermsOfService-f7DfHbk2.js} +10 -10
  18. package/dist/TermsOfService-f7DfHbk2.js.br +0 -0
  19. package/dist/_-CaC826yR.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BLztxup-.js +68 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-BLztxup-.js.br +0 -0
  22. package/dist/_commonjsHelpers-ytV6SVHa.js +9541 -0
  23. package/dist/_commonjsHelpers-ytV6SVHa.js.br +0 -0
  24. package/dist/availability.js +56 -55
  25. package/dist/availability.js.br +0 -0
  26. package/dist/event.js +126 -124
  27. package/dist/event.js.br +0 -0
  28. package/dist/gift-card-validation.js +19 -18
  29. package/dist/gift-card-validation.js.br +0 -0
  30. package/dist/gift-card.js +138 -138
  31. package/dist/gift-card.js.br +0 -0
  32. package/dist/{giftCard-CeKChSm1.js → giftCard-DhbT2_l0.js} +6 -6
  33. package/dist/giftCard-DhbT2_l0.js.br +0 -0
  34. package/dist/hotel.js +385 -384
  35. package/dist/hotel.js.br +0 -0
  36. package/dist/{masonry.plugin-CKLroL2Q.js → masonry.plugin-CVpZ_aQu.js} +3386 -3355
  37. package/dist/masonry.plugin-CVpZ_aQu.js.br +0 -0
  38. package/dist/navigation.js +3 -3
  39. package/dist/polyfill.js +3995 -3992
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/sentry-D1A53_C5.js +18 -0
  42. package/dist/style.css +1 -1
  43. package/dist/style.css.br +0 -0
  44. package/dist/tracing-wxeFiHIa.js +2287 -0
  45. package/dist/tracing-wxeFiHIa.js.br +0 -0
  46. package/package.json +6 -6
  47. package/dist/ActionField-DgGRyzyW.js.br +0 -0
  48. package/dist/AvailabilitySkeleton-D_svZV0K.js.br +0 -0
  49. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvjkJdcx.js +0 -7746
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvjkJdcx.js.br +0 -0
  51. package/dist/CheckoutWindow-B85nPXcN.js.br +0 -0
  52. package/dist/ErrorMessage-hoBbvZJL.js.br +0 -0
  53. package/dist/EventAvailabilityForm-CqiuFIoF.js.br +0 -0
  54. package/dist/Field-Crk3SejD.js.br +0 -0
  55. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js.br +0 -0
  56. package/dist/TermsOfService-CIIPZAIU.js.br +0 -0
  57. package/dist/_-DuaWvsgR.js +0 -12
  58. package/dist/_.vue_vue_type_style_index_0_lang-MG6OWZHv.js +0 -71
  59. package/dist/_.vue_vue_type_style_index_0_lang-MG6OWZHv.js.br +0 -0
  60. package/dist/_commonjsHelpers-CbB_C6Ai.js +0 -11816
  61. package/dist/_commonjsHelpers-CbB_C6Ai.js.br +0 -0
  62. package/dist/giftCard-CeKChSm1.js.br +0 -0
  63. package/dist/masonry.plugin-CKLroL2Q.js.br +0 -0
@@ -1,9 +1,9 @@
1
- import { d as C, o as u, a as m, r as c, h as j, E as ve, G as me, q as Q, c as U, H as he, b as I, g as r, f as H, w as $, y as X, z as Z, I as q, T as x, n as v, v as V, e as S, J as ge, K as be, t as b, u as y, B as we, L as Se, M as ke, D as W, p as Ce, j as $e } from "./_commonjsHelpers-CbB_C6Ai.js";
2
- import { A as Be, _ as z, r as ee, T as oe, I as ne, h as Ve, s as Pe, b as Te, Q as Ie } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js";
1
+ import { d as C, o as u, a as m, r as c, h as j, E as ve, G as me, q as X, c as U, H as he, b as I, g as r, f as H, w as $, y as Z, z as Q, I as q, T as x, n as v, v as V, e as S, J as ge, K as be, t as b, u as y, B as we, L as Se, M as ke, D as W, p as Ce, j as $e } from "./_commonjsHelpers-ytV6SVHa.js";
2
+ import { z as Be, _ as z, r as ee, T as oe, I as ne, h as Ve, s as Pe, b as Te, P as Ie } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
3
3
  (function() {
4
4
  try {
5
5
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, o = new Error().stack;
6
- o && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[o] = "881cd919-6614-4ef5-aaea-f02b25c043d4", e._sentryDebugIdIdentifier = "sentry-dbid-881cd919-6614-4ef5-aaea-f02b25c043d4");
6
+ o && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[o] = "22258c0a-2d2f-4a41-a161-a0b6f4bc03bf", e._sentryDebugIdIdentifier = "sentry-dbid-22258c0a-2d2f-4a41-a161-a0b6f4bc03bf");
7
7
  } catch {
8
8
  }
9
9
  })();
@@ -226,9 +226,9 @@ var Y = C({
226
226
  }), me(() => {
227
227
  const { modelValue: p, lockScroll: g } = e;
228
228
  g && a.value && p && G(a.value, !1), n && document.body.removeChild(n), window.removeEventListener("resize", B);
229
- }), Q(() => [s.value, l.value, e.height, e.width, e.side, e.modelValue], () => {
229
+ }), X(() => [s.value, l.value, e.height, e.width, e.side, e.modelValue], () => {
230
230
  be(() => B());
231
- }), Q(() => [e.modelValue, a.value], (p, g) => {
231
+ }), X(() => [e.modelValue, a.value], (p, g) => {
232
232
  const fe = g ? g[0] : !1, [R, N] = p, pe = R, ye = fe && !R;
233
233
  if (N) {
234
234
  if (pe && (J.value = !!document.body.style.overflow), R) {
@@ -295,7 +295,7 @@ function Re(e, o, t, n, a, i) {
295
295
  persisted: ""
296
296
  }, {
297
297
  default: $(() => [
298
- X(r(
298
+ Z(r(
299
299
  "div",
300
300
  {
301
301
  ref: "overlay",
@@ -307,7 +307,7 @@ function Re(e, o, t, n, a, i) {
307
307
  4
308
308
  /* STYLE */
309
309
  ), [
310
- [Z, e.modelValue]
310
+ [Q, e.modelValue]
311
311
  ])
312
312
  ]),
313
313
  _: 1
@@ -319,7 +319,7 @@ function Re(e, o, t, n, a, i) {
319
319
  onAfterLeave: o[2] || (o[2] = (s) => e.$emit("closed"))
320
320
  }, {
321
321
  default: $(() => [
322
- !e.rerender || e.modelValue ? X((u(), m(
322
+ !e.rerender || e.modelValue ? Z((u(), m(
323
323
  "div",
324
324
  {
325
325
  key: 0,
@@ -375,7 +375,7 @@ function Re(e, o, t, n, a, i) {
375
375
  6
376
376
  /* CLASS, STYLE */
377
377
  )), [
378
- [Z, e.rerender ? !0 : e.modelValue]
378
+ [Q, e.rerender ? !0 : e.modelValue]
379
379
  ]) : S("v-if", !0)
380
380
  ]),
381
381
  _: 3
@@ -523,7 +523,7 @@ const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-pan
523
523
  _: 1
524
524
  }, 8, ["label", "id", "required", "readonly"]));
525
525
  }
526
- }), fo = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-5cd094ab"]]), Qe = ["required", "type", "name", "readonly", "disabled", "value", "checked"], Xe = ["data-test"], Ze = { key: 0 }, xe = {
526
+ }), fo = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-5cd094ab"]]), Xe = ["required", "type", "name", "readonly", "disabled", "value", "checked"], Ze = ["data-test"], Qe = { key: 0 }, xe = {
527
527
  key: 1,
528
528
  class: /* @__PURE__ */ v(["konnectio-click-box-label", "inline"])
529
529
  }, eo = /* @__PURE__ */ C({
@@ -574,7 +574,7 @@ const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-pan
574
574
  value: l.type === "radio" ? l.val : l.modelValue,
575
575
  checked: l.type === "radio" ? l.val === l.modelValue : !!l.modelValue,
576
576
  onChange: s[0] || (s[0] = (d) => i())
577
- }), null, 16, Qe),
577
+ }), null, 16, Xe),
578
578
  r("div", {
579
579
  class: v([
580
580
  "konnectio-click-box",
@@ -584,13 +584,13 @@ const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-pan
584
584
  style: q(l.inputStyle),
585
585
  "data-test": l.name,
586
586
  onKeyup: s[1] || (s[1] = ke((d) => i(), ["enter"]))
587
- }, null, 46, Xe),
587
+ }, null, 46, Ze),
588
588
  l.label ? (u(), m("div", {
589
589
  key: 0,
590
590
  class: v(["konnectio-click-box-label", "text-hover", { "with-price": l.price }])
591
591
  }, [
592
592
  r("span", null, b(l.label), 1),
593
- l.price ? (u(), m("span", Ze, b(l.price), 1)) : S("", !0)
593
+ l.price ? (u(), m("span", Qe, b(l.price), 1)) : S("", !0)
594
594
  ], 2)) : y(a).default ? (u(), m("div", xe, [
595
595
  V(l.$slots, "default", {}, void 0, !0)
596
596
  ])) : S("", !0)
@@ -665,4 +665,4 @@ export {
665
665
  lo as _,
666
666
  po as a
667
667
  };
668
- //# sourceMappingURL=CheckoutWindow-B85nPXcN.js.map
668
+ //# sourceMappingURL=CheckoutWindow-CNF_LAo6.js.map
@@ -1,9 +1,9 @@
1
- import { d as g, o as B, a as J, g as E, t as i, p as S, j as R } from "./_commonjsHelpers-CbB_C6Ai.js";
2
- import { _ as k } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js";
1
+ import { d as g, o as B, a as J, g as E, t as i, p as S, j as R } from "./_commonjsHelpers-ytV6SVHa.js";
2
+ import { _ as k } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
3
3
  (function() {
4
4
  try {
5
5
  var A = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, C = new Error().stack;
6
- C && (A._sentryDebugIds = A._sentryDebugIds || {}, A._sentryDebugIds[C] = "c7cc16bb-4e67-4652-8ae3-76614729d263", A._sentryDebugIdIdentifier = "sentry-dbid-c7cc16bb-4e67-4652-8ae3-76614729d263");
6
+ C && (A._sentryDebugIds = A._sentryDebugIds || {}, A._sentryDebugIds[C] = "56752e7b-973c-4e4e-8825-035e9160b3e6", A._sentryDebugIdIdentifier = "sentry-dbid-56752e7b-973c-4e4e-8825-035e9160b3e6");
7
7
  } catch {
8
8
  }
9
9
  })();
@@ -42,4 +42,4 @@ const o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACCQAAAgkCAYAAABoLDe6AAA
42
42
  export {
43
43
  l as E
44
44
  };
45
- //# sourceMappingURL=ErrorMessage-hoBbvZJL.js.map
45
+ //# sourceMappingURL=ErrorMessage-B0Hm-dJ0.js.map
Binary file
@@ -1,20 +1,20 @@
1
- import { r as i, c as a, d as Ke, h as He, o as W, a as fe, f as X, w as Qe, u as z, b as Je, e as me, l as We, n as Xe, i as Ye } from "./_commonjsHelpers-CbB_C6Ai.js";
2
- import { d as Ze, u as et, s as ee, v as tt, a as at, b as ge, m as te, w as p, c as Y, O as ye, S as Z, x as nt, e as $, g as C, i as N, y as ot, h as lt, k as st, C as it, _ as rt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js";
1
+ import { r as i, c as a, d as Ke, h as He, o as W, a as fe, f as X, w as Qe, u as z, b as Je, e as me, l as We, n as Xe, i as Ye } from "./_commonjsHelpers-ytV6SVHa.js";
2
+ import { d as Ze, u as et, s as ee, t as tt, a as at, b as ge, m as te, v as p, c as Y, O as ye, S as Z, w as nt, e as $, g as C, i as N, x as ot, h as lt, k as st, C as it, _ as rt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
3
3
  import "./navigation.js";
4
- import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvjkJdcx.js";
4
+ import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js";
5
5
  (function() {
6
6
  try {
7
- var D = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
8
- l && (D._sentryDebugIds = D._sentryDebugIds || {}, D._sentryDebugIds[l] = "9f85cf9f-f332-4020-8403-7aabd7752930", D._sentryDebugIdIdentifier = "sentry-dbid-9f85cf9f-f332-4020-8403-7aabd7752930");
7
+ var w = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
8
+ l && (w._sentryDebugIds = w._sentryDebugIds || {}, w._sentryDebugIds[l] = "49af46c3-9ec5-423f-96fb-49917160686e", w._sentryDebugIdIdentifier = "sentry-dbid-49af46c3-9ec5-423f-96fb-49917160686e");
9
9
  } catch {
10
10
  }
11
11
  })();
12
12
  const ct = Ze("event", () => {
13
- const D = et(), { voucher: l } = ee(tt()), { display: f } = at(), { bearerToken: w, metaData: F } = ee(ge()), j = ge(), b = te(), m = i({}), B = a(() => Object.keys(m.value).length > 0), t = i(void 0), o = i(!0), r = i(p.InitialState), A = i(NaN), T = i(1), k = i(NaN), V = i(NaN), I = i(""), E = Y("konnectio_name", "", void 0, { serializer: Z.string }), G = Y("konnectio_phone", "", void 0, { serializer: Z.string }), x = Y("konnectio_email", "", void 0, { serializer: Z.string }), u = i(""), g = i({}), d = i({}), U = i("");
13
+ const w = et(), { voucher: l } = ee(tt()), { display: f } = at(), { bearerToken: D, metaData: F } = ee(ge()), j = ge(), m = te(), g = i({}), B = a(() => Object.keys(g.value).length > 0), t = i(void 0), o = i(!0), r = i(p.InitialState), A = i(NaN), T = i(1), k = i(NaN), V = i(NaN), I = i(""), E = Y("konnectio_name", "", void 0, { serializer: Z.string }), G = Y("konnectio_phone", "", void 0, { serializer: Z.string }), x = Y("konnectio_email", "", void 0, { serializer: Z.string }), u = i(""), y = i({}), d = i({}), U = i("");
14
14
  function s(e) {
15
15
  return e ? e.templateId !== void 0 : !1;
16
16
  }
17
- const he = a(() => j.metaData.hotels.findIndex((e) => e.id === b.eventLocation) || 0), O = a(() => j.metaData.hotels[he.value]), be = a(() => O.value.maxNumberPerBooking ? O.value.maxNumberPerBooking : 1 / 0), ke = a(() => O.value.name ? O.value.name : ""), Ie = a(() => O.value.subtitle ? O.value.subtitle : ""), M = a(() => b.searchDate.toISOString()), De = a(() => s(t.value)), q = a(() => s(t.value) ? t.value.numberOfDays : T.value), we = a(() => s(t.value) ? t.value.packageCount : 0), Ae = a(() => s(t.value) ? t.value.fromDate : ""), L = a(() => m.value.events !== void 0 ? m.value.events.find((e) => e.id === k.value) : void 0), Se = a(() => L.value ? L.value.length : void 0), ae = a(() => s(t.value) ? t.value.templateId : 0), Pe = a(() => m.value.events), Ee = a(() => m.value.templates), Le = a(() => m.value.events.length > 0), _e = a(() => m.value.templates.length > 0), ne = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : ye.None), K = a(() => {
17
+ const he = a(() => j.metaData.hotels.findIndex((e) => e.id === m.eventLocation) || 0), M = a(() => j.metaData.hotels[he.value]), be = a(() => M.value.maxNumberPerBooking ? M.value.maxNumberPerBooking : 1 / 0), ke = a(() => M.value.name ? M.value.name : ""), Ie = a(() => M.value.subtitle ? M.value.subtitle : ""), O = a(() => m.searchDate.toISOString()), we = a(() => s(t.value)), q = a(() => s(t.value) ? t.value.numberOfDays : T.value), De = a(() => s(t.value) ? t.value.packageCount : 0), Ae = a(() => s(t.value) ? t.value.fromDate : ""), L = a(() => g.value.events !== void 0 ? g.value.events.find((e) => e.id === k.value) : void 0), Se = a(() => L.value ? L.value.length : void 0), ae = a(() => s(t.value) ? t.value.templateId : 0), Pe = a(() => g.value.events), Ee = a(() => g.value.templates), Le = a(() => g.value.events.length > 0), _e = a(() => g.value.templates.length > 0), ne = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : ye.None), K = a(() => {
18
18
  if (!s(t.value))
19
19
  return t.value;
20
20
  }), oe = a(() => {
@@ -31,35 +31,35 @@ const ct = Ze("event", () => {
31
31
  return t.value.rooms;
32
32
  });
33
33
  function H(e, n, c) {
34
- let y = 0;
34
+ let h = 0;
35
35
  if (s(t.value)) {
36
36
  const v = t.value.rooms[c];
37
37
  if (v) {
38
- const _ = v.addons, S = g.value[`${n}.${e}.${c}`] || 0;
38
+ const _ = v.addons, S = y.value[`${n}.${e}.${c}`] || 0;
39
39
  if (S > 0) {
40
- const P = _?.find((R) => R.id === e), h = typeof S == "boolean" ? 1 : S;
41
- y += nt(P?.price, P?.quantityStrategy, q.value, v.adultPerRoom) * h;
40
+ const P = _?.find((R) => R.id === e), b = typeof S == "boolean" ? 1 : S;
41
+ h += nt(P?.price, P?.quantityStrategy, q.value, v.adultPerRoom) * b;
42
42
  }
43
43
  }
44
44
  } else {
45
45
  const v = d.value[e] || 0;
46
46
  if (v > 0) {
47
47
  const _ = L.value?.products?.find((S) => S.productID === e);
48
- _ && (y += _.price * v);
48
+ _ && (h += _.price * v);
49
49
  }
50
50
  }
51
- return y;
51
+ return h;
52
52
  }
53
53
  function Q(e, n) {
54
54
  let c = 0;
55
55
  if (s(t.value))
56
- for (const y in g.value) {
57
- const v = y.split(".");
56
+ for (const h in y.value) {
57
+ const v = h.split(".");
58
58
  parseInt(v[0]) === e && parseInt(v[2]) === n && (c += H(parseInt(v[1]), e, n));
59
59
  }
60
60
  else
61
- for (const y in d.value)
62
- c += H(parseInt(y)) * T.value;
61
+ for (const h in d.value)
62
+ c += H(parseInt(h)) * T.value;
63
63
  return c;
64
64
  }
65
65
  const se = a(() => s(t.value) && t.value.totalPrice || 0), Ne = a(() => {
@@ -72,13 +72,13 @@ const ct = Ze("event", () => {
72
72
  let e = Q();
73
73
  return e += oe.value, e;
74
74
  }
75
- }), Ce = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Te = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Oe = a(() => {
75
+ }), Ce = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Te = a(() => s(t.value) && t.value.rooms !== void 0 && t.value.rooms.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Me = a(() => {
76
76
  const e = d.value;
77
77
  let n = 0;
78
78
  for (const c in e)
79
79
  n += Number.isNaN(e[c]) ? 0 : e[c];
80
80
  return n > 0;
81
- }), ie = a(() => s(t.value) ? !1 : Object.keys(d.value).length > 0), Me = a(() => !!(E.value !== "" && x.value !== "" && G.value.length >= 5 && (!ie.value || Oe.value) && (!(!s(t.value) && ne.value !== ye.FullDayEvent) || I.value !== "")));
81
+ }), ie = a(() => s(t.value) ? !1 : Object.keys(d.value).length > 0), Oe = a(() => !!(E.value !== "" && x.value !== "" && G.value.length >= 5 && (!ie.value || Me.value) && (!(!s(t.value) && ne.value !== ye.FullDayEvent) || I.value !== "")));
82
82
  function Re(e) {
83
83
  return r.value === p.ReservationState && k.value === e && o.value;
84
84
  }
@@ -90,7 +90,7 @@ const ct = Ze("event", () => {
90
90
  language: C()
91
91
  },
92
92
  headers: {
93
- Authorization: w.value,
93
+ Authorization: D.value,
94
94
  Accept: "application/json"
95
95
  }
96
96
  })).data;
@@ -108,15 +108,15 @@ const ct = Ze("event", () => {
108
108
  const e = (await $.get("https://production.hotel-service.konnectio.dk/api/event/get", {
109
109
  params: {
110
110
  language: C(),
111
- restaurantId: b.eventLocation,
112
- date: M.value
111
+ restaurantId: m.eventLocation,
112
+ date: O.value
113
113
  },
114
114
  headers: {
115
- Authorization: w.value,
115
+ Authorization: D.value,
116
116
  Accept: "application/json"
117
117
  }
118
118
  })).data;
119
- m.value = e, o.value = !1;
119
+ g.value = e, o.value = !1;
120
120
  } catch {
121
121
  f({
122
122
  message: N.t("alert.error.couldntFetchListings"),
@@ -130,13 +130,13 @@ const ct = Ze("event", () => {
130
130
  const n = (await $.get("https://production.hotel-service.konnectio.dk/api/event/get-template", {
131
131
  params: {
132
132
  language: C(),
133
- date: M.value,
133
+ date: O.value,
134
134
  templateId: k.value,
135
- restaurantId: b.eventLocation,
135
+ restaurantId: m.eventLocation,
136
136
  numberOfPeople: A.value
137
137
  },
138
138
  headers: {
139
- Authorization: w.value,
139
+ Authorization: D.value,
140
140
  Accept: "application/json"
141
141
  }
142
142
  })).data;
@@ -157,14 +157,14 @@ const ct = Ze("event", () => {
157
157
  const n = (await $.get("https://production.hotel-service.konnectio.dk/api/event/vacant-times", {
158
158
  params: {
159
159
  language: C(),
160
- date: M.value,
160
+ date: O.value,
161
161
  numberOfPeople: A.value,
162
162
  eventId: k.value,
163
163
  tableGroupId: V.value,
164
- restaurantId: b.eventLocation
164
+ restaurantId: m.eventLocation
165
165
  },
166
166
  headers: {
167
- Authorization: w.value,
167
+ Authorization: D.value,
168
168
  Accept: "application/json"
169
169
  }
170
170
  })).data;
@@ -180,12 +180,12 @@ const ct = Ze("event", () => {
180
180
  try {
181
181
  const e = (await $.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
182
182
  language: C(),
183
- date: M.value,
183
+ date: O.value,
184
184
  discountCode: U.value,
185
- restaurantId: b.eventLocation
185
+ restaurantId: m.eventLocation
186
186
  }, {
187
187
  headers: {
188
- Authorization: w.value,
188
+ Authorization: D.value,
189
189
  Accept: "application/json"
190
190
  }
191
191
  })).data;
@@ -205,24 +205,24 @@ const ct = Ze("event", () => {
205
205
  type: "warning"
206
206
  });
207
207
  };
208
- let c, y, v;
208
+ let c, h, v;
209
209
  const _ = [];
210
210
  if (s(t.value))
211
- le.value?.forEach((h, R) => {
211
+ le.value?.forEach((b, R) => {
212
212
  const ce = [];
213
213
  let ve = 0;
214
- for (const de in g.value) {
215
- const J = de.split("."), pe = g.value[de];
216
- parseInt(J[0]) === h.roomGroupId && parseInt(J[2]) === R && pe > 0 && (ce.push({
214
+ for (const de in y.value) {
215
+ const J = de.split("."), pe = y.value[de];
216
+ parseInt(J[0]) === b.roomGroupId && parseInt(J[2]) === R && pe > 0 && (ce.push({
217
217
  id: ve,
218
218
  addonID: parseInt(J[1]),
219
219
  quantity: pe
220
220
  }), ve++);
221
221
  }
222
222
  _.push({
223
- adultPerRoom: h.adultPerRoom,
224
- count: h.count,
225
- roomGroupID: h.roomGroupId,
223
+ adultPerRoom: b.adultPerRoom,
224
+ count: b.count,
225
+ roomGroupID: b.roomGroupId,
226
226
  addons: ce
227
227
  });
228
228
  }), c = {
@@ -231,11 +231,11 @@ const ct = Ze("event", () => {
231
231
  templateCounts: _
232
232
  };
233
233
  else {
234
- y = [], v = I.value;
235
- for (const h in d.value) {
236
- const R = d.value[parseInt(h)];
237
- R > 0 && y.push({
238
- id: parseInt(h),
234
+ h = [], v = I.value;
235
+ for (const b in d.value) {
236
+ const R = d.value[parseInt(b)];
237
+ R > 0 && h.push({
238
+ id: parseInt(b),
239
239
  quantity: R
240
240
  });
241
241
  }
@@ -243,8 +243,8 @@ const ct = Ze("event", () => {
243
243
  let S = "https://production.hotel-service.konnectio.dk/api/event/book-template";
244
244
  const P = {
245
245
  language: C(),
246
- restaurantId: b.eventLocation,
247
- date: ot(M.value),
246
+ restaurantId: m.eventLocation,
247
+ date: ot(O.value),
248
248
  name: E.value,
249
249
  email: x.value,
250
250
  phone: G.value,
@@ -256,28 +256,27 @@ const ct = Ze("event", () => {
256
256
  checkoutUrl: window.location.origin,
257
257
  privacyUrl: window.location.origin
258
258
  };
259
- s(t.value) ? P.templateGroup = c : (P.time = v, P.eventId = k.value, P.products = y, S = "https://production.hotel-service.konnectio.dk/api/event/book-event"), await $.post(S, P, {
259
+ s(t.value) ? P.templateGroup = c : (P.time = v, P.eventId = k.value, P.products = h, S = "https://production.hotel-service.konnectio.dk/api/event/book-event"), await $.post(S, P, {
260
260
  headers: {
261
- Authorization: w.value,
261
+ Authorization: D.value,
262
262
  Accept: "application/json"
263
263
  }
264
- }).then((h) => {
265
- o.value = !1, D.pay({
264
+ }).then((b) => {
265
+ o.value = !1, w.pay({
266
266
  callback: e,
267
- response: h.data
267
+ response: b.data
268
268
  });
269
269
  }).catch(() => n());
270
270
  }
271
271
  function Ue(e) {
272
- g.value = {}, d.value = {}, I.value = "", e();
272
+ y.value = {}, d.value = {}, I.value = "", e();
273
273
  }
274
- function qe() {
275
- re();
274
+ async function qe() {
275
+ await Promise.all([re(), m.fetchMetadata()]);
276
276
  }
277
277
  return {
278
- fetchMetadata: re,
279
278
  metaData: F,
280
- listingData: m,
279
+ listingData: g,
281
280
  tableBasePrice: oe,
282
281
  availabilityData: t,
283
282
  isLoading: o,
@@ -287,20 +286,20 @@ const ct = Ze("event", () => {
287
286
  eventId: k,
288
287
  tableGroupId: V,
289
288
  arrivalTime: I,
290
- addons: g,
289
+ addons: y,
291
290
  products: d,
292
291
  discountCode: U,
293
292
  name: E,
294
293
  phone: G,
295
294
  email: x,
296
295
  remark: u,
297
- isTemplateEvent: De,
296
+ isTemplateEvent: we,
298
297
  maxNumberOfPeople: be,
299
298
  title: ke,
300
299
  subtitle: Ie,
301
- date: M,
300
+ date: O,
302
301
  numberOfTotalDays: q,
303
- numberOfRooms: we,
302
+ numberOfRooms: De,
304
303
  fromDate: Ae,
305
304
  getEventData: L,
306
305
  length: Se,
@@ -317,13 +316,13 @@ const ct = Ze("event", () => {
317
316
  weekendFee: Ce,
318
317
  hasProducts: ie,
319
318
  eventRateType: ne,
320
- isReservationFormFilled: Me,
319
+ isReservationFormFilled: Oe,
321
320
  isMetadataAvailable: ze,
322
321
  areListingsAvailable: $e,
323
322
  isAvailabilityDataAvailable: Fe,
324
323
  isPaymentLoading: Ve,
325
324
  isEventListingLoading: Re,
326
- // fetchMetadata,
325
+ fetchMetadata: re,
327
326
  fetchListings: ue,
328
327
  getTemplateAvailability: Ge,
329
328
  getEventAvailability: xe,
@@ -344,23 +343,23 @@ const ct = Ze("event", () => {
344
343
  link: {},
345
344
  redirection: { type: Boolean, default: !0 }
346
345
  },
347
- setup(D) {
348
- const l = D, {
346
+ setup(w) {
347
+ const l = w, {
349
348
  eventLocation: f,
350
- eventLocations: w,
349
+ eventLocations: D,
351
350
  hasEventLocations: F,
352
351
  eventLocationControl: j,
353
- searchDate: b,
354
- isExpired: m
352
+ searchDate: m,
353
+ isExpired: g
355
354
  } = ee(te()), { reset: B, fetchMetadata: t, updateEventAvailability: o } = te(), { fetchListings: r } = ct(), { t: A } = lt(), T = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), k = i(j.value), V = i(T()), I = a({
356
355
  get: () => l.redirection ? k.value : f.value,
357
356
  set: (u) => {
358
357
  l.redirection ? k.value = Number(u) : f.value = Number(u);
359
358
  }
360
359
  }), E = a({
361
- get: () => l.redirection ? V.value : b.value,
360
+ get: () => l.redirection ? V.value : m.value,
362
361
  set: (u) => {
363
- l.redirection ? V.value = u : b.value = u;
362
+ l.redirection ? V.value = u : m.value = u;
364
363
  }
365
364
  }), G = a(() => typeof l.link != "string");
366
365
  function x() {
@@ -377,8 +376,8 @@ const ct = Ze("event", () => {
377
376
  r();
378
377
  }
379
378
  return He(() => {
380
- m.value && B(), l.redirection === !1 && t();
381
- }), (u, g) => (W(), fe("form", {
379
+ g.value && B(), l.redirection;
380
+ }), (u, y) => (W(), fe("form", {
382
381
  class: Xe([
383
382
  "konnectio-event-search-form",
384
383
  { "has-locations": z(F) },
@@ -393,7 +392,7 @@ const ct = Ze("event", () => {
393
392
  default: Qe(() => [
394
393
  z(F) ? (W(), Je(st, {
395
394
  modelValue: I.value,
396
- "onUpdate:modelValue": g[0] || (g[0] = (d) => I.value = d),
395
+ "onUpdate:modelValue": y[0] || (y[0] = (d) => I.value = d),
397
396
  key: "location",
398
397
  label: z(A)("general.location"),
399
398
  icon: "location-dot",
@@ -401,12 +400,12 @@ const ct = Ze("event", () => {
401
400
  "icon-placement": "label",
402
401
  "label-key": "name",
403
402
  "value-key": "id",
404
- options: z(w),
403
+ options: z(D),
405
404
  searchable: !1
406
405
  }, null, 8, ["modelValue", "label", "options"])) : me("", !0),
407
406
  X(ut, {
408
407
  modelValue: E.value,
409
- "onUpdate:modelValue": g[1] || (g[1] = (d) => E.value = d),
408
+ "onUpdate:modelValue": y[1] || (y[1] = (d) => E.value = d),
410
409
  key: "date",
411
410
  label: z(A)("event.selectDate"),
412
411
  "icon-type": "fas",
@@ -424,9 +423,9 @@ const ct = Ze("event", () => {
424
423
  })
425
424
  ], 34));
426
425
  }
427
- }), yt = /* @__PURE__ */ rt(dt, [["__scopeId", "data-v-e8a46943"]]);
426
+ }), yt = /* @__PURE__ */ rt(dt, [["__scopeId", "data-v-8b1ddb1a"]]);
428
427
  export {
429
428
  yt as E,
430
429
  ct as u
431
430
  };
432
- //# sourceMappingURL=EventAvailabilityForm-CqiuFIoF.js.map
431
+ //# sourceMappingURL=EventAvailabilityForm-BfhYKChb.js.map
@@ -1,16 +1,16 @@
1
- import { d as l, o as a, a as o, b as i, e as r, f as n, n as f } from "./_commonjsHelpers-CbB_C6Ai.js";
2
- import { E as s, _ as p } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js";
1
+ import { d as l, o as a, a as o, b as i, e as r, f as n, n as f } from "./_commonjsHelpers-ytV6SVHa.js";
2
+ import { E as s, _ as c } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
3
3
  (function() {
4
4
  try {
5
5
  var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
6
- e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "75f031cb-3726-4512-b2ef-d1adee797621", t._sentryDebugIdIdentifier = "sentry-dbid-75f031cb-3726-4512-b2ef-d1adee797621");
6
+ e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "b473d9c2-5c97-4cdf-93e4-f4e02195146c", t._sentryDebugIdIdentifier = "sentry-dbid-b473d9c2-5c97-4cdf-93e4-f4e02195146c");
7
7
  } catch {
8
8
  }
9
9
  })();
10
- const c = {
10
+ const p = {
11
11
  key: 0,
12
12
  class: "skeleton-field-label"
13
- }, b = { key: 1 }, h = /* @__PURE__ */ l({
13
+ }, h = { key: 1 }, u = /* @__PURE__ */ l({
14
14
  __name: "Field",
15
15
  props: {
16
16
  withIcon: { type: Boolean, default: !1 },
@@ -25,7 +25,7 @@ const c = {
25
25
  { "no-label": e.noLabel }
26
26
  ])
27
27
  }, [
28
- e.noLabel ? (a(), o("div", b)) : (a(), o("div", c, [
28
+ e.noLabel ? (a(), o("div", h)) : (a(), o("div", p, [
29
29
  e.withIcon ? (a(), i(s, {
30
30
  key: 0,
31
31
  height: "15px",
@@ -43,8 +43,8 @@ const c = {
43
43
  }, null, 8, ["height"])
44
44
  ], 2));
45
45
  }
46
- }), y = /* @__PURE__ */ p(h, [["__scopeId", "data-v-992f78a1"]]);
46
+ }), y = /* @__PURE__ */ c(u, [["__scopeId", "data-v-992f78a1"]]);
47
47
  export {
48
48
  y as F
49
49
  };
50
- //# sourceMappingURL=Field-Crk3SejD.js.map
50
+ //# sourceMappingURL=Field-BJ8nOhMT.js.map
Binary file