@konnectio/core 4.0.56-rc22 → 4.0.56-rc24

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 (44) hide show
  1. package/dist/{ActionField-ZJdtBRXa.js → ActionField-h6vpGaYw.js} +10 -10
  2. package/dist/ActionField-h6vpGaYw.js.br +0 -0
  3. package/dist/{DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js → AvailabilitySkeleton-HUUimpaX.js} +2461 -2405
  4. package/dist/AvailabilitySkeleton-HUUimpaX.js.br +0 -0
  5. package/dist/CheckoutWindow-Dmg9JyZJ.js +710 -0
  6. package/dist/CheckoutWindow-Dmg9JyZJ.js.br +0 -0
  7. package/dist/{ErrorMessage-mUpn7ZBU.js → ErrorMessage-iVDG0uzJ.js} +1 -1
  8. package/dist/ErrorMessage-iVDG0uzJ.js.br +0 -0
  9. package/dist/EventAvailabilityForm-UmnEHYcV.js +325 -0
  10. package/dist/EventAvailabilityForm-UmnEHYcV.js.br +0 -0
  11. package/dist/{_-KavQ60qi.js → Field-wvMopAED.js} +13143 -12490
  12. package/dist/Field-wvMopAED.js.br +0 -0
  13. package/dist/HotelAvailabilityForm-GWIoGscc.js +164 -0
  14. package/dist/HotelAvailabilityForm-GWIoGscc.js.br +0 -0
  15. package/dist/availability.js +27 -26
  16. package/dist/availability.js.br +0 -0
  17. package/dist/event.js +578 -304
  18. package/dist/event.js.br +0 -0
  19. package/dist/gift-card-validation.js +46 -47
  20. package/dist/gift-card-validation.js.br +0 -0
  21. package/dist/gift-card.js +304 -291
  22. package/dist/gift-card.js.br +0 -0
  23. package/dist/hotel.js +1081 -2224
  24. package/dist/hotel.js.br +0 -0
  25. package/dist/{ThankYou-EiAxaHd8.js → masonry.plugin-UcfbgWN-.js} +4922 -4231
  26. package/dist/masonry.plugin-UcfbgWN-.js.br +0 -0
  27. package/dist/polyfill.js +3014 -2962
  28. package/dist/polyfill.js.br +0 -0
  29. package/dist/style.css +1 -1
  30. package/dist/style.css.br +0 -0
  31. package/package.json +9 -9
  32. package/dist/ActionField-ZJdtBRXa.js.br +0 -4
  33. package/dist/AvailabilitySkeleton-tfEBupNq.js +0 -234
  34. package/dist/AvailabilitySkeleton-tfEBupNq.js.br +0 -0
  35. package/dist/CheckoutWindow-orJD6dJy.js +0 -205
  36. package/dist/CheckoutWindow-orJD6dJy.js.br +0 -0
  37. package/dist/DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js.br +0 -0
  38. package/dist/ErrorMessage-mUpn7ZBU.js.br +0 -0
  39. package/dist/EventAvailabilityForm-cAOEZVnn.js +0 -366
  40. package/dist/EventAvailabilityForm-cAOEZVnn.js.br +0 -0
  41. package/dist/Field-Kwm-GcDa.js +0 -41
  42. package/dist/Field-Kwm-GcDa.js.br +0 -0
  43. package/dist/ThankYou-EiAxaHd8.js.br +0 -0
  44. package/dist/_-KavQ60qi.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,79 +1,78 @@
