@konnectio/core 4.0.56-rc39 → 4.0.56-rc40

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 (54) hide show
  1. package/dist/{ActionField-Cj7yAIiF.js → ActionField-CD5wWyTP.js} +10 -10
  2. package/dist/ActionField-CD5wWyTP.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-B1NfPwnx.js → AvailabilitySkeleton-D9lVJ7Y4.js} +71 -69
  4. package/dist/AvailabilitySkeleton-D9lVJ7Y4.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-4TxEs6Ur.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js} +2692 -2638
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js.br +0 -0
  7. package/dist/{CheckoutWindow-Dj_a3rqK.js → CheckoutWindow-POqLB9M4.js} +33 -33
  8. package/dist/CheckoutWindow-POqLB9M4.js.br +0 -0
  9. package/dist/{ErrorMessage-B_o47rUW.js → ErrorMessage-DACtGUvq.js} +4 -4
  10. package/dist/ErrorMessage-DACtGUvq.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-vxL1OmZL.js → EventAvailabilityForm-Dx4hfkc1.js} +36 -36
  12. package/dist/EventAvailabilityForm-Dx4hfkc1.js.br +0 -0
  13. package/dist/{Field-DC9mZy8_.js → Field-Nqc4wuqz.js} +8 -8
  14. package/dist/Field-Nqc4wuqz.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js} +3483 -3533
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js.br +0 -0
  17. package/dist/{TermsOfService-COGxWG3S.js → TermsOfService-D3ujvGpJ.js} +9 -9
  18. package/dist/TermsOfService-D3ujvGpJ.js.br +0 -0
  19. package/dist/_-BeIBHN5G.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-CfxcWxuU.js +72 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-CfxcWxuU.js.br +0 -0
  22. package/dist/{_commonjsHelpers-UWZO_9XV.js → _commonjsHelpers-BpcYSDvQ.js} +149 -148
  23. package/dist/_commonjsHelpers-BpcYSDvQ.js.br +0 -0
  24. package/dist/availability.js +57 -56
  25. package/dist/availability.js.br +0 -0
  26. package/dist/event.js +95 -95
  27. package/dist/event.js.br +0 -0
  28. package/dist/gift-card-validation.js +43 -41
  29. package/dist/gift-card-validation.js.br +0 -0
  30. package/dist/gift-card.js +241 -331
  31. package/dist/gift-card.js.br +0 -0
  32. package/dist/giftCard-BEp1vsXy.js +128 -0
  33. package/dist/giftCard-BEp1vsXy.js.br +0 -0
  34. package/dist/hotel.js +942 -938
  35. package/dist/hotel.js.br +0 -0
  36. package/dist/{masonry.plugin-a1QQfgj3.js → masonry.plugin-CnRH1tRE.js} +6 -6
  37. package/dist/masonry.plugin-CnRH1tRE.js.br +0 -0
  38. package/dist/navigation.js +3 -3
  39. package/dist/polyfill.js +10 -5
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/style.css +1 -1
  42. package/dist/style.css.br +0 -0
  43. package/package.json +9 -9
  44. package/dist/ActionField-Cj7yAIiF.js.br +0 -0
  45. package/dist/AvailabilitySkeleton-B1NfPwnx.js.br +0 -0
  46. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-4TxEs6Ur.js.br +0 -0
  47. package/dist/CheckoutWindow-Dj_a3rqK.js.br +0 -0
  48. package/dist/ErrorMessage-B_o47rUW.js.br +0 -0
  49. package/dist/EventAvailabilityForm-vxL1OmZL.js.br +0 -0
  50. package/dist/Field-DC9mZy8_.js.br +0 -0
  51. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.js.br +0 -0
  52. package/dist/TermsOfService-COGxWG3S.js.br +0 -0
  53. package/dist/_commonjsHelpers-UWZO_9XV.js.br +0 -0
  54. package/dist/masonry.plugin-a1QQfgj3.js.br +0 -0
