@konnectio/core 4.0.58 → 4.0.60

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 (69) hide show
  1. package/dist/{ActionField-SljqGQe4.js → ActionField-CVdLZg_F.js} +3 -3
  2. package/dist/ActionField-CVdLZg_F.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-VxFPbzvu.js → AvailabilitySkeleton-D8hRAFp-.js} +22 -23
  4. package/dist/AvailabilitySkeleton-D8hRAFp-.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B3_PxvDx.js +8668 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B3_PxvDx.js.br +0 -0
  7. package/dist/{CheckoutWindow-BsR9w1sU.js → CheckoutWindow-DUl3c-Tr.js} +40 -40
  8. package/dist/CheckoutWindow-DUl3c-Tr.js.br +0 -0
  9. package/dist/{ErrorMessage-Bv8Sjw4c.js → ErrorMessage-Dt3tVome.js} +3 -3
  10. package/dist/ErrorMessage-Dt3tVome.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-Cjn9eC1i.js → EventAvailabilityForm-DqV-7Yhd.js} +5 -5
  12. package/dist/EventAvailabilityForm-DqV-7Yhd.js.br +0 -0
  13. package/dist/{Field-Dv-tx0DG.js → Field-Bir0Q2Cn.js} +3 -3
  14. package/dist/Field-Bir0Q2Cn.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BRY3Z3U3.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bz5ezFs1.js} +2313 -2421
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bz5ezFs1.js.br +0 -0
  17. package/dist/TermsOfService-Bi-4Y-Eu.js +36 -0
  18. package/dist/TermsOfService-Bi-4Y-Eu.js.br +0 -0
  19. package/dist/{_-3oY9YKKN.js → _-BaPwdDXA.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-Cm6NL02H.js → _.vue_vue_type_style_index_0_lang-9DUPh09R.js} +5 -5
  21. package/dist/_.vue_vue_type_style_index_0_lang-9DUPh09R.js.br +0 -0
  22. package/dist/{_commonjsHelpers-BljBhQM7.js → _commonjsHelpers-4acPj2Ir.js} +2 -2
  23. package/dist/{_sentry-release-injection-file-D0NAFAC9.js → _sentry-release-injection-file-CSY2pTJK.js} +4169 -4273
  24. package/dist/_sentry-release-injection-file-CSY2pTJK.js.br +0 -0
  25. package/dist/availability.js +7 -7
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +2 -2
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +211 -210
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +22 -21
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +60 -59
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-DrbtM1MV.js +126 -0
  36. package/dist/giftCard-DrbtM1MV.js.br +0 -0
  37. package/dist/hotel.js +26 -25
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/masonry.plugin-CoSanVEe.js +10375 -0
  40. package/dist/masonry.plugin-CoSanVEe.js.br +0 -0
  41. package/dist/{mitt-bU37KQKU.js → mitt-Ciy52c7q.js} +96 -96
  42. package/dist/mitt-Ciy52c7q.js.br +0 -0
  43. package/dist/polyfill.js +16983 -14766
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style-Bf1WJ5oD.js +2328 -0
  46. package/dist/style-Bf1WJ5oD.js.br +0 -0
  47. package/dist/style.css +1 -1
  48. package/dist/style.css.br +0 -0
  49. package/package.json +18 -18
  50. package/dist/ActionField-SljqGQe4.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-VxFPbzvu.js.br +0 -0
  52. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CrPwaYxX.js +0 -8652
  53. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CrPwaYxX.js.br +0 -0
  54. package/dist/CheckoutWindow-BsR9w1sU.js.br +0 -0
  55. package/dist/ErrorMessage-Bv8Sjw4c.js.br +0 -0
  56. package/dist/EventAvailabilityForm-Cjn9eC1i.js.br +0 -0
  57. package/dist/Field-Dv-tx0DG.js.br +0 -0
  58. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BRY3Z3U3.js.br +0 -0
  59. package/dist/TermsOfService-DudxcmqT.js +0 -36
  60. package/dist/TermsOfService-DudxcmqT.js.br +0 -0
  61. package/dist/_.vue_vue_type_style_index_0_lang-Cm6NL02H.js.br +0 -0
  62. package/dist/_sentry-release-injection-file-D0NAFAC9.js.br +0 -0
  63. package/dist/giftCard-vxErFkoV.js +0 -134
  64. package/dist/giftCard-vxErFkoV.js.br +0 -0
  65. package/dist/masonry.plugin-BKhDyXyM.js +0 -12766
  66. package/dist/masonry.plugin-BKhDyXyM.js.br +0 -0
  67. package/dist/mitt-bU37KQKU.js.br +0 -0
  68. package/dist/tracing-CMlyHB3J.js +0 -2537
  69. package/dist/tracing-CMlyHB3J.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,19 +1,20 @@
