@konnectio/core 4.0.62 → 4.0.64

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 (72) hide show
  1. package/dist/{ActionField-8uyqR4s2.js → ActionField-D28Pe5Bb.js} +33 -25
  2. package/dist/ActionField-D28Pe5Bb.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DR0TlG1c.js → AvailabilitySkeleton-BGEhEqa-.js} +123 -115
  4. package/dist/AvailabilitySkeleton-BGEhEqa-.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-IMAsOOYG.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js} +1089 -1081
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js.br +0 -0
  7. package/dist/{CheckoutWindow-b6nqgL-q.js → CheckoutWindow-Cv7p0DrF.js} +174 -166
  8. package/dist/CheckoutWindow-Cv7p0DrF.js.br +0 -0
  9. package/dist/{ErrorMessage-CTB9P7th.js → ErrorMessage-T11Ou3eh.js} +24 -16
  10. package/dist/ErrorMessage-T11Ou3eh.js.br +0 -0
  11. package/dist/EventAvailabilityForm-DeqQKdKV.js +125 -0
  12. package/dist/EventAvailabilityForm-DeqQKdKV.js.br +0 -0
  13. package/dist/Field-DcoRYqr8.js +58 -0
  14. package/dist/Field-DcoRYqr8.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js} +2031 -2022
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js.br +0 -0
  17. package/dist/TermsOfService-CL0zaNw_.js +44 -0
  18. package/dist/TermsOfService-CL0zaNw_.js.br +0 -0
  19. package/dist/_-C5tf0vwv.js +20 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js +77 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js.br +0 -0
  22. package/dist/{_commonjsHelpers-DZ_3pocK.js → _commonjsHelpers-BeCRh3Xf.js} +618 -558
  23. package/dist/_commonjsHelpers-BeCRh3Xf.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-gnd2S326.js → _sentry-release-injection-file-CY9ljBue.js} +1643 -1635
  25. package/dist/_sentry-release-injection-file-CY9ljBue.js.br +0 -0
  26. package/dist/availability.js +67 -59
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +29 -21
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +276 -260
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +71 -63
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +137 -129
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/giftCard-CHf9cbmB.js +134 -0
  37. package/dist/giftCard-CHf9cbmB.js.br +0 -0
  38. package/dist/hotel.js +812 -803
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-BNjra0SH.js → masonry.plugin-q1wqMEhq.js} +860 -852
  41. package/dist/masonry.plugin-q1wqMEhq.js.br +0 -0
  42. package/dist/{mitt-B7XZkC8D.js → mitt-CZC0Vuw7.js} +505 -497
  43. package/dist/mitt-CZC0Vuw7.js.br +0 -0
  44. package/dist/polyfill.js +6472 -6259
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-lYuGbuqk.js → style-Di3bMYae.js} +392 -384
  47. package/dist/style-Di3bMYae.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/package.json +8 -8
  51. package/dist/ActionField-8uyqR4s2.js.br +0 -0
  52. package/dist/AvailabilitySkeleton-DR0TlG1c.js.br +0 -0
  53. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-IMAsOOYG.js.br +0 -0
  54. package/dist/CheckoutWindow-b6nqgL-q.js.br +0 -0
  55. package/dist/ErrorMessage-CTB9P7th.js.br +0 -0
  56. package/dist/EventAvailabilityForm-Dz_XUv-P.js +0 -117
  57. package/dist/EventAvailabilityForm-Dz_XUv-P.js.br +0 -0
  58. package/dist/Field-D74LzwJ5.js +0 -50
  59. package/dist/Field-D74LzwJ5.js.br +0 -0
  60. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js.br +0 -0
  61. package/dist/TermsOfService-BWi7ax17.js +0 -36
  62. package/dist/TermsOfService-BWi7ax17.js.br +0 -0
  63. package/dist/_-D5EdBcrp.js +0 -12
  64. package/dist/_.vue_vue_type_style_index_0_lang-DXnzUVHn.js +0 -69
  65. package/dist/_.vue_vue_type_style_index_0_lang-DXnzUVHn.js.br +0 -0
  66. package/dist/_commonjsHelpers-DZ_3pocK.js.br +0 -0
  67. package/dist/_sentry-release-injection-file-gnd2S326.js.br +0 -0
  68. package/dist/giftCard-Dl1tPQsP.js +0 -126
  69. package/dist/giftCard-Dl1tPQsP.js.br +0 -0
  70. package/dist/masonry.plugin-BNjra0SH.js.br +0 -0
  71. package/dist/mitt-B7XZkC8D.js.br +0 -0
  72. package/dist/style-lYuGbuqk.js.br +0 -0
