@konnectio/core 4.0.63 → 4.0.65

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 (76) hide show
  1. package/dist/{ActionField-3MggPKk9.js → ActionField-D5c9yQMq.js} +36 -28
  2. package/dist/ActionField-D5c9yQMq.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BfyLbK2o.js +299 -0
  4. package/dist/AvailabilitySkeleton-BfyLbK2o.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js} +934 -924
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js.br +0 -0
  7. package/dist/{CheckoutWindow-DolJgk40.js → CheckoutWindow-B74NMuGr.js} +174 -166
  8. package/dist/CheckoutWindow-B74NMuGr.js.br +0 -0
  9. package/dist/{ErrorMessage-BksKCxAq.js → ErrorMessage-CWR5rjTx.js} +24 -16
  10. package/dist/ErrorMessage-CWR5rjTx.js.br +0 -0
  11. package/dist/EventAvailabilityForm-lFAnwVMX.js +125 -0
  12. package/dist/EventAvailabilityForm-lFAnwVMX.js.br +0 -0
  13. package/dist/Field-C4DyN4XC.js +58 -0
  14. package/dist/Field-C4DyN4XC.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js +18813 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js.br +0 -0
  17. package/dist/TermsOfService-Bx4b2VxT.js +44 -0
  18. package/dist/TermsOfService-Bx4b2VxT.js.br +0 -0
  19. package/dist/_-DmU4JLX1.js +20 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js +77 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js.br +0 -0
  22. package/dist/_commonjsHelpers-BbdZelfp.js +25 -0
  23. package/dist/_commonjsHelpers-BbdZelfp.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-DEszgcWK.js → _sentry-release-injection-file-tJBg8sGS.js} +1643 -1635
  25. package/dist/_sentry-release-injection-file-tJBg8sGS.js.br +0 -0
  26. package/dist/availability.js +65 -55
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +29 -21
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +260 -252
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +64 -56
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +137 -129
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/giftCard-SDJGsDep.js +134 -0
  37. package/dist/giftCard-SDJGsDep.js.br +0 -0
  38. package/dist/hotel.js +939 -920
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-GGoTX7a7.js → masonry.plugin-BhK5XQta.js} +860 -852
  41. package/dist/masonry.plugin-BhK5XQta.js.br +0 -0
  42. package/dist/{mitt-DnPlcQNp.js → mitt-CGFh35r5.js} +505 -497
  43. package/dist/mitt-CGFh35r5.js.br +0 -0
  44. package/dist/polyfill.js +6471 -6259
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-2RYcVxT9.js → style-BQlIFUN3.js} +418 -403
  47. package/dist/style-BQlIFUN3.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/dist/{_commonjsHelpers-DEK47QeC.js → tracing-B1Jp160Y.js} +597 -544
  51. package/dist/tracing-B1Jp160Y.js.br +0 -0
  52. package/package.json +16 -16
  53. package/dist/ActionField-3MggPKk9.js.br +0 -0
  54. package/dist/AvailabilitySkeleton-DSgC6hn3.js +0 -293
  55. package/dist/AvailabilitySkeleton-DSgC6hn3.js.br +0 -0
  56. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js.br +0 -0
  57. package/dist/CheckoutWindow-DolJgk40.js.br +0 -0
  58. package/dist/ErrorMessage-BksKCxAq.js.br +0 -0
  59. package/dist/EventAvailabilityForm-DZljldrC.js +0 -117
  60. package/dist/EventAvailabilityForm-DZljldrC.js.br +0 -0
  61. package/dist/Field-DGi_AnA6.js +0 -50
  62. package/dist/Field-DGi_AnA6.js.br +0 -0
  63. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js +0 -18734
  64. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js.br +0 -0
  65. package/dist/TermsOfService-LDUTInOo.js +0 -36
  66. package/dist/TermsOfService-LDUTInOo.js.br +0 -0
  67. package/dist/_-CBEOFztf.js +0 -12
  68. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js +0 -69
  69. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.br +0 -0
  70. package/dist/_commonjsHelpers-DEK47QeC.js.br +0 -0
  71. package/dist/_sentry-release-injection-file-DEszgcWK.js.br +0 -0
  72. package/dist/giftCard-DLrIdehA.js +0 -126
  73. package/dist/giftCard-DLrIdehA.js.br +0 -0
  74. package/dist/masonry.plugin-GGoTX7a7.js.br +0 -0
  75. package/dist/mitt-DnPlcQNp.js.br +0 -0
  76. package/dist/style-2RYcVxT9.js.br +0 -0
