@konnectio/core 4.0.111 → 4.0.112
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-BIZxHX7x.js → ActionField-DI-ULm-r.js} +2 -2
- package/dist/ActionField-DI-ULm-r.js.br +0 -0
- package/dist/{AvailabilitySkeleton-Dmc1NsxJ.js → AvailabilitySkeleton-Csh8QvFZ.js} +5 -5
- package/dist/AvailabilitySkeleton-Csh8QvFZ.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-B8esbsyA.js +9062 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-B8esbsyA.js.br +0 -0
- package/dist/{CheckoutWindow-BQ4Yd-jj.js → CheckoutWindow-BFskX4U1.js} +2 -2
- package/dist/CheckoutWindow-BFskX4U1.js.br +0 -0
- package/dist/{ErrorMessage-DeAxlBUC.js → ErrorMessage-mG19dj2Y.js} +2 -2
- package/dist/ErrorMessage-mG19dj2Y.js.br +0 -0
- package/dist/{EventAvailabilityForm-lFl1MFHk.js → EventAvailabilityForm-CmjbkSat.js} +4 -4
- package/dist/EventAvailabilityForm-CmjbkSat.js.br +0 -0
- package/dist/{Field-DAod_0r8.js → Field-ChVeeJd5.js} +3 -3
- package/dist/Field-ChVeeJd5.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-bMyefgIh.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CMX2Ln2H.js} +2 -2
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-BwK4kGcO.js → SelectField.vue_vue_type_style_index_0_lang-D00K1N6y.js} +4614 -4641
- package/dist/SelectField.vue_vue_type_style_index_0_lang-D00K1N6y.js.br +0 -0
- package/dist/{TermsOfService-C-KmfA7-.js → TermsOfService-TupcHiBZ.js} +3 -3
- package/dist/_-DZP0EO5k.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-HN2ehFgL.js → _.vue_vue_type_style_index_0_lang-C_bebiDH.js} +5 -5
- package/dist/availability.js +5 -5
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +3 -3
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/event.js +7 -7
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +7 -7
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +8 -8
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-CLuzEQsh.js +109 -0
- package/dist/giftCard-CLuzEQsh.js.br +0 -0
- package/dist/hotel.js +614 -607
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-yGwNNx2b.js → masonry.plugin-3hI9OVJR.js} +71 -68
- package/dist/masonry.plugin-3hI9OVJR.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +5 -5
- package/dist/ActionField-BIZxHX7x.js.br +0 -4
- package/dist/AvailabilitySkeleton-Dmc1NsxJ.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CfxEaidF.js +0 -9089
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CfxEaidF.js.br +0 -0
- package/dist/CheckoutWindow-BQ4Yd-jj.js.br +0 -0
- package/dist/ErrorMessage-DeAxlBUC.js.br +0 -0
- package/dist/EventAvailabilityForm-lFl1MFHk.js.br +0 -0
- package/dist/Field-DAod_0r8.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BwK4kGcO.js.br +0 -0
- package/dist/_-BLWJQG6h.js +0 -5
- package/dist/giftCard-BJ5gZfYt.js +0 -118
- package/dist/giftCard-BJ5gZfYt.js.br +0 -0
- package/dist/masonry.plugin-yGwNNx2b.js.br +0 -0
package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CfxEaidF.js.br
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/_-BLWJQG6h.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { v as V, a as H, g as A, G as s, w as h, S as y, x as M, q as O, y as K } from "./SelectField.vue_vue_type_style_index_0_lang-BwK4kGcO.js";
|
|
2
|
-
import { I as Q, s as X, r as t, c as a, J as S } from "./mitt-CTfj-lXy.js";
|
|
3
|
-
const ee = Q("giftCard", () => {
|
|
4
|
-
const { pay: E } = V(), { display: G } = H(), { bearerToken: w, metaData: P, currencyId: D, hasError: T } = X(A()), b = A(), o = t(s.InitialState), u = h("konnectio_name", "", void 0, { serializer: y.string }), v = h("konnectio_email", "", void 0, { serializer: y.string }), d = h("konnectio_phone", "", void 0, { serializer: y.string }), p = t(""), k = t(1), F = t(!0), C = t(""), l = t({
|
|
5
|
-
base64: "",
|
|
6
|
-
type: "",
|
|
7
|
-
name: ""
|
|
8
|
-
}), I = t(void 0), f = t(0), c = t(!1), g = t(0), R = a(() => b.hasMetadata ? b.metaData.hotels[0] : {}), U = a(() => R.value.termsOfService ? R.value.termsOfService : ""), W = a(() => o.value === s.InitialState || o.value === s.WaitingForResponse), _ = a(() => o.value === s.ReadyToPay), j = a(() => o.value === s.PaymentSuccess), m = a(() => {
|
|
9
|
-
const e = {
|
|
10
|
-
1: {
|
|
11
|
-
label: S.t("giftCard.hotelType"),
|
|
12
|
-
data: []
|
|
13
|
-
},
|
|
14
|
-
2: {
|
|
15
|
-
label: S.t("giftCard.restaurantType"),
|
|
16
|
-
data: []
|
|
17
|
-
}
|
|
18
|
-
}, r = P.value.hotels[0].places;
|
|
19
|
-
return r && r.forEach((n) => {
|
|
20
|
-
e[n.placeType].data.push(n);
|
|
21
|
-
}), Object.fromEntries(
|
|
22
|
-
Object.entries(e).filter(([, n]) => n.data.length > 0)
|
|
23
|
-
);
|
|
24
|
-
}), z = a(() => g.value !== 0), i = a(() => {
|
|
25
|
-
let e;
|
|
26
|
-
if (z.value)
|
|
27
|
-
e = m.value[g.value].data[0];
|
|
28
|
-
else if (f.value !== 0) {
|
|
29
|
-
const r = I.value, n = m.value[f.value].data;
|
|
30
|
-
n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((x) => {
|
|
31
|
-
String(x.id) === String(r) && (e = x);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return e;
|
|
35
|
-
}), q = a(() => !(!u.value || !v.value || !(d.value.length >= 5) || !p.value || i.value === void 0)), L = a(() => !(o.value === s.InitialState && c.value)), N = a(() => !!(o.value === s.WaitingForResponse && c.value));
|
|
36
|
-
async function $() {
|
|
37
|
-
try {
|
|
38
|
-
const e = (await M.get("https://production.hotel-service.konnectio.com/api/gift-card/metadata", {
|
|
39
|
-
params: {
|
|
40
|
-
language: O()
|
|
41
|
-
},
|
|
42
|
-
headers: {
|
|
43
|
-
Authorization: w.value,
|
|
44
|
-
Accept: "application/json"
|
|
45
|
-
}
|
|
46
|
-
})).data;
|
|
47
|
-
e.success !== void 0 ? T.value = !e.success : T.value = !1, P.value = e;
|
|
48
|
-
} catch {
|
|
49
|
-
G({
|
|
50
|
-
message: S.t("alert.error.couldntFetchMetadata"),
|
|
51
|
-
type: "warning"
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
async function B() {
|
|
56
|
-
o.value = s.WaitingForResponse, c.value = !0, await M.post("https://production.hotel-service.konnectio.com/api/gift-card/create", {
|
|
57
|
-
termsOfserviceURL: window.location.origin,
|
|
58
|
-
checkoutUrl: window.location.origin,
|
|
59
|
-
currencyID: D.value,
|
|
60
|
-
language: O(),
|
|
61
|
-
amount: p.value,
|
|
62
|
-
quantity: k.value,
|
|
63
|
-
freeText: C.value,
|
|
64
|
-
showPrice: F.value,
|
|
65
|
-
contactName: u.value,
|
|
66
|
-
contactEmail: v.value,
|
|
67
|
-
contactPhone: d.value,
|
|
68
|
-
imageBase64: K(l.value.base64),
|
|
69
|
-
imageName: l.value.name,
|
|
70
|
-
imageFormat: l.value.type,
|
|
71
|
-
placeType: i.value ? i.value.placeType : void 0,
|
|
72
|
-
placeID: i.value ? i.value.id : void 0
|
|
73
|
-
}, {
|
|
74
|
-
headers: {
|
|
75
|
-
Authorization: w.value,
|
|
76
|
-
Accept: "application/json"
|
|
77
|
-
}
|
|
78
|
-
}).then((e) => {
|
|
79
|
-
o.value = s.ReadyToPay, c.value = !1, E({
|
|
80
|
-
callback: () => console.log("Callback!"),
|
|
81
|
-
response: e.data
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function J(e) {
|
|
86
|
-
e && (g.value = e);
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
selectedPlace: i,
|
|
90
|
-
moduleState: o,
|
|
91
|
-
name: u,
|
|
92
|
-
email: v,
|
|
93
|
-
phone: d,
|
|
94
|
-
value: p,
|
|
95
|
-
remark: C,
|
|
96
|
-
showValue: F,
|
|
97
|
-
quantity: k,
|
|
98
|
-
media: l,
|
|
99
|
-
placeId: I,
|
|
100
|
-
placeType: f,
|
|
101
|
-
showFormPage: W,
|
|
102
|
-
showPaymentPage: _,
|
|
103
|
-
showConfirmationPage: j,
|
|
104
|
-
places: m,
|
|
105
|
-
hasFilledForm: q,
|
|
106
|
-
hasForcedPlaceType: z,
|
|
107
|
-
isWaitingForResponse: N,
|
|
108
|
-
isMetadataAvailable: L,
|
|
109
|
-
termsOfService: U,
|
|
110
|
-
fetchMetadata: $,
|
|
111
|
-
orderGiftCard: B,
|
|
112
|
-
initialize: J
|
|
113
|
-
};
|
|
114
|
-
});
|
|
115
|
-
export {
|
|
116
|
-
ee as u
|
|
117
|
-
};
|
|
118
|
-
//# sourceMappingURL=giftCard-BJ5gZfYt.js.map
|
|
Binary file
|
|
Binary file
|