@konnectio/core 4.1.3 → 4.1.5

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 (60) hide show
  1. package/dist/{ActionField-CRqgWSz1.js → ActionField-ChprjIX4.js} +3 -3
  2. package/dist/ActionField-ChprjIX4.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DVrVFhw4.js → AvailabilitySkeleton-mvINfZn2.js} +110 -110
  4. package/dist/AvailabilitySkeleton-mvINfZn2.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CxfZdZ85.js} +336 -336
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CxfZdZ85.js.br +0 -0
  7. package/dist/{CheckoutWindow-DrZnthDH.js → CheckoutWindow-CLNkZ6L5.js} +185 -185
  8. package/dist/CheckoutWindow-CLNkZ6L5.js.br +0 -0
  9. package/dist/{ErrorMessage-b0lY3zUM.js → ErrorMessage-B2bEzPe8.js} +4 -4
  10. package/dist/ErrorMessage-B2bEzPe8.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-BPkfZcYX.js → EventAvailabilityForm-lyhGlFEw.js} +10 -10
  12. package/dist/EventAvailabilityForm-lyhGlFEw.js.br +0 -0
  13. package/dist/{Field-DnS91ODQ.js → Field-e-9M8dvO.js} +4 -4
  14. package/dist/Field-e-9M8dvO.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DnfMKN_W.js} +3 -3
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js → SelectField.vue_vue_type_style_index_0_lang-B8pRSFGj.js} +3149 -2797
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-B8pRSFGj.js.br +0 -0
  18. package/dist/{TermsOfService-B2ELKRPq.js → TermsOfService-DjvTX3TY.js} +4 -4
  19. package/dist/_-AlqhOnLa.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-DKkrP6vk.js → _.vue_vue_type_style_index_0_lang-z6uaEvdu.js} +3 -3
  21. package/dist/availability.js +16 -16
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +14 -14
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/core.css +1 -1
  26. package/dist/core.css.br +0 -0
  27. package/dist/deep-link.js +13 -13
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +447 -445
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +24 -24
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +56 -56
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/{giftCard-BsWa3VEY.js → giftCard-DqnhA4rm.js} +26 -26
  36. package/dist/giftCard-DqnhA4rm.js.br +0 -0
  37. package/dist/hotel.js +16 -16
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-By72FzQ9.js → masonry.plugin-DvmJbfT_.js} +306 -304
  40. package/dist/masonry.plugin-DvmJbfT_.js.br +0 -0
  41. package/dist/{mitt-Dh_4vPVI.js → mitt-CFrRmK9k.js} +30 -30
  42. package/dist/mitt-CFrRmK9k.js.br +0 -0
  43. package/dist/polyfill.js +1 -1
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/{style-CXMzdeVK.js → style-CLWqMWeG.js} +59 -59
  46. package/dist/style-CLWqMWeG.js.br +0 -0
  47. package/package.json +6 -5
  48. package/dist/ActionField-CRqgWSz1.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-DVrVFhw4.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js.br +0 -0
  51. package/dist/CheckoutWindow-DrZnthDH.js.br +0 -0
  52. package/dist/ErrorMessage-b0lY3zUM.js.br +0 -0
  53. package/dist/EventAvailabilityForm-BPkfZcYX.js.br +0 -0
  54. package/dist/Field-DnS91ODQ.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js.br +0 -0
  56. package/dist/_-DkNAaEsV.js +0 -5
  57. package/dist/giftCard-BsWa3VEY.js.br +0 -0
  58. package/dist/masonry.plugin-By72FzQ9.js.br +0 -0
  59. package/dist/mitt-Dh_4vPVI.js.br +0 -0
  60. package/dist/style-CXMzdeVK.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,13 +1,13 @@
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-Dh_4vPVI.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-CZYWu7x-.js";
3
- import { u as z } from "./giftCard-BsWa3VEY.js";
4
- import { _ as J } from "./_.vue_vue_type_style_index_0_lang-DKkrP6vk.js";
5
- import { A as K } from "./ActionField-CRqgWSz1.js";
6
- import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js";
7
- import { F as y } from "./Field-DnS91ODQ.js";
8
- import { E as Q } from "./ErrorMessage-b0lY3zUM.js";
9
- import { G as Y } from "./style-CXMzdeVK.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({
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, _ as R } from "./mitt-CFrRmK9k.js";
2
+ import { _ as x, y as C, h as j, I as h, o as O, s as W, C as q } from "./SelectField.vue_vue_type_style_index_0_lang-B8pRSFGj.js";
3
+ import { u as z } from "./giftCard-DqnhA4rm.js";
4
+ import { _ as J } from "./_.vue_vue_type_style_index_0_lang-z6uaEvdu.js";
5
+ import { A as K } from "./ActionField-ChprjIX4.js";
6
+ import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DnfMKN_W.js";
7
+ import { F as y } from "./Field-e-9M8dvO.js";
8
+ import { E as Q } from "./ErrorMessage-B2bEzPe8.js";
9
+ import { G as Y } from "./style-CLWqMWeG.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({
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__ */ A(nt, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], st = {
27
+ }), ot = /* @__PURE__ */ x(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__ */ x({
31
+ }, lt = /* @__PURE__ */ A({
32
32
  name: "GiftCardValidationLayout",
33
33
  __name: "GiftCardValidation",
34
34
  props: {
@@ -36,10 +36,10 @@ 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 = P(() => ({
39
+ const d = u, l = T(() => ({
40
40
  panelMaxWidth: "800px",
41
41
  ...d.styling
42
- })), { t: o } = T(), {
42
+ })), { t: o } = $(), {
43
43
  voucher: f,
44
44
  isValid: G,
45
45
  amount: E,
@@ -47,12 +47,12 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
47
47
  productName: w,
48
48
  isLoading: c
49
49
  } = k(C()), { currency: L, hasError: M } = k(j()), { fetchMetadata: X } = z(), { apply: _ } = C();
50
- return (B, n) => (s(), m(W, { styling: l.value }, {
50
+ return (P, n) => (s(), m(q, { styling: l.value }, {
51
51
  default: p(() => [
52
- (s(), m($, null, {
52
+ (s(), m(B, null, {
53
53
  default: p(() => [
54
54
  a(J, {
55
- "access-token": B.accessToken,
55
+ "access-token": P.accessToken,
56
56
  callback: e(X)
57
57
  }, {
58
58
  default: p(() => [
@@ -117,10 +117,10 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
117
117
  t("span", null, i(e(w)), 1)
118
118
  ]),
119
119
  t("td", null, [
120
- t("span", null, i(e(q)(e(E), e(L))), 1)
120
+ t("span", null, i(e(O)(e(E), e(L))), 1)
121
121
  ]),
122
122
  t("td", null, [
123
- t("span", null, i(e(O)(e(S))), 1)
123
+ t("span", null, i(e(W)(e(S))), 1)
124
124
  ])
125
125
  ])
126
126
  ])
@@ -139,8 +139,8 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
139
139
  _: 1
140
140
  }, 8, ["styling"]));
141
141
  }
142
- }), V = /* @__PURE__ */ A(lt, [["__scopeId", "data-v-ca768ef6"]]), rt = N(), dt = R();
143
- class ct extends HTMLElement {
142
+ }), V = /* @__PURE__ */ x(lt, [["__scopeId", "data-v-ca768ef6"]]), rt = N(), dt = R, ct = dt();
143
+ class pt extends HTMLElement {
144
144
  vueApp;
145
145
  constructor() {
146
146
  super();
@@ -150,13 +150,13 @@ class ct extends HTMLElement {
150
150
  }
151
151
  connectedCallback() {
152
152
  const d = U(V, this.attributes);
153
- this.vueApp = F(V, d), this.vueApp.provide("emitter", dt), this.vueApp.use(rt), this.vueApp.use(H), this.vueApp.use(Y);
153
+ this.vueApp = F(V, d), this.vueApp.provide("emitter", ct), this.vueApp.use(rt), this.vueApp.use(H), this.vueApp.use(Y);
154
154
  const l = document.createElement("div");
155
155
  this.vueApp.mount(l), this.appendChild(l.children[0]);
156
156
  }
157
157
  }
158
- window.customElements.define("konnectio-gift-card-validation", ct);
158
+ window.customElements.define("konnectio-gift-card-validation", pt);
159
159
  export {
160
- ct as default
160
+ pt as default
161
161
  };
162
162
  //# sourceMappingURL=gift-card-validation.js.map
Binary file
package/dist/gift-card.js CHANGED
@@ -1,14 +1,14 @@
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-Dh_4vPVI.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-CZYWu7x-.js";
3
- import { G as Ve } from "./style-CXMzdeVK.js";
4
- import { u as I } from "./giftCard-BsWa3VEY.js";
5
- import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-DKkrP6vk.js";
6
- import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-DrZnthDH.js";
7
- import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js";
8
- import { F as U } from "./Field-DnS91ODQ.js";
9
- import { E as Te } from "./ErrorMessage-b0lY3zUM.js";
10
- import { S as Ge } from "./TermsOfService-B2ELKRPq.js";
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({
1
+ import { d as G, u as q, 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 L, h as te, C as oe, s as z, D as ne, o as ie, S as se, E as A, G as S, F as re, z as de, A as v, k as ue, l as ce, m as pe, p as me, _ as fe } from "./mitt-CFrRmK9k.js";
2
+ import { a as ve, d as T, x as be, _ as x, h as he, c as _e, L as ke, T as M, g as ge, C as ye, v as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-B8pRSFGj.js";
3
+ import { G as Ve } from "./style-CLWqMWeG.js";
4
+ import { u as I } from "./giftCard-DqnhA4rm.js";
5
+ import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-z6uaEvdu.js";
6
+ import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-CLNkZ6L5.js";
7
+ import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DnfMKN_W.js";
8
+ import { F as U } from "./Field-e-9M8dvO.js";
9
+ import { E as Te } from "./ErrorMessage-B2bEzPe8.js";
10
+ import { S as Ge } from "./TermsOfService-DjvTX3TY.js";
11
+ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-selector-wrapper" }, Le = { class: "media-selector-tools" }, qe = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, Ie = ["src"], xe = /* @__PURE__ */ G({
12
12
  __name: "MediaSelector",
13
13
  props: {
14
14
  modelValue: {},
@@ -19,11 +19,11 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
19
19
  },
20
20
  emits: ["update:modelValue"],
21
21
  setup(b, { emit: r }) {
22
- const p = r, o = b, { t: u } = L(), { display: h } = ve(), f = O(), k = Y(() => o.modelValue.base64 !== "");
22
+ const p = r, o = b, { t: u } = q(), { display: h } = ve(), f = O(), _ = Y(() => o.modelValue.base64 !== "");
23
23
  function V(a) {
24
24
  p("update:modelValue", a);
25
25
  }
26
- function H() {
26
+ function D() {
27
27
  V({
28
28
  base64: "",
29
29
  name: "",
@@ -33,9 +33,9 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
33
33
  function $() {
34
34
  f.value && f.value.click();
35
35
  }
36
- function D(a, d) {
37
- const [g, B] = [a.name, a.type], _ = new FileReader();
38
- _.onload = function(P) {
36
+ function H(a, d) {
37
+ const [g, B] = [a.name, a.type], k = new FileReader();
38
+ k.onload = function(P) {
39
39
  if (P.target) {
40
40
  const R = P.target.result;
41
41
  d({ base64: R, name: g, type: B });
@@ -44,11 +44,11 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
44
44
  message: u("imageUploadError"),
45
45
  type: "error"
46
46
  });
47
- }, _.readAsDataURL(a);
47
+ }, k.readAsDataURL(a);
48
48
  }
49
49
  async function w() {
50
50
  let a;
51
- (a = f.value.files) instanceof FileList && D(a[0], V);
51
+ (a = f.value.files) instanceof FileList && H(a[0], V);
52
52
  }
53
53
  return (a, d) => (s(), y(be, {
54
54
  label: a.label,
@@ -67,8 +67,8 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
67
67
  onChange: d[0] || (d[0] = (g) => w())
68
68
  }, null, 40, Se),
69
69
  l("div", Me, [
70
- l("ul", qe, [
71
- k.value ? m("", !0) : (s(), c("li", Le, [
70
+ l("ul", Le, [
71
+ _.value ? m("", !0) : (s(), c("li", qe, [
72
72
  t(T, {
73
73
  label: e(u)("uploadFile"),
74
74
  type: "button",
@@ -77,7 +77,7 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
77
77
  onClickEvent: d[1] || (d[1] = (g) => $())
78
78
  }, null, 8, ["label", "icon-color"])
79
79
  ])),
80
- k.value ? (s(), c("li", Be, [
80
+ _.value ? (s(), c("li", Be, [
81
81
  t(T, {
82
82
  label: e(u)("replaceFile"),
83
83
  type: "button",
@@ -86,20 +86,20 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
86
86
  onClickEvent: d[2] || (d[2] = (g) => $())
87
87
  }, null, 8, ["label", "icon-color"])
88
88
  ])) : m("", !0),
89
- k.value ? (s(), c("li", Re, [
89
+ _.value ? (s(), c("li", Re, [
90
90
  t(T, {
91
91
  label: e(u)("removeFile"),
92
92
  type: "button",
93
93
  icon: "trash-alt",
94
94
  "icon-color": a.iconColor,
95
- onClickEvent: d[3] || (d[3] = (g) => H())
95
+ onClickEvent: d[3] || (d[3] = (g) => D())
96
96
  }, null, 8, ["label", "icon-color"])
97
97
  ])) : m("", !0)
98
98
  ]),
99
99
  l("div", {
100
100
  class: J([
101
101
  "media-selector-previewer",
102
- { opened: k.value }
102
+ { opened: _.value }
103
103
  ])
104
104
  }, [
105
105
  a.modelValue ? (s(), c("img", {
@@ -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 z(b) {
117
+ function W(b) {
118
118
  const r = b;
119
119
  r.__i18n = r.__i18n || [], r.__i18n.push({
120
120
  locale: "",
@@ -134,12 +134,12 @@ function z(b) {
134
134
  }
135
135
  });
136
136
  }
137
- typeof z == "function" && z(xe);
138
- const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ G({
137
+ typeof W == "function" && W(xe);
138
+ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ G({
139
139
  __name: "GiftCardSkeleton",
140
140
  setup(b) {
141
- return (r, p) => (s(), c("div", He, [
142
- l("div", De, [
141
+ return (r, p) => (s(), c("div", De, [
142
+ l("div", He, [
143
143
  t(U),
144
144
  t(U),
145
145
  t(U),
@@ -149,22 +149,22 @@ 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"]]), We = { class: "konnectio-accept-terms" }, ze = /* @__PURE__ */ G({
152
+ }), je = /* @__PURE__ */ x(Ne, [["__scopeId", "data-v-ba3efaa1"]]), ze = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ G({
153
153
  __name: "_",
154
154
  props: {
155
155
  content: {},
156
156
  buttonLabel: {}
157
157
  },
158
158
  setup(b) {
159
- const { t: r } = L(), p = O(!1);
160
- return (o, u) => (s(), c("div", We, [
159
+ const { t: r } = q(), p = O(!1);
160
+ return (o, u) => (s(), c("div", ze, [
161
161
  t(e(oe), {
162
162
  keypath: "general.termsAndConditionsNotice",
163
163
  tag: "span",
164
164
  scope: "global"
165
165
  }, {
166
166
  button: C(() => [
167
- l("i", null, '"' + q(o.buttonLabel) + '"', 1)
167
+ l("i", null, '"' + L(o.buttonLabel) + '"', 1)
168
168
  ]),
169
169
  terms: C(() => [
170
170
  l("a", {
@@ -172,7 +172,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
172
172
  target: "_blank",
173
173
  onClick: u[0] || (u[0] = te((h) => p.value = !0, ["prevent"]))
174
174
  }, [
175
- l("span", null, q(e(r)("general.termsAndConditions")), 1)
175
+ l("span", null, L(e(r)("general.termsAndConditions")), 1)
176
176
  ])
177
177
  ]),
178
178
  _: 1
@@ -184,10 +184,10 @@ 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(ze, [["__scopeId", "data-v-689c045a"]]), Oe = /* @__PURE__ */ G({
187
+ }), Ke = /* @__PURE__ */ x(We, [["__scopeId", "data-v-689c045a"]]), Oe = /* @__PURE__ */ G({
188
188
  __name: "GiftCard",
189
189
  setup(b) {
190
- const { t: r } = L(), p = I();
190
+ const { t: r } = q(), p = I();
191
191
  return (o, u) => (s(), y(Ke, {
192
192
  content: e(p).termsOfService,
193
193
  "button-label": e(r)("giftCard.orderGiftCard")
@@ -220,25 +220,25 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
220
220
  const r = b, p = Y(() => ({
221
221
  panelMaxWidth: "800px",
222
222
  ...r.styling
223
- })), { t: o } = L(), {
223
+ })), { t: o } = q(), {
224
224
  name: u,
225
225
  email: h,
226
226
  phone: f,
227
- value: k,
227
+ value: _,
228
228
  remark: V,
229
- showValue: H,
229
+ showValue: D,
230
230
  quantity: $,
231
- media: D,
231
+ media: H,
232
232
  placeId: w,
233
233
  placeType: a,
234
234
  showFormPage: d,
235
235
  showPaymentPage: g,
236
236
  showConfirmationPage: B,
237
- places: _,
237
+ places: k,
238
238
  hasFilledForm: P,
239
239
  hasForcedPlaceType: R,
240
240
  isWaitingForResponse: F
241
- } = W(I()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = I(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = W(he());
241
+ } = z(I()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = I(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = z(he());
242
242
  return ne(a, () => {
243
243
  w.value = void 0;
244
244
  }), ie(() => {
@@ -265,7 +265,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
265
265
  }, [
266
266
  l("div", Je, [
267
267
  l("h2", Qe, [
268
- l("span", null, q(e(o)("giftCard.title")), 1)
268
+ l("span", null, L(e(o)("giftCard.title")), 1)
269
269
  ]),
270
270
  l("div", Xe, [
271
271
  A(l("div", Ze, [
@@ -280,13 +280,13 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
280
280
  }, null, 8, el),
281
281
  l("form", null, [
282
282
  e(R) ? m("", !0) : (s(), c("div", ll, [
283
- e(_) ? (s(), c("div", al, [
283
+ e(k) ? (s(), c("div", al, [
284
284
  l("label", tl, [
285
- l("span", null, q(e(o)("giftCard.selectType")), 1)
285
+ l("span", null, L(e(o)("giftCard.selectType")), 1)
286
286
  ]),
287
287
  l("div", ol, [
288
288
  l("ul", null, [
289
- (s(!0), c(re, null, de(e(_), (i, j) => (s(), c("li", { key: j }, [
289
+ (s(!0), c(re, null, de(e(k), (i, j) => (s(), c("li", { key: j }, [
290
290
  t(Fe, {
291
291
  modelValue: e(a),
292
292
  "onUpdate:modelValue": n[0] || (n[0] = (ae) => v(a) ? a.value = ae : null),
@@ -297,18 +297,18 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
297
297
  }, null, 8, ["modelValue", "val", "label"])
298
298
  ]))), 128))
299
299
  ]),
300
- e(_)[e(a)] && e(_)[e(a)].data.length > 1 ? (s(), y(ke, {
300
+ e(k)[e(a)] && e(k)[e(a)].data.length > 1 ? (s(), y(_e, {
301
301
  key: 0,
302
302
  modelValue: e(w),
303
303
  "onUpdate:modelValue": n[1] || (n[1] = (i) => v(w) ? w.value = i : null),
304
304
  placeholder: e(o)("giftCard.selectPlacePlaceholder"),
305
- options: e(_)[e(a)].data,
305
+ options: e(k)[e(a)].data,
306
306
  labelKey: "name",
307
307
  valueKey: "id",
308
308
  required: ""
309
309
  }, null, 8, ["modelValue", "placeholder", "options"])) : m("", !0)
310
310
  ])
311
- ])) : (s(), y(_e, { key: 1 }))
311
+ ])) : (s(), y(ke, { key: 1 }))
312
312
  ])),
313
313
  t(M, {
314
314
  modelValue: e(u),
@@ -341,8 +341,8 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
341
341
  required: ""
342
342
  }, null, 8, ["modelValue", "label", "placeholder"]),
343
343
  t(M, {
344
- modelValue: e(k),
345
- "onUpdate:modelValue": n[5] || (n[5] = (i) => v(k) ? k.value = i : null),
344
+ modelValue: e(_),
345
+ "onUpdate:modelValue": n[5] || (n[5] = (i) => v(_) ? _.value = i : null),
346
346
  type: "number",
347
347
  name: "value",
348
348
  label: e(o)("giftCard.value"),
@@ -430,8 +430,8 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
430
430
  _: 1
431
431
  }, 8, ["styling"]));
432
432
  }
433
- }), K = /* @__PURE__ */ x(cl, [["__scopeId", "data-v-aa7653cf"]]), pl = ue(), ml = fe();
434
- class fl extends HTMLElement {
433
+ }), K = /* @__PURE__ */ x(cl, [["__scopeId", "data-v-aa7653cf"]]), pl = ue(), ml = fe, fl = ml();
434
+ class vl extends HTMLElement {
435
435
  vueApp;
436
436
  constructor() {
437
437
  super();
@@ -441,13 +441,13 @@ class fl extends HTMLElement {
441
441
  }
442
442
  connectedCallback() {
443
443
  const r = ce(K, this.attributes);
444
- this.vueApp = pe(K, r), this.vueApp.provide("emitter", ml), this.vueApp.use(pl), this.vueApp.use(me), this.vueApp.use(Ve), this.vueApp.use(Ce, { bootstrap: !0 });
444
+ this.vueApp = pe(K, r), this.vueApp.provide("emitter", fl), this.vueApp.use(pl), this.vueApp.use(me), this.vueApp.use(Ve), this.vueApp.use(Ce, { bootstrap: !0 });
445
445
  const p = document.createElement("div");
446
446
  this.vueApp.mount(p), this.appendChild(p.children[0]);
447
447
  }
448
448
  }
449
- window.customElements.define("konnectio-gift-card", fl);
449
+ window.customElements.define("konnectio-gift-card", vl);
450
450
  export {
451
- fl as default
451
+ vl as default
452
452
  };
453
453
  //# sourceMappingURL=gift-card.js.map
Binary file
@@ -1,18 +1,18 @@
1
- import { I as V, s as H, r as t, c as a, J as h } from "./mitt-Dh_4vPVI.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-CZYWu7x-.js";
1
+ import { H as V, s as J, r as t, c as a, I as y } from "./mitt-CFrRmK9k.js";
2
+ import { z as K, a as Q, h as z, G as o, A as h, S, D as E, w as O, E as X } from "./SelectField.vue_vue_type_style_index_0_lang-B8pRSFGj.js";
3
3
  const $ = V("giftCard", () => {
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({
4
+ const { pay: D } = K(), { display: G } = Q(), { metaData: w, currencyId: M, hasError: P } = J(z()), x = z(), 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(""), T = t(1), F = t(!0), b = 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] : {}), 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(() => {
8
+ }), C = t(void 0), g = t(0), c = t(!1), p = t(0), I = a(() => x.metaData.hotels[0]), A = a(() => I.value.termsOfService ? I.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: h.t("giftCard.hotelType"),
11
+ label: y.t("giftCard.hotelType"),
12
12
  data: []
13
13
  },
14
14
  2: {
15
- label: h.t("giftCard.restaurantType"),
15
+ label: y.t("giftCard.restaurantType"),
16
16
  data: []
17
17
  }
18
18
  }, r = w.value.hotels[0].places;
@@ -21,21 +21,21 @@ const $ = V("giftCard", () => {
21
21
  }), Object.fromEntries(
22
22
  Object.entries(e).filter(([, n]) => n.data.length > 0)
23
23
  );
24
- }), k = a(() => p.value !== 0), l = a(() => {
24
+ }), R = a(() => p.value !== 0), l = a(() => {
25
25
  let e;
26
- if (k.value)
26
+ if (R.value)
27
27
  e = m.value[p.value].data[0];
28
28
  else if (g.value !== 0) {
29
- const r = I.value, n = m.value[g.value].data;
30
- n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((z) => {
31
- String(z.id) === String(r) && (e = z);
29
+ const r = C.value, n = m.value[g.value].data;
30
+ n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((k) => {
31
+ String(k.id) === String(r) && (e = k);
32
32
  });
33
33
  }
34
34
  return e;
35
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 M().get("/gift-card/metadata", {
38
+ const e = (await E().get("/gift-card/metadata", {
39
39
  params: {
40
40
  language: O()
41
41
  }
@@ -43,21 +43,21 @@ const $ = V("giftCard", () => {
43
43
  e.success !== void 0 ? P.value = !e.success : P.value = !1, w.value = e;
44
44
  } catch {
45
45
  G({
46
- message: h.t("alert.error.couldntFetchMetadata"),
46
+ message: y.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 M().post("/gift-card/create", {
52
+ s.value = o.WaitingForResponse, c.value = !0, await E().post("/gift-card/create", {
53
53
  termsOfserviceURL: window.location.origin,
54
54
  checkoutUrl: window.location.origin,
55
- currencyID: x.value,
55
+ currencyID: M.value,
56
56
  language: O(),
57
57
  amount: f.value,
58
- quantity: F.value,
59
- freeText: C.value,
60
- showPrice: b.value,
58
+ quantity: T.value,
59
+ freeText: b.value,
60
+ showPrice: F.value,
61
61
  contactName: u.value,
62
62
  contactEmail: v.value,
63
63
  contactPhone: d.value,
@@ -73,7 +73,7 @@ const $ = V("giftCard", () => {
73
73
  });
74
74
  });
75
75
  }
76
- function J(e) {
76
+ function H(e) {
77
77
  e && (p.value = e);
78
78
  }
79
79
  return {
@@ -83,27 +83,27 @@ const $ = V("giftCard", () => {
83
83
  email: v,
84
84
  phone: d,
85
85
  value: f,
86
- remark: C,
87
- showValue: b,
88
- quantity: F,
86
+ remark: b,
87
+ showValue: F,
88
+ quantity: T,
89
89
  media: i,
90
- placeId: I,
90
+ placeId: C,
91
91
  placeType: g,
92
92
  showFormPage: U,
93
93
  showPaymentPage: W,
94
94
  showConfirmationPage: _,
95
95
  places: m,
96
96
  hasFilledForm: L,
97
- hasForcedPlaceType: k,
97
+ hasForcedPlaceType: R,
98
98
  isWaitingForResponse: N,
99
99
  isMetadataAvailable: q,
100
100
  termsOfService: A,
101
101
  fetchMetadata: j,
102
102
  orderGiftCard: B,
103
- initialize: J
103
+ initialize: H
104
104
  };
105
105
  });
106
106
  export {
107
107
  $ as u
108
108
  };
109
- //# sourceMappingURL=giftCard-BsWa3VEY.js.map
109
+ //# sourceMappingURL=giftCard-DqnhA4rm.js.map
Binary file
package/dist/hotel.js CHANGED
@@ -1,12 +1,12 @@
1
- import { d as Tt, u as ie, s as $t, r as ct, a as T, b as lt, z as ir, i as h, w as Y, g as M, e as v, t as I, G as ni, H as Oi, f as B, j as U, A as It, F as bt, v as ro, B as Mt, h as Ss, D as nr, K as or, c as ft, x as sr, L as Ie, o as ne, M as si, N as fe, O as Be, P as ar, Q as ce, R as go, E as oi, U as yo, V as rr, n as mn, S as lr, W as ur, X as hr, k as cr, l as dr, m as fr, p as pr, q as mr } from "./mitt-Dh_4vPVI.js";
2
- import { h as Oe, b as ke, u as Ii, I as Ot, s as Qt, k as Si, l as lo, q as he, o as ee, _ as pe, c as gn, d as te, F as As, g as Ai, B as Ms, a as Os, H as cs, T as ye, x as _r, J as vr, C as gr, p as ds, K as fs, r as ps, t as ms, v as yr } from "./SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js";
3
- import { G as br } from "./style-CXMzdeVK.js";
4
- import { R as wr, B as yn, L as kr, S as Pr, M as Lr, b as uo, C as Tr, T as xr, V as Cr, a as Sr } from "./masonry.plugin-By72FzQ9.js";
5
- import { A as Ar, H as Mr } from "./AvailabilitySkeleton-DVrVFhw4.js";
6
- import { S as Or } from "./TermsOfService-B2ELKRPq.js";
7
- import { C as fo, B as Is, P as Ir, a as Br } from "./CheckoutWindow-DrZnthDH.js";
1
+ import { d as Tt, u as ie, s as $t, r as ct, a as T, b as lt, y as ir, i as h, w as Y, g as M, e as v, t as I, E as ni, G as Oi, f as B, j as U, z as It, F as bt, q as ro, A as Mt, h as Ss, C as nr, J as or, c as ft, v as sr, K as Ie, o as ne, L as si, M as fe, N as Be, O as ar, P as ce, Q as go, D as oi, R as yo, U as rr, n as mn, S as lr, V as ur, W as hr, k as cr, l as dr, m as fr, p as pr, _ as mr } from "./mitt-CFrRmK9k.js";
2
+ import { h as Oe, b as ke, u as Ii, I as Ot, s as Qt, k as Si, l as lo, q as he, o as ee, _ as pe, c as gn, d as te, F as As, g as Ai, B as Ms, a as Os, H as cs, T as ye, x as _r, J as vr, C as gr, p as ds, K as fs, r as ps, t as ms, v as yr } from "./SelectField.vue_vue_type_style_index_0_lang-B8pRSFGj.js";
3
+ import { G as br } from "./style-CLWqMWeG.js";
4
+ import { R as wr, B as yn, L as kr, S as Pr, M as Lr, b as uo, C as Tr, T as xr, V as Cr, a as Sr } from "./masonry.plugin-DvmJbfT_.js";
5
+ import { A as Ar, H as Mr } from "./AvailabilitySkeleton-mvINfZn2.js";
6
+ import { S as Or } from "./TermsOfService-DjvTX3TY.js";
7
+ import { C as fo, B as Is, P as Ir, a as Br } from "./CheckoutWindow-CLNkZ6L5.js";
8
8
  import { g as Er } from "./_commonjsHelpers-DaMA6jEr.js";
9
- import { _ as Bs } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js";
9
+ import { _ as Bs } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CxfZdZ85.js";
10
10
  function zr(r, a) {
11
11
  for (var s = 0; s < a.length; s++) {
12
12
  const l = a[s];
@@ -8010,7 +8010,7 @@ const Gl = /* @__PURE__ */ Tt({
8010
8010
  _: 1
8011
8011
  }, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
8012
8012
  }
8013
- }), Kl = /* @__PURE__ */ pe(Gl, [["__scopeId", "data-v-c263aa34"]]), Yl = { class: "konnectio-template-side-panel" }, Jl = { class: "konnectio-template-side-panel-listings" }, Xl = /* @__PURE__ */ Tt({
8013
+ }), Kl = /* @__PURE__ */ pe(Gl, [["__scopeId", "data-v-2bc12cc9"]]), Yl = { class: "konnectio-template-side-panel" }, Jl = { class: "konnectio-template-side-panel-listings" }, Xl = /* @__PURE__ */ Tt({
8014
8014
  __name: "Template",
8015
8015
  props: {
8016
8016
  title: {},
@@ -8194,7 +8194,7 @@ const Gl = /* @__PURE__ */ Tt({
8194
8194
  _: 1
8195
8195
  }, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
8196
8196
  }
8197
- }), su = /* @__PURE__ */ pe(ou, [["__scopeId", "data-v-bbd1f7b5"]]), ws = /* @__PURE__ */ Tt({
8197
+ }), su = /* @__PURE__ */ pe(ou, [["__scopeId", "data-v-47edd09f"]]), ws = /* @__PURE__ */ Tt({
8198
8198
  __name: "TimeField",
8199
8199
  props: {
8200
8200
  modelValue: {},
@@ -8452,7 +8452,7 @@ const ih = /* @__PURE__ */ Tt({
8452
8452
  styling: {}
8453
8453
  },
8454
8454
  setup(r) {
8455
- const a = ur(() => import("./_-DkNAaEsV.js")), s = r, { t: l } = ie(), {
8455
+ const a = ur(() => import("./_-AlqhOnLa.js")), s = r, { t: l } = ie(), {
8456
8456
  currentLocation: c,
8457
8457
  templateID: d,
8458
8458
  templateAddons: p,
@@ -9912,8 +9912,8 @@ function Wh(r = {}) {
9912
9912
  const a = /* @__PURE__ */ Rh(r);
9913
9913
  return a.use(Hh), a.install = Uh(a), a;
9914
9914
  }
9915
- const $h = cr(), jh = Wh(), qh = mr();
9916
- class Gh extends HTMLElement {
9915
+ const $h = cr(), jh = Wh(), qh = mr, Gh = qh();
9916
+ class Kh extends HTMLElement {
9917
9917
  vueApp;
9918
9918
  constructor() {
9919
9919
  super();
@@ -9923,13 +9923,13 @@ class Gh extends HTMLElement {
9923
9923
  }
9924
9924
  connectedCallback() {
9925
9925
  const a = dr(ks, this.attributes);
9926
- this.vueApp = fr(ks, a), this.vueApp.provide("emitter", qh), this.vueApp.use(jh), this.vueApp.use($h), this.vueApp.use(Cr), this.vueApp.use(pr), this.vueApp.use(Sr), this.vueApp.use(br), this.vueApp.use(yr, { bootstrap: !0 });
9926
+ this.vueApp = fr(ks, a), this.vueApp.provide("emitter", Gh), this.vueApp.use(jh), this.vueApp.use($h), this.vueApp.use(Cr), this.vueApp.use(pr), this.vueApp.use(Sr), this.vueApp.use(br), this.vueApp.use(yr, { bootstrap: !0 });
9927
9927
  const s = document.createElement("div");
9928
9928
  this.vueApp.mount(s), this.appendChild(s.children[0]);
9929
9929
  }
9930
9930
  }
9931
- window.customElements.define("konnectio-hotel", Gh);
9931
+ window.customElements.define("konnectio-hotel", Kh);
9932
9932
  export {
9933
- Gh as default
9933
+ Kh as default
9934
9934
  };
9935
9935
  //# sourceMappingURL=hotel.js.map
package/dist/hotel.js.br CHANGED
Binary file