@konnectio/core 4.0.66 → 4.0.68

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 (71) hide show
  1. package/dist/{ActionField-BFyj_Q6Y.js → ActionField-_CEmKSlf.js} +15 -15
  2. package/dist/ActionField-_CEmKSlf.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-CErmWvze.js → AvailabilitySkeleton-CHDZOB_s.js} +67 -70
  4. package/dist/AvailabilitySkeleton-CHDZOB_s.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DjFIhQhI.js +8725 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DjFIhQhI.js.br +0 -0
  7. package/dist/{CheckoutWindow-D17Ro_DJ.js → CheckoutWindow-BzoYJ5v5.js} +5 -5
  8. package/dist/CheckoutWindow-BzoYJ5v5.js.br +0 -0
  9. package/dist/{ErrorMessage-CGQ7GBeF.js → ErrorMessage-Cc8QanBP.js} +4 -4
  10. package/dist/ErrorMessage-Cc8QanBP.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CJfzXqvA.js → EventAvailabilityForm-CdmiDieo.js} +25 -25
  12. package/dist/EventAvailabilityForm-CdmiDieo.js.br +0 -0
  13. package/dist/{Field-U4PRgzZl.js → Field-DMMbo6LE.js} +9 -9
  14. package/dist/Field-DMMbo6LE.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DZub1PhF.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DKrodyae.js} +3486 -3448
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DKrodyae.js.br +0 -0
  17. package/dist/{TermsOfService-DOeiT92a.js → TermsOfService-YxQsHH5-.js} +6 -6
  18. package/dist/TermsOfService-YxQsHH5-.js.br +0 -0
  19. package/dist/{_-D7TRIaiE.js → _-DZrN6t_6.js} +3 -3
  20. package/dist/_.vue_vue_type_style_index_0_lang-C4mV4F7L.js +40 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-C4mV4F7L.js.br +0 -0
  22. package/dist/_commonjsHelpers-BqFuLgLz.js +25 -0
  23. package/dist/_commonjsHelpers-BqFuLgLz.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-Yp2ihk3D.js → _sentry-release-injection-file-Bgn3HK9h.js} +3798 -3814
  25. package/dist/_sentry-release-injection-file-Bgn3HK9h.js.br +0 -0
  26. package/dist/availability.js +63 -74
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +25 -37
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +410 -421
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +75 -86
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +250 -261
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/{giftCard-ByGCHqVm.js → giftCard-D-wdGVBh.js} +15 -15
  37. package/dist/giftCard-D-wdGVBh.js.br +0 -0
  38. package/dist/hotel.js +1014 -1017
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-B2WHiWIP.js → masonry.plugin-D3cbfEtC.js} +936 -960
  41. package/dist/masonry.plugin-D3cbfEtC.js.br +0 -0
  42. package/dist/{mitt-DZo2eOMo.js → mitt-BWKhoTz3.js} +796 -779
  43. package/dist/mitt-BWKhoTz3.js.br +0 -0
  44. package/dist/polyfill.js +4662 -13673
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/sentry-D-KvzqAy.js +1452 -0
  47. package/dist/sentry-D-KvzqAy.js.br +0 -0
  48. package/dist/{style-DCxChsQz.js → style-B8UHQIzP.js} +50 -50
  49. package/dist/style-B8UHQIzP.js.br +0 -0
  50. package/dist/style.css +1 -1
  51. package/dist/style.css.br +0 -0
  52. package/package.json +11 -11
  53. package/dist/ActionField-BFyj_Q6Y.js.br +0 -0
  54. package/dist/AvailabilitySkeleton-CErmWvze.js.br +0 -0
  55. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Dj5wPaD7.js +0 -8678
  56. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Dj5wPaD7.js.br +0 -0
  57. package/dist/CheckoutWindow-D17Ro_DJ.js.br +0 -0
  58. package/dist/ErrorMessage-CGQ7GBeF.js.br +0 -0
  59. package/dist/EventAvailabilityForm-CJfzXqvA.js.br +0 -0
  60. package/dist/Field-U4PRgzZl.js.br +0 -0
  61. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DZub1PhF.js.br +0 -0
  62. package/dist/TermsOfService-DOeiT92a.js.br +0 -0
  63. package/dist/_.vue_vue_type_style_index_0_lang-DEeIjtcD.js +0 -77
  64. package/dist/_.vue_vue_type_style_index_0_lang-DEeIjtcD.js.br +0 -0
  65. package/dist/_commonjsHelpers-BfPn4qnR.js +0 -2650
  66. package/dist/_commonjsHelpers-BfPn4qnR.js.br +0 -0
  67. package/dist/_sentry-release-injection-file-Yp2ihk3D.js.br +0 -0
  68. package/dist/giftCard-ByGCHqVm.js.br +0 -0
  69. package/dist/masonry.plugin-B2WHiWIP.js.br +0 -0
  70. package/dist/mitt-DZo2eOMo.js.br +0 -0
  71. package/dist/style-DCxChsQz.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,124 +1,125 @@
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-Yp2ihk3D.js";
2
- import { u as O, s as E, c as U, i as j, m as z } from "./mitt-DZo2eOMo.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-DZub1PhF.js";
4
- import { u as W } from "./giftCard-ByGCHqVm.js";
5
- import { _ as q } from "./_.vue_vue_type_style_index_0_lang-DEeIjtcD.js";
6
- import { A as J } from "./ActionField-BFyj_Q6Y.js";
7
- import { F as S } from "./Field-U4PRgzZl.js";
8
- import { E as Q } from "./ErrorMessage-CGQ7GBeF.js";
9
- import { G as Y } from "./style-DCxChsQz.js";
1
+ import { d as A, a as d, g as v, e as t, f as a, c as P, b as g, w as f, S as B, u as e, t as l, v as _, i as T, h as $, k as N } from "./_sentry-release-injection-file-Bgn3HK9h.js";
2
+ import { u as U, s as k, c as F, l as H, i as O, m as R } from "./mitt-BWKhoTz3.js";
3
+ import { c as j } from "./sentry-D-KvzqAy.js";
4
+ import { E as h, _ as x, q as C, d as q, I as b, g as K, s as W, C as z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DKrodyae.js";
5
+ import { u as J } from "./giftCard-D-wdGVBh.js";
6
+ import { _ as Q } from "./_.vue_vue_type_style_index_0_lang-C4mV4F7L.js";
7
+ import { A as Y } from "./ActionField-_CEmKSlf.js";
8
+ import { F as w } from "./Field-DMMbo6LE.js";
9
+ import { E as Z } from "./ErrorMessage-Cc8QanBP.js";
10
+ import { G as tt } from "./style-B8UHQIzP.js";
10
11
  (function() {
11
12
  try {
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");
13
+ var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, i = new Error().stack;
14
+ i && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[i] = "56b77537-82fb-44e4-9b2e-1136d69e65af", n._sentryDebugIdIdentifier = "sentry-dbid-56b77537-82fb-44e4-9b2e-1136d69e65af");
14
15
  } catch {
15
16
  }
16
17
  })();
