@konnectio/core 4.0.56-rc39 → 4.0.56-rc40

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 (54) hide show
  1. package/dist/{ActionField-Cj7yAIiF.js → ActionField-CD5wWyTP.js} +10 -10
  2. package/dist/ActionField-CD5wWyTP.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-B1NfPwnx.js → AvailabilitySkeleton-D9lVJ7Y4.js} +71 -69
  4. package/dist/AvailabilitySkeleton-D9lVJ7Y4.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-4TxEs6Ur.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js} +2692 -2638
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js.br +0 -0
  7. package/dist/{CheckoutWindow-Dj_a3rqK.js → CheckoutWindow-POqLB9M4.js} +33 -33
  8. package/dist/CheckoutWindow-POqLB9M4.js.br +0 -0
  9. package/dist/{ErrorMessage-B_o47rUW.js → ErrorMessage-DACtGUvq.js} +4 -4
  10. package/dist/ErrorMessage-DACtGUvq.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-vxL1OmZL.js → EventAvailabilityForm-Dx4hfkc1.js} +36 -36
  12. package/dist/EventAvailabilityForm-Dx4hfkc1.js.br +0 -0
  13. package/dist/{Field-DC9mZy8_.js → Field-Nqc4wuqz.js} +8 -8
  14. package/dist/Field-Nqc4wuqz.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js} +3483 -3533
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js.br +0 -0
  17. package/dist/{TermsOfService-COGxWG3S.js → TermsOfService-D3ujvGpJ.js} +9 -9
  18. package/dist/TermsOfService-D3ujvGpJ.js.br +0 -0
  19. package/dist/_-BeIBHN5G.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-CfxcWxuU.js +72 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-CfxcWxuU.js.br +0 -0
  22. package/dist/{_commonjsHelpers-UWZO_9XV.js → _commonjsHelpers-BpcYSDvQ.js} +149 -148
  23. package/dist/_commonjsHelpers-BpcYSDvQ.js.br +0 -0
  24. package/dist/availability.js +57 -56
  25. package/dist/availability.js.br +0 -0
  26. package/dist/event.js +95 -95
  27. package/dist/event.js.br +0 -0
  28. package/dist/gift-card-validation.js +43 -41
  29. package/dist/gift-card-validation.js.br +0 -0
  30. package/dist/gift-card.js +241 -331
  31. package/dist/gift-card.js.br +0 -0
  32. package/dist/giftCard-BEp1vsXy.js +128 -0
  33. package/dist/giftCard-BEp1vsXy.js.br +0 -0
  34. package/dist/hotel.js +942 -938
  35. package/dist/hotel.js.br +0 -0
  36. package/dist/{masonry.plugin-a1QQfgj3.js → masonry.plugin-CnRH1tRE.js} +6 -6
  37. package/dist/masonry.plugin-CnRH1tRE.js.br +0 -0
  38. package/dist/navigation.js +3 -3
  39. package/dist/polyfill.js +10 -5
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/style.css +1 -1
  42. package/dist/style.css.br +0 -0
  43. package/package.json +9 -9
  44. package/dist/ActionField-Cj7yAIiF.js.br +0 -0
  45. package/dist/AvailabilitySkeleton-B1NfPwnx.js.br +0 -0
  46. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-4TxEs6Ur.js.br +0 -0
  47. package/dist/CheckoutWindow-Dj_a3rqK.js.br +0 -0
  48. package/dist/ErrorMessage-B_o47rUW.js.br +0 -0
  49. package/dist/EventAvailabilityForm-vxL1OmZL.js.br +0 -0
  50. package/dist/Field-DC9mZy8_.js.br +0 -0
  51. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.js.br +0 -0
  52. package/dist/TermsOfService-COGxWG3S.js.br +0 -0
  53. package/dist/_commonjsHelpers-UWZO_9XV.js.br +0 -0
  54. package/dist/masonry.plugin-a1QQfgj3.js.br +0 -0
