@konnectio/core 4.0.63 → 4.0.65

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 (76) hide show
  1. package/dist/{ActionField-3MggPKk9.js → ActionField-D5c9yQMq.js} +36 -28
  2. package/dist/ActionField-D5c9yQMq.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BfyLbK2o.js +299 -0
  4. package/dist/AvailabilitySkeleton-BfyLbK2o.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js} +934 -924
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js.br +0 -0
  7. package/dist/{CheckoutWindow-DolJgk40.js → CheckoutWindow-B74NMuGr.js} +174 -166
  8. package/dist/CheckoutWindow-B74NMuGr.js.br +0 -0
  9. package/dist/{ErrorMessage-BksKCxAq.js → ErrorMessage-CWR5rjTx.js} +24 -16
  10. package/dist/ErrorMessage-CWR5rjTx.js.br +0 -0
  11. package/dist/EventAvailabilityForm-lFAnwVMX.js +125 -0
  12. package/dist/EventAvailabilityForm-lFAnwVMX.js.br +0 -0
  13. package/dist/Field-C4DyN4XC.js +58 -0
  14. package/dist/Field-C4DyN4XC.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js +18813 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js.br +0 -0
  17. package/dist/TermsOfService-Bx4b2VxT.js +44 -0
  18. package/dist/TermsOfService-Bx4b2VxT.js.br +0 -0
  19. package/dist/_-DmU4JLX1.js +20 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js +77 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js.br +0 -0
  22. package/dist/_commonjsHelpers-BbdZelfp.js +25 -0
  23. package/dist/_commonjsHelpers-BbdZelfp.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-DEszgcWK.js → _sentry-release-injection-file-tJBg8sGS.js} +1643 -1635
  25. package/dist/_sentry-release-injection-file-tJBg8sGS.js.br +0 -0
  26. package/dist/availability.js +65 -55
  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 +260 -252
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +64 -56
  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-SDJGsDep.js +134 -0
  37. package/dist/giftCard-SDJGsDep.js.br +0 -0
  38. package/dist/hotel.js +939 -920
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-GGoTX7a7.js → masonry.plugin-BhK5XQta.js} +860 -852
  41. package/dist/masonry.plugin-BhK5XQta.js.br +0 -0
  42. package/dist/{mitt-DnPlcQNp.js → mitt-CGFh35r5.js} +505 -497
  43. package/dist/mitt-CGFh35r5.js.br +0 -0
  44. package/dist/polyfill.js +6471 -6259
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-2RYcVxT9.js → style-BQlIFUN3.js} +418 -403
  47. package/dist/style-BQlIFUN3.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/dist/{_commonjsHelpers-DEK47QeC.js → tracing-B1Jp160Y.js} +597 -544
  51. package/dist/tracing-B1Jp160Y.js.br +0 -0
  52. package/package.json +16 -16
  53. package/dist/ActionField-3MggPKk9.js.br +0 -0
  54. package/dist/AvailabilitySkeleton-DSgC6hn3.js +0 -293
  55. package/dist/AvailabilitySkeleton-DSgC6hn3.js.br +0 -0
  56. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js.br +0 -0
  57. package/dist/CheckoutWindow-DolJgk40.js.br +0 -0
  58. package/dist/ErrorMessage-BksKCxAq.js.br +0 -0
  59. package/dist/EventAvailabilityForm-DZljldrC.js +0 -117
  60. package/dist/EventAvailabilityForm-DZljldrC.js.br +0 -0
  61. package/dist/Field-DGi_AnA6.js +0 -50
  62. package/dist/Field-DGi_AnA6.js.br +0 -0
  63. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js +0 -18734
  64. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js.br +0 -0
  65. package/dist/TermsOfService-LDUTInOo.js +0 -36
  66. package/dist/TermsOfService-LDUTInOo.js.br +0 -0
  67. package/dist/_-CBEOFztf.js +0 -12
  68. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js +0 -69
  69. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.br +0 -0
  70. package/dist/_commonjsHelpers-DEK47QeC.js.br +0 -0
  71. package/dist/_sentry-release-injection-file-DEszgcWK.js.br +0 -0
  72. package/dist/giftCard-DLrIdehA.js +0 -126
  73. package/dist/giftCard-DLrIdehA.js.br +0 -0
  74. package/dist/masonry.plugin-GGoTX7a7.js.br +0 -0
  75. package/dist/mitt-DnPlcQNp.js.br +0 -0
  76. package/dist/style-2RYcVxT9.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-DEszgcWK.js";
