@konnectio/core 4.0.56-rc9 → 4.0.57

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 (69) hide show
  1. package/dist/{ActionField-DQVEiApH.js → ActionField-BsgBhqwb.js} +43 -34
  2. package/dist/ActionField-BsgBhqwb.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BCiyhi6I.js +294 -0
  4. package/dist/AvailabilitySkeleton-BCiyhi6I.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js +8658 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js.br +0 -0
  7. package/dist/CheckoutWindow-COyV5n05.js +677 -0
  8. package/dist/CheckoutWindow-COyV5n05.js.br +0 -0
  9. package/dist/ErrorMessage-Bqmjetwk.js +45 -0
  10. package/dist/ErrorMessage-Bqmjetwk.js.br +0 -0
  11. package/dist/EventAvailabilityForm-CnfdAPBG.js +117 -0
  12. package/dist/EventAvailabilityForm-CnfdAPBG.js.br +0 -0
  13. package/dist/Field-8j4srvwh.js +50 -0
  14. package/dist/Field-8j4srvwh.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js +18837 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js.br +0 -0
  17. package/dist/TermsOfService-DzB0damA.js +36 -0
  18. package/dist/TermsOfService-DzB0damA.js.br +0 -0
  19. package/dist/_-BtSFcDLj.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-zf2i08XL.js +69 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-zf2i08XL.js.br +0 -0
  22. package/dist/_commonjsHelpers-DzP9V0uJ.js +17 -0
  23. package/dist/_sentry-release-injection-file-fvkcFI33.js +9524 -0
  24. package/dist/_sentry-release-injection-file-fvkcFI33.js.br +0 -0
  25. package/dist/availability.js +89 -167
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +62 -0
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +787 -500
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +114 -67
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +356 -387
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-DbcQz3eJ.js +134 -0
  36. package/dist/giftCard-DbcQz3eJ.js.br +0 -0
  37. package/dist/hotel.js +2215 -11
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/masonry.plugin-BX1LxkhS.js +12777 -0
  40. package/dist/masonry.plugin-BX1LxkhS.js.br +0 -0
  41. package/dist/mitt-l8QPdH4v.js +2953 -0
  42. package/dist/mitt-l8QPdH4v.js.br +0 -0
  43. package/dist/polyfill.js +13671 -4711
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/dist/tracing-z3gaNes7.js +2537 -0
  48. package/dist/tracing-z3gaNes7.js.br +0 -0
  49. package/package.json +41 -37
  50. package/dist/ActionField-DQVEiApH.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-AtpMBpH9.js +0 -214
  52. package/dist/AvailabilitySkeleton-AtpMBpH9.js.br +0 -0
  53. package/dist/CheckoutWindow-qWcuhbC0.js +0 -205
  54. package/dist/CheckoutWindow-qWcuhbC0.js.br +0 -0
  55. package/dist/DateField.vue_vue_type_style_index_0_lang-yJsHdlhS.js +0 -8558
  56. package/dist/DateField.vue_vue_type_style_index_0_lang-yJsHdlhS.js.br +0 -0
  57. package/dist/Field-LwXPzaNj.js +0 -42
  58. package/dist/Field-LwXPzaNj.js.br +0 -0
  59. package/dist/SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js +0 -30460
  60. package/dist/SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js.br +0 -0
  61. package/dist/ThankYou-GZubLuct.js +0 -13233
  62. package/dist/ThankYou-GZubLuct.js.br +0 -0
  63. package/dist/_-STnzfLhe.js +0 -19
  64. package/dist/_commonjsHelpers-2ufMB8rV.js +0 -30
  65. package/dist/event-lcXN-Fd1.js +0 -328
  66. package/dist/event-lcXN-Fd1.js.br +0 -0
  67. package/dist/hotel-NNMyLNPa.js +0 -3108
  68. package/dist/hotel-NNMyLNPa.js.br +0 -0
  69. package/dist/navigation.js +0 -1
