@konnectio/core 4.0.111 → 4.0.113

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 (54) hide show
  1. package/dist/{ActionField-BIZxHX7x.js → ActionField-DpnZ6Hk4.js} +2 -2
  2. package/dist/ActionField-DpnZ6Hk4.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-Dmc1NsxJ.js → AvailabilitySkeleton-B3PCn7Zh.js} +5 -5
  4. package/dist/AvailabilitySkeleton-B3PCn7Zh.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dyh0N7sN.js +9062 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dyh0N7sN.js.br +0 -0
  7. package/dist/{CheckoutWindow-BQ4Yd-jj.js → CheckoutWindow-CBZATVS3.js} +2 -2
  8. package/dist/CheckoutWindow-CBZATVS3.js.br +0 -0
  9. package/dist/{ErrorMessage-DeAxlBUC.js → ErrorMessage-Cj4EWsnp.js} +2 -2
  10. package/dist/ErrorMessage-Cj4EWsnp.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-lFl1MFHk.js → EventAvailabilityForm-C6U8tDPb.js} +4 -4
  12. package/dist/EventAvailabilityForm-C6U8tDPb.js.br +0 -0
  13. package/dist/{Field-DAod_0r8.js → Field-Cf0vZgQw.js} +3 -3
  14. package/dist/Field-Cf0vZgQw.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-bMyefgIh.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DGiTZSqt.js} +2 -2
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-BwK4kGcO.js → SelectField.vue_vue_type_style_index_0_lang-D_cPiRYS.js} +4614 -4641
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-D_cPiRYS.js.br +0 -0
  18. package/dist/{TermsOfService-C-KmfA7-.js → TermsOfService-Bn5BDOpR.js} +3 -3
  19. package/dist/_-BdJkK4Nl.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-HN2ehFgL.js → _.vue_vue_type_style_index_0_lang-CZyXOF9b.js} +5 -5
  21. package/dist/availability.js +5 -5
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +3 -3
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/event.js +169 -163
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +7 -7
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +8 -8
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/giftCard-B4ksqI17.js +109 -0
  32. package/dist/giftCard-B4ksqI17.js.br +0 -0
  33. package/dist/hotel.js +614 -607
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-yGwNNx2b.js → masonry.plugin-DGcnQT2t.js} +71 -68
  36. package/dist/masonry.plugin-DGcnQT2t.js.br +0 -0
  37. package/dist/polyfill.js +1 -1
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/package.json +5 -5
  42. package/dist/ActionField-BIZxHX7x.js.br +0 -4
  43. package/dist/AvailabilitySkeleton-Dmc1NsxJ.js.br +0 -0
  44. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CfxEaidF.js +0 -9089
  45. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CfxEaidF.js.br +0 -0
  46. package/dist/CheckoutWindow-BQ4Yd-jj.js.br +0 -0
  47. package/dist/ErrorMessage-DeAxlBUC.js.br +0 -0
  48. package/dist/EventAvailabilityForm-lFl1MFHk.js.br +0 -0
  49. package/dist/Field-DAod_0r8.js.br +0 -0
  50. package/dist/SelectField.vue_vue_type_style_index_0_lang-BwK4kGcO.js.br +0 -0
  51. package/dist/_-BLWJQG6h.js +0 -5
  52. package/dist/giftCard-BJ5gZfYt.js +0 -118
  53. package/dist/giftCard-BJ5gZfYt.js.br +0 -0
  54. package/dist/masonry.plugin-yGwNNx2b.js.br +0 -0
