@konnectio/core 4.0.117 → 4.0.119

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 (61) hide show
  1. package/dist/{ActionField-C5YNAHtg.js → ActionField-yaTIHJvx.js} +6 -6
  2. package/dist/ActionField-yaTIHJvx.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-iv8Xcdhb.js → AvailabilitySkeleton-CV6IiFig.js} +14 -14
  4. package/dist/AvailabilitySkeleton-CV6IiFig.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BZQdYoAp.js +8429 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BZQdYoAp.js.br +0 -0
  7. package/dist/{CheckoutWindow-Bk93hf8m.js → CheckoutWindow-BLhGzw4p.js} +26 -26
  8. package/dist/CheckoutWindow-BLhGzw4p.js.br +0 -0
  9. package/dist/{ErrorMessage-l7AF1hYs.js → ErrorMessage-CMNpag_d.js} +3 -3
  10. package/dist/ErrorMessage-CMNpag_d.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-Dya8xkX1.js → EventAvailabilityForm-5IKyXHH5.js} +13 -13
  12. package/dist/EventAvailabilityForm-5IKyXHH5.js.br +0 -0
  13. package/dist/{Field-BW8kaVQ0.js → Field-CvoF7Glc.js} +4 -4
  14. package/dist/Field-CvoF7Glc.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-k3NqFaOv.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-AECoPKDc.js} +3 -3
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-DioPakK9.js → SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js} +6919 -6560
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js.br +0 -0
  18. package/dist/{TermsOfService-T8GzpQ5F.js → TermsOfService-D_TOJHKs.js} +4 -4
  19. package/dist/_-4AAzKjzk.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CJnCdhl2.js → _.vue_vue_type_style_index_0_lang-Iq1FI_VA.js} +5 -5
  21. package/dist/availability.js +6 -6
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +4 -4
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/deep-link.js +1 -1
  26. package/dist/deep-link.js.br +0 -0
  27. package/dist/event.js +621 -478
  28. package/dist/event.js.br +0 -0
  29. package/dist/gift-card-validation.js +19 -19
  30. package/dist/gift-card-validation.js.br +0 -0
  31. package/dist/gift-card.js +16 -16
  32. package/dist/gift-card.js.br +0 -0
  33. package/dist/{giftCard-Bm6bAv62.js → giftCard-DvqomDap.js} +23 -23
  34. package/dist/giftCard-DvqomDap.js.br +0 -0
  35. package/dist/hotel.js +222 -222
  36. package/dist/hotel.js.br +0 -0
  37. package/dist/{masonry.plugin-680IfcQo.js → masonry.plugin-rZZcRBGq.js} +439 -438
  38. package/dist/masonry.plugin-rZZcRBGq.js.br +0 -0
  39. package/dist/{mitt-CTfj-lXy.js → mitt-HQsLmGCg.js} +6 -6
  40. package/dist/mitt-HQsLmGCg.js.br +0 -0
  41. package/dist/polyfill.js +1 -1
  42. package/dist/polyfill.js.br +0 -0
  43. package/dist/{style-BSDdyhMN.js → style-Cc6LpDdk.js} +2 -2
  44. package/dist/style-Cc6LpDdk.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/package.json +1 -1
  48. package/dist/ActionField-C5YNAHtg.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-iv8Xcdhb.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAOfipPs.js +0 -8753
  51. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAOfipPs.js.br +0 -0
  52. package/dist/CheckoutWindow-Bk93hf8m.js.br +0 -0
  53. package/dist/ErrorMessage-l7AF1hYs.js.br +0 -0
  54. package/dist/EventAvailabilityForm-Dya8xkX1.js.br +0 -0
  55. package/dist/Field-BW8kaVQ0.js.br +0 -0
  56. package/dist/SelectField.vue_vue_type_style_index_0_lang-DioPakK9.js.br +0 -0
  57. package/dist/_-LwIJ-lj7.js +0 -5
  58. package/dist/giftCard-Bm6bAv62.js.br +0 -0
  59. package/dist/masonry.plugin-680IfcQo.js.br +0 -0
  60. package/dist/mitt-CTfj-lXy.js.br +0 -0
  61. package/dist/style-BSDdyhMN.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,13 +1,13 @@
