@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/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.64",
|
|
4
4
|
"author": "Konnectio <info@konnectio.com> (https://konnectio.dk)",
|
|
5
5
|
"homepage": "https://konnectio.dk",
|
|
6
6
|
"description": "Konnectio Core Frontend Integration.",
|
|
@@ -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.19.0",
|
|
49
|
+
"@unhead/vue": "1.9.16",
|
|
50
50
|
"@vuepic/vue-datepicker": "8.8.1",
|
|
51
51
|
"@vueup/vue-quill": "1.2.0",
|
|
52
52
|
"@vueuse/core": "10.11.0",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"devDependencies": {
|
|
78
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.
|
|
80
|
+
"@sentry/vite-plugin": "2.21.1",
|
|
81
|
+
"@types/node": "20.14.10",
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "7.15.0",
|
|
83
83
|
"@typescript-eslint/parser": "7.15.0",
|
|
84
84
|
"@vitejs/plugin-vue": "5.0.5",
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"eslint": "8.57.0",
|
|
90
90
|
"eslint-plugin-vue": "9.27.0",
|
|
91
91
|
"rollup-plugin-typescript2": "0.36.0",
|
|
92
|
-
"sass": "1.77.
|
|
92
|
+
"sass": "1.77.8",
|
|
93
93
|
"ts-node": "10.9.2",
|
|
94
94
|
"tslib": "2.6.3",
|
|
95
|
-
"typescript": "5.
|
|
96
|
-
"vite": "5.3.
|
|
95
|
+
"typescript": "5.5.3",
|
|
96
|
+
"vite": "5.3.4",
|
|
97
97
|
"vite-plugin-compression": "0.5.1",
|
|
98
98
|
"vue-tsc": "2.0.26"
|
|
99
99
|
},
|
|
Binary file
|
|
Binary file
|
package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js.br
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { d as C, r as g, c as s, a as c, g as w, f, w as A, u as o, F as B, b as L, i as F, e as S, y as T, n as U, h as x } from "./_sentry-release-injection-file-DEszgcWK.js";
|
|
2
|
-
import { s as z, u as $ } from "./mitt-DnPlcQNp.js";
|
|
3
|
-
import { u as D, T as G, o as H, d as M, p as R, _ as j } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
|
|
4
|
-
import { u as q, _ as J } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js";
|
|
5
|
-
(function() {
|
|
6
|
-
try {
|
|
7
|
-
var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
|
|
8
|
-
e && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[e] = "d683478a-8324-445a-b125-3d218a1ae278", n._sentryDebugIdIdentifier = "sentry-dbid-d683478a-8324-445a-b125-3d218a1ae278");
|
|
9
|
-
} catch {
|
|
10
|
-
}
|
|
11
|
-
})();
|
|
12
|
-
const K = {
|
|
13
|
-
class: "konnectio-search-button",
|
|
14
|
-
key: "search"
|
|
15
|
-
}, O = /* @__PURE__ */ C({
|
|
16
|
-
__name: "EventAvailabilityForm",
|
|
17
|
-
props: {
|
|
18
|
-
redirection: { type: Boolean, default: !0 },
|
|
19
|
-
link: {},
|
|
20
|
-
selectedLocation: { default: NaN }
|
|
21
|
-
},
|
|
22
|
-
setup(n) {
|
|
23
|
-
const e = n, {
|
|
24
|
-
eventLocation: r,
|
|
25
|
-
eventLocations: m,
|
|
26
|
-
hasEventLocations: b,
|
|
27
|
-
eventLocationControl: _,
|
|
28
|
-
eventDate: v
|
|
29
|
-
} = z(D()), { updateEventAvailability: h } = D(), { fetchListings: V } = q(), { t: i } = $(), N = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), p = g(_.value), y = g(N()), u = s({
|
|
30
|
-
get: () => e.redirection ? p.value : r.value,
|
|
31
|
-
set: (a) => {
|
|
32
|
-
e.redirection ? p.value = Number(a) : r.value = Number(a);
|
|
33
|
-
}
|
|
34
|
-
}), d = s({
|
|
35
|
-
get: () => e.redirection ? y.value : v.value,
|
|
36
|
-
set: (a) => {
|
|
37
|
-
e.redirection ? y.value = a : v.value = a;
|
|
38
|
-
}
|
|
39
|
-
}), E = s(() => typeof e.link != "string"), k = s(() => {
|
|
40
|
-
const a = m.value.find(({ id: t }) => t === e.selectedLocation);
|
|
41
|
-
return a ? a.name : "";
|
|
42
|
-
});
|
|
43
|
-
function I() {
|
|
44
|
-
if (e.redirection === !0)
|
|
45
|
-
if (h({
|
|
46
|
-
date: d.value,
|
|
47
|
-
location: u.value
|
|
48
|
-
}), E.value) {
|
|
49
|
-
const a = R();
|
|
50
|
-
e.link[a] ? window.location.replace(e.link[a]) : e.link.en && window.location.replace(e.link.en);
|
|
51
|
-
} else
|
|
52
|
-
window.location.replace(e.link);
|
|
53
|
-
else
|
|
54
|
-
V();
|
|
55
|
-
}
|
|
56
|
-
return (a, t) => (c(), w("form", {
|
|
57
|
-
class: U([
|
|
58
|
-
"konnectio-event-search-form",
|
|
59
|
-
{ "has-locations": o(b) },
|
|
60
|
-
{ "auto-search": !a.redirection }
|
|
61
|
-
]),
|
|
62
|
-
onSubmit: x(I, ["prevent"])
|
|
63
|
-
}, [
|
|
64
|
-
f(T, {
|
|
65
|
-
class: "konnectio-event-search-form-content",
|
|
66
|
-
tag: "ul"
|
|
67
|
-
}, {
|
|
68
|
-
default: A(() => [
|
|
69
|
-
o(b) ? (c(), w(B, { key: 0 }, [
|
|
70
|
-
isNaN(a.selectedLocation) ? (c(), L(H, {
|
|
71
|
-
modelValue: u.value,
|
|
72
|
-
"onUpdate:modelValue": t[1] || (t[1] = (l) => u.value = l),
|
|
73
|
-
key: "location",
|
|
74
|
-
label: o(i)("general.location"),
|
|
75
|
-
icon: "location-dot",
|
|
76
|
-
"icon-type": "fas",
|
|
77
|
-
"icon-placement": "label",
|
|
78
|
-
"label-key": "name",
|
|
79
|
-
"value-key": "id",
|
|
80
|
-
options: o(m),
|
|
81
|
-
searchable: !1
|
|
82
|
-
}, null, 8, ["modelValue", "label", "options"])) : (c(), L(G, {
|
|
83
|
-
key: 0,
|
|
84
|
-
modelValue: k.value,
|
|
85
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) => k.value = l),
|
|
86
|
-
label: o(i)("general.location"),
|
|
87
|
-
icon: "location-dot",
|
|
88
|
-
"icon-type": "fas",
|
|
89
|
-
"icon-placement": "label",
|
|
90
|
-
readonly: ""
|
|
91
|
-
}, null, 8, ["modelValue", "label"]))
|
|
92
|
-
], 64)) : F("", !0),
|
|
93
|
-
f(J, {
|
|
94
|
-
modelValue: d.value,
|
|
95
|
-
"onUpdate:modelValue": t[2] || (t[2] = (l) => d.value = l),
|
|
96
|
-
key: "date",
|
|
97
|
-
label: o(i)("event.selectDate"),
|
|
98
|
-
"icon-type": "fas",
|
|
99
|
-
"icon-placement": "label",
|
|
100
|
-
"min-date": /* @__PURE__ */ new Date()
|
|
101
|
-
}, null, 8, ["modelValue", "label", "min-date"]),
|
|
102
|
-
S("li", K, [
|
|
103
|
-
f(M, {
|
|
104
|
-
type: "submit",
|
|
105
|
-
label: o(i)("availability.buttonLabel")
|
|
106
|
-
}, null, 8, ["label"])
|
|
107
|
-
])
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})
|
|
111
|
-
], 34));
|
|
112
|
-
}
|
|
113
|
-
}), Y = /* @__PURE__ */ j(O, [["__scopeId", "data-v-bf19dbb3"]]);
|
|
114
|
-
export {
|
|
115
|
-
Y as E
|
|
116
|
-
};
|
|
117
|
-
//# sourceMappingURL=EventAvailabilityForm-DZljldrC.js.map
|
|
Binary file
|
package/dist/Field-DGi_AnA6.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { d as l, a as t, g as o, b as i, i as r, f as n, n as f } from "./_sentry-release-injection-file-DEszgcWK.js";
|
|
2
|
-
import { E as s, _ as p } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
|
|
3
|
-
(function() {
|
|
4
|
-
try {
|
|
5
|
-
var a = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
|
|
6
|
-
e && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[e] = "018514df-a142-4bb3-9d02-2f625a0b596c", a._sentryDebugIdIdentifier = "sentry-dbid-018514df-a142-4bb3-9d02-2f625a0b596c");
|
|
7
|
-
} catch {
|
|
8
|
-
}
|
|
9
|
-
})();
|
|
10
|
-
const c = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "skeleton-field-label"
|
|
13
|
-
}, b = { key: 1 }, h = /* @__PURE__ */ l({
|
|
14
|
-
__name: "Field",
|
|
15
|
-
props: {
|
|
16
|
-
withIcon: { type: Boolean, default: !1 },
|
|
17
|
-
noLabel: { type: Boolean, default: !1 },
|
|
18
|
-
isTextArea: { type: Boolean, default: !1 }
|
|
19
|
-
},
|
|
20
|
-
setup(a) {
|
|
21
|
-
return (e, d) => (t(), o("div", {
|
|
22
|
-
class: f([
|
|
23
|
-
"skeleton-field",
|
|
24
|
-
{ "is-text-area": e.isTextArea },
|
|
25
|
-
{ "no-label": e.noLabel }
|
|
26
|
-
])
|
|
27
|
-
}, [
|
|
28
|
-
e.noLabel ? (t(), o("div", b)) : (t(), o("div", c, [
|
|
29
|
-
e.withIcon ? (t(), i(s, {
|
|
30
|
-
key: 0,
|
|
31
|
-
height: "15px",
|
|
32
|
-
width: "15px"
|
|
33
|
-
})) : r("", !0),
|
|
34
|
-
n(s, {
|
|
35
|
-
height: "15px",
|
|
36
|
-
width: "30%"
|
|
37
|
-
})
|
|
38
|
-
])),
|
|
39
|
-
n(s, {
|
|
40
|
-
height: e.isTextArea ? "82px" : "44px",
|
|
41
|
-
width: "100%",
|
|
42
|
-
"border-radius": "6px"
|
|
43
|
-
}, null, 8, ["height"])
|
|
44
|
-
], 2));
|
|
45
|
-
}
|
|
46
|
-
}), y = /* @__PURE__ */ p(h, [["__scopeId", "data-v-992f78a1"]]);
|
|
47
|
-
export {
|
|
48
|
-
y as F
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=Field-DGi_AnA6.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { d as r, a, b as i, w as d, e as s, u as o } from "./_sentry-release-injection-file-DEszgcWK.js";
|
|
2
|
-
import { H as c, _ as f } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
|
|
3
|
-
import { B as p } from "./CheckoutWindow-DolJgk40.js";
|
|
4
|
-
import { u as _ } from "./mitt-DnPlcQNp.js";
|
|
5
|
-
(function() {
|
|
6
|
-
try {
|
|
7
|
-
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new Error().stack;
|
|
8
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "097311be-e02c-4a07-8572-f9a4949c64da", e._sentryDebugIdIdentifier = "sentry-dbid-097311be-e02c-4a07-8572-f9a4949c64da");
|
|
9
|
-
} catch {
|
|
10
|
-
}
|
|
11
|
-
})();
|
|
12
|
-
const l = { class: "konnectio-terms-side-panel" }, u = ["innerHTML"], m = /* @__PURE__ */ r({
|
|
13
|
-
__name: "TermsOfService",
|
|
14
|
-
props: {
|
|
15
|
-
description: {}
|
|
16
|
-
},
|
|
17
|
-
setup(e) {
|
|
18
|
-
const { t } = _();
|
|
19
|
-
return (n, b) => (a(), i(p, {
|
|
20
|
-
title: o(t)("general.termsAndConditions")
|
|
21
|
-
}, {
|
|
22
|
-
default: d(() => [
|
|
23
|
-
s("div", l, [
|
|
24
|
-
s("p", {
|
|
25
|
-
innerHTML: o(c)(n.description)
|
|
26
|
-
}, null, 8, u)
|
|
27
|
-
])
|
|
28
|
-
]),
|
|
29
|
-
_: 1
|
|
30
|
-
}, 8, ["title"]));
|
|
31
|
-
}
|
|
32
|
-
}), h = /* @__PURE__ */ f(m, [["__scopeId", "data-v-82aaf990"]]);
|
|
33
|
-
export {
|
|
34
|
-
h as S
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=TermsOfService-LDUTInOo.js.map
|
|
Binary file
|
package/dist/_-CBEOFztf.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { _ as t } from "./_.vue_vue_type_style_index_0_lang-DjuzMOwH.js";
|
|
2
|
-
(function() {
|
|
3
|
-
try {
|
|
4
|
-
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, d = new Error().stack;
|
|
5
|
-
d && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[d] = "7a70ab13-8c15-404e-b690-dbf5312b0b48", e._sentryDebugIdIdentifier = "sentry-dbid-7a70ab13-8c15-404e-b690-dbf5312b0b48");
|
|
6
|
-
} catch {
|
|
7
|
-
}
|
|
8
|
-
})();
|
|
9
|
-
export {
|
|
10
|
-
t as default
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=_-CBEOFztf.js.map
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { d as _, a as c, g as r, u as o, f, e as u, t as m, i as y, n as g, ak as d, l as k } from "./_sentry-release-injection-file-DEszgcWK.js";
|
|
2
|
-
import { a as b, I as w, _ as h, e as I } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
|
|
3
|
-
import { s as D } from "./mitt-DnPlcQNp.js";
|
|
4
|
-
(function() {
|
|
5
|
-
try {
|
|
6
|
-
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, a = new Error().stack;
|
|
7
|
-
a && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[a] = "c0900fe0-951d-4672-9448-c594a700a487", t._sentryDebugIdIdentifier = "sentry-dbid-c0900fe0-951d-4672-9448-c594a700a487");
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
})();
|
|
11
|
-
const v = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "konnectio-alert-message"
|
|
14
|
-
}, x = /* @__PURE__ */ _({
|
|
15
|
-
__name: "Alert",
|
|
16
|
-
props: {
|
|
17
|
-
localDomain: { default: "global" }
|
|
18
|
-
},
|
|
19
|
-
setup(t) {
|
|
20
|
-
const a = {
|
|
21
|
-
default: "info",
|
|
22
|
-
error: "exclamation-triangle",
|
|
23
|
-
warning: "do-not-enter",
|
|
24
|
-
success: "check-circle"
|
|
25
|
-
}, {
|
|
26
|
-
message: e,
|
|
27
|
-
type: s,
|
|
28
|
-
status: n
|
|
29
|
-
} = D(b());
|
|
30
|
-
return (l, i) => (c(), r("div", {
|
|
31
|
-
class: g(["konnectio-alert", o(s), o(n).toLowerCase()]),
|
|
32
|
-
role: "alert"
|
|
33
|
-
}, [
|
|
34
|
-
o(e) ? (c(), r("div", v, [
|
|
35
|
-
f(w, {
|
|
36
|
-
icon: a[o(s)]
|
|
37
|
-
}, null, 8, ["icon"]),
|
|
38
|
-
u("span", null, m(o(e)), 1)
|
|
39
|
-
])) : y("", !0)
|
|
40
|
-
], 2));
|
|
41
|
-
}
|
|
42
|
-
}), A = /* @__PURE__ */ h(x, [["__scopeId", "data-v-f9265471"]]), C = {
|
|
43
|
-
class: "konnectio-app",
|
|
44
|
-
ref: "base"
|
|
45
|
-
}, V = /* @__PURE__ */ _({
|
|
46
|
-
name: "BaseLayout",
|
|
47
|
-
__name: "_",
|
|
48
|
-
props: {
|
|
49
|
-
accessToken: {},
|
|
50
|
-
type: { default: "none" },
|
|
51
|
-
callback: {}
|
|
52
|
-
},
|
|
53
|
-
emits: ["metadata"],
|
|
54
|
-
async setup(t, { emit: a }) {
|
|
55
|
-
let e, s;
|
|
56
|
-
const n = t, {
|
|
57
|
-
setAccessToken: l,
|
|
58
|
-
fetchUtilities: i
|
|
59
|
-
} = I();
|
|
60
|
-
return l(n.accessToken), [e, s] = d(() => i()), await e, s(), [e, s] = d(() => n.callback()), await e, s(), (p, B) => (c(), r("div", C, [
|
|
61
|
-
k(p.$slots, "default"),
|
|
62
|
-
f(A, { "local-domain": "global" })
|
|
63
|
-
], 512));
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
export {
|
|
67
|
-
V as _
|
|
68
|
-
};
|
|
69
|
-
//# sourceMappingURL=_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.map
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { t as H, a as J, e as A, G as s, v as S, S as w, w as E, p as M, x as K } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
|
|
2
|
-
import { d as Q, s as X, a as k } from "./mitt-DnPlcQNp.js";
|
|
3
|
-
import { r as t, c as a } from "./_sentry-release-injection-file-DEszgcWK.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] = "10190812-cc04-410b-aa3e-421b78f761ee", i._sentryDebugIdIdentifier = "sentry-dbid-10190812-cc04-410b-aa3e-421b78f761ee");
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
})();
|
|
11
|
-
const ae = Q("giftCard", () => {
|
|
12
|
-
const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: O, hasError: I } = X(A()), T = A(), 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((x) => {
|
|
39
|
-
String(x.id) === String(l) && (e = x);
|
|
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 E.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
|
|
47
|
-
params: {
|
|
48
|
-
language: M()
|
|
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 E.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
65
|
-
termsOfserviceURL: window.location.origin,
|
|
66
|
-
checkoutUrl: window.location.origin,
|
|
67
|
-
currencyID: O.value,
|
|
68
|
-
language: M(),
|
|
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-DLrIdehA.js.map
|
|
Binary file
|
|
Binary file
|
package/dist/mitt-DnPlcQNp.js.br
DELETED
|
Binary file
|
|
Binary file
|