@konnectio/core 4.0.67 → 4.0.69

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 (67) hide show
  1. package/dist/{ActionField-CT_apby-.js → ActionField-Cvrd0oT4.js} +3 -3
  2. package/dist/ActionField-Cvrd0oT4.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-CZ8yMhKx.js → AvailabilitySkeleton-C9hYCt8n.js} +67 -70
  4. package/dist/AvailabilitySkeleton-C9hYCt8n.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CcnfiFBT.js +8726 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CcnfiFBT.js.br +0 -0
  7. package/dist/{CheckoutWindow-B5_4BaaS.js → CheckoutWindow-Jd7cv0fV.js} +5 -5
  8. package/dist/CheckoutWindow-Jd7cv0fV.js.br +0 -0
  9. package/dist/{ErrorMessage-M78h-mvR.js → ErrorMessage-CY9XqT_-.js} +3 -3
  10. package/dist/ErrorMessage-CY9XqT_-.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-HdD0h2K-.js → EventAvailabilityForm-liW326n_.js} +5 -5
  12. package/dist/EventAvailabilityForm-liW326n_.js.br +0 -0
  13. package/dist/{Field-B8yANlQ6.js → Field-DBjYUlqg.js} +3 -3
  14. package/dist/Field-DBjYUlqg.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-rrYg4a8F.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B4bGDuSh.js} +2555 -2545
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B4bGDuSh.js.br +0 -0
  17. package/dist/{TermsOfService-BJKKDCJG.js → TermsOfService-DoPiQYS7.js} +5 -5
  18. package/dist/TermsOfService-DoPiQYS7.js.br +0 -0
  19. package/dist/{_-yypsiI8V.js → _-IWx6O9VX.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CyUM1wWD.js → _.vue_vue_type_style_index_0_lang-DGEXmj4f.js} +6 -6
  21. package/dist/_.vue_vue_type_style_index_0_lang-DGEXmj4f.js.br +0 -0
  22. package/dist/{_commonjsHelpers-Dn7n5RRb.js → _commonjsHelpers-DLzKE872.js} +2 -2
  23. package/dist/_commonjsHelpers-DLzKE872.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-gSWd_6hD.js → _sentry-release-injection-file-BLCF_5fD.js} +3798 -3814
  25. package/dist/_sentry-release-injection-file-BLCF_5fD.js.br +0 -0
  26. package/dist/availability.js +62 -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 +409 -421
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +74 -86
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +253 -265
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/{giftCard-Baweqc3Y.js → giftCard-gaWxo7v2.js} +4 -4
  37. package/dist/giftCard-gaWxo7v2.js.br +0 -0
  38. package/dist/hotel.js +938 -947
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-HPRfkQvp.js → masonry.plugin-C7YeIXYO.js} +947 -973
  41. package/dist/masonry.plugin-C7YeIXYO.js.br +0 -0
  42. package/dist/{mitt-CayBWWiP.js → mitt-tOYHzZHa.js} +796 -779
  43. package/dist/mitt-tOYHzZHa.js.br +0 -0
  44. package/dist/polyfill.js +92 -92
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-B31Ox_CN.js → style-iCfvULKs.js} +50 -50
  47. package/dist/style-iCfvULKs.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/package.json +11 -11
  51. package/dist/ActionField-CT_apby-.js.br +0 -0
  52. package/dist/AvailabilitySkeleton-CZ8yMhKx.js.br +0 -0
  53. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-L3G7fjJr.js +0 -8678
  54. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-L3G7fjJr.js.br +0 -0
  55. package/dist/CheckoutWindow-B5_4BaaS.js.br +0 -0
  56. package/dist/ErrorMessage-M78h-mvR.js.br +0 -0
  57. package/dist/EventAvailabilityForm-HdD0h2K-.js.br +0 -0
  58. package/dist/Field-B8yANlQ6.js.br +0 -0
  59. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-rrYg4a8F.js.br +0 -0
  60. package/dist/TermsOfService-BJKKDCJG.js.br +0 -0
  61. package/dist/_.vue_vue_type_style_index_0_lang-CyUM1wWD.js.br +0 -0
  62. package/dist/_commonjsHelpers-Dn7n5RRb.js.br +0 -0
  63. package/dist/_sentry-release-injection-file-gSWd_6hD.js.br +0 -0
  64. package/dist/giftCard-Baweqc3Y.js.br +0 -0
  65. package/dist/masonry.plugin-HPRfkQvp.js.br +0 -0
  66. package/dist/mitt-CayBWWiP.js.br +0 -0
  67. package/dist/style-B31Ox_CN.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,124 +1,124 @@
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-gSWd_6hD.js";
2
- import { u as O, s as E, c as U, i as j, m as z } from "./mitt-CayBWWiP.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-rrYg4a8F.js";
4
- import { u as W } from "./giftCard-Baweqc3Y.js";
5
- import { _ as q } from "./_.vue_vue_type_style_index_0_lang-CyUM1wWD.js";
6
- import { A as J } from "./ActionField-CT_apby-.js";
7
- import { F as S } from "./Field-B8yANlQ6.js";
8
- import { E as Q } from "./ErrorMessage-M78h-mvR.js";
9
- import { G as Y } from "./style-B31Ox_CN.js";
1
+ import { d as A, a as d, g as y, 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 b, i as T, h as $, k as N } from "./_sentry-release-injection-file-BLCF_5fD.js";
2
+ import { u as U, s as k, c as F, l as H, i as O, m as R } from "./mitt-tOYHzZHa.js";
3
+ import { E as h, _ as x, r as C, e as j, I as v, h as K, s as W, C as q, c as z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B4bGDuSh.js";
4
+ import { u as J } from "./giftCard-gaWxo7v2.js";
5
+ import { _ as Q } from "./_.vue_vue_type_style_index_0_lang-DGEXmj4f.js";
6
+ import { A as Y } from "./ActionField-Cvrd0oT4.js";
7
+ import { F as w } from "./Field-DBjYUlqg.js";
8
+ import { E as Z } from "./ErrorMessage-CY9XqT_-.js";
9
+ import { G as tt } from "./style-iCfvULKs.js";
10
10
  (function() {
11
11
  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");
12
+ var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, i = new Error().stack;
13
+ i && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[i] = "8a54878b-e709-42f6-a0ce-308ed665ac34", n._sentryDebugIdIdentifier = "sentry-dbid-8a54878b-e709-42f6-a0ce-308ed665ac34");
14
14
  } catch {
15
15
  }
16
16
  })();