17
18
  {
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(
19
+ var p = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
20
+ p._sentryModuleMetadata = p._sentryModuleMetadata || {}, p._sentryModuleMetadata[new Error().stack] = Object.assign(
20
21
  {},
21
- v._sentryModuleMetadata[new Error().stack],
22
+ p._sentryModuleMetadata[new Error().stack],
22
23
  { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
23
24
  );
24
25
  }
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({
26
+ const et = { class: "gift-card-validation-skeleton" }, at = { class: "gift-card-validation-skeleton-form" }, nt = { class: "gift-card-validation-skeleton-text" }, ot = { class: "gift-card-validation-skeleton-input" }, it = /* @__PURE__ */ A({
26
27
  __name: "GiftCardValidationSkeleton",
27
- setup(l) {
28
- return (s, c) => (f(), A("div", tt, [
29
- t("div", et, [
30
- t("div", at, [
31
- o(C, { height: "20px" }),
32
- o(C, { height: "15px" }),
33
- o(C, { height: "15px" })
34
- ]),
28
+ setup(n) {
29
+ return (i, r) => (d(), v("div", et, [
30
+ t("div", at, [
35
31
  t("div", nt, [
36
- o(S),
37
- o(S, { "no-label": "" })
32
+ a(h, { height: "20px" }),
33
+ a(h, { height: "15px" }),
34
+ a(h, { height: "15px" })
35
+ ]),
36
+ t("div", ot, [
37
+ a(w),
38
+ a(w, { "no-label": "" })
38
39
  ])
39
40
  ])
40
41
  ]));
41
42
  }
42
- }), st = /* @__PURE__ */ M(ot, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], rt = {
43
+ }), st = /* @__PURE__ */ x(it, [["__scopeId", "data-v-b1601b74"]]), lt = ["innerHTML"], rt = {
43
44
  key: 0,
44
45
  id: "konnectio-gift-card-validation-resume",
45
46
  class: "konnectio-panel"
46
- }, lt = /* @__PURE__ */ L({
47
+ }, dt = /* @__PURE__ */ A({
47
48
  name: "GiftCardValidationLayout",
48
49
  __name: "GiftCardValidation",
49
50
  props: {
50
51
  accessToken: {},
51
52
  styling: {}
52
53
  },
53
- setup(l) {
54
- const s = l, c = P(() => ({
54
+ setup(n) {
55
+ const i = n, r = P(() => ({
55
56
  panelMaxWidth: "800px",
56
- ...s.styling
57
- })), { t: i } = O(), {
57
+ ...i.styling
58
+ })), { t: s } = U(), {
58
59
  voucher: m,
59
- isValid: h,
60
- amount: p,
61
- expirationDate: y,
62
- productName: a,
63
- isLoading: n
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(() => [
69
- o(q, {
60
+ isValid: E,
61
+ amount: S,
62
+ expirationDate: I,
63
+ productName: M,
64
+ isLoading: u
65
+ } = k(C()), { currency: D, hasError: G } = k(q()), { fetchMetadata: L } = J(), { apply: y } = C();
66
+ return (X, o) => (d(), g(z, { styling: r.value }, {
67
+ default: f(() => [
68
+ (d(), g(B, null, {
69
+ default: f(() => [
70
+ a(Q, {
70
71
  "access-token": X.accessToken,
71
- callback: e(G)
72
+ callback: e(L)
72
73
  }, {
73
- default: b(() => [
74
- e(D) ? (f(), k(Q, {
74
+ default: f(() => [
75
+ e(G) ? (d(), g(Z, {
75
76
  key: 1,
76
77
  title: "Unable to render Gift card validation module",
77
78
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
78
- })) : (f(), A("form", {
79
+ })) : (d(), v("form", {
79
80
  key: 0,
80
81
  id: "konnectio-gift-card-validation-module",
81
- onSubmit: d[3] || (d[3] = $((g) => e(V)(), ["prevent"]))
82
+ onSubmit: o[3] || (o[3] = $((c) => e(y)(), ["prevent"]))
82
83
  }, [
83
84
  t("h4", null, [
84
- t("span", null, u(e(i)("giftCardValidation.title")), 1)
85
+ t("span", null, l(e(s)("giftCardValidation.title")), 1)
85
86
  ]),
86
87
  t("p", {
87
- innerHTML: e(i)("giftCardValidation.description")
88
- }, null, 8, it),
89
- o(J, {
88
+ innerHTML: e(s)("giftCardValidation.description")
89
+ }, null, 8, lt),
90
+ a(Y, {
90
91
  modelValue: e(m),
91
- "onUpdate:modelValue": d[0] || (d[0] = (g) => x(m) ? m.value = g : null),
92
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => _(m) ? m.value = c : null),
92
93
  icon: "gift-card",
93
- label: e(i)("booking.reservation.giftCardCode"),
94
- buttonLabel: e(i)("giftCardValidation.submitButton"),
94
+ label: e(s)("booking.reservation.giftCardCode"),
95
+ buttonLabel: e(s)("giftCardValidation.submitButton"),
95
96
  placeholder: "XXXXXXXX",
96
- "is-loading": e(n),
97
- "onUpdate:isLoading": d[1] || (d[1] = (g) => x(n) ? n.value = g : null),
98
- onAction: d[2] || (d[2] = (g) => e(V)())
97
+ "is-loading": e(u),
98
+ "onUpdate:isLoading": o[1] || (o[1] = (c) => _(u) ? u.value = c : null),
99
+ onAction: o[2] || (o[2] = (c) => e(y)())
99
100
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
100
- !e(n) && e(h) ? (f(), A("table", rt, [
101
+ !e(u) && e(E) ? (d(), v("table", rt, [
101
102
  t("thead", null, [
102
103
  t("tr", null, [
103
104
  t("th", null, [
104
- t("span", null, u(e(i)("giftCardValidation.giftCard")), 1),
105
- o(w, {
105
+ t("span", null, l(e(s)("giftCardValidation.giftCard")), 1),
106
+ a(b, {
106
107
  icon: "gift-card",
107
108
  type: "fas",
108
109
  color: "header"
109
110
  })
110
111
  ]),
111
112
  t("th", null, [
112
- t("span", null, u(e(i)("giftCardValidation.balance")), 1),
113
- o(w, {
113
+ t("span", null, l(e(s)("giftCardValidation.balance")), 1),
114
+ a(b, {
114
115
  icon: "money-bill",
115
116
  type: "fas",
116
117
  color: "header"
117
118
  })
118
119
  ]),
119
120
  t("th", null, [
120
- t("span", null, u(e(i)("giftCardValidation.expirationDate")), 1),
121
- o(w, {
121
+ t("span", null, l(e(s)("giftCardValidation.expirationDate")), 1),
122
+ a(b, {
122
123
  icon: "timer",
123
124
  type: "fas",
124
125
  color: "header"
@@ -129,13 +130,13 @@ const tt = { class: "gift-card-validation-skeleton" }, et = { class: "gift-card-
129
130
  t("tbody", null, [
130
131
  t("tr", null, [
131
132
  t("td", null, [
132
- t("span", null, u(e(a)), 1)
133
+ t("span", null, l(e(M)), 1)
133
134
  ]),
134
135
  t("td", null, [
135
- t("span", null, u(e(H)(e(p), e(r))), 1)
136
+ t("span", null, l(e(K)(e(S), e(D))), 1)
136
137
  ]),
137
138
  t("td", null, [
138
- t("span", null, u(e(R)(e(y))), 1)
139
+ t("span", null, l(e(W)(e(I))), 1)
139
140
  ])
140
141
  ])
141
142
  ])
@@ -145,8 +146,8 @@ const tt = { class: "gift-card-validation-skeleton" }, et = { class: "gift-card-
145
146
  _: 1
146
147
  }, 8, ["access-token", "callback"])
147
148
  ]),
148
- fallback: b(() => [
149
- o(st)
149
+ fallback: f(() => [
150
+ a(st)
150
151
  ]),
151
152
  _: 1
152
153
  }))
@@ -154,7 +155,7 @@ const tt = { class: "gift-card-validation-skeleton" }, et = { class: "gift-card-
154
155
  _: 1
155
156
  }, 8, ["styling"]));
156
157
  }
157
- }), _ = /* @__PURE__ */ M(lt, [["__scopeId", "data-v-ae703950"]]), dt = U(), ct = z();
158
+ }), V = /* @__PURE__ */ x(dt, [["__scopeId", "data-v-ae703950"]]), ct = F(), ut = R();
158
159
  class pt extends HTMLElement {
159
160
  vueApp;
160
161
  constructor() {
@@ -164,22 +165,10 @@ class pt extends HTMLElement {
164
165
  this.vueApp.unmount();
165
166
  }
166
167
  connectedCallback() {
167
- const s = typeof _ == "function" ? _.options : _;
168
- let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
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 = {};
170
- c = c.map(i);
171
- const p = {};
172
- for (const a of this.attributes) {
173
- const r = a.name.split(".");
174
- r.length > 1 && (p[r[0]] || (p[r[0]] = {}), p[r[0]][m(r[1])] = a.value);
175
- }
176
- for (const a of c) {
177
- let n = this.attributes.getNamedItem(a)?.value;
178
- p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
179
- }
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]);
168
+ const i = H(V, this.attributes);
169
+ this.vueApp = N(V, i), j(this.vueApp), this.vueApp.provide("emitter", ut), this.vueApp.use(ct), this.vueApp.use(O), this.vueApp.use(tt);
170
+ const r = document.createElement("div");
171
+ this.vueApp.mount(r), this.appendChild(r.children[0]);
183
172
  }
184
173
  }
185
174
  window.customElements.define("konnectio-gift-card-validation", pt);
Binary file