@konnectio/core 4.0.87 → 4.0.88
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-JyyQhohJ.js → ActionField-DcT_9OQ-.js} +13 -13
- package/dist/ActionField-DcT_9OQ-.js.br +0 -0
- package/dist/AvailabilitySkeleton-DuS6EF5A.js +322 -0
- package/dist/AvailabilitySkeleton-DuS6EF5A.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CyxA0DFl.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-gdKPuOKO.js} +262 -262
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-gdKPuOKO.js.br +0 -0
- package/dist/{CheckoutWindow-BANXRcdP.js → CheckoutWindow-gdDFWtqb.js} +89 -89
- package/dist/CheckoutWindow-gdDFWtqb.js.br +0 -0
- package/dist/{ErrorMessage-BkKT-ltk.js → ErrorMessage-Ve-udIdk.js} +25 -25
- package/dist/ErrorMessage-Ve-udIdk.js.br +0 -0
- package/dist/{EventAvailabilityForm-TIP9lliE.js → EventAvailabilityForm-C4d81ddL.js} +17 -17
- package/dist/EventAvailabilityForm-C4d81ddL.js.br +0 -0
- package/dist/{Field-W3dyKX_L.js → Field-D-HVbbAz.js} +14 -13
- package/dist/Field-D-HVbbAz.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DVknjZnB.js +21 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DghVL0Oa.js → SelectField.vue_vue_type_style_index_0_lang-HlNLn_PC.js} +5679 -5663
- package/dist/SelectField.vue_vue_type_style_index_0_lang-HlNLn_PC.js.br +0 -0
- package/dist/{TermsOfService-Ch3BEIIo.js → TermsOfService-D3_RZAXa.js} +4 -4
- package/dist/_-C5OzP-8w.js +5 -0
- package/dist/_.vue_vue_type_style_index_0_lang-Cd38IS_v.js +25 -0
- package/dist/availability.js +36 -36
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +158 -0
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/deep-link.js +6 -6
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +349 -348
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +23 -22
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +163 -162
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-CMpwvYsv.js → giftCard-Cd9Y7fCq.js} +19 -19
- package/dist/giftCard-Cd9Y7fCq.js.br +0 -0
- package/dist/hotel.js +1055 -1057
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-DkIwTZE2.js → masonry.plugin-DjoCgAa8.js} +606 -605
- package/dist/masonry.plugin-DjoCgAa8.js.br +0 -0
- package/dist/mitt-Cg46J41N.js +13059 -0
- package/dist/mitt-Cg46J41N.js.br +0 -0
- package/dist/polyfill.js +91 -91
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CDpCXUak.js → style-BEbp8L4f.js} +128 -128
- package/dist/style-BEbp8L4f.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +2 -2
- package/dist/ActionField-JyyQhohJ.js.br +0 -0
- package/dist/AvailabilitySkeleton-DfYTjUoS.js +0 -309
- package/dist/AvailabilitySkeleton-DfYTjUoS.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CyxA0DFl.js.br +0 -0
- package/dist/CheckoutWindow-BANXRcdP.js.br +0 -0
- package/dist/ErrorMessage-BkKT-ltk.js.br +0 -0
- package/dist/EventAvailabilityForm-TIP9lliE.js.br +0 -0
- package/dist/Field-W3dyKX_L.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DghVL0Oa.js.br +0 -0
- package/dist/_-v0hUQXei.js +0 -5
- package/dist/_.vue_vue_type_style_index_0_lang-0ivLN3Ws.js +0 -25
- package/dist/giftCard-CMpwvYsv.js.br +0 -0
- package/dist/masonry.plugin-DkIwTZE2.js.br +0 -0
- package/dist/mitt-B_elXQ2J.js +0 -12437
- package/dist/mitt-B_elXQ2J.js.br +0 -0
- package/dist/style-CDpCXUak.js.br +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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-HlNLn_PC.js";
|
|
2
|
+
import { I as Q, s as X, r as t, c as a, J as S } from "./mitt-Cg46J41N.js";
|
|
3
3
|
const ee = Q("giftCard", () => {
|
|
4
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
5
|
base64: "",
|
|
6
6
|
type: "",
|
|
7
7
|
name: ""
|
|
8
|
-
}),
|
|
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
9
|
const e = {
|
|
10
10
|
1: {
|
|
11
11
|
label: S.t("giftCard.hotelType"),
|
|
@@ -21,18 +21,18 @@ const ee = Q("giftCard", () => {
|
|
|
21
21
|
}), Object.fromEntries(
|
|
22
22
|
Object.entries(e).filter(([, n]) => n.data.length > 0)
|
|
23
23
|
);
|
|
24
|
-
}),
|
|
24
|
+
}), z = a(() => g.value !== 0), i = a(() => {
|
|
25
25
|
let e;
|
|
26
|
-
if (
|
|
26
|
+
if (z.value)
|
|
27
27
|
e = m.value[g.value].data[0];
|
|
28
28
|
else if (f.value !== 0) {
|
|
29
|
-
const r =
|
|
29
|
+
const r = I.value, n = m.value[f.value].data;
|
|
30
30
|
n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((x) => {
|
|
31
31
|
String(x.id) === String(r) && (e = x);
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
return e;
|
|
35
|
-
}),
|
|
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
36
|
async function $() {
|
|
37
37
|
try {
|
|
38
38
|
const e = (await M.get("https://production.hotel-service.konnectio.com/api/gift-card/metadata", {
|
|
@@ -65,7 +65,7 @@ const ee = Q("giftCard", () => {
|
|
|
65
65
|
contactName: u.value,
|
|
66
66
|
contactEmail: v.value,
|
|
67
67
|
contactPhone: d.value,
|
|
68
|
-
imageBase64:
|
|
68
|
+
imageBase64: K(l.value.base64),
|
|
69
69
|
imageName: l.value.name,
|
|
70
70
|
imageFormat: l.value.type,
|
|
71
71
|
placeType: i.value ? i.value.placeType : void 0,
|
|
@@ -82,7 +82,7 @@ const ee = Q("giftCard", () => {
|
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function J(e) {
|
|
86
86
|
e && (g.value = e);
|
|
87
87
|
}
|
|
88
88
|
return {
|
|
@@ -96,23 +96,23 @@ const ee = Q("giftCard", () => {
|
|
|
96
96
|
showValue: F,
|
|
97
97
|
quantity: k,
|
|
98
98
|
media: l,
|
|
99
|
-
placeId:
|
|
99
|
+
placeId: I,
|
|
100
100
|
placeType: f,
|
|
101
|
-
showFormPage:
|
|
102
|
-
showPaymentPage:
|
|
103
|
-
showConfirmationPage:
|
|
101
|
+
showFormPage: W,
|
|
102
|
+
showPaymentPage: _,
|
|
103
|
+
showConfirmationPage: j,
|
|
104
104
|
places: m,
|
|
105
|
-
hasFilledForm:
|
|
106
|
-
hasForcedPlaceType:
|
|
105
|
+
hasFilledForm: q,
|
|
106
|
+
hasForcedPlaceType: z,
|
|
107
107
|
isWaitingForResponse: N,
|
|
108
|
-
isMetadataAvailable:
|
|
109
|
-
termsOfService:
|
|
108
|
+
isMetadataAvailable: L,
|
|
109
|
+
termsOfService: U,
|
|
110
110
|
fetchMetadata: $,
|
|
111
111
|
orderGiftCard: B,
|
|
112
|
-
initialize:
|
|
112
|
+
initialize: J
|
|
113
113
|
};
|
|
114
114
|
});
|
|
115
115
|
export {
|
|
116
116
|
ee as u
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=giftCard-
|
|
118
|
+
//# sourceMappingURL=giftCard-Cd9Y7fCq.js.map
|
|
Binary file
|