@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.
- package/dist/{ActionField-qP-3ktN4.js → ActionField-tze5AH3K.js} +10 -10
- package/dist/ActionField-tze5AH3K.js.br +0 -0
- package/dist/AvailabilitySkeleton-BO4Erg_O.js +277 -0
- package/dist/AvailabilitySkeleton-BO4Erg_O.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js +7681 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js.br +0 -0
- package/dist/{CheckoutWindow-RWkSWvbk.js → CheckoutWindow-CIZWV-gI.js} +55 -55
- package/dist/CheckoutWindow-CIZWV-gI.js.br +0 -0
- package/dist/{ErrorMessage-z0JJ8Q3W.js → ErrorMessage-BzZDhDkX.js} +1 -1
- package/dist/ErrorMessage-BzZDhDkX.js.br +0 -0
- package/dist/EventAvailabilityForm-D73TXrag.js +422 -0
- package/dist/EventAvailabilityForm-D73TXrag.js.br +0 -0
- package/dist/Field-oZiblvji.js +41 -0
- package/dist/Field-oZiblvji.js.br +0 -0
- package/dist/{Field-C9r1d8IB.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js} +11521 -11751
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js.br +0 -0
- package/dist/{TermsOfService-oZz-B-KI.js → TermsOfService-yJlRLBDk.js} +2 -2
- package/dist/availability.js +45 -46
- package/dist/availability.js.br +0 -0
- package/dist/event.js +622 -491
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +87 -77
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +261 -260
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +1016 -1027
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-fa0tia29.js → masonry.plugin-B71LqMrD.js} +1263 -1271
- package/dist/masonry.plugin-B71LqMrD.js.br +0 -0
- package/dist/polyfill.js +2507 -2503
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +25 -24
- package/dist/ActionField-qP-3ktN4.js.br +0 -0
- package/dist/AvailabilitySkeleton-uaCnfwHM.js +0 -7665
- package/dist/AvailabilitySkeleton-uaCnfwHM.js.br +0 -0
- package/dist/CheckoutWindow-RWkSWvbk.js.br +0 -0
- package/dist/ErrorMessage-z0JJ8Q3W.js.br +0 -0
- package/dist/EventAvailabilityForm-LIgUj1t3.js +0 -325
- package/dist/EventAvailabilityForm-LIgUj1t3.js.br +0 -0
- package/dist/Field-C9r1d8IB.js.br +0 -0
- package/dist/HotelAvailabilityForm-AQ4VA15t.js +0 -212
- package/dist/HotelAvailabilityForm-AQ4VA15t.js.br +0 -0
- package/dist/masonry.plugin-fa0tia29.js.br +0 -0
- /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
|
|
2
|
-
import { A as
|
|
3
|
-
|
|
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(
|
|
6
|
-
return (
|
|
7
|
-
t("div",
|
|
8
|
-
t("div",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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",
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
t("div", Q, [
|
|
16
|
+
o(E),
|
|
17
|
+
o(E, { "no-label": "" })
|
|
16
18
|
])
|
|
17
19
|
])
|
|
18
20
|
]));
|
|
19
21
|
}
|
|
20
|
-
}),
|
|
22
|
+
}), tt = /* @__PURE__ */ S(Y, [["__scopeId", "data-v-b1601b74"]]), et = ["innerHTML"], at = {
|
|
21
23
|
key: 0,
|
|
22
|
-
id: "
|
|
24
|
+
id: "konnectio-gift-card-validation-resume",
|
|
23
25
|
class: "fresh-booking-panel"
|
|
24
|
-
},
|
|
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(
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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:
|
|
50
|
-
|
|
51
|
-
|
|
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,
|
|
64
|
+
t("span", null, d(e(s)("giftCardValidation.title")), 1)
|
|
55
65
|
]),
|
|
56
66
|
t("p", {
|
|
57
|
-
innerHTML: e(
|
|
58
|
-
}, null, 8,
|
|
59
|
-
|
|
60
|
-
modelValue: e(
|
|
61
|
-
"onUpdate:modelValue":
|
|
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(
|
|
64
|
-
buttonLabel: e(
|
|
73
|
+
label: e(s)("booking.reservation.giftCardCode"),
|
|
74
|
+
buttonLabel: e(s)("giftCardValidation.submitButton"),
|
|
65
75
|
placeholder: "XXXXXXXX",
|
|
66
|
-
"is-loading": e(
|
|
67
|
-
"onUpdate:isLoading":
|
|
68
|
-
onAction:
|
|
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(
|
|
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,
|
|
75
|
-
|
|
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,
|
|
83
|
-
|
|
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,
|
|
91
|
-
|
|
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,
|
|
112
|
+
t("span", null, d(e(a)), 1)
|
|
103
113
|
]),
|
|
104
114
|
t("td", null, [
|
|
105
|
-
t("span", null,
|
|
115
|
+
t("span", null, d(e($)(e(r), e(i))), 1)
|
|
106
116
|
]),
|
|
107
117
|
t("td", null, [
|
|
108
|
-
t("span", null,
|
|
118
|
+
t("span", null, d(e(D)(e(h))), 1)
|
|
109
119
|
])
|
|
110
120
|
])
|
|
111
121
|
])
|
|
112
|
-
])) :
|
|
113
|
-
], 32)
|
|
122
|
+
])) : I("", !0)
|
|
123
|
+
], 32))
|
|
114
124
|
]),
|
|
115
125
|
_: 1
|
|
116
126
|
}, 8, ["access-token"])
|
|
117
127
|
]),
|
|
118
|
-
fallback:
|
|
119
|
-
|
|
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
|
-
}),
|
|
128
|
-
class
|
|
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
|
|
138
|
-
let
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
const
|
|
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 && (
|
|
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
|
|
147
|
-
let
|
|
148
|
-
|
|
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 =
|
|
151
|
-
const
|
|
152
|
-
this.vueApp.mount(
|
|
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",
|
|
165
|
+
window.customElements.define("konnectio-gift-card-validation", it);
|
|
156
166
|
export {
|
|
157
|
-
|
|
167
|
+
it as default
|
|
158
168
|
};
|
|
Binary file
|