@konnectio/core 4.0.56-rc55 → 4.0.56-rc57

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-BAL1bpnL.js → ActionField-DKZafUlR.js} +12 -12
  2. package/dist/ActionField-DKZafUlR.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-BX61UaDK.js → AvailabilitySkeleton-SASkHOiq.js} +50 -49
  4. package/dist/AvailabilitySkeleton-SASkHOiq.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Dh_KtDF5.js +8174 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Dh_KtDF5.js.br +0 -0
  7. package/dist/{CheckoutWindow-DufEgcza.js → CheckoutWindow-bv8SEegE.js} +242 -233
  8. package/dist/CheckoutWindow-bv8SEegE.js.br +0 -0
  9. package/dist/{ErrorMessage-CbGOS1Nq.js → ErrorMessage-8oAaQblb.js} +4 -4
  10. package/dist/ErrorMessage-8oAaQblb.js.br +0 -0
  11. package/dist/EventAvailabilityForm-XPZp7iuZ.js +120 -0
  12. package/dist/EventAvailabilityForm-XPZp7iuZ.js.br +0 -0
  13. package/dist/{Field-flvSuRTL.js → Field-CQAdEBG7.js} +9 -9
  14. package/dist/Field-CQAdEBG7.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bn6dYjxB.js +18603 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bn6dYjxB.js.br +0 -0
  17. package/dist/TermsOfService-BWocwb8F.js +36 -0
  18. package/dist/TermsOfService-BWocwb8F.js.br +0 -0
  19. package/dist/{_-Wr8LhfrM.js → _-sf9UiCZF.js} +3 -3
  20. package/dist/_.vue_vue_type_style_index_0_lang-DezizhVn.js +69 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-DezizhVn.js.br +0 -0
  22. package/dist/_commonjsHelpers-D6zJgUc6.js +17 -0
  23. package/dist/{_commonjsHelpers-04Qj4xBt.js → _sentry-release-injection-file-C5__P7Lr.js} +352 -358
  24. package/dist/_sentry-release-injection-file-C5__P7Lr.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-DyeFrBy2.js +134 -0
  36. package/dist/giftCard-DyeFrBy2.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-4NDW3gcv.js} +3352 -3334
  40. package/dist/masonry.plugin-4NDW3gcv.js.br +0 -0
  41. package/dist/mitt-B1dbyZb6.js +2953 -0
  42. package/dist/mitt-B1dbyZb6.js.br +0 -0
  43. package/dist/polyfill.js +4410 -4402
  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.br +0 -0
  66. package/dist/giftCard-DHP_enh5.js +0 -127
  67. package/dist/giftCard-DHP_enh5.js.br +0 -0
  68. package/dist/masonry.plugin-BMRfOcVe.js.br +0 -0
  69. package/dist/sentry-BSHzssDu.js +0 -18
  70. package/dist/tracing-wxeFiHIa.js.br +0 -0
@@ -1,35 +0,0 @@
1
- import { d as r, o as a, b as i, w as d, g as t, u as o } from "./_commonjsHelpers-04Qj4xBt.js";
2
- import { h as f, j as c, _ as p } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BtVEfiNz.js";
3
- import { B as _ } from "./CheckoutWindow-DufEgcza.js";
4
- (function() {
5
- try {
6
- var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
7
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e68e1a1f-148f-4df0-ab8f-f99af2b67141", e._sentryDebugIdIdentifier = "sentry-dbid-e68e1a1f-148f-4df0-ab8f-f99af2b67141");
8
- } catch {
9
- }
10
- })();
11
- const l = { class: "konnectio-terms-side-panel" }, u = ["innerHTML"], b = /* @__PURE__ */ r({
12
- __name: "TermsOfService",
13
- props: {
14
- description: {}
15
- },
16
- setup(e) {
17
- const { t: n } = f();
18
- return (s, m) => (a(), i(_, {
19
- title: o(n)("general.termsAndConditions")
20
- }, {
21
- default: d(() => [
22
- t("div", l, [
23
- t("p", {
24
- innerHTML: o(c)(s.description)
25
- }, null, 8, u)
26
- ])
27
- ]),
28
- _: 1
29
- }, 8, ["title"]));
30
- }
31
- }), I = /* @__PURE__ */ p(b, [["__scopeId", "data-v-82aaf990"]]);
32
- export {
33
- I as S
34
- };
35
- //# sourceMappingURL=TermsOfService-ZtJSXzfs.js.map
Binary file
@@ -1,68 +0,0 @@
1
- import { d as _, o as c, a as r, u as o, f, g as p, t as m, e as b, n as y, s as d, v as g } from "./_commonjsHelpers-04Qj4xBt.js";
2
- import { s as k, a as w, z as h, _ as I, b as v } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BtVEfiNz.js";
3
- (function() {
4
- try {
5
- var a = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
6
- s && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[s] = "471494b3-c4da-483a-9afc-b15215439af7", a._sentryDebugIdIdentifier = "sentry-dbid-471494b3-c4da-483a-9afc-b15215439af7");
7
- } catch {
8
- }
9
- })();
10
- const D = {
11
- key: 0,
12
- class: "konnectio-alert-message"
13
- }, x = /* @__PURE__ */ _({
14
- __name: "Alert",
15
- props: {
16
- localDomain: { default: "global" }
17
- },
18
- setup(a) {
19
- const s = {
20
- default: "info",
21
- error: "exclamation-triangle",
22
- warning: "do-not-enter",
23
- success: "check-circle"
24
- }, {
25
- message: e,
26
- type: t,
27
- status: n
28
- } = k(w());
29
- return (l, i) => (c(), r("div", {
30
- class: y(["konnectio-alert", o(t), o(n).toLowerCase()]),
31
- role: "alert"
32
- }, [
33
- o(e) ? (c(), r("div", D, [
34
- f(h, {
35
- icon: s[o(t)]
36
- }, null, 8, ["icon"]),
37
- p("span", null, m(o(e)), 1)
38
- ])) : b("", !0)
39
- ], 2));
40
- }
41
- }), A = /* @__PURE__ */ I(x, [["__scopeId", "data-v-a677cda9"]]), C = {
42
- class: "konnectio-app",
43
- ref: "base"
44
- }, N = /* @__PURE__ */ _({
45
- name: "BaseLayout",
46
- __name: "_",
47
- props: {
48
- accessToken: {},
49
- type: { default: "none" },
50
- callback: {}
51
- },
52
- emits: ["metadata"],
53
- async setup(a, { emit: s }) {
54
- let e, t;
55
- const n = a, {
56
- setAccessToken: l,
57
- fetchUtilities: i
58
- } = v();
59
- return l(n.accessToken), [e, t] = d(() => i()), await e, t(), [e, t] = d(() => n.callback()), await e, t(), (u, B) => (c(), r("div", C, [
60
- g(u.$slots, "default"),
61
- f(A, { "local-domain": "global" })
62
- ], 512));
63
- }
64
- });
65
- export {
66
- N as _
67
- };
68
- //# sourceMappingURL=_.vue_vue_type_style_index_0_lang-1ZRqGUnk.js.map
@@ -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