1
- import { d as S, a as f, g as V, e as t, f as o, c as X, b as _, w as v, S as P, u as e, t as u, v as w, i as T, h as $, k as B } from "./_sentry-release-injection-file-D0NAFAC9.js";
2
- import { u as N, s as x, c as U, i as O, m as z } from "./mitt-bU37KQKU.js";
3
- import { u as F, c as H } from "./giftCard-vxErFkoV.js";
4
- import { E as k, _ as L, q as E, d as j, I as C, h as R, s as Z, C as q } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BRY3Z3U3.js";
5
- import { _ as W } from "./_.vue_vue_type_style_index_0_lang-Cm6NL02H.js";
6
- import { A as J } from "./ActionField-SljqGQe4.js";
7
- import { F as I } from "./Field-Dv-tx0DG.js";
8
- import { E as K } from "./ErrorMessage-Bv8Sjw4c.js";
1
+ import { d as I, a as f, g as V, e as t, f as o, c as X, b as _, w as v, S as P, u as e, t as u, v as w, i as T, h as $, k as B } from "./_sentry-release-injection-file-CSY2pTJK.js";
2
+ import { u as N, s as x, c as U, i as O, m as z } from "./mitt-Ciy52c7q.js";
3
+ import { E as k, _ as L, q as E, d as F, I as C, h as H, s as j, C as R } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bz5ezFs1.js";
4
+ import { u as Z } from "./giftCard-DrbtM1MV.js";
5
+ import { _ as q } from "./_.vue_vue_type_style_index_0_lang-9DUPh09R.js";
6
+ import { A as W } from "./ActionField-CVdLZg_F.js";
7
+ import { F as G } from "./Field-Bir0Q2Cn.js";
8
+ import { E as J } from "./ErrorMessage-Dt3tVome.js";
9
+ import { G as K } from "./style-Bf1WJ5oD.js";
9
10
  (function() {
10
11
  try {
11
12
  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] = "785de1df-b1fe-4e38-a3dc-211658ce5df4", r._sentryDebugIdIdentifier = "sentry-dbid-785de1df-b1fe-4e38-a3dc-211658ce5df4");
13
+ s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "0689299a-3186-428b-9ecd-97d4447dbc26", r._sentryDebugIdIdentifier = "sentry-dbid-0689299a-3186-428b-9ecd-97d4447dbc26");
13
14
  } catch {
14
15
  }
15
16
  })();
16
- const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-validation-skeleton-form" }, tt = { class: "gift-card-validation-skeleton-text" }, et = { class: "gift-card-validation-skeleton-input" }, at = /* @__PURE__ */ S({
17
+ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-validation-skeleton-form" }, tt = { class: "gift-card-validation-skeleton-text" }, et = { class: "gift-card-validation-skeleton-input" }, at = /* @__PURE__ */ I({
17
18
  __name: "GiftCardValidationSkeleton",
18
19
  setup(r) {
19
20
  return (s, c) => (f(), V("div", Q, [
@@ -24,8 +25,8 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
24
25
  o(k, { height: "15px" })
25
26
  ]),
26
27
  t("div", et, [
27
- o(I),
28
- o(I, { "no-label": "" })
28
+ o(G),
29
+ o(G, { "no-label": "" })
29
30
  ])
30
31
  ])
31
32
  ]));
@@ -34,7 +35,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
34
35
  key: 0,
35
36
  id: "konnectio-gift-card-validation-resume",
36
37
  class: "konnectio-panel"
