@konnectio/core 4.0.56-rc35 → 4.0.56-rc37

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 (53) hide show
  1. package/dist/{ActionField-Bruv7ZZW.js → ActionField-BhYhC0aQ.js} +43 -34
  2. package/dist/ActionField-BhYhC0aQ.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-CXRs2yLp.js +286 -0
  4. package/dist/AvailabilitySkeleton-CXRs2yLp.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BZN97s2s.js} +2687 -2676
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BZN97s2s.js.br +0 -0
  7. package/dist/{CheckoutWindow-Dn3fiFuv.js → CheckoutWindow-DPJ2GFqg.js} +143 -134
  8. package/dist/CheckoutWindow-DPJ2GFqg.js.br +0 -0
  9. package/dist/{ErrorMessage-VK8egk99.js → ErrorMessage-4DJnsYbI.js} +27 -18
  10. package/dist/ErrorMessage-4DJnsYbI.js.br +0 -0
  11. package/dist/EventAvailabilityForm-rUB2CJ24.js +432 -0
  12. package/dist/EventAvailabilityForm-rUB2CJ24.js.br +0 -0
  13. package/dist/Field-Dr6RF4JV.js +50 -0
  14. package/dist/Field-Dr6RF4JV.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js +21280 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js.br +0 -0
  17. package/dist/TermsOfService-B94i1jM5.js +35 -0
  18. package/dist/TermsOfService-B94i1jM5.js.br +0 -0
  19. package/dist/_commonjsHelpers-UWZO_9XV.js +11796 -0
  20. package/dist/_commonjsHelpers-UWZO_9XV.js.br +0 -0
  21. package/dist/availability.js +60 -50
  22. package/dist/availability.js.br +0 -0
  23. package/dist/event.js +279 -269
  24. package/dist/event.js.br +0 -0
  25. package/dist/gift-card-validation.js +80 -70
  26. package/dist/gift-card-validation.js.br +0 -0
  27. package/dist/gift-card.js +234 -224
  28. package/dist/gift-card.js.br +0 -0
  29. package/dist/hotel.js +696 -692
  30. package/dist/hotel.js.br +0 -0
  31. package/dist/{masonry.plugin-WFnnzw7L.js → masonry.plugin-DPkIO3nk.js} +58 -49
  32. package/dist/masonry.plugin-DPkIO3nk.js.br +0 -0
  33. package/dist/navigation.js +10 -1
  34. package/dist/polyfill.js +14757 -4715
  35. package/dist/polyfill.js.br +0 -0
  36. package/dist/style.css +1 -1
  37. package/dist/style.css.br +0 -0
  38. package/package.json +15 -13
  39. package/dist/ActionField-Bruv7ZZW.js.br +0 -0
  40. package/dist/AvailabilitySkeleton-DxVPZPw3.js +0 -277
  41. package/dist/AvailabilitySkeleton-DxVPZPw3.js.br +0 -0
  42. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js.br +0 -0
  43. package/dist/CheckoutWindow-Dn3fiFuv.js.br +0 -0
  44. package/dist/ErrorMessage-VK8egk99.js.br +0 -0
  45. package/dist/EventAvailabilityForm-DbkL5luy.js +0 -422
  46. package/dist/EventAvailabilityForm-DbkL5luy.js.br +0 -0
  47. package/dist/Field-fZ3Q2e9-.js +0 -41
  48. package/dist/Field-fZ3Q2e9-.js.br +0 -0
  49. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js +0 -30755
  50. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js.br +0 -0
  51. package/dist/TermsOfService-2g29W45E.js +0 -26
  52. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  53. package/dist/masonry.plugin-WFnnzw7L.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,87 +1,96 @@