1
- import { d as L, o as h, h as X, b as t, f as o, E as _, g as S, j as E, B as y, X as V, D as B, a as A, w as m, S as G, t as c, u as e, H as w, M as C, N, R as T, i as $, m as D, q as I, s as M, y as z, z as H, A as U } from "./_-KavQ60qi.js";
2
- import { A as j } from "./ActionField-ZJdtBRXa.js";
3
- import { F as x } from "./Field-Kwm-GcDa.js";
4
- const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-validation-skeleton-form" }, P = { class: "gift-card-validation-skeleton-text" }, R = { class: "gift-card-validation-skeleton-input" }, Z = /* @__PURE__ */ L({
1
+ import { d as w, f as h, g as S, h as t, k as s, $ as _, a0 as y, x as X, u as E, s as V, P as A, c as $, n as x, z as m, S as G, A as c, j as e, l as L, a1 as k, a2 as T, a3 as B, m as D, t as I, D as M, E as N, J as z, K as P, L as U, M as j } from "./Field-wvMopAED.js";
2
+ import { A as H } from "./ActionField-h6vpGaYw.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" }, J = /* @__PURE__ */ w({
5
4
  __name: "GiftCardValidationSkeleton",
6
- setup(k) {
7
- return (n, l) => (h(), X("div", F, [
8
- t("div", O, [
9
- t("div", P, [
10
- o(_, { height: "20px" }),
11
- o(_, { height: "15px" }),
12
- o(_, { height: "15px" })
13
- ]),
5
+ setup(C) {
6
+ return (n, l) => (h(), S("div", O, [
7
+ t("div", F, [
14
8
  t("div", R, [
15
- o(x),
16
- o(x, { "no-label": "" })
9
+ s(_, { height: "20px" }),
10
+ s(_, { height: "15px" }),
11
+ s(_, { height: "15px" })
12
+ ]),
13
+ t("div", Z, [
14
+ s(y),
15
+ s(y, { "no-label": "" })
17
16
  ])
18
17
  ])
19
18
  ]));
20
19
  }
21
- }), q = /* @__PURE__ */ S(Z, [["__scopeId", "data-v-0b8074bf"]]), J = ["innerHTML"], K = {
20
+ }), K = /* @__PURE__ */ X(J, [["__scopeId", "data-v-b1601b74"]]), q = ["innerHTML"], Q = {
22
21
  key: 0,
23
22
  id: "fresh-booking-gift-card-validation-resume",
24
23
  class: "fresh-booking-panel"
25
- }, Q = /* @__PURE__ */ L({
24
+ }, W = /* @__PURE__ */ w({
26
25
  name: "GiftCardValidationLayout",
27
26
  __name: "GiftCardValidation",
28
27
  props: {
29
28
  accessToken: {},
30
29
  styling: {}
31
30
  },
32
- setup(k) {
31
+ setup(C) {
33
32
  const { t: n } = E(), {
34
33
  voucher: l,
35
- isValid: b,
36
- amount: v,
34
+ isValid: v,
35
+ amount: b,
37
36
  expirationDate: f,
38
37
  productName: d,
39
38
  isLoading: p
40
- } = y(V()), { currency: a } = y(B()), { apply: s } = V();
41
- return (i, r) => (h(), A(M, { styling: i.styling }, {
39
+ } = V(A()), { currency: a } = V($()), { apply: o } = A();
40
+ return (i, r) => (h(), x(N, { styling: i.styling }, {
42
41
  default: m(() => [
43
- (h(), A(G, null, {
42
+ (h(), x(G, null, {
44
43
  default: m(() => [
45
- o(I, {
44
+ s(M, {
46
45
  id: "fresh-booking-gift-card-validation-module",
47
46
  "access-token": i.accessToken,
48
47
  type: "gift-card"
49
48
  }, {
50
49
  default: m(() => [
51
50
  t("form", {
52
- onSubmit: r[3] || (r[3] = D((u) => e(s)(), ["prevent"]))
51
+ onSubmit: r[3] || (r[3] = I((u) => e(o)(), ["prevent"]))
53
52
  }, [
54
53
  t("h4", null, [
55
54
  t("span", null, c(e(n)("giftCardValidation.title")), 1)
56
55
  ]),
57
56
  t("p", {
58
57
  innerHTML: e(n)("giftCardValidation.description")
59
- }, null, 8, J),
60
- o(j, {
58
+ }, null, 8, q),
59
+ s(H, {
61
60
  modelValue: e(l),
62
- "onUpdate:modelValue": r[0] || (r[0] = (u) => w(l) ? l.value = u : null),
61
+ "onUpdate:modelValue": r[0] || (r[0] = (u) => L(l) ? l.value = u : null),
63
62
  icon: "gift-card",
64
63
  label: e(n)("booking.reservation.giftCardCode"),
65
64
  buttonLabel: e(n)("giftCardValidation.submitButton"),
66
65
  placeholder: "XXXXXXXX",
67
66
  "is-loading": e(p),
68
- "onUpdate:isLoading": r[1] || (r[1] = (u) => w(p) ? p.value = u : null),
69
- onAction: r[2] || (r[2] = (u) => e(s)())
67
+ "onUpdate:isLoading": r[1] || (r[1] = (u) => L(p) ? p.value = u : null),
68
+ onAction: r[2] || (r[2] = (u) => e(o)())
70
69
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
71
- !e(p) && e(b) ? (h(), X("table", K, [
70
+ !e(p) && e(v) ? (h(), S("table", Q, [
72
71
  t("thead", null, [
73
72
  t("tr", null, [
74
73
  t("th", null, [
75
74
  t("span", null, c(e(n)("giftCardValidation.giftCard")), 1),
76
- o(C, {
75
+ s(k, {
77
76
  icon: "gift-card",
78
77
  type: "fas",
79
78
  color: "header"
@@ -81,7 +80,7 @@ const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
81
80
  ]),
82
81
  t("th", null, [
83
82
  t("span", null, c(e(n)("giftCardValidation.balance")), 1),
84
- o(C, {
83
+ s(k, {
85
84
  icon: "money-bill",
86
85
  type: "fas",
87
86
  color: "header"
@@ -89,7 +88,7 @@ const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
89
88
  ]),
90
89
  t("th", null, [
91
90
  t("span", null, c(e(n)("giftCardValidation.expirationDate")), 1),
92
- o(C, {
91
+ s(k, {
93
92
  icon: "timer",
94
93
  type: "fas",
95
94
  color: "header"
@@ -103,21 +102,21 @@ const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
103
102
  t("span", null, c(e(d)), 1)
104
103
  ]),
105
104
  t("td", null, [
106
- t("span", null, c(e(N)(e(v), e(a))), 1)
105
+ t("span", null, c(e(T)(e(b), e(a))), 1)
107
106
  ]),
108
107
  t("td", null, [
109
- t("span", null, c(e(T)(e(f))), 1)
108
+ t("span", null, c(e(B)(e(f))), 1)
110
109
  ])
111
110
  ])
112
111
  ])
113
- ])) : $("", !0)
112
+ ])) : D("", !0)
114
113
  ], 32)
115
114
  ]),
116
115
  _: 1
117
116
  }, 8, ["access-token"])
118
117
  ]),
119
118
  fallback: m(() => [
120
- o(q)
119
+ s(K)
121
120
  ]),
122
121
  _: 1
123
122
  }))
@@ -125,8 +124,8 @@ const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
125
124
  _: 1
126
125
  }, 8, ["styling"]));
127
126
  }
128
- }), g = /* @__PURE__ */ S(Q, [["__scopeId", "data-v-b19b4a0e"]]), W = z();
129
- class Y extends HTMLElement {
127
+ }), g = /* @__PURE__ */ X(W, [["__scopeId", "data-v-b19b4a0e"]]), Y = z(), tt = j();
128
+ class et extends HTMLElement {
130
129
  vueApp;
131
130
  constructor() {
132
131
  super();
@@ -137,23 +136,23 @@ class Y extends HTMLElement {
137
136
  connectedCallback() {
138
137
  const n = typeof g == "function" ? g.options : g;
139
138
  let l = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
140
- const b = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (s, i) => (i ? "-" : "") + s.toLowerCase()), v = (a) => a.replace(/-./g, (s) => s[1].toUpperCase()), f = {};
141
- l = l.map(b);
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);
142
141
  const d = {};
143
142
  for (const a of this.attributes) {
144
143
  const i = a.name.split(".");
145
- i.length > 1 && (d[i[0]] || (d[i[0]] = {}), d[i[0]][v(i[1])] = a.value);
144
+ i.length > 1 && (d[i[0]] || (d[i[0]] = {}), d[i[0]][b(i[1])] = a.value);
146
145
  }
147
146
  for (const a of l) {
148
- let s = this.attributes.getNamedItem(a)?.value;
149
- d.hasOwnProperty(a) && (s = d[a]), f[a] = s;
147
+ let o = this.attributes.getNamedItem(a)?.value;
148
+ d.hasOwnProperty(a) && (o = d[a]), f[a] = o;
150
149
  }
151
- this.vueApp = H(g, f), this.vueApp.use(W), this.vueApp.use(U);
150
+ this.vueApp = P(g, f), this.vueApp.provide("emitter", tt), this.vueApp.use(Y), this.vueApp.use(U);
152
151
  const p = document.createElement("div");
153
152
  this.vueApp.mount(p), this.appendChild(p.children[0]);
154
153
  }
155
154
  }
156
- window.customElements.define("konnectio-gift-card-validation", Y);
155
+ window.customElements.define("konnectio-gift-card-validation", et);
157
156
  export {
158
- Y as default
157
+ et as default
159
158
  };
Binary file