@konnectio/core 4.0.56-rc31 → 4.0.56-rc33

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