@@ -1,38 +1,40 @@
1
- import { d as L, o as f, c as A, f as t, e as o, g as X, a as _, w as y, S as M, u as e, t as u, s as w, b as B, i as P, k as T } from "./_commonjsHelpers-UWZO_9XV.js";
2
- import { E as k, _ as S, u as $, s as x, l as E, o as N, A as C, B as U, D as O, e as z, f as F, g as H, h as j, i as R, m as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.js";
3
- import { A as W } from "./ActionField-Cj7yAIiF.js";
4
- import { F as I } from "./Field-DC9mZy8_.js";
5
- import { E as q } from "./ErrorMessage-B_o47rUW.js";
1
+ import { d as I, o as f, a as A, g as t, f as o, c as X, b as _, w as v, S as B, u as e, t as u, x as w, e as P, i as T, k as $ } from "./_commonjsHelpers-BpcYSDvQ.js";
2
+ import { E as k, _ as L, h as N, s as x, v as E, b as U, A as C, B as O, D as z, n as F, o as H, p as j, q as R, t as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js";
3
+ import { u as q } from "./giftCard-BEp1vsXy.js";
4
+ import { _ as W } from "./_.vue_vue_type_style_index_0_lang-CfxcWxuU.js";
5
+ import { A as J } from "./ActionField-CD5wWyTP.js";
6
+ import { F as S } from "./Field-Nqc4wuqz.js";
7
+ import { E as K } from "./ErrorMessage-DACtGUvq.js";
6
8
  import "./navigation.js";
7
9
  (function() {
8
10
  try {
9
11
  var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
10
- s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "64c17c6f-6cdf-4b95-91e9-558446ade55e", r._sentryDebugIdIdentifier = "sentry-dbid-64c17c6f-6cdf-4b95-91e9-558446ade55e");
12
+ s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "7c87091e-ae2a-44d8-88bf-a94a8bf9e081", r._sentryDebugIdIdentifier = "sentry-dbid-7c87091e-ae2a-44d8-88bf-a94a8bf9e081");
11
13
  } catch {
12
14
  }
13
15
  })();
14
- const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-validation-skeleton-form" }, Q = { class: "gift-card-validation-skeleton-text" }, Y = { class: "gift-card-validation-skeleton-input" }, tt = /* @__PURE__ */ L({
16
+ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-validation-skeleton-form" }, tt = { class: "gift-card-validation-skeleton-text" }, et = { class: "gift-card-validation-skeleton-input" }, at = /* @__PURE__ */ I({
15
17
  __name: "GiftCardValidationSkeleton",