@@ -1,9 +1,9 @@
1
- import { d as C, o as u, c as m, r as c, h as j, D as ve, E as me, q as X, g as U, G as he, a as I, f as r, e as H, w as $, v as Z, x as Q, H as q, T as x, n as v, z as V, b as S, I as ge, J as be, t as b, u as y, A as we, K as Se, L as ke, C as W, p as Ce, j as $e } from "./_commonjsHelpers-UWZO_9XV.js";
2
- import { A as Be, _ as z, r as ee, T as oe, I as ne, u as Ve, s as Pe, o as Te, R as Ie } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.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 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-BpcYSDvQ.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-Bi1FLGK9.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] = "57b85c4a-f570-469b-b3c3-f3703738c718", e._sentryDebugIdIdentifier = "sentry-dbid-57b85c4a-f570-469b-b3c3-f3703738c718");
6
+ o && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[o] = "881cd919-6614-4ef5-aaea-f02b25c043d4", e._sentryDebugIdIdentifier = "sentry-dbid-881cd919-6614-4ef5-aaea-f02b25c043d4");
7
7
  } catch {
8
8
  }
9
9
  })();
@@ -87,7 +87,7 @@ var D = typeof window < "u" && window.navigator && window.navigator.platform &&
87
87
  a.targetTouches.length === 1 && Oe(a, o);
88
88
  }, E || (document.addEventListener("touchmove", O, _ ? { passive: !1 } : void 0), E = !0));
89
89
  }
90
- }, Le = function(o) {
90
+ }, Me = function(o) {
91
91
  if (!o) {
92
92
  console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");
93
93
  return;
@@ -99,22 +99,22 @@ var D = typeof window < "u" && window.navigator && window.navigator.platform &&
99
99
  name: "SidePanelCloseButton",
100
100
  emits: ["close"]
101
101
  });