Binary file
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- import { _ as f } from "./_.vue_vue_type_style_index_0_lang-HN2ehFgL.js";
2
- export {
3
- f as default
4
- };
5
- //# sourceMappingURL=_-BLWJQG6h.js.map
@@ -1,118 +0,0 @@
1
- import { v as V, a as H, g as A, G as s, w as h, S as y, x as M, q as O, y as K } from "./SelectField.vue_vue_type_style_index_0_lang-BwK4kGcO.js";
2
- import { I as Q, s as X, r as t, c as a, J as S } from "./mitt-CTfj-lXy.js";
3
- const ee = Q("giftCard", () => {
4
- const { pay: E } = V(), { display: G } = H(), { bearerToken: w, metaData: P, currencyId: D, hasError: T } = X(A()), b = A(), o = t(s.InitialState), u = h("konnectio_name", "", void 0, { serializer: y.string }), v = h("konnectio_email", "", void 0, { serializer: y.string }), d = h("konnectio_phone", "", void 0, { serializer: y.string }), p = t(""), k = t(1), F = t(!0), C = t(""), l = t({
5
- base64: "",
6
- type: "",
7
- name: ""
8
- }), I = t(void 0), f = t(0), c = t(!1), g = t(0), R = a(() => b.hasMetadata ? b.metaData.hotels[0] : {}), U = a(() => R.value.termsOfService ? R.value.termsOfService : ""), W = a(() => o.value === s.InitialState || o.value === s.WaitingForResponse), _ = a(() => o.value === s.ReadyToPay), j = a(() => o.value === s.PaymentSuccess), m = a(() => {
9
- const e = {
10
- 1: {
11
- label: S.t("giftCard.hotelType"),
12
- data: []
13
- },
14
- 2: {
15
- label: S.t("giftCard.restaurantType"),
16
- data: []
17
- }
18
- }, r = P.value.hotels[0].places;
19
- return r && r.forEach((n) => {
20
- e[n.placeType].data.push(n);
21
- }), Object.fromEntries(
22
- Object.entries(e).filter(([, n]) => n.data.length > 0)
23
- );
24
- }), z = a(() => g.value !== 0), i = a(() => {
25
- let e;
26
- if (z.value)
27
- e = m.value[g.value].data[0];
28
- else if (f.value !== 0) {
29
- const r = I.value, n = m.value[f.value].data;
30
- n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((x) => {
31
- String(x.id) === String(r) && (e = x);
32
- });
33
- }
34
- return e;
35
- }), q = a(() => !(!u.value || !v.value || !(d.value.length >= 5) || !p.value || i.value === void 0)), L = a(() => !(o.value === s.InitialState && c.value)), N = a(() => !!(o.value === s.WaitingForResponse && c.value));
36
- async function $() {
37
- try {
38
- const e = (await M.get("https://production.hotel-service.konnectio.com/api/gift-card/metadata", {
39
- params: {
40
- language: O()
41
- },
42
- headers: {
43
- Authorization: w.value,
44
- Accept: "application/json"
45
- }
46
- })).data;
47
- e.success !== void 0 ? T.value = !e.success : T.value = !1, P.value = e;
48
- } catch {
49
- G({
50
- message: S.t("alert.error.couldntFetchMetadata"),
51
- type: "warning"
52
- });
53
- }
54
- }
55
- async function B() {
56
- o.value = s.WaitingForResponse, c.value = !0, await M.post("https://production.hotel-service.konnectio.com/api/gift-card/create", {
57
- termsOfserviceURL: window.location.origin,
58
- checkoutUrl: window.location.origin,
59
- currencyID: D.value,
60
- language: O(),
61
- amount: p.value,
62
- quantity: k.value,
63
- freeText: C.value,
64
- showPrice: F.value,
65
- contactName: u.value,
66
- contactEmail: v.value,
67
- contactPhone: d.value,
68
- imageBase64: K(l.value.base64),
69
- imageName: l.value.name,
70
- imageFormat: l.value.type,
71
- placeType: i.value ? i.value.placeType : void 0,
72
- placeID: i.value ? i.value.id : void 0
73
- }, {
74
- headers: {
75
- Authorization: w.value,
76
- Accept: "application/json"
77
- }
78
- }).then((e) => {
79
- o.value = s.ReadyToPay, c.value = !1, E({
80
- callback: () => console.log("Callback!"),
81
- response: e.data
82
- });
83
- });
84
- }
85
- function J(e) {
86
- e && (g.value = e);
87
- }
88
- return {
89
- selectedPlace: i,
90
- moduleState: o,
91
- name: u,
92
- email: v,
93
- phone: d,
94
- value: p,
95
- remark: C,
96
- showValue: F,
97
- quantity: k,
98
- media: l,
99
- placeId: I,
100
- placeType: f,
101
- showFormPage: W,
102
- showPaymentPage: _,
103
- showConfirmationPage: j,
104
- places: m,
105
- hasFilledForm: q,
106
- hasForcedPlaceType: z,
107
- isWaitingForResponse: N,
108
- isMetadataAvailable: L,
109
- termsOfService: U,
110
- fetchMetadata: $,
111
- orderGiftCard: B,
112
- initialize: J
113
- };
114
- });
115
- export {
116
- ee as u
117
- };
118
- //# sourceMappingURL=giftCard-BJ5gZfYt.js.map
Binary file
Binary file