@konnectio/core 4.7.9 → 4.7.11
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-BLUufdat.js → ActionField-DUL0XvJT.js} +6 -6
- package/dist/ActionField-DUL0XvJT.js.br +0 -0
- package/dist/ActionField-DUL0XvJT.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-DlcBMiZx.js → AvailabilitySkeleton-DEr2RxbZ.js} +113 -113
- package/dist/AvailabilitySkeleton-DEr2RxbZ.js.br +0 -0
- package/dist/AvailabilitySkeleton-DEr2RxbZ.js.gz +0 -0
- package/dist/{CheckoutWindow-BcRZIzMT.js → CheckoutWindow-BNE0eaqa.js} +96 -89
- package/dist/CheckoutWindow-BNE0eaqa.js.br +0 -0
- package/dist/CheckoutWindow-BNE0eaqa.js.gz +0 -0
- package/dist/{ErrorMessage-C8zkJCJE.js → ErrorMessage-c1Xb-slW.js} +7 -7
- package/dist/ErrorMessage-c1Xb-slW.js.br +0 -0
- package/dist/ErrorMessage-c1Xb-slW.js.gz +0 -0
- package/dist/{EventAvailabilityForm-B4sFsGhI.js → EventAvailabilityForm-7jg44O4p.js} +16 -16
- package/dist/EventAvailabilityForm-7jg44O4p.js.br +0 -0
- package/dist/EventAvailabilityForm-7jg44O4p.js.gz +0 -0
- package/dist/{Field-De-fvk85.js → Field-BpOBWcqm.js} +1 -1
- package/dist/Field-BpOBWcqm.js.br +0 -0
- package/dist/Field-BpOBWcqm.js.gz +0 -0
- package/dist/{HotelAvailabilityForm-C8uTiy9J.js → HotelAvailabilityForm-D-BlPPkO.js} +6 -6
- package/dist/HotelAvailabilityForm-D-BlPPkO.js.br +0 -0
- package/dist/HotelAvailabilityForm-D-BlPPkO.js.gz +0 -0
- package/dist/{SelectField-CDAxug6h.js → SelectField-BgawaMC_.js} +1889 -1870
- package/dist/SelectField-BgawaMC_.js.br +0 -0
- package/dist/SelectField-BgawaMC_.js.gz +0 -0
- package/dist/{TermsOfService-Dt5Q1SCK.js → TermsOfService-ByMc3JXX.js} +6 -6
- package/dist/TermsOfService-ByMc3JXX.js.br +0 -0
- package/dist/TermsOfService-ByMc3JXX.js.gz +2 -0
- package/dist/{_-Be3oAOAc.js → _-BftIyTSa.js} +1 -1
- package/dist/_-BftIyTSa.js.br +0 -0
- package/dist/_-BftIyTSa.js.gz +0 -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/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/{dist-BPlclb9p.js → dist-BRdmfOkq.js} +2 -2
- package/dist/dist-BRdmfOkq.js.br +0 -0
- package/dist/dist-BRdmfOkq.js.gz +0 -0
- package/dist/{dist-C_IilFmu.js → dist-DOhI4S1k.js} +25 -26
- package/dist/dist-DOhI4S1k.js.br +0 -0
- package/dist/dist-DOhI4S1k.js.gz +0 -0
- package/dist/event.js +176 -176
- 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 +11 -11
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/giftCard-D7hskPCe.js +104 -0
- package/dist/giftCard-D7hskPCe.js.br +0 -0
- package/dist/giftCard-D7hskPCe.js.gz +0 -0
- package/dist/hotel.js +1047 -1049
- 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-D9WMflRR.js → style-CHNgkDj2.js} +1 -1
- package/dist/style-CHNgkDj2.js.br +0 -0
- package/dist/style-CHNgkDj2.js.gz +0 -0
- package/dist-wix/availability.js +19 -19
- package/dist-wix/event.js +6 -6
- package/dist-wix/gift-card-validation.js +20 -20
- package/dist-wix/gift-card.js +20 -20
- package/dist-wix/hotel.js +6 -6
- package/package.json +4 -1
- package/dist/ActionField-BLUufdat.js.br +0 -0
- package/dist/ActionField-BLUufdat.js.gz +0 -0
- package/dist/AvailabilitySkeleton-DlcBMiZx.js.br +0 -0
- package/dist/AvailabilitySkeleton-DlcBMiZx.js.gz +0 -0
- package/dist/CheckoutWindow-BcRZIzMT.js.br +0 -0
- package/dist/CheckoutWindow-BcRZIzMT.js.gz +0 -0
- package/dist/ErrorMessage-C8zkJCJE.js.br +0 -0
- package/dist/ErrorMessage-C8zkJCJE.js.gz +0 -0
- package/dist/EventAvailabilityForm-B4sFsGhI.js.br +0 -0
- package/dist/EventAvailabilityForm-B4sFsGhI.js.gz +0 -0
- package/dist/Field-De-fvk85.js.br +0 -0
- package/dist/Field-De-fvk85.js.gz +0 -0
- package/dist/HotelAvailabilityForm-C8uTiy9J.js.br +0 -0
- package/dist/HotelAvailabilityForm-C8uTiy9J.js.gz +0 -0
- package/dist/SelectField-CDAxug6h.js.br +0 -0
- package/dist/SelectField-CDAxug6h.js.gz +0 -0
- package/dist/TermsOfService-Dt5Q1SCK.js.br +0 -0
- package/dist/TermsOfService-Dt5Q1SCK.js.gz +0 -0
- package/dist/_-Be3oAOAc.js.br +0 -0
- package/dist/_-Be3oAOAc.js.gz +0 -5
- package/dist/dist-BPlclb9p.js.br +0 -0
- package/dist/dist-BPlclb9p.js.gz +0 -0
- package/dist/dist-C_IilFmu.js.br +0 -0
- package/dist/dist-C_IilFmu.js.gz +0 -0
- package/dist/giftCard-CxI94mQ4.js +0 -104
- package/dist/giftCard-CxI94mQ4.js.br +0 -0
- package/dist/giftCard-CxI94mQ4.js.gz +0 -0
- package/dist/style-D9WMflRR.js.br +0 -0
- package/dist/style-D9WMflRR.js.gz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.11",
|
|
4
4
|
"author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
|
|
5
5
|
"homepage": "https://konnectio.com",
|
|
6
6
|
"repository": {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"dist/*.css",
|
|
17
17
|
"!dist/index.*",
|
|
18
18
|
"!dist/playground.*",
|
|
19
|
+
"!dist/checkout.*",
|
|
19
20
|
"dist-wix/*.js"
|
|
20
21
|
],
|
|
21
22
|
"exports": {
|
|
@@ -36,12 +37,14 @@
|
|
|
36
37
|
"build": "vite build --config vite.config.js --mode production",
|
|
37
38
|
"build:wix": "bun scripts/build-wix.ts",
|
|
38
39
|
"build:playground": "vite build --config vite.config.playground.js --mode production",
|
|
40
|
+
"build:checkout": "vite build --config vite.config.checkout.ts --mode production",
|
|
39
41
|
"build:demo": "bun run build && bun run build:playground",
|
|
40
42
|
"devprod": "vite build --mode development",
|
|
41
43
|
"watch": "vite build --watch --mode development",
|
|
42
44
|
"production": "vue-tsc --noEmit && vite build --mode production",
|
|
43
45
|
"analysis": "vue-tsc --noEmit",
|
|
44
46
|
"preview": "vite preview",
|
|
47
|
+
"test": "bun test",
|
|
45
48
|
"e2e": "cypress open",
|
|
46
49
|
"lint": "eslint src",
|
|
47
50
|
"lint:fix": "eslint src --fix",
|
|
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
|
|
Binary file
|
package/dist/_-Be3oAOAc.js.br
DELETED
|
Binary file
|
package/dist/_-Be3oAOAc.js.gz
DELETED
package/dist/dist-BPlclb9p.js.br
DELETED
|
Binary file
|
package/dist/dist-BPlclb9p.js.gz
DELETED
|
Binary file
|
package/dist/dist-C_IilFmu.js.br
DELETED
|
Binary file
|
package/dist/dist-C_IilFmu.js.gz
DELETED
|
Binary file
|
|
@@ -1,104 +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, L as s, M as c, N as l, T as u, W as d, ct as f, j as p, pt as m, rt as h, st as g } from "./SelectField-CDAxug6h.js";
|
|
3
|
-
//#region src/store/giftCard.ts
|
|
4
|
-
var _ = e("giftCard", () => {
|
|
5
|
-
let { pay: e, restoreOffer: _, confirmPayment: v } = l(), { display: y } = o(), { metaData: b, currencyId: x, hasError: S, paymentGatewayId: C } = t(a()), w = a(), T = i(h.InitialState), E = p();
|
|
6
|
-
E && c("konnectio_return") === "reepay" && c("handle") !== null && (_(E.offer, E.confirmationId), v(), T.value = h.PaymentSuccess);
|
|
7
|
-
let D = m("konnectio_name", "", void 0, { serializer: f.string }), O = m("konnectio_email", "", void 0, { serializer: f.string }), k = m("konnectio_phone", "", void 0, { serializer: f.string }), A = i(""), j = i(1), M = i(!0), N = i(""), P = i({
|
|
8
|
-
base64: "",
|
|
9
|
-
type: "",
|
|
10
|
-
name: ""
|
|
11
|
-
}), F = i(void 0), I = i(0), L = i(!1), R = i(0), z = r(() => w.metaData.hotels[0]), B = r(() => z.value.termsOfService ? z.value.termsOfService : ""), V = r(() => T.value === h.InitialState || T.value === h.WaitingForResponse), H = r(() => T.value === h.ReadyToPay), U = r(() => T.value === h.PaymentSuccess), W = r(() => {
|
|
12
|
-
let e = {
|
|
13
|
-
1: {
|
|
14
|
-
label: n.t("giftCard.hotelType"),
|
|
15
|
-
data: []
|
|
16
|
-
},
|
|
17
|
-
2: {
|
|
18
|
-
label: n.t("giftCard.restaurantType"),
|
|
19
|
-
data: []
|
|
20
|
-
}
|
|
21
|
-
}, t = b.value.hotels[0].places;
|
|
22
|
-
return t && t.forEach((t) => {
|
|
23
|
-
e[t.placeType].data.push(t);
|
|
24
|
-
}), Object.fromEntries(Object.entries(e).filter(([, e]) => e.data.length > 0));
|
|
25
|
-
}), G = r(() => R.value !== 0), K = r(() => {
|
|
26
|
-
let e;
|
|
27
|
-
if (G.value) e = W.value[R.value].data[0];
|
|
28
|
-
else if (I.value !== 0) {
|
|
29
|
-
let t = F.value, n = W.value[I.value].data;
|
|
30
|
-
n.length === 1 ? e = n[0] : t !== void 0 && n.forEach((n) => {
|
|
31
|
-
String(n.id) === String(t) && (e = n);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return e;
|
|
35
|
-
}), q = r(() => !(!D.value || !O.value || !(k.value.length >= 5) || !A.value || K.value === void 0)), J = r(() => !(T.value === h.InitialState && L.value)), Y = r(() => !!(T.value === h.WaitingForResponse && L.value));
|
|
36
|
-
async function X() {
|
|
37
|
-
try {
|
|
38
|
-
let e = (await u().get("/gift-card/metadata", { params: { language: d() } })).data;
|
|
39
|
-
e.success === void 0 ? S.value = !1 : S.value = !e.success, b.value = e;
|
|
40
|
-
} catch {
|
|
41
|
-
y({
|
|
42
|
-
message: n.t("alert.error.couldntFetchMetadata"),
|
|
43
|
-
type: "warning"
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
async function Z() {
|
|
48
|
-
T.value = h.WaitingForResponse, L.value = !0, await u().post("/gift-card/create", {
|
|
49
|
-
termsOfserviceURL: window.location.origin,
|
|
50
|
-
checkoutUrl: C.value === g.ReePay ? `${window.location.href}${window.location.search ? "&" : "?"}konnectio_return=reepay` : window.location.origin,
|
|
51
|
-
currencyID: x.value,
|
|
52
|
-
language: d(),
|
|
53
|
-
amount: A.value,
|
|
54
|
-
quantity: j.value,
|
|
55
|
-
freeText: N.value,
|
|
56
|
-
showPrice: M.value,
|
|
57
|
-
contactName: D.value,
|
|
58
|
-
contactEmail: O.value,
|
|
59
|
-
contactPhone: k.value,
|
|
60
|
-
imageBase64: s(P.value.base64),
|
|
61
|
-
imageName: P.value.name,
|
|
62
|
-
imageFormat: P.value.type,
|
|
63
|
-
placeType: K.value ? K.value.placeType : void 0,
|
|
64
|
-
placeID: K.value ? K.value.id : void 0
|
|
65
|
-
}).then((t) => {
|
|
66
|
-
T.value = h.ReadyToPay, L.value = !1, e({
|
|
67
|
-
callback: () => console.log("Callback!"),
|
|
68
|
-
response: t.data,
|
|
69
|
-
enableHostedRedirect: !0
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function Q(e) {
|
|
74
|
-
e && (R.value = e);
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
selectedPlace: K,
|
|
78
|
-
moduleState: T,
|
|
79
|
-
name: D,
|
|
80
|
-
email: O,
|
|
81
|
-
phone: k,
|
|
82
|
-
value: A,
|
|
83
|
-
remark: N,
|
|
84
|
-
showValue: M,
|
|
85
|
-
quantity: j,
|
|
86
|
-
media: P,
|
|
87
|
-
placeId: F,
|
|
88
|
-
placeType: I,
|
|
89
|
-
showFormPage: V,
|
|
90
|
-
showPaymentPage: H,
|
|
91
|
-
showConfirmationPage: U,
|
|
92
|
-
places: W,
|
|
93
|
-
hasFilledForm: q,
|
|
94
|
-
hasForcedPlaceType: G,
|
|
95
|
-
isWaitingForResponse: Y,
|
|
96
|
-
isMetadataAvailable: J,
|
|
97
|
-
termsOfService: B,
|
|
98
|
-
fetchMetadata: X,
|
|
99
|
-
orderGiftCard: Z,
|
|
100
|
-
initialize: Q
|
|
101
|
-
};
|
|
102
|
-
});
|
|
103
|
-
//#endregion
|
|
104
|
-
export { _ as t };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|