@konnectio/core 4.0.56-rc55 → 4.0.56-rc56

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 (71) hide show
  1. package/dist/{ActionField-BAL1bpnL.js → ActionField-D2cIxYLO.js} +12 -12
  2. package/dist/ActionField-D2cIxYLO.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-BX61UaDK.js → AvailabilitySkeleton-fSj-D3gr.js} +50 -49
  4. package/dist/AvailabilitySkeleton-fSj-D3gr.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DmlVYsD2.js +8174 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DmlVYsD2.js.br +0 -0
  7. package/dist/{CheckoutWindow-DufEgcza.js → CheckoutWindow-DDFex8_M.js} +242 -233
  8. package/dist/CheckoutWindow-DDFex8_M.js.br +0 -0
  9. package/dist/{ErrorMessage-CbGOS1Nq.js → ErrorMessage-BxEkmAcA.js} +4 -4
  10. package/dist/ErrorMessage-BxEkmAcA.js.br +0 -0
  11. package/dist/EventAvailabilityForm-Bh21jXV0.js +120 -0
  12. package/dist/EventAvailabilityForm-Bh21jXV0.js.br +0 -0
  13. package/dist/{Field-flvSuRTL.js → Field-C1-c1E69.js} +9 -9
  14. package/dist/Field-C1-c1E69.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-1m-WZuNW.js +18603 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-1m-WZuNW.js.br +0 -0
  17. package/dist/TermsOfService-Cf3uVbvE.js +36 -0
  18. package/dist/TermsOfService-Cf3uVbvE.js.br +0 -0
  19. package/dist/{_-Wr8LhfrM.js → _-DpyfRShv.js} +3 -3
  20. package/dist/_.vue_vue_type_style_index_0_lang-DoCplqzK.js +69 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-DoCplqzK.js.br +0 -0
  22. package/dist/_commonjsHelpers-7Ka-lrVJ.js +17 -0
  23. package/dist/_sentry-release-injection-file-BwRPXfCP.js +11186 -0
  24. package/dist/_sentry-release-injection-file-BwRPXfCP.js.br +0 -0
  25. package/dist/availability.js +24 -24
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +56 -4
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +316 -300
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +32 -33
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +87 -88
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-D4D0qX4c.js +134 -0
  36. package/dist/giftCard-D4D0qX4c.js.br +0 -0
  37. package/dist/hotel.js +211 -211
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-BMRfOcVe.js → masonry.plugin-BJrxifpp.js} +3352 -3334
  40. package/dist/masonry.plugin-BJrxifpp.js.br +0 -0
  41. package/dist/mitt-CKlYOuwf.js +4290 -0
  42. package/dist/mitt-CKlYOuwf.js.br +0 -0
  43. package/dist/polyfill.js +4523 -4515
  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-wxeFiHIa.js → tracing-NLDFmjvp.js} +3 -3
  48. package/dist/tracing-NLDFmjvp.js.br +0 -0
  49. package/package.json +8 -8
  50. package/dist/ActionField-BAL1bpnL.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-BX61UaDK.js.br +0 -0
  52. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CBLGelHH.js +0 -7814
  53. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CBLGelHH.js.br +0 -0
  54. package/dist/CheckoutWindow-DufEgcza.js.br +0 -0
  55. package/dist/ErrorMessage-CbGOS1Nq.js.br +0 -0
  56. package/dist/EventAvailabilityForm-CO2Vt9WR.js +0 -452
  57. package/dist/EventAvailabilityForm-CO2Vt9WR.js.br +0 -0
  58. package/dist/Field-flvSuRTL.js.br +0 -0
  59. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BtVEfiNz.js +0 -21414
  60. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BtVEfiNz.js.br +0 -0
  61. package/dist/TermsOfService-ZtJSXzfs.js +0 -35
  62. package/dist/TermsOfService-ZtJSXzfs.js.br +0 -0
  63. package/dist/_.vue_vue_type_style_index_0_lang-1ZRqGUnk.js +0 -68
  64. package/dist/_.vue_vue_type_style_index_0_lang-1ZRqGUnk.js.br +0 -0
  65. package/dist/_commonjsHelpers-04Qj4xBt.js +0 -9530
  66. package/dist/_commonjsHelpers-04Qj4xBt.js.br +0 -0
  67. package/dist/giftCard-DHP_enh5.js +0 -127
  68. package/dist/giftCard-DHP_enh5.js.br +0 -0
  69. package/dist/masonry.plugin-BMRfOcVe.js.br +0 -0
  70. package/dist/sentry-BSHzssDu.js +0 -18
  71. package/dist/tracing-wxeFiHIa.js.br +0 -0