@@ -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-DEszgcWK.js";
2
- import { H as c, _ as f } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
3
- import { B as p } from "./CheckoutWindow-DolJgk40.js";
4
- import { u as _ } from "./mitt-DnPlcQNp.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] = "097311be-e02c-4a07-8572-f9a4949c64da", e._sentryDebugIdIdentifier = "sentry-dbid-097311be-e02c-4a07-8572-f9a4949c64da");
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-LDUTInOo.js.map
Binary file
@@ -1,12 +0,0 @@
1
- import { _ as t } from "./_.vue_vue_type_style_index_0_lang-DjuzMOwH.js";
2
- (function() {
3
- try {
4
- var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, d = new Error().stack;
5
- d && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[d] = "7a70ab13-8c15-404e-b690-dbf5312b0b48", e._sentryDebugIdIdentifier = "sentry-dbid-7a70ab13-8c15-404e-b690-dbf5312b0b48");
6
- } catch {
7
- }
8
- })();
9
- export {
10
- t as default
11
- };
12
- //# sourceMappingURL=_-CBEOFztf.js.map
@@ -1,69 +0,0 @@
1
- import { d as _, a as c, g as r, u as o, f, e as u, t as m, i as y, n as g, ak as d, l as k } from "./_sentry-release-injection-file-DEszgcWK.js";
2
- import { a as b, I as w, _ as h, e as I } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
3
- import { s as D } from "./mitt-DnPlcQNp.js";
4
- (function() {
5
- try {
6
- var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, a = new Error().stack;
7
- a && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[a] = "c0900fe0-951d-4672-9448-c594a700a487", t._sentryDebugIdIdentifier = "sentry-dbid-c0900fe0-951d-4672-9448-c594a700a487");
8
- } catch {
9
- }
10
- })();
11
- const v = {
12
- key: 0,
13
- class: "konnectio-alert-message"
14
- }, x = /* @__PURE__ */ _({
15
- __name: "Alert",
16
- props: {
17
- localDomain: { default: "global" }
18
- },
19
- setup(t) {
20
- const a = {
21
- default: "info",
22
- error: "exclamation-triangle",
23
- warning: "do-not-enter",
24
- success: "check-circle"
25
- }, {
26
- message: e,
27
- type: s,
28
- status: n
29
- } = D(b());
30
- return (l, i) => (c(), r("div", {
31
- class: g(["konnectio-alert", o(s), o(n).toLowerCase()]),
32
- role: "alert"
33
- }, [
34
- o(e) ? (c(), r("div", v, [
35
- f(w, {
36
- icon: a[o(s)]
37
- }, null, 8, ["icon"]),
38
- u("span", null, m(o(e)), 1)
39
- ])) : y("", !0)
40
- ], 2));
41
- }
42
- }), A = /* @__PURE__ */ h(x, [["__scopeId", "data-v-f9265471"]]), C = {
43
- class: "konnectio-app",
44
- ref: "base"
45
- }, V = /* @__PURE__ */ _({
46
- name: "BaseLayout",
47
- __name: "_",
48
- props: {
49
- accessToken: {},
50
- type: { default: "none" },
51
- callback: {}
52
- },
53
- emits: ["metadata"],
54
- async setup(t, { emit: a }) {
55
- let e, s;
56
- const n = t, {
57
- setAccessToken: l,
58
- fetchUtilities: i
59
- } = I();
60
- return l(n.accessToken), [e, s] = d(() => i()), await e, s(), [e, s] = d(() => n.callback()), await e, s(), (p, B) => (c(), r("div", C, [
61
- k(p.$slots, "default"),
62
- f(A, { "local-domain": "global" })
63
- ], 512));
64
- }
65
- });
66
- export {
67
- V as _
68
- };
69
- //# sourceMappingURL=_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.map
@@ -1,126 +0,0 @@
1
- import { t as H, a as J, e as A, G as s, v as S, S as w, w as E, p as M, x as K } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
2
- import { d as Q, s as X, a as k } from "./mitt-DnPlcQNp.js";
3
- import { r as t, c as a } from "./_sentry-release-injection-file-DEszgcWK.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] = "10190812-cc04-410b-aa3e-421b78f761ee", i._sentryDebugIdIdentifier = "sentry-dbid-10190812-cc04-410b-aa3e-421b78f761ee");
8
- } catch {
9
- }
10
- })();
11
- const ae = Q("giftCard", () => {
12
- const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: O, hasError: I } = X(A()), T = A(), o = 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(""), 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), b = a(() => {
17
- const e = {
18
- 1: {
19
- label: k.t("giftCard.hotelType"),
20
- data: []
21
- },
22
- 2: {
23
- label: k.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 = b.value[h.value].data[0];
36
- else if (y.value !== 0) {
37
- const l = R.value, n = b.value[y.value].data;
38
- n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((x) => {
39
- String(x.id) === String(l) && (e = x);
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 $() {
45
- try {
46
- const e = (await E.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
47
- params: {
48
- language: M()
49
- },
50
- headers: {
51
- Authorization: v.value,
52
- Accept: "application/json"
53
- }
54
- })).data;
55
- e.success !== void 0 ? I.value = !e.success : I.value = !1, P.value = e;
56
- } catch {
57
- c({
58
- message: k.t("alert.error.couldntFetchMetadata"),
59
- type: "warning"
60
- });
61
- }
62
- }
63
- async function B() {
64
- o.value = s.WaitingForResponse, d.value = !0, await E.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
65
- termsOfserviceURL: window.location.origin,
66
- checkoutUrl: window.location.origin,
67
- currencyID: O.value,
68
- language: M(),
69
- amount: m.value,
70
- quantity: F.value,
71
- freeText: D.value,
72
- showPrice: C.value,
73
- contactName: f.value,
74
- contactEmail: p.value,
75
- contactPhone: g.value,
76
- imageBase64: K(u.value.base64),
77
- imageName: u.value.name,
78
- imageFormat: u.value.type,
79
- placeType: r.value ? r.value.placeType : void 0,
80
- placeID: r.value ? r.value.id : void 0
81
- }, {
82
- headers: {
83
- Authorization: v.value,
84
- Accept: "application/json"
85
- }
86
- }).then((e) => {
87
- o.value = s.ReadyToPay, d.value = !1, i({
88
- callback: () => console.log("Callback!"),
89
- response: e.data
90
- });
91
- });
92
- }
93
- function V(e) {
94
- e && (h.value = e);
95
- }
96
- return {
97
- selectedPlace: r,
98
- moduleState: o,
99
- name: f,
100
- email: p,
101
- phone: g,
102
- value: m,
103
- remark: D,
104
- showValue: C,
105
- quantity: F,
106
- media: u,
107
- placeId: R,
108
- placeType: y,
109
- showFormPage: U,
110
- showPaymentPage: W,
111
- showConfirmationPage: j,
112
- places: b,
113
- hasFilledForm: L,
114
- hasForcedPlaceType: z,
115
- isWaitingForResponse: N,
116
- isMetadataAvailable: q,
117
- termsOfService: G,
118
- fetchMetadata: $,
119
- orderGiftCard: B,
120
- initialize: V
121
- };
122
- });
123
- export {
124
- ae as u
125
- };
126
- //# sourceMappingURL=giftCard-DLrIdehA.js.map
Binary file
Binary file
Binary file
Binary file