@konnectio/core 4.0.82 → 4.0.84
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-CLQbtAU7.js +100 -0
- package/dist/ActionField-CLQbtAU7.js.br +0 -0
- package/dist/AvailabilitySkeleton-BJPo5KGW.js +309 -0
- package/dist/AvailabilitySkeleton-BJPo5KGW.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js} +1152 -1168
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js.br +0 -0
- package/dist/{CheckoutWindow-DoADcN36.js → CheckoutWindow-C9Sa3vci.js} +159 -174
- package/dist/CheckoutWindow-C9Sa3vci.js.br +0 -0
- package/dist/{ErrorMessage-BxZaXdig.js → ErrorMessage-D6rbHHXd.js} +20 -35
- package/dist/ErrorMessage-D6rbHHXd.js.br +0 -0
- package/dist/EventAvailabilityForm-D-Q1vxsm.js +110 -0
- package/dist/EventAvailabilityForm-D-Q1vxsm.js.br +0 -0
- package/dist/Field-CGT9JUe-.js +43 -0
- package/dist/Field-CGT9JUe-.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js} +2819 -2807
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js.br +0 -0
- package/dist/TermsOfService-DmwGAt0q.js +28 -0
- package/dist/_-YHi6ciVk.js +5 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js +25 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/availability.js +54 -71
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +20 -36
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +398 -416
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +72 -89
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +175 -192
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-C-lmDpUB.js +118 -0
- package/dist/giftCard-C-lmDpUB.js.br +0 -0
- package/dist/hotel.js +1210 -1099
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-DDSHAjDQ.js → masonry.plugin-DL8uXS-9.js} +52 -68
- package/dist/masonry.plugin-DL8uXS-9.js.br +0 -0
- package/dist/mitt-B_elXQ2J.js +12437 -0
- package/dist/mitt-B_elXQ2J.js.br +0 -0
- package/dist/polyfill.js +4216 -7869
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CT1Yk_a0.js → style-CDpCXUak.js} +391 -406
- package/dist/style-CDpCXUak.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +12 -15
- package/dist/ActionField-Mf3IO8Sg.js +0 -115
- package/dist/ActionField-Mf3IO8Sg.js.br +0 -0
- package/dist/AvailabilitySkeleton-D3xnLMQI.js +0 -296
- package/dist/AvailabilitySkeleton-D3xnLMQI.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js.br +0 -0
- package/dist/CheckoutWindow-DoADcN36.js.br +0 -0
- package/dist/ErrorMessage-BxZaXdig.js.br +0 -0
- package/dist/EventAvailabilityForm-Ctz8ENUN.js +0 -126
- package/dist/EventAvailabilityForm-Ctz8ENUN.js.br +0 -0
- package/dist/Field-Bg0N8Vc0.js +0 -58
- package/dist/Field-Bg0N8Vc0.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js.br +0 -0
- package/dist/TermsOfService-CWraQvoB.js +0 -44
- package/dist/TermsOfService-CWraQvoB.js.br +0 -4
- package/dist/_-BEZe3PAF.js +0 -20
- package/dist/_.vue_vue_type_style_index_0_lang-DQzgcH2c.js +0 -40
- package/dist/_.vue_vue_type_style_index_0_lang-DQzgcH2c.js.br +0 -0
- package/dist/_commonjsHelpers-C8ml6AyB.js +0 -25
- package/dist/_commonjsHelpers-C8ml6AyB.js.br +0 -0
- package/dist/_sentry-release-injection-file-8liCQLPI.js +0 -9501
- package/dist/_sentry-release-injection-file-8liCQLPI.js.br +0 -0
- package/dist/giftCard-sImOKdP0.js +0 -134
- package/dist/giftCard-sImOKdP0.js.br +0 -0
- package/dist/masonry.plugin-DDSHAjDQ.js.br +0 -0
- package/dist/mitt-CzL6QOyp.js +0 -2977
- package/dist/mitt-CzL6QOyp.js.br +0 -0
- package/dist/sentry-Cyc40KnT.js +0 -26
- package/dist/style-CT1Yk_a0.js.br +0 -0
- package/dist/tracing-6Srl_nMB.js +0 -2628
- package/dist/tracing-6Srl_nMB.js.br +0 -0
|
Binary file
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { r as H, a as J, d as A, G as n, t as S, S as k, v as O, o as x, w as Q } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js";
|
|
2
|
-
import { d as X, s as Y, a as P } from "./mitt-CzL6QOyp.js";
|
|
3
|
-
import { r as t, c as a } from "./_sentry-release-injection-file-8liCQLPI.js";
|
|
4
|
-
(function() {
|
|
5
|
-
try {
|
|
6
|
-
var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, c = new Error().stack;
|
|
7
|
-
c && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[c] = "90b5d4c7-a364-4a04-a539-b6cb7720987d", r._sentryDebugIdIdentifier = "sentry-dbid-90b5d4c7-a364-4a04-a539-b6cb7720987d");
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
})();
|
|
11
|
-
{
|
|
12
|
-
var v = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
13
|
-
v._sentryModuleMetadata = v._sentryModuleMetadata || {}, v._sentryModuleMetadata[new Error().stack] = Object.assign(
|
|
14
|
-
{},
|
|
15
|
-
v._sentryModuleMetadata[new Error().stack],
|
|
16
|
-
{ "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
const te = X("giftCard", () => {
|
|
20
|
-
const { pay: r } = H(), { display: c } = J(), { bearerToken: f, metaData: I, currencyId: j, hasError: T } = Y(A()), F = A(), o = t(n.InitialState), p = S("konnectio_name", "", void 0, { serializer: k.string }), g = S("konnectio_email", "", void 0, { serializer: k.string }), y = S("konnectio_phone", "", void 0, { serializer: k.string }), m = t(""), _ = t(1), C = t(!0), D = t(""), u = t({
|
|
21
|
-
base64: "",
|
|
22
|
-
type: "",
|
|
23
|
-
name: ""
|
|
24
|
-
}), E = t(void 0), h = t(0), d = t(!1), w = t(0), M = a(() => F.hasMetadata ? F.metaData.hotels[0] : {}), U = a(() => M.value.termsOfService ? M.value.termsOfService : ""), W = a(() => o.value === n.InitialState || o.value === n.WaitingForResponse), L = a(() => o.value === n.ReadyToPay), q = a(() => o.value === n.PaymentSuccess), b = a(() => {
|
|
25
|
-
const e = {
|
|
26
|
-
1: {
|
|
27
|
-
label: P.t("giftCard.hotelType"),
|
|
28
|
-
data: []
|
|
29
|
-
},
|
|
30
|
-
2: {
|
|
31
|
-
label: P.t("giftCard.restaurantType"),
|
|
32
|
-
data: []
|
|
33
|
-
}
|
|
34
|
-
}, l = I.value.hotels[0].places;
|
|
35
|
-
return l && l.forEach((s) => {
|
|
36
|
-
e[s.placeType].data.push(s);
|
|
37
|
-
}), Object.fromEntries(
|
|
38
|
-
Object.entries(e).filter(([, s]) => s.data.length > 0)
|
|
39
|
-
);
|
|
40
|
-
}), R = a(() => w.value !== 0), i = a(() => {
|
|
41
|
-
let e;
|
|
42
|
-
if (R.value)
|
|
43
|
-
e = b.value[w.value].data[0];
|
|
44
|
-
else if (h.value !== 0) {
|
|
45
|
-
const l = E.value, s = b.value[h.value].data;
|
|
46
|
-
s.length === 1 ? e = s[0] : l !== void 0 && s.forEach((z) => {
|
|
47
|
-
String(z.id) === String(l) && (e = z);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return e;
|
|
51
|
-
}), B = a(() => !(!p.value || !g.value || !(y.value.length >= 5) || !m.value || i.value === void 0)), G = a(() => !(o.value === n.InitialState && d.value)), N = a(() => !!(o.value === n.WaitingForResponse && d.value));
|
|
52
|
-
async function $() {
|
|
53
|
-
try {
|
|
54
|
-
const e = (await O.get("https://production.hotel-service.konnectio.com/api/gift-card/metadata", {
|
|
55
|
-
params: {
|
|
56
|
-
language: x()
|
|
57
|
-
},
|
|
58
|
-
headers: {
|
|
59
|
-
Authorization: f.value,
|
|
60
|
-
Accept: "application/json"
|
|
61
|
-
}
|
|
62
|
-
})).data;
|
|
63
|
-
e.success !== void 0 ? T.value = !e.success : T.value = !1, I.value = e;
|
|
64
|
-
} catch {
|
|
65
|
-
c({
|
|
66
|
-
message: P.t("alert.error.couldntFetchMetadata"),
|
|
67
|
-
type: "warning"
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
async function K() {
|
|
72
|
-
o.value = n.WaitingForResponse, d.value = !0, await O.post("https://production.hotel-service.konnectio.com/api/gift-card/create", {
|
|
73
|
-
termsOfserviceURL: window.location.origin,
|
|
74
|
-
checkoutUrl: window.location.origin,
|
|
75
|
-
currencyID: j.value,
|
|
76
|
-
language: x(),
|
|
77
|
-
amount: m.value,
|
|
78
|
-
quantity: _.value,
|
|
79
|
-
freeText: D.value,
|
|
80
|
-
showPrice: C.value,
|
|
81
|
-
contactName: p.value,
|
|
82
|
-
contactEmail: g.value,
|
|
83
|
-
contactPhone: y.value,
|
|
84
|
-
imageBase64: Q(u.value.base64),
|
|
85
|
-
imageName: u.value.name,
|
|
86
|
-
imageFormat: u.value.type,
|
|
87
|
-
placeType: i.value ? i.value.placeType : void 0,
|
|
88
|
-
placeID: i.value ? i.value.id : void 0
|
|
89
|
-
}, {
|
|
90
|
-
headers: {
|
|
91
|
-
Authorization: f.value,
|
|
92
|
-
Accept: "application/json"
|
|
93
|
-
}
|
|
94
|
-
}).then((e) => {
|
|
95
|
-
o.value = n.ReadyToPay, d.value = !1, r({
|
|
96
|
-
callback: () => console.log("Callback!"),
|
|
97
|
-
response: e.data
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
function V(e) {
|
|
102
|
-
e && (w.value = e);
|
|
103
|
-
}
|
|
104
|
-
return {
|
|
105
|
-
selectedPlace: i,
|
|
106
|
-
moduleState: o,
|
|
107
|
-
name: p,
|
|
108
|
-
email: g,
|
|
109
|
-
phone: y,
|
|
110
|
-
value: m,
|
|
111
|
-
remark: D,
|
|
112
|
-
showValue: C,
|
|
113
|
-
quantity: _,
|
|
114
|
-
media: u,
|
|
115
|
-
placeId: E,
|
|
116
|
-
placeType: h,
|
|
117
|
-
showFormPage: W,
|
|
118
|
-
showPaymentPage: L,
|
|
119
|
-
showConfirmationPage: q,
|
|
120
|
-
places: b,
|
|
121
|
-
hasFilledForm: B,
|
|
122
|
-
hasForcedPlaceType: R,
|
|
123
|
-
isWaitingForResponse: N,
|
|
124
|
-
isMetadataAvailable: G,
|
|
125
|
-
termsOfService: U,
|
|
126
|
-
fetchMetadata: $,
|
|
127
|
-
orderGiftCard: K,
|
|
128
|
-
initialize: V
|
|
129
|
-
};
|
|
130
|
-
});
|
|
131
|
-
export {
|
|
132
|
-
te as u
|
|
133
|
-
};
|
|
134
|
-
//# sourceMappingURL=giftCard-sImOKdP0.js.map
|
|
Binary file
|
|
Binary file
|