1
- import { d as G, o as u, c as V, f as t, e as o, E as k, _ as S, i as B, u as N, K as x, L, N as P, a as y, w as v, S as T, g as e, t as d, a2 as w, a3 as C, a4 as $, a5 as D, b as I, q as U, v as O, x as z, A as F, B as H, D as j, G as R } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
2
- import { A as Z } from "./ActionField-Bruv7ZZW.js";
3
- import { F as E } from "./Field-fZ3Q2e9-.js";
4
- import { E as q } from "./ErrorMessage-VK8egk99.js";
5
- const K = { class: "gift-card-validation-skeleton" }, W = { class: "gift-card-validation-skeleton-form" }, J = { class: "gift-card-validation-skeleton-text" }, Q = { class: "gift-card-validation-skeleton-input" }, Y = /* @__PURE__ */ G({
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-C8tvgzaO.js";
3
+ import { A as W } from "./ActionField-BhYhC0aQ.js";
4
+ import { F as I } from "./Field-Dr6RF4JV.js";
5
+ import { E as q } from "./ErrorMessage-4DJnsYbI.js";
6
+ import "./navigation.js";
7
+ (function() {
8
+ try {
9
+ 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");
11
+ } catch {
12
+ }
13
+ })();
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({
6
15
  __name: "GiftCardValidationSkeleton",
7
- setup(_) {
8
- return (c, p) => (u(), V("div", K, [
9
- t("div", W, [
10
- t("div", J, [
16
+ setup(r) {
17
+ return (s, c) => (f(), A("div", J, [
18
+ t("div", K, [
19
+ t("div", Q, [
11
20
  o(k, { height: "20px" }),
12
21
  o(k, { height: "15px" }),
13
22
  o(k, { height: "15px" })
14
23
  ]),
15
- t("div", Q, [
16
- o(E),
17
- o(E, { "no-label": "" })
24
+ t("div", Y, [
25
+ o(I),
26
+ o(I, { "no-label": "" })
18
27
  ])
19
28
  ])
20
29
  ]));
21
30
  }
22
- }), tt = /* @__PURE__ */ S(Y, [["__scopeId", "data-v-b1601b74"]]), et = ["innerHTML"], at = {
31
+ }), et = /* @__PURE__ */ S(tt, [["__scopeId", "data-v-b1601b74"]]), at = ["innerHTML"], nt = {
23
32
  key: 0,
24
33
  id: "konnectio-gift-card-validation-resume",
25
- class: "fresh-booking-panel"
26
- }, nt = /* @__PURE__ */ G({
34
+ class: "konnectio-panel"
35
+ }, ot = /* @__PURE__ */ L({
27
36
  name: "GiftCardValidationLayout",
28
37
  __name: "GiftCardValidation",
29
38
  props: {
30
39
  accessToken: {},
31
40
  styling: {}
32
41
  },
33
- setup(_) {
34
- const c = _, p = B(() => ({
42
+ setup(r) {
43
+ const s = r, c = X(() => ({
35
44
  panelMaxWidth: "800px",
36
- ...c.styling
37
- })), { t: s } = N(), {
38
- voucher: f,
39
- isValid: g,
40
- amount: r,
41
- expirationDate: h,
45
+ ...s.styling
46
+ })), { t: i } = $(), {
47
+ voucher: m,
48
+ isValid: h,
49
+ amount: p,
50
+ expirationDate: b,
42
51
  productName: a,
43
52
  isLoading: n
44
- } = x(L()), { currency: i, hasError: X } = x(P()), { apply: A } = L();
45
- return (M, l) => (u(), y(z, { styling: p.value }, {
46
- default: v(() => [
47
- (u(), y(T, null, {
48
- default: v(() => [
49
- o(O, {
53
+ } = x(E()), { currency: l, hasError: D } = x(N()), { apply: V } = E();
54
+ return (G, d) => (f(), _(F, { styling: c.value }, {
55
+ default: y(() => [
56
+ (f(), _(M, null, {
57
+ default: y(() => [
58
+ o(z, {
50
59
  type: "gift-card",
51
- "access-token": M.accessToken
60
+ "access-token": G.accessToken
52
61
  }, {
53
- default: v(() => [
54
- e(X) ? (u(), y(q, {
62
+ default: y(() => [
63
+ e(D) ? (f(), _(q, {
55
64
  key: 1,
56
65
  title: "Unable to render Gift card validation module",
57
66
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
58
- })) : (u(), V("form", {
67
+ })) : (f(), A("form", {
59
68
  key: 0,
60
69
  id: "konnectio-gift-card-validation-module",
61
- onSubmit: l[3] || (l[3] = U((m) => e(A)(), ["prevent"]))
70
+ onSubmit: d[3] || (d[3] = P((g) => e(V)(), ["prevent"]))
62
71
  }, [
63
72
  t("h4", null, [
64
- t("span", null, d(e(s)("giftCardValidation.title")), 1)
73
+ t("span", null, u(e(i)("giftCardValidation.title")), 1)
65
74
  ]),
66
75
  t("p", {
67
- innerHTML: e(s)("giftCardValidation.description")
68
- }, null, 8, et),
69
- o(Z, {
70
- modelValue: e(f),
71
- "onUpdate:modelValue": l[0] || (l[0] = (m) => w(f) ? f.value = m : null),
76
+ innerHTML: e(i)("giftCardValidation.description")
77
+ }, null, 8, at),
78
+ o(W, {
79
+ modelValue: e(m),
80
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
72
81
  icon: "gift-card",
73
- label: e(s)("booking.reservation.giftCardCode"),
74
- buttonLabel: e(s)("giftCardValidation.submitButton"),
82
+ label: e(i)("booking.reservation.giftCardCode"),
83
+ buttonLabel: e(i)("giftCardValidation.submitButton"),
75
84
  placeholder: "XXXXXXXX",
76
85
  "is-loading": e(n),
77
- "onUpdate:isLoading": l[1] || (l[1] = (m) => w(n) ? n.value = m : null),
78
- onAction: l[2] || (l[2] = (m) => e(A)())
86
+ "onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
87
+ onAction: d[2] || (d[2] = (g) => e(V)())
79
88
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
80
- !e(n) && e(g) ? (u(), V("table", at, [
89
+ !e(n) && e(h) ? (f(), A("table", nt, [
81
90
  t("thead", null, [
82
91
  t("tr", null, [
83
92
  t("th", null, [
84
- t("span", null, d(e(s)("giftCardValidation.giftCard")), 1),
93
+ t("span", null, u(e(i)("giftCardValidation.giftCard")), 1),
85
94
  o(C, {
86
95
  icon: "gift-card",
87
96
  type: "fas",
@@ -89,7 +98,7 @@ const K = { class: "gift-card-validation-skeleton" }, W = { class: "gift-card-va
89
98
  })
90
99
  ]),
91
100
  t("th", null, [
92
- t("span", null, d(e(s)("giftCardValidation.balance")), 1),
101
+ t("span", null, u(e(i)("giftCardValidation.balance")), 1),
93
102
  o(C, {
94
103
  icon: "money-bill",
95
104
  type: "fas",
@@ -97,7 +106,7 @@ const K = { class: "gift-card-validation-skeleton" }, W = { class: "gift-card-va
97
106
  })
98
107
  ]),
99
108
  t("th", null, [
100
- t("span", null, d(e(s)("giftCardValidation.expirationDate")), 1),
109
+ t("span", null, u(e(i)("giftCardValidation.expirationDate")), 1),
101
110
  o(C, {
102
111
  icon: "timer",
103
112
  type: "fas",
@@ -109,24 +118,24 @@ const K = { class: "gift-card-validation-skeleton" }, W = { class: "gift-card-va
109
118
  t("tbody", null, [
110
119
  t("tr", null, [
111
120
  t("td", null, [
112
- t("span", null, d(e(a)), 1)
121
+ t("span", null, u(e(a)), 1)
113
122
  ]),
114
123
  t("td", null, [
115
- t("span", null, d(e($)(e(r), e(i))), 1)
124
+ t("span", null, u(e(U)(e(p), e(l))), 1)
116
125
  ]),
117
126
  t("td", null, [
118
- t("span", null, d(e(D)(e(h))), 1)
127
+ t("span", null, u(e(O)(e(b))), 1)
119
128
  ])
120
129
  ])
121
130
  ])
122
- ])) : I("", !0)
131
+ ])) : B("", !0)
123
132
  ], 32))
124
133
  ]),
125
134
  _: 1
126
135
  }, 8, ["access-token"])
127
136
  ]),
128
- fallback: v(() => [
129
- o(tt)
137
+ fallback: y(() => [
138
+ o(et)
130
139
  ]),
131
140
  _: 1
132
141
  }))
@@ -134,8 +143,8 @@ const K = { class: "gift-card-validation-skeleton" }, W = { class: "gift-card-va
134
143
  _: 1
135
144
  }, 8, ["styling"]));
136
145
  }
137
- }), b = /* @__PURE__ */ S(nt, [["__scopeId", "data-v-be3fa5bf"]]), ot = F(), st = R();
138
- class it extends HTMLElement {
146
+ }), v = /* @__PURE__ */ S(ot, [["__scopeId", "data-v-f43fe5ec"]]), st = H(), it = Z();
147
+ class lt extends HTMLElement {
139
148
  vueApp;
140
149
  constructor() {
141
150
  super();
@@ -144,25 +153,26 @@ class it extends HTMLElement {
144
153
  this.vueApp.unmount();
145
154
  }
146
155
  connectedCallback() {
147
- const c = typeof b == "function" ? b.options : b;
148
- let p = Array.isArray(c.props) ? c.props : Object.keys(c.props || {});
149
- const s = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, i) => (i ? "-" : "") + n.toLowerCase()), f = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), g = {};
150
- p = p.map(s);
151
- const r = {};
156
+ const s = typeof v == "function" ? v.options : v;
157
+ let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
158
+ 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
+ c = c.map(i);
160
+ const p = {};
152
161
  for (const a of this.attributes) {
153
- const i = a.name.split(".");
154
- i.length > 1 && (r[i[0]] || (r[i[0]] = {}), r[i[0]][f(i[1])] = a.value);
162
+ const l = a.name.split(".");
163
+ l.length > 1 && (p[l[0]] || (p[l[0]] = {}), p[l[0]][m(l[1])] = a.value);
155
164
  }
156
- for (const a of p) {
165
+ for (const a of c) {
157
166
  let n = this.attributes.getNamedItem(a)?.value;
158
- r.hasOwnProperty(a) && (n = r[a]), g[a] = n;
167
+ p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
159
168
  }
160
- this.vueApp = H(b, g), this.vueApp.provide("emitter", st), this.vueApp.use(ot), this.vueApp.use(j);
161
- const h = document.createElement("div");
162
- this.vueApp.mount(h), this.appendChild(h.children[0]);
169
+ this.vueApp = T(v, h), j(this.vueApp), this.vueApp.provide("emitter", it), this.vueApp.use(st), this.vueApp.use(R);
170
+ const b = document.createElement("div");
171
+ this.vueApp.mount(b), this.appendChild(b.children[0]);
163
172
  }
164
173
  }
165
- window.customElements.define("konnectio-gift-card-validation", it);
174
+ window.customElements.define("konnectio-gift-card-validation", lt);
166
175
  export {
167
- it as default
176
+ lt as default
168
177
  };
178
+ //# sourceMappingURL=gift-card-validation.js.map
Binary file