@konnectio/core 4.0.63 → 4.0.64
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-3MggPKk9.js → ActionField-D28Pe5Bb.js} +33 -25
- package/dist/ActionField-D28Pe5Bb.js.br +0 -0
- package/dist/{AvailabilitySkeleton-DSgC6hn3.js → AvailabilitySkeleton-BGEhEqa-.js} +123 -115
- package/dist/AvailabilitySkeleton-BGEhEqa-.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js} +1089 -1081
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js.br +0 -0
- package/dist/{CheckoutWindow-DolJgk40.js → CheckoutWindow-Cv7p0DrF.js} +174 -166
- package/dist/CheckoutWindow-Cv7p0DrF.js.br +0 -0
- package/dist/{ErrorMessage-BksKCxAq.js → ErrorMessage-T11Ou3eh.js} +24 -16
- package/dist/ErrorMessage-T11Ou3eh.js.br +0 -0
- package/dist/EventAvailabilityForm-DeqQKdKV.js +125 -0
- package/dist/EventAvailabilityForm-DeqQKdKV.js.br +0 -0
- package/dist/Field-DcoRYqr8.js +58 -0
- package/dist/Field-DcoRYqr8.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js} +2031 -2022
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js.br +0 -0
- package/dist/TermsOfService-CL0zaNw_.js +44 -0
- package/dist/TermsOfService-CL0zaNw_.js.br +0 -0
- package/dist/_-C5tf0vwv.js +20 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js +77 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js.br +0 -0
- package/dist/{_commonjsHelpers-DEK47QeC.js → _commonjsHelpers-BeCRh3Xf.js} +618 -558
- package/dist/_commonjsHelpers-BeCRh3Xf.js.br +0 -0
- package/dist/{_sentry-release-injection-file-DEszgcWK.js → _sentry-release-injection-file-CY9ljBue.js} +1643 -1635
- package/dist/_sentry-release-injection-file-CY9ljBue.js.br +0 -0
- package/dist/availability.js +67 -59
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +29 -21
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +260 -252
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +71 -63
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +137 -129
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-CHf9cbmB.js +134 -0
- package/dist/giftCard-CHf9cbmB.js.br +0 -0
- package/dist/hotel.js +812 -803
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-GGoTX7a7.js → masonry.plugin-q1wqMEhq.js} +860 -852
- package/dist/masonry.plugin-q1wqMEhq.js.br +0 -0
- package/dist/{mitt-DnPlcQNp.js → mitt-CZC0Vuw7.js} +505 -497
- package/dist/mitt-CZC0Vuw7.js.br +0 -0
- package/dist/polyfill.js +6470 -6259
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-2RYcVxT9.js → style-Di3bMYae.js} +392 -384
- package/dist/style-Di3bMYae.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +8 -8
- package/dist/ActionField-3MggPKk9.js.br +0 -0
- package/dist/AvailabilitySkeleton-DSgC6hn3.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js.br +0 -0
- package/dist/CheckoutWindow-DolJgk40.js.br +0 -0
- package/dist/ErrorMessage-BksKCxAq.js.br +0 -0
- package/dist/EventAvailabilityForm-DZljldrC.js +0 -117
- package/dist/EventAvailabilityForm-DZljldrC.js.br +0 -0
- package/dist/Field-DGi_AnA6.js +0 -50
- package/dist/Field-DGi_AnA6.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js.br +0 -0
- package/dist/TermsOfService-LDUTInOo.js +0 -36
- package/dist/TermsOfService-LDUTInOo.js.br +0 -0
- package/dist/_-CBEOFztf.js +0 -12
- package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js +0 -69
- package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.br +0 -0
- package/dist/_commonjsHelpers-DEK47QeC.js.br +0 -0
- package/dist/_sentry-release-injection-file-DEszgcWK.js.br +0 -0
- package/dist/giftCard-DLrIdehA.js +0 -126
- package/dist/giftCard-DLrIdehA.js.br +0 -0
- package/dist/masonry.plugin-GGoTX7a7.js.br +0 -0
- package/dist/mitt-DnPlcQNp.js.br +0 -0
- package/dist/style-2RYcVxT9.js.br +0 -0
package/dist/event.js.br
CHANGED
|
Binary file
|
|
@@ -1,100 +1,108 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { u as
|
|
3
|
-
import { E as
|
|
4
|
-
import { u as W } from "./giftCard-
|
|
5
|
-
import { _ as q } from "./_.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { A as J } from "./ActionField-
|
|
7
|
-
import { F as
|
|
8
|
-
import { E as
|
|
9
|
-
import { G as
|
|
1
|
+
import { d as L, a as f, g as A, e as t, f as o, c as P, b as k, w as b, S as B, u as e, t as u, v as x, i as T, h as $, k as N } from "./_sentry-release-injection-file-CY9ljBue.js";
|
|
2
|
+
import { u as O, s as E, c as U, i as j, m as z } from "./mitt-CZC0Vuw7.js";
|
|
3
|
+
import { E as C, _ as M, r as I, e as F, I as w, h as H, s as R, C as Z, c as K } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js";
|
|
4
|
+
import { u as W } from "./giftCard-CHf9cbmB.js";
|
|
5
|
+
import { _ as q } from "./_.vue_vue_type_style_index_0_lang-BWAizmh6.js";
|
|
6
|
+
import { A as J } from "./ActionField-D28Pe5Bb.js";
|
|
7
|
+
import { F as S } from "./Field-DcoRYqr8.js";
|
|
8
|
+
import { E as Q } from "./ErrorMessage-T11Ou3eh.js";
|
|
9
|
+
import { G as Y } from "./style-Di3bMYae.js";
|
|
10
10
|
(function() {
|
|
11
11
|
try {
|
|
12
|
-
var
|
|
13
|
-
s && (
|
|
12
|
+
var l = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
|
|
13
|
+
s && (l._sentryDebugIds = l._sentryDebugIds || {}, l._sentryDebugIds[s] = "6ef71152-d8f5-4802-a2f7-320ccc001354", l._sentryDebugIdIdentifier = "sentry-dbid-6ef71152-d8f5-4802-a2f7-320ccc001354");
|
|
14
14
|
} catch {
|
|
15
15
|
}
|
|
16
16
|
})();
|
|
17
|
-
|
|
17
|
+
{
|
|
18
|
+
var v = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
19
|
+
v._sentryModuleMetadata = v._sentryModuleMetadata || {}, v._sentryModuleMetadata[new Error().stack] = Object.assign(
|
|
20
|
+
{},
|
|
21
|
+
v._sentryModuleMetadata[new Error().stack],
|
|
22
|
+
{ "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
const tt = { class: "gift-card-validation-skeleton" }, et = { class: "gift-card-validation-skeleton-form" }, at = { class: "gift-card-validation-skeleton-text" }, nt = { class: "gift-card-validation-skeleton-input" }, ot = /* @__PURE__ */ L({
|
|
18
26
|
__name: "GiftCardValidationSkeleton",
|
|
19
|
-
setup(
|
|
20
|
-
return (s, c) => (f(), A("div",
|
|
21
|
-
t("div",
|
|
22
|
-
t("div", et, [
|
|
23
|
-
o(k, { height: "20px" }),
|
|
24
|
-
o(k, { height: "15px" }),
|
|
25
|
-
o(k, { height: "15px" })
|
|
26
|
-
]),
|
|
27
|
+
setup(l) {
|
|
28
|
+
return (s, c) => (f(), A("div", tt, [
|
|
29
|
+
t("div", et, [
|
|
27
30
|
t("div", at, [
|
|
28
|
-
o(
|
|
29
|
-
o(
|
|
31
|
+
o(C, { height: "20px" }),
|
|
32
|
+
o(C, { height: "15px" }),
|
|
33
|
+
o(C, { height: "15px" })
|
|
34
|
+
]),
|
|
35
|
+
t("div", nt, [
|
|
36
|
+
o(S),
|
|
37
|
+
o(S, { "no-label": "" })
|
|
30
38
|
])
|
|
31
39
|
])
|
|
32
40
|
]));
|
|
33
41
|
}
|
|
34
|
-
}),
|
|
42
|
+
}), st = /* @__PURE__ */ M(ot, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], rt = {
|
|
35
43
|
key: 0,
|
|
36
44
|
id: "konnectio-gift-card-validation-resume",
|
|
37
45
|
class: "konnectio-panel"
|
|
38
|
-
}, lt = /* @__PURE__ */
|
|
46
|
+
}, lt = /* @__PURE__ */ L({
|
|
39
47
|
name: "GiftCardValidationLayout",
|
|
40
48
|
__name: "GiftCardValidation",
|
|
41
49
|
props: {
|
|
42
50
|
accessToken: {},
|
|
43
51
|
styling: {}
|
|
44
52
|
},
|
|
45
|
-
setup(
|
|
46
|
-
const s =
|
|
53
|
+
setup(l) {
|
|
54
|
+
const s = l, c = P(() => ({
|
|
47
55
|
panelMaxWidth: "800px",
|
|
48
56
|
...s.styling
|
|
49
|
-
})), { t: i } =
|
|
57
|
+
})), { t: i } = O(), {
|
|
50
58
|
voucher: m,
|
|
51
|
-
isValid:
|
|
59
|
+
isValid: h,
|
|
52
60
|
amount: p,
|
|
53
|
-
expirationDate:
|
|
61
|
+
expirationDate: y,
|
|
54
62
|
productName: a,
|
|
55
63
|
isLoading: n
|
|
56
|
-
} =
|
|
57
|
-
return (
|
|
58
|
-
default:
|
|
59
|
-
(f(),
|
|
60
|
-
default:
|
|
64
|
+
} = E(I()), { currency: r, hasError: D } = E(F()), { fetchMetadata: G } = W(), { apply: V } = I();
|
|
65
|
+
return (X, d) => (f(), k(Z, { styling: c.value }, {
|
|
66
|
+
default: b(() => [
|
|
67
|
+
(f(), k(B, null, {
|
|
68
|
+
default: b(() => [
|
|
61
69
|
o(q, {
|
|
62
|
-
"access-token":
|
|
63
|
-
callback: e(
|
|
70
|
+
"access-token": X.accessToken,
|
|
71
|
+
callback: e(G)
|
|
64
72
|
}, {
|
|
65
|
-
default:
|
|
66
|
-
e(
|
|
73
|
+
default: b(() => [
|
|
74
|
+
e(D) ? (f(), k(Q, {
|
|
67
75
|
key: 1,
|
|
68
76
|
title: "Unable to render Gift card validation module",
|
|
69
77
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
70
78
|
})) : (f(), A("form", {
|
|
71
79
|
key: 0,
|
|
72
80
|
id: "konnectio-gift-card-validation-module",
|
|
73
|
-
onSubmit: d[3] || (d[3] = $((
|
|
81
|
+
onSubmit: d[3] || (d[3] = $((g) => e(V)(), ["prevent"]))
|
|
74
82
|
}, [
|
|
75
83
|
t("h4", null, [
|
|
76
84
|
t("span", null, u(e(i)("giftCardValidation.title")), 1)
|
|
77
85
|
]),
|
|
78
86
|
t("p", {
|
|
79
87
|
innerHTML: e(i)("giftCardValidation.description")
|
|
80
|
-
}, null, 8,
|
|
88
|
+
}, null, 8, it),
|
|
81
89
|
o(J, {
|
|
82
90
|
modelValue: e(m),
|
|
83
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
91
|
+
"onUpdate:modelValue": d[0] || (d[0] = (g) => x(m) ? m.value = g : null),
|
|
84
92
|
icon: "gift-card",
|
|
85
93
|
label: e(i)("booking.reservation.giftCardCode"),
|
|
86
94
|
buttonLabel: e(i)("giftCardValidation.submitButton"),
|
|
87
95
|
placeholder: "XXXXXXXX",
|
|
88
96
|
"is-loading": e(n),
|
|
89
|
-
"onUpdate:isLoading": d[1] || (d[1] = (
|
|
90
|
-
onAction: d[2] || (d[2] = (
|
|
97
|
+
"onUpdate:isLoading": d[1] || (d[1] = (g) => x(n) ? n.value = g : null),
|
|
98
|
+
onAction: d[2] || (d[2] = (g) => e(V)())
|
|
91
99
|
}, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
|
|
92
|
-
!e(n) && e(
|
|
100
|
+
!e(n) && e(h) ? (f(), A("table", rt, [
|
|
93
101
|
t("thead", null, [
|
|
94
102
|
t("tr", null, [
|
|
95
103
|
t("th", null, [
|
|
96
104
|
t("span", null, u(e(i)("giftCardValidation.giftCard")), 1),
|
|
97
|
-
o(
|
|
105
|
+
o(w, {
|
|
98
106
|
icon: "gift-card",
|
|
99
107
|
type: "fas",
|
|
100
108
|
color: "header"
|
|
@@ -102,7 +110,7 @@ const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
102
110
|
]),
|
|
103
111
|
t("th", null, [
|
|
104
112
|
t("span", null, u(e(i)("giftCardValidation.balance")), 1),
|
|
105
|
-
o(
|
|
113
|
+
o(w, {
|
|
106
114
|
icon: "money-bill",
|
|
107
115
|
type: "fas",
|
|
108
116
|
color: "header"
|
|
@@ -110,7 +118,7 @@ const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
110
118
|
]),
|
|
111
119
|
t("th", null, [
|
|
112
120
|
t("span", null, u(e(i)("giftCardValidation.expirationDate")), 1),
|
|
113
|
-
o(
|
|
121
|
+
o(w, {
|
|
114
122
|
icon: "timer",
|
|
115
123
|
type: "fas",
|
|
116
124
|
color: "header"
|
|
@@ -124,10 +132,10 @@ const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
124
132
|
t("span", null, u(e(a)), 1)
|
|
125
133
|
]),
|
|
126
134
|
t("td", null, [
|
|
127
|
-
t("span", null, u(e(H)(e(p), e(
|
|
135
|
+
t("span", null, u(e(H)(e(p), e(r))), 1)
|
|
128
136
|
]),
|
|
129
137
|
t("td", null, [
|
|
130
|
-
t("span", null, u(e(
|
|
138
|
+
t("span", null, u(e(R)(e(y))), 1)
|
|
131
139
|
])
|
|
132
140
|
])
|
|
133
141
|
])
|
|
@@ -137,8 +145,8 @@ const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
137
145
|
_: 1
|
|
138
146
|
}, 8, ["access-token", "callback"])
|
|
139
147
|
]),
|
|
140
|
-
fallback:
|
|
141
|
-
o(
|
|
148
|
+
fallback: b(() => [
|
|
149
|
+
o(st)
|
|
142
150
|
]),
|
|
143
151
|
_: 1
|
|
144
152
|
}))
|
|
@@ -146,8 +154,8 @@ const Y = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
146
154
|
_: 1
|
|
147
155
|
}, 8, ["styling"]));
|
|
148
156
|
}
|
|
149
|
-
}),
|
|
150
|
-
class
|
|
157
|
+
}), _ = /* @__PURE__ */ M(lt, [["__scopeId", "data-v-ae703950"]]), dt = U(), ct = z();
|
|
158
|
+
class pt extends HTMLElement {
|
|
151
159
|
vueApp;
|
|
152
160
|
constructor() {
|
|
153
161
|
super();
|
|
@@ -156,26 +164,26 @@ class ct extends HTMLElement {
|
|
|
156
164
|
this.vueApp.unmount();
|
|
157
165
|
}
|
|
158
166
|
connectedCallback() {
|
|
159
|
-
const s = typeof
|
|
167
|
+
const s = typeof _ == "function" ? _.options : _;
|
|
160
168
|
let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
|
|
161
|
-
const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n,
|
|
169
|
+
const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, r) => (r ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), h = {};
|
|
162
170
|
c = c.map(i);
|
|
163
171
|
const p = {};
|
|
164
172
|
for (const a of this.attributes) {
|
|
165
|
-
const
|
|
166
|
-
|
|
173
|
+
const r = a.name.split(".");
|
|
174
|
+
r.length > 1 && (p[r[0]] || (p[r[0]] = {}), p[r[0]][m(r[1])] = a.value);
|
|
167
175
|
}
|
|
168
176
|
for (const a of c) {
|
|
169
177
|
let n = this.attributes.getNamedItem(a)?.value;
|
|
170
|
-
p.hasOwnProperty(a) && (n = p[a]),
|
|
178
|
+
p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
|
|
171
179
|
}
|
|
172
|
-
this.vueApp =
|
|
173
|
-
const
|
|
174
|
-
this.vueApp.mount(
|
|
180
|
+
this.vueApp = N(_, h), K(this.vueApp), this.vueApp.provide("emitter", ct), this.vueApp.use(dt), this.vueApp.use(j), this.vueApp.use(Y);
|
|
181
|
+
const y = document.createElement("div");
|
|
182
|
+
this.vueApp.mount(y), this.appendChild(y.children[0]);
|
|
175
183
|
}
|
|
176
184
|
}
|
|
177
|
-
window.customElements.define("konnectio-gift-card-validation",
|
|
185
|
+
window.customElements.define("konnectio-gift-card-validation", pt);
|
|
178
186
|
export {
|
|
179
|
-
|
|
187
|
+
pt as default
|
|
180
188
|
};
|
|
181
189
|
//# sourceMappingURL=gift-card-validation.js.map
|
|
Binary file
|