102
- const Me = /* @__PURE__ */ r(
102
+ const Le = /* @__PURE__ */ r(
103
103
  "span",
104
104
  { class: "vsp-close__x" },
105
105
  null,
106
106
  -1
107
107
  /* HOISTED */
108
108
  ), Fe = [
109
- Me
109
+ Le
110
110
  ];
111
- function Re(e, o, t, n, a, i) {
111
+ function Ge(e, o, t, n, a, i) {
112
112
  return u(), m("div", {
113
113
  class: "vsp-close",
114
114
  onClick: o[0] || (o[0] = (l) => e.$emit("close"))
115
115
  }, [...Fe]);
116
116
  }
117
- K.render = Re;
117
+ K.render = Ge;
118
118
  K.__file = "src/components/SidePanelCloseButton.vue";
119
119
  var Y = C({
120
120
  name: "VueSidePanel",
@@ -208,16 +208,16 @@ var Y = C({
208
208
  emits: ["update:modelValue", "closed", "opened"],
209
209
  setup(e, { emit: o, attrs: t }) {
210
210
  let n;
211
- const a = c(null), i = c(null), l = c(null), s = c(null), d = c(null), f = c(0), h = c(0), A = c(0), L = c(0), M = c(0), F = c(), J = c(!1), B = async () => {
212
- window?.innerHeight > 0 && (M.value = window.innerHeight), f.value = l.value ? l.value.clientHeight : 0, A.value = s.value ? s.value.clientHeight : 0, h.value = d.value ? d.value.scrollHeight : 0, L.value = a.value ? a.value.clientHeight : 0;
213
- }, de = () => o("update:modelValue", !1), R = (p, g) => {
211
+ const a = c(null), i = c(null), l = c(null), s = c(null), d = c(null), f = c(0), h = c(0), A = c(0), M = c(0), L = c(0), F = c(), J = c(!1), B = async () => {
212
+ window?.innerHeight > 0 && (L.value = window.innerHeight), f.value = l.value ? l.value.clientHeight : 0, A.value = s.value ? s.value.clientHeight : 0, h.value = d.value ? d.value.scrollHeight : 0, M.value = a.value ? a.value.clientHeight : 0;
213
+ }, de = () => o("update:modelValue", !1), G = (p, g) => {
214
214
  if (g) {
215
215
  setTimeout(() => {
216
216
  ze(p, { reserveScrollBarGap: !0 }), e.lockScrollHtml && (document.documentElement.style.overflow = "hidden");
217
217
  }, 0);
218
218
  return;
219
219
  }
220
- Le(p), e.lockScrollHtml && document.documentElement.style.removeProperty("overflow");
220
+ Me(p), e.lockScrollHtml && document.documentElement.style.removeProperty("overflow");
221
221
  }, re = () => Math.max(...Array.from(document.querySelectorAll("body *"), (p) => parseFloat(window.getComputedStyle(p).zIndex)).filter((p) => !Number.isNaN(p)), 0);
222
222
  j(() => {
223
223
  F.value = e.zIndex === "auto" ? re() : e.zIndex;
@@ -225,27 +225,27 @@ var Y = C({
225
225
  document.getElementById(e.idName) || (n = document.createElement("div"), n.setAttribute("id", e.idName), document.body.appendChild(n));
226
226
  }), me(() => {
227
227
  const { modelValue: p, lockScroll: g } = e;
228
- g && a.value && p && R(a.value, !1), n && document.body.removeChild(n), window.removeEventListener("resize", B);
229
- }), X(() => [s.value, l.value, e.height, e.width, e.side, e.modelValue], () => {
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], () => {
230
230
  be(() => B());
231
- }), X(() => [e.modelValue, a.value], (p, g) => {
232
- const fe = g ? g[0] : !1, [G, N] = p, pe = G, ye = fe && !G;
231
+ }), Q(() => [e.modelValue, a.value], (p, g) => {
232
+ const fe = g ? g[0] : !1, [R, N] = p, pe = R, ye = fe && !R;
233
233
  if (N) {
234
- if (pe && (J.value = !!document.body.style.overflow), G) {
235
- e.lockScroll && R(N, !0), B(), window.addEventListener("resize", B);
234
+ if (pe && (J.value = !!document.body.style.overflow), R) {
235
+ e.lockScroll && G(N, !0), B(), window.addEventListener("resize", B);
236
236
  return;
237
237
  }
238
238
  !e.lockScroll || !ye || J.value || (setTimeout(() => {
239
- N && R(N, !1);
239
+ N && G(N, !1);
240
240
  }, e.panelDuration), window.removeEventListener("resize", B));
241
241
  }
242
242
  }, { immediate: !0 });
243
243
  const se = U(() => {
244
- if (!L.value)
244
+ if (!M.value)
245
245
  return;
246
246
  const p = h.value + A.value + f.value;
247
- let g = L.value - A.value - f.value;
248
- return ["top", "bottom"].includes(e.side) && e.height === "auto" && (g = M.value >= p ? h.value : M.value - A.value - f.value), g;
247
+ let g = M.value - A.value - f.value;
248
+ return ["top", "bottom"].includes(e.side) && e.height === "auto" && (g = L.value >= p ? h.value : L.value - A.value - f.value), g;
249
249
  }), ue = U(() => ({
250
250
  zIndex: F.value,
251
251
  animationDuration: `${e.overlayDuration}ms`,
@@ -279,7 +279,7 @@ var Y = C({
279
279
  };
280
280
  }
281
281
  });
282
- function Ge(e, o, t, n, a, i) {
282
+ function Re(e, o, t, n, a, i) {
283
283
  const l = he("SidePanelCloseButton");
284
284
  return u(), I(ge, {
285
285
  to: `#${e.idName}`
@@ -295,7 +295,7 @@ function Ge(e, o, t, n, a, i) {
295
295
  persisted: ""
296
296
  }, {
297
297
  default: $(() => [
298
- Z(r(
298
+ X(r(
299
299
  "div",
300
300
  {
301
301
  ref: "overlay",
@@ -307,7 +307,7 @@ function Ge(e, o, t, n, a, i) {
307
307
  4
308
308
  /* STYLE */
309
309
  ), [
310
- [Q, e.modelValue]
310
+ [Z, e.modelValue]
311
311
  ])
312
312
  ]),
313
313
  _: 1
@@ -319,7 +319,7 @@ function Ge(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 ? Z((u(), m(
322
+ !e.rerender || e.modelValue ? X((u(), m(
323
323
  "div",
324
324
  {
325
325
  key: 0,
@@ -375,7 +375,7 @@ function Ge(e, o, t, n, a, i) {
375
375
  6
376
376
  /* CLASS, STYLE */
377
377
  )), [
378
- [Q, e.rerender ? !0 : e.modelValue]
378
+ [Z, e.rerender ? !0 : e.modelValue]
379
379
  ]) : S("v-if", !0)
380
380
  ]),
381
381
  _: 3
@@ -387,7 +387,7 @@ function Ge(e, o, t, n, a, i) {
387
387
  )
388
388
  ], 8, ["to"]);
389
389
  }
390
- Y.render = Ge;
390
+ Y.render = Re;
391
391
  Y.__file = "src/components/SidePanel.vue";
392
392
  const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-panel-title" }, je = {
393
393
  key: 0,
@@ -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"]]), Xe = ["required", "type", "name", "readonly", "disabled", "value", "checked"], Ze = ["data-test"], Qe = { key: 0 }, xe = {
526
+ }), fo = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-5cd094ab"]]), Qe = ["required", "type", "name", "readonly", "disabled", "value", "checked"], Xe = ["data-test"], Ze = { 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, Xe),
577
+ }), null, 16, Qe),
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, Ze),
587
+ }, null, 46, Xe),
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", Qe, b(l.price), 1)) : S("", !0)
593
+ l.price ? (u(), m("span", Ze, 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-Dj_a3rqK.js.map
668
+ //# sourceMappingURL=CheckoutWindow-POqLB9M4.js.map
@@ -1,9 +1,9 @@
1
- import { d as g, o as B, c as J, f as E, t as i, p as S, j as R } from "./_commonjsHelpers-UWZO_9XV.js";
2
- import { _ as k } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.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-BpcYSDvQ.js";
2
+ import { _ as k } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.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] = "583194e2-2150-4312-8cab-219f304959ce", A._sentryDebugIdIdentifier = "sentry-dbid-583194e2-2150-4312-8cab-219f304959ce");
6
+ C && (A._sentryDebugIds = A._sentryDebugIds || {}, A._sentryDebugIds[C] = "c7cc16bb-4e67-4652-8ae3-76614729d263", A._sentryDebugIdIdentifier = "sentry-dbid-c7cc16bb-4e67-4652-8ae3-76614729d263");
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-B_o47rUW.js.map
45
+ //# sourceMappingURL=ErrorMessage-DACtGUvq.js.map
Binary file
@@ -1,20 +1,20 @@
1
- import { r as i, g as a, d as Ke, h as He, o as W, c as fe, e as X, w as Qe, u as z, a as Je, b as me, l as We, n as Xe, i as Ye } from "./_commonjsHelpers-UWZO_9XV.js";
2
- import { j as Ze, k as et, s as ee, l as tt, n as at, o as ge, d as te, p, q as Y, O as ye, S as Z, t as nt, v as $, w as C, x as N, y as ot, u as lt, a as st, C as it, _ as rt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.js";
1
+ import { r as i, c as a, d as Ke, h as He, o as W, a as me, f as X, w as Qe, u as z, b as Je, e as fe, l as We, n as Xe, i as Ye } from "./_commonjsHelpers-BpcYSDvQ.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-Bi1FLGK9.js";
3
3
  import "./navigation.js";
4
- import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-4TxEs6Ur.js";
4
+ import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js";
5
5
  (function() {
6
6
  try {
7
7
  var I = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
8
- l && (I._sentryDebugIds = I._sentryDebugIds || {}, I._sentryDebugIds[l] = "287ae707-560a-4b90-8fd1-75cb7582fbf4", I._sentryDebugIdIdentifier = "sentry-dbid-287ae707-560a-4b90-8fd1-75cb7582fbf4");
8
+ l && (I._sentryDebugIds = I._sentryDebugIds || {}, I._sentryDebugIds[l] = "8887955a-a441-498c-9094-7b31e0a2f5ea", I._sentryDebugIdIdentifier = "sentry-dbid-8887955a-a441-498c-9094-7b31e0a2f5ea");
9
9
  } catch {
10
10
  }
11
11
  })();
12
12
  const ct = Ze("event", () => {
13
- const I = et(), { voucher: l } = ee(tt()), { display: f } = at(), { bearerToken: w, metaData: F } = ee(ge()), x = 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), D = i(""), E = Y("konnectio_name", "", void 0, { serializer: Z.string }), G = Y("konnectio_phone", "", void 0, { serializer: Z.string }), j = Y("konnectio_email", "", void 0, { serializer: Z.string }), u = i(""), g = i({}), d = i({}), U = i("");
13
+ const I = et(), { voucher: l } = ee(tt()), { display: m } = at(), { bearerToken: w, metaData: F } = ee(ge()), j = ge(), b = te(), f = i({}), B = a(() => Object.keys(f.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), D = 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("");
14
14
  function s(e) {
15
15
  return e ? e.templateId !== void 0 : !1;
16
16
  }
17
- const he = a(() => x.metaData.hotels.findIndex((e) => e.id === b.eventLocation) || 0), O = a(() => x.metaData.hotels[he.value]), be = a(() => O.value.maxNumberPerBooking ? O.value.maxNumberPerBooking : 1 / 0), ke = a(() => O.value.name ? O.value.name : ""), De = a(() => O.value.subtitle ? O.value.subtitle : ""), M = a(() => b.searchDate.toISOString()), Ie = 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 === 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 : ""), De = a(() => O.value.subtitle ? O.value.subtitle : ""), M = a(() => b.searchDate.toISOString()), Ie = 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(() => f.value.events !== void 0 ? f.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(() => f.value.events), Ee = a(() => f.value.templates), Le = a(() => f.value.events.length > 0), _e = a(() => f.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(() => {
@@ -78,7 +78,7 @@ const ct = Ze("event", () => {
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 !== "" && j.value !== "" && G.value.length >= 5 && (!ie.value || Oe.value) && (!(!s(t.value) && ne.value !== ye.FullDayEvent) || D.value !== "")));
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) || D.value !== "")));
82
82
  function Re(e) {
83
83
  return r.value === p.ReservationState && k.value === e && o.value;
84
84
  }
@@ -96,7 +96,7 @@ const ct = Ze("event", () => {
96
96
  })).data;
97
97
  F.value = e, ue();
98
98
  } catch {
99
- f({
99
+ m({
100
100
  message: N.t("alert.error.couldntFetchMetadata"),
101
101
  type: "warning"
102
102
  });
@@ -116,9 +116,9 @@ const ct = Ze("event", () => {
116
116
  Accept: "application/json"
117
117
  }
118
118
  })).data;
119
- m.value = e, o.value = !1;
119
+ f.value = e, o.value = !1;
120
120
  } catch {
121
- f({
121
+ m({
122
122
  message: N.t("alert.error.couldntFetchListings"),
123
123
  type: "warning"
124
124
  });
@@ -140,18 +140,18 @@ const ct = Ze("event", () => {
140
140
  Accept: "application/json"
141
141
  }
142
142
  })).data;
143
- n.rooms.length === 0 ? f({
143
+ n.rooms.length === 0 ? m({
144
144
  message: N.t("alert.error.eventNotAvailable"),
145
145
  type: "warning"
146
146
  }) : (t.value = n, e()), o.value = !1;
147
147
  } catch {
148
- o.value = !1, r.value = p.AvailabilityState, f({
148
+ o.value = !1, r.value = p.AvailabilityState, m({
149
149
  message: N.t("alert.error.couldntFetchEvent"),
150
150
  type: "warning"
151
151
  });
152
152
  }
153
153
  }
154
- async function je(e) {
154
+ async function xe(e) {
155
155
  r.value = p.ReservationState, o.value = !0;
156
156
  try {
157
157
  const n = (await $.get("https://production.hotel-service.konnectio.dk/api/event/vacant-times", {
@@ -170,13 +170,13 @@ const ct = Ze("event", () => {
170
170
  })).data;
171
171
  t.value = n, o.value = !1, e();
172
172
  } catch {
173
- o.value = !1, r.value = p.AvailabilityState, f({
173
+ o.value = !1, r.value = p.AvailabilityState, m({
174
174
  message: N.t("alert.error.couldntFetchEvent"),
175
175
  type: "warning"
176
176
  });
177
177
  }
178
178
  }
179
- async function xe() {
179
+ async function je() {
180
180
  try {
181
181
  const e = (await $.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
182
182
  language: C(),
@@ -191,7 +191,7 @@ const ct = Ze("event", () => {
191
191
  })).data;
192
192
  console.log(e);
193
193
  } catch (e) {
194
- console.log(e), f({
194
+ console.log(e), m({
195
195
  message: N.t("alert.error.discountCodeValidation"),
196
196
  type: "warning"
197
197
  });
@@ -200,7 +200,7 @@ const ct = Ze("event", () => {
200
200
  async function Be(e) {
201
201
  r.value = p.PaymentState, o.value = !0;
202
202
  const n = () => {
203
- o.value = !1, r.value = p.ReservationState, f({
203
+ o.value = !1, r.value = p.ReservationState, m({
204
204
  message: N.t("booking.other.errorMessage"),
205
205
  type: "warning"
206
206
  });
@@ -246,7 +246,7 @@ const ct = Ze("event", () => {
246
246
  restaurantId: b.eventLocation,
247
247
  date: ot(M.value),
248
248
  name: E.value,
249
- email: j.value,
249
+ email: x.value,
250
250
  phone: G.value,
251
251
  remark: u.value,
252
252
  numberOfPeople: A.value,
@@ -277,7 +277,7 @@ const ct = Ze("event", () => {
277
277
  return {
278
278
  fetchMetaData: re,
279
279
  metaData: F,
280
- listingData: m,
280
+ listingData: f,
281
281
  tableBasePrice: oe,
282
282
  availabilityData: t,
283
283
  isLoading: o,
@@ -292,7 +292,7 @@ const ct = Ze("event", () => {
292
292
  discountCode: U,
293
293
  name: E,
294
294
  phone: G,
295
- email: j,
295
+ email: x,
296
296
  remark: u,
297
297
  isTemplateEvent: Ie,
298
298
  maxNumberOfPeople: be,
@@ -326,8 +326,8 @@ const ct = Ze("event", () => {
326
326
  // fetchMetaData,
327
327
  fetchListings: ue,
328
328
  getTemplateAvailability: Ge,
329
- getEventAvailability: je,
330
- validateDiscountCode: xe,
329
+ getEventAvailability: xe,
330
+ validateDiscountCode: je,
331
331
  localAddonPrice: H,
332
332
  totalAddonPrice: Q,
333
333
  createBooking: Be,
@@ -346,16 +346,16 @@ const ct = Ze("event", () => {
346
346
  },
347
347
  setup(I) {
348
348
  const l = I, {
349
- eventLocation: f,
349
+ eventLocation: m,
350
350
  eventLocations: w,
351
351
  hasEventLocations: F,
352
- eventLocationControl: x,
352
+ eventLocationControl: j,
353
353
  searchDate: b,
354
- isExpired: m
355
- } = 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(x.value), V = i(T()), D = a({
356
- get: () => l.redirection ? k.value : f.value,
354
+ isExpired: f
355
+ } = 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()), D = a({
356
+ get: () => l.redirection ? k.value : m.value,
357
357
  set: (u) => {
358
- l.redirection ? k.value = Number(u) : f.value = Number(u);
358
+ l.redirection ? k.value = Number(u) : m.value = Number(u);
359
359
  }
360
360
  }), E = a({
361
361
  get: () => l.redirection ? V.value : b.value,
@@ -363,7 +363,7 @@ const ct = Ze("event", () => {
363
363
  l.redirection ? V.value = u : b.value = u;
364
364
  }
365
365
  }), G = a(() => typeof l.link != "string");
366
- function j() {
366
+ function x() {
367
367
  if (l.redirection === !0)
368
368
  if (o({
369
369
  date: E.value,
@@ -377,14 +377,14 @@ const ct = Ze("event", () => {
377
377
  r();
378
378
  }
379
379
  return He(() => {
380
- m.value && B(), l.redirection === !1 && t();
381
- }), (u, g) => (W(), fe("form", {
380
+ f.value && B(), l.redirection === !1 && t();
381
+ }), (u, g) => (W(), me("form", {
382
382
  class: Xe([
383
383
  "konnectio-event-search-form",
384
384
  { "has-locations": z(F) },
385
385
  { "auto-search": !u.redirection }
386
386
  ]),
387
- onSubmit: Ye(j, ["prevent"])
387
+ onSubmit: Ye(x, ["prevent"])
388
388
  }, [
389
389
  X(We, {
390
390
  class: "konnectio-event-search-form-content",
@@ -403,7 +403,7 @@ const ct = Ze("event", () => {
403
403
  "value-key": "id",
404
404
  options: z(w),
405
405
  searchable: !1
406
- }, null, 8, ["modelValue", "label", "options"])) : me("", !0),
406
+ }, null, 8, ["modelValue", "label", "options"])) : fe("", !0),
407
407
  X(ut, {
408
408
  modelValue: E.value,
409
409
  "onUpdate:modelValue": g[1] || (g[1] = (d) => E.value = d),
@@ -413,12 +413,12 @@ const ct = Ze("event", () => {
413
413
  "icon-placement": "label",
414
414
  "min-date": /* @__PURE__ */ new Date()
415
415
  }, null, 8, ["modelValue", "label", "min-date"]),
416
- u.redirection ? (W(), fe("li", vt, [
416
+ u.redirection ? (W(), me("li", vt, [
417
417
  X(it, {
418
418
  type: "submit",
419
419
  label: z(A)("availability.buttonLabel")
420
420
  }, null, 8, ["label"])
421
- ])) : me("", !0)
421
+ ])) : fe("", !0)
422
422
  ]),
423
423
  _: 1
424
424
  })
@@ -429,4 +429,4 @@ export {
429
429
  yt as E,
430
430
  ct as u
431
431
  };
432
- //# sourceMappingURL=EventAvailabilityForm-vxL1OmZL.js.map
432
+ //# sourceMappingURL=EventAvailabilityForm-Dx4hfkc1.js.map
@@ -1,16 +1,16 @@
1
- import { d as l, o as a, c as o, a as i, b as r, e as n, n as f } from "./_commonjsHelpers-UWZO_9XV.js";
2
- import { E as s, _ as c } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.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-BpcYSDvQ.js";
2
+ import { E as s, _ as p } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.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] = "c4cf8338-365b-41b1-bb4f-ab1820711d2d", t._sentryDebugIdIdentifier = "sentry-dbid-c4cf8338-365b-41b1-bb4f-ab1820711d2d");
6
+ e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "75f031cb-3726-4512-b2ef-d1adee797621", t._sentryDebugIdIdentifier = "sentry-dbid-75f031cb-3726-4512-b2ef-d1adee797621");
7
7
  } catch {
8
8
  }
9
9
  })();
10
- const b = {
10
+ const c = {
11
11
  key: 0,
12
12
  class: "skeleton-field-label"
13
- }, p = { key: 1 }, h = /* @__PURE__ */ l({
13
+ }, b = { key: 1 }, h = /* @__PURE__ */ l({
14
14
  __name: "Field",
15
15
  props: {
16
16
  withIcon: { type: Boolean, default: !1 },
@@ -25,7 +25,7 @@ const b = {
25
25
  { "no-label": e.noLabel }
26
26
  ])
27
27
  }, [
28
- e.noLabel ? (a(), o("div", p)) : (a(), o("div", b, [
28
+ e.noLabel ? (a(), o("div", b)) : (a(), o("div", c, [
29
29
  e.withIcon ? (a(), i(s, {
30
30
  key: 0,
31
31
  height: "15px",
@@ -43,8 +43,8 @@ const b = {
43
43
  }, null, 8, ["height"])
44
44
  ], 2));
45
45
  }
46
- }), y = /* @__PURE__ */ c(h, [["__scopeId", "data-v-992f78a1"]]);
46
+ }), y = /* @__PURE__ */ p(h, [["__scopeId", "data-v-992f78a1"]]);
47
47
  export {
48
48
  y as F
49
49
  };
50
- //# sourceMappingURL=Field-DC9mZy8_.js.map
50
+ //# sourceMappingURL=Field-Nqc4wuqz.js.map
Binary file