@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.
Files changed (101) hide show
  1. package/dist/{ActionField-BLUufdat.js → ActionField-DUL0XvJT.js} +6 -6
  2. package/dist/ActionField-DUL0XvJT.js.br +0 -0
  3. package/dist/ActionField-DUL0XvJT.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-DlcBMiZx.js → AvailabilitySkeleton-DEr2RxbZ.js} +113 -113
  5. package/dist/AvailabilitySkeleton-DEr2RxbZ.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-DEr2RxbZ.js.gz +0 -0
  7. package/dist/{CheckoutWindow-BcRZIzMT.js → CheckoutWindow-BNE0eaqa.js} +96 -89
  8. package/dist/CheckoutWindow-BNE0eaqa.js.br +0 -0
  9. package/dist/CheckoutWindow-BNE0eaqa.js.gz +0 -0
  10. package/dist/{ErrorMessage-C8zkJCJE.js → ErrorMessage-c1Xb-slW.js} +7 -7
  11. package/dist/ErrorMessage-c1Xb-slW.js.br +0 -0
  12. package/dist/ErrorMessage-c1Xb-slW.js.gz +0 -0
  13. package/dist/{EventAvailabilityForm-B4sFsGhI.js → EventAvailabilityForm-7jg44O4p.js} +16 -16
  14. package/dist/EventAvailabilityForm-7jg44O4p.js.br +0 -0
  15. package/dist/EventAvailabilityForm-7jg44O4p.js.gz +0 -0
  16. package/dist/{Field-De-fvk85.js → Field-BpOBWcqm.js} +1 -1
  17. package/dist/Field-BpOBWcqm.js.br +0 -0
  18. package/dist/Field-BpOBWcqm.js.gz +0 -0
  19. package/dist/{HotelAvailabilityForm-C8uTiy9J.js → HotelAvailabilityForm-D-BlPPkO.js} +6 -6
  20. package/dist/HotelAvailabilityForm-D-BlPPkO.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-D-BlPPkO.js.gz +0 -0
  22. package/dist/{SelectField-CDAxug6h.js → SelectField-BgawaMC_.js} +1889 -1870
  23. package/dist/SelectField-BgawaMC_.js.br +0 -0
  24. package/dist/SelectField-BgawaMC_.js.gz +0 -0
  25. package/dist/{TermsOfService-Dt5Q1SCK.js → TermsOfService-ByMc3JXX.js} +6 -6
  26. package/dist/TermsOfService-ByMc3JXX.js.br +0 -0
  27. package/dist/TermsOfService-ByMc3JXX.js.gz +2 -0
  28. package/dist/{_-Be3oAOAc.js → _-BftIyTSa.js} +1 -1
  29. package/dist/_-BftIyTSa.js.br +0 -0
  30. package/dist/_-BftIyTSa.js.gz +0 -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-BPlclb9p.js → dist-BRdmfOkq.js} +2 -2
  41. package/dist/dist-BRdmfOkq.js.br +0 -0
  42. package/dist/dist-BRdmfOkq.js.gz +0 -0
  43. package/dist/{dist-C_IilFmu.js → dist-DOhI4S1k.js} +25 -26
  44. package/dist/dist-DOhI4S1k.js.br +0 -0
  45. package/dist/dist-DOhI4S1k.js.gz +0 -0
  46. package/dist/event.js +176 -176
  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 +11 -11
  53. package/dist/gift-card.js.br +0 -0
  54. package/dist/gift-card.js.gz +0 -0
  55. package/dist/giftCard-D7hskPCe.js +104 -0
  56. package/dist/giftCard-D7hskPCe.js.br +0 -0
  57. package/dist/giftCard-D7hskPCe.js.gz +0 -0
  58. package/dist/hotel.js +1047 -1049
  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-CHNgkDj2.js} +1 -1
  65. package/dist/style-CHNgkDj2.js.br +0 -0
  66. package/dist/style-CHNgkDj2.js.gz +0 -0
  67. package/dist-wix/availability.js +19 -19
  68. package/dist-wix/event.js +6 -6
  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 +6 -6
  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/dist/event.js.br CHANGED
