@konnectio/core 4.7.7 → 4.7.9
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-DOQFnJta.js → ActionField-BLUufdat.js} +6 -6
- package/dist/ActionField-BLUufdat.js.br +0 -0
- package/dist/ActionField-BLUufdat.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-nIhak-Uc.js → AvailabilitySkeleton-DlcBMiZx.js} +113 -113
- package/dist/AvailabilitySkeleton-DlcBMiZx.js.br +0 -0
- package/dist/AvailabilitySkeleton-DlcBMiZx.js.gz +0 -0
- package/dist/{CheckoutWindow-DE2yzGnz.js → CheckoutWindow-BcRZIzMT.js} +7 -7
- package/dist/CheckoutWindow-BcRZIzMT.js.br +0 -0
- package/dist/CheckoutWindow-BcRZIzMT.js.gz +0 -0
- package/dist/{ErrorMessage-BQ3QCzgM.js → ErrorMessage-C8zkJCJE.js} +7 -7
- package/dist/ErrorMessage-C8zkJCJE.js.br +0 -0
- package/dist/ErrorMessage-C8zkJCJE.js.gz +0 -0
- package/dist/{EventAvailabilityForm-B5vpdc8N.js → EventAvailabilityForm-B4sFsGhI.js} +16 -16
- package/dist/EventAvailabilityForm-B4sFsGhI.js.br +0 -0
- package/dist/EventAvailabilityForm-B4sFsGhI.js.gz +0 -0
- package/dist/{Field-BRgNjvD3.js → Field-De-fvk85.js} +1 -1
- package/dist/Field-De-fvk85.js.br +0 -0
- package/dist/Field-De-fvk85.js.gz +0 -0
- package/dist/{HotelAvailabilityForm-BgcU8KsZ.js → HotelAvailabilityForm-C8uTiy9J.js} +6 -6
- package/dist/HotelAvailabilityForm-C8uTiy9J.js.br +0 -0
- package/dist/HotelAvailabilityForm-C8uTiy9J.js.gz +0 -0
- package/dist/{SelectField-CaXEgPcr.js → SelectField-CDAxug6h.js} +3 -3
- package/dist/SelectField-CDAxug6h.js.br +0 -0
- package/dist/{SelectField-CaXEgPcr.js.gz → SelectField-CDAxug6h.js.gz} +0 -0
- package/dist/{TermsOfService-CJFPo6Ld.js → TermsOfService-Dt5Q1SCK.js} +6 -6
- package/dist/TermsOfService-Dt5Q1SCK.js.br +0 -0
- package/dist/TermsOfService-Dt5Q1SCK.js.gz +0 -0
- package/dist/{_-TrefP0NY.js → _-Be3oAOAc.js} +1 -1
- package/dist/_-Be3oAOAc.js.br +0 -0
- package/dist/_-Be3oAOAc.js.gz +5 -0
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +11 -11
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/{dist-Cj1zdC8i.js → dist-BPlclb9p.js} +2 -2
- package/dist/dist-BPlclb9p.js.br +0 -0
- package/dist/dist-BPlclb9p.js.gz +0 -0
- package/dist/{dist-DQ2EbDk2.js → dist-C_IilFmu.js} +4 -4
- package/dist/dist-C_IilFmu.js.br +0 -0
- package/dist/dist-C_IilFmu.js.gz +0 -0
- package/dist/event.js +62 -62
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +7 -7
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +9 -9
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/giftCard-CxI94mQ4.js +104 -0
- package/dist/giftCard-CxI94mQ4.js.br +0 -0
- package/dist/giftCard-CxI94mQ4.js.gz +0 -0
- package/dist/hotel.js +104 -104
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{style-DyffPZ8F.js → style-D9WMflRR.js} +1 -1
- package/dist/style-D9WMflRR.js.br +0 -0
- package/dist/style-D9WMflRR.js.gz +0 -0
- package/dist-wix/availability.js +2 -2
- package/dist-wix/event.js +2 -2
- package/dist-wix/gift-card-validation.js +1 -1
- package/dist-wix/gift-card.js +11 -11
- package/dist-wix/hotel.js +2 -2
- package/package.json +1 -1
- package/dist/ActionField-DOQFnJta.js.br +0 -0
- package/dist/ActionField-DOQFnJta.js.gz +0 -0
- package/dist/AvailabilitySkeleton-nIhak-Uc.js.br +0 -0
- package/dist/AvailabilitySkeleton-nIhak-Uc.js.gz +0 -0
- package/dist/CheckoutWindow-DE2yzGnz.js.br +0 -0
- package/dist/CheckoutWindow-DE2yzGnz.js.gz +0 -0
- package/dist/ErrorMessage-BQ3QCzgM.js.br +0 -0
- package/dist/ErrorMessage-BQ3QCzgM.js.gz +0 -0
- package/dist/EventAvailabilityForm-B5vpdc8N.js.br +0 -0
- package/dist/EventAvailabilityForm-B5vpdc8N.js.gz +0 -0
- package/dist/Field-BRgNjvD3.js.br +0 -0
- package/dist/Field-BRgNjvD3.js.gz +0 -0
- package/dist/HotelAvailabilityForm-BgcU8KsZ.js.br +0 -0
- package/dist/HotelAvailabilityForm-BgcU8KsZ.js.gz +0 -0
- package/dist/SelectField-CaXEgPcr.js.br +0 -0
- package/dist/TermsOfService-CJFPo6Ld.js.br +0 -0
- package/dist/TermsOfService-CJFPo6Ld.js.gz +0 -0
- package/dist/_-TrefP0NY.js.br +0 -0
- package/dist/_-TrefP0NY.js.gz +0 -0
- package/dist/dist-Cj1zdC8i.js.br +0 -0
- package/dist/dist-Cj1zdC8i.js.gz +0 -0
- package/dist/dist-DQ2EbDk2.js.br +0 -0
- package/dist/dist-DQ2EbDk2.js.gz +0 -0
- package/dist/giftCard-DsgsenXN.js +0 -101
- package/dist/giftCard-DsgsenXN.js.br +0 -0
- package/dist/giftCard-DsgsenXN.js.gz +0 -0
- package/dist/style-DyffPZ8F.js.br +0 -0
- package/dist/style-DyffPZ8F.js.gz +0 -0
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/_-TrefP0NY.js.br
DELETED
|
Binary file
|
package/dist/_-TrefP0NY.js.gz
DELETED
|
Binary file
|
package/dist/dist-Cj1zdC8i.js.br
DELETED
|
Binary file
|
package/dist/dist-Cj1zdC8i.js.gz
DELETED
|
Binary file
|
package/dist/dist-DQ2EbDk2.js.br
DELETED
|
Binary file
|
package/dist/dist-DQ2EbDk2.js.gz
DELETED
|
Binary file
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { c as e, l as t, t as n, w as r, yt as i } from "./i18n-DwFTw_rF.js";
|
|
2
|
-
import { E as a, F as o, H as s, N as c, T as l, dt as u, j as d, ot as f, tt as p } from "./SelectField-CaXEgPcr.js";
|
|
3
|
-
//#region src/store/giftCard.ts
|
|
4
|
-
var m = e("giftCard", () => {
|
|
5
|
-
let { pay: e } = d(), { display: m } = c(), { metaData: h, currencyId: g, hasError: _ } = t(a()), v = a(), y = i(p.InitialState), b = u("konnectio_name", "", void 0, { serializer: f.string }), x = u("konnectio_email", "", void 0, { serializer: f.string }), S = u("konnectio_phone", "", void 0, { serializer: f.string }), C = i(""), w = i(1), T = i(!0), E = i(""), D = i({
|
|
6
|
-
base64: "",
|
|
7
|
-
type: "",
|
|
8
|
-
name: ""
|
|
9
|
-
}), O = i(void 0), k = i(0), A = i(!1), j = i(0), M = r(() => v.metaData.hotels[0]), N = r(() => M.value.termsOfService ? M.value.termsOfService : ""), P = r(() => y.value === p.InitialState || y.value === p.WaitingForResponse), F = r(() => y.value === p.ReadyToPay), I = r(() => y.value === p.PaymentSuccess), L = r(() => {
|
|
10
|
-
let e = {
|
|
11
|
-
1: {
|
|
12
|
-
label: n.t("giftCard.hotelType"),
|
|
13
|
-
data: []
|
|
14
|
-
},
|
|
15
|
-
2: {
|
|
16
|
-
label: n.t("giftCard.restaurantType"),
|
|
17
|
-
data: []
|
|
18
|
-
}
|
|
19
|
-
}, t = h.value.hotels[0].places;
|
|
20
|
-
return t && t.forEach((t) => {
|
|
21
|
-
e[t.placeType].data.push(t);
|
|
22
|
-
}), Object.fromEntries(Object.entries(e).filter(([, e]) => e.data.length > 0));
|
|
23
|
-
}), R = r(() => j.value !== 0), z = r(() => {
|
|
24
|
-
let e;
|
|
25
|
-
if (R.value) e = L.value[j.value].data[0];
|
|
26
|
-
else if (k.value !== 0) {
|
|
27
|
-
let t = O.value, n = L.value[k.value].data;
|
|
28
|
-
n.length === 1 ? e = n[0] : t !== void 0 && n.forEach((n) => {
|
|
29
|
-
String(n.id) === String(t) && (e = n);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
return e;
|
|
33
|
-
}), B = r(() => !(!b.value || !x.value || !(S.value.length >= 5) || !C.value || z.value === void 0)), V = r(() => !(y.value === p.InitialState && A.value)), H = r(() => !!(y.value === p.WaitingForResponse && A.value));
|
|
34
|
-
async function U() {
|
|
35
|
-
try {
|
|
36
|
-
let e = (await l().get("/gift-card/metadata", { params: { language: s() } })).data;
|
|
37
|
-
e.success === void 0 ? _.value = !1 : _.value = !e.success, h.value = e;
|
|
38
|
-
} catch {
|
|
39
|
-
m({
|
|
40
|
-
message: n.t("alert.error.couldntFetchMetadata"),
|
|
41
|
-
type: "warning"
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
async function W() {
|
|
46
|
-
y.value = p.WaitingForResponse, A.value = !0, await l().post("/gift-card/create", {
|
|
47
|
-
termsOfserviceURL: window.location.origin,
|
|
48
|
-
checkoutUrl: window.location.origin,
|
|
49
|
-
currencyID: g.value,
|
|
50
|
-
language: s(),
|
|
51
|
-
amount: C.value,
|
|
52
|
-
quantity: w.value,
|
|
53
|
-
freeText: E.value,
|
|
54
|
-
showPrice: T.value,
|
|
55
|
-
contactName: b.value,
|
|
56
|
-
contactEmail: x.value,
|
|
57
|
-
contactPhone: S.value,
|
|
58
|
-
imageBase64: o(D.value.base64),
|
|
59
|
-
imageName: D.value.name,
|
|
60
|
-
imageFormat: D.value.type,
|
|
61
|
-
placeType: z.value ? z.value.placeType : void 0,
|
|
62
|
-
placeID: z.value ? z.value.id : void 0
|
|
63
|
-
}).then((t) => {
|
|
64
|
-
y.value = p.ReadyToPay, A.value = !1, e({
|
|
65
|
-
callback: () => console.log("Callback!"),
|
|
66
|
-
response: t.data
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
function G(e) {
|
|
71
|
-
e && (j.value = e);
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
selectedPlace: z,
|
|
75
|
-
moduleState: y,
|
|
76
|
-
name: b,
|
|
77
|
-
email: x,
|
|
78
|
-
phone: S,
|
|
79
|
-
value: C,
|
|
80
|
-
remark: E,
|
|
81
|
-
showValue: T,
|
|
82
|
-
quantity: w,
|
|
83
|
-
media: D,
|
|
84
|
-
placeId: O,
|
|
85
|
-
placeType: k,
|
|
86
|
-
showFormPage: P,
|
|
87
|
-
showPaymentPage: F,
|
|
88
|
-
showConfirmationPage: I,
|
|
89
|
-
places: L,
|
|
90
|
-
hasFilledForm: B,
|
|
91
|
-
hasForcedPlaceType: R,
|
|
92
|
-
isWaitingForResponse: H,
|
|
93
|
-
isMetadataAvailable: V,
|
|
94
|
-
termsOfService: N,
|
|
95
|
-
fetchMetadata: U,
|
|
96
|
-
orderGiftCard: W,
|
|
97
|
-
initialize: G
|
|
98
|
-
};
|
|
99
|
-
});
|
|
100
|
-
//#endregion
|
|
101
|
-
export { m as t };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|