@konnectio/core 4.0.63 → 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-3MggPKk9.js → ActionField-D28Pe5Bb.js} +33 -25
  2. package/dist/ActionField-D28Pe5Bb.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DSgC6hn3.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-CnYjbggZ.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-DolJgk40.js → CheckoutWindow-Cv7p0DrF.js} +174 -166
  8. package/dist/CheckoutWindow-Cv7p0DrF.js.br +0 -0
  9. package/dist/{ErrorMessage-BksKCxAq.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-B7IfVdWJ.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-DEK47QeC.js → _commonjsHelpers-BeCRh3Xf.js} +618 -558
  23. package/dist/_commonjsHelpers-BeCRh3Xf.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-DEszgcWK.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 +260 -252
  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-GGoTX7a7.js → masonry.plugin-q1wqMEhq.js} +860 -852
  41. package/dist/masonry.plugin-q1wqMEhq.js.br +0 -0
  42. package/dist/{mitt-DnPlcQNp.js → mitt-CZC0Vuw7.js} +505 -497
  43. package/dist/mitt-CZC0Vuw7.js.br +0 -0
  44. package/dist/polyfill.js +6470 -6259
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-2RYcVxT9.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-3MggPKk9.js.br +0 -0
  52. package/dist/AvailabilitySkeleton-DSgC6hn3.js.br +0 -0
  53. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js.br +0 -0
  54. package/dist/CheckoutWindow-DolJgk40.js.br +0 -0
  55. package/dist/ErrorMessage-BksKCxAq.js.br +0 -0
  56. package/dist/EventAvailabilityForm-DZljldrC.js +0 -117
  57. package/dist/EventAvailabilityForm-DZljldrC.js.br +0 -0
  58. package/dist/Field-DGi_AnA6.js +0 -50
  59. package/dist/Field-DGi_AnA6.js.br +0 -0
  60. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js.br +0 -0
  61. package/dist/TermsOfService-LDUTInOo.js +0 -36
  62. package/dist/TermsOfService-LDUTInOo.js.br +0 -0
  63. package/dist/_-CBEOFztf.js +0 -12
  64. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js +0 -69
  65. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.br +0 -0
  66. package/dist/_commonjsHelpers-DEK47QeC.js.br +0 -0
  67. package/dist/_sentry-release-injection-file-DEszgcWK.js.br +0 -0
  68. package/dist/giftCard-DLrIdehA.js +0 -126
  69. package/dist/giftCard-DLrIdehA.js.br +0 -0
  70. package/dist/masonry.plugin-GGoTX7a7.js.br +0 -0
  71. package/dist/mitt-DnPlcQNp.js.br +0 -0
  72. package/dist/style-2RYcVxT9.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,100 +1,108 @@
1
- import { d as I, a as f, g as A, e as t, f as o, c as X, b as _, w as v, S as P, u as e, t as u, v as w, i as T, h as $, k as B } from "./_sentry-release-injection-file-DEszgcWK.js";
2
- import { u as N, s as x, c as U, i as O, m as z } from "./mitt-DnPlcQNp.js";
3
- import { E as k, _ as S, r as E, e as F, I as C, h as H, s as j, C as R, c as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
4
- import { u as W } from "./giftCard-DLrIdehA.js";
5
- import { _ as q } from "./_.vue_vue_type_style_index_0_lang-DjuzMOwH.js";
6
- import { A as J } from "./ActionField-3MggPKk9.js";
7
- import { F as G } from "./Field-DGi_AnA6.js";
8
- import { E as K } from "./ErrorMessage-BksKCxAq.js";
9
- import { G as Q } from "./style-2RYcVxT9.js";
1
+ import { d as L, a as f, g as A, e as t, f as o, c as P, b as k, w as b, S as B, u as e, t as u, v as x, i as T, h as $, k as N } from "./_sentry-release-injection-file-CY9ljBue.js";
2
+ import { u as O, s as E, c as U, i as j, m as z } from "./mitt-CZC0Vuw7.js";
3
+ import { E as C, _ as M, r as I, e as F, I as w, h as H, s as R, C as Z, c as K } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js";
4
+ import { u as W } from "./giftCard-CHf9cbmB.js";
5
+ import { _ as q } from "./_.vue_vue_type_style_index_0_lang-BWAizmh6.js";
6
+ import { A as J } from "./ActionField-D28Pe5Bb.js";
7
+ import { F as S } from "./Field-DcoRYqr8.js";
8
+ import { E as Q } from "./ErrorMessage-T11Ou3eh.js";
9
+ import { G as Y } from "./style-Di3bMYae.js";
10
10
  (function() {
11
11
  try {
12
- var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
13
- s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "b687036c-2909-4f17-a2a8-aa13798e9bdd", r._sentryDebugIdIdentifier = "sentry-dbid-b687036c-2909-4f17-a2a8-aa13798e9bdd");
12
+ var l = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
13
+ s && (l._sentryDebugIds = l._sentryDebugIds || {}, l._sentryDebugIds[s] = "6ef71152-d8f5-4802-a2f7-320ccc001354", l._sentryDebugIdIdentifier = "sentry-dbid-6ef71152-d8f5-4802-a2f7-320ccc001354");
14
14
  } catch {
15
15
  }
16
16
  })();