37
- }, it = /* @__PURE__ */ S({
38
+ }, it = /* @__PURE__ */ I({
38
39
  name: "GiftCardValidationLayout",
39
40
  __name: "GiftCardValidation",
40
41
  props: {
@@ -52,17 +53,17 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
52
53
  expirationDate: b,
53
54
  productName: a,
54
55
  isLoading: n
55
- } = x(E()), { currency: l, hasError: G } = x(j()), { fetchMetadata: D } = F(), { apply: A } = E();
56
- return (M, d) => (f(), _(q, { styling: c.value }, {
56
+ } = x(E()), { currency: l, hasError: S } = x(F()), { fetchMetadata: D } = Z(), { apply: A } = E();
57
+ return (M, d) => (f(), _(R, { styling: c.value }, {
57
58
  default: v(() => [
58
59
  (f(), _(P, null, {
59
60
  default: v(() => [
60
- o(W, {
61
+ o(q, {
61
62
  "access-token": M.accessToken,
62
63
  callback: e(D)
63
64
  }, {
64
65
  default: v(() => [
65
- e(G) ? (f(), _(K, {
66
+ e(S) ? (f(), _(J, {
66
67
  key: 1,
67
68
  title: "Unable to render Gift card validation module",
68
69
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
@@ -77,7 +78,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
77
78
  t("p", {
78
79
  innerHTML: e(i)("giftCardValidation.description")
79
80
  }, null, 8, ot),
80
- o(J, {
81
+ o(W, {
81
82
  modelValue: e(m),
82
83
  "onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
83
84
  icon: "gift-card",
@@ -123,10 +124,10 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
123
124
  t("span", null, u(e(a)), 1)
124
125
  ]),
125
126
  t("td", null, [
126
- t("span", null, u(e(R)(e(p), e(l))), 1)
127
+ t("span", null, u(e(H)(e(p), e(l))), 1)
127
128
  ]),
128
129
  t("td", null, [
129
- t("span", null, u(e(Z)(e(b))), 1)
130
+ t("span", null, u(e(j)(e(b))), 1)
130
131
  ])
131
132
  ])
132
133
  ])
@@ -168,7 +169,7 @@ class dt extends HTMLElement {
168
169
  let n = this.attributes.getNamedItem(a)?.value;
169
170
  p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
170
171
  }
171
- this.vueApp = B(y, h), H(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(O);
172
+ this.vueApp = B(y, h), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(O), this.vueApp.use(K);
172
173
  const b = document.createElement("div");
173
174
  this.vueApp.mount(b), this.appendChild(b.children[0]);
174
175
  }
Binary file
package/dist/gift-card.js CHANGED
@@ -1,20 +1,21 @@
1
- import { d as T, r as K, c as Z, a as s, b as w, w as $, e as t, g as v, f as o, u as e, i as g, n as Y, t as q, h as ae, z as oe, o as ne, S as ie, A as I, B as L, F as se, s as re, v as k, p as de, j as ue, k as ce } from "./_sentry-release-injection-file-D0NAFAC9.js";
2
- import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-bU37KQKU.js";
3
- import { u as x, c as ve } from "./giftCard-vxErFkoV.js";
4
- import { a as he, c as S, p as _e, E as ge, _ as z, d as ye, n as ke, L as Ce, T as M, b as Ve, C as we, m as $e } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BRY3Z3U3.js";
5
- import { _ as Fe } from "./_.vue_vue_type_style_index_0_lang-Cm6NL02H.js";
6
- import { a as Ee, C as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-BsR9w1sU.js";
7
- import { F as A } from "./Field-Dv-tx0DG.js";
8
- import { E as Se } from "./ErrorMessage-Bv8Sjw4c.js";
9
- import { S as Te } from "./TermsOfService-DudxcmqT.js";
1
+ import { d as S, r as K, c as Z, a as s, b as w, w as $, e as t, g as v, f as o, u as e, i as g, n as Y, t as q, h as ae, z as oe, o as ne, S as ie, A as I, B as G, F as se, s as re, v as y, p as de, j as ue, k as ce } from "./_sentry-release-injection-file-CSY2pTJK.js";
2
+ import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-Ciy52c7q.js";
3
+ import { a as ve, c as T, p as he, E as _e, _ as z, d as ge, n as ke, L as ye, T as L, b as Ce, C as Ve, m as we } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bz5ezFs1.js";
4
+ import { G as $e } from "./style-Bf1WJ5oD.js";
5
+ import { u as x } from "./giftCard-DrbtM1MV.js";
6
+ import { _ as Fe } from "./_.vue_vue_type_style_index_0_lang-9DUPh09R.js";
7
+ import { a as Ee, C as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-DUl3c-Tr.js";
8
+ import { F as A } from "./Field-Bir0Q2Cn.js";
9
+ import { E as Te } from "./ErrorMessage-Dt3tVome.js";
10
+ import { S as Se } from "./TermsOfService-Bi-4Y-Eu.js";
10
11
  (function() {
11
12
  try {
12
13
  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] = "e826020a-428a-4b0a-87fc-e8ea90292e12", d._sentryDebugIdIdentifier = "sentry-dbid-e826020a-428a-4b0a-87fc-e8ea90292e12");
14
+ n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "64f5221e-3a81-4cdf-ac5b-15c2adc9eeb3", d._sentryDebugIdIdentifier = "sentry-dbid-64f5221e-3a81-4cdf-ac5b-15c2adc9eeb3");
14
15
  } catch {
15
16
  }
16
17
  })();
17
- const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-selector-wrapper" }, Ge = { class: "media-selector-tools" }, qe = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, De = ["src"], xe = /* @__PURE__ */ T({
18
+ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-selector-wrapper" }, Me = { class: "media-selector-tools" }, qe = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, De = ["src"], xe = /* @__PURE__ */ S({
18
19
  __name: "MediaSelector",
19
20
  props: {
20
21
  modelValue: {},
@@ -25,11 +26,11 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
25
26
  },
26
27
  emits: ["update:modelValue"],
27
28
  setup(d, { emit: n }) {
28
- const m = n, l = d, { t: c } = B(), { display: h } = he(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
29
+ const m = n, l = d, { t: c } = B(), { display: h } = ve(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
29
30
  function u(a) {
30
31
  m("update:modelValue", a);
31
32
  }
32
- function y() {
33
+ function k() {
33
34
  u({
34
35
  base64: "",
35
36
  name: "",
@@ -56,7 +57,7 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
56
57
  let a;
57
58
  (a = p.value.files) instanceof FileList && j(a[0], u);
58
59
  }
59
- return (a, f) => (s(), w(_e, {
60
+ return (a, f) => (s(), w(he, {
60
61
  label: a.label,
61
62
  required: a.required,
62
63
  type: "media"
@@ -71,11 +72,11 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
71
72
  accept: a.validation,
72
73
  single: "",
73
74
  onChange: f[0] || (f[0] = (V) => F())
74
- }, null, 40, Le),
75
- t("div", Me, [
76
- t("ul", Ge, [
75
+ }, null, 40, Ge),
76
+ t("div", Le, [
77
+ t("ul", Me, [
77
78
  _.value ? g("", !0) : (s(), v("li", qe, [
78
- o(S, {
79
+ o(T, {
79
80
  label: e(c)("uploadFile"),
80
81
  type: "button",
81
82
  icon: "upload",
@@ -84,7 +85,7 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
84
85
  }, null, 8, ["label", "icon-color"])
85
86
  ])),
86
87
  _.value ? (s(), v("li", Be, [
87
- o(S, {
88
+ o(T, {
88
89
  label: e(c)("replaceFile"),
89
90
  type: "button",
90
91
  icon: "repeat-alt",
@@ -93,12 +94,12 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
93
94
  }, null, 8, ["label", "icon-color"])
94
95
  ])) : g("", !0),
95
96
  _.value ? (s(), v("li", Re, [
96
- o(S, {
97
+ o(T, {
97
98
  label: e(c)("removeFile"),
98
99
  type: "button",
99
100
  icon: "trash-alt",
100
101
  "icon-color": a.iconColor,
101
- onClickEvent: f[3] || (f[3] = (V) => y())
102
+ onClickEvent: f[3] || (f[3] = (V) => k())
102
103
  }, null, 8, ["label", "icon-color"])
103
104
  ])) : g("", !0)
104
105
  ]),
@@ -141,7 +142,7 @@ function W(d) {
141
142
  });
142
143
  }
143
144
  typeof W == "function" && W(xe);
144
- const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ T({
145
+ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ S({
145
146
  __name: "GiftCardSkeleton",
146
147
  setup(d) {
147
148
  return (n, m) => (s(), v("div", ze, [
@@ -151,11 +152,11 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
151
152
  o(A),
152
153
  o(A),
153
154
  o(A, { "is-text-area": "" }),
154
- o(ge, { height: "44px" })
155
+ o(_e, { height: "44px" })
155
156
  ])
156
157
  ]));
157
158
  }
158
- }), Ne = /* @__PURE__ */ z(He, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ T({
159
+ }), Ne = /* @__PURE__ */ z(He, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ S({
159
160
  __name: "_",
160
161
  props: {
161
162
  content: {},
@@ -183,14 +184,14 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
183
184
  ]),
184
185
  _: 1
185
186
  }),
186
- o(Te, {
187
+ o(Se, {
187
188
  modelValue: m.value,
188
189
  "onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
189
190
  description: l.content
190
191
  }, null, 8, ["modelValue", "description"])
191
192
  ]));
192
193
  }
193
- }), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ T({
194
+ }), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ S({
194
195
  __name: "GiftCard",
195
196
  setup(d) {
196
197
  const { t: n } = B(), m = x();
@@ -213,7 +214,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
213
214
  }, ct = {
214
215
  key: 2,
215
216
  id: "konnectio-gift-card-order-minimal"
216
- }, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ T({
217
+ }, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ S({
217
218
  name: "GiftCardLayout",
218
219
  __name: "GiftCard",
219
220
  props: {
@@ -232,7 +233,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
232
233
  phone: p,
233
234
  value: _,
234
235
  remark: u,
235
- showValue: y,
236
+ showValue: k,
236
237
  quantity: b,
237
238
  media: j,
238
239
  placeId: F,
@@ -244,13 +245,13 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
244
245
  hasFilledForm: U,
245
246
  hasForcedPlaceType: D,
246
247
  isWaitingForResponse: E
247
- } = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ye());
248
+ } = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ge());
248
249
  return oe(a, () => {
249
250
  F.value = void 0;
250
251
  }), ne(() => {
251
252
  const P = n.placeType ? parseInt(n.placeType) : void 0;
252
253
  J(P);
253
- }), (P, r) => (s(), w(we, { styling: m.value }, {
254
+ }), (P, r) => (s(), w(Ve, { styling: m.value }, {
254
255
  default: $(() => [
255
256
  (s(), w(ie, null, {
256
257
  default: $(() => [
@@ -260,7 +261,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
260
261
  callback: e(Q)
261
262
  }, {
262
263
  default: $(() => [
263
- e(te) ? (s(), w(Se, {
264
+ e(te) ? (s(), w(Te, {
264
265
  key: 1,
265
266
  title: "Unable to render Gift card module",
266
267
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
@@ -277,7 +278,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
277
278
  I(t("div", tt, [
278
279
  o(Ee)
279
280
  ], 512), [
280
- [L, e(V)]
281
+ [G, e(V)]
281
282
  ]),
282
283
  I(t("div", null, [
283
284
  t("p", {
@@ -295,7 +296,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
295
296
  (s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
296
297
  o(Pe, {
297
298
  modelValue: e(a),
298
- "onUpdate:modelValue": r[0] || (r[0] = (le) => k(a) ? a.value = le : null),
299
+ "onUpdate:modelValue": r[0] || (r[0] = (le) => y(a) ? a.value = le : null),
299
300
  type: "radio",
300
301
  name: "placeType",
301
302
  val: N,
@@ -306,7 +307,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
306
307
  e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ke, {
307
308
  key: 0,
308
309
  modelValue: e(F),
309
- "onUpdate:modelValue": r[1] || (r[1] = (i) => k(F) ? F.value = i : null),
310
+ "onUpdate:modelValue": r[1] || (r[1] = (i) => y(F) ? F.value = i : null),
310
311
  placeholder: e(l)("giftCard.selectPlacePlaceholder"),
311
312
  options: e(C)[e(a)].data,
312
313
  labelKey: "name",
@@ -314,11 +315,11 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
314
315
  required: ""
315
316
  }, null, 8, ["modelValue", "placeholder", "options"])) : g("", !0)
316
317
  ])
317
- ])) : (s(), w(Ce, { key: 1 }))
318
+ ])) : (s(), w(ye, { key: 1 }))
318
319
  ])),
319
- o(M, {
320
+ o(L, {
320
321
  modelValue: e(c),
321
- "onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
322
+ "onUpdate:modelValue": r[2] || (r[2] = (i) => y(c) ? c.value = i : null),
322
323
  type: "text",
323
324
  name: "name",
324
325
  autocomplete: "name",
@@ -327,9 +328,9 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
327
328
  placeholder: e(l)("giftCard.namePlaceholder"),
328
329
  required: ""
329
330
  }, null, 8, ["modelValue", "label", "placeholder"]),
330
- o(M, {
331
+ o(L, {
331
332
  modelValue: e(h),
332
- "onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
333
+ "onUpdate:modelValue": r[3] || (r[3] = (i) => y(h) ? h.value = i : null),
333
334
  type: "email",
334
335
  name: "email",
335
336
  autocomplete: "email",
@@ -340,15 +341,15 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
340
341
  }, null, 8, ["modelValue", "label", "placeholder"]),
341
342
  o(Ue, {
342
343
  modelValue: e(p),
343
- "onUpdate:modelValue": r[4] || (r[4] = (i) => k(p) ? p.value = i : null),
344
+ "onUpdate:modelValue": r[4] || (r[4] = (i) => y(p) ? p.value = i : null),
344
345
  icon: "phone-office",
345
346
  label: e(l)("giftCard.phone"),
346
347
  placeholder: e(l)("giftCard.phonePlaceholder"),
347
348
  required: ""
348
349
  }, null, 8, ["modelValue", "label", "placeholder"]),
349
- o(M, {
350
+ o(L, {
350
351
  modelValue: e(_),
351
- "onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
352
+ "onUpdate:modelValue": r[5] || (r[5] = (i) => y(_) ? _.value = i : null),
352
353
  type: "number",
353
354
  name: "value",
354
355
  label: e(l)("giftCard.value"),
@@ -359,41 +360,41 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
359
360
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
360
361
  g("", !0),
361
362
  g("", !0),
362
- o(Ve, {
363
+ o(Ce, {
363
364
  modelValue: e(b),
364
- "onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
365
+ "onUpdate:modelValue": r[8] || (r[8] = (i) => y(b) ? b.value = i : null),
365
366
  label: e(l)("giftCard.quantity"),
366
367
  icon: "gift-card",
367
368
  required: ""
368
369
  }, null, 8, ["modelValue", "label"])
369
370
  ])
370
371
  ], 512), [
371
- [L, e(f)]
372
+ [G, e(f)]
372
373
  ]),
373
374
  I(t("div", null, [
374
375
  t("div", {
375
376
  innerHTML: e(l)("giftCard.thankYou")
376
377
  }, null, 8, st)
377
378
  ], 512), [
378
- [L, e(R)]
379
+ [G, e(R)]
379
380
  ])
380
381
  ]),
381
382
  P.layout !== "minimal" && e(f) ? (s(), v("div", rt, [
382
383
  t("div", dt, [
383
- o(S, {
384
+ o(T, {
384
385
  label: e(l)("giftCard.orderGiftCard"),
385
386
  "full-width": !0,
386
387
  disabled: !e(U),
387
388
  "is-loading": e(E),
388
- "onUpdate:isLoading": r[9] || (r[9] = (i) => k(E) ? E.value = i : null),
389
+ "onUpdate:isLoading": r[9] || (r[9] = (i) => y(E) ? E.value = i : null),
389
390
  onClickEvent: e(H)
390
391
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
391
392
  ])
392
393
  ])) : g("", !0),
393
394
  e(f) ? (s(), v("div", ut, [
394
- o(M, {
395
+ o(L, {
395
396
  modelValue: e(u),
396
- "onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
397
+ "onUpdate:modelValue": r[10] || (r[10] = (i) => y(u) ? u.value = i : null),
397
398
  type: "textarea",
398
399
  name: "remark",
399
400
  label: e(l)("giftCard.remark"),
@@ -402,13 +403,13 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
402
403
  }, null, 8, ["modelValue", "label", "placeholder"])
403
404
  ])) : g("", !0),
404
405
  e(f) ? (s(), v("div", ct, [
405
- o(S, {
406
+ o(T, {
406
407
  label: e(l)("giftCard.orderGiftCard"),
407
408
  "full-width": !0,
408
409
  disabled: !e(U),
409
410
  "data-test": "orderGiftCard",
410
411
  "is-loading": e(E),
411
- "onUpdate:isLoading": r[11] || (r[11] = (i) => k(E) ? E.value = i : null),
412
+ "onUpdate:isLoading": r[11] || (r[11] = (i) => y(E) ? E.value = i : null),
412
413
  onClickEvent: e(H)
413
414
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
414
415
  t("div", null, [
@@ -418,7 +419,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
418
419
  I(t("div", mt, [
419
420
  o(Ae)
420
421
  ], 512), [
421
- [L, e(X)]
422
+ [G, e(X)]
422
423
  ])
423
424
  ])) : g("", !0)
424
425
  ])
@@ -436,7 +437,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
436
437
  _: 1
437
438
  }, 8, ["styling"]));
438
439
  }
439
- }), G = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-278e1031"]]), bt = me(), vt = be();
440
+ }), M = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-278e1031"]]), bt = me(), vt = be();
440
441
  class ht extends HTMLElement {
441
442
  vueApp;
442
443
  constructor() {
@@ -446,9 +447,9 @@ class ht extends HTMLElement {
446
447
  this.vueApp.unmount();
447
448
  }
448
449
  connectedCallback() {
449
- const n = typeof G == "function" ? G.options : G;
450
+ const n = typeof M == "function" ? M.options : M;
450
451
  let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
451
- const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (y, b) => (b ? "-" : "") + y.toLowerCase()), c = (u) => u.replace(/-./g, (y) => y[1].toUpperCase()), h = {};
452
+ const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (k, b) => (b ? "-" : "") + k.toLowerCase()), c = (u) => u.replace(/-./g, (k) => k[1].toUpperCase()), h = {};
452
453
  m = m.map(l);
453
454
  const p = {};
454
455
  for (const u of this.attributes) {
@@ -456,10 +457,10 @@ class ht extends HTMLElement {
456
457
  b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
457
458
  }
458
459
  for (const u of m) {
459
- let y = this.attributes.getNamedItem(u)?.value;
460
- p.hasOwnProperty(u) && (y = p[u]), h[u] = y;
460
+ let k = this.attributes.getNamedItem(u)?.value;
461
+ p.hasOwnProperty(u) && (k = p[u]), h[u] = k;
461
462
  }
462
- this.vueApp = ce(G, h), ve(this.vueApp), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(fe), this.vueApp.use($e, { bootstrap: !0 });
463
+ this.vueApp = ce(M, h), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(fe), this.vueApp.use($e), this.vueApp.use(we, { bootstrap: !0 });
463
464
  const _ = document.createElement("div");
464
465
  this.vueApp.mount(_), this.appendChild(_.children[0]);
465
466
  }
Binary file
@@ -0,0 +1,126 @@
1
+ import { r as H, a as J, d as E, G as s, t as S, S as w, v as M, o as O, w as K } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bz5ezFs1.js";
2
+ import { d as Q, s as X, a as k } from "./mitt-Ciy52c7q.js";
3
+ import { r as t, c as a } from "./_sentry-release-injection-file-CSY2pTJK.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] = "22467707-9aba-4bc6-b566-9af8d4101364", i._sentryDebugIdIdentifier = "sentry-dbid-22467707-9aba-4bc6-b566-9af8d4101364");
8
+ } catch {
9
+ }
10
+ })();
11
+ const ae = Q("giftCard", () => {
12
+ const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: x, hasError: I } = X(E()), T = E(), 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((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 $() {
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
+ }
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 M.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
65
+ termsOfserviceURL: window.location.origin,
66
+ checkoutUrl: window.location.origin,
67
+ currencyID: x.value,
68
+ language: O(),
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-DrbtM1MV.js.map
Binary file