@konnectio/core 4.0.56-rc35 → 4.0.56-rc36

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 (53) hide show
  1. package/dist/{ActionField-Bruv7ZZW.js → ActionField-Ct6NhfWq.js} +43 -34
  2. package/dist/ActionField-Ct6NhfWq.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-DOhrMVl4.js +286 -0
  4. package/dist/AvailabilitySkeleton-DOhrMVl4.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js} +519 -510
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js.br +0 -0
  7. package/dist/{CheckoutWindow-Dn3fiFuv.js → CheckoutWindow-BVIOQbbL.js} +143 -134
  8. package/dist/CheckoutWindow-BVIOQbbL.js.br +0 -0
  9. package/dist/{ErrorMessage-VK8egk99.js → ErrorMessage-DTSuSB8R.js} +27 -18
  10. package/dist/ErrorMessage-DTSuSB8R.js.br +0 -0
  11. package/dist/EventAvailabilityForm-DVcDsdr8.js +432 -0
  12. package/dist/EventAvailabilityForm-DVcDsdr8.js.br +0 -0
  13. package/dist/Field-IsLH1tNU.js +50 -0
  14. package/dist/Field-IsLH1tNU.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js +21280 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js.br +0 -0
  17. package/dist/TermsOfService-BORqI07-.js +35 -0
  18. package/dist/TermsOfService-BORqI07-.js.br +0 -0
  19. package/dist/_commonjsHelpers-UWZO_9XV.js +11796 -0
  20. package/dist/_commonjsHelpers-UWZO_9XV.js.br +0 -0
  21. package/dist/availability.js +60 -50
  22. package/dist/availability.js.br +0 -0
  23. package/dist/event.js +284 -274
  24. package/dist/event.js.br +0 -0
  25. package/dist/gift-card-validation.js +75 -65
  26. package/dist/gift-card-validation.js.br +0 -0
  27. package/dist/gift-card.js +242 -232
  28. package/dist/gift-card.js.br +0 -0
  29. package/dist/hotel.js +697 -693
  30. package/dist/hotel.js.br +0 -0
  31. package/dist/{masonry.plugin-WFnnzw7L.js → masonry.plugin-gY-oSFpV.js} +43 -34
  32. package/dist/masonry.plugin-gY-oSFpV.js.br +0 -0
  33. package/dist/navigation.js +10 -1
  34. package/dist/polyfill.js +14745 -4715
  35. package/dist/polyfill.js.br +0 -0
  36. package/dist/style.css +1 -1
  37. package/dist/style.css.br +0 -0
  38. package/package.json +8 -6
  39. package/dist/ActionField-Bruv7ZZW.js.br +0 -0
  40. package/dist/AvailabilitySkeleton-DxVPZPw3.js +0 -277
  41. package/dist/AvailabilitySkeleton-DxVPZPw3.js.br +0 -0
  42. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js.br +0 -0
  43. package/dist/CheckoutWindow-Dn3fiFuv.js.br +0 -0
  44. package/dist/ErrorMessage-VK8egk99.js.br +0 -0
  45. package/dist/EventAvailabilityForm-DbkL5luy.js +0 -422
  46. package/dist/EventAvailabilityForm-DbkL5luy.js.br +0 -0
  47. package/dist/Field-fZ3Q2e9-.js +0 -41
  48. package/dist/Field-fZ3Q2e9-.js.br +0 -0
  49. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js +0 -30755
  50. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js.br +0 -0
  51. package/dist/TermsOfService-2g29W45E.js +0 -26
  52. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  53. package/dist/masonry.plugin-WFnnzw7L.js.br +0 -0