1
- import { d as A, a as s, g as v, e as t, f as a, c as T, u as $, s as k, b as m, w as p, S as B, i as e, t as i, A as b, j as I, h as D, k as N, l as U, m as F, p as H, q as j } from "./mitt-CTfj-lXy.js";
2
- import { _ as x, t as C, g as R, I as h, j as q, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-DioPakK9.js";
3
- import { u as z } from "./giftCard-Bm6bAv62.js";
4
- import { _ as J } from "./_.vue_vue_type_style_index_0_lang-CJnCdhl2.js";
5
- import { A as K } from "./ActionField-C5YNAHtg.js";
6
- import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-k3NqFaOv.js";
7
- import { F as y } from "./Field-BW8kaVQ0.js";
8
- import { E as Q } from "./ErrorMessage-l7AF1hYs.js";
9
- import { G as Y } from "./style-BSDdyhMN.js";
10
- const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */ A({
1
+ import { d as x, a as s, g as v, e as t, f as a, c as P, u as T, s as k, b as m, w as p, S as $, i as e, t as i, B as b, j as I, h as D, k as N, l as U, m as F, p as H, q as R } from "./mitt-HQsLmGCg.js";
2
+ import { _ as A, y as C, h as j, I as h, o as q, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js";
3
+ import { u as z } from "./giftCard-DvqomDap.js";
4
+ import { _ as J } from "./_.vue_vue_type_style_index_0_lang-Iq1FI_VA.js";
5
+ import { A as K } from "./ActionField-yaTIHJvx.js";
6
+ import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-AECoPKDc.js";
7
+ import { F as y } from "./Field-CvoF7Glc.js";
8
+ import { E as Q } from "./ErrorMessage-CMNpag_d.js";
9
+ import { G as Y } from "./style-Cc6LpDdk.js";
10
+ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */ x({
11
11
  __name: "GiftCardValidationSkeleton",
12
12
  setup(u) {
13
13
  return (d, l) => (s(), v("div", Z, [
@@ -24,11 +24,11 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
24
24
  ])
25
25
  ]));
26
26
  }
27
- }), ot = /* @__PURE__ */ x(nt, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], st = {
27
+ }), ot = /* @__PURE__ */ A(nt, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], st = {
28
28
  key: 0,
29
29
  id: "konnectio-gift-card-validation-resume",
30
30
  class: "konnectio-panel"
31
- }, lt = /* @__PURE__ */ A({
31
+ }, lt = /* @__PURE__ */ x({
32
32
  name: "GiftCardValidationLayout",
33
33
  __name: "GiftCardValidation",
34
34
  props: {
@@ -36,23 +36,23 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
36
36
  styling: {}
37
37
  },
38
38
  setup(u) {
39
- const d = u, l = T(() => ({
39
+ const d = u, l = P(() => ({
40
40
  panelMaxWidth: "800px",
41
41
  ...d.styling
42
- })), { t: o } = $(), {
42
+ })), { t: o } = T(), {
43
43
  voucher: f,
44
44
  isValid: G,
45
45
  amount: E,
46
46
  expirationDate: S,
47
47
  productName: w,
48
48
  isLoading: c
49
- } = k(C()), { currency: L, hasError: M } = k(R()), { fetchMetadata: X } = z(), { apply: _ } = C();
50
- return (P, n) => (s(), m(W, { styling: l.value }, {
49
+ } = k(C()), { currency: L, hasError: M } = k(j()), { fetchMetadata: X } = z(), { apply: _ } = C();
50
+ return (B, n) => (s(), m(W, { styling: l.value }, {
51
51
  default: p(() => [
52
- (s(), m(B, null, {
52
+ (s(), m($, null, {
53
53
  default: p(() => [
54
54
  a(J, {
55
- "access-token": P.accessToken,
55
+ "access-token": B.accessToken,
56
56
  callback: e(X)
57
57
  }, {
58
58
  default: p(() => [
@@ -139,7 +139,7 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
139
139
  _: 1
140
140
  }, 8, ["styling"]));
141
141
  }
142
- }), V = /* @__PURE__ */ x(lt, [["__scopeId", "data-v-ca768ef6"]]), rt = N(), dt = j();
142
+ }), V = /* @__PURE__ */ A(lt, [["__scopeId", "data-v-ca768ef6"]]), rt = N(), dt = R();
143
143
  class ct extends HTMLElement {
144
144
  vueApp;
145
145
  constructor() {
Binary file
package/dist/gift-card.js CHANGED
@@ -1,13 +1,13 @@
1
- import { d as G, u as L, r as O, c as Y, a as s, b as y, w as C, e as l, g as c, f as t, i as e, j as m, n as J, t as q, h as te, D as oe, s as z, E as ne, o as ie, S as se, G as A, H as S, F as re, z as de, A as v, k as ue, l as ce, m as pe, p as me, q as fe } from "./mitt-CTfj-lXy.js";
2
- import { a as ve, d as T, r as be, _ as x, g as he, c as ke, L as _e, T as M, f as ge, C as ye, p as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-DioPakK9.js";
3
- import { G as Ve } from "./style-BSDdyhMN.js";
4
- import { u as I } from "./giftCard-Bm6bAv62.js";
5
- import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-CJnCdhl2.js";
6
- import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-Bk93hf8m.js";
7
- import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-k3NqFaOv.js";
8
- import { F as U } from "./Field-BW8kaVQ0.js";
9
- import { E as Te } from "./ErrorMessage-l7AF1hYs.js";
10
- import { S as Ge } from "./TermsOfService-T8GzpQ5F.js";
1
+ import { d as G, u as L, r as O, c as Y, a as s, b as y, w as C, e as l, g as c, f as t, i as e, j as m, n as J, t as q, h as te, D as oe, s as W, E as ne, o as ie, S as se, G as A, H as S, F as re, A as de, B as v, k as ue, l as ce, m as pe, p as me, q as fe } from "./mitt-HQsLmGCg.js";
2
+ import { a as ve, d as T, x as be, _ as x, h as he, c as ke, L as _e, T as M, g as ge, C as ye, v as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js";
3
+ import { G as Ve } from "./style-Cc6LpDdk.js";
4
+ import { u as I } from "./giftCard-DvqomDap.js";
5
+ import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-Iq1FI_VA.js";
6
+ import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-BLhGzw4p.js";
7
+ import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-AECoPKDc.js";
8
+ import { F as U } from "./Field-CvoF7Glc.js";
9
+ import { E as Te } from "./ErrorMessage-CMNpag_d.js";
10
+ import { S as Ge } from "./TermsOfService-D_TOJHKs.js";
11
11
  const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Le = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, Ie = ["src"], xe = /* @__PURE__ */ G({
12
12
  __name: "MediaSelector",
13
13
  props: {
@@ -114,7 +114,7 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
114
114
  }, 8, ["label", "required"]));
115
115
  }
116
116
  });
117
- function W(b) {
117
+ function z(b) {
118
118
  const r = b;
119
119
  r.__i18n = r.__i18n || [], r.__i18n.push({
120
120
  locale: "",
@@ -134,7 +134,7 @@ function W(b) {
134
134
  }
135
135
  });
136
136
  }
137
- typeof W == "function" && W(xe);
137
+ typeof z == "function" && z(xe);
138
138
  const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ G({
139
139
  __name: "GiftCardSkeleton",
140
140
  setup(b) {
@@ -149,7 +149,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
149
149
  ])
150
150
  ]));
151
151
  }
152
- }), je = /* @__PURE__ */ x(Ne, [["__scopeId", "data-v-ba3efaa1"]]), ze = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ G({
152
+ }), je = /* @__PURE__ */ x(Ne, [["__scopeId", "data-v-ba3efaa1"]]), We = { class: "konnectio-accept-terms" }, ze = /* @__PURE__ */ G({
153
153
  __name: "_",
154
154
  props: {
155
155
  content: {},
@@ -157,7 +157,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
157
157
  },
158
158
  setup(b) {
159
159
  const { t: r } = L(), p = O(!1);
160
- return (o, u) => (s(), c("div", ze, [
160
+ return (o, u) => (s(), c("div", We, [
161
161
  t(e(oe), {
162
162
  keypath: "general.termsAndConditionsNotice",
163
163
  tag: "span",
@@ -184,7 +184,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
184
184
  }, null, 8, ["modelValue", "description"])
185
185
  ]));
186
186
  }
187
- }), Ke = /* @__PURE__ */ x(We, [["__scopeId", "data-v-689c045a"]]), Oe = /* @__PURE__ */ G({
187
+ }), Ke = /* @__PURE__ */ x(ze, [["__scopeId", "data-v-689c045a"]]), Oe = /* @__PURE__ */ G({
188
188
  __name: "GiftCard",
189
189
  setup(b) {
190
190
  const { t: r } = L(), p = I();
@@ -238,7 +238,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
238
238
  hasFilledForm: P,
239
239
  hasForcedPlaceType: R,
240
240
  isWaitingForResponse: F
241
- } = z(I()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = I(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = z(he());
241
+ } = W(I()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = I(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = W(he());
242
242
  return ne(a, () => {
243
243
  w.value = void 0;
244
244
  }), ie(() => {
Binary file
@@ -1,18 +1,18 @@
1
- import { I as V, s as H, r as t, c as a, J as y } from "./mitt-CTfj-lXy.js";
2
- import { v as K, a as Q, g as O, G as o, w as h, S, x, q as z, y as X } from "./SelectField.vue_vue_type_style_index_0_lang-DioPakK9.js";
1
+ import { I as V, s as H, r as t, c as a, J as h } from "./mitt-HQsLmGCg.js";
2
+ import { z as K, a as Q, h as E, G as o, A as y, S, D as M, w as O, E as X } from "./SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js";
3
3
  const $ = V("giftCard", () => {
4
- const { pay: E } = K(), { display: G } = Q(), { metaData: w, currencyId: D, hasError: P } = H(O()), T = O(), s = t(o.InitialState), u = h("konnectio_name", "", void 0, { serializer: S.string }), v = h("konnectio_email", "", void 0, { serializer: S.string }), d = h("konnectio_phone", "", void 0, { serializer: S.string }), f = t(""), F = t(1), b = t(!0), C = t(""), i = t({
4
+ const { pay: D } = K(), { display: G } = Q(), { metaData: w, currencyId: x, hasError: P } = H(E()), T = E(), s = t(o.InitialState), u = y("konnectio_name", "", void 0, { serializer: S.string }), v = y("konnectio_email", "", void 0, { serializer: S.string }), d = y("konnectio_phone", "", void 0, { serializer: S.string }), f = t(""), F = t(1), b = t(!0), C = t(""), i = t({
5
5
  base64: "",
6
6
  type: "",
7
7
  name: ""
8
- }), I = t(void 0), g = t(0), c = t(!1), p = t(0), R = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}), U = a(() => R.value.termsOfService ? R.value.termsOfService : ""), W = a(() => s.value === o.InitialState || s.value === o.WaitingForResponse), _ = a(() => s.value === o.ReadyToPay), q = a(() => s.value === o.PaymentSuccess), m = a(() => {
8
+ }), I = t(void 0), g = t(0), c = t(!1), p = t(0), R = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}), A = a(() => R.value.termsOfService ? R.value.termsOfService : ""), U = a(() => s.value === o.InitialState || s.value === o.WaitingForResponse), W = a(() => s.value === o.ReadyToPay), _ = a(() => s.value === o.PaymentSuccess), m = a(() => {
9
9
  const e = {
10
10
  1: {
11
- label: y.t("giftCard.hotelType"),
11
+ label: h.t("giftCard.hotelType"),
12
12
  data: []
13
13
  },
14
14
  2: {
15
- label: y.t("giftCard.restaurantType"),
15
+ label: h.t("giftCard.restaurantType"),
16
16
  data: []
17
17
  }
18
18
  }, r = w.value.hotels[0].places;
@@ -27,33 +27,33 @@ const $ = V("giftCard", () => {
27
27
  e = m.value[p.value].data[0];
28
28
  else if (g.value !== 0) {
29
29
  const r = I.value, n = m.value[g.value].data;
30
- n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((M) => {
31
- String(M.id) === String(r) && (e = M);
30
+ n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((z) => {
31
+ String(z.id) === String(r) && (e = z);
32
32
  });
33
33
  }
34
34
  return e;
35
- }), A = a(() => !(!u.value || !v.value || !(d.value.length >= 5) || !f.value || l.value === void 0)), L = a(() => !(s.value === o.InitialState && c.value)), N = a(() => !!(s.value === o.WaitingForResponse && c.value));
35
+ }), L = a(() => !(!u.value || !v.value || !(d.value.length >= 5) || !f.value || l.value === void 0)), q = a(() => !(s.value === o.InitialState && c.value)), N = a(() => !!(s.value === o.WaitingForResponse && c.value));
36
36
  async function j() {
37
37
  try {
38
- const e = (await x().get("/gift-card/metadata", {
38
+ const e = (await M().get("/gift-card/metadata", {
39
39
  params: {
40
- language: z()
40
+ language: O()
41
41
  }
42
42
  })).data;
43
43
  e.success !== void 0 ? P.value = !e.success : P.value = !1, w.value = e;
44
44
  } catch {
45
45
  G({
46
- message: y.t("alert.error.couldntFetchMetadata"),
46
+ message: h.t("alert.error.couldntFetchMetadata"),
47
47
  type: "warning"
48
48
  });
49
49
  }
50
50
  }
51
51
  async function B() {
52
- s.value = o.WaitingForResponse, c.value = !0, await x().post("/gift-card/create", {
52
+ s.value = o.WaitingForResponse, c.value = !0, await M().post("/gift-card/create", {
53
53
  termsOfserviceURL: window.location.origin,
54
54
  checkoutUrl: window.location.origin,
55
- currencyID: D.value,
56
- language: z(),
55
+ currencyID: x.value,
56
+ language: O(),
57
57
  amount: f.value,
58
58
  quantity: F.value,
59
59
  freeText: C.value,
@@ -67,7 +67,7 @@ const $ = V("giftCard", () => {
67
67
  placeType: l.value ? l.value.placeType : void 0,
68
68
  placeID: l.value ? l.value.id : void 0
69
69
  }).then((e) => {
70
- s.value = o.ReadyToPay, c.value = !1, E({
70
+ s.value = o.ReadyToPay, c.value = !1, D({
71
71
  callback: () => console.log("Callback!"),
72
72
  response: e.data
73
73
  });
@@ -89,15 +89,15 @@ const $ = V("giftCard", () => {
89
89
  media: i,
90
90
  placeId: I,
91
91
  placeType: g,
92
- showFormPage: W,
93
- showPaymentPage: _,
94
- showConfirmationPage: q,
92
+ showFormPage: U,
93
+ showPaymentPage: W,
94
+ showConfirmationPage: _,
95
95
  places: m,
96
- hasFilledForm: A,
96
+ hasFilledForm: L,
97
97
  hasForcedPlaceType: k,
98
98
  isWaitingForResponse: N,
99
- isMetadataAvailable: L,
100
- termsOfService: U,
99
+ isMetadataAvailable: q,
100
+ termsOfService: A,
101
101
  fetchMetadata: j,
102
102
  orderGiftCard: B,
103
103
  initialize: J
@@ -106,4 +106,4 @@ const $ = V("giftCard", () => {
106
106
  export {
107
107
  $ as u
108
108
  };
109
- //# sourceMappingURL=giftCard-Bm6bAv62.js.map
109
+ //# sourceMappingURL=giftCard-DvqomDap.js.map
Binary file