Binary file
@@ -0,0 +1,134 @@
1
+ import { r as t, c as a } from "./_sentry-release-injection-file-fvkcFI33.js";
2
+ import { c as H, a as K } from "./tracing-z3gaNes7.js";
3
+ import { r as J, a as Q, d as E, G as s, t as b, S as w, v as M, o as A, w as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js";
4
+ import { d as Y, s as Z, a as k } from "./mitt-l8QPdH4v.js";
5
+ (function() {
6
+ try {
7
+ var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
8
+ l && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[l] = "61495f71-bca9-4874-84f4-6f7784c0a863", o._sentryDebugIdIdentifier = "sentry-dbid-61495f71-bca9-4874-84f4-6f7784c0a863");
9
+ } catch {
10
+ }
11
+ })();
12
+ function ne(o) {
13
+ o.mixin(H({
14
+ trackComponents: !0
15
+ })), K(o);
16
+ }
17
+ const se = Y("giftCard", () => {
18
+ const { pay: o } = J(), { display: l } = Q(), { bearerToken: v, metaData: P, currencyId: O, hasError: T } = Z(E()), I = E(), n = t(s.InitialState), f = b("konnectio_name", "", void 0, { serializer: w.string }), p = b("konnectio_email", "", void 0, { serializer: w.string }), g = b("konnectio_phone", "", void 0, { serializer: w.string }), m = t(""), C = t(1), F = t(!0), D = t(""), u = t({
19
+ base64: "",
20
+ type: "",
21
+ name: ""
22
+ }), R = t(void 0), y = t(0), d = t(!1), h = t(0), _ = a(() => I.hasMetadata ? I.metaData.hotels[0] : {}), G = a(() => _.value.termsOfService ? _.value.termsOfService : ""), U = a(() => n.value === s.InitialState || n.value === s.WaitingForResponse), W = a(() => n.value === s.ReadyToPay), j = a(() => n.value === s.PaymentSuccess), S = a(() => {
23
+ const e = {
24
+ 1: {
25
+ label: k.t("giftCard.hotelType"),
26
+ data: []
27
+ },
28
+ 2: {
29
+ label: k.t("giftCard.restaurantType"),
30
+ data: []
31
+ }
32
+ }, c = P.value.hotels[0].places;
33
+ return c && c.forEach((r) => {
34
+ e[r.placeType].data.push(r);
35
+ }), Object.fromEntries(
36
+ Object.entries(e).filter(([, r]) => r.data.length > 0)
37
+ );
38
+ }), x = a(() => h.value !== 0), i = a(() => {
39
+ let e;
40
+ if (x.value)
41
+ e = S.value[h.value].data[0];
42
+ else if (y.value !== 0) {
43
+ const c = R.value, r = S.value[y.value].data;
44
+ r.length === 1 ? e = r[0] : c !== void 0 && r.forEach((z) => {
45
+ String(z.id) === String(c) && (e = z);
46
+ });
47
+ }
48
+ return e;
49
+ }), L = a(() => !(!f.value || !p.value || !(g.value.length >= 5) || !m.value || i.value === void 0)), q = a(() => !(n.value === s.InitialState && d.value)), N = a(() => !!(n.value === s.WaitingForResponse && d.value));
50
+ async function V() {
51
+ try {
52
+ const e = (await M.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
53
+ params: {
54
+ language: A()
55
+ },
56
+ headers: {
57
+ Authorization: v.value,
58
+ Accept: "application/json",
59
+ "Konnectio-Ver": "4.0.57"
60
+ }
61
+ })).data;
62
+ e.success !== void 0 ? T.value = !e.success : T.value = !1, P.value = e;
63
+ } catch {
64
+ l({
65
+ message: k.t("alert.error.couldntFetchMetadata"),
66
+ type: "warning"
67
+ });
68
+ }
69
+ }
70
+ async function $() {
71
+ n.value = s.WaitingForResponse, d.value = !0, await M.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
72
+ termsOfserviceURL: window.location.origin,
73
+ checkoutUrl: window.location.origin,
74
+ currencyID: O.value,
75
+ language: A(),
76
+ amount: m.value,
77
+ quantity: C.value,
78
+ freeText: D.value,
79
+ showPrice: F.value,
80
+ contactName: f.value,
81
+ contactEmail: p.value,
82
+ contactPhone: g.value,
83
+ imageBase64: X(u.value.base64),
84
+ imageName: u.value.name,
85
+ imageFormat: u.value.type,
86
+ placeType: i.value ? i.value.placeType : void 0,
87
+ placeID: i.value ? i.value.id : void 0
88
+ }, {
89
+ headers: {
90
+ Authorization: v.value,
91
+ Accept: "application/json"
92
+ }
93
+ }).then((e) => {
94
+ n.value = s.ReadyToPay, d.value = !1, o({
95
+ callback: () => console.log("Callback!"),
96
+ response: e.data
97
+ });
98
+ });
99
+ }
100
+ function B(e) {
101
+ e && (h.value = e);
102
+ }
103
+ return {
104
+ selectedPlace: i,
105
+ moduleState: n,
106
+ name: f,
107
+ email: p,
108
+ phone: g,
109
+ value: m,
110
+ remark: D,
111
+ showValue: F,
112
+ quantity: C,
113
+ media: u,
114
+ placeId: R,
115
+ placeType: y,
116
+ showFormPage: U,
117
+ showPaymentPage: W,
118
+ showConfirmationPage: j,
119
+ places: S,
120
+ hasFilledForm: L,
121
+ hasForcedPlaceType: x,
122
+ isWaitingForResponse: N,
123
+ isMetadataAvailable: q,
124
+ termsOfService: G,
125
+ fetchMetadata: V,
126
+ orderGiftCard: $,
127
+ initialize: B
128
+ };
129
+ });
130
+ export {
131
+ ne as c,
132
+ se as u
133
+ };
134
+ //# sourceMappingURL=giftCard-DbcQz3eJ.js.map
Binary file