16
18
  setup(r) {
17
- return (s, c) => (f(), A("div", J, [
18
- t("div", K, [
19
- t("div", Q, [
19
+ return (s, c) => (f(), A("div", Q, [
20
+ t("div", Y, [
21
+ t("div", tt, [
20
22
  o(k, { height: "20px" }),
21
23
  o(k, { height: "15px" }),
22
24
  o(k, { height: "15px" })
23
25
  ]),
24
- t("div", Y, [
25
- o(I),
26
- o(I, { "no-label": "" })
26
+ t("div", et, [
27
+ o(S),
28
+ o(S, { "no-label": "" })
27
29
  ])
28
30
  ])
29
31
  ]));
30
32
  }
31
- }), et = /* @__PURE__ */ S(tt, [["__scopeId", "data-v-b1601b74"]]), at = ["innerHTML"], nt = {
33
+ }), nt = /* @__PURE__ */ L(at, [["__scopeId", "data-v-b1601b74"]]), ot = ["innerHTML"], st = {
32
34
  key: 0,
33
35
  id: "konnectio-gift-card-validation-resume",
34
36
  class: "konnectio-panel"
35
- }, ot = /* @__PURE__ */ L({
37
+ }, it = /* @__PURE__ */ I({
36
38
  name: "GiftCardValidationLayout",
37
39
  __name: "GiftCardValidation",
38
40
  props: {
@@ -43,39 +45,39 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
43
45
  const s = r, c = X(() => ({
44
46
  panelMaxWidth: "800px",
45
47
  ...s.styling
46
- })), { t: i } = $(), {
48
+ })), { t: i } = N(), {
47
49
  voucher: m,
48
50
  isValid: h,
49
51
  amount: p,
50
52
  expirationDate: b,
51
53
  productName: a,
52
54
  isLoading: n
53
- } = x(E()), { currency: l, hasError: D } = x(N()), { apply: V } = E();
55
+ } = x(E()), { currency: l, hasError: M } = x(U()), { fetchMetadata: D } = q(), { apply: V } = E();
54
56
  return (G, d) => (f(), _(F, { styling: c.value }, {
55
- default: y(() => [
56
- (f(), _(M, null, {
57
- default: y(() => [
58
- o(z, {
59
- type: "gift-card",
60
- "access-token": G.accessToken
57
+ default: v(() => [
58
+ (f(), _(B, null, {
59
+ default: v(() => [
60
+ o(W, {
61
+ "access-token": G.accessToken,
62
+ onMetadata: e(D)
61
63
  }, {
62
- default: y(() => [
63
- e(D) ? (f(), _(q, {
64
+ default: v(() => [
65
+ e(M) ? (f(), _(K, {
64
66
  key: 1,
65
67
  title: "Unable to render Gift card validation module",
66
68
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
67
69
  })) : (f(), A("form", {
68
70
  key: 0,
69
71
  id: "konnectio-gift-card-validation-module",
70
- onSubmit: d[3] || (d[3] = P((g) => e(V)(), ["prevent"]))
72
+ onSubmit: d[3] || (d[3] = T((g) => e(V)(), ["prevent"]))
71
73
  }, [
72
74
  t("h4", null, [
73
75
  t("span", null, u(e(i)("giftCardValidation.title")), 1)
74
76
  ]),
75
77
  t("p", {
76
78
  innerHTML: e(i)("giftCardValidation.description")
77
- }, null, 8, at),
78
- o(W, {
79
+ }, null, 8, ot),
80
+ o(J, {
79
81
  modelValue: e(m),
80
82
  "onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
81
83
  icon: "gift-card",
@@ -86,7 +88,7 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
86
88
  "onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
87
89
  onAction: d[2] || (d[2] = (g) => e(V)())
88
90
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
89
- !e(n) && e(h) ? (f(), A("table", nt, [
91
+ !e(n) && e(h) ? (f(), A("table", st, [
90
92
  t("thead", null, [
91
93
  t("tr", null, [
92
94
  t("th", null, [
@@ -121,21 +123,21 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
121
123
  t("span", null, u(e(a)), 1)
122
124
  ]),
123
125
  t("td", null, [
124
- t("span", null, u(e(U)(e(p), e(l))), 1)
126
+ t("span", null, u(e(O)(e(p), e(l))), 1)
125
127
  ]),
126
128
  t("td", null, [
127
- t("span", null, u(e(O)(e(b))), 1)
129
+ t("span", null, u(e(z)(e(b))), 1)
128
130
  ])
129
131
  ])
130
132
  ])
131
- ])) : B("", !0)
133
+ ])) : P("", !0)
132
134
  ], 32))
133
135
  ]),
134
136
  _: 1
135
- }, 8, ["access-token"])
137
+ }, 8, ["access-token", "onMetadata"])
136
138
  ]),
137
- fallback: y(() => [
138
- o(et)
139
+ fallback: v(() => [
140
+ o(nt)
139
141
  ]),
140
142
  _: 1
141
143
  }))
@@ -143,8 +145,8 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
143
145
  _: 1
144
146
  }, 8, ["styling"]));
145
147
  }
146
- }), v = /* @__PURE__ */ S(ot, [["__scopeId", "data-v-f43fe5ec"]]), st = H(), it = Z();
147
- class lt extends HTMLElement {
148
+ }), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-22ec3a4a"]]), lt = H(), rt = Z();
149
+ class dt extends HTMLElement {
148
150
  vueApp;
149
151
  constructor() {
150
152
  super();
@@ -153,7 +155,7 @@ class lt extends HTMLElement {
153
155
  this.vueApp.unmount();
154
156
  }
155
157
  connectedCallback() {
156
- const s = typeof v == "function" ? v.options : v;
158
+ const s = typeof y == "function" ? y.options : y;
157
159
  let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
158
160
  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()), h = {};
159
161
  c = c.map(i);
@@ -166,13 +168,13 @@ class lt extends HTMLElement {
166
168
  let n = this.attributes.getNamedItem(a)?.value;
167
169
  p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
168
170
  }
169
- this.vueApp = T(v, h), j(this.vueApp), this.vueApp.provide("emitter", it), this.vueApp.use(st), this.vueApp.use(R);
171
+ this.vueApp = $(y, h), j(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(R);
170
172
  const b = document.createElement("div");
171
173
  this.vueApp.mount(b), this.appendChild(b.children[0]);
172
174
  }
173
175
  }
174
- window.customElements.define("konnectio-gift-card-validation", lt);
176
+ window.customElements.define("konnectio-gift-card-validation", dt);
175
177
  export {
176
- lt as default
178
+ dt as default
177
179
  };
178
180
  //# sourceMappingURL=gift-card-validation.js.map
Binary file