Binary file
package/dist/event.js.gz CHANGED
Binary file
@@ -1,11 +1,11 @@
1
1
  import { D as e, E as t, J as n, N as r, O as i, T as a, Tt as o, a as s, ht as c, j as l, kt as u, l as d, n as f, o as p, s as m, ut as h, v as g, w as _, x as v } from "./i18n-DwFTw_rF.js";
2
- import { E as y, J as b, P as x, S, Z as C, b as w, x as T } from "./SelectField-CDAxug6h.js";
3
- import { t as E } from "./_-Be3oAOAc.js";
4
- import { t as D } from "./ErrorMessage-C8zkJCJE.js";
5
- import { n as O, t as k } from "./Field-De-fvk85.js";
6
- import { t as A } from "./style-D9WMflRR.js";
7
- import { t as j } from "./ActionField-BLUufdat.js";
8
- import { t as M } from "./giftCard-CxI94mQ4.js";
2
+ import { E as y, K as b, M as x, S, Y as C, b as w, x as T } from "./SelectField-BgawaMC_.js";
3
+ import { t as E } from "./_-BftIyTSa.js";
4
+ import { t as D } from "./ErrorMessage-c1Xb-slW.js";
5
+ import { n as O, t as k } from "./Field-BpOBWcqm.js";
6
+ import { t as A } from "./style-CHNgkDj2.js";
7
+ import { t as j } from "./ActionField-DUL0XvJT.js";
8
+ import { t as M } from "./giftCard-D7hskPCe.js";
9
9
  //#region src/components/skeletons/GiftCardValidationSkeleton.vue?vue&type=script&setup=true&lang.ts
