@konnectio/core 4.0.56-rc49 → 4.0.56-rc50

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 (57) hide show
  1. package/dist/{ActionField-B9sCmWFD.js → ActionField-BQQitCzR.js} +3 -3
  2. package/dist/ActionField-BQQitCzR.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-sGz2nSbb.js → AvailabilitySkeleton-TZiNrJ8t.js} +102 -96
  4. package/dist/AvailabilitySkeleton-TZiNrJ8t.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js} +3 -3
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js.br +0 -0
  7. package/dist/{CheckoutWindow-CrzoIK1a.js → CheckoutWindow-DBBmXrsX.js} +3 -3
  8. package/dist/CheckoutWindow-DBBmXrsX.js.br +0 -0
  9. package/dist/{ErrorMessage-SZPwCpu-.js → ErrorMessage-Dw-TLplp.js} +3 -3
  10. package/dist/ErrorMessage-Dw-TLplp.js.br +0 -0
  11. package/dist/EventAvailabilityForm-DimufYUP.js +437 -0
  12. package/dist/EventAvailabilityForm-DimufYUP.js.br +0 -0
  13. package/dist/{Field-CLXqVSAA.js → Field-B4x3qSfU.js} +3 -3
  14. package/dist/Field-B4x3qSfU.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js} +2466 -2464
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js.br +0 -0
  17. package/dist/{TermsOfService-DBwm3BP2.js → TermsOfService-DLchxC08.js} +4 -4
  18. package/dist/TermsOfService-DLchxC08.js.br +0 -0
  19. package/dist/{_-BOjhcjBA.js → _-C7wxqlYk.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js → _.vue_vue_type_style_index_0_lang-BGyUJK1I.js} +3 -3
  21. package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js.br +0 -0
  22. package/dist/availability.js +8 -8
  23. package/dist/availability.js.br +0 -0
  24. package/dist/{navigation.js → deep-link.js} +3 -3
  25. package/dist/event.js +146 -146
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +22 -22
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +10 -10
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/{giftCard-hEwcI_Rx.js → giftCard-9uCMmY6r.js} +25 -26
  32. package/dist/giftCard-9uCMmY6r.js.br +0 -0
  33. package/dist/hotel.js +561 -557
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-C474cwA-.js → masonry.plugin-C4-Uj22v.js} +10 -10
  36. package/dist/masonry.plugin-C4-Uj22v.js.br +0 -0
  37. package/dist/polyfill.js +99 -98
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/dist/{tracing-pAUg9FFo.js → tracing-Dm-FNj-F.js} +198 -209
  42. package/dist/tracing-Dm-FNj-F.js.br +0 -0
  43. package/package.json +4 -4
  44. package/dist/ActionField-B9sCmWFD.js.br +0 -0
  45. package/dist/AvailabilitySkeleton-sGz2nSbb.js.br +0 -0
  46. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js.br +0 -0
  47. package/dist/CheckoutWindow-CrzoIK1a.js.br +0 -0
  48. package/dist/ErrorMessage-SZPwCpu-.js.br +0 -0
  49. package/dist/EventAvailabilityForm-DFuang-b.js +0 -431
  50. package/dist/EventAvailabilityForm-DFuang-b.js.br +0 -0
  51. package/dist/Field-CLXqVSAA.js.br +0 -0
  52. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js.br +0 -0
  53. package/dist/TermsOfService-DBwm3BP2.js.br +0 -0
  54. package/dist/_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js.br +0 -0
  55. package/dist/giftCard-hEwcI_Rx.js.br +0 -0
  56. package/dist/masonry.plugin-C474cwA-.js.br +0 -0
  57. package/dist/tracing-pAUg9FFo.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,15 +1,15 @@
