@konnectio/core 4.0.111 → 4.0.113
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-DpnZ6Hk4.js} +2 -2
- package/dist/ActionField-DpnZ6Hk4.js.br +0 -0
- package/dist/{AvailabilitySkeleton-Dmc1NsxJ.js → AvailabilitySkeleton-B3PCn7Zh.js} +5 -5
- package/dist/AvailabilitySkeleton-B3PCn7Zh.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dyh0N7sN.js +9062 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dyh0N7sN.js.br +0 -0
- package/dist/{CheckoutWindow-BQ4Yd-jj.js → CheckoutWindow-CBZATVS3.js} +2 -2
- package/dist/CheckoutWindow-CBZATVS3.js.br +0 -0
- package/dist/{ErrorMessage-DeAxlBUC.js → ErrorMessage-Cj4EWsnp.js} +2 -2
- package/dist/ErrorMessage-Cj4EWsnp.js.br +0 -0
- package/dist/{EventAvailabilityForm-lFl1MFHk.js → EventAvailabilityForm-C6U8tDPb.js} +4 -4
- package/dist/EventAvailabilityForm-C6U8tDPb.js.br +0 -0
- package/dist/{Field-DAod_0r8.js → Field-Cf0vZgQw.js} +3 -3
- package/dist/Field-Cf0vZgQw.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-DGiTZSqt.js} +2 -2
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-BwK4kGcO.js → SelectField.vue_vue_type_style_index_0_lang-D_cPiRYS.js} +4614 -4641
- package/dist/SelectField.vue_vue_type_style_index_0_lang-D_cPiRYS.js.br +0 -0
- package/dist/{TermsOfService-C-KmfA7-.js → TermsOfService-Bn5BDOpR.js} +3 -3
- package/dist/_-BdJkK4Nl.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-HN2ehFgL.js → _.vue_vue_type_style_index_0_lang-CZyXOF9b.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 +169 -163
- 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-B4ksqI17.js +109 -0
- package/dist/giftCard-B4ksqI17.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-DGcnQT2t.js} +71 -68
- package/dist/masonry.plugin-DGcnQT2t.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/event.js.br
CHANGED
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { d as A, a as s, g as v, e as t, f as a, c as T, u as $, s as k, b as m, w as p, S as B, i as e, t as i, A as b, j as I, h as D, k as N, l as U, m as F, p as H, q as j } from "./mitt-CTfj-lXy.js";
|
|
2
|
-
import { _ as x, t as C, g as R, I as h, j as q, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { u as z } from "./giftCard-
|
|
4
|
-
import { _ as J } from "./_.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { A as K } from "./ActionField-
|
|
6
|
-
import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
7
|
-
import { F as y } from "./Field-
|
|
8
|
-
import { E as Q } from "./ErrorMessage-
|
|
2
|
+
import { _ as x, t as C, g as R, I as h, j as q, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-D_cPiRYS.js";
|
|
3
|
+
import { u as z } from "./giftCard-B4ksqI17.js";
|
|
4
|
+
import { _ as J } from "./_.vue_vue_type_style_index_0_lang-CZyXOF9b.js";
|
|
5
|
+
import { A as K } from "./ActionField-DpnZ6Hk4.js";
|
|
6
|
+
import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DGiTZSqt.js";
|
|
7
|
+
import { F as y } from "./Field-Cf0vZgQw.js";
|
|
8
|
+
import { E as Q } from "./ErrorMessage-Cj4EWsnp.js";
|
|
9
9
|
import { G as Y } from "./style-BSDdyhMN.js";
|
|
10
10
|
const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */ A({
|
|
11
11
|
__name: "GiftCardValidationSkeleton",
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { d as G, u as L, r as O, c as Y, a as s, b as y, w as C, e as l, g as c, f as t, i as e, j as m, n as J, t as q, h as te, D as oe, s as z, E as ne, o as ie, S as se, G as A, H as S, F as re, z as de, A as v, k as ue, l as ce, m as pe, p as me, q as fe } from "./mitt-CTfj-lXy.js";
|
|
2
|
-
import { a as ve, d as T, r as be, _ as x, g as he, c as ke, L as _e, T as M, f as ge, C as ye, p as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { a as ve, d as T, r as be, _ as x, g as he, c as ke, L as _e, T as M, f as ge, C as ye, p as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-D_cPiRYS.js";
|
|
3
3
|
import { G as Ve } from "./style-BSDdyhMN.js";
|
|
4
|
-
import { u as I } from "./giftCard-
|
|
5
|
-
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-
|
|
7
|
-
import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
8
|
-
import { F as U } from "./Field-
|
|
9
|
-
import { E as Te } from "./ErrorMessage-
|
|
10
|
-
import { S as Ge } from "./TermsOfService-
|
|
4
|
+
import { u as I } from "./giftCard-B4ksqI17.js";
|
|
5
|
+
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-CZyXOF9b.js";
|
|
6
|
+
import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-CBZATVS3.js";
|
|
7
|
+
import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DGiTZSqt.js";
|
|
8
|
+
import { F as U } from "./Field-Cf0vZgQw.js";
|
|
9
|
+
import { E as Te } from "./ErrorMessage-Cj4EWsnp.js";
|
|
10
|
+
import { S as Ge } from "./TermsOfService-Bn5BDOpR.js";
|
|
11
11
|
const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Le = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, Ie = ["src"], xe = /* @__PURE__ */ G({
|
|
12
12
|
__name: "MediaSelector",
|
|
13
13
|
props: {
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { I as V, s as H, r as t, c as a, J as y } from "./mitt-CTfj-lXy.js";
|
|
2
|
+
import { v as K, a as Q, g as O, G as o, w as h, S, x, q as z, y as X } from "./SelectField.vue_vue_type_style_index_0_lang-D_cPiRYS.js";
|
|
3
|
+
const $ = V("giftCard", () => {
|
|
4
|
+
const { pay: E } = K(), { display: G } = Q(), { metaData: w, currencyId: D, hasError: P } = H(O()), T = O(), s = t(o.InitialState), u = h("konnectio_name", "", void 0, { serializer: S.string }), v = h("konnectio_email", "", void 0, { serializer: S.string }), d = h("konnectio_phone", "", void 0, { serializer: S.string }), f = t(""), F = t(1), b = t(!0), C = t(""), i = t({
|
|
5
|
+
base64: "",
|
|
6
|
+
type: "",
|
|
7
|
+
name: ""
|
|
8
|
+
}), I = t(void 0), g = t(0), c = t(!1), p = t(0), R = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}), U = a(() => R.value.termsOfService ? R.value.termsOfService : ""), W = a(() => s.value === o.InitialState || s.value === o.WaitingForResponse), _ = a(() => s.value === o.ReadyToPay), q = a(() => s.value === o.PaymentSuccess), m = a(() => {
|
|
9
|
+
const e = {
|
|
10
|
+
1: {
|
|
11
|
+
label: y.t("giftCard.hotelType"),
|
|
12
|
+
data: []
|
|
13
|
+
},
|
|
14
|
+
2: {
|
|
15
|
+
label: y.t("giftCard.restaurantType"),
|
|
16
|
+
data: []
|
|
17
|
+
}
|
|
18
|
+
}, r = w.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
|
+
}), k = a(() => p.value !== 0), l = a(() => {
|
|
25
|
+
let e;
|
|
26
|
+
if (k.value)
|
|
27
|
+
e = m.value[p.value].data[0];
|
|
28
|
+
else if (g.value !== 0) {
|
|
29
|
+
const r = I.value, n = m.value[g.value].data;
|
|
30
|
+
n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((M) => {
|
|
31
|
+
String(M.id) === String(r) && (e = M);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return e;
|
|
35
|
+
}), A = a(() => !(!u.value || !v.value || !(d.value.length >= 5) || !f.value || l.value === void 0)), L = a(() => !(s.value === o.InitialState && c.value)), N = a(() => !!(s.value === o.WaitingForResponse && c.value));
|
|
36
|
+
async function j() {
|
|
37
|
+
try {
|
|
38
|
+
const e = (await x().get("/gift-card/metadata", {
|
|
39
|
+
params: {
|
|
40
|
+
language: z()
|
|
41
|
+
}
|
|
42
|
+
})).data;
|
|
43
|
+
e.success !== void 0 ? P.value = !e.success : P.value = !1, w.value = e;
|
|
44
|
+
} catch {
|
|
45
|
+
G({
|
|
46
|
+
message: y.t("alert.error.couldntFetchMetadata"),
|
|
47
|
+
type: "warning"
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async function B() {
|
|
52
|
+
s.value = o.WaitingForResponse, c.value = !0, await x().post("/gift-card/create", {
|
|
53
|
+
termsOfserviceURL: window.location.origin,
|
|
54
|
+
checkoutUrl: window.location.origin,
|
|
55
|
+
currencyID: D.value,
|
|
56
|
+
language: z(),
|
|
57
|
+
amount: f.value,
|
|
58
|
+
quantity: F.value,
|
|
59
|
+
freeText: C.value,
|
|
60
|
+
showPrice: b.value,
|
|
61
|
+
contactName: u.value,
|
|
62
|
+
contactEmail: v.value,
|
|
63
|
+
contactPhone: d.value,
|
|
64
|
+
imageBase64: X(i.value.base64),
|
|
65
|
+
imageName: i.value.name,
|
|
66
|
+
imageFormat: i.value.type,
|
|
67
|
+
placeType: l.value ? l.value.placeType : void 0,
|
|
68
|
+
placeID: l.value ? l.value.id : void 0
|
|
69
|
+
}).then((e) => {
|
|
70
|
+
s.value = o.ReadyToPay, c.value = !1, E({
|
|
71
|
+
callback: () => console.log("Callback!"),
|
|
72
|
+
response: e.data
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function J(e) {
|
|
77
|
+
e && (p.value = e);
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
selectedPlace: l,
|
|
81
|
+
moduleState: s,
|
|
82
|
+
name: u,
|
|
83
|
+
email: v,
|
|
84
|
+
phone: d,
|
|
85
|
+
value: f,
|
|
86
|
+
remark: C,
|
|
87
|
+
showValue: b,
|
|
88
|
+
quantity: F,
|
|
89
|
+
media: i,
|
|
90
|
+
placeId: I,
|
|
91
|
+
placeType: g,
|
|
92
|
+
showFormPage: W,
|
|
93
|
+
showPaymentPage: _,
|
|
94
|
+
showConfirmationPage: q,
|
|
95
|
+
places: m,
|
|
96
|
+
hasFilledForm: A,
|
|
97
|
+
hasForcedPlaceType: k,
|
|
98
|
+
isWaitingForResponse: N,
|
|
99
|
+
isMetadataAvailable: L,
|
|
100
|
+
termsOfService: U,
|
|
101
|
+
fetchMetadata: j,
|
|
102
|
+
orderGiftCard: B,
|
|
103
|
+
initialize: J
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
export {
|
|
107
|
+
$ as u
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=giftCard-B4ksqI17.js.map
|
|
Binary file
|