@@ -1,18 +1,26 @@
1
- import { d as E, r as I, c as v, o as S, a as u, b as m, w as f, S as T, e as t, f as h, g as N, n as _, h as g, t as L, u as A, F as z, i as w, T as B, p as D, j as M, k as P } from "./_sentry-release-injection-file-gnd2S326.js";
2
- import { u as F, c as H, i as V, m as j } from "./mitt-B7XZkC8D.js";
3
- import { u as O, C as $, _ as U, c as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js";
4
- import { _ as x } from "./_.vue_vue_type_style_index_0_lang-DXnzUVHn.js";
5
- import { H as K, A as q } from "./AvailabilitySkeleton-DR0TlG1c.js";
6
- import { E as G } from "./EventAvailabilityForm-Dz_XUv-P.js";
7
- import { E as J } from "./ErrorMessage-CTB9P7th.js";
1
+ import { d as I, r as S, c as v, o as T, a as u, b as f, w as m, S as M, e as t, f as A, g as B, n as _, h as w, t as L, u as g, F as N, i as C, T as P, p as z, j as D, k as j } from "./_sentry-release-injection-file-CY9ljBue.js";
2
+ import { u as F, c as H, i as O, m as V } from "./mitt-CZC0Vuw7.js";
3
+ import { u as $, C as K, _ as U, c as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js";
4
+ import { _ as x } from "./_.vue_vue_type_style_index_0_lang-BWAizmh6.js";
5
+ import { H as q, A as J } from "./AvailabilitySkeleton-BGEhEqa-.js";
6
+ import { E as Q } from "./EventAvailabilityForm-DeqQKdKV.js";
7
+ import { E as R } from "./ErrorMessage-T11Ou3eh.js";
8
8
  (function() {
9
9
  try {
10
- var a = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, i = new Error().stack;
11
- i && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[i] = "ad0e92c2-c7f2-484d-9f87-033ec2c01338", a._sentryDebugIdIdentifier = "sentry-dbid-ad0e92c2-c7f2-484d-9f87-033ec2c01338");
10
+ var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, o = new Error().stack;
11
+ o && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[o] = "0d222ef5-aa6b-4e85-bd73-3e24851cbd18", n._sentryDebugIdIdentifier = "sentry-dbid-0d222ef5-aa6b-4e85-bd73-3e24851cbd18");
12
12
  } catch {
13
13
  }
14
14
  })();