1
- import { d as I, o as f, a as A, g as t, f as o, c as X, b as _, w as v, S as B, u as e, t as u, x as w, e as P, i as T, k as $ } from "./tracing-pAUg9FFo.js";
2
- import { E as k, _ as L, h as N, s as x, v as E, b as U, A as C, B as O, D as z, n as F, o as H, p as j, q as R, t as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js";
3
- import { u as q } from "./giftCard-hEwcI_Rx.js";
4
- import { _ as W } from "./_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js";
5
- import { A as J } from "./ActionField-B9sCmWFD.js";
6
- import { F as S } from "./Field-CLXqVSAA.js";
7
- import { E as K } from "./ErrorMessage-SZPwCpu-.js";
8
- import "./navigation.js";
1
+ import { d as I, o as f, a as A, g as t, f as o, c as X, b as _, w as v, S as B, u as e, t as u, x as w, e as P, i as T, k as $ } from "./tracing-Dm-FNj-F.js";
2
+ import { E as k, _ as L, h as N, s as x, v as E, b as U, A as C, B as O, D as z, n as F, o as H, p as j, q as R, t as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js";
3
+ import { u as q } from "./giftCard-9uCMmY6r.js";
4
+ import { _ as W } from "./_.vue_vue_type_style_index_0_lang-BGyUJK1I.js";
5
+ import { A as J } from "./ActionField-BQQitCzR.js";
6
+ import { F as S } from "./Field-B4x3qSfU.js";
7
+ import { E as K } from "./ErrorMessage-Dw-TLplp.js";
8
+ import "./deep-link.js";
9
9
  (function() {
10
10
  try {
11
11
  var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
12
- s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "6f02e89e-406d-4426-b87b-2615424c41ba", r._sentryDebugIdIdentifier = "sentry-dbid-6f02e89e-406d-4426-b87b-2615424c41ba");
12
+ s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "1e80ce45-c381-4177-9430-16226e3de96e", r._sentryDebugIdIdentifier = "sentry-dbid-1e80ce45-c381-4177-9430-16226e3de96e");
13
13
  } catch {
14
14
  }
15
15
  })();
@@ -47,9 +47,9 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
47
47
  ...s.styling
48
48
  })), { t: i } = N(), {
49
49
  voucher: m,
50
- isValid: g,
50
+ isValid: h,
51
51
  amount: p,
52
- expirationDate: h,
52
+ expirationDate: b,
53
53
  productName: a,
54
54
  isLoading: n
55
55
  } = x(E()), { currency: l, hasError: D } = x(U()), { fetchMetadata: G } = q(), { apply: V } = E();
