@konnectio/core 4.0.56-rc8 → 4.0.56

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 (70) hide show
  1. package/dist/{ActionField-na8McB-H.js → ActionField-j1i8YL6H.js} +43 -34
  2. package/dist/ActionField-j1i8YL6H.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-78ug9z_g.js +294 -0
  4. package/dist/AvailabilitySkeleton-78ug9z_g.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B72HmqV2.js +8652 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B72HmqV2.js.br +0 -0
  7. package/dist/CheckoutWindow-DYdrHbQ-.js +677 -0
  8. package/dist/CheckoutWindow-DYdrHbQ-.js.br +0 -0
  9. package/dist/ErrorMessage-DJ_hHpkR.js +45 -0
  10. package/dist/ErrorMessage-DJ_hHpkR.js.br +0 -0
  11. package/dist/EventAvailabilityForm-B4Y8N8P1.js +117 -0
  12. package/dist/EventAvailabilityForm-B4Y8N8P1.js.br +0 -0
  13. package/dist/Field-CHlcB-1U.js +50 -0
  14. package/dist/Field-CHlcB-1U.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CXrsASkr.js +18825 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CXrsASkr.js.br +0 -0
  17. package/dist/TermsOfService-BTaz4T1c.js +36 -0
  18. package/dist/TermsOfService-BTaz4T1c.js.br +0 -0
  19. package/dist/_-Bv_QUFw4.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BHKGq8g4.js +69 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-BHKGq8g4.js.br +0 -0
  22. package/dist/_commonjsHelpers-4HJ9V5A_.js +17 -0
  23. package/dist/_sentry-release-injection-file-B7Jqb6lo.js +9598 -0
  24. package/dist/_sentry-release-injection-file-B7Jqb6lo.js.br +0 -0
  25. package/dist/availability.js +89 -170
  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 +780 -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 -390
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-D5RQomNw.js +134 -0
  36. package/dist/giftCard-D5RQomNw.js.br +0 -0
  37. package/dist/hotel.js +2215 -11
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/masonry.plugin-DKJPmkN0.js +12766 -0
  40. package/dist/masonry.plugin-DKJPmkN0.js.br +0 -0
  41. package/dist/mitt-mvNuFbhJ.js +2952 -0
  42. package/dist/mitt-mvNuFbhJ.js.br +0 -0
  43. package/dist/polyfill.js +13670 -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-CMlyHB3J.js +2537 -0
  48. package/dist/tracing-CMlyHB3J.js.br +0 -0
  49. package/package.json +47 -38
  50. package/dist/ActionField-na8McB-H.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-1_yLVsq6.js +0 -214
  52. package/dist/AvailabilitySkeleton-1_yLVsq6.js.br +0 -0
  53. package/dist/CheckoutWindow-r6ch1iOr.js +0 -205
  54. package/dist/CheckoutWindow-r6ch1iOr.js.br +0 -0
  55. package/dist/DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js +0 -8558
  56. package/dist/DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js.br +0 -0
  57. package/dist/Field-S_yxW5IQ.js +0 -42
  58. package/dist/Field-S_yxW5IQ.js.br +0 -0
  59. package/dist/SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js +0 -30460
  60. package/dist/SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js.br +0 -0
  61. package/dist/ThankYou-ekf_1AWY.js +0 -13233
  62. package/dist/ThankYou-ekf_1AWY.js.br +0 -0
  63. package/dist/_-vErl-x3v.js +0 -19
  64. package/dist/_commonjsHelpers-2ufMB8rV.js +0 -30
  65. package/dist/event-iDLUEMAV.js +0 -328
  66. package/dist/event-iDLUEMAV.js.br +0 -0
  67. package/dist/favicon.ico +0 -0
  68. package/dist/hotel-4O89o7V2.js +0 -3111
  69. package/dist/hotel-4O89o7V2.js.br +0 -0
  70. 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-B7Jqb6lo.js";
2
+ import { c as H, a as K } from "./tracing-CMlyHB3J.js";
3
+ import { r as J, a as Q, d as E, G as s, t as S, S as w, v as M, o as A, w as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CXrsASkr.js";
4
+ import { d as Y, s as Z, a as k } from "./mitt-mvNuFbhJ.js";
5
+ (function() {
6
+ try {
7
+ var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, c = new Error().stack;
8
+ c && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[c] = "2ad3c116-d0eb-4a6e-8278-5b768b44b51a", o._sentryDebugIdIdentifier = "sentry-dbid-2ad3c116-d0eb-4a6e-8278-5b768b44b51a");
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: c } = Q(), { bearerToken: v, metaData: P, currencyId: O, hasError: T } = Z(E()), I = E(), n = t(s.InitialState), f = S("konnectio_name", "", void 0, { serializer: w.string }), p = S("konnectio_email", "", void 0, { serializer: w.string }), g = S("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), b = 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
+ }, l = P.value.hotels[0].places;
33
+ return l && l.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 = b.value[h.value].data[0];
42
+ else if (y.value !== 0) {
43
+ const l = R.value, r = b.value[y.value].data;
44
+ r.length === 1 ? e = r[0] : l !== void 0 && r.forEach((z) => {
45
+ String(z.id) === String(l) && (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.56"
60
+ }
61
+ })).data;
62
+ e.success !== void 0 ? T.value = !e.success : T.value = !1, P.value = e;
63
+ } catch {
64
+ c({
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: b,
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-D5RQomNw.js.map
Binary file