@konnectio/core 4.0.83 → 4.0.84

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 (62) hide show
  1. package/dist/{ActionField-BA-fYDFE.js → ActionField-CLQbtAU7.js} +3 -3
  2. package/dist/ActionField-CLQbtAU7.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BJPo5KGW.js +309 -0
  4. package/dist/AvailabilitySkeleton-BJPo5KGW.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js} +18 -19
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js.br +0 -0
  7. package/dist/{CheckoutWindow-BWvzwZp7.js → CheckoutWindow-C9Sa3vci.js} +62 -62
  8. package/dist/CheckoutWindow-C9Sa3vci.js.br +0 -0
  9. package/dist/{ErrorMessage-Cznv1pOA.js → ErrorMessage-D6rbHHXd.js} +3 -3
  10. package/dist/ErrorMessage-D6rbHHXd.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CCIRdxiD.js → EventAvailabilityForm-D-Q1vxsm.js} +18 -19
  12. package/dist/EventAvailabilityForm-D-Q1vxsm.js.br +0 -0
  13. package/dist/{Field-BvDQnKDq.js → Field-CGT9JUe-.js} +5 -5
  14. package/dist/Field-CGT9JUe-.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js} +1217 -1190
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js.br +0 -0
  17. package/dist/TermsOfService-DmwGAt0q.js +28 -0
  18. package/dist/_-YHi6ciVk.js +5 -0
  19. package/dist/{_.vue_vue_type_style_index_0_lang-JXEPTW6b.js → _.vue_vue_type_style_index_0_lang-DeF9xZEQ.js} +5 -5
  20. package/dist/availability.js +23 -24
  21. package/dist/availability.js.br +0 -0
  22. package/dist/deep-link.js +5 -6
  23. package/dist/deep-link.js.br +0 -0
  24. package/dist/event.js +72 -74
  25. package/dist/event.js.br +0 -0
  26. package/dist/gift-card-validation.js +21 -22
  27. package/dist/gift-card-validation.js.br +0 -0
  28. package/dist/gift-card.js +67 -68
  29. package/dist/gift-card.js.br +0 -0
  30. package/dist/{giftCard-DA27WKsi.js → giftCard-C-lmDpUB.js} +27 -28
  31. package/dist/giftCard-C-lmDpUB.js.br +0 -0
  32. package/dist/hotel.js +1269 -1143
  33. package/dist/hotel.js.br +0 -0
  34. package/dist/{masonry.plugin-C22IPiCy.js → masonry.plugin-DL8uXS-9.js} +6 -7
  35. package/dist/masonry.plugin-DL8uXS-9.js.br +0 -0
  36. package/dist/mitt-B_elXQ2J.js +12437 -0
  37. package/dist/mitt-B_elXQ2J.js.br +0 -0
  38. package/dist/polyfill.js +2427 -2378
  39. package/dist/polyfill.js.br +0 -0
  40. package/dist/{style-CF23zZwv.js → style-CDpCXUak.js} +67 -67
  41. package/dist/style-CDpCXUak.js.br +0 -0
  42. package/dist/style.css +1 -1
  43. package/dist/style.css.br +0 -0
  44. package/package.json +12 -13
  45. package/dist/ActionField-BA-fYDFE.js.br +0 -0
  46. package/dist/AvailabilitySkeleton-cs1R6FqT.js +0 -281
  47. package/dist/AvailabilitySkeleton-cs1R6FqT.js.br +0 -0
  48. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js.br +0 -0
  49. package/dist/CheckoutWindow-BWvzwZp7.js.br +0 -0
  50. package/dist/ErrorMessage-Cznv1pOA.js.br +0 -0
  51. package/dist/EventAvailabilityForm-CCIRdxiD.js.br +0 -0
  52. package/dist/Field-BvDQnKDq.js.br +0 -0
  53. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js.br +0 -0
  54. package/dist/TermsOfService-GFdUcU5a.js +0 -29
  55. package/dist/_-CApO2y_W.js +0 -5
  56. package/dist/giftCard-DA27WKsi.js.br +0 -0
  57. package/dist/masonry.plugin-C22IPiCy.js.br +0 -0
  58. package/dist/mitt-QLRlCcPH.js +0 -2962
  59. package/dist/mitt-QLRlCcPH.js.br +0 -0
  60. package/dist/style-CF23zZwv.js.br +0 -0
  61. package/dist/vue.esm-bundler-BkY4vCIk.js +0 -9485
  62. package/dist/vue.esm-bundler-BkY4vCIk.js.br +0 -0
