@konnectio/core 4.0.58 → 4.0.60

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-SljqGQe4.js → ActionField-CVdLZg_F.js} +3 -3
  2. package/dist/ActionField-CVdLZg_F.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-VxFPbzvu.js → AvailabilitySkeleton-D8hRAFp-.js} +22 -23
  4. package/dist/AvailabilitySkeleton-D8hRAFp-.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B3_PxvDx.js +8668 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B3_PxvDx.js.br +0 -0
  7. package/dist/{CheckoutWindow-BsR9w1sU.js → CheckoutWindow-DUl3c-Tr.js} +40 -40
  8. package/dist/CheckoutWindow-DUl3c-Tr.js.br +0 -0
  9. package/dist/{ErrorMessage-Bv8Sjw4c.js → ErrorMessage-Dt3tVome.js} +3 -3
  10. package/dist/ErrorMessage-Dt3tVome.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-Cjn9eC1i.js → EventAvailabilityForm-DqV-7Yhd.js} +5 -5
  12. package/dist/EventAvailabilityForm-DqV-7Yhd.js.br +0 -0
  13. package/dist/{Field-Dv-tx0DG.js → Field-Bir0Q2Cn.js} +3 -3
  14. package/dist/Field-Bir0Q2Cn.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BRY3Z3U3.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bz5ezFs1.js} +2313 -2421
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bz5ezFs1.js.br +0 -0
  17. package/dist/TermsOfService-Bi-4Y-Eu.js +36 -0
  18. package/dist/TermsOfService-Bi-4Y-Eu.js.br +0 -0
  19. package/dist/{_-3oY9YKKN.js → _-BaPwdDXA.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-Cm6NL02H.js → _.vue_vue_type_style_index_0_lang-9DUPh09R.js} +5 -5
  21. package/dist/_.vue_vue_type_style_index_0_lang-9DUPh09R.js.br +0 -0
  22. package/dist/{_commonjsHelpers-BljBhQM7.js → _commonjsHelpers-4acPj2Ir.js} +2 -2
  23. package/dist/{_sentry-release-injection-file-D0NAFAC9.js → _sentry-release-injection-file-CSY2pTJK.js} +4169 -4273
  24. package/dist/_sentry-release-injection-file-CSY2pTJK.js.br +0 -0
  25. package/dist/availability.js +7 -7
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +2 -2
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +211 -210
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +22 -21
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +60 -59
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-DrbtM1MV.js +126 -0
  36. package/dist/giftCard-DrbtM1MV.js.br +0 -0
  37. package/dist/hotel.js +26 -25
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/masonry.plugin-CoSanVEe.js +10375 -0
  40. package/dist/masonry.plugin-CoSanVEe.js.br +0 -0
  41. package/dist/{mitt-bU37KQKU.js → mitt-Ciy52c7q.js} +96 -96
  42. package/dist/mitt-Ciy52c7q.js.br +0 -0
  43. package/dist/polyfill.js +16983 -14766
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style-Bf1WJ5oD.js +2328 -0
  46. package/dist/style-Bf1WJ5oD.js.br +0 -0
  47. package/dist/style.css +1 -1
  48. package/dist/style.css.br +0 -0
  49. package/package.json +18 -18
  50. package/dist/ActionField-SljqGQe4.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-VxFPbzvu.js.br +0 -0
  52. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CrPwaYxX.js +0 -8652
  53. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CrPwaYxX.js.br +0 -0
  54. package/dist/CheckoutWindow-BsR9w1sU.js.br +0 -0
  55. package/dist/ErrorMessage-Bv8Sjw4c.js.br +0 -0
  56. package/dist/EventAvailabilityForm-Cjn9eC1i.js.br +0 -0
  57. package/dist/Field-Dv-tx0DG.js.br +0 -0
  58. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BRY3Z3U3.js.br +0 -0
  59. package/dist/TermsOfService-DudxcmqT.js +0 -36
  60. package/dist/TermsOfService-DudxcmqT.js.br +0 -0
  61. package/dist/_.vue_vue_type_style_index_0_lang-Cm6NL02H.js.br +0 -0
  62. package/dist/_sentry-release-injection-file-D0NAFAC9.js.br +0 -0
  63. package/dist/giftCard-vxErFkoV.js +0 -134
  64. package/dist/giftCard-vxErFkoV.js.br +0 -0
  65. package/dist/masonry.plugin-BKhDyXyM.js +0 -12766
  66. package/dist/masonry.plugin-BKhDyXyM.js.br +0 -0
  67. package/dist/mitt-bU37KQKU.js.br +0 -0
  68. package/dist/tracing-CMlyHB3J.js +0 -2537
  69. package/dist/tracing-CMlyHB3J.js.br +0 -0
Binary file
Binary file
Binary file
@@ -1,36 +0,0 @@
1
- import { d as r, a, b as i, w as d, e as s, u as o } from "./_sentry-release-injection-file-D0NAFAC9.js";
2
- import { e as c, _ as f } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BRY3Z3U3.js";
3
- import { B as p } from "./CheckoutWindow-BsR9w1sU.js";
4
- import { u as _ } from "./mitt-bU37KQKU.js";
5
- (function() {
6
- try {
7
- var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new Error().stack;
8
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "4283f911-271b-41e7-96d6-13a73f87a01a", e._sentryDebugIdIdentifier = "sentry-dbid-4283f911-271b-41e7-96d6-13a73f87a01a");
9
- } catch {
10
- }
11
- })();
12
- const l = { class: "konnectio-terms-side-panel" }, u = ["innerHTML"], m = /* @__PURE__ */ r({
13
- __name: "TermsOfService",
14
- props: {
15
- description: {}
16
- },
17
- setup(e) {
18
- const { t } = _();
19
- return (n, b) => (a(), i(p, {
20
- title: o(t)("general.termsAndConditions")
21
- }, {
22
- default: d(() => [
23
- s("div", l, [
24
- s("p", {
25
- innerHTML: o(c)(n.description)
26
- }, null, 8, u)
27
- ])
28
- ]),
29
- _: 1
30
- }, 8, ["title"]));
31
- }
32
- }), h = /* @__PURE__ */ f(m, [["__scopeId", "data-v-82aaf990"]]);
33
- export {
34
- h as S
35
- };
36
- //# sourceMappingURL=TermsOfService-DudxcmqT.js.map
Binary file
@@ -1,134 +0,0 @@
1
- import { r as t, c as a } from "./_sentry-release-injection-file-D0NAFAC9.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-BRY3Z3U3.js";
4
- import { d as Y, s as Z, a as k } from "./mitt-bU37KQKU.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] = "9cdbdc3b-111f-4201-bdac-fe2397304d89", o._sentryDebugIdIdentifier = "sentry-dbid-9cdbdc3b-111f-4201-bdac-fe2397304d89");
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 = 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
- }, 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 = b.value[h.value].data[0];
42
- else if (y.value !== 0) {
43
- const c = R.value, r = b.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.58"
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: 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-vxErFkoV.js.map
Binary file