@konnectio/core 4.0.56-rc14 → 4.0.56-rc16

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 (40) hide show
  1. package/dist/{ActionField-NTrSbw7Q.js → ActionField-SGZXrFG1.js} +3 -3
  2. package/dist/ActionField-SGZXrFG1.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-bXR1a0GD.js → AvailabilitySkeleton-19huhDbT.js} +60 -59
  4. package/dist/AvailabilitySkeleton-19huhDbT.js.br +0 -0
  5. package/dist/{CheckoutWindow-bniC0iyZ.js → CheckoutWindow-o4wiWlxF.js} +24 -24
  6. package/dist/CheckoutWindow-o4wiWlxF.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-dZLUVdkb.js → DateField.vue_vue_type_style_index_0_lang-RdYEm2Lf.js} +1 -1
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-RdYEm2Lf.js.br +0 -0
  9. package/dist/{Field-Q6QI-y1R.js → Field-G2DlJtS7.js} +8 -9
  10. package/dist/Field-G2DlJtS7.js.br +0 -0
  11. package/dist/{ThankYou-Y7NZr5tX.js → ThankYou-HbdcEofD.js} +2696 -2290
  12. package/dist/ThankYou-HbdcEofD.js.br +0 -0
  13. package/dist/{SelectField.vue_vue_type_style_index_0_lang-HS4IMhJo.js → _-dt4Hj4aJ.js} +1783 -1745
  14. package/dist/_-dt4Hj4aJ.js.br +0 -0
  15. package/dist/availability.js +44 -47
  16. package/dist/availability.js.br +0 -0
  17. package/dist/{event-szASyn8u.js → event-XF6pKTqj.js} +43 -43
  18. package/dist/event-XF6pKTqj.js.br +0 -0
  19. package/dist/event.js +62 -63
  20. package/dist/event.js.br +0 -0
  21. package/dist/gift-card-validation.js +81 -54
  22. package/dist/gift-card-validation.js.br +0 -0
  23. package/dist/gift-card.js +208 -207
  24. package/dist/gift-card.js.br +0 -0
  25. package/dist/hotel.js +273 -275
  26. package/dist/hotel.js.br +0 -0
  27. package/dist/polyfill.js +1 -1
  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 +11 -11
  32. package/dist/ActionField-NTrSbw7Q.js.br +0 -0
  33. package/dist/AvailabilitySkeleton-bXR1a0GD.js.br +0 -0
  34. package/dist/CheckoutWindow-bniC0iyZ.js.br +0 -0
  35. package/dist/DateField.vue_vue_type_style_index_0_lang-dZLUVdkb.js.br +0 -0
  36. package/dist/Field-Q6QI-y1R.js.br +0 -0
  37. package/dist/SelectField.vue_vue_type_style_index_0_lang-HS4IMhJo.js.br +0 -0
  38. package/dist/ThankYou-Y7NZr5tX.js.br +0 -0
  39. package/dist/_-MoXhK74q.js +0 -19
  40. package/dist/event-szASyn8u.js.br +0 -0
@@ -1,78 +1,96 @@
1
- import { k as w, B as A, s as k, a as V, c as S, o as b, m as _, w as m, D as X, p, x as t, F as s, z as a, G as v, l as I, H as y, J as x, K as B, n as N, L as T, M as D, N as E, P as M, Q as G, _ as H, R as U, U as P, V as R } from "./SelectField.vue_vue_type_style_index_0_lang-HS4IMhJo.js";
2
- import { A as $ } from "./ActionField-NTrSbw7Q.js";
1
+ import { k as w, o as h, x as X, n as t, t as o, z as _, v as S, B, s as y, a as V, c as E, m as A, w as m, ab as G, P as c, p as e, J as x, N as k, W as N, a2 as T, y as $, L as I, a3 as z, a4 as D, a7 as M, a8 as P, a9 as U } from "./_-dt4Hj4aJ.js";
2
+ import { A as F } from "./ActionField-SGZXrFG1.js";
3
+ import { F as L } from "./Field-G2DlJtS7.js";
3
4
  import "./_commonjsHelpers-2ufMB8rV.js";
