@konnectio/core 4.0.56-rc31 → 4.0.56-rc33

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 (46) hide show
  1. package/dist/{ActionField-qP-3ktN4.js → ActionField-tze5AH3K.js} +10 -10
  2. package/dist/ActionField-tze5AH3K.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BO4Erg_O.js +277 -0
  4. package/dist/AvailabilitySkeleton-BO4Erg_O.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js +7681 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js.br +0 -0
  7. package/dist/{CheckoutWindow-RWkSWvbk.js → CheckoutWindow-CIZWV-gI.js} +55 -55
  8. package/dist/CheckoutWindow-CIZWV-gI.js.br +0 -0
  9. package/dist/{ErrorMessage-z0JJ8Q3W.js → ErrorMessage-BzZDhDkX.js} +1 -1
  10. package/dist/ErrorMessage-BzZDhDkX.js.br +0 -0
  11. package/dist/EventAvailabilityForm-D73TXrag.js +422 -0
  12. package/dist/EventAvailabilityForm-D73TXrag.js.br +0 -0
  13. package/dist/Field-oZiblvji.js +41 -0
  14. package/dist/Field-oZiblvji.js.br +0 -0
  15. package/dist/{Field-C9r1d8IB.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js} +11521 -11751
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js.br +0 -0
  17. package/dist/{TermsOfService-oZz-B-KI.js → TermsOfService-yJlRLBDk.js} +2 -2
  18. package/dist/availability.js +45 -46
  19. package/dist/availability.js.br +0 -0
  20. package/dist/event.js +622 -491
  21. package/dist/event.js.br +0 -0
  22. package/dist/gift-card-validation.js +87 -77
  23. package/dist/gift-card-validation.js.br +0 -0
  24. package/dist/gift-card.js +261 -260
  25. package/dist/gift-card.js.br +0 -0
  26. package/dist/hotel.js +1016 -1027
  27. package/dist/hotel.js.br +0 -0
  28. package/dist/{masonry.plugin-fa0tia29.js → masonry.plugin-B71LqMrD.js} +1263 -1271
  29. package/dist/masonry.plugin-B71LqMrD.js.br +0 -0
  30. package/dist/polyfill.js +2507 -2503
  31. package/dist/polyfill.js.br +0 -0
  32. package/dist/style.css +1 -1
  33. package/dist/style.css.br +0 -0
  34. package/package.json +25 -24
  35. package/dist/ActionField-qP-3ktN4.js.br +0 -0
  36. package/dist/AvailabilitySkeleton-uaCnfwHM.js +0 -7665
  37. package/dist/AvailabilitySkeleton-uaCnfwHM.js.br +0 -0
  38. package/dist/CheckoutWindow-RWkSWvbk.js.br +0 -0
  39. package/dist/ErrorMessage-z0JJ8Q3W.js.br +0 -0
  40. package/dist/EventAvailabilityForm-LIgUj1t3.js +0 -325
  41. package/dist/EventAvailabilityForm-LIgUj1t3.js.br +0 -0
  42. package/dist/Field-C9r1d8IB.js.br +0 -0
  43. package/dist/HotelAvailabilityForm-AQ4VA15t.js +0 -212
  44. package/dist/HotelAvailabilityForm-AQ4VA15t.js.br +0 -0
  45. package/dist/masonry.plugin-fa0tia29.js.br +0 -0
  46. /package/dist/{_commonjsHelpers-f3sTPFkQ.js → _commonjsHelpers-DaMA6jEr.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { d as o, u as a, f as r, k as i, x as c, h as e, j as s, y as p, v as _ } from "./Field-C9r1d8IB.js";
2
- import { B as d } from "./CheckoutWindow-RWkSWvbk.js";
1
+ import { d as o, u as a, o as r, a as i, w as c, f as e, g as s, h as p, _ } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js";
2
+ import { B as d } from "./CheckoutWindow-CIZWV-gI.js";
3
3
  const l = { class: "konnectio-terms-side-panel" }, f = ["innerHTML"], m = /* @__PURE__ */ o({
4
4
  __name: "TermsOfService",
5
5
  props: {
@@ -1,9 +1,8 @@
1
- import { d as C, u as w, r as E, e as m, o as S, f as c, k as v, x as d, S as T, h as a, m as b, g as B, p as y, q as f, A, j as L, F as I, l as _, B as N, D as H, E as M, G as z, H as F, v as P, J as V, K as j, L as O, M as $ } from "./Field-C9r1d8IB.js";
2
- import { H as D } from "./HotelAvailabilityForm-AQ4VA15t.js";
3
- import { E as K } from "./EventAvailabilityForm-LIgUj1t3.js";
4
- import { E as U } from "./ErrorMessage-z0JJ8Q3W.js";
5
- import { A as Z } from "./AvailabilitySkeleton-uaCnfwHM.js";
6
- const q = (l) => (z("data-v-fac0bb15"), l = l(), F(), l), G = { class: "konnectio-availability-module" }, J = { class: "konnectio-availability-navigation" }, x = /* @__PURE__ */ q(() => /* @__PURE__ */ a("div", { class: "konnectio-availability-divider" }, null, -1)), Q = { class: "konnectio-availability-search-form" }, R = /* @__PURE__ */ C({
1
+ import { d as w, u as E, l as S, m as T, i as h, p as B, o as r, a as v, w as d, S as I, f as a, e as b, c as N, n as f, q as A, t as L, g as _, F as z, b as g, s as M, v as F, x as H, y as P, z as V, _ as O, A as $, B as j, D, G as U } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js";
2
+ import { H as Z, A as q } from "./AvailabilitySkeleton-BO4Erg_O.js";
3
+ import { E as G } from "./EventAvailabilityForm-D73TXrag.js";
4
+ import { E as K } from "./ErrorMessage-BzZDhDkX.js";
5
+ const x = (l) => (P("data-v-5c1e7504"), l = l(), V(), l), J = { class: "konnectio-availability-module" }, Q = { class: "konnectio-availability-navigation" }, R = /* @__PURE__ */ x(() => /* @__PURE__ */ a("div", { class: "konnectio-availability-divider" }, null, -1)), W = { class: "konnectio-availability-search-form" }, X = /* @__PURE__ */ w({
7
6
  name: "AvailabilityLayout",
8
7
  __name: "Availability",
9
8
  props: {
@@ -15,59 +14,59 @@ const q = (l) => (z("data-v-fac0bb15"), l = l(), F(), l), G = { class: "konnecti
15
14
  styling: {}
16
15
  },
17
16
  setup(l) {
18
- const { t: r } = w(), o = l, i = E(), h = m(() => !!o.hotelLink || !!o.eventLink), p = m(() => !!o.hotelLink && !!o.eventLink), s = m(() => i.value === "hotel"), u = m(() => i.value === "event"), t = (e) => i.value = e;
19
- return S(() => {
20
- !o.hotelLink && o.eventLink ? i.value = "event" : i.value = "hotel";
21
- }), (e, n) => (c(), v(M, { styling: e.styling }, {
17
+ const { t: c } = E(), p = S(), i = l, o = T(), m = h(() => !!i.hotelLink || !!i.eventLink), s = h(() => !!i.hotelLink && !!i.eventLink), u = h(() => o.value === "hotel"), t = h(() => o.value === "event"), n = (e) => o.value = e;
18
+ return B(() => {
19
+ p.fetchMetadata(), !i.hotelLink && i.eventLink ? o.value = "event" : o.value = "hotel";
20
+ }), (e, k) => (r(), v(H, { styling: e.styling }, {
22
21
  default: d(() => [
23
- h.value ? (c(), v(T, { key: 0 }, {
22
+ m.value ? (r(), v(I, { key: 0 }, {
24
23
  default: d(() => [
25
24
  a("div", null, [
26
- b(H, {
25
+ b(F, {
27
26
  "access-token": e.accessToken,
28
- type: "hotel"
27
+ type: "none"
29
28
  }, {
30
29
  default: d(() => [
31
- a("div", G, [
32
- p.value ? (c(), B(I, { key: 0 }, [
33
- a("nav", J, [
30
+ a("div", J, [
31
+ s.value ? (r(), N(z, { key: 0 }, [
32
+ a("nav", Q, [
34
33
  a("ul", null, [
35
34
  a("li", null, [
36
35
  a("button", {
37
- class: y({ active: s.value }),
38
- onClick: n[0] || (n[0] = f((g) => t("hotel"), ["prevent"]))
36
+ class: f({ active: u.value }),
37
+ onClick: k[0] || (k[0] = A((C) => n("hotel"), ["prevent"]))
39
38
  }, [
40
- a("span", null, A(L(r)("availability.hotel")), 1)
39
+ a("span", null, L(_(c)("availability.hotel")), 1)
41
40
  ], 2)
42
41
  ]),
43
42
  a("li", null, [
44
43
  a("button", {
45
- class: y({ active: u.value }),
46
- onClick: n[1] || (n[1] = f((g) => t("event"), ["prevent"]))
44
+ class: f({ active: t.value }),
45
+ onClick: k[1] || (k[1] = A((C) => n("event"), ["prevent"]))
47
46
  }, [
48
- a("span", null, A(L(r)("availability.events")), 1)
47
+ a("span", null, L(_(c)("availability.events")), 1)
49
48
  ], 2)
50
49
  ])
51
50
  ])
52
51
  ]),
53
- x
54
- ], 64)) : _("", !0),
55
- a("div", Q, [
56
- b(N, {
52
+ R
53
+ ], 64)) : g("", !0),
54
+ a("div", W, [
55
+ b(M, {
57
56
  name: "fade",
58
57
  mode: "out-in",
59
58
  appear: ""
60
59
  }, {
61
60
  default: d(() => [
62
- s.value ? (c(), v(D, {
61
+ u.value ? (r(), v(Z, {
63
62
  key: 0,
64
63
  link: e.hotelLink,
65
64
  "selected-location": Number(e.hotelLocation)
66
- }, null, 8, ["link", "selected-location"])) : u.value ? (c(), v(K, {
65
+ }, null, 8, ["link", "selected-location"])) : t.value ? (r(), v(G, {
67
66
  key: 1,
68
67
  link: e.eventLink,
69
68
  "selected-location": Number(e.eventLocation)
70
- }, null, 8, ["link", "selected-location"])) : _("", !0)
69
+ }, null, 8, ["link", "selected-location"])) : g("", !0)
71
70
  ]),
72
71
  _: 1
73
72
  })
@@ -80,13 +79,13 @@ const q = (l) => (z("data-v-fac0bb15"), l = l(), F(), l), G = { class: "konnecti
80
79
  ]),
81
80
  fallback: d(() => [
82
81
  a("div", null, [
83
- b(Z, {
84
- view: p.value ? "both" : i.value
82
+ b(q, {
83
+ view: s.value ? "both" : o.value
85
84
  }, null, 8, ["view"])
86
85
  ])
87
86
  ]),
88
87
  _: 1
89
- })) : (c(), v(U, {
88
+ })) : (r(), v(K, {
90
89
  key: 1,
91
90
  title: "Unable to render Availability module",
92
91
  description: `The 'hotel-link' and/or 'event-link' properties are missing.<br>\r
@@ -96,8 +95,8 @@ const q = (l) => (z("data-v-fac0bb15"), l = l(), F(), l), G = { class: "konnecti
96
95
  _: 1
97
96
  }, 8, ["styling"]));
98
97
  }
99
- }), k = /* @__PURE__ */ P(R, [["__scopeId", "data-v-fac0bb15"]]), W = V(), X = $();
100
- class Y extends HTMLElement {
98
+ }), y = /* @__PURE__ */ O(X, [["__scopeId", "data-v-5c1e7504"]]), Y = $(), ee = U();
99
+ class te extends HTMLElement {
101
100
  vueApp;
102
101
  constructor() {
103
102
  super();
@@ -106,25 +105,25 @@ class Y extends HTMLElement {
106
105
  this.vueApp.unmount();
107
106
  }
108
107
  connectedCallback() {
109
- const r = typeof k == "function" ? k.options : k;
110
- let o = Array.isArray(r.props) ? r.props : Object.keys(r.props || {});
111
- const i = (t) => t.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (e, n) => (n ? "-" : "") + e.toLowerCase()), h = (t) => t.replace(/-./g, (e) => e[1].toUpperCase()), p = {};
112
- o = o.map(i);
108
+ const c = typeof y == "function" ? y.options : y;
109
+ let p = Array.isArray(c.props) ? c.props : Object.keys(c.props || {});
110
+ const i = (t) => t.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, e) => (e ? "-" : "") + n.toLowerCase()), o = (t) => t.replace(/-./g, (n) => n[1].toUpperCase()), m = {};
111
+ p = p.map(i);
113
112
  const s = {};
114
113
  for (const t of this.attributes) {
115
- const n = t.name.split(".");
116
- n.length > 1 && (s[n[0]] || (s[n[0]] = {}), s[n[0]][h(n[1])] = t.value);
114
+ const e = t.name.split(".");
115
+ e.length > 1 && (s[e[0]] || (s[e[0]] = {}), s[e[0]][o(e[1])] = t.value);
117
116
  }
118
- for (const t of o) {
119
- let e = this.attributes.getNamedItem(t)?.value;
120
- s.hasOwnProperty(t) && (e = s[t]), p[t] = e;
117
+ for (const t of p) {
118
+ let n = this.attributes.getNamedItem(t)?.value;
119
+ s.hasOwnProperty(t) && (n = s[t]), m[t] = n;
121
120
  }
122
- this.vueApp = j(k, p), this.vueApp.provide("emitter", X), this.vueApp.use(O), this.vueApp.use(W);
121
+ this.vueApp = j(y, m), this.vueApp.provide("emitter", ee), this.vueApp.use(D), this.vueApp.use(Y);
123
122
  const u = document.createElement("div");
124
123
  this.vueApp.mount(u), this.appendChild(u.children[0]);
125
124
  }
126
125
  }
127
- window.customElements.define("konnectio-availability", Y);
126
+ window.customElements.define("konnectio-availability", te);
128
127
  export {
129
- Y as default
128
+ te as default
130
129
  };
Binary file