@konnectio/core 4.0.56-rc35 → 4.0.56-rc37
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-Bruv7ZZW.js → ActionField-BhYhC0aQ.js} +43 -34
- package/dist/ActionField-BhYhC0aQ.js.br +0 -0
- package/dist/AvailabilitySkeleton-CXRs2yLp.js +286 -0
- package/dist/AvailabilitySkeleton-CXRs2yLp.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BZN97s2s.js} +2687 -2676
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BZN97s2s.js.br +0 -0
- package/dist/{CheckoutWindow-Dn3fiFuv.js → CheckoutWindow-DPJ2GFqg.js} +143 -134
- package/dist/CheckoutWindow-DPJ2GFqg.js.br +0 -0
- package/dist/{ErrorMessage-VK8egk99.js → ErrorMessage-4DJnsYbI.js} +27 -18
- package/dist/ErrorMessage-4DJnsYbI.js.br +0 -0
- package/dist/EventAvailabilityForm-rUB2CJ24.js +432 -0
- package/dist/EventAvailabilityForm-rUB2CJ24.js.br +0 -0
- package/dist/Field-Dr6RF4JV.js +50 -0
- package/dist/Field-Dr6RF4JV.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js +21280 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js.br +0 -0
- package/dist/TermsOfService-B94i1jM5.js +35 -0
- package/dist/TermsOfService-B94i1jM5.js.br +0 -0
- package/dist/_commonjsHelpers-UWZO_9XV.js +11796 -0
- package/dist/_commonjsHelpers-UWZO_9XV.js.br +0 -0
- package/dist/availability.js +60 -50
- package/dist/availability.js.br +0 -0
- package/dist/event.js +279 -269
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +80 -70
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +234 -224
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +696 -692
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-WFnnzw7L.js → masonry.plugin-DPkIO3nk.js} +58 -49
- package/dist/masonry.plugin-DPkIO3nk.js.br +0 -0
- package/dist/navigation.js +10 -1
- package/dist/polyfill.js +14757 -4715
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +15 -13
- package/dist/ActionField-Bruv7ZZW.js.br +0 -0
- package/dist/AvailabilitySkeleton-DxVPZPw3.js +0 -277
- package/dist/AvailabilitySkeleton-DxVPZPw3.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js.br +0 -0
- package/dist/CheckoutWindow-Dn3fiFuv.js.br +0 -0
- package/dist/ErrorMessage-VK8egk99.js.br +0 -0
- package/dist/EventAvailabilityForm-DbkL5luy.js +0 -422
- package/dist/EventAvailabilityForm-DbkL5luy.js.br +0 -0
- package/dist/Field-fZ3Q2e9-.js +0 -41
- package/dist/Field-fZ3Q2e9-.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js +0 -30755
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js.br +0 -0
- package/dist/TermsOfService-2g29W45E.js +0 -26
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/masonry.plugin-WFnnzw7L.js.br +0 -0
package/dist/event.js.br
CHANGED
|
Binary file
|
|
@@ -1,87 +1,96 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { A as Z } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { d as L, o as f, c as A, f as t, e as o, g as X, a as _, w as y, S as M, u as e, t as u, s as w, b as B, i as P, k as T } from "./_commonjsHelpers-UWZO_9XV.js";
|
|
2
|
+
import { E as k, _ as S, u as $, s as x, l as E, o as N, A as C, B as U, D as O, e as z, f as F, g as H, h as j, i as R, m as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js";
|
|
3
|
+
import { A as W } from "./ActionField-BhYhC0aQ.js";
|
|
4
|
+
import { F as I } from "./Field-Dr6RF4JV.js";
|
|
5
|
+
import { E as q } from "./ErrorMessage-4DJnsYbI.js";
|
|
6
|
+
import "./navigation.js";
|
|
7
|
+
(function() {
|
|
8
|
+
try {
|
|
9
|
+
var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
|
|
10
|
+
s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "64c17c6f-6cdf-4b95-91e9-558446ade55e", r._sentryDebugIdIdentifier = "sentry-dbid-64c17c6f-6cdf-4b95-91e9-558446ade55e");
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
})();
|
|
14
|
+
const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-validation-skeleton-form" }, Q = { class: "gift-card-validation-skeleton-text" }, Y = { class: "gift-card-validation-skeleton-input" }, tt = /* @__PURE__ */ L({
|
|
6
15
|
__name: "GiftCardValidationSkeleton",
|
|
7
|
-
setup(
|
|
8
|
-
return (
|
|
9
|
-
t("div",
|
|
10
|
-
t("div",
|
|
16
|
+
setup(r) {
|
|
17
|
+
return (s, c) => (f(), A("div", J, [
|
|
18
|
+
t("div", K, [
|
|
19
|
+
t("div", Q, [
|
|
11
20
|
o(k, { height: "20px" }),
|
|
12
21
|
o(k, { height: "15px" }),
|
|
13
22
|
o(k, { height: "15px" })
|
|
14
23
|
]),
|
|
15
|
-
t("div",
|
|
16
|
-
o(
|
|
17
|
-
o(
|
|
24
|
+
t("div", Y, [
|
|
25
|
+
o(I),
|
|
26
|
+
o(I, { "no-label": "" })
|
|
18
27
|
])
|
|
19
28
|
])
|
|
20
29
|
]));
|
|
21
30
|
}
|
|
22
|
-
}),
|
|
31
|
+
}), et = /* @__PURE__ */ S(tt, [["__scopeId", "data-v-b1601b74"]]), at = ["innerHTML"], nt = {
|
|
23
32
|
key: 0,
|
|
24
33
|
id: "konnectio-gift-card-validation-resume",
|
|
25
|
-
class: "
|
|
26
|
-
},
|
|
34
|
+
class: "konnectio-panel"
|
|
35
|
+
}, ot = /* @__PURE__ */ L({
|
|
27
36
|
name: "GiftCardValidationLayout",
|
|
28
37
|
__name: "GiftCardValidation",
|
|
29
38
|
props: {
|
|
30
39
|
accessToken: {},
|
|
31
40
|
styling: {}
|
|
32
41
|
},
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
42
|
+
setup(r) {
|
|
43
|
+
const s = r, c = X(() => ({
|
|
35
44
|
panelMaxWidth: "800px",
|
|
36
|
-
...
|
|
37
|
-
})), { t:
|
|
38
|
-
voucher:
|
|
39
|
-
isValid:
|
|
40
|
-
amount:
|
|
41
|
-
expirationDate:
|
|
45
|
+
...s.styling
|
|
46
|
+
})), { t: i } = $(), {
|
|
47
|
+
voucher: m,
|
|
48
|
+
isValid: h,
|
|
49
|
+
amount: p,
|
|
50
|
+
expirationDate: b,
|
|
42
51
|
productName: a,
|
|
43
52
|
isLoading: n
|
|
44
|
-
} = x(
|
|
45
|
-
return (
|
|
46
|
-
default:
|
|
47
|
-
(
|
|
48
|
-
default:
|
|
49
|
-
o(
|
|
53
|
+
} = x(E()), { currency: l, hasError: D } = x(N()), { apply: V } = E();
|
|
54
|
+
return (G, d) => (f(), _(F, { styling: c.value }, {
|
|
55
|
+
default: y(() => [
|
|
56
|
+
(f(), _(M, null, {
|
|
57
|
+
default: y(() => [
|
|
58
|
+
o(z, {
|
|
50
59
|
type: "gift-card",
|
|
51
|
-
"access-token":
|
|
60
|
+
"access-token": G.accessToken
|
|
52
61
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
e(
|
|
62
|
+
default: y(() => [
|
|
63
|
+
e(D) ? (f(), _(q, {
|
|
55
64
|
key: 1,
|
|
56
65
|
title: "Unable to render Gift card validation module",
|
|
57
66
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
58
|
-
})) : (
|
|
67
|
+
})) : (f(), A("form", {
|
|
59
68
|
key: 0,
|
|
60
69
|
id: "konnectio-gift-card-validation-module",
|
|
61
|
-
onSubmit:
|
|
70
|
+
onSubmit: d[3] || (d[3] = P((g) => e(V)(), ["prevent"]))
|
|
62
71
|
}, [
|
|
63
72
|
t("h4", null, [
|
|
64
|
-
t("span", null,
|
|
73
|
+
t("span", null, u(e(i)("giftCardValidation.title")), 1)
|
|
65
74
|
]),
|
|
66
75
|
t("p", {
|
|
67
|
-
innerHTML: e(
|
|
68
|
-
}, null, 8,
|
|
69
|
-
o(
|
|
70
|
-
modelValue: e(
|
|
71
|
-
"onUpdate:modelValue":
|
|
76
|
+
innerHTML: e(i)("giftCardValidation.description")
|
|
77
|
+
}, null, 8, at),
|
|
78
|
+
o(W, {
|
|
79
|
+
modelValue: e(m),
|
|
80
|
+
"onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
|
|
72
81
|
icon: "gift-card",
|
|
73
|
-
label: e(
|
|
74
|
-
buttonLabel: e(
|
|
82
|
+
label: e(i)("booking.reservation.giftCardCode"),
|
|
83
|
+
buttonLabel: e(i)("giftCardValidation.submitButton"),
|
|
75
84
|
placeholder: "XXXXXXXX",
|
|
76
85
|
"is-loading": e(n),
|
|
77
|
-
"onUpdate:isLoading":
|
|
78
|
-
onAction:
|
|
86
|
+
"onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
|
|
87
|
+
onAction: d[2] || (d[2] = (g) => e(V)())
|
|
79
88
|
}, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
|
|
80
|
-
!e(n) && e(
|
|
89
|
+
!e(n) && e(h) ? (f(), A("table", nt, [
|
|
81
90
|
t("thead", null, [
|
|
82
91
|
t("tr", null, [
|
|
83
92
|
t("th", null, [
|
|
84
|
-
t("span", null,
|
|
93
|
+
t("span", null, u(e(i)("giftCardValidation.giftCard")), 1),
|
|
85
94
|
o(C, {
|
|
86
95
|
icon: "gift-card",
|
|
87
96
|
type: "fas",
|
|
@@ -89,7 +98,7 @@ const K = { class: "gift-card-validation-skeleton" }, W = { class: "gift-card-va
|
|
|
89
98
|
})
|
|
90
99
|
]),
|
|
91
100
|
t("th", null, [
|
|
92
|
-
t("span", null,
|
|
101
|
+
t("span", null, u(e(i)("giftCardValidation.balance")), 1),
|
|
93
102
|
o(C, {
|
|
94
103
|
icon: "money-bill",
|
|
95
104
|
type: "fas",
|
|
@@ -97,7 +106,7 @@ const K = { class: "gift-card-validation-skeleton" }, W = { class: "gift-card-va
|
|
|
97
106
|
})
|
|
98
107
|
]),
|
|
99
108
|
t("th", null, [
|
|
100
|
-
t("span", null,
|
|
109
|
+
t("span", null, u(e(i)("giftCardValidation.expirationDate")), 1),
|
|
101
110
|
o(C, {
|
|
102
111
|
icon: "timer",
|
|
103
112
|
type: "fas",
|
|
@@ -109,24 +118,24 @@ const K = { class: "gift-card-validation-skeleton" }, W = { class: "gift-card-va
|
|
|
109
118
|
t("tbody", null, [
|
|
110
119
|
t("tr", null, [
|
|
111
120
|
t("td", null, [
|
|
112
|
-
t("span", null,
|
|
121
|
+
t("span", null, u(e(a)), 1)
|
|
113
122
|
]),
|
|
114
123
|
t("td", null, [
|
|
115
|
-
t("span", null,
|
|
124
|
+
t("span", null, u(e(U)(e(p), e(l))), 1)
|
|
116
125
|
]),
|
|
117
126
|
t("td", null, [
|
|
118
|
-
t("span", null,
|
|
127
|
+
t("span", null, u(e(O)(e(b))), 1)
|
|
119
128
|
])
|
|
120
129
|
])
|
|
121
130
|
])
|
|
122
|
-
])) :
|
|
131
|
+
])) : B("", !0)
|
|
123
132
|
], 32))
|
|
124
133
|
]),
|
|
125
134
|
_: 1
|
|
126
135
|
}, 8, ["access-token"])
|
|
127
136
|
]),
|
|
128
|
-
fallback:
|
|
129
|
-
o(
|
|
137
|
+
fallback: y(() => [
|
|
138
|
+
o(et)
|
|
130
139
|
]),
|
|
131
140
|
_: 1
|
|
132
141
|
}))
|
|
@@ -134,8 +143,8 @@ const K = { class: "gift-card-validation-skeleton" }, W = { class: "gift-card-va
|
|
|
134
143
|
_: 1
|
|
135
144
|
}, 8, ["styling"]));
|
|
136
145
|
}
|
|
137
|
-
}),
|
|
138
|
-
class
|
|
146
|
+
}), v = /* @__PURE__ */ S(ot, [["__scopeId", "data-v-f43fe5ec"]]), st = H(), it = Z();
|
|
147
|
+
class lt extends HTMLElement {
|
|
139
148
|
vueApp;
|
|
140
149
|
constructor() {
|
|
141
150
|
super();
|
|
@@ -144,25 +153,26 @@ class it extends HTMLElement {
|
|
|
144
153
|
this.vueApp.unmount();
|
|
145
154
|
}
|
|
146
155
|
connectedCallback() {
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
const
|
|
156
|
+
const s = typeof v == "function" ? v.options : v;
|
|
157
|
+
let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
|
|
158
|
+
const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, l) => (l ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), h = {};
|
|
159
|
+
c = c.map(i);
|
|
160
|
+
const p = {};
|
|
152
161
|
for (const a of this.attributes) {
|
|
153
|
-
const
|
|
154
|
-
|
|
162
|
+
const l = a.name.split(".");
|
|
163
|
+
l.length > 1 && (p[l[0]] || (p[l[0]] = {}), p[l[0]][m(l[1])] = a.value);
|
|
155
164
|
}
|
|
156
|
-
for (const a of
|
|
165
|
+
for (const a of c) {
|
|
157
166
|
let n = this.attributes.getNamedItem(a)?.value;
|
|
158
|
-
|
|
167
|
+
p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
|
|
159
168
|
}
|
|
160
|
-
this.vueApp =
|
|
161
|
-
const
|
|
162
|
-
this.vueApp.mount(
|
|
169
|
+
this.vueApp = T(v, h), j(this.vueApp), this.vueApp.provide("emitter", it), this.vueApp.use(st), this.vueApp.use(R);
|
|
170
|
+
const b = document.createElement("div");
|
|
171
|
+
this.vueApp.mount(b), this.appendChild(b.children[0]);
|
|
163
172
|
}
|
|
164
173
|
}
|
|
165
|
-
window.customElements.define("konnectio-gift-card-validation",
|
|
174
|
+
window.customElements.define("konnectio-gift-card-validation", lt);
|
|
166
175
|
export {
|
|
167
|
-
|
|
176
|
+
lt as default
|
|
168
177
|
};
|
|
178
|
+
//# sourceMappingURL=gift-card-validation.js.map
|
|
Binary file
|