@konnectio/core 4.7.9 → 4.7.10

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.
Files changed (101) hide show
  1. package/dist/{ActionField-BLUufdat.js → ActionField-BSWeY8s9.js} +6 -6
  2. package/dist/ActionField-BSWeY8s9.js.br +0 -0
  3. package/dist/ActionField-BSWeY8s9.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-DlcBMiZx.js → AvailabilitySkeleton-Q_NRPJhM.js} +113 -113
  5. package/dist/AvailabilitySkeleton-Q_NRPJhM.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-Q_NRPJhM.js.gz +0 -0
  7. package/dist/{CheckoutWindow-BcRZIzMT.js → CheckoutWindow-BUNrnlGh.js} +7 -7
  8. package/dist/CheckoutWindow-BUNrnlGh.js.br +0 -0
  9. package/dist/CheckoutWindow-BUNrnlGh.js.gz +0 -0
  10. package/dist/{ErrorMessage-C8zkJCJE.js → ErrorMessage-BvilVn5L.js} +7 -7
  11. package/dist/ErrorMessage-BvilVn5L.js.br +0 -0
  12. package/dist/ErrorMessage-BvilVn5L.js.gz +0 -0
  13. package/dist/{EventAvailabilityForm-B4sFsGhI.js → EventAvailabilityForm-btvOM8KB.js} +16 -16
  14. package/dist/EventAvailabilityForm-btvOM8KB.js.br +0 -0
  15. package/dist/EventAvailabilityForm-btvOM8KB.js.gz +0 -0
  16. package/dist/{Field-De-fvk85.js → Field-DAHZfr5Y.js} +1 -1
  17. package/dist/Field-DAHZfr5Y.js.br +0 -0
  18. package/dist/Field-DAHZfr5Y.js.gz +0 -0
  19. package/dist/{HotelAvailabilityForm-C8uTiy9J.js → HotelAvailabilityForm-DCCdgoBw.js} +6 -6
  20. package/dist/HotelAvailabilityForm-DCCdgoBw.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-DCCdgoBw.js.gz +0 -0
  22. package/dist/{SelectField-CDAxug6h.js → SelectField-CnreRmEZ.js} +1888 -1870
  23. package/dist/SelectField-CnreRmEZ.js.br +0 -0
  24. package/dist/SelectField-CnreRmEZ.js.gz +0 -0
  25. package/dist/{TermsOfService-Dt5Q1SCK.js → TermsOfService-DcFuq9YM.js} +6 -6
  26. package/dist/TermsOfService-DcFuq9YM.js.br +0 -0
  27. package/dist/TermsOfService-DcFuq9YM.js.gz +3 -0
  28. package/dist/{_-Be3oAOAc.js → _-DYoQFY32.js} +1 -1
  29. package/dist/_-DYoQFY32.js.br +0 -0
  30. package/dist/_-DYoQFY32.js.gz +5 -0
  31. package/dist/availability.js +7 -7
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +11 -11
  35. package/dist/cancel-reservation.js.br +0 -0
  36. package/dist/cancel-reservation.js.gz +0 -0
  37. package/dist/core.css +1 -1
  38. package/dist/core.css.br +0 -0
  39. package/dist/core.css.gz +0 -0
  40. package/dist/{dist-C_IilFmu.js → dist-CXMkG9Ch.js} +25 -26
  41. package/dist/dist-CXMkG9Ch.js.br +0 -0
  42. package/dist/dist-CXMkG9Ch.js.gz +0 -0
  43. package/dist/{dist-BPlclb9p.js → dist-VETO5cbq.js} +2 -2
  44. package/dist/dist-VETO5cbq.js.br +0 -0
  45. package/dist/dist-VETO5cbq.js.gz +0 -0
  46. package/dist/event.js +62 -62
  47. package/dist/event.js.br +0 -0
  48. package/dist/event.js.gz +0 -0
  49. package/dist/gift-card-validation.js +7 -7
  50. package/dist/gift-card-validation.js.br +0 -0
  51. package/dist/gift-card-validation.js.gz +0 -0
  52. package/dist/gift-card.js +9 -9
  53. package/dist/gift-card.js.br +0 -0
  54. package/dist/gift-card.js.gz +0 -0
  55. package/dist/giftCard-k36XguqL.js +104 -0
  56. package/dist/giftCard-k36XguqL.js.br +0 -0
  57. package/dist/giftCard-k36XguqL.js.gz +0 -0
  58. package/dist/hotel.js +212 -214
  59. package/dist/hotel.js.br +0 -0
  60. package/dist/hotel.js.gz +0 -0
  61. package/dist/polyfill.js +1 -1
  62. package/dist/polyfill.js.br +0 -0
  63. package/dist/polyfill.js.gz +0 -0
  64. package/dist/{style-D9WMflRR.js → style-HOryxFZm.js} +1 -1
  65. package/dist/style-HOryxFZm.js.br +0 -0
  66. package/dist/style-HOryxFZm.js.gz +0 -0
  67. package/dist-wix/availability.js +19 -19
  68. package/dist-wix/event.js +4 -4
  69. package/dist-wix/gift-card-validation.js +20 -20
  70. package/dist-wix/gift-card.js +20 -20
  71. package/dist-wix/hotel.js +4 -4
  72. package/package.json +4 -1
  73. package/dist/ActionField-BLUufdat.js.br +0 -0
  74. package/dist/ActionField-BLUufdat.js.gz +0 -0
  75. package/dist/AvailabilitySkeleton-DlcBMiZx.js.br +0 -0
  76. package/dist/AvailabilitySkeleton-DlcBMiZx.js.gz +0 -0
  77. package/dist/CheckoutWindow-BcRZIzMT.js.br +0 -0
  78. package/dist/CheckoutWindow-BcRZIzMT.js.gz +0 -0
  79. package/dist/ErrorMessage-C8zkJCJE.js.br +0 -0
  80. package/dist/ErrorMessage-C8zkJCJE.js.gz +0 -0
  81. package/dist/EventAvailabilityForm-B4sFsGhI.js.br +0 -0
  82. package/dist/EventAvailabilityForm-B4sFsGhI.js.gz +0 -0
  83. package/dist/Field-De-fvk85.js.br +0 -0
  84. package/dist/Field-De-fvk85.js.gz +0 -0
  85. package/dist/HotelAvailabilityForm-C8uTiy9J.js.br +0 -0
  86. package/dist/HotelAvailabilityForm-C8uTiy9J.js.gz +0 -0
  87. package/dist/SelectField-CDAxug6h.js.br +0 -0
  88. package/dist/SelectField-CDAxug6h.js.gz +0 -0
  89. package/dist/TermsOfService-Dt5Q1SCK.js.br +0 -0
  90. package/dist/TermsOfService-Dt5Q1SCK.js.gz +0 -0
  91. package/dist/_-Be3oAOAc.js.br +0 -0
  92. package/dist/_-Be3oAOAc.js.gz +0 -5
  93. package/dist/dist-BPlclb9p.js.br +0 -0
  94. package/dist/dist-BPlclb9p.js.gz +0 -0
  95. package/dist/dist-C_IilFmu.js.br +0 -0
  96. package/dist/dist-C_IilFmu.js.gz +0 -0
  97. package/dist/giftCard-CxI94mQ4.js +0 -104
  98. package/dist/giftCard-CxI94mQ4.js.br +0 -0
  99. package/dist/giftCard-CxI94mQ4.js.gz +0 -0
  100. package/dist/style-D9WMflRR.js.br +0 -0
  101. 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.9",
3
+ "version": "4.7.10",
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
@@ -1,5 +0,0 @@
1
- x�mSaO�0����'Ur��i
2
- ��i��i�B�I��W��l������)�
3
- �������|j�Y���� l0uv ��j��[3v� jI��?�������(U�ĽH ��5_�uߢU�J��V@F�����A�h��[3>�=�����3���w�?IS��v���䮟��o9E���LY�B�{�_�����UO�p�Q���0���
4
- ����f����C�
5
- �4i���[Xc� ʎe�1�&��%؍��ҍ�t _�}��?^'
Binary file
Binary file
Binary file
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