17
- const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */ I({
17
+ {
18
+ var v = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
+ v._sentryModuleMetadata = v._sentryModuleMetadata || {}, v._sentryModuleMetadata[new Error().stack] = Object.assign(
20
+ {},
21
+ v._sentryModuleMetadata[new Error().stack],
22
+ { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
23
+ );
24
+ }
25
+ const tt = { class: "gift-card-validation-skeleton" }, et = { class: "gift-card-validation-skeleton-form" }, at = { class: "gift-card-validation-skeleton-text" }, nt = { class: "gift-card-validation-skeleton-input" }, ot = /* @__PURE__ */ L({
18
26
  __name: "GiftCardValidationSkeleton",
19
- setup(r) {
20
- return (s, c) => (f(), A("div", Y, [
21
- t("div", tt, [
22
- t("div", et, [
23
- o(k, { height: "20px" }),
24
- o(k, { height: "15px" }),
25
- o(k, { height: "15px" })
26
- ]),
27
+ setup(l) {
28
+ return (s, c) => (f(), A("div", tt, [
29
+ t("div", et, [
27
30
  t("div", at, [
28
- o(G),
29
- o(G, { "no-label": "" })
31
+ o(C, { height: "20px" }),
32
+ o(C, { height: "15px" }),
33
+ o(C, { height: "15px" })
34
+ ]),
35
+ t("div", nt, [
36
+ o(S),
37
+ o(S, { "no-label": "" })
30
38
  ])
31
39
  ])
32
40
  ]));
33
41
  }
34
- }), ot = /* @__PURE__ */ S(nt, [["__scopeId", "data-v-b1601b74"]]), st = ["innerHTML"], it = {
42
+ }), st = /* @__PURE__ */ M(ot, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], rt = {
35
43
  key: 0,
36
44
  id: "konnectio-gift-card-validation-resume",
37
45
  class: "konnectio-panel"
38
- }, lt = /* @__PURE__ */ I({
46
+ }, lt = /* @__PURE__ */ L({
39
47
  name: "GiftCardValidationLayout",
40
48
  __name: "GiftCardValidation",
41
49
  props: {
42
50
  accessToken: {},
43
51
  styling: {}
44
52
  },
45
- setup(r) {
46
- const s = r, c = X(() => ({
53
+ setup(l) {
54
+ const s = l, c = P(() => ({
47
55
  panelMaxWidth: "800px",
48
56
  ...s.styling
49
- })), { t: i } = N(), {
57
+ })), { t: i } = O(), {
50
58
  voucher: m,
51
- isValid: g,
59
+ isValid: h,
52
60
  amount: p,
53
- expirationDate: b,
61
+ expirationDate: y,
54
62
  productName: a,
55
63
  isLoading: n
56
- } = x(E()), { currency: l, hasError: L } = x(F()), { fetchMetadata: D } = W(), { apply: V } = E();
57
- return (M, d) => (f(), _(R, { styling: c.value }, {
58
- default: v(() => [
59
- (f(), _(P, null, {
60
- default: v(() => [
64
+ } = E(I()), { currency: r, hasError: D } = E(F()), { fetchMetadata: G } = W(), { apply: V } = I();
65
+ return (X, d) => (f(), k(Z, { styling: c.value }, {
66
+ default: b(() => [
67
+ (f(), k(B, null, {
68
+ default: b(() => [
61
69
  o(q, {
62
- "access-token": M.accessToken,
63
- callback: e(D)
70
+ "access-token": X.accessToken,
71
+ callback: e(G)
64
72
  }, {
65
- default: v(() => [
66
- e(L) ? (f(), _(K, {
73
+ default: b(() => [
74
+ e(D) ? (f(), k(Q, {
67
75
  key: 1,
68
76
  title: "Unable to render Gift card validation module",
69
77
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
70
78
  })) : (f(), A("form", {
71
79
  key: 0,
72
80
  id: "konnectio-gift-card-validation-module",
73
- onSubmit: d[3] || (d[3] = $((h) => e(V)(), ["prevent"]))
81
+ onSubmit: d[3] || (d[3] = $((g) => e(V)(), ["prevent"]))
74
82
  }, [
75
83
  t("h4", null, [
76
84
  t("span", null, u(e(i)("giftCardValidation.title")), 1)
77
85
  ]),
78
86
  t("p", {
79
87
  innerHTML: e(i)("giftCardValidation.description")
80
- }, null, 8, st),
88
+ }, null, 8, it),
81
89
  o(J, {
82
90
  modelValue: e(m),
83
- "onUpdate:modelValue": d[0] || (d[0] = (h) => w(m) ? m.value = h : null),
91
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => x(m) ? m.value = g : null),
84
92
  icon: "gift-card",
85
93
  label: e(i)("booking.reservation.giftCardCode"),
86
94
  buttonLabel: e(i)("giftCardValidation.submitButton"),
87
95
  placeholder: "XXXXXXXX",
88
96
  "is-loading": e(n),
89
- "onUpdate:isLoading": d[1] || (d[1] = (h) => w(n) ? n.value = h : null),
90
- onAction: d[2] || (d[2] = (h) => e(V)())
97
+ "onUpdate:isLoading": d[1] || (d[1] = (g) => x(n) ? n.value = g : null),
98
+ onAction: d[2] || (d[2] = (g) => e(V)())
91
99
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
92
- !e(n) && e(g) ? (f(), A("table", it, [
100
+ !e(n) && e(h) ? (f(), A("table", rt, [
93
101
  t("thead", null, [
94
102
  t("tr", null, [
95
103
  t("th", null, [
96
104
  t("span", null, u(e(i)("giftCardValidation.giftCard")), 1),
97
- o(C, {
105
+ o(w, {
98
106
  icon: "gift-card",
99
107
  type: "fas",
100
108
  color: "header"
@@ -102,7 +110,7 @@ const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
102
110
  ]),
103
111
  t("th", null, [
104
112
  t("span", null, u(e(i)("giftCardValidation.balance")), 1),
105
- o(C, {
113
+ o(w, {
106
114
  icon: "money-bill",
107
115
  type: "fas",
108
116
  color: "header"
@@ -110,7 +118,7 @@ const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
110
118
  ]),
111
119
  t("th", null, [
112
120
  t("span", null, u(e(i)("giftCardValidation.expirationDate")), 1),
113
- o(C, {
121
+ o(w, {
114
122
  icon: "timer",
115
123
  type: "fas",
116
124
  color: "header"
@@ -124,10 +132,10 @@ const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
124
132
  t("span", null, u(e(a)), 1)
125
133
  ]),
126
134
  t("td", null, [
127
- t("span", null, u(e(H)(e(p), e(l))), 1)
135
+ t("span", null, u(e(H)(e(p), e(r))), 1)
128
136
  ]),
129
137
  t("td", null, [
130
- t("span", null, u(e(j)(e(b))), 1)
138
+ t("span", null, u(e(R)(e(y))), 1)
131
139
  ])
132
140
  ])
133
141
  ])
@@ -137,8 +145,8 @@ const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
137
145
  _: 1
138
146
  }, 8, ["access-token", "callback"])
139
147
  ]),
140
- fallback: v(() => [
141
- o(ot)
148
+ fallback: b(() => [
149
+ o(st)
142
150
  ]),
143
151
  _: 1
144
152
  }))
@@ -146,8 +154,8 @@ const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
146
154
  _: 1
147
155
  }, 8, ["styling"]));
148
156
  }
149
- }), y = /* @__PURE__ */ S(lt, [["__scopeId", "data-v-ae703950"]]), rt = U(), dt = z();
150
- class ct extends HTMLElement {
157
+ }), _ = /* @__PURE__ */ M(lt, [["__scopeId", "data-v-ae703950"]]), dt = U(), ct = z();
158
+ class pt extends HTMLElement {
151
159
  vueApp;
152
160
  constructor() {
153
161
  super();
@@ -156,26 +164,26 @@ class ct extends HTMLElement {
156
164
  this.vueApp.unmount();
157
165
  }
158
166
  connectedCallback() {
159
- const s = typeof y == "function" ? y.options : y;
167
+ const s = typeof _ == "function" ? _.options : _;
160
168
  let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
161
- const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, l) => (l ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), g = {};
169
+ const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, r) => (r ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), h = {};
162
170
  c = c.map(i);
163
171
  const p = {};
164
172
  for (const a of this.attributes) {
165
- const l = a.name.split(".");
166
- l.length > 1 && (p[l[0]] || (p[l[0]] = {}), p[l[0]][m(l[1])] = a.value);
173
+ const r = a.name.split(".");
174
+ r.length > 1 && (p[r[0]] || (p[r[0]] = {}), p[r[0]][m(r[1])] = a.value);
167
175
  }
168
176
  for (const a of c) {
169
177
  let n = this.attributes.getNamedItem(a)?.value;
170
- p.hasOwnProperty(a) && (n = p[a]), g[a] = n;
178
+ p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
171
179
  }
172
- this.vueApp = B(y, g), Z(this.vueApp), this.vueApp.provide("emitter", dt), this.vueApp.use(rt), this.vueApp.use(O), this.vueApp.use(Q);
173
- const b = document.createElement("div");
174
- this.vueApp.mount(b), this.appendChild(b.children[0]);
180
+ this.vueApp = N(_, h), K(this.vueApp), this.vueApp.provide("emitter", ct), this.vueApp.use(dt), this.vueApp.use(j), this.vueApp.use(Y);
181
+ const y = document.createElement("div");
182
+ this.vueApp.mount(y), this.appendChild(y.children[0]);
175
183
  }
176
184
  }
177
- window.customElements.define("konnectio-gift-card-validation", ct);
185
+ window.customElements.define("konnectio-gift-card-validation", pt);
178
186
  export {
179
- ct as default
187
+ pt as default
180
188
  };
181
189
  //# sourceMappingURL=gift-card-validation.js.map
Binary file