@konnectio/core 4.0.57 → 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-BsgBhqwb.js → ActionField-GHsNRSZm.js} +3 -3
- package/dist/ActionField-GHsNRSZm.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BCiyhi6I.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-D-gqVQco.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js} +4 -4
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js.br +0 -0
- package/dist/{CheckoutWindow-COyV5n05.js → CheckoutWindow-BqJ6ZsZD.js} +4 -4
- package/dist/CheckoutWindow-BqJ6ZsZD.js.br +0 -0
- package/dist/{ErrorMessage-Bqmjetwk.js → ErrorMessage-144-POu6.js} +3 -3
- package/dist/ErrorMessage-144-POu6.js.br +0 -0
- package/dist/{EventAvailabilityForm-CnfdAPBG.js → EventAvailabilityForm-CJff-76Z.js} +5 -5
- package/dist/EventAvailabilityForm-CJff-76Z.js.br +0 -0
- package/dist/{Field-8j4srvwh.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-DzRjaA5x.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js} +11 -10
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js.br +0 -0
- package/dist/{TermsOfService-DzB0damA.js → TermsOfService-DLQtIpLt.js} +5 -5
- package/dist/TermsOfService-DLQtIpLt.js.br +0 -0
- package/dist/{_-BtSFcDLj.js → _-CHRCWC6p.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-zf2i08XL.js → _.vue_vue_type_style_index_0_lang-BUoCnNZd.js} +4 -4
- package/dist/_.vue_vue_type_style_index_0_lang-BUoCnNZd.js.br +0 -0
- package/dist/{_commonjsHelpers-DzP9V0uJ.js → _commonjsHelpers-CYyxJoRf.js} +2 -2
- package/dist/{_sentry-release-injection-file-fvkcFI33.js → _sentry-release-injection-file-CkMeg-D2.js} +3 -3
- package/dist/_sentry-release-injection-file-CkMeg-D2.js.br +0 -0
- package/dist/availability.js +74 -71
- 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 +8 -8
- 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 +94 -94
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-BX1LxkhS.js → masonry.plugin-Ch8U9Epf.js} +416 -411
- package/dist/masonry.plugin-Ch8U9Epf.js.br +0 -0
- package/dist/{mitt-l8QPdH4v.js → mitt-Cbb-9RWx.js} +2 -2
- package/dist/mitt-Cbb-9RWx.js.br +0 -0
- package/dist/polyfill.js +17221 -14681
- 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-BsgBhqwb.js.br +0 -0
- package/dist/AvailabilitySkeleton-BCiyhi6I.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js.br +0 -0
- package/dist/CheckoutWindow-COyV5n05.js.br +0 -0
- package/dist/ErrorMessage-Bqmjetwk.js.br +0 -0
- package/dist/EventAvailabilityForm-CnfdAPBG.js.br +0 -0
- package/dist/Field-8j4srvwh.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js.br +0 -0
- package/dist/TermsOfService-DzB0damA.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-zf2i08XL.js.br +0 -0
- package/dist/_sentry-release-injection-file-fvkcFI33.js.br +0 -0
- package/dist/giftCard-DbcQz3eJ.js +0 -134
- package/dist/giftCard-DbcQz3eJ.js.br +0 -0
- package/dist/masonry.plugin-BX1LxkhS.js.br +0 -0
- package/dist/mitt-l8QPdH4v.js.br +0 -0
- package/dist/tracing-z3gaNes7.js +0 -2537
- package/dist/tracing-z3gaNes7.js.br +0 -0
package/dist/style.css.br
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.59",
|
|
4
4
|
"author": "Konnectio <info@konnectio.com> (https://konnectio.dk)",
|
|
5
5
|
"homepage": "https://konnectio.dk",
|
|
6
6
|
"description": "Konnectio Core Frontend Integration.",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@chenfengyuan/vue-number-input": "2.0.1",
|
|
39
39
|
"@egjs/flicking-plugins": "4.7.1",
|
|
40
|
-
"@egjs/vue3-flicking": "4.11.
|
|
40
|
+
"@egjs/vue3-flicking": "4.11.3",
|
|
41
41
|
"@fortawesome/fontawesome-pro": "6.5.2",
|
|
42
42
|
"@fortawesome/fontawesome-svg-core": "6.5.2",
|
|
43
43
|
"@fortawesome/free-brands-svg-icons": "6.5.2",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@fortawesome/pro-solid-svg-icons": "6.5.2",
|
|
46
46
|
"@fortawesome/vue-fontawesome": "3.0.8",
|
|
47
47
|
"@intlify/unplugin-vue-i18n": "4.0.0",
|
|
48
|
-
"@sentry/vue": "8.
|
|
49
|
-
"@unhead/vue": "1.9.
|
|
48
|
+
"@sentry/vue": "8.13.0",
|
|
49
|
+
"@unhead/vue": "1.9.14",
|
|
50
50
|
"@vuepic/vue-datepicker": "8.7.0",
|
|
51
51
|
"@vueup/vue-quill": "1.2.0",
|
|
52
52
|
"@vueuse/core": "10.11.0",
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"vue3-text-clamp": "0.1.2"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@babel/eslint-parser": "7.24.
|
|
78
|
+
"@babel/eslint-parser": "7.24.7",
|
|
79
79
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
80
|
-
"@sentry/vite-plugin": "2.
|
|
81
|
-
"@types/node": "20.14.
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
83
|
-
"@typescript-eslint/parser": "7.
|
|
80
|
+
"@sentry/vite-plugin": "2.20.1",
|
|
81
|
+
"@types/node": "20.14.9",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "7.14.1",
|
|
83
|
+
"@typescript-eslint/parser": "7.14.1",
|
|
84
84
|
"@vitejs/plugin-vue": "5.0.4",
|
|
85
85
|
"@vue/eslint-config-typescript": "13.0.0",
|
|
86
86
|
"@vue/test-utils": "2.4.6",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"rollup-plugin-typescript2": "0.36.0",
|
|
92
92
|
"sass": "1.77.6",
|
|
93
93
|
"ts-node": "10.9.2",
|
|
94
|
-
"tslib": "2.6.
|
|
94
|
+
"tslib": "2.6.3",
|
|
95
95
|
"typescript": "5.4.5",
|
|
96
96
|
"vite": "5.2.11",
|
|
97
97
|
"vite-plugin-compression": "0.5.1",
|
|
Binary file
|
|
Binary file
|
package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js.br
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { r as t, c as a } from "./_sentry-release-injection-file-fvkcFI33.js";
|
|
2
|
-
import { c as H, a as K } from "./tracing-z3gaNes7.js";
|
|
3
|
-
import { r as J, a as Q, d as E, G as s, t as b, S as w, v as M, o as A, w as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js";
|
|
4
|
-
import { d as Y, s as Z, a as k } from "./mitt-l8QPdH4v.js";
|
|
5
|
-
(function() {
|
|
6
|
-
try {
|
|
7
|
-
var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
|
|
8
|
-
l && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[l] = "61495f71-bca9-4874-84f4-6f7784c0a863", o._sentryDebugIdIdentifier = "sentry-dbid-61495f71-bca9-4874-84f4-6f7784c0a863");
|
|
9
|
-
} catch {
|
|
10
|
-
}
|
|
11
|
-
})();
|
|
12
|
-
function ne(o) {
|
|
13
|
-
o.mixin(H({
|
|
14
|
-
trackComponents: !0
|
|
15
|
-
})), K(o);
|
|
16
|
-
}
|
|
17
|
-
const se = Y("giftCard", () => {
|
|
18
|
-
const { pay: o } = J(), { display: l } = Q(), { bearerToken: v, metaData: P, currencyId: O, hasError: T } = Z(E()), I = E(), n = t(s.InitialState), f = b("konnectio_name", "", void 0, { serializer: w.string }), p = b("konnectio_email", "", void 0, { serializer: w.string }), g = b("konnectio_phone", "", void 0, { serializer: w.string }), m = t(""), C = t(1), F = t(!0), D = t(""), u = t({
|
|
19
|
-
base64: "",
|
|
20
|
-
type: "",
|
|
21
|
-
name: ""
|
|
22
|
-
}), R = t(void 0), y = t(0), d = t(!1), h = t(0), _ = a(() => I.hasMetadata ? I.metaData.hotels[0] : {}), G = a(() => _.value.termsOfService ? _.value.termsOfService : ""), U = a(() => n.value === s.InitialState || n.value === s.WaitingForResponse), W = a(() => n.value === s.ReadyToPay), j = a(() => n.value === s.PaymentSuccess), S = a(() => {
|
|
23
|
-
const e = {
|
|
24
|
-
1: {
|
|
25
|
-
label: k.t("giftCard.hotelType"),
|
|
26
|
-
data: []
|
|
27
|
-
},
|
|
28
|
-
2: {
|
|
29
|
-
label: k.t("giftCard.restaurantType"),
|
|
30
|
-
data: []
|
|
31
|
-
}
|
|
32
|
-
}, c = P.value.hotels[0].places;
|
|
33
|
-
return c && c.forEach((r) => {
|
|
34
|
-
e[r.placeType].data.push(r);
|
|
35
|
-
}), Object.fromEntries(
|
|
36
|
-
Object.entries(e).filter(([, r]) => r.data.length > 0)
|
|
37
|
-
);
|
|
38
|
-
}), x = a(() => h.value !== 0), i = a(() => {
|
|
39
|
-
let e;
|
|
40
|
-
if (x.value)
|
|
41
|
-
e = S.value[h.value].data[0];
|
|
42
|
-
else if (y.value !== 0) {
|
|
43
|
-
const c = R.value, r = S.value[y.value].data;
|
|
44
|
-
r.length === 1 ? e = r[0] : c !== void 0 && r.forEach((z) => {
|
|
45
|
-
String(z.id) === String(c) && (e = z);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
return e;
|
|
49
|
-
}), L = a(() => !(!f.value || !p.value || !(g.value.length >= 5) || !m.value || i.value === void 0)), q = a(() => !(n.value === s.InitialState && d.value)), N = a(() => !!(n.value === s.WaitingForResponse && d.value));
|
|
50
|
-
async function V() {
|
|
51
|
-
try {
|
|
52
|
-
const e = (await M.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
|
|
53
|
-
params: {
|
|
54
|
-
language: A()
|
|
55
|
-
},
|
|
56
|
-
headers: {
|
|
57
|
-
Authorization: v.value,
|
|
58
|
-
Accept: "application/json",
|
|
59
|
-
"Konnectio-Ver": "4.0.57"
|
|
60
|
-
}
|
|
61
|
-
})).data;
|
|
62
|
-
e.success !== void 0 ? T.value = !e.success : T.value = !1, P.value = e;
|
|
63
|
-
} catch {
|
|
64
|
-
l({
|
|
65
|
-
message: k.t("alert.error.couldntFetchMetadata"),
|
|
66
|
-
type: "warning"
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
async function $() {
|
|
71
|
-
n.value = s.WaitingForResponse, d.value = !0, await M.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
72
|
-
termsOfserviceURL: window.location.origin,
|
|
73
|
-
checkoutUrl: window.location.origin,
|
|
74
|
-
currencyID: O.value,
|
|
75
|
-
language: A(),
|
|
76
|
-
amount: m.value,
|
|
77
|
-
quantity: C.value,
|
|
78
|
-
freeText: D.value,
|
|
79
|
-
showPrice: F.value,
|
|
80
|
-
contactName: f.value,
|
|
81
|
-
contactEmail: p.value,
|
|
82
|
-
contactPhone: g.value,
|
|
83
|
-
imageBase64: X(u.value.base64),
|
|
84
|
-
imageName: u.value.name,
|
|
85
|
-
imageFormat: u.value.type,
|
|
86
|
-
placeType: i.value ? i.value.placeType : void 0,
|
|
87
|
-
placeID: i.value ? i.value.id : void 0
|
|
88
|
-
}, {
|
|
89
|
-
headers: {
|
|
90
|
-
Authorization: v.value,
|
|
91
|
-
Accept: "application/json"
|
|
92
|
-
}
|
|
93
|
-
}).then((e) => {
|
|
94
|
-
n.value = s.ReadyToPay, d.value = !1, o({
|
|
95
|
-
callback: () => console.log("Callback!"),
|
|
96
|
-
response: e.data
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function B(e) {
|
|
101
|
-
e && (h.value = e);
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
selectedPlace: i,
|
|
105
|
-
moduleState: n,
|
|
106
|
-
name: f,
|
|
107
|
-
email: p,
|
|
108
|
-
phone: g,
|
|
109
|
-
value: m,
|
|
110
|
-
remark: D,
|
|
111
|
-
showValue: F,
|
|
112
|
-
quantity: C,
|
|
113
|
-
media: u,
|
|
114
|
-
placeId: R,
|
|
115
|
-
placeType: y,
|
|
116
|
-
showFormPage: U,
|
|
117
|
-
showPaymentPage: W,
|
|
118
|
-
showConfirmationPage: j,
|
|
119
|
-
places: S,
|
|
120
|
-
hasFilledForm: L,
|
|
121
|
-
hasForcedPlaceType: x,
|
|
122
|
-
isWaitingForResponse: N,
|
|
123
|
-
isMetadataAvailable: q,
|
|
124
|
-
termsOfService: G,
|
|
125
|
-
fetchMetadata: V,
|
|
126
|
-
orderGiftCard: $,
|
|
127
|
-
initialize: B
|
|
128
|
-
};
|
|
129
|
-
});
|
|
130
|
-
export {
|
|
131
|
-
ne as c,
|
|
132
|
-
se as u
|
|
133
|
-
};
|
|
134
|
-
//# sourceMappingURL=giftCard-DbcQz3eJ.js.map
|
|
Binary file
|
|
Binary file
|
package/dist/mitt-l8QPdH4v.js.br
DELETED
|
Binary file
|