15
- const Q = (a) => (D("data-v-7bdb795c"), a = a(), M(), a), R = { class: "konnectio-availability-module" }, W = { class: "konnectio-availability-navigation" }, X = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("div", { class: "konnectio-availability-divider" }, null, -1)), Y = { class: "konnectio-availability-search-form" }, ee = /* @__PURE__ */ E({
15
+ {
16
+ var k = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
17
+ k._sentryModuleMetadata = k._sentryModuleMetadata || {}, k._sentryModuleMetadata[new Error().stack] = Object.assign(
18
+ {},
19
+ k._sentryModuleMetadata[new Error().stack],
20
+ { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
21
+ );
22
+ }
23
+ const W = (n) => (z("data-v-7bdb795c"), n = n(), D(), n), X = { class: "konnectio-availability-module" }, Y = { class: "konnectio-availability-navigation" }, G = /* @__PURE__ */ W(() => /* @__PURE__ */ t("div", { class: "konnectio-availability-divider" }, null, -1)), ee = { class: "konnectio-availability-search-form" }, te = /* @__PURE__ */ I({
16
24
  name: "AvailabilityLayout",
17
25
  __name: "Availability",
18
26
  props: {
@@ -23,63 +31,63 @@ const Q = (a) => (D("data-v-7bdb795c"), a = a(), M(), a), R = { class: "konnecti
23
31
  hotelLocation: {},
24
32
  styling: {}
25
33
  },
26
- setup(a) {
27
- const { t: i } = F(), { fetchMetadata: p } = O(), o = a, l = I(), k = v(() => !!o.hotelLink || !!o.eventLink), c = v(() => !!o.hotelLink && !!o.eventLink), d = v(() => l.value === "hotel"), e = v(() => l.value === "event"), n = (r) => l.value = r, s = v(() => ({
34
+ setup(n) {
35
+ const { t: o } = F(), { fetchMetadata: p } = $(), i = n, l = S(), b = v(() => !!i.hotelLink || !!i.eventLink), r = v(() => !!i.hotelLink && !!i.eventLink), d = v(() => l.value === "hotel"), e = v(() => l.value === "event"), a = (c) => l.value = c, s = v(() => ({
28
36
  fontSize: "13px",
29
- ...o.styling
37
+ ...i.styling
30
38
  }));
31
- return S(() => {
32
- !o.hotelLink && o.eventLink ? l.value = "event" : l.value = "hotel";
33
- }), (r, b) => (u(), m($, { styling: s.value }, {
34
- default: f(() => [
35
- k.value ? (u(), m(T, { key: 0 }, {
36
- default: f(() => [
39
+ return T(() => {
40
+ !i.hotelLink && i.eventLink ? l.value = "event" : l.value = "hotel";
41
+ }), (c, y) => (u(), f(K, { styling: s.value }, {
42
+ default: m(() => [
43
+ b.value ? (u(), f(M, { key: 0 }, {
44
+ default: m(() => [
37
45
  t("div", null, [
38
- h(x, {
39
- "access-token": r.accessToken,
40
- callback: A(p)
46
+ A(x, {
47
+ "access-token": c.accessToken,
48
+ callback: g(p)
41
49
  }, {
42
- default: f(() => [
43
- t("div", R, [
44
- c.value ? (u(), N(z, { key: 0 }, [
45
- t("nav", W, [
50
+ default: m(() => [
51
+ t("div", X, [
52
+ r.value ? (u(), B(N, { key: 0 }, [
53
+ t("nav", Y, [
46
54
  t("ul", null, [
47
55
  t("li", null, [
48
56
  t("button", {
49
57
  class: _({ active: d.value }),
50
- onClick: b[0] || (b[0] = g((C) => n("hotel"), ["prevent"]))
58
+ onClick: y[0] || (y[0] = w((E) => a("hotel"), ["prevent"]))
51
59
  }, [
52
- t("span", null, L(A(i)("availability.hotel")), 1)
60
+ t("span", null, L(g(o)("availability.hotel")), 1)
53
61
  ], 2)
54
62
  ]),
55
63
  t("li", null, [
56
64
  t("button", {
57
65
  class: _({ active: e.value }),
58
- onClick: b[1] || (b[1] = g((C) => n("event"), ["prevent"]))
66
+ onClick: y[1] || (y[1] = w((E) => a("event"), ["prevent"]))
59
67
  }, [
60
- t("span", null, L(A(i)("availability.events")), 1)
68
+ t("span", null, L(g(o)("availability.events")), 1)
61
69
  ], 2)
62
70
  ])
63
71
  ])
64
72
  ]),
65
- X
66
- ], 64)) : w("", !0),
67
- t("div", Y, [
68
- h(B, {
73
+ G
74
+ ], 64)) : C("", !0),
75
+ t("div", ee, [
76
+ A(P, {
69
77
  name: "fade",
70
78
  mode: "out-in",
71
79
  appear: ""
72
80
  }, {
73
- default: f(() => [
74
- d.value ? (u(), m(K, {
81
+ default: m(() => [
82
+ d.value ? (u(), f(q, {
75
83
  key: 0,
76
- link: r.hotelLink,
77
- "selected-location": Number(r.hotelLocation)
78
- }, null, 8, ["link", "selected-location"])) : e.value ? (u(), m(G, {
84
+ link: c.hotelLink,
85
+ "selected-location": Number(c.hotelLocation)
86
+ }, null, 8, ["link", "selected-location"])) : e.value ? (u(), f(Q, {
79
87
  key: 1,
80
- link: r.eventLink,
81
- "selected-location": Number(r.eventLocation)
82
- }, null, 8, ["link", "selected-location"])) : w("", !0)
88
+ link: c.eventLink,
89
+ "selected-location": Number(c.eventLocation)
90
+ }, null, 8, ["link", "selected-location"])) : C("", !0)
83
91
  ]),
84
92
  _: 1
85
93
  })
@@ -90,15 +98,15 @@ const Q = (a) => (D("data-v-7bdb795c"), a = a(), M(), a), R = { class: "konnecti
90
98
  }, 8, ["access-token", "callback"])
91
99
  ])
92
100
  ]),
93
- fallback: f(() => [
101
+ fallback: m(() => [
94
102
  t("div", null, [
95
- h(q, {
96
- view: c.value ? "both" : l.value
103
+ A(J, {
104
+ view: r.value ? "both" : l.value
97
105
  }, null, 8, ["view"])
98
106
  ])
99
107
  ]),
100
108
  _: 1
101
- })) : (u(), m(J, {
109
+ })) : (u(), f(R, {
102
110
  key: 1,
103
111
  title: "Unable to render Availability module",
104
112
  description: `The 'hotel-link' and/or 'event-link' properties are missing.<br>\r
@@ -108,8 +116,8 @@ const Q = (a) => (D("data-v-7bdb795c"), a = a(), M(), a), R = { class: "konnecti
108
116
  _: 1
109
117
  }, 8, ["styling"]));
110
118
  }
111
- }), y = /* @__PURE__ */ U(ee, [["__scopeId", "data-v-7bdb795c"]]), te = H(), ae = j();
112
- class ne extends HTMLElement {
119
+ }), h = /* @__PURE__ */ U(te, [["__scopeId", "data-v-7bdb795c"]]), ne = H(), ae = V();
120
+ class oe extends HTMLElement {
113
121
  vueApp;
114
122
  constructor() {
115
123
  super();
@@ -118,26 +126,26 @@ class ne extends HTMLElement {
118
126
  this.vueApp.unmount();
119
127
  }
120
128
  connectedCallback() {
121
- const i = typeof y == "function" ? y.options : y;
122
- let p = Array.isArray(i.props) ? i.props : Object.keys(i.props || {});
123
- const o = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, s) => (s ? "-" : "") + n.toLowerCase()), l = (e) => e.replace(/-./g, (n) => n[1].toUpperCase()), k = {};
124
- p = p.map(o);
125
- const c = {};
129
+ const o = typeof h == "function" ? h.options : h;
130
+ let p = Array.isArray(o.props) ? o.props : Object.keys(o.props || {});
131
+ const i = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (a, s) => (s ? "-" : "") + a.toLowerCase()), l = (e) => e.replace(/-./g, (a) => a[1].toUpperCase()), b = {};
132
+ p = p.map(i);
133
+ const r = {};
126
134
  for (const e of this.attributes) {
127
135
  const s = e.name.split(".");
128
- s.length > 1 && (c[s[0]] || (c[s[0]] = {}), c[s[0]][l(s[1])] = e.value);
136
+ s.length > 1 && (r[s[0]] || (r[s[0]] = {}), r[s[0]][l(s[1])] = e.value);
129
137
  }
130
138
  for (const e of p) {
131
- let n = this.attributes.getNamedItem(e)?.value;
132
- c.hasOwnProperty(e) && (n = c[e]), k[e] = n;
139
+ let a = this.attributes.getNamedItem(e)?.value;
140
+ r.hasOwnProperty(e) && (a = r[e]), b[e] = a;
133
141
  }
134
- this.vueApp = P(y, k), Z(this.vueApp), this.vueApp.provide("emitter", ae), this.vueApp.use(V), this.vueApp.use(te);
142
+ this.vueApp = j(h, b), Z(this.vueApp), this.vueApp.provide("emitter", ae), this.vueApp.use(O), this.vueApp.use(ne);
135
143
  const d = document.createElement("div");
136
144
  this.vueApp.mount(d), this.appendChild(d.children[0]);
137
145
  }
138
146
  }
139
- window.customElements.define("konnectio-availability", ne);
147
+ window.customElements.define("konnectio-availability", oe);
140
148
  export {
141
- ne as default
149
+ oe as default
142
150
  };
143
151
  //# sourceMappingURL=availability.js.map
Binary file
package/dist/deep-link.js CHANGED
@@ -1,13 +1,21 @@
1
- import { d as u, r as f, o as m, a as h, g as b, e as v, t as y, l as k, k as A } from "./_sentry-release-injection-file-gnd2S326.js";
2
- import { c as g, i as w, m as _ } from "./mitt-B7XZkC8D.js";
1
+ import { d as f, r as m, o as h, a as y, g as b, e as k, t as w, l as g, k as v } from "./_sentry-release-injection-file-CY9ljBue.js";
2
+ import { c as A, i as _, m as C } from "./mitt-CZC0Vuw7.js";
3
3
  (function() {
4
4
  try {
5
- var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
6
- e && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[e] = "c823e8b7-9e49-4e0e-8844-9f842a88f451", n._sentryDebugIdIdentifier = "sentry-dbid-c823e8b7-9e49-4e0e-8844-9f842a88f451");
5
+ var s = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
6
+ e && (s._sentryDebugIds = s._sentryDebugIds || {}, s._sentryDebugIds[e] = "26136bff-4165-4528-80a8-0d42d72d57ae", s._sentryDebugIdIdentifier = "sentry-dbid-26136bff-4165-4528-80a8-0d42d72d57ae");
7
7
  } catch {
8
8
  }
9
9
  })();
10
- const C = ["href"], i = /* @__PURE__ */ u({
10
+ {
11
+ var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
12
+ i._sentryModuleMetadata = i._sentryModuleMetadata || {}, i._sentryModuleMetadata[new Error().stack] = Object.assign(
13
+ {},
14
+ i._sentryModuleMetadata[new Error().stack],
15
+ { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
16
+ );
17
+ }
18
+ const E = ["href"], d = /* @__PURE__ */ f({
11
19
  name: "KonnectioDeepLink",
12
20
  __name: "DeepLink",
13
21
  props: {
@@ -17,17 +25,17 @@ const C = ["href"], i = /* @__PURE__ */ u({
17
25
  adults: {},
18
26
  children: {}
19
27
  },
20
- setup(n) {
21
- const e = n, s = f();
22
- return m(() => {
28
+ setup(s) {
29
+ const e = s, n = m();
30
+ return h(() => {
23
31
  const o = new URL(e.baseurl || location.href);
24
- e.adults && o.searchParams.append("adults", e.adults), e.children && o.searchParams.append("children", e.children), s.value = o.href;
25
- }), (o, c) => (h(), b("a", { href: s.value }, [
26
- v("span", null, y(s.value), 1),
27
- k(o.$slots, "content")
28
- ], 8, C));
32
+ e.adults && o.searchParams.append("adults", e.adults), e.children && o.searchParams.append("children", e.children), n.value = o.href;
33
+ }), (o, c) => (y(), b("a", { href: n.value }, [
34
+ k("span", null, w(n.value), 1),
35
+ g(o.$slots, "content")
36
+ ], 8, E));
29
37
  }
30
- }), D = g(), I = _();
38
+ }), D = A(), I = C();
31
39
  class L extends HTMLElement {
32
40
  vueApp;
33
41
  constructor() {
@@ -37,22 +45,22 @@ class L extends HTMLElement {
37
45
  this.vueApp.unmount();
38
46
  }
39
47
  connectedCallback() {
40
- const e = typeof i == "function" ? i.options : i;
41
- let s = Array.isArray(e.props) ? e.props : Object.keys(e.props || {});
48
+ const e = typeof d == "function" ? d.options : d;
49
+ let n = Array.isArray(e.props) ? e.props : Object.keys(e.props || {});
42
50
  const o = (t) => t.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (a, r) => (r ? "-" : "") + a.toLowerCase()), c = (t) => t.replace(/-./g, (a) => a[1].toUpperCase()), l = {};
43
- s = s.map(o);
51
+ n = n.map(o);
44
52
  const p = {};
45
53
  for (const t of this.attributes) {
46
54
  const r = t.name.split(".");
47
55
  r.length > 1 && (p[r[0]] || (p[r[0]] = {}), p[r[0]][c(r[1])] = t.value);
48
56
  }
49
- for (const t of s) {
57
+ for (const t of n) {
50
58
  let a = this.attributes.getNamedItem(t)?.value;
51
59
  p.hasOwnProperty(t) && (a = p[t]), l[t] = a;
52
60
  }
53
- this.vueApp = A(i, l), this.vueApp.provide("emitter", I), this.vueApp.use(w), this.vueApp.use(D);
54
- const d = document.createElement("div");
55
- this.vueApp.mount(d), this.appendChild(d.children[0]);
61
+ this.vueApp = v(d, l), this.vueApp.provide("emitter", I), this.vueApp.use(_), this.vueApp.use(D);
62
+ const u = document.createElement("div");
63
+ this.vueApp.mount(u), this.appendChild(u.children[0]);
56
64
  }
57
65
  }
58
66
  window.customElements.define("konnectio-deep-link", L);
Binary file