@konnectio/core 4.0.58 → 4.0.59
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-SljqGQe4.js → ActionField-GHsNRSZm.js} +3 -3
- package/dist/ActionField-GHsNRSZm.js.br +0 -0
- package/dist/{AvailabilitySkeleton-VxFPbzvu.js → AvailabilitySkeleton-CyvafyOT.js} +6 -6
- package/dist/AvailabilitySkeleton-CyvafyOT.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CrPwaYxX.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js} +371 -365
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js.br +0 -0
- package/dist/{CheckoutWindow-BsR9w1sU.js → CheckoutWindow-BqJ6ZsZD.js} +4 -4
- package/dist/CheckoutWindow-BqJ6ZsZD.js.br +0 -0
- package/dist/{ErrorMessage-Bv8Sjw4c.js → ErrorMessage-144-POu6.js} +3 -3
- package/dist/ErrorMessage-144-POu6.js.br +0 -0
- package/dist/{EventAvailabilityForm-Cjn9eC1i.js → EventAvailabilityForm-CJff-76Z.js} +5 -5
- package/dist/EventAvailabilityForm-CJff-76Z.js.br +0 -0
- package/dist/{Field-Dv-tx0DG.js → Field-BrI8toPe.js} +3 -3
- package/dist/Field-BrI8toPe.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BRY3Z3U3.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js} +2183 -2180
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js.br +0 -0
- package/dist/{TermsOfService-DudxcmqT.js → TermsOfService-DLQtIpLt.js} +5 -5
- package/dist/TermsOfService-DLQtIpLt.js.br +0 -0
- package/dist/{_-3oY9YKKN.js → _-CHRCWC6p.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-Cm6NL02H.js → _.vue_vue_type_style_index_0_lang-BUoCnNZd.js} +5 -5
- package/dist/_.vue_vue_type_style_index_0_lang-BUoCnNZd.js.br +0 -0
- package/dist/{_commonjsHelpers-BljBhQM7.js → _commonjsHelpers-CYyxJoRf.js} +2 -2
- package/dist/{_sentry-release-injection-file-D0NAFAC9.js → _sentry-release-injection-file-CkMeg-D2.js} +3253 -3327
- package/dist/_sentry-release-injection-file-CkMeg-D2.js.br +0 -0
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +2 -2
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +195 -195
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +31 -31
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +91 -91
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-DtBMjMxF.js +126 -0
- package/dist/giftCard-DtBMjMxF.js.br +0 -0
- package/dist/hotel.js +13 -13
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-BKhDyXyM.js → masonry.plugin-Ch8U9Epf.js} +1568 -1552
- package/dist/masonry.plugin-Ch8U9Epf.js.br +0 -0
- package/dist/{mitt-bU37KQKU.js → mitt-Cbb-9RWx.js} +7 -6
- package/dist/mitt-Cbb-9RWx.js.br +0 -0
- package/dist/polyfill.js +17216 -14675
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +10 -10
- package/dist/ActionField-SljqGQe4.js.br +0 -0
- package/dist/AvailabilitySkeleton-VxFPbzvu.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CrPwaYxX.js.br +0 -0
- package/dist/CheckoutWindow-BsR9w1sU.js.br +0 -0
- package/dist/ErrorMessage-Bv8Sjw4c.js.br +0 -0
- package/dist/EventAvailabilityForm-Cjn9eC1i.js.br +0 -0
- package/dist/Field-Dv-tx0DG.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BRY3Z3U3.js.br +0 -0
- package/dist/TermsOfService-DudxcmqT.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-Cm6NL02H.js.br +0 -0
- package/dist/_sentry-release-injection-file-D0NAFAC9.js.br +0 -0
- package/dist/giftCard-vxErFkoV.js +0 -134
- package/dist/giftCard-vxErFkoV.js.br +0 -0
- package/dist/masonry.plugin-BKhDyXyM.js.br +0 -0
- package/dist/mitt-bU37KQKU.js.br +0 -0
- package/dist/tracing-CMlyHB3J.js +0 -2537
- package/dist/tracing-CMlyHB3J.js.br +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { r as H, a as J, d as E, G as s, t as S, S as w, v as M, o as O, w as K } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js";
|
|
2
|
+
import { d as Q, s as X, a as k } from "./mitt-Cbb-9RWx.js";
|
|
3
|
+
import { r as t, c as a } from "./_sentry-release-injection-file-CkMeg-D2.js";
|
|
4
|
+
(function() {
|
|
5
|
+
try {
|
|
6
|
+
var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, c = new Error().stack;
|
|
7
|
+
c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "22467707-9aba-4bc6-b566-9af8d4101364", i._sentryDebugIdIdentifier = "sentry-dbid-22467707-9aba-4bc6-b566-9af8d4101364");
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
})();
|
|
11
|
+
const ae = Q("giftCard", () => {
|
|
12
|
+
const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: x, hasError: I } = X(E()), T = E(), o = t(s.InitialState), f = S("konnectio_name", "", void 0, { serializer: w.string }), p = S("konnectio_email", "", void 0, { serializer: w.string }), g = S("konnectio_phone", "", void 0, { serializer: w.string }), m = t(""), F = t(1), C = t(!0), D = t(""), u = t({
|
|
13
|
+
base64: "",
|
|
14
|
+
type: "",
|
|
15
|
+
name: ""
|
|
16
|
+
}), R = t(void 0), y = t(0), d = t(!1), h = t(0), _ = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}), G = a(() => _.value.termsOfService ? _.value.termsOfService : ""), U = a(() => o.value === s.InitialState || o.value === s.WaitingForResponse), W = a(() => o.value === s.ReadyToPay), j = a(() => o.value === s.PaymentSuccess), b = a(() => {
|
|
17
|
+
const e = {
|
|
18
|
+
1: {
|
|
19
|
+
label: k.t("giftCard.hotelType"),
|
|
20
|
+
data: []
|
|
21
|
+
},
|
|
22
|
+
2: {
|
|
23
|
+
label: k.t("giftCard.restaurantType"),
|
|
24
|
+
data: []
|
|
25
|
+
}
|
|
26
|
+
}, l = P.value.hotels[0].places;
|
|
27
|
+
return l && l.forEach((n) => {
|
|
28
|
+
e[n.placeType].data.push(n);
|
|
29
|
+
}), Object.fromEntries(
|
|
30
|
+
Object.entries(e).filter(([, n]) => n.data.length > 0)
|
|
31
|
+
);
|
|
32
|
+
}), z = a(() => h.value !== 0), r = a(() => {
|
|
33
|
+
let e;
|
|
34
|
+
if (z.value)
|
|
35
|
+
e = b.value[h.value].data[0];
|
|
36
|
+
else if (y.value !== 0) {
|
|
37
|
+
const l = R.value, n = b.value[y.value].data;
|
|
38
|
+
n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((A) => {
|
|
39
|
+
String(A.id) === String(l) && (e = A);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return e;
|
|
43
|
+
}), L = a(() => !(!f.value || !p.value || !(g.value.length >= 5) || !m.value || r.value === void 0)), q = a(() => !(o.value === s.InitialState && d.value)), N = a(() => !!(o.value === s.WaitingForResponse && d.value));
|
|
44
|
+
async function $() {
|
|
45
|
+
try {
|
|
46
|
+
const e = (await M.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
|
|
47
|
+
params: {
|
|
48
|
+
language: O()
|
|
49
|
+
},
|
|
50
|
+
headers: {
|
|
51
|
+
Authorization: v.value,
|
|
52
|
+
Accept: "application/json"
|
|
53
|
+
}
|
|
54
|
+
})).data;
|
|
55
|
+
e.success !== void 0 ? I.value = !e.success : I.value = !1, P.value = e;
|
|
56
|
+
} catch {
|
|
57
|
+
c({
|
|
58
|
+
message: k.t("alert.error.couldntFetchMetadata"),
|
|
59
|
+
type: "warning"
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
async function B() {
|
|
64
|
+
o.value = s.WaitingForResponse, d.value = !0, await M.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
65
|
+
termsOfserviceURL: window.location.origin,
|
|
66
|
+
checkoutUrl: window.location.origin,
|
|
67
|
+
currencyID: x.value,
|
|
68
|
+
language: O(),
|
|
69
|
+
amount: m.value,
|
|
70
|
+
quantity: F.value,
|
|
71
|
+
freeText: D.value,
|
|
72
|
+
showPrice: C.value,
|
|
73
|
+
contactName: f.value,
|
|
74
|
+
contactEmail: p.value,
|
|
75
|
+
contactPhone: g.value,
|
|
76
|
+
imageBase64: K(u.value.base64),
|
|
77
|
+
imageName: u.value.name,
|
|
78
|
+
imageFormat: u.value.type,
|
|
79
|
+
placeType: r.value ? r.value.placeType : void 0,
|
|
80
|
+
placeID: r.value ? r.value.id : void 0
|
|
81
|
+
}, {
|
|
82
|
+
headers: {
|
|
83
|
+
Authorization: v.value,
|
|
84
|
+
Accept: "application/json"
|
|
85
|
+
}
|
|
86
|
+
}).then((e) => {
|
|
87
|
+
o.value = s.ReadyToPay, d.value = !1, i({
|
|
88
|
+
callback: () => console.log("Callback!"),
|
|
89
|
+
response: e.data
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function V(e) {
|
|
94
|
+
e && (h.value = e);
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
selectedPlace: r,
|
|
98
|
+
moduleState: o,
|
|
99
|
+
name: f,
|
|
100
|
+
email: p,
|
|
101
|
+
phone: g,
|
|
102
|
+
value: m,
|
|
103
|
+
remark: D,
|
|
104
|
+
showValue: C,
|
|
105
|
+
quantity: F,
|
|
106
|
+
media: u,
|
|
107
|
+
placeId: R,
|
|
108
|
+
placeType: y,
|
|
109
|
+
showFormPage: U,
|
|
110
|
+
showPaymentPage: W,
|
|
111
|
+
showConfirmationPage: j,
|
|
112
|
+
places: b,
|
|
113
|
+
hasFilledForm: L,
|
|
114
|
+
hasForcedPlaceType: z,
|
|
115
|
+
isWaitingForResponse: N,
|
|
116
|
+
isMetadataAvailable: q,
|
|
117
|
+
termsOfService: G,
|
|
118
|
+
fetchMetadata: $,
|
|
119
|
+
orderGiftCard: B,
|
|
120
|
+
initialize: V
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
export {
|
|
124
|
+
ae as u
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=giftCard-DtBMjMxF.js.map
|
|
Binary file
|
package/dist/hotel.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { d as Q, r as ne, a as u, b as A, w as $, l as qe, u as t, g as f, e as a, t as v, A as We, B as Ke, f as g, i as _, s as F, F as M, x as Ye, v as N, h as Ae, c as G, p as kt, j as _t, o as tt, z as De, n as He, S as to, C as oo, D as no, E as lo, k as ao } from "./_sentry-release-injection-file-
|
|
2
|
-
import { u as le, s as Z, T as io, c as so, i as ro, m as co } from "./mitt-
|
|
3
|
-
import { d as Ve, x as me, u as _e, I as K, s as ce, y as Ze, l as dt, z as re, h as oe, _ as ue, n as Be, A as Vt, b as Qe, c as de, e as Tt, B as $t, D as ct, T as se, p as uo, F as po, a as mo, C as fo, i as ut, j as ho, k as pt, m as vo } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
4
|
-
import { R as yo, B as Ee, L as go, S as bo, M as ko, a as ze, C as _o, T as Vo, V as To, G as $o } from "./masonry.plugin-
|
|
5
|
-
import { A as Co, H as wo } from "./AvailabilitySkeleton-
|
|
6
|
-
import { S as Po } from "./TermsOfService-
|
|
7
|
-
import { C as Se, B as Ao, P as Do, a as Ho } from "./CheckoutWindow-
|
|
8
|
-
import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-
|
|
1
|
+
import { d as Q, r as ne, a as u, b as A, w as $, l as qe, u as t, g as f, e as a, t as v, A as We, B as Ke, f as g, i as _, s as F, F as M, x as Ye, v as N, h as Ae, c as G, p as kt, j as _t, o as tt, z as De, n as He, S as to, C as oo, D as no, E as lo, k as ao } from "./_sentry-release-injection-file-CkMeg-D2.js";
|
|
2
|
+
import { u as le, s as Z, T as io, c as so, i as ro, m as co } from "./mitt-Cbb-9RWx.js";
|
|
3
|
+
import { d as Ve, x as me, u as _e, I as K, s as ce, y as Ze, l as dt, z as re, h as oe, _ as ue, n as Be, A as Vt, b as Qe, c as de, e as Tt, B as $t, D as ct, T as se, p as uo, F as po, a as mo, C as fo, i as ut, j as ho, k as pt, m as vo } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js";
|
|
4
|
+
import { R as yo, B as Ee, L as go, S as bo, M as ko, a as ze, C as _o, T as Vo, V as To, G as $o } from "./masonry.plugin-Ch8U9Epf.js";
|
|
5
|
+
import { A as Co, H as wo } from "./AvailabilitySkeleton-CyvafyOT.js";
|
|
6
|
+
import { S as Po } from "./TermsOfService-DLQtIpLt.js";
|
|
7
|
+
import { C as Se, B as Ao, P as Do, a as Ho } from "./CheckoutWindow-BqJ6ZsZD.js";
|
|
8
|
+
import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js";
|
|
9
9
|
(function() {
|
|
10
10
|
try {
|
|
11
11
|
var l = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
12
|
-
n && (l._sentryDebugIds = l._sentryDebugIds || {}, l._sentryDebugIds[n] = "
|
|
12
|
+
n && (l._sentryDebugIds = l._sentryDebugIds || {}, l._sentryDebugIds[n] = "bd36c7b2-6624-49f4-a3d6-c30f57634223", l._sentryDebugIdIdentifier = "sentry-dbid-bd36c7b2-6624-49f4-a3d6-c30f57634223");
|
|
13
13
|
} catch {
|
|
14
14
|
}
|
|
15
15
|
})();
|
|
@@ -920,7 +920,7 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
920
920
|
styling: {}
|
|
921
921
|
},
|
|
922
922
|
setup(l) {
|
|
923
|
-
const n = oo(() => import("./_-
|
|
923
|
+
const n = oo(() => import("./_-CHRCWC6p.js")), o = l, { t: e } = le(), {
|
|
924
924
|
templateID: i,
|
|
925
925
|
templateAddons: s,
|
|
926
926
|
countries: m,
|
|
@@ -1752,7 +1752,7 @@ function Dt(l, n) {
|
|
|
1752
1752
|
for (const s of i)
|
|
1753
1753
|
if (typeof o[s] < "u") {
|
|
1754
1754
|
const m = String(o[s]);
|
|
1755
|
-
return `${e}:${s}:${m}`;
|
|
1755
|
+
return n && !n(m) ? !1 : `${e}:${s}:${m}`;
|
|
1756
1756
|
}
|
|
1757
1757
|
return !1;
|
|
1758
1758
|
}
|
|
@@ -1776,7 +1776,7 @@ async function bl(l, n, o) {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
function kl(l, n) {
|
|
1778
1778
|
const o = l === "class" ? " " : ";";
|
|
1779
|
-
return typeof n == "object" && !Array.isArray(n) && (n = Object.entries(n).filter(([, e]) => e).map(([e, i]) => l === "style" ? `${e}:${i}` : e)), (Array.isArray(n) ? n.join(o) : n)?.split(o).filter((e) => e.trim()).filter(Boolean).join(o);
|
|
1779
|
+
return typeof n == "object" && !Array.isArray(n) && (n = Object.entries(n).filter(([, e]) => e).map(([e, i]) => l === "style" ? `${e}:${i}` : e)), String(Array.isArray(n) ? n.join(o) : n)?.split(o).filter((e) => e.trim()).filter(Boolean).join(o);
|
|
1780
1780
|
}
|
|
1781
1781
|
async function Ht(l, n) {
|
|
1782
1782
|
for (const o of Object.keys(l)) {
|
|
@@ -1888,7 +1888,7 @@ async function $l(l, n = {}) {
|
|
|
1888
1888
|
else if (C === "style")
|
|
1889
1889
|
for (const b of (I || "").split(";").filter(Boolean)) {
|
|
1890
1890
|
const [w, ...H] = b.split(":").map((O) => O.trim());
|
|
1891
|
-
m(d, `${B}:${
|
|
1891
|
+
m(d, `${B}:${w}`, () => {
|
|
1892
1892
|
h.style.removeProperty(w);
|
|
1893
1893
|
}), h.style.setProperty(w, H.join(":"));
|
|
1894
1894
|
}
|
package/dist/hotel.js.br
CHANGED
|
Binary file
|