@konnectio/core 4.0.56-rc15 → 4.0.56-rc17
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.
- package/dist/{ActionField-v2VjBwyP.js → ActionField-FHpkuvKb.js} +3 -3
- package/dist/ActionField-FHpkuvKb.js.br +0 -0
- package/dist/{AvailabilitySkeleton-Qp8pBuKB.js → AvailabilitySkeleton-5cdinrJb.js} +31 -32
- package/dist/AvailabilitySkeleton-5cdinrJb.js.br +0 -0
- package/dist/{CheckoutWindow-zKWL14ZQ.js → CheckoutWindow-2QBoV8Ux.js} +24 -24
- package/dist/CheckoutWindow-2QBoV8Ux.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js +8026 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js.br +0 -0
- package/dist/{Field-813GNeV-.js → Field-XgLyezkE.js} +8 -9
- package/dist/Field-XgLyezkE.js.br +0 -0
- package/dist/ThankYou-qlEQeAKd.js +12057 -0
- package/dist/ThankYou-qlEQeAKd.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-e8Rmd6FZ.js → _-488L5zGs.js} +5419 -5540
- package/dist/_-488L5zGs.js.br +0 -0
- package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
- package/dist/availability.js +45 -48
- package/dist/availability.js.br +0 -0
- package/dist/{event-mQu2QsEx.js → event-TnRfky1i.js} +43 -43
- package/dist/event-TnRfky1i.js.br +0 -0
- package/dist/event.js +63 -64
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +82 -55
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +209 -208
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +959 -920
- package/dist/hotel.js.br +0 -0
- package/dist/polyfill.js +97 -97
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +13 -13
- package/dist/ActionField-v2VjBwyP.js.br +0 -0
- package/dist/AvailabilitySkeleton-Qp8pBuKB.js.br +0 -0
- package/dist/CheckoutWindow-zKWL14ZQ.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-cmnH2g2d.js +0 -8558
- package/dist/DateField.vue_vue_type_style_index_0_lang-cmnH2g2d.js.br +0 -0
- package/dist/Field-813GNeV-.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-e8Rmd6FZ.js.br +0 -0
- package/dist/ThankYou-CibbgAJf.js +0 -13233
- package/dist/ThankYou-CibbgAJf.js.br +0 -0
- package/dist/_-VRZUGIKe.js +0 -19
- package/dist/_commonjsHelpers-2ufMB8rV.js +0 -30
- package/dist/event-mQu2QsEx.js.br +0 -0
|
@@ -1,78 +1,96 @@
|
|
|
1
|
-
import { k as w,
|
|
2
|
-
import { A as
|
|
3
|
-
import "./
|
|
4
|
-
|
|
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 "./_-488L5zGs.js";
|
|
2
|
+
import { A as F } from "./ActionField-FHpkuvKb.js";
|
|
3
|
+
import { F as L } from "./Field-XgLyezkE.js";
|
|
4
|
+
import "./_commonjsHelpers-f3sTPFkQ.js";
|
|
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
|
-
},
|
|
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(
|
|
16
|
-
const { t:
|
|
33
|
+
setup(C) {
|
|
34
|
+
const { t: n } = B(), {
|
|
17
35
|
voucher: l,
|
|
18
|
-
isValid:
|
|
19
|
-
amount:
|
|
20
|
-
expirationDate:
|
|
21
|
-
productName:
|
|
22
|
-
isLoading:
|
|
23
|
-
} =
|
|
24
|
-
return (
|
|
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
|
-
(
|
|
44
|
+
(h(), A(G, null, {
|
|
27
45
|
default: m(() => [
|
|
28
|
-
|
|
46
|
+
o(z, {
|
|
29
47
|
id: "fresh-booking-gift-card-validation-module",
|
|
30
|
-
"access-token":
|
|
48
|
+
"access-token": i.accessToken,
|
|
31
49
|
type: "gift-card"
|
|
32
50
|
}, {
|
|
33
51
|
default: m(() => [
|
|
34
52
|
t("form", {
|
|
35
|
-
onSubmit:
|
|
53
|
+
onSubmit: r[3] || (r[3] = I((u) => e(s)(), ["prevent"]))
|
|
36
54
|
}, [
|
|
37
55
|
t("h4", null, [
|
|
38
|
-
t("span", null,
|
|
56
|
+
t("span", null, c(e(n)("giftCardValidation.title")), 1)
|
|
39
57
|
]),
|
|
40
58
|
t("p", {
|
|
41
|
-
innerHTML:
|
|
42
|
-
}, null, 8,
|
|
43
|
-
|
|
44
|
-
modelValue:
|
|
45
|
-
"onUpdate:modelValue":
|
|
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:
|
|
48
|
-
buttonLabel:
|
|
65
|
+
label: e(n)("booking.reservation.giftCardCode"),
|
|
66
|
+
buttonLabel: e(n)("giftCardValidation.submitButton"),
|
|
49
67
|
placeholder: "XXXXXXXX",
|
|
50
|
-
"is-loading":
|
|
51
|
-
"onUpdate:isLoading":
|
|
52
|
-
onAction:
|
|
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
|
-
!
|
|
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,
|
|
59
|
-
|
|
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,
|
|
67
|
-
|
|
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,
|
|
75
|
-
|
|
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,
|
|
104
|
+
t("span", null, c(e(d)), 1)
|
|
87
105
|
]),
|
|
88
106
|
t("td", null, [
|
|
89
|
-
t("span", null,
|
|
107
|
+
t("span", null, c(e(N)(e(v), e(a))), 1)
|
|
90
108
|
]),
|
|
91
109
|
t("td", null, [
|
|
92
|
-
t("span", null,
|
|
110
|
+
t("span", null, c(e(T)(e(f))), 1)
|
|
93
111
|
])
|
|
94
112
|
])
|
|
95
113
|
])
|
|
96
|
-
])) :
|
|
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__ */
|
|
112
|
-
class
|
|
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
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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",
|
|
157
|
+
window.customElements.define("konnectio-gift-card-validation", Y);
|
|
131
158
|
export {
|
|
132
|
-
|
|
159
|
+
Y as default
|
|
133
160
|
};
|
|
Binary file
|