@@ -69,7 +69,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
69
69
  })) : (f(), A("form", {
70
70
  key: 0,
71
71
  id: "konnectio-gift-card-validation-module",
72
- onSubmit: d[3] || (d[3] = T((b) => e(V)(), ["prevent"]))
72
+ onSubmit: d[3] || (d[3] = T((g) => e(V)(), ["prevent"]))
73
73
  }, [
74
74
  t("h4", null, [
75
75
  t("span", null, u(e(i)("giftCardValidation.title")), 1)
@@ -79,16 +79,16 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
79
79
  }, null, 8, ot),
80
80
  o(J, {
81
81
  modelValue: e(m),
82
- "onUpdate:modelValue": d[0] || (d[0] = (b) => w(m) ? m.value = b : null),
82
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
83
83
  icon: "gift-card",
84
84
  label: e(i)("booking.reservation.giftCardCode"),
85
85
  buttonLabel: e(i)("giftCardValidation.submitButton"),
86
86
  placeholder: "XXXXXXXX",
87
87
  "is-loading": e(n),
88
- "onUpdate:isLoading": d[1] || (d[1] = (b) => w(n) ? n.value = b : null),
89
- onAction: d[2] || (d[2] = (b) => e(V)())
88
+ "onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
89
+ onAction: d[2] || (d[2] = (g) => e(V)())
90
90
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
91
- !e(n) && e(g) ? (f(), A("table", st, [
91
+ !e(n) && e(h) ? (f(), A("table", st, [
92
92
  t("thead", null, [
93
93
  t("tr", null, [
94
94
  t("th", null, [
@@ -126,7 +126,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
126
126
  t("span", null, u(e(O)(e(p), e(l))), 1)
127
127
  ]),
128
128
  t("td", null, [
129
- t("span", null, u(e(z)(e(h))), 1)
129
+ t("span", null, u(e(z)(e(b))), 1)
130
130
  ])
131
131
  ])
132
132
  ])
@@ -157,7 +157,7 @@ class dt extends HTMLElement {
157
157
  connectedCallback() {
158
158
  const s = typeof y == "function" ? y.options : y;
159
159
  let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
160
- const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, l) => (l ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), g = {};
160
+ const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, l) => (l ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), h = {};
161
161
  c = c.map(i);
162
162
  const p = {};
163
163
  for (const a of this.attributes) {
@@ -166,11 +166,11 @@ class dt extends HTMLElement {
166
166
  }
167
167
  for (const a of c) {
168
168
  let n = this.attributes.getNamedItem(a)?.value;
169
- p.hasOwnProperty(a) && (n = p[a]), g[a] = n;
169
+ p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
170
170
  }
171
- this.vueApp = $(y, g), j(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(R);
172
- const h = document.createElement("div");
173
- this.vueApp.mount(h), this.appendChild(h.children[0]);
171
+ this.vueApp = $(y, h), j(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(R);
172
+ const b = document.createElement("div");
173
+ this.vueApp.mount(b), this.appendChild(b.children[0]);
174
174
  }
175
175
  }
176
176
  window.customElements.define("konnectio-gift-card-validation", dt);
Binary file
package/dist/gift-card.js CHANGED
@@ -1,16 +1,16 @@
1
- import { d as I, r as K, c as Z, o as s, b as w, w as F, g as t, a as v, f as o, u as e, e as g, n as Y, t as G, i as ae, q as oe, h as ne, S as ie, y as T, z as L, F as se, A as re, x as k, p as de, j as ue, k as ce } from "./tracing-pAUg9FFo.js";
2
- import { h as B, a as pe, C as S, I as me, E as fe, _ as z, F as be, s as O, b as ve, k as he, L as _e, T as q, l as ge, n as ye, o as ke, p as Ce, q as Ve, H as we, t as Fe } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js";
3
- import { u as D } from "./giftCard-hEwcI_Rx.js";
4
- import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js";
5
- import { C as Ee, a as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-CrzoIK1a.js";
6
- import { F as A } from "./Field-CLXqVSAA.js";
7
- import { E as Se } from "./ErrorMessage-SZPwCpu-.js";
8
- import { S as Ie } from "./TermsOfService-DBwm3BP2.js";
9
- import "./navigation.js";
1
+ import { d as I, r as K, c as Z, o as s, b as w, w as F, g as t, a as v, f as o, u as e, e as g, n as Y, t as G, i as ae, q as oe, h as ne, S as ie, y as T, z as L, F as se, A as re, x as k, p as de, j as ue, k as ce } from "./tracing-Dm-FNj-F.js";
2
+ import { h as B, a as pe, C as S, I as me, E as fe, _ as z, F as be, s as O, b as ve, k as he, L as _e, T as q, l as ge, n as ye, o as ke, p as Ce, q as Ve, H as we, t as Fe } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js";
3
+ import { u as D } from "./giftCard-9uCMmY6r.js";
4
+ import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-BGyUJK1I.js";
5
+ import { C as Ee, a as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-DBBmXrsX.js";
6
+ import { F as A } from "./Field-B4x3qSfU.js";
7
+ import { E as Se } from "./ErrorMessage-Dw-TLplp.js";
8
+ import { S as Ie } from "./TermsOfService-DLchxC08.js";
9
+ import "./deep-link.js";
10
10
  (function() {
11
11
  try {
12
12
  var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
13
- n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "85e8594d-e0ab-49f2-998a-5466aed911cd", d._sentryDebugIdIdentifier = "sentry-dbid-85e8594d-e0ab-49f2-998a-5466aed911cd");
13
+ n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "9de6d9d0-1d6f-41c3-9193-a181eeeab389", d._sentryDebugIdIdentifier = "sentry-dbid-9de6d9d0-1d6f-41c3-9193-a181eeeab389");
14
14
  } catch {
15
15
  }
16
16
  })();
Binary file
@@ -1,19 +1,19 @@
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-CHFFlMbv.js";
2
- import { r as t, c as a } from "./tracing-pAUg9FFo.js";
3
- import "./navigation.js";
1
+ import { d as K, u as H, a as J, s as Q, b as E, G as s, c as S, 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-CyGcXPO9.js";
2
+ import { r as t, c as a } from "./tracing-Dm-FNj-F.js";
3
+ import "./deep-link.js";
4
4
  (function() {
5
5
  try {
6
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] = "eafe5163-3cf3-4efd-8393-1a415e8d74c6", i._sentryDebugIdIdentifier = "sentry-dbid-eafe5163-3cf3-4efd-8393-1a415e8d74c6");
7
+ c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "9fe31b88-82a5-42ca-bbed-df28716fd670", i._sentryDebugIdIdentifier = "sentry-dbid-9fe31b88-82a5-42ca-bbed-df28716fd670");
8
8
  } catch {
9
9
  }
10
10
  })();
11
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({
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 = S("konnectio_name", "", void 0, { serializer: k.string }), p = S("konnectio_email", "", void 0, { serializer: k.string }), g = S("konnectio_phone", "", void 0, { serializer: k.string }), m = t(""), F = t(1), C = t(!0), D = t(""), u = t({
13
13
  base64: "",
14
14
  type: "",
15
15
  name: ""
16
- }), R = t(void 0), h = t(0), d = t(!1), y = 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(() => {
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
17
  const e = {
18
18
  1: {
19
19
  label: w.t("giftCard.hotelType"),
@@ -29,19 +29,19 @@ const ae = K("giftCard", () => {
29
29
  }), Object.fromEntries(
30
30
  Object.entries(e).filter(([, n]) => n.data.length > 0)
31
31
  );
32
- }), z = a(() => y.value !== 0), r = a(() => {
32
+ }), z = a(() => h.value !== 0), r = a(() => {
33
33
  let e;
34
34
  if (z.value)
35
- e = S.value[y.value].data[0];
36
- else if (h.value !== 0) {
37
- const l = R.value, n = S.value[h.value].data;
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
38
  n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((A) => {
39
39
  String(A.id) === String(l) && (e = A);
40
40
  });
41
41
  }
42
42
  return e;
43
- }), L = a(() => !(!f.value || !p.value || !(g.value.length >= 5) || !m.value || r.value === void 0)), V = a(() => !(o.value === s.InitialState && d.value)), q = a(() => !!(o.value === s.WaitingForResponse && d.value));
44
- async function B() {
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
45
  try {
46
46
  const e = (await M.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
47
47
  params: {
@@ -50,7 +50,7 @@ const ae = K("giftCard", () => {
50
50
  headers: {
51
51
  Authorization: v.value,
52
52
  Accept: "application/json",
53
- "Konnectio-Ver": "4.0.56-rc49"
53
+ "Konnectio-Ver": "4.0.56-rc50"
54
54
  }
55
55
  })).data;
56
56
  e.success !== void 0 ? I.value = !e.success : I.value = !1, P.value = e;
@@ -61,7 +61,7 @@ const ae = K("giftCard", () => {
61
61
  });
62
62
  }
63
63
  }
64
- async function N() {
64
+ async function $() {
65
65
  o.value = s.WaitingForResponse, d.value = !0, await M.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
66
66
  termsOfserviceURL: window.location.origin,
67
67
  checkoutUrl: window.location.origin,
@@ -82,8 +82,7 @@ const ae = K("giftCard", () => {
82
82
  }, {
83
83
  headers: {
84
84
  Authorization: v.value,
85
- Accept: "application/json",
86
- "Fresh-Booking-Ver": "4.0.56-rc49"
85
+ Accept: "application/json"
87
86
  }
88
87
  }).then((e) => {
89
88
  o.value = s.ReadyToPay, d.value = !1, i({
@@ -92,8 +91,8 @@ const ae = K("giftCard", () => {
92
91
  });
93
92
  });
94
93
  }
95
- function $(e) {
96
- e && (y.value = e);
94
+ function B(e) {
95
+ e && (h.value = e);
97
96
  }
98
97
  return {
99
98
  selectedPlace: r,
@@ -107,22 +106,22 @@ const ae = K("giftCard", () => {
107
106
  quantity: F,
108
107
  media: u,
109
108
  placeId: R,
110
- placeType: h,
109
+ placeType: y,
111
110
  showFormPage: U,
112
111
  showPaymentPage: W,
113
112
  showConfirmationPage: j,
114
- places: S,
113
+ places: b,
115
114
  hasFilledForm: L,
116
115
  hasForcedPlaceType: z,
117
- isWaitingForResponse: q,
118
- isMetadataAvailable: V,
116
+ isWaitingForResponse: N,
117
+ isMetadataAvailable: q,
119
118
  termsOfService: G,
120
- fetchMetadata: B,
121
- orderGiftCard: N,
122
- initialize: $
119
+ fetchMetadata: V,
120
+ orderGiftCard: $,
121
+ initialize: B
123
122
  };
124
123
  });
125
124
  export {
126
125
  ae as u
127
126
  };
128
- //# sourceMappingURL=giftCard-hEwcI_Rx.js.map
127
+ //# sourceMappingURL=giftCard-9uCMmY6r.js.map
Binary file