@@ -0,0 +1,28 @@
1
+ import { d as o, u as r, a, b as i, w as c, e, i as s } from "./mitt-B_elXQ2J.js";
2
+ import { F as p, _ } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
3
+ import { B as d } from "./CheckoutWindow-C9Sa3vci.js";
4
+ const m = { class: "konnectio-terms-side-panel" }, l = ["innerHTML"], f = /* @__PURE__ */ o({
5
+ __name: "TermsOfService",
6
+ props: {
7
+ description: {}
8
+ },
9
+ setup(u) {
10
+ const { t } = r();
11
+ return (n, B) => (a(), i(d, {
12
+ title: s(t)("general.termsAndConditions")
13
+ }, {
14
+ default: c(() => [
15
+ e("div", m, [
16
+ e("p", {
17
+ innerHTML: s(p)(n.description)
18
+ }, null, 8, l)
19
+ ])
20
+ ]),
21
+ _: 1
22
+ }, 8, ["title"]));
23
+ }
24
+ }), x = /* @__PURE__ */ _(f, [["__scopeId", "data-v-82236ccc"]]);
25
+ export {
26
+ x as S
27
+ };
28
+ //# sourceMappingURL=TermsOfService-DmwGAt0q.js.map
@@ -0,0 +1,5 @@
1
+ import { _ as f } from "./_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=_-YHi6ciVk.js.map
@@ -1,9 +1,9 @@
1
- import { d as l, al as a, a as i, g as p, l as _ } from "./vue.esm-bundler-BkY4vCIk.js";
2
- import { d as m } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js";
1
+ import { d as i, ap as a, a as l, g as p, y as _ } from "./mitt-B_elXQ2J.js";
2
+ import { d as m } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
3
3
  const d = {
4
4
  class: "konnectio-app",
5
5
  ref: "base"
6
- }, y = /* @__PURE__ */ l({
6
+ }, y = /* @__PURE__ */ i({
7
7
  name: "BaseLayout",
8
8
  __name: "_",
9
9
  props: {
@@ -14,7 +14,7 @@ const d = {
14
14
  async setup(o) {
15
15
  let e, t;
16
16
  const s = o, { setAccessToken: c, fetchUtilities: n } = m();
17
- return c(s.accessToken), [e, t] = a(() => n()), await e, t(), [e, t] = a(() => s.callback()), await e, t(), (r, f) => (i(), p("div", d, [
17
+ return c(s.accessToken), [e, t] = a(() => n()), await e, t(), [e, t] = a(() => s.callback()), await e, t(), (r, f) => (l(), p("div", d, [
18
18
  _(r.$slots, "default")
19
19
  ], 512));
20
20
  }
@@ -22,4 +22,4 @@ const d = {
22
22
  export {
23
23
  y as _
24
24
  };
25
- //# sourceMappingURL=_.vue_vue_type_style_index_0_lang-JXEPTW6b.js.map
25
+ //# sourceMappingURL=_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js.map
@@ -1,11 +1,10 @@
1
- import { d as E, r as S, c as l, o as T, a as o, b as s, w as c, S as B, e, f as p, g as D, n as f, h as y, t as A, u as d, F as I, i as L, T as M, p as N, j as P, k as F } from "./vue.esm-bundler-BkY4vCIk.js";
2
- import { u as H, c as V, l as $, i as z, m as j } from "./mitt-QLRlCcPH.js";
3
- import { u as K, C as U, _ as q } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js";
4
- import { _ as x } from "./_.vue_vue_type_style_index_0_lang-JXEPTW6b.js";
5
- import { H as G, A as J } from "./AvailabilitySkeleton-cs1R6FqT.js";
6
- import { E as O } from "./EventAvailabilityForm-CCIRdxiD.js";
7
- import { E as Q } from "./ErrorMessage-Cznv1pOA.js";
8
- const R = (i) => (N("data-v-014bccfe"), i = i(), P(), i), W = { class: "konnectio-availability-module" }, X = { class: "konnectio-availability-navigation" }, Y = /* @__PURE__ */ R(() => /* @__PURE__ */ e("div", { class: "konnectio-availability-divider" }, null, -1)), Z = { class: "konnectio-availability-search-form" }, ee = /* @__PURE__ */ E({
1
+ import { d as E, u as S, r as T, c as o, o as B, a as l, b as s, w as c, S as D, e, f as p, g as I, n as y, h as f, t as A, i as d, F as M, j as L, T as N, p as P, k as F, l as H, m as V, q as $, s as z, v as j } from "./mitt-B_elXQ2J.js";
2
+ import { u as q, C as K, _ as U } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
3
+ import { _ as x } from "./_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js";
4
+ import { H as G, A as J } from "./AvailabilitySkeleton-BJPo5KGW.js";
5
+ import { E as O } from "./EventAvailabilityForm-D-Q1vxsm.js";
6
+ import { E as Q } from "./ErrorMessage-D6rbHHXd.js";
7
+ const R = (i) => (P("data-v-014bccfe"), i = i(), F(), i), W = { class: "konnectio-availability-module" }, X = { class: "konnectio-availability-navigation" }, Y = /* @__PURE__ */ R(() => /* @__PURE__ */ e("div", { class: "konnectio-availability-divider" }, null, -1)), Z = { class: "konnectio-availability-search-form" }, ee = /* @__PURE__ */ E({
9
8
  name: "AvailabilityLayout",
10
9
  __name: "Availability",
11
10
  props: {
@@ -18,15 +17,15 @@ const R = (i) => (N("data-v-014bccfe"), i = i(), P(), i), W = { class: "konnecti
18
17
  styling: {}
19
18
  },
20
19
  setup(i) {
21
- const { t: r } = H(), { fetchMetadata: u } = K(), a = i, n = S(), C = l(() => !!a.hotelLink || !!a.eventLink), m = l(() => !!a.hotelLink && !!a.eventLink), k = l(() => n.value === "hotel"), h = l(() => n.value === "event"), b = (t) => n.value = t, g = l(() => ({
20
+ const { t: r } = S(), { fetchMetadata: u } = q(), a = i, n = T(), C = o(() => !!a.hotelLink || !!a.eventLink), m = o(() => !!a.hotelLink && !!a.eventLink), k = o(() => n.value === "hotel"), h = o(() => n.value === "event"), b = (t) => n.value = t, g = o(() => ({
22
21
  fontSize: "13px",
23
22
  ...a.styling
24
23
  }));
25
- return T(() => {
24
+ return B(() => {
26
25
  !a.hotelLink && a.eventLink ? n.value = "event" : n.value = "hotel";
27
- }), (t, v) => (o(), s(U, { styling: g.value }, {
26
+ }), (t, v) => (l(), s(K, { styling: g.value }, {
28
27
  default: c(() => [
29
- C.value ? (o(), s(B, { key: 0 }, {
28
+ C.value ? (l(), s(D, { key: 0 }, {
30
29
  default: c(() => [
31
30
  e("div", null, [
32
31
  p(x, {
@@ -35,21 +34,21 @@ const R = (i) => (N("data-v-014bccfe"), i = i(), P(), i), W = { class: "konnecti
35
34
  }, {
36
35
  default: c(() => [
37
36
  e("div", W, [
38
- m.value ? (o(), D(I, { key: 0 }, [
37
+ m.value ? (l(), I(M, { key: 0 }, [
39
38
  e("nav", X, [
40
39
  e("ul", null, [
41
40
  e("li", null, [
42
41
  e("button", {
43
- class: f({ active: k.value }),
44
- onClick: v[0] || (v[0] = y((w) => b("hotel"), ["prevent"]))
42
+ class: y({ active: k.value }),
43
+ onClick: v[0] || (v[0] = f((w) => b("hotel"), ["prevent"]))
45
44
  }, [
46
45
  e("span", null, A(d(r)("availability.hotel")), 1)
47
46
  ], 2)
48
47
  ]),
49
48
  e("li", null, [
50
49
  e("button", {
51
- class: f({ active: h.value }),
52
- onClick: v[1] || (v[1] = y((w) => b("event"), ["prevent"]))
50
+ class: y({ active: h.value }),
51
+ onClick: v[1] || (v[1] = f((w) => b("event"), ["prevent"]))
53
52
  }, [
54
53
  e("span", null, A(d(r)("availability.events")), 1)
55
54
  ], 2)
@@ -59,18 +58,18 @@ const R = (i) => (N("data-v-014bccfe"), i = i(), P(), i), W = { class: "konnecti
59
58
  Y
60
59
  ], 64)) : L("", !0),
61
60
  e("div", Z, [
62
- p(M, {
61
+ p(N, {
63
62
  name: "fade",
64
63
  mode: "out-in",
65
64
  appear: ""
66
65
  }, {
67
66
  default: c(() => [
68
- k.value ? (o(), s(G, {
67
+ k.value ? (l(), s(G, {
69
68
  key: 0,
70
69
  link: t.hotelLink,
71
70
  "selected-location": Number(t.hotelLocation),
72
71
  "disable-default-location": t.hotelDisableDefaultLocation === "yes"
73
- }, null, 8, ["link", "selected-location", "disable-default-location"])) : h.value ? (o(), s(O, {
72
+ }, null, 8, ["link", "selected-location", "disable-default-location"])) : h.value ? (l(), s(O, {
74
73
  key: 1,
75
74
  link: t.eventLink,
76
75
  "selected-location": Number(t.eventLocation)
@@ -93,7 +92,7 @@ const R = (i) => (N("data-v-014bccfe"), i = i(), P(), i), W = { class: "konnecti
93
92
  ])
94
93
  ]),
95
94
  _: 1
96
- })) : (o(), s(Q, {
95
+ })) : (l(), s(Q, {
97
96
  key: 1,
98
97
  title: "Unable to render Availability module",
99
98
  description: `The 'hotel-link' and/or 'event-link' properties are missing.<br>\r
@@ -103,7 +102,7 @@ const R = (i) => (N("data-v-014bccfe"), i = i(), P(), i), W = { class: "konnecti
103
102
  _: 1
104
103
  }, 8, ["styling"]));
105
104
  }
106
- }), _ = /* @__PURE__ */ q(ee, [["__scopeId", "data-v-014bccfe"]]), te = V(), ae = j();
105
+ }), _ = /* @__PURE__ */ U(ee, [["__scopeId", "data-v-014bccfe"]]), te = H(), ae = j();
107
106
  class ie extends HTMLElement {
108
107
  vueApp;
109
108
  constructor() {
@@ -113,8 +112,8 @@ class ie extends HTMLElement {
113
112
  this.vueApp.unmount();
114
113
  }
115
114
  connectedCallback() {
116
- const r = $(_, this.attributes);
117
- this.vueApp = F(_, r), this.vueApp.provide("emitter", ae), this.vueApp.use(z), this.vueApp.use(te);
115
+ const r = V(_, this.attributes);
116
+ this.vueApp = $(_, r), this.vueApp.provide("emitter", ae), this.vueApp.use(z), this.vueApp.use(te);
118
117
  const u = document.createElement("div");
119
118
  this.vueApp.mount(u), this.appendChild(u.children[0]);
120
119
  }
Binary file
package/dist/deep-link.js CHANGED
@@ -1,5 +1,4 @@
1
- import { d as l, r as o, o as c, a as d, g as u, e as r, t as m, l as i, k as h } from "./vue.esm-bundler-BkY4vCIk.js";
2
- import { c as f, l as v, i as k, m as A } from "./mitt-QLRlCcPH.js";
1
+ import { d as l, r as o, o as c, a as d, g as u, e as r, t as h, y as i, l as m, m as f, q as v, s as k, v as A } from "./mitt-B_elXQ2J.js";
3
2
  const _ = ["href"], p = /* @__PURE__ */ l({
4
3
  name: "KonnectioDeepLink",
5
4
  __name: "DeepLink",
@@ -20,13 +19,13 @@ const _ = ["href"], p = /* @__PURE__ */ l({
20
19
  ref: s
21
20
  }, [
22
21
  r("a", { href: n.value }, [
23
- r("span", null, m(n.value), 1),
22
+ r("span", null, h(n.value), 1),
24
23
  i(t.$slots, "content"),
25
24
  i(t.$slots, "default")
26
25
  ], 8, _)
27
26
  ], 512));
28
27
  }
29
- }), b = f(), C = A();
28
+ }), b = m(), C = A();
30
29
  class E extends HTMLElement {
31
30
  vueApp;
32
31
  constructor() {
@@ -36,8 +35,8 @@ class E extends HTMLElement {
36
35
  this.vueApp.unmount();
37
36
  }
38
37
  connectedCallback() {
39
- const s = v(p, this.attributes);
40
- this.vueApp = h(p, s), this.vueApp.provide("emitter", C), this.vueApp.use(k), this.vueApp.use(b);
38
+ const s = f(p, this.attributes);
39
+ this.vueApp = v(p, s), this.vueApp.provide("emitter", C), this.vueApp.use(k), this.vueApp.use(b);
41
40
  const e = document.createElement("div");
42
41
  this.vueApp.mount(e), this.appendChild(e.children[0]);
43
42
  }
Binary file
package/dist/event.js CHANGED
@@ -1,19 +1,18 @@
1
- import { d as j, r as We, c as K, a as l, b as P, w as d, l as ae, u as e, e as t, i as c, f as m, n as Je, g as u, t as a, m as Ke, q as Xe, F as A, s as z, v as R, S as Ze, x as ye, p as xe, j as et, k as tt } from "./vue.esm-bundler-BkY4vCIk.js";
2
- import { u as oe, s as G, c as nt, l as at, i as lt, m as ot } from "./mitt-QLRlCcPH.js";
3
- import { a as Oe, b as le, l as st, s as M, c as be, B as it, _ as se, d as ke, I as fe, e as rt, f as ge, g as H, u as _e, h as ut, i as Pe, T as te, O as dt, C as ct, j as mt, k as pt, m as vt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js";
4
- import { G as bt } from "./style-CF23zZwv.js";
5
- import { c as ft, t as ne, g as Ve, e as gt, m as $e, a as De, b as Ee, d as kt, f as we, u as Y } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js";
6
- import { _ as ht } from "./_.vue_vue_type_style_index_0_lang-JXEPTW6b.js";
7
- import { B as yt, _ as _t, R as Pt, L as Ne, S as Vt, M as $t, C as Dt, T as Et, V as wt, a as Tt } from "./masonry.plugin-C22IPiCy.js";
8
- import { C as Ot, P as Nt, a as St } from "./CheckoutWindow-BWvzwZp7.js";
9
- import { E as Bt } from "./EventAvailabilityForm-CCIRdxiD.js";
1
+ import { d as j, u as oe, x as G, r as We, c as K, a as l, b as P, w as d, y as ae, i as e, e as t, j as c, f as m, n as Je, g as u, t as a, z as Ke, A as Xe, F as I, B as z, C as R, S as Ze, D as ye, p as xe, k as et, l as tt, m as nt, q as at, s as lt, v as ot } from "./mitt-B_elXQ2J.js";
2
+ import { a as Oe, b as le, l as st, s as M, c as be, B as it, _ as se, d as ke, I as fe, e as rt, f as ge, g as H, u as _e, h as ut, i as Pe, T as te, O as dt, C as ct, j as mt, k as pt, m as vt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
3
+ import { G as bt } from "./style-CDpCXUak.js";
4
+ import { c as ft, t as ne, g as Ve, e as gt, m as De, a as $e, b as Ee, d as kt, f as we, u as Y } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js";
5
+ import { _ as ht } from "./_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js";
6
+ import { B as yt, _ as _t, R as Pt, L as Ne, S as Vt, M as Dt, C as $t, T as Et, V as wt, a as Tt } from "./masonry.plugin-DL8uXS-9.js";
7
+ import { C as Ot, P as Nt, a as St } from "./CheckoutWindow-C9Sa3vci.js";
8
+ import { E as Bt } from "./EventAvailabilityForm-D-Q1vxsm.js";
10
9
  function Ct(f) {
11
10
  return (n) => {
12
11
  const r = Math[f], v = r(n);
13
12
  return v === 0 ? 0 : v;
14
13
  };
15
14
  }
16
- function It(f, n, r) {
15
+ function At(f, n, r) {
17
16
  const b = kt().locale ?? gt, i = ft(f, n);
18
17
  if (isNaN(i))
19
18
  throw new RangeError("Invalid time value");
@@ -23,9 +22,9 @@ function It(f, n, r) {
23
22
  });
24
23
  let E, k;
25
24
  i > 0 ? (E = ne(n), k = ne(f)) : (E = ne(f), k = ne(n));
26
- const V = Ct("round"), w = k.getTime() - E.getTime(), _ = w / we, $ = Ve(k) - Ve(E), T = (w - $) / we, U = r?.unit;
25
+ const V = Ct("round"), w = k.getTime() - E.getTime(), _ = w / we, D = Ve(k) - Ve(E), T = (w - D) / we, U = r?.unit;
27
26
  let h;
28
- if (_ < 1 ? h = "second" : _ < 60 ? h = "minute" : _ < $e ? h = "hour" : T < De ? h = "day" : T < Ee ? h = "month" : h = "year", h === "second") {
27
+ if (_ < 1 ? h = "second" : _ < 60 ? h = "minute" : _ < De ? h = "hour" : T < $e ? h = "day" : T < Ee ? h = "month" : h = "year", h === "second") {
29
28
  const o = V(w / 1e3);
30
29
  return b.formatDistance("xSeconds", o, g);
31
30
  } else if (h === "minute") {
@@ -35,17 +34,17 @@ function It(f, n, r) {
35
34
  const o = V(_ / 60);
36
35
  return b.formatDistance("xHours", o, g);
37
36
  } else if (h === "day") {
38
- const o = V(T / $e);
37
+ const o = V(T / De);
39
38
  return b.formatDistance("xDays", o, g);
40
39
  } else if (h === "month") {
41
- const o = V(T / De);
40
+ const o = V(T / $e);
42
41
  return o === 12 && U !== "month" ? b.formatDistance("xYears", 1, g) : b.formatDistance("xMonths", o, g);
43
42
  } else {
44
43
  const o = V(T / Ee);
45
44
  return b.formatDistance("xYears", o, g);
46
45
  }
47
46
  }
48
- const At = { class: "konnectio-event-listing-action-button" }, Lt = /* @__PURE__ */ j({
47
+ const It = { class: "konnectio-event-listing-action-button" }, Lt = /* @__PURE__ */ j({
49
48
  __name: "_",
50
49
  props: {
51
50
  name: {},
@@ -79,24 +78,24 @@ const At = { class: "konnectio-event-listing-action-button" }, Lt = /* @__PURE__
79
78
  getTemplateAvailability: V,
80
79
  getEventAvailability: w,
81
80
  isEventListingLoading: _
82
- } = Y(), $ = We(0), T = K(() => _(r.listingId)), U = () => {
83
- if (!r.useNumberOfProductsForPersons && $.value === 0) {
81
+ } = Y(), D = We(0), T = K(() => _(r.listingId)), U = () => {
82
+ if (!r.useNumberOfProductsForPersons && D.value === 0) {
84
83
  v({
85
84
  type: "error",
86
85
  message: n("alert.error.selectPeople")
87
86
  });
88
87
  return;
89
88
  }
90
- g.value = r.listingId, i.value = $.value, V(r.callback);
89
+ g.value = r.listingId, i.value = D.value, V(r.callback);
91
90
  }, h = () => {
92
- if (!r.useNumberOfProductsForPersons && $.value === 0) {
91
+ if (!r.useNumberOfProductsForPersons && D.value === 0) {
93
92
  v({
94
93
  type: "error",
95
94
  message: n("alert.error.selectPeople")
96
95
  });
97
96
  return;
98
97
  }
99
- g.value = r.listingId, k.value = r.tableGroupId, i.value = $.value, w(r.callback);
98
+ g.value = r.listingId, k.value = r.tableGroupId, i.value = D.value, w(r.callback);
100
99
  };
101
100
  return (o, C) => (l(), P(yt, {
102
101
  type: "event",
@@ -120,8 +119,8 @@ const At = { class: "konnectio-event-listing-action-button" }, Lt = /* @__PURE__
120
119
  }, [
121
120
  o.useNumberOfProductsForPersons ? c("", !0) : (l(), P(le, {
122
121
  key: 0,
123
- modelValue: $.value,
124
- "onUpdate:modelValue": C[0] || (C[0] = (L) => $.value = L),
122
+ modelValue: D.value,
123
+ "onUpdate:modelValue": C[0] || (C[0] = (L) => D.value = L),
125
124
  label: e(n)("event.numberOfGuests"),
126
125
  icon: "users",
127
126
  "icon-type": "fas",
@@ -130,7 +129,7 @@ const At = { class: "konnectio-event-listing-action-button" }, Lt = /* @__PURE__
130
129
  "min-value": 0,
131
130
  "max-value": o.maxOnlineReservationLimit || o.maxGuests || e(b) || 1 / 0
132
131
  }, null, 8, ["modelValue", "label", "description", "max-value"])),
133
- t("div", At, [
132
+ t("div", It, [
134
133
  m(be, {
135
134
  label: o.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
136
135
  disabled: o.soldOut,
@@ -174,7 +173,7 @@ const Rt = {
174
173
  setup(f) {
175
174
  const n = f, { t: r } = oe(), { hideEventLength: v } = G(ke()), b = K(() => {
176
175
  const i = n.length.split(":");
177
- return It(
176
+ return At(
178
177
  new Date(2e3, 0, 1, Number(i[0]), Number(i[1]), 0),
179
178
  new Date(2e3, 0, 1, 0, 0, 0)
180
179
  );
@@ -279,7 +278,7 @@ const Rt = {
279
278
  currentEventDate: V,
280
279
  length: w,
281
280
  fromDate: _,
282
- tableBasePrice: $,
281
+ tableBasePrice: D,
283
282
  getTemplateData: T,
284
283
  basePrice: U,
285
284
  totalPrice: h,
@@ -313,7 +312,7 @@ const Rt = {
313
312
  t("span", null, a(e(n)("event.numberOfGuests")), 1),
314
313
  t("b", null, a(e(i)), 1)
315
314
  ])) : c("", !0),
316
- e(k) ? (l(), u(A, { key: 2 }, [
315
+ e(k) ? (l(), u(I, { key: 2 }, [
317
316
  t("li", null, [
318
317
  t("span", null, a(e(n)("booking.reservation.arrival")), 1),
319
318
  t("b", null, a(e(M)(e(_))), 1)
@@ -341,11 +340,11 @@ const Rt = {
341
340
  ])) : c("", !0)
342
341
  ]),
343
342
  "price-summary": d(() => [
344
- !e(k) && e($) > 0 ? (l(), u("li", Qt, [
343
+ !e(k) && e(D) > 0 ? (l(), u("li", Qt, [
345
344
  t("span", null, a(e(n)("booking.availability.basePrice")), 1),
346
- t("b", null, a(e(H)(e($), e(X))), 1)
345
+ t("b", null, a(e(H)(e(D), e(X))), 1)
347
346
  ])) : c("", !0),
348
- e(T) ? (l(!0), u(A, { key: 1 }, z(e(T), ({ roomGroupId: q }, x) => (l(), u("li", { key: q }, [
347
+ e(T) ? (l(!0), u(I, { key: 1 }, z(e(T), ({ roomGroupId: q }, x) => (l(), u("li", { key: q }, [
349
348
  t("span", null, a(e(n)("booking.reservation.addons")) + " - " + a(e(n)("booking.reservation.room")) + " #" + a(x + 1), 1),
350
349
  t("b", null, a(e(H)(e(re)(q, x), e(X))), 1)
351
350
  ]))), 128)) : c("", !0)
@@ -384,15 +383,12 @@ const Rt = {
384
383
  ])
385
384
  ]));
386
385
  }
387
- }), en = /* @__PURE__ */ se(xt, [["__scopeId", "data-v-3e15c4e3"]]), ie = (f) => (xe("data-v-8edf3535"), f = f(), et(), f), tn = {
386
+ }), en = /* @__PURE__ */ se(xt, [["__scopeId", "data-v-3e15c4e3"]]), ie = (f) => (xe("data-v-5c3efe22"), f = f(), et(), f), tn = {
388
387
  key: 0,
389
388
  id: "konnectio-event-listings-wrapper"
390
389
  };
391
390
  const nn = { class: "konnectio-event-listings" };
392
- const an = { class: "konnectio-event-listings" }, ln = {
393
- key: 2,
394
- class: "konnectio-panel"
395
- }, on = { class: "konnectio-panel" }, sn = {
391
+ const an = { class: "konnectio-event-listings" }, ln = ["innerHTML"], on = { class: "konnectio-panel" }, sn = {
396
392
  key: 0,
397
393
  id: "konnectio-event-addons"
398
394
  }, rn = { class: "konnectio-table with-lines" }, un = /* @__PURE__ */ ie(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), dn = { class: "konnectio-event-addons-price" }, cn = /* @__PURE__ */ ie(() => /* @__PURE__ */ t("br", null, null, -1)), mn = { class: "konnectio-event-addons-input" }, pn = { class: "konnectio-event-addons-price" }, vn = /* @__PURE__ */ ie(() => /* @__PURE__ */ t("td", null, null, -1)), bn = /* @__PURE__ */ ie(() => /* @__PURE__ */ t("td", null, null, -1)), fn = { class: "konnectio-event-addons-price" }, gn = {
@@ -419,7 +415,7 @@ const an = { class: "konnectio-event-listings" }, ln = {
419
415
  allergies: V,
420
416
  arrivalTime: w,
421
417
  hasEvents: _,
422
- hasTemplates: $,
418
+ hasTemplates: D,
423
419
  getEvents: T,
424
420
  getTemplates: U,
425
421
  getEventData: h,
@@ -434,8 +430,8 @@ const an = { class: "konnectio-event-listings" }, ln = {
434
430
  isReservationFormFilled: Z,
435
431
  requiresArrivalTime: q,
436
432
  hasSelectedRequiredProducts: x
437
- } = G(Y()), { currency: ee } = G(ke()), { eventDate: Be, eventLocation: Ce } = G(_e()), { isValidRestaurantId: Ie } = _e(), {
438
- initialize: Ae,
433
+ } = G(Y()), { currency: ee } = G(ke()), { eventDate: Be, eventLocation: Ce } = G(_e()), { isValidRestaurantId: Ae } = _e(), {
434
+ initialize: Ie,
439
435
  fetchListings: Le,
440
436
  createBooking: Fe,
441
437
  localAddonPrice: Re,
@@ -469,22 +465,22 @@ const an = { class: "konnectio-event-listings" }, ln = {
469
465
  icon: "calendar-check"
470
466
  }
471
467
  ]), qe = K(() => {
472
- const D = [];
468
+ const $ = [];
473
469
  return C.value && C.value.forEach((p) => {
474
- D.push({
470
+ $.push({
475
471
  label: ge(p.time),
476
472
  value: p.time
477
473
  });
478
- }), D;
474
+ }), $;
479
475
  });
480
476
  function ze() {
481
- const D = mt("history", {
477
+ const $ = mt("history", {
482
478
  removeNullishValues: !0
483
- }), p = parseInt(D.rid), B = D.d, O = parseInt(D.eid);
479
+ }), p = parseInt($.rid), B = $.d, O = parseInt($.eid);
484
480
  if (B)
485
481
  if (pt(B)) {
486
- const S = new Date(B), I = S.setHours(12, 0, 0, 0), y = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
487
- I >= y ? (Be.value = S, D.d = void 0) : ce({
482
+ const S = new Date(B), A = S.setHours(12, 0, 0, 0), y = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
483
+ A >= y ? (Be.value = S, $.d = void 0) : ce({
488
484
  message: n("alert.error.invalidDateRange"),
489
485
  type: "error"
490
486
  });
@@ -493,24 +489,24 @@ const an = { class: "konnectio-event-listings" }, ln = {
493
489
  message: n("alert.error.wrongDateFormat"),
494
490
  type: "error"
495
491
  });
496
- isNaN(p) || (Ie(p) ? Ce.value = p : ce({
492
+ isNaN(p) || (Ae(p) ? Ce.value = p : ce({
497
493
  message: n("alert.error.hotelIdNotFound"),
498
494
  type: "error"
499
495
  }));
500
496
  let s;
501
497
  isNaN(O) || (s = O), Le(s);
502
498
  }
503
- return (D, p) => (l(), P(ct, { styling: D.styling }, {
499
+ return ($, p) => (l(), P(ct, { styling: $.styling }, {
504
500
  default: d(() => [
505
501
  (l(), P(Ze, { onResolve: ze }, {
506
502
  default: d(() => [
507
503
  m(ht, {
508
504
  id: "konnectio-event-module",
509
- "access-token": D.accessToken,
510
- callback: e(Ae)
505
+ "access-token": $.accessToken,
506
+ callback: e(Ie)
511
507
  }, {
512
508
  default: d(() => [
513
- m($t, {
509
+ m(Dt, {
514
510
  steps: Ge.value,
515
511
  onReset: e(Me)
516
512
  }, {
@@ -519,19 +515,19 @@ const an = { class: "konnectio-event-listings" }, ln = {
519
515
  sidebar: d(() => [
520
516
  m(Bt, {
521
517
  redirection: !1,
522
- "selected-location": Number(D.selectedLocation)
518
+ "selected-location": Number($.selectedLocation)
523
519
  }, null, 8, ["selected-location"])
524
520
  ]),
525
521
  form: d(() => [
526
522
  e(de) && e(ue) ? (l(), u("div", tn, [
527
- e(_) && D.onlyShow !== "templates" ? (l(), u(A, { key: 0 }, [
523
+ e(_) && $.onlyShow !== "templates" ? (l(), u(I, { key: 0 }, [
528
524
  c("", !0),
529
525
  t("ul", nn, [
530
- (l(!0), u(A, null, z(e(T), ({
526
+ (l(!0), u(I, null, z(e(T), ({
531
527
  id: O,
532
528
  days: s,
533
529
  name: S,
534
- timeFrom: I,
530
+ timeFrom: A,
535
531
  timeTo: y,
536
532
  fromDate: N,
537
533
  toDate: Q,
@@ -556,7 +552,7 @@ const an = { class: "konnectio-event-listings" }, ln = {
556
552
  "from-date": N,
557
553
  "to-date": Q,
558
554
  "max-online-reservation-limit": je || Ye,
559
- "time-from": I,
555
+ "time-from": A,
560
556
  "time-to": y,
561
557
  "sold-out": pe,
562
558
  "use-number-of-products-for-persons": Qe,
@@ -564,14 +560,14 @@ const an = { class: "konnectio-event-listings" }, ln = {
564
560
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "callback"]))), 128))
565
561
  ])
566
562
  ], 64)) : c("", !0),
567
- e($) && D.onlyShow !== "events" ? (l(), u(A, { key: 1 }, [
563
+ e(D) && $.onlyShow !== "events" ? (l(), u(I, { key: 1 }, [
568
564
  c("", !0),
569
565
  t("ul", an, [
570
- (l(!0), u(A, null, z(e(U), ({
566
+ (l(!0), u(I, null, z(e(U), ({
571
567
  id: O,
572
568
  name: s,
573
569
  fromDate: S,
574
- toDate: I,
570
+ toDate: A,
575
571
  minimumPersonCount: y,
576
572
  fromPrice: N,
577
573
  description: Q,
@@ -583,16 +579,18 @@ const an = { class: "konnectio-event-listings" }, ln = {
583
579
  image: W,
584
580
  description: Q,
585
581
  "from-date": S,
586
- "to-date": I,
582
+ "to-date": A,
587
583
  "minimum-person-count": y,
588
584
  fromPrice: N,
589
585
  callback: B
590
586
  }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
591
587
  ])
592
588
  ], 64)) : c("", !0),
593
- !e(_) && !e($) || !e(_) && D.onlyShow === "events" || !e($) && D.onlyShow === "templates" ? (l(), u("div", ln, [
594
- t("span", null, a(e(n)("event.nothingAvailable")), 1)
595
- ])) : c("", !0)
589
+ !e(_) && !e(D) || !e(_) && $.onlyShow === "events" || !e(D) && $.onlyShow === "templates" ? (l(), u("div", {
590
+ key: 2,
591
+ class: "konnectio-panel",
592
+ innerHTML: e(n)("event.nothingAvailable")
593
+ }, null, 8, ln)) : c("", !0)
596
594
  ])) : (l(), P(Ne, { key: 1 }))
597
595
  ]),
598
596
  _: 2
@@ -609,10 +607,10 @@ const an = { class: "konnectio-event-listings" }, ln = {
609
607
  t("span", null, a(e(n)("event.selectProducts")), 1)
610
608
  ]),
611
609
  e(o) && e(o).length > 0 ? (l(), u("ul", sn, [
612
- (l(!0), u(A, null, z(e(o), ({
610
+ (l(!0), u(I, null, z(e(o), ({
613
611
  roomGroupId: s,
614
612
  addons: S,
615
- adultPerRoom: I
613
+ adultPerRoom: A
616
614
  }, y) => (l(), u("li", { key: s }, [
617
615
  t("h5", null, [
618
616
  t("span", null, a(e(n)("booking.reservation.room")) + " #" + a(y + 1), 1),
@@ -622,7 +620,7 @@ const an = { class: "konnectio-event-listings" }, ln = {
622
620
  type: "fas",
623
621
  color: "header"
624
622
  }),
625
- ye(" " + a(I) + ") ", 1)
623
+ ye(" " + a(A) + ") ", 1)
626
624
  ]),
627
625
  t("table", rn, [
628
626
  t("thead", null, [
@@ -637,7 +635,7 @@ const an = { class: "konnectio-event-listings" }, ln = {
637
635
  ])
638
636
  ]),
639
637
  t("tbody", null, [
640
- (l(!0), u(A, null, z(S, ({
638
+ (l(!0), u(I, null, z(S, ({
641
639
  id: N,
642
640
  cardinality: Q,
643
641
  name: W,
@@ -684,13 +682,13 @@ const an = { class: "konnectio-event-listings" }, ln = {
684
682
  ])) : c("", !0),
685
683
  e(L) ? (l(), u("table", gn, [
686
684
  t("tbody", null, [
687
- (l(!0), u(A, null, z(e(h).products, ({ id: s, name: S, price: I, description: y }) => (l(), u("tr", { key: s }, [
685
+ (l(!0), u(I, null, z(e(h).products, ({ id: s, name: S, price: A, description: y }) => (l(), u("tr", { key: s }, [
688
686
  t("td", kn, [
689
687
  t("b", null, [
690
688
  t("span", null, a(e(Pe)(S)), 1)
691
689
  ]),
692
690
  y && y !== S ? (l(), u("span", hn, a(e(Pe)(y)), 1)) : c("", !0),
693
- t("span", null, a(e(H)(I, e(ee))), 1)
691
+ t("span", null, a(e(H)(A, e(ee))), 1)
694
692
  ]),
695
693
  t("td", yn, [
696
694
  m(le, {
@@ -755,7 +753,7 @@ const an = { class: "konnectio-event-listings" }, ln = {
755
753
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
756
754
  required: ""
757
755
  }, null, 8, ["modelValue", "label", "placeholder"]),
758
- e(q) ? (l(), P(Dt, {
756
+ e(q) ? (l(), P($t, {
759
757
  key: 0,
760
758
  modelValue: e(w),
761
759
  "onUpdate:modelValue": p[3] || (p[3] = (s) => R(w) ? w.value = s : null),
@@ -825,8 +823,8 @@ const an = { class: "konnectio-event-listings" }, ln = {
825
823
  _: 1
826
824
  }, 8, ["styling"]));
827
825
  }
828
- }), Te = /* @__PURE__ */ se(Pn, [["__scopeId", "data-v-8edf3535"]]), Vn = nt(), $n = ot();
829
- class Dn extends HTMLElement {
826
+ }), Te = /* @__PURE__ */ se(Pn, [["__scopeId", "data-v-5c3efe22"]]), Vn = tt(), Dn = ot();
827
+ class $n extends HTMLElement {
830
828
  vueApp;
831
829
  constructor() {
832
830
  super();
@@ -835,14 +833,14 @@ class Dn extends HTMLElement {
835
833
  this.vueApp.unmount();
836
834
  }
837
835
  connectedCallback() {
838
- const n = at(Te, this.attributes);
839
- this.vueApp = tt(Te, n), this.vueApp.provide("emitter", $n), this.vueApp.use(lt), this.vueApp.use(Vn), this.vueApp.use(wt), this.vueApp.use(bt), this.vueApp.use(Tt), this.vueApp.use(vt, { bootstrap: !0 });
836
+ const n = nt(Te, this.attributes);
837
+ this.vueApp = at(Te, n), this.vueApp.provide("emitter", Dn), this.vueApp.use(lt), this.vueApp.use(Vn), this.vueApp.use(wt), this.vueApp.use(bt), this.vueApp.use(Tt), this.vueApp.use(vt, { bootstrap: !0 });
840
838
  const r = document.createElement("div");
841
839
  this.vueApp.mount(r), this.appendChild(r.children[0]);
842
840
  }
843
841
  }
844
- window.customElements.define("konnectio-event", Dn);
842
+ window.customElements.define("konnectio-event", $n);
845
843
  export {
846
- Dn as default
844
+ $n as default
847
845
  };
848
846
  //# sourceMappingURL=event.js.map
package/dist/event.js.br CHANGED
Binary file