17
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(
18
+ var p = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
+ p._sentryModuleMetadata = p._sentryModuleMetadata || {}, p._sentryModuleMetadata[new Error().stack] = Object.assign(
20
20
  {},
21
- v._sentryModuleMetadata[new Error().stack],
21
+ p._sentryModuleMetadata[new Error().stack],
22
22
  { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
23
23
  );
24
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({
25
+ 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
26
  __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
- ]),
27
+ setup(n) {
28
+ return (i, r) => (d(), y("div", et, [
29
+ t("div", at, [
35
30
  t("div", nt, [
36
- o(S),
37
- o(S, { "no-label": "" })
31
+ a(h, { height: "20px" }),
32
+ a(h, { height: "15px" }),
33
+ a(h, { height: "15px" })
34
+ ]),
35
+ t("div", ot, [
36
+ a(w),
37
+ a(w, { "no-label": "" })
38
38
  ])
39
39
  ])
40
40
  ]));
41
41
  }
42
- }), st = /* @__PURE__ */ M(ot, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], rt = {
42
+ }), st = /* @__PURE__ */ x(it, [["__scopeId", "data-v-b1601b74"]]), lt = ["innerHTML"], rt = {
43
43
  key: 0,
44
44
  id: "konnectio-gift-card-validation-resume",
45
45
  class: "konnectio-panel"
46
- }, lt = /* @__PURE__ */ L({
46
+ }, dt = /* @__PURE__ */ A({
47
47
  name: "GiftCardValidationLayout",
48
48
  __name: "GiftCardValidation",
49
49
  props: {
50
50
  accessToken: {},
51
51
  styling: {}
52
52
  },
53
- setup(l) {
54
- const s = l, c = P(() => ({
53
+ setup(n) {
54
+ const i = n, r = P(() => ({
55
55
  panelMaxWidth: "800px",
56
- ...s.styling
57
- })), { t: i } = O(), {
56
+ ...i.styling
57
+ })), { t: s } = U(), {
58
58
  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, {
59
+ isValid: E,
60
+ amount: S,
61
+ expirationDate: I,
62
+ productName: M,
63
+ isLoading: u
64
+ } = k(C()), { currency: D, hasError: G } = k(j()), { fetchMetadata: L } = J(), { apply: _ } = C();
65
+ return (X, o) => (d(), g(q, { styling: r.value }, {
66
+ default: f(() => [
67
+ (d(), g(B, null, {
68
+ default: f(() => [
69
+ a(Q, {
70
70
  "access-token": X.accessToken,
71
- callback: e(G)
71
+ callback: e(L)
72
72
  }, {
73
- default: b(() => [
74
- e(D) ? (f(), k(Q, {
73
+ default: f(() => [
74
+ e(G) ? (d(), g(Z, {
75
75
  key: 1,
76
76
  title: "Unable to render Gift card validation module",
77
77
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
78
- })) : (f(), A("form", {
78
+ })) : (d(), y("form", {
79
79
  key: 0,
80
80
  id: "konnectio-gift-card-validation-module",
81
- onSubmit: d[3] || (d[3] = $((g) => e(V)(), ["prevent"]))
81
+ onSubmit: o[3] || (o[3] = $((c) => e(_)(), ["prevent"]))
82
82
  }, [
83
83
  t("h4", null, [
84
- t("span", null, u(e(i)("giftCardValidation.title")), 1)
84
+ t("span", null, l(e(s)("giftCardValidation.title")), 1)
85
85
  ]),
86
86
  t("p", {
87
- innerHTML: e(i)("giftCardValidation.description")
88
- }, null, 8, it),
89
- o(J, {
87
+ innerHTML: e(s)("giftCardValidation.description")
88
+ }, null, 8, lt),
89
+ a(Y, {
90
90
  modelValue: e(m),
91
- "onUpdate:modelValue": d[0] || (d[0] = (g) => x(m) ? m.value = g : null),
91
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => b(m) ? m.value = c : null),
92
92
  icon: "gift-card",
93
- label: e(i)("booking.reservation.giftCardCode"),
94
- buttonLabel: e(i)("giftCardValidation.submitButton"),
93
+ label: e(s)("booking.reservation.giftCardCode"),
94
+ buttonLabel: e(s)("giftCardValidation.submitButton"),
95
95
  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)())
96
+ "is-loading": e(u),
97
+ "onUpdate:isLoading": o[1] || (o[1] = (c) => b(u) ? u.value = c : null),
98
+ onAction: o[2] || (o[2] = (c) => e(_)())
99
99
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
100
- !e(n) && e(h) ? (f(), A("table", rt, [
100
+ !e(u) && e(E) ? (d(), y("table", rt, [
101
101
  t("thead", null, [
102
102
  t("tr", null, [
103
103
  t("th", null, [
104
- t("span", null, u(e(i)("giftCardValidation.giftCard")), 1),
105
- o(w, {
104
+ t("span", null, l(e(s)("giftCardValidation.giftCard")), 1),
105
+ a(v, {
106
106
  icon: "gift-card",
107
107
  type: "fas",
108
108
  color: "header"
109
109
  })
110
110
  ]),
111
111
  t("th", null, [
112
- t("span", null, u(e(i)("giftCardValidation.balance")), 1),
113
- o(w, {
112
+ t("span", null, l(e(s)("giftCardValidation.balance")), 1),
113
+ a(v, {
114
114
  icon: "money-bill",
115
115
  type: "fas",
116
116
  color: "header"
117
117
  })
118
118
  ]),
119
119
  t("th", null, [
120
- t("span", null, u(e(i)("giftCardValidation.expirationDate")), 1),
121
- o(w, {
120
+ t("span", null, l(e(s)("giftCardValidation.expirationDate")), 1),
121
+ a(v, {
122
122
  icon: "timer",
123
123
  type: "fas",
124
124
  color: "header"
@@ -129,13 +129,13 @@ const tt = { class: "gift-card-validation-skeleton" }, et = { class: "gift-card-
129
129
  t("tbody", null, [
130
130
  t("tr", null, [
131
131
  t("td", null, [
132
- t("span", null, u(e(a)), 1)
132
+ t("span", null, l(e(M)), 1)
133
133
  ]),
134
134
  t("td", null, [
135
- t("span", null, u(e(H)(e(p), e(r))), 1)
135
+ t("span", null, l(e(K)(e(S), e(D))), 1)
136
136
  ]),
137
137
  t("td", null, [
138
- t("span", null, u(e(R)(e(y))), 1)
138
+ t("span", null, l(e(W)(e(I))), 1)
139
139
  ])
140
140
  ])
141
141
  ])
@@ -145,8 +145,8 @@ const tt = { class: "gift-card-validation-skeleton" }, et = { class: "gift-card-
145
145
  _: 1
146
146
  }, 8, ["access-token", "callback"])
147
147
  ]),
148
- fallback: b(() => [
149
- o(st)
148
+ fallback: f(() => [
149
+ a(st)
150
150
  ]),
151
151
  _: 1
152
152
  }))
@@ -154,7 +154,7 @@ const tt = { class: "gift-card-validation-skeleton" }, et = { class: "gift-card-
154
154
  _: 1
155
155
  }, 8, ["styling"]));
156
156
  }
157
- }), _ = /* @__PURE__ */ M(lt, [["__scopeId", "data-v-ae703950"]]), dt = U(), ct = z();
157
+ }), V = /* @__PURE__ */ x(dt, [["__scopeId", "data-v-ae703950"]]), ct = F(), ut = R();
158
158
  class pt extends HTMLElement {
159
159
  vueApp;
160
160
  constructor() {
@@ -164,22 +164,10 @@ class pt extends HTMLElement {
164
164
  this.vueApp.unmount();
165
165
  }
166
166
  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]);
167
+ const i = H(V, this.attributes);
168
+ this.vueApp = N(V, i), z(this.vueApp), this.vueApp.provide("emitter", ut), this.vueApp.use(ct), this.vueApp.use(O), this.vueApp.use(tt);
169
+ const r = document.createElement("div");
170
+ this.vueApp.mount(r), this.appendChild(r.children[0]);
183
171
  }
184
172
  }
185
173
  window.customElements.define("konnectio-gift-card-validation", pt);
Binary file