@@ -1,127 +0,0 @@
1
- import { d as K, u as H, a as J, s as Q, b as E, G as s, c as b, i as w, S as k, e as M, g as O, f as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BtVEfiNz.js";
2
- import { r as t, c as a } from "./_commonjsHelpers-04Qj4xBt.js";
3
- import "./deep-link.js";
4
- (function() {
5
- try {
6
- var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, c = new Error().stack;
7
- c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "9ff8265f-f206-448f-823e-5c2c4c5d611c", i._sentryDebugIdIdentifier = "sentry-dbid-9ff8265f-f206-448f-823e-5c2c4c5d611c");
8
- } catch {
9
- }
10
- })();
11
- const ae = K("giftCard", () => {
12
- const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: x, hasError: I } = Q(E()), T = E(), o = t(s.InitialState), f = b("konnectio_name", "", void 0, { serializer: k.string }), p = b("konnectio_email", "", void 0, { serializer: k.string }), g = b("konnectio_phone", "", void 0, { serializer: k.string }), m = t(""), F = t(1), C = t(!0), D = t(""), u = t({
13
- base64: "",
14
- type: "",
15
- name: ""
16
- }), R = t(void 0), y = t(0), d = t(!1), h = t(0), _ = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}), G = a(() => _.value.termsOfService ? _.value.termsOfService : ""), U = a(() => o.value === s.InitialState || o.value === s.WaitingForResponse), W = a(() => o.value === s.ReadyToPay), j = a(() => o.value === s.PaymentSuccess), S = a(() => {
17
- const e = {
18
- 1: {
19
- label: w.t("giftCard.hotelType"),
20
- data: []
21
- },
22
- 2: {
23
- label: w.t("giftCard.restaurantType"),
24
- data: []
25
- }
26
- }, l = P.value.hotels[0].places;
27
- return l && l.forEach((n) => {
28
- e[n.placeType].data.push(n);
29
- }), Object.fromEntries(
30
- Object.entries(e).filter(([, n]) => n.data.length > 0)
31
- );
32
- }), z = a(() => h.value !== 0), r = a(() => {
33
- let e;
34
- if (z.value)
35
- e = S.value[h.value].data[0];
36
- else if (y.value !== 0) {
37
- const l = R.value, n = S.value[y.value].data;
38
- n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((A) => {
39
- String(A.id) === String(l) && (e = A);
40
- });
41
- }
42
- return e;
43
- }), L = a(() => !(!f.value || !p.value || !(g.value.length >= 5) || !m.value || r.value === void 0)), q = a(() => !(o.value === s.InitialState && d.value)), N = a(() => !!(o.value === s.WaitingForResponse && d.value));
44
- async function V() {
45
- try {
46
- const e = (await M.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
47
- params: {
48
- language: O()
49
- },
50
- headers: {
51
- Authorization: v.value,
52
- Accept: "application/json",
53
- "Konnectio-Ver": "4.0.56-rc55"
54
- }
55
- })).data;
56
- e.success !== void 0 ? I.value = !e.success : I.value = !1, P.value = e;
57
- } catch {
58
- c({
59
- message: w.t("alert.error.couldntFetchMetadata"),
60
- type: "warning"
61
- });
62
- }
63
- }
64
- async function $() {
65
- o.value = s.WaitingForResponse, d.value = !0, await M.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
66
- termsOfserviceURL: window.location.origin,
67
- checkoutUrl: window.location.origin,
68
- currencyID: x.value,
69
- language: O(),
70
- amount: m.value,
71
- quantity: F.value,
72
- freeText: D.value,
73
- showPrice: C.value,
74
- contactName: f.value,
75
- contactEmail: p.value,
76
- contactPhone: g.value,
77
- imageBase64: X(u.value.base64),
78
- imageName: u.value.name,
79
- imageFormat: u.value.type,
80
- placeType: r.value ? r.value.placeType : void 0,
81
- placeID: r.value ? r.value.id : void 0
82
- }, {
83
- headers: {
84
- Authorization: v.value,
85
- Accept: "application/json"
86
- }
87
- }).then((e) => {
88
- o.value = s.ReadyToPay, d.value = !1, i({
89
- callback: () => console.log("Callback!"),
90
- response: e.data
91
- });
92
- });
93
- }
94
- function B(e) {
95
- e && (h.value = e);
96
- }
97
- return {
98
- selectedPlace: r,
99
- moduleState: o,
100
- name: f,
101
- email: p,
102
- phone: g,
103
- value: m,
104
- remark: D,
105
- showValue: C,
106
- quantity: F,
107
- media: u,
108
- placeId: R,
109
- placeType: y,
110
- showFormPage: U,
111
- showPaymentPage: W,
112
- showConfirmationPage: j,
113
- places: S,
114
- hasFilledForm: L,
115
- hasForcedPlaceType: z,
116
- isWaitingForResponse: N,
117
- isMetadataAvailable: q,
118
- termsOfService: G,
119
- fetchMetadata: V,
120
- orderGiftCard: $,
121
- initialize: B
122
- };
123
- });
124
- export {
125
- ae as u
126
- };
127
- //# sourceMappingURL=giftCard-DHP_enh5.js.map
Binary file
Binary file
@@ -1,18 +0,0 @@
1
- import "./deep-link.js";
2
- import { c as r, a as t } from "./tracing-wxeFiHIa.js";
3
- (function() {
4
- try {
5
- var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
6
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fe9095c0-f417-44c2-aa5c-55a7da481be8", e._sentryDebugIdIdentifier = "sentry-dbid-fe9095c0-f417-44c2-aa5c-55a7da481be8");
7
- } catch {
8
- }
9
- })();
10
- function i(e) {
11
- e.mixin(r({
12
- trackComponents: !0
13
- })), t(e);
14
- }
15
- export {
16
- i as c
17
- };
18
- //# sourceMappingURL=sentry-BSHzssDu.js.map
Binary file