@@ -1,8 +1,17 @@
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-CJgfqs-l.js";
2
- import { H as Z, A as q } from "./AvailabilitySkeleton-DxVPZPw3.js";
3
- import { E as G } from "./EventAvailabilityForm-DbkL5luy.js";
4
- import { E as K } from "./ErrorMessage-VK8egk99.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({
1
+ import { d as C, r as E, g as y, h as I, o as p, a as d, w as v, S, f as a, e as f, c as T, n as h, i as A, t as g, u as L, F as N, b as _, T as B, p as D, j as M, k as z } from "./_commonjsHelpers-UWZO_9XV.js";
2
+ import { u as F, d as H, e as P, f as V, _ as j, g as O, h as $, i as U, m as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js";
3
+ import { H as K, A as q } from "./AvailabilitySkeleton-DOhrMVl4.js";
4
+ import { E as G } from "./EventAvailabilityForm-DVcDsdr8.js";
5
+ import { E as J } from "./ErrorMessage-DTSuSB8R.js";
6
+ import "./navigation.js";
7
+ (function() {
8
+ try {
9
+ var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, o = new Error().stack;
10
+ o && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[o] = "5d34ce1f-3a19-451d-a42b-b4b13983d8e4", n._sentryDebugIdIdentifier = "sentry-dbid-5d34ce1f-3a19-451d-a42b-b4b13983d8e4");
11
+ } catch {
12
+ }
13
+ })();
14
+ const Q = (n) => (D("data-v-5c1e7504"), n = n(), M(), n), R = { class: "konnectio-availability-module" }, W = { class: "konnectio-availability-navigation" }, X = /* @__PURE__ */ Q(() => /* @__PURE__ */ a("div", { class: "konnectio-availability-divider" }, null, -1)), Y = { class: "konnectio-availability-search-form" }, x = /* @__PURE__ */ C({
6
15
  name: "AvailabilityLayout",
7
16
  __name: "Availability",
8
17
  props: {
@@ -13,60 +22,60 @@ const x = (l) => (P("data-v-5c1e7504"), l = l(), V(), l), J = { class: "konnecti
13
22
  hotelLocation: {},
14
23
  styling: {}
15
24
  },
16
- setup(l) {
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 }, {
21
- default: d(() => [
22
- m.value ? (r(), v(I, { key: 0 }, {
23
- default: d(() => [
25
+ setup(n) {
26
+ const { t: o } = F(), c = H(), s = n, l = E(), m = y(() => !!s.hotelLink || !!s.eventLink), r = y(() => !!s.hotelLink && !!s.eventLink), u = y(() => l.value === "hotel"), t = y(() => l.value === "event"), i = (e) => l.value = e;
27
+ return I(() => {
28
+ c.fetchMetadata(), !s.hotelLink && s.eventLink ? l.value = "event" : l.value = "hotel";
29
+ }), (e, b) => (p(), d(V, { styling: e.styling }, {
30
+ default: v(() => [
31
+ m.value ? (p(), d(S, { key: 0 }, {
32
+ default: v(() => [
24
33
  a("div", null, [
25
- b(F, {
34
+ f(P, {
26
35
  "access-token": e.accessToken,
27
36
  type: "none"
28
37
  }, {
29
- default: d(() => [
30
- a("div", J, [
31
- s.value ? (r(), N(z, { key: 0 }, [
32
- a("nav", Q, [
38
+ default: v(() => [
39
+ a("div", R, [
40
+ r.value ? (p(), T(N, { key: 0 }, [
41
+ a("nav", W, [
33
42
  a("ul", null, [
34
43
  a("li", null, [
35
44
  a("button", {
36
- class: f({ active: u.value }),
37
- onClick: k[0] || (k[0] = A((C) => n("hotel"), ["prevent"]))
45
+ class: h({ active: u.value }),
46
+ onClick: b[0] || (b[0] = A((w) => i("hotel"), ["prevent"]))
38
47
  }, [
39
- a("span", null, L(_(c)("availability.hotel")), 1)
48
+ a("span", null, g(L(o)("availability.hotel")), 1)
40
49
  ], 2)
41
50
  ]),
42
51
  a("li", null, [
43
52
  a("button", {
44
- class: f({ active: t.value }),
45
- onClick: k[1] || (k[1] = A((C) => n("event"), ["prevent"]))
53
+ class: h({ active: t.value }),
54
+ onClick: b[1] || (b[1] = A((w) => i("event"), ["prevent"]))
46
55
  }, [
47
- a("span", null, L(_(c)("availability.events")), 1)
56
+ a("span", null, g(L(o)("availability.events")), 1)
48
57
  ], 2)
49
58
  ])
50
59
  ])
51
60
  ]),
52
- R
53
- ], 64)) : g("", !0),
54
- a("div", W, [
55
- b(M, {
61
+ X
62
+ ], 64)) : _("", !0),
63
+ a("div", Y, [
64
+ f(B, {
56
65
  name: "fade",
57
66
  mode: "out-in",
58
67
  appear: ""
59
68
  }, {
60
- default: d(() => [
61
- u.value ? (r(), v(Z, {
69
+ default: v(() => [
70
+ u.value ? (p(), d(K, {
62
71
  key: 0,
63
72
  link: e.hotelLink,
64
73
  "selected-location": Number(e.hotelLocation)
65
- }, null, 8, ["link", "selected-location"])) : t.value ? (r(), v(G, {
74
+ }, null, 8, ["link", "selected-location"])) : t.value ? (p(), d(G, {
66
75
  key: 1,
67
76
  link: e.eventLink,
68
77
  "selected-location": Number(e.eventLocation)
69
- }, null, 8, ["link", "selected-location"])) : g("", !0)
78
+ }, null, 8, ["link", "selected-location"])) : _("", !0)
70
79
  ]),
71
80
  _: 1
72
81
  })
@@ -77,15 +86,15 @@ const x = (l) => (P("data-v-5c1e7504"), l = l(), V(), l), J = { class: "konnecti
77
86
  }, 8, ["access-token"])
78
87
  ])
79
88
  ]),
80
- fallback: d(() => [
89
+ fallback: v(() => [
81
90
  a("div", null, [
82
- b(q, {
83
- view: s.value ? "both" : o.value
91
+ f(q, {
92
+ view: r.value ? "both" : l.value
84
93
  }, null, 8, ["view"])
85
94
  ])
86
95
  ]),
87
96
  _: 1
88
- })) : (r(), v(K, {
97
+ })) : (p(), d(J, {
89
98
  key: 1,
90
99
  title: "Unable to render Availability module",
91
100
  description: `The 'hotel-link' and/or 'event-link' properties are missing.<br>\r
@@ -95,8 +104,8 @@ const x = (l) => (P("data-v-5c1e7504"), l = l(), V(), l), J = { class: "konnecti
95
104
  _: 1
96
105
  }, 8, ["styling"]));
97
106
  }
98
- }), y = /* @__PURE__ */ O(X, [["__scopeId", "data-v-5c1e7504"]]), Y = $(), ee = U();
99
- class te extends HTMLElement {
107
+ }), k = /* @__PURE__ */ j(x, [["__scopeId", "data-v-5c1e7504"]]), ee = O(), te = Z();
108
+ class ae extends HTMLElement {
100
109
  vueApp;
101
110
  constructor() {
102
111
  super();
@@ -105,25 +114,26 @@ class te extends HTMLElement {
105
114
  this.vueApp.unmount();
106
115
  }
107
116
  connectedCallback() {
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);
112
- const s = {};
117
+ const o = typeof k == "function" ? k.options : k;
118
+ let c = Array.isArray(o.props) ? o.props : Object.keys(o.props || {});
119
+ const s = (t) => t.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (i, e) => (e ? "-" : "") + i.toLowerCase()), l = (t) => t.replace(/-./g, (i) => i[1].toUpperCase()), m = {};
120
+ c = c.map(s);
121
+ const r = {};
113
122
  for (const t of this.attributes) {
114
123
  const e = t.name.split(".");
115
- e.length > 1 && (s[e[0]] || (s[e[0]] = {}), s[e[0]][o(e[1])] = t.value);
124
+ e.length > 1 && (r[e[0]] || (r[e[0]] = {}), r[e[0]][l(e[1])] = t.value);
116
125
  }
117
- for (const t of p) {
118
- let n = this.attributes.getNamedItem(t)?.value;
119
- s.hasOwnProperty(t) && (n = s[t]), m[t] = n;
126
+ for (const t of c) {
127
+ let i = this.attributes.getNamedItem(t)?.value;
128
+ r.hasOwnProperty(t) && (i = r[t]), m[t] = i;
120
129
  }
121
- this.vueApp = j(y, m), this.vueApp.provide("emitter", ee), this.vueApp.use(D), this.vueApp.use(Y);
130
+ this.vueApp = z(k, m), $(this.vueApp), this.vueApp.provide("emitter", te), this.vueApp.use(U), this.vueApp.use(ee);
122
131
  const u = document.createElement("div");
123
132
  this.vueApp.mount(u), this.appendChild(u.children[0]);
124
133
  }
125
134
  }
126
- window.customElements.define("konnectio-availability", te);
135
+ window.customElements.define("konnectio-availability", ae);
127
136
  export {
128
- te as default
137
+ ae as default
129
138
  };
139
+ //# sourceMappingURL=availability.js.map
Binary file