4
- const F = (i) => (M("data-v-0b17aac3"), i = i(), G(), i), j = ["innerHTML"], z = {
5
+ const H = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-validation-skeleton-form" }, j = { class: "gift-card-validation-skeleton-text" }, R = { class: "gift-card-validation-skeleton-input" }, Z = /* @__PURE__ */ w({
6
+ __name: "GiftCardValidationSkeleton",
7
+ setup(C) {
8
+ return (n, l) => (h(), X("div", H, [
9
+ t("div", O, [
10
+ t("div", j, [
11
+ o(_, { height: "20px" }),
12
+ o(_, { height: "15px" }),
13
+ o(_, { height: "15px" })
14
+ ]),
15
+ t("div", R, [
16
+ o(L),
17
+ o(L, { "no-label": "" })
18
+ ])
19
+ ])
20
+ ]));
21
+ }
22
+ }), J = /* @__PURE__ */ S(Z, [["__scopeId", "data-v-0b8074bf"]]), W = ["innerHTML"], q = {
5
23
  key: 0,
6
24
  id: "fresh-booking-gift-card-validation-resume",
7
25
  class: "fresh-booking-panel"
8
- }, J = /* @__PURE__ */ F(() => /* @__PURE__ */ t("span", null, "Loading...", -1)), K = /* @__PURE__ */ w({
26
+ }, K = /* @__PURE__ */ w({
9
27
  name: "GiftCardValidationLayout",
10
28
  __name: "GiftCardValidation",
11
29
  props: {
12
30
  accessToken: {},
13
31
  styling: {}
14
32
  },
15
- setup(i) {
16
- const { t: e } = A(), {
33
+ setup(C) {
34
+ const { t: n } = B(), {
17
35
  voucher: l,
18
- isValid: c,
19
- amount: r,
20
- expirationDate: u,
21
- productName: f,
22
- isLoading: o
23
- } = k(V()), { currency: L } = k(S()), { apply: h } = V();
24
- return (C, n) => (b(), _(E, { styling: C.styling }, {
36
+ isValid: b,
37
+ amount: v,
38
+ expirationDate: f,
39
+ productName: d,
40
+ isLoading: p
41
+ } = y(V()), { currency: a } = y(E()), { apply: s } = V();
42
+ return (i, r) => (h(), A(D, { styling: i.styling }, {
25
43
  default: m(() => [
26
- (b(), _(X, null, {
44
+ (h(), A(G, null, {
27
45
  default: m(() => [
28
- p(D, {
46
+ o(z, {
29
47
  id: "fresh-booking-gift-card-validation-module",
30
- "access-token": C.accessToken,
48
+ "access-token": i.accessToken,
31
49
  type: "gift-card"
32
50
  }, {
33
51
  default: m(() => [
34
52
  t("form", {
35
- onSubmit: n[3] || (n[3] = T((d) => a(h)(), ["prevent"]))
53
+ onSubmit: r[3] || (r[3] = I((u) => e(s)(), ["prevent"]))
36
54
  }, [
37
55
  t("h4", null, [
38
- t("span", null, s(a(e)("giftCardValidation.title")), 1)
56
+ t("span", null, c(e(n)("giftCardValidation.title")), 1)
39
57
  ]),
40
58
  t("p", {
41
- innerHTML: a(e)("giftCardValidation.description")
42
- }, null, 8, j),
43
- p($, {
44
- modelValue: a(l),
45
- "onUpdate:modelValue": n[0] || (n[0] = (d) => v(l) ? l.value = d : null),
59
+ innerHTML: e(n)("giftCardValidation.description")
60
+ }, null, 8, W),
61
+ o(F, {
62
+ modelValue: e(l),
63
+ "onUpdate:modelValue": r[0] || (r[0] = (u) => x(l) ? l.value = u : null),
46
64
  icon: "gift-card",
47
- label: a(e)("booking.reservation.giftCardCode"),
48
- buttonLabel: a(e)("giftCardValidation.submitButton"),
65
+ label: e(n)("booking.reservation.giftCardCode"),
66
+ buttonLabel: e(n)("giftCardValidation.submitButton"),
49
67
  placeholder: "XXXXXXXX",
50
- "is-loading": a(o),
51
- "onUpdate:isLoading": n[1] || (n[1] = (d) => v(o) ? o.value = d : null),
52
- onAction: n[2] || (n[2] = (d) => a(h)())
68
+ "is-loading": e(p),
69
+ "onUpdate:isLoading": r[1] || (r[1] = (u) => x(p) ? p.value = u : null),
70
+ onAction: r[2] || (r[2] = (u) => e(s)())
53
71
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
54
- !a(o) && a(c) ? (b(), I("table", z, [
72
+ !e(p) && e(b) ? (h(), X("table", q, [
55
73
  t("thead", null, [
56
74
  t("tr", null, [
57
75
  t("th", null, [
58
- t("span", null, s(a(e)("giftCardValidation.giftCard")), 1),
59
- p(y, {
76
+ t("span", null, c(e(n)("giftCardValidation.giftCard")), 1),
77
+ o(k, {
60
78
  icon: "gift-card",
61
79
  type: "fas",
62
80
  color: "header"
63
81
  })
64
82
  ]),
65
83
  t("th", null, [
66
- t("span", null, s(a(e)("giftCardValidation.balance")), 1),
67
- p(y, {
84
+ t("span", null, c(e(n)("giftCardValidation.balance")), 1),
85
+ o(k, {
68
86
  icon: "money-bill",
69
87
  type: "fas",
70
88
  color: "header"
71
89
  })
72
90
  ]),
73
91
  t("th", null, [
74
- t("span", null, s(a(e)("giftCardValidation.expirationDate")), 1),
75
- p(y, {
92
+ t("span", null, c(e(n)("giftCardValidation.expirationDate")), 1),
93
+ o(k, {
76
94
  icon: "timer",
77
95
  type: "fas",
78
96
  color: "header"
@@ -83,24 +101,24 @@ const F = (i) => (M("data-v-0b17aac3"), i = i(), G(), i), j = ["innerHTML"], z =
83
101
  t("tbody", null, [
84
102
  t("tr", null, [
85
103
  t("td", null, [
86
- t("span", null, s(a(f)), 1)
104
+ t("span", null, c(e(d)), 1)
87
105
  ]),
88
106
  t("td", null, [
89
- t("span", null, s(a(x)(a(r), a(L))), 1)
107
+ t("span", null, c(e(N)(e(v), e(a))), 1)
90
108
  ]),
91
109
  t("td", null, [
92
- t("span", null, s(a(B)(a(u))), 1)
110
+ t("span", null, c(e(T)(e(f))), 1)
93
111
  ])
94
112
  ])
95
113
  ])
96
- ])) : N("", !0)
114
+ ])) : $("", !0)
97
115
  ], 32)
98
116
  ]),
99
117
  _: 1
100
118
  }, 8, ["access-token"])
101
119
  ]),
102
120
  fallback: m(() => [
103
- J
121
+ o(J)
104
122
  ]),
105
123
  _: 1
106
124
  }))
@@ -108,26 +126,35 @@ const F = (i) => (M("data-v-0b17aac3"), i = i(), G(), i), j = ["innerHTML"], z =
108
126
  _: 1
109
127
  }, 8, ["styling"]));
110
128
  }
111
- }), g = /* @__PURE__ */ H(K, [["__scopeId", "data-v-0b17aac3"]]), O = U();
112
- class Q extends HTMLElement {
129
+ }), g = /* @__PURE__ */ S(K, [["__scopeId", "data-v-b19b4a0e"]]), Q = M();
130
+ class Y extends HTMLElement {
131
+ vueApp;
113
132
  constructor() {
114
133
  super();
115
134
  }
135
+ disconnectedCallback() {
136
+ this.vueApp.unmount();
137
+ }
116
138
  connectedCallback() {
117
- const e = typeof g == "function" ? g.options : g, l = Array.isArray(e.props) ? e.props : Object.keys(e.props || {}), c = {};
118
- for (const f of l) {
119
- const o = this.attributes.getNamedItem(f)?.value;
120
- if (!o)
121
- break;
122
- c[f] = o;
139
+ const n = typeof g == "function" ? g.options : g;
140
+ let l = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
141
+ 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 = {};
142
+ l = l.map(b);
143
+ const d = {};
144
+ for (const a of this.attributes) {
145
+ const i = a.name.split(".");
146
+ i.length > 1 && (d[i[0]] || (d[i[0]] = {}), d[i[0]][v(i[1])] = a.value);
147
+ }
148
+ for (const a of l) {
149
+ let s = this.attributes.getNamedItem(a)?.value;
150
+ d.hasOwnProperty(a) && (s = d[a]), f[a] = s;
123
151
  }
124
- const r = P(g, c);
125
- r.use(O), r.use(R);
126
- const u = document.createElement("div");
127
- r.mount(u), this.appendChild(u.children[0]);
152
+ this.vueApp = P(g, f), this.vueApp.use(Q), this.vueApp.use(U);
153
+ const p = document.createElement("div");
154
+ this.vueApp.mount(p), this.appendChild(p.children[0]);
128
155
  }
129
156
  }
130
- window.customElements.define("konnectio-gift-card-validation", Q);
157
+ window.customElements.define("konnectio-gift-card-validation", Y);
131
158
  export {
132
- Q as default
159
+ Y as default
133
160
  };
Binary file