10
10
  var N = { class: "gift-card-validation-skeleton" }, P = { class: "gift-card-validation-skeleton-form" }, F = { class: "gift-card-validation-skeleton-text" }, I = { class: "gift-card-validation-skeleton-input" }, L = /*#__PURE__*/ S(/* @__PURE__ */ r({
11
11
  __name: "GiftCardValidationSkeleton",
Binary file
Binary file
package/dist/gift-card.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { D as e, E as t, Et as n, J as r, K as i, N as a, O as o, Q as s, T as c, Tt as l, a as u, b as d, ct as f, dt as p, g as m, ht as h, i as g, j as _, kt as v, l as y, n as b, o as x, s as S, ut as C, v as w, w as T, x as ee, yt as E } from "./i18n-DwFTw_rF.js";
2
- import { t as D } from "./dist-BPlclb9p.js";
3
- import { E as te, F as O, S as k, _ as ne, b as re, n as A, r as j, t as M, v as N, y as P } from "./SelectField-CDAxug6h.js";
4
- import { t as F } from "./_-Be3oAOAc.js";
5
- import { t as I } from "./ErrorMessage-C8zkJCJE.js";
6
- import { n as L, t as R } from "./Field-De-fvk85.js";
7
- import { t as z } from "./style-D9WMflRR.js";
8
- import { i as ie, n as ae, r as oe, t as se } from "./CheckoutWindow-BcRZIzMT.js";
9
- import { t as B } from "./giftCard-CxI94mQ4.js";
10
- import { t as V } from "./TermsOfService-Dt5Q1SCK.js";
2
+ import { t as D } from "./dist-BRdmfOkq.js";
3
+ import { E as te, N as O, S as k, _ as ne, b as re, n as A, r as j, t as M, v as N, y as P } from "./SelectField-BgawaMC_.js";
4
+ import { t as F } from "./_-BftIyTSa.js";
5
+ import { t as I } from "./ErrorMessage-c1Xb-slW.js";
6
+ import { n as L, t as R } from "./Field-BpOBWcqm.js";
7
+ import { t as z } from "./style-CHNgkDj2.js";
8
+ import { a as ie, i as ae, r as oe, t as se } from "./CheckoutWindow-BNE0eaqa.js";
9
+ import { t as B } from "./giftCard-D7hskPCe.js";
10
+ import { t as V } from "./TermsOfService-ByMc3JXX.js";
11
11
  //#region src/components/inputs/MediaSelector.vue?vue&type=script&setup=true&lang.ts
12
12
  var H = { class: "media-selector" }, U = ["accept"], W = { class: "media-selector-wrapper" }, G = { class: "media-selector-tools" }, K = { key: 0 }, q = { key: 1 }, J = { key: 2 }, Y = ["src"], X = /*@__PURE__*/ a({
13
13
  __name: "MediaSelector",
@@ -284,7 +284,7 @@ var Q = { class: "gift-card-skeleton" }, ce = { class: "gift-card-skeleton-form"
284
284
  id: "konnectio-gift-card-description",
285
285
  innerHTML: l(b)("giftCard.description")
286
286
  }, null, 8, ve), c("form", null, [
287
- l(G) ? e("", !0) : (r(), o("div", ye, [l(U) ? (r(), o("div", be, [c("label", $, [c("span", null, v(l(b)("giftCard.selectType")), 1)]), c("div", xe, [c("ul", null, [(r(!0), o(d, null, s(l(U), (e, t) => (r(), o("li", { key: t }, [_(oe, {
287
+ l(G) ? e("", !0) : (r(), o("div", ye, [l(U) ? (r(), o("div", be, [c("label", $, [c("span", null, v(l(b)("giftCard.selectType")), 1)]), c("div", xe, [c("ul", null, [(r(!0), o(d, null, s(l(U), (e, t) => (r(), o("li", { key: t }, [_(ae, {
288
288
  modelValue: l(R),
289
289
  "onUpdate:modelValue": a[0] ||= (e) => h(R) ? R.value = e : null,
290
290
  type: "radio",
@@ -421,7 +421,7 @@ var Q = { class: "gift-card-skeleton" }, ce = { class: "gift-card-skeleton-form"
421
421
  "onClickEvent"
422
422
  ]),
423
423
  c("div", null, [a[12] ||= c("div", { class: "konnectio-divider" }, null, -1), _(fe)]),
424
- p(c("div", De, [_(ae)], 512), [[m, l(X)]])
424
+ p(c("div", De, [_(oe)], 512), [[m, l(X)]])
425
425
  ])) : e("", !0)
426
426
  ])], 8, pe))]),
427
427
  _: 1
Binary file
Binary file
@@ -0,0 +1,104 @@
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-BgawaMC_.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: (e) => {
66
+ e === 2 && (y.value = p.PaymentSuccess);
67
+ },
68
+ response: t.data,
69
+ enableHostedRedirect: !0
70
+ });
71
+ });
72
+ }
73
+ function G(e) {
74
+ e && (j.value = e);
75
+ }
76
+ return {
77
+ selectedPlace: z,
78
+ moduleState: y,
79
+ name: b,
80
+ email: x,
81
+ phone: S,
82
+ value: C,
83
+ remark: E,
84
+ showValue: T,
85
+ quantity: w,
86
+ media: D,
87
+ placeId: O,
88
+ placeType: k,
89
+ showFormPage: P,
90
+ showPaymentPage: F,
91
+ showConfirmationPage: I,
92
+ places: L,
93
+ hasFilledForm: B,
94
+ hasForcedPlaceType: R,
95
+ isWaitingForResponse: H,
96
+ isMetadataAvailable: V,
97
+ termsOfService: N,
98
+ fetchMetadata: U,
99
+ orderGiftCard: W,
100
+ initialize: G
101
+ };
102
+ });
103
+ //#endregion
104
+ export { m as t };
Binary file
Binary file