2
- import { u as F, c as H, i as V, m as j } from "./mitt-DnPlcQNp.js";
3
- import { u as O, C as $, _ as U, c as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
4
- import { _ as x } from "./_.vue_vue_type_style_index_0_lang-DjuzMOwH.js";
5
- import { H as K, A as q } from "./AvailabilitySkeleton-DSgC6hn3.js";
6
- import { E as G } from "./EventAvailabilityForm-DZljldrC.js";
7
- import { E as J } from "./ErrorMessage-BksKCxAq.js";
1
+ import { d as I, r as D, c as v, o as S, a as u, b as f, w as m, S as T, e as t, f as A, g as M, n as w, h as _, t as L, u as g, F as B, i as C, T as N, p as P, j as z, k as j } from "./_sentry-release-injection-file-tJBg8sGS.js";
2
+ import { u as F, c as H, i as O, m as V } from "./mitt-CGFh35r5.js";
3
+ import { u as $, C as K, _ as U } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js";
4
+ import { _ as Z } from "./_.vue_vue_type_style_index_0_lang-B2Kq55VX.js";
5
+ import { H as q, A as x } from "./AvailabilitySkeleton-BfyLbK2o.js";
6
+ import { E as J } from "./EventAvailabilityForm-lFAnwVMX.js";
7
+ import { E as Q } from "./ErrorMessage-CWR5rjTx.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 a = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, o = new Error().stack;
11
+ o && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[o] = "22eab82f-ad14-45a8-9ba7-c83d7080419c", a._sentryDebugIdIdentifier = "sentry-dbid-22eab82f-ad14-45a8-9ba7-c83d7080419c");
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 R = (a) => (P("data-v-014bccfe"), a = a(), z(), a), W = { class: "konnectio-availability-module" }, X = { class: "konnectio-availability-navigation" }, Y = /* @__PURE__ */ R(() => /* @__PURE__ */ t("div", { class: "konnectio-availability-divider" }, null, -1)), G = { class: "konnectio-availability-search-form" }, ee = /* @__PURE__ */ I({
16
24
  name: "AvailabilityLayout",
17
25
  __name: "Availability",
18
26
  props: {
@@ -21,65 +29,67 @@ const Q = (a) => (D("data-v-7bdb795c"), a = a(), M(), a), R = { class: "konnecti
21
29
  eventLocation: {},
22
30
  hotelLink: {},
23
31
  hotelLocation: {},
32
+ hotelDisableDefaultLocation: { default: "no" },
24
33
  styling: {}
25
34
  },
26
35
  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(() => ({
36
+ const { t: o } = F(), { fetchMetadata: p } = $(), i = a, l = D(), b = v(() => !!i.hotelLink || !!i.eventLink), r = v(() => !!i.hotelLink && !!i.eventLink), d = v(() => l.value === "hotel"), e = v(() => l.value === "event"), n = (c) => l.value = c, s = v(() => ({
28
37
  fontSize: "13px",
29
- ...o.styling
38
+ ...i.styling
30
39
  }));
31
40
  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(() => [
41
+ !i.hotelLink && i.eventLink ? l.value = "event" : l.value = "hotel";
42
+ }), (c, y) => (u(), f(K, { styling: s.value }, {
43
+ default: m(() => [
44
+ b.value ? (u(), f(T, { key: 0 }, {
45
+ default: m(() => [
37
46
  t("div", null, [
38
- h(x, {
39
- "access-token": r.accessToken,
40
- callback: A(p)
47
+ A(Z, {
48
+ "access-token": c.accessToken,
49
+ callback: g(p)
41
50
  }, {
42
- default: f(() => [
43
- t("div", R, [
44
- c.value ? (u(), N(z, { key: 0 }, [
45
- t("nav", W, [
51
+ default: m(() => [
52
+ t("div", W, [
53
+ r.value ? (u(), M(B, { key: 0 }, [
54
+ t("nav", X, [
46
55
  t("ul", null, [
47
56
  t("li", null, [
48
57
  t("button", {
49
- class: _({ active: d.value }),
50
- onClick: b[0] || (b[0] = g((C) => n("hotel"), ["prevent"]))
58
+ class: w({ active: d.value }),
59
+ onClick: y[0] || (y[0] = _((E) => n("hotel"), ["prevent"]))
51
60
  }, [
52
- t("span", null, L(A(i)("availability.hotel")), 1)
61
+ t("span", null, L(g(o)("availability.hotel")), 1)
53
62
  ], 2)
54
63
  ]),
55
64
  t("li", null, [
56
65
  t("button", {
57
- class: _({ active: e.value }),
58
- onClick: b[1] || (b[1] = g((C) => n("event"), ["prevent"]))
66
+ class: w({ active: e.value }),
67
+ onClick: y[1] || (y[1] = _((E) => n("event"), ["prevent"]))
59
68
  }, [
60
- t("span", null, L(A(i)("availability.events")), 1)
69
+ t("span", null, L(g(o)("availability.events")), 1)
61
70
  ], 2)
62
71
  ])
63
72
  ])
64
73
  ]),
65
- X
66
- ], 64)) : w("", !0),
67
- t("div", Y, [
68
- h(B, {
74
+ Y
75
+ ], 64)) : C("", !0),
76
+ t("div", G, [
77
+ A(N, {
69
78
  name: "fade",
70
79
  mode: "out-in",
71
80
  appear: ""
72
81
  }, {
73
- default: f(() => [
74
- d.value ? (u(), m(K, {
82
+ default: m(() => [
83
+ d.value ? (u(), f(q, {
75
84
  key: 0,
76
- link: r.hotelLink,
77
- "selected-location": Number(r.hotelLocation)
78
- }, null, 8, ["link", "selected-location"])) : e.value ? (u(), m(G, {
85
+ link: c.hotelLink,
86
+ "selected-location": Number(c.hotelLocation),
87
+ "disable-default-location": c.hotelDisableDefaultLocation === "yes"
88
+ }, null, 8, ["link", "selected-location", "disable-default-location"])) : e.value ? (u(), f(J, {
79
89
  key: 1,
80
- link: r.eventLink,
81
- "selected-location": Number(r.eventLocation)
82
- }, null, 8, ["link", "selected-location"])) : w("", !0)
90
+ link: c.eventLink,
91
+ "selected-location": Number(c.eventLocation)
92
+ }, null, 8, ["link", "selected-location"])) : C("", !0)
83
93
  ]),
84
94
  _: 1
85
95
  })
@@ -90,15 +100,15 @@ const Q = (a) => (D("data-v-7bdb795c"), a = a(), M(), a), R = { class: "konnecti
90
100
  }, 8, ["access-token", "callback"])
91
101
  ])
92
102
  ]),
93
- fallback: f(() => [
103
+ fallback: m(() => [
94
104
  t("div", null, [
95
- h(q, {
96
- view: c.value ? "both" : l.value
105
+ A(x, {
106
+ view: r.value ? "both" : l.value
97
107
  }, null, 8, ["view"])
98
108
  ])
99
109
  ]),
100
110
  _: 1
101
- })) : (u(), m(J, {
111
+ })) : (u(), f(Q, {
102
112
  key: 1,
103
113
  title: "Unable to render Availability module",
104
114
  description: `The 'hotel-link' and/or 'event-link' properties are missing.<br>\r
@@ -108,7 +118,7 @@ const Q = (a) => (D("data-v-7bdb795c"), a = a(), M(), a), R = { class: "konnecti
108
118
  _: 1
109
119
  }, 8, ["styling"]));
110
120
  }
111
- }), y = /* @__PURE__ */ U(ee, [["__scopeId", "data-v-7bdb795c"]]), te = H(), ae = j();
121
+ }), h = /* @__PURE__ */ U(ee, [["__scopeId", "data-v-014bccfe"]]), te = H(), ae = V();
112
122
  class ne extends HTMLElement {
113
123
  vueApp;
114
124
  constructor() {
@@ -118,20 +128,20 @@ class ne extends HTMLElement {
118
128
  this.vueApp.unmount();
119
129
  }
120
130
  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 = {};
131
+ const o = typeof h == "function" ? h.options : h;
132
+ let p = Array.isArray(o.props) ? o.props : Object.keys(o.props || {});
133
+ const i = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, s) => (s ? "-" : "") + n.toLowerCase()), l = (e) => e.replace(/-./g, (n) => n[1].toUpperCase()), b = {};
134
+ p = p.map(i);
135
+ const r = {};
126
136
  for (const e of this.attributes) {
127
137
  const s = e.name.split(".");
128
- s.length > 1 && (c[s[0]] || (c[s[0]] = {}), c[s[0]][l(s[1])] = e.value);
138
+ s.length > 1 && (r[s[0]] || (r[s[0]] = {}), r[s[0]][l(s[1])] = e.value);
129
139
  }
130
140
  for (const e of p) {
131
141
  let n = this.attributes.getNamedItem(e)?.value;
132
- c.hasOwnProperty(e) && (n = c[e]), k[e] = n;
142
+ r.hasOwnProperty(e) && (n = r[e]), b[e] = n;
133
143
  }
134
- this.vueApp = P(y, k), Z(this.vueApp), this.vueApp.provide("emitter", ae), this.vueApp.use(V), this.vueApp.use(te);
144
+ this.vueApp = j(h, b), this.vueApp.provide("emitter", ae), this.vueApp.use(O), this.vueApp.use(te);
135
145
  const d = document.createElement("div");
136
146
  this.vueApp.mount(d), this.appendChild(d.children[0]);
137
147
  }
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-DEszgcWK.js";
2
- import { c as g, i as w, m as _ } from "./mitt-DnPlcQNp.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-tJBg8sGS.js";
2
+ import { c as A, i as _, m as C } from "./mitt-CGFh35r5.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