@konnectio/core 4.7.8 → 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.
Files changed (96) hide show
  1. package/dist/{ActionField-D1UVyt3P.js → ActionField-BLUufdat.js} +6 -6
  2. package/dist/ActionField-BLUufdat.js.br +0 -0
  3. package/dist/ActionField-BLUufdat.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-CkZ3yXGl.js → AvailabilitySkeleton-DlcBMiZx.js} +113 -113
  5. package/dist/AvailabilitySkeleton-DlcBMiZx.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-DlcBMiZx.js.gz +0 -0
  7. package/dist/{CheckoutWindow-roDCaJfD.js → CheckoutWindow-BcRZIzMT.js} +7 -7
  8. package/dist/CheckoutWindow-BcRZIzMT.js.br +0 -0
  9. package/dist/CheckoutWindow-BcRZIzMT.js.gz +0 -0
  10. package/dist/{ErrorMessage-BjPE4vap.js → ErrorMessage-C8zkJCJE.js} +7 -7
  11. package/dist/ErrorMessage-C8zkJCJE.js.br +0 -0
  12. package/dist/ErrorMessage-C8zkJCJE.js.gz +0 -0
  13. package/dist/{EventAvailabilityForm-BuYaRNzQ.js → EventAvailabilityForm-B4sFsGhI.js} +16 -16
  14. package/dist/EventAvailabilityForm-B4sFsGhI.js.br +0 -0
  15. package/dist/EventAvailabilityForm-B4sFsGhI.js.gz +0 -0
  16. package/dist/{Field-B1vjvlxb.js → Field-De-fvk85.js} +1 -1
  17. package/dist/Field-De-fvk85.js.br +0 -0
  18. package/dist/Field-De-fvk85.js.gz +0 -0
  19. package/dist/{HotelAvailabilityForm-9fTMo0JS.js → HotelAvailabilityForm-C8uTiy9J.js} +6 -6
  20. package/dist/HotelAvailabilityForm-C8uTiy9J.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-C8uTiy9J.js.gz +0 -0
  22. package/dist/{SelectField-BUMVCl9X.js → SelectField-CDAxug6h.js} +2 -2
  23. package/dist/SelectField-CDAxug6h.js.br +0 -0
  24. package/dist/{SelectField-BUMVCl9X.js.gz → SelectField-CDAxug6h.js.gz} +0 -0
  25. package/dist/{TermsOfService-B8UYMSX-.js → TermsOfService-Dt5Q1SCK.js} +6 -6
  26. package/dist/TermsOfService-Dt5Q1SCK.js.br +0 -0
  27. package/dist/TermsOfService-Dt5Q1SCK.js.gz +0 -0
  28. package/dist/{_-BmsIYzkS.js → _-Be3oAOAc.js} +1 -1
  29. package/dist/_-Be3oAOAc.js.br +0 -0
  30. package/dist/_-Be3oAOAc.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/{dist-X-WT7tyd.js → dist-BPlclb9p.js} +2 -2
  38. package/dist/{dist-X-WT7tyd.js.br → dist-BPlclb9p.js.br} +0 -0
  39. package/dist/dist-BPlclb9p.js.gz +0 -0
  40. package/dist/{dist-DWRyg7R_.js → dist-C_IilFmu.js} +4 -4
  41. package/dist/dist-C_IilFmu.js.br +0 -0
  42. package/dist/dist-C_IilFmu.js.gz +0 -0
  43. package/dist/event.js +62 -62
  44. package/dist/event.js.br +0 -0
  45. package/dist/event.js.gz +0 -0
  46. package/dist/gift-card-validation.js +7 -7
  47. package/dist/gift-card-validation.js.br +0 -0
  48. package/dist/gift-card-validation.js.gz +0 -0
  49. package/dist/gift-card.js +9 -9
  50. package/dist/gift-card.js.br +0 -0
  51. package/dist/gift-card.js.gz +0 -0
  52. package/dist/giftCard-CxI94mQ4.js +104 -0
  53. package/dist/giftCard-CxI94mQ4.js.br +0 -0
  54. package/dist/giftCard-CxI94mQ4.js.gz +0 -0
  55. package/dist/hotel.js +104 -104
  56. package/dist/hotel.js.br +0 -0
  57. package/dist/hotel.js.gz +0 -0
  58. package/dist/polyfill.js +1 -1
  59. package/dist/polyfill.js.br +0 -0
  60. package/dist/polyfill.js.gz +0 -0
  61. package/dist/{style-DRDBWvVm.js → style-D9WMflRR.js} +1 -1
  62. package/dist/style-D9WMflRR.js.br +0 -0
  63. package/dist/style-D9WMflRR.js.gz +0 -0
  64. package/dist-wix/availability.js +2 -2
  65. package/dist-wix/event.js +2 -2
  66. package/dist-wix/gift-card-validation.js +1 -1
  67. package/dist-wix/gift-card.js +11 -11
  68. package/dist-wix/hotel.js +2 -2
  69. package/package.json +1 -1
  70. package/dist/ActionField-D1UVyt3P.js.br +0 -0
  71. package/dist/ActionField-D1UVyt3P.js.gz +0 -0
  72. package/dist/AvailabilitySkeleton-CkZ3yXGl.js.br +0 -0
  73. package/dist/AvailabilitySkeleton-CkZ3yXGl.js.gz +0 -0
  74. package/dist/CheckoutWindow-roDCaJfD.js.br +0 -0
  75. package/dist/CheckoutWindow-roDCaJfD.js.gz +0 -0
  76. package/dist/ErrorMessage-BjPE4vap.js.br +0 -0
  77. package/dist/ErrorMessage-BjPE4vap.js.gz +0 -0
  78. package/dist/EventAvailabilityForm-BuYaRNzQ.js.br +0 -0
  79. package/dist/EventAvailabilityForm-BuYaRNzQ.js.gz +0 -0
  80. package/dist/Field-B1vjvlxb.js.br +0 -0
  81. package/dist/Field-B1vjvlxb.js.gz +0 -0
  82. package/dist/HotelAvailabilityForm-9fTMo0JS.js.br +0 -0
  83. package/dist/HotelAvailabilityForm-9fTMo0JS.js.gz +0 -0
  84. package/dist/SelectField-BUMVCl9X.js.br +0 -0
  85. package/dist/TermsOfService-B8UYMSX-.js.br +0 -0
  86. package/dist/TermsOfService-B8UYMSX-.js.gz +0 -0
  87. package/dist/_-BmsIYzkS.js.br +0 -0
  88. package/dist/_-BmsIYzkS.js.gz +0 -0
  89. package/dist/dist-DWRyg7R_.js.br +0 -0
  90. package/dist/dist-DWRyg7R_.js.gz +0 -0
  91. package/dist/dist-X-WT7tyd.js.gz +0 -0
  92. package/dist/giftCard-C0ORtpZS.js +0 -101
  93. package/dist/giftCard-C0ORtpZS.js.br +0 -0
  94. package/dist/giftCard-C0ORtpZS.js.gz +0 -0
  95. package/dist/style-DRDBWvVm.js.br +0 -0
  96. package/dist/style-DRDBWvVm.js.gz +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.7.8",
3
+ "version": "4.7.9",
4
4
  "author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
5
5
  "homepage": "https://konnectio.com",
6
6
  "repository": {
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
@@ -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-BUMVCl9X.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