@konnectio/core 4.0.57 → 4.0.59

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 (64) hide show
  1. package/dist/{ActionField-BsgBhqwb.js → ActionField-GHsNRSZm.js} +3 -3
  2. package/dist/ActionField-GHsNRSZm.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-BCiyhi6I.js → AvailabilitySkeleton-CyvafyOT.js} +6 -6
  4. package/dist/AvailabilitySkeleton-CyvafyOT.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js} +4 -4
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js.br +0 -0
  7. package/dist/{CheckoutWindow-COyV5n05.js → CheckoutWindow-BqJ6ZsZD.js} +4 -4
  8. package/dist/CheckoutWindow-BqJ6ZsZD.js.br +0 -0
  9. package/dist/{ErrorMessage-Bqmjetwk.js → ErrorMessage-144-POu6.js} +3 -3
  10. package/dist/ErrorMessage-144-POu6.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CnfdAPBG.js → EventAvailabilityForm-CJff-76Z.js} +5 -5
  12. package/dist/EventAvailabilityForm-CJff-76Z.js.br +0 -0
  13. package/dist/{Field-8j4srvwh.js → Field-BrI8toPe.js} +3 -3
  14. package/dist/Field-BrI8toPe.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js} +11 -10
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js.br +0 -0
  17. package/dist/{TermsOfService-DzB0damA.js → TermsOfService-DLQtIpLt.js} +5 -5
  18. package/dist/TermsOfService-DLQtIpLt.js.br +0 -0
  19. package/dist/{_-BtSFcDLj.js → _-CHRCWC6p.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-zf2i08XL.js → _.vue_vue_type_style_index_0_lang-BUoCnNZd.js} +4 -4
  21. package/dist/_.vue_vue_type_style_index_0_lang-BUoCnNZd.js.br +0 -0
  22. package/dist/{_commonjsHelpers-DzP9V0uJ.js → _commonjsHelpers-CYyxJoRf.js} +2 -2
  23. package/dist/{_sentry-release-injection-file-fvkcFI33.js → _sentry-release-injection-file-CkMeg-D2.js} +3 -3
  24. package/dist/_sentry-release-injection-file-CkMeg-D2.js.br +0 -0
  25. package/dist/availability.js +74 -71
  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 +8 -8
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +31 -31
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +91 -91
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-DtBMjMxF.js +126 -0
  36. package/dist/giftCard-DtBMjMxF.js.br +0 -0
  37. package/dist/hotel.js +94 -94
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-BX1LxkhS.js → masonry.plugin-Ch8U9Epf.js} +416 -411
  40. package/dist/masonry.plugin-Ch8U9Epf.js.br +0 -0
  41. package/dist/{mitt-l8QPdH4v.js → mitt-Cbb-9RWx.js} +2 -2
  42. package/dist/mitt-Cbb-9RWx.js.br +0 -0
  43. package/dist/polyfill.js +17221 -14681
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/package.json +10 -10
  48. package/dist/ActionField-BsgBhqwb.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-BCiyhi6I.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js.br +0 -0
  51. package/dist/CheckoutWindow-COyV5n05.js.br +0 -0
  52. package/dist/ErrorMessage-Bqmjetwk.js.br +0 -0
  53. package/dist/EventAvailabilityForm-CnfdAPBG.js.br +0 -0
  54. package/dist/Field-8j4srvwh.js.br +0 -0
  55. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js.br +0 -0
  56. package/dist/TermsOfService-DzB0damA.js.br +0 -0
  57. package/dist/_.vue_vue_type_style_index_0_lang-zf2i08XL.js.br +0 -0
  58. package/dist/_sentry-release-injection-file-fvkcFI33.js.br +0 -0
  59. package/dist/giftCard-DbcQz3eJ.js +0 -134
  60. package/dist/giftCard-DbcQz3eJ.js.br +0 -0
  61. package/dist/masonry.plugin-BX1LxkhS.js.br +0 -0
  62. package/dist/mitt-l8QPdH4v.js.br +0 -0
  63. package/dist/tracing-z3gaNes7.js +0 -2537
  64. package/dist/tracing-z3gaNes7.js.br +0 -0
@@ -1,40 +1,40 @@
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-fvkcFI33.js";
2
- import { u as N, s as x, c as U, i as O, m as z } from "./mitt-l8QPdH4v.js";
3
- import { u as F, c as H } from "./giftCard-DbcQz3eJ.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-DzRjaA5x.js";
5
- import { _ as W } from "./_.vue_vue_type_style_index_0_lang-zf2i08XL.js";
6
- import { A as J } from "./ActionField-BsgBhqwb.js";
7
- import { F as I } from "./Field-8j4srvwh.js";
8
- import { E as K } from "./ErrorMessage-Bqmjetwk.js";
1
+ import { d as L, 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-CkMeg-D2.js";
2
+ import { u as N, s as x, c as U, i as O, m as z } from "./mitt-Cbb-9RWx.js";
3
+ import { E as k, _ as S, 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-BO7fGNh_.js";
4
+ import { u as Z } from "./giftCard-DtBMjMxF.js";
5
+ import { _ as q } from "./_.vue_vue_type_style_index_0_lang-BUoCnNZd.js";
6
+ import { A as W } from "./ActionField-GHsNRSZm.js";
7
+ import { F as I } from "./Field-BrI8toPe.js";
8
+ import { E as J } from "./ErrorMessage-144-POu6.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] = "785de1df-b1fe-4e38-a3dc-211658ce5df4", r._sentryDebugIdIdentifier = "sentry-dbid-785de1df-b1fe-4e38-a3dc-211658ce5df4");
12
+ s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "e107e9ff-76e5-429a-8dad-1dc784a2edd6", r._sentryDebugIdIdentifier = "sentry-dbid-e107e9ff-76e5-429a-8dad-1dc784a2edd6");
13
13
  } catch {
14
14
  }
15
15
  })();
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({
16
+ const K = { class: "gift-card-validation-skeleton" }, Q = { class: "gift-card-validation-skeleton-form" }, Y = { class: "gift-card-validation-skeleton-text" }, tt = { class: "gift-card-validation-skeleton-input" }, et = /* @__PURE__ */ L({
17
17
  __name: "GiftCardValidationSkeleton",
18
18
  setup(r) {
19
- return (s, c) => (f(), V("div", Q, [
20
- t("div", Y, [
21
- t("div", tt, [
19
+ return (s, c) => (f(), V("div", K, [
20
+ t("div", Q, [
21
+ t("div", Y, [
22
22
  o(k, { height: "20px" }),
23
23
  o(k, { height: "15px" }),
24
24
  o(k, { height: "15px" })
25
25
  ]),
26
- t("div", et, [
26
+ t("div", tt, [
27
27
  o(I),
28
28
  o(I, { "no-label": "" })
29
29
  ])
30
30
  ])
31
31
  ]));
32
32
  }
33
- }), nt = /* @__PURE__ */ L(at, [["__scopeId", "data-v-b1601b74"]]), ot = ["innerHTML"], st = {
33
+ }), at = /* @__PURE__ */ S(et, [["__scopeId", "data-v-b1601b74"]]), nt = ["innerHTML"], ot = {
34
34
  key: 0,
35
35
  id: "konnectio-gift-card-validation-resume",
36
36
  class: "konnectio-panel"
37
- }, it = /* @__PURE__ */ S({
37
+ }, st = /* @__PURE__ */ L({
38
38
  name: "GiftCardValidationLayout",
39
39
  __name: "GiftCardValidation",
40
40
  props: {
@@ -52,17 +52,17 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
52
52
  expirationDate: b,
53
53
  productName: a,
54
54
  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 }, {
55
+ } = x(E()), { currency: l, hasError: G } = x(F()), { fetchMetadata: D } = Z(), { apply: A } = E();
56
+ return (M, d) => (f(), _(R, { styling: c.value }, {
57
57
  default: v(() => [
58
58
  (f(), _(P, null, {
59
59
  default: v(() => [
60
- o(W, {
60
+ o(q, {
61
61
  "access-token": M.accessToken,
62
62
  callback: e(D)
63
63
  }, {
64
64
  default: v(() => [
65
- e(G) ? (f(), _(K, {
65
+ e(G) ? (f(), _(J, {
66
66
  key: 1,
67
67
  title: "Unable to render Gift card validation module",
68
68
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
@@ -76,8 +76,8 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
76
76
  ]),
77
77
  t("p", {
78
78
  innerHTML: e(i)("giftCardValidation.description")
79
- }, null, 8, ot),
80
- o(J, {
79
+ }, null, 8, nt),
80
+ o(W, {
81
81
  modelValue: e(m),
82
82
  "onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
83
83
  icon: "gift-card",
@@ -88,7 +88,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
88
88
  "onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
89
89
  onAction: d[2] || (d[2] = (g) => e(A)())
90
90
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
91
- !e(n) && e(h) ? (f(), V("table", st, [
91
+ !e(n) && e(h) ? (f(), V("table", ot, [
92
92
  t("thead", null, [
93
93
  t("tr", null, [
94
94
  t("th", null, [
@@ -123,10 +123,10 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
123
123
  t("span", null, u(e(a)), 1)
124
124
  ]),
125
125
  t("td", null, [
126
- t("span", null, u(e(R)(e(p), e(l))), 1)
126
+ t("span", null, u(e(H)(e(p), e(l))), 1)
127
127
  ]),
128
128
  t("td", null, [
129
- t("span", null, u(e(Z)(e(b))), 1)
129
+ t("span", null, u(e(j)(e(b))), 1)
130
130
  ])
131
131
  ])
132
132
  ])
@@ -137,7 +137,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
137
137
  }, 8, ["access-token", "callback"])
138
138
  ]),
139
139
  fallback: v(() => [
140
- o(nt)
140
+ o(at)
141
141
  ]),
142
142
  _: 1
143
143
  }))
@@ -145,8 +145,8 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
145
145
  _: 1
146
146
  }, 8, ["styling"]));
147
147
  }
148
- }), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-ae703950"]]), lt = U(), rt = z();
149
- class dt extends HTMLElement {
148
+ }), y = /* @__PURE__ */ S(st, [["__scopeId", "data-v-ae703950"]]), it = U(), lt = z();
149
+ class rt extends HTMLElement {
150
150
  vueApp;
151
151
  constructor() {
152
152
  super();
@@ -168,13 +168,13 @@ class dt extends HTMLElement {
168
168
  let n = this.attributes.getNamedItem(a)?.value;
169
169
  p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
170
170
  }
171
- this.vueApp = B(y, h), H(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(O);
171
+ this.vueApp = B(y, h), this.vueApp.provide("emitter", lt), this.vueApp.use(it), this.vueApp.use(O);
172
172
  const b = document.createElement("div");
173
173
  this.vueApp.mount(b), this.appendChild(b.children[0]);
174
174
  }
175
175
  }
176
- window.customElements.define("konnectio-gift-card-validation", dt);
176
+ window.customElements.define("konnectio-gift-card-validation", rt);
177
177
  export {
178
- dt as default
178
+ rt as default
179
179
  };
180
180
  //# sourceMappingURL=gift-card-validation.js.map
Binary file
package/dist/gift-card.js CHANGED
@@ -1,20 +1,20 @@
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-fvkcFI33.js";
2
- import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-l8QPdH4v.js";
3
- import { u as x, c as ve } from "./giftCard-DbcQz3eJ.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-DzRjaA5x.js";
5
- import { _ as Fe } from "./_.vue_vue_type_style_index_0_lang-zf2i08XL.js";
6
- import { a as Ee, C as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-COyV5n05.js";
7
- import { F as A } from "./Field-8j4srvwh.js";
8
- import { E as Se } from "./ErrorMessage-Bqmjetwk.js";
9
- import { S as Te } from "./TermsOfService-DzB0damA.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 L, F as se, s as re, v as y, p as de, j as ue, k as ce } from "./_sentry-release-injection-file-CkMeg-D2.js";
2
+ import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-Cbb-9RWx.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 M, b as Ce, C as Ve, m as we } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js";
4
+ import { u as x } from "./giftCard-DtBMjMxF.js";
5
+ import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-BUoCnNZd.js";
6
+ import { a as Fe, C as Ee, P as Pe, _ as Ue } from "./CheckoutWindow-BqJ6ZsZD.js";
7
+ import { F as A } from "./Field-BrI8toPe.js";
8
+ import { E as Ae } from "./ErrorMessage-144-POu6.js";
9
+ import { S as Te } from "./TermsOfService-DLQtIpLt.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] = "e826020a-428a-4b0a-87fc-e8ea90292e12", d._sentryDebugIdIdentifier = "sentry-dbid-e826020a-428a-4b0a-87fc-e8ea90292e12");
13
+ n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "293836a3-7250-4fc7-9d4a-e9cbd7331ff0", d._sentryDebugIdIdentifier = "sentry-dbid-293836a3-7250-4fc7-9d4a-e9cbd7331ff0");
14
14
  } catch {
15
15
  }
16
16
  })();
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({
17
+ const Se = { class: "media-selector" }, Ie = ["accept"], Le = { class: "media-selector-wrapper" }, Me = { class: "media-selector-tools" }, Ge = { key: 0 }, qe = { key: 1 }, Be = { key: 2 }, Re = ["src"], De = /* @__PURE__ */ S({
18
18
  __name: "MediaSelector",
19
19
  props: {
20
20
  modelValue: {},
@@ -25,11 +25,11 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
25
25
  },
26
26
  emits: ["update:modelValue"],
27
27
  setup(d, { emit: n }) {
28
- const m = n, l = d, { t: c } = B(), { display: h } = he(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
28
+ const m = n, l = d, { t: c } = B(), { display: h } = ve(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
29
29
  function u(a) {
30
30
  m("update:modelValue", a);
31
31
  }
32
- function y() {
32
+ function k() {
33
33
  u({
34
34
  base64: "",
35
35
  name: "",
@@ -56,13 +56,13 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
56
56
  let a;
57
57
  (a = p.value.files) instanceof FileList && j(a[0], u);
58
58
  }
59
- return (a, f) => (s(), w(_e, {
59
+ return (a, f) => (s(), w(he, {
60
60
  label: a.label,
61
61
  required: a.required,
62
62
  type: "media"
63
63
  }, {
64
64
  default: $(() => [
65
- t("div", Ie, [
65
+ t("div", Se, [
66
66
  t("input", {
67
67
  ref_key: "fileInput",
68
68
  ref: p,
@@ -71,11 +71,11 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
71
71
  accept: a.validation,
72
72
  single: "",
73
73
  onChange: f[0] || (f[0] = (V) => F())
74
- }, null, 40, Le),
75
- t("div", Me, [
76
- t("ul", Ge, [
77
- _.value ? g("", !0) : (s(), v("li", qe, [
78
- o(S, {
74
+ }, null, 40, Ie),
75
+ t("div", Le, [
76
+ t("ul", Me, [
77
+ _.value ? g("", !0) : (s(), v("li", Ge, [
78
+ o(T, {
79
79
  label: e(c)("uploadFile"),
80
80
  type: "button",
81
81
  icon: "upload",
@@ -83,8 +83,8 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
83
83
  onClickEvent: f[1] || (f[1] = (V) => b())
84
84
  }, null, 8, ["label", "icon-color"])
85
85
  ])),
86
- _.value ? (s(), v("li", Be, [
87
- o(S, {
86
+ _.value ? (s(), v("li", qe, [
87
+ o(T, {
88
88
  label: e(c)("replaceFile"),
89
89
  type: "button",
90
90
  icon: "repeat-alt",
@@ -92,13 +92,13 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
92
92
  onClickEvent: f[2] || (f[2] = (V) => b())
93
93
  }, null, 8, ["label", "icon-color"])
94
94
  ])) : g("", !0),
95
- _.value ? (s(), v("li", Re, [
96
- o(S, {
95
+ _.value ? (s(), v("li", Be, [
96
+ o(T, {
97
97
  label: e(c)("removeFile"),
98
98
  type: "button",
99
99
  icon: "trash-alt",
100
100
  "icon-color": a.iconColor,
101
- onClickEvent: f[3] || (f[3] = (V) => y())
101
+ onClickEvent: f[3] || (f[3] = (V) => k())
102
102
  }, null, 8, ["label", "icon-color"])
103
103
  ])) : g("", !0)
104
104
  ]),
@@ -111,7 +111,7 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
111
111
  a.modelValue ? (s(), v("img", {
112
112
  key: 0,
113
113
  src: a.modelValue.base64
114
- }, null, 8, De)) : g("", !0)
114
+ }, null, 8, Re)) : g("", !0)
115
115
  ], 2)
116
116
  ])
117
117
  ])
@@ -140,22 +140,22 @@ function W(d) {
140
140
  }
141
141
  });
142
142
  }
143
- typeof W == "function" && W(xe);
144
- const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ T({
143
+ typeof W == "function" && W(De);
144
+ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ S({
145
145
  __name: "GiftCardSkeleton",
146
146
  setup(d) {
147
- return (n, m) => (s(), v("div", ze, [
148
- t("div", je, [
147
+ return (n, m) => (s(), v("div", xe, [
148
+ t("div", ze, [
149
149
  o(A),
150
150
  o(A),
151
151
  o(A),
152
152
  o(A),
153
153
  o(A, { "is-text-area": "" }),
154
- o(ge, { height: "44px" })
154
+ o(_e, { height: "44px" })
155
155
  ])
156
156
  ]));
157
157
  }
158
- }), Ne = /* @__PURE__ */ z(He, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ T({
158
+ }), He = /* @__PURE__ */ z(je, [["__scopeId", "data-v-ba3efaa1"]]), Ne = { class: "konnectio-accept-terms" }, Oe = /* @__PURE__ */ S({
159
159
  __name: "_",
160
160
  props: {
161
161
  content: {},
@@ -163,7 +163,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
163
163
  },
164
164
  setup(d) {
165
165
  const { t: n } = B(), m = K(!1);
166
- return (l, c) => (s(), v("div", Oe, [
166
+ return (l, c) => (s(), v("div", Ne, [
167
167
  o(e(pe), {
168
168
  keypath: "general.termsAndConditionsNotice",
169
169
  tag: "span",
@@ -190,30 +190,30 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
190
190
  }, null, 8, ["modelValue", "description"])
191
191
  ]));
192
192
  }
193
- }), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ T({
193
+ }), We = /* @__PURE__ */ z(Oe, [["__scopeId", "data-v-f587c956"]]), Ke = /* @__PURE__ */ S({
194
194
  __name: "GiftCard",
195
195
  setup(d) {
196
196
  const { t: n } = B(), m = x();
197
- return (l, c) => (s(), w(Ke, {
197
+ return (l, c) => (s(), w(We, {
198
198
  content: e(m).termsOfService,
199
199
  "button-label": e(n)("giftCard.orderGiftCard")
200
200
  }, null, 8, ["content", "button-label"]));
201
201
  }
202
- }), Ye = (d) => (de("data-v-278e1031"), d = d(), ue(), d), Je = ["data-layout"], Qe = { id: "konnectio-gift-card-wrapper" }, Xe = { id: "konnectio-gift-card-title" }, et = { id: "konnectio-gift-card-content" }, tt = { id: "konnectio-gift-card-payment" }, lt = ["innerHTML"], at = { key: 0 }, ot = {
202
+ }), Ze = (d) => (de("data-v-278e1031"), d = d(), ue(), d), Ye = ["data-layout"], Je = { id: "konnectio-gift-card-wrapper" }, Qe = { id: "konnectio-gift-card-title" }, Xe = { id: "konnectio-gift-card-content" }, et = { id: "konnectio-gift-card-payment" }, tt = ["innerHTML"], lt = { key: 0 }, at = {
203
203
  key: 0,
204
204
  id: "konnectio-select-place-type"
205
- }, nt = {
205
+ }, ot = {
206
206
  class: /* @__PURE__ */ Y(["konnectio-label", "required"])
207
- }, it = { id: "konnectio-select-place-type-input" }, st = ["innerHTML"], rt = {
207
+ }, nt = { id: "konnectio-select-place-type-input" }, it = ["innerHTML"], st = {
208
208
  key: 0,
209
209
  id: "konnectio-gift-card-order"
210
- }, dt = { class: "konnectio-panel" }, ut = {
210
+ }, rt = { class: "konnectio-panel" }, dt = {
211
211
  key: 1,
212
212
  id: "konnectio-gift-card-remarks"
213
- }, ct = {
213
+ }, ut = {
214
214
  key: 2,
215
215
  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({
216
+ }, ct = /* @__PURE__ */ Ze(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), pt = { id: "konnectio-gift-card-recaptcha" }, mt = /* @__PURE__ */ S({
217
217
  name: "GiftCardLayout",
218
218
  __name: "GiftCard",
219
219
  props: {
@@ -232,7 +232,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
232
232
  phone: p,
233
233
  value: _,
234
234
  remark: u,
235
- showValue: y,
235
+ showValue: k,
236
236
  quantity: b,
237
237
  media: j,
238
238
  placeId: F,
@@ -244,23 +244,23 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
244
244
  hasFilledForm: U,
245
245
  hasForcedPlaceType: D,
246
246
  isWaitingForResponse: E
247
- } = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ye());
247
+ } = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ge());
248
248
  return oe(a, () => {
249
249
  F.value = void 0;
250
250
  }), ne(() => {
251
251
  const P = n.placeType ? parseInt(n.placeType) : void 0;
252
252
  J(P);
253
- }), (P, r) => (s(), w(we, { styling: m.value }, {
253
+ }), (P, r) => (s(), w(Ve, { styling: m.value }, {
254
254
  default: $(() => [
255
255
  (s(), w(ie, null, {
256
256
  default: $(() => [
257
- o(Fe, {
257
+ o($e, {
258
258
  "access-token": P.accessToken,
259
259
  "data-layout": P.layout,
260
260
  callback: e(Q)
261
261
  }, {
262
262
  default: $(() => [
263
- e(te) ? (s(), w(Se, {
263
+ e(te) ? (s(), w(Ae, {
264
264
  key: 1,
265
265
  title: "Unable to render Gift card module",
266
266
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
@@ -269,13 +269,13 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
269
269
  id: "konnectio-gift-card-module",
270
270
  "data-layout": P.layout
271
271
  }, [
272
- t("div", Qe, [
273
- t("h2", Xe, [
272
+ t("div", Je, [
273
+ t("h2", Qe, [
274
274
  t("span", null, q(e(l)("giftCard.title")), 1)
275
275
  ]),
276
- t("div", et, [
277
- I(t("div", tt, [
278
- o(Ee)
276
+ t("div", Xe, [
277
+ I(t("div", et, [
278
+ o(Fe)
279
279
  ], 512), [
280
280
  [L, e(V)]
281
281
  ]),
@@ -283,19 +283,19 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
283
283
  t("p", {
284
284
  id: "konnectio-gift-card-description",
285
285
  innerHTML: e(l)("giftCard.description")
286
- }, null, 8, lt),
286
+ }, null, 8, tt),
287
287
  t("form", null, [
288
- e(D) ? g("", !0) : (s(), v("div", at, [
289
- e(C) ? (s(), v("div", ot, [
290
- t("label", nt, [
288
+ e(D) ? g("", !0) : (s(), v("div", lt, [
289
+ e(C) ? (s(), v("div", at, [
290
+ t("label", ot, [
291
291
  t("span", null, q(e(l)("giftCard.selectType")), 1)
292
292
  ]),
293
- t("div", it, [
293
+ t("div", nt, [
294
294
  t("ul", null, [
295
295
  (s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
296
- o(Pe, {
296
+ o(Ee, {
297
297
  modelValue: e(a),
298
- "onUpdate:modelValue": r[0] || (r[0] = (le) => k(a) ? a.value = le : null),
298
+ "onUpdate:modelValue": r[0] || (r[0] = (le) => y(a) ? a.value = le : null),
299
299
  type: "radio",
300
300
  name: "placeType",
301
301
  val: N,
@@ -306,7 +306,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
306
306
  e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ke, {
307
307
  key: 0,
308
308
  modelValue: e(F),
309
- "onUpdate:modelValue": r[1] || (r[1] = (i) => k(F) ? F.value = i : null),
309
+ "onUpdate:modelValue": r[1] || (r[1] = (i) => y(F) ? F.value = i : null),
310
310
  placeholder: e(l)("giftCard.selectPlacePlaceholder"),
311
311
  options: e(C)[e(a)].data,
312
312
  labelKey: "name",
@@ -314,11 +314,11 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
314
314
  required: ""
315
315
  }, null, 8, ["modelValue", "placeholder", "options"])) : g("", !0)
316
316
  ])
317
- ])) : (s(), w(Ce, { key: 1 }))
317
+ ])) : (s(), w(ye, { key: 1 }))
318
318
  ])),
319
319
  o(M, {
320
320
  modelValue: e(c),
321
- "onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
321
+ "onUpdate:modelValue": r[2] || (r[2] = (i) => y(c) ? c.value = i : null),
322
322
  type: "text",
323
323
  name: "name",
324
324
  autocomplete: "name",
@@ -329,7 +329,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
329
329
  }, null, 8, ["modelValue", "label", "placeholder"]),
330
330
  o(M, {
331
331
  modelValue: e(h),
332
- "onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
332
+ "onUpdate:modelValue": r[3] || (r[3] = (i) => y(h) ? h.value = i : null),
333
333
  type: "email",
334
334
  name: "email",
335
335
  autocomplete: "email",
@@ -338,9 +338,9 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
338
338
  placeholder: e(l)("giftCard.emailPlaceholder"),
339
339
  required: ""
340
340
  }, null, 8, ["modelValue", "label", "placeholder"]),
341
- o(Ue, {
341
+ o(Pe, {
342
342
  modelValue: e(p),
343
- "onUpdate:modelValue": r[4] || (r[4] = (i) => k(p) ? p.value = i : null),
343
+ "onUpdate:modelValue": r[4] || (r[4] = (i) => y(p) ? p.value = i : null),
344
344
  icon: "phone-office",
345
345
  label: e(l)("giftCard.phone"),
346
346
  placeholder: e(l)("giftCard.phonePlaceholder"),
@@ -348,7 +348,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
348
348
  }, null, 8, ["modelValue", "label", "placeholder"]),
349
349
  o(M, {
350
350
  modelValue: e(_),
351
- "onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
351
+ "onUpdate:modelValue": r[5] || (r[5] = (i) => y(_) ? _.value = i : null),
352
352
  type: "number",
353
353
  name: "value",
354
354
  label: e(l)("giftCard.value"),
@@ -359,9 +359,9 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
359
359
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
360
360
  g("", !0),
361
361
  g("", !0),
362
- o(Ve, {
362
+ o(Ce, {
363
363
  modelValue: e(b),
364
- "onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
364
+ "onUpdate:modelValue": r[8] || (r[8] = (i) => y(b) ? b.value = i : null),
365
365
  label: e(l)("giftCard.quantity"),
366
366
  icon: "gift-card",
367
367
  required: ""
@@ -373,27 +373,27 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
373
373
  I(t("div", null, [
374
374
  t("div", {
375
375
  innerHTML: e(l)("giftCard.thankYou")
376
- }, null, 8, st)
376
+ }, null, 8, it)
377
377
  ], 512), [
378
378
  [L, e(R)]
379
379
  ])
380
380
  ]),
381
- P.layout !== "minimal" && e(f) ? (s(), v("div", rt, [
382
- t("div", dt, [
383
- o(S, {
381
+ P.layout !== "minimal" && e(f) ? (s(), v("div", st, [
382
+ t("div", rt, [
383
+ o(T, {
384
384
  label: e(l)("giftCard.orderGiftCard"),
385
385
  "full-width": !0,
386
386
  disabled: !e(U),
387
387
  "is-loading": e(E),
388
- "onUpdate:isLoading": r[9] || (r[9] = (i) => k(E) ? E.value = i : null),
388
+ "onUpdate:isLoading": r[9] || (r[9] = (i) => y(E) ? E.value = i : null),
389
389
  onClickEvent: e(H)
390
390
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
391
391
  ])
392
392
  ])) : g("", !0),
393
- e(f) ? (s(), v("div", ut, [
393
+ e(f) ? (s(), v("div", dt, [
394
394
  o(M, {
395
395
  modelValue: e(u),
396
- "onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
396
+ "onUpdate:modelValue": r[10] || (r[10] = (i) => y(u) ? u.value = i : null),
397
397
  type: "textarea",
398
398
  name: "remark",
399
399
  label: e(l)("giftCard.remark"),
@@ -401,34 +401,34 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
401
401
  placeholder: e(l)("giftCard.remarkPlaceholder")
402
402
  }, null, 8, ["modelValue", "label", "placeholder"])
403
403
  ])) : g("", !0),
404
- e(f) ? (s(), v("div", ct, [
405
- o(S, {
404
+ e(f) ? (s(), v("div", ut, [
405
+ o(T, {
406
406
  label: e(l)("giftCard.orderGiftCard"),
407
407
  "full-width": !0,
408
408
  disabled: !e(U),
409
409
  "data-test": "orderGiftCard",
410
410
  "is-loading": e(E),
411
- "onUpdate:isLoading": r[11] || (r[11] = (i) => k(E) ? E.value = i : null),
411
+ "onUpdate:isLoading": r[11] || (r[11] = (i) => y(E) ? E.value = i : null),
412
412
  onClickEvent: e(H)
413
413
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
414
414
  t("div", null, [
415
- pt,
416
- o(Ze)
415
+ ct,
416
+ o(Ke)
417
417
  ]),
418
- I(t("div", mt, [
419
- o(Ae)
418
+ I(t("div", pt, [
419
+ o(Ue)
420
420
  ], 512), [
421
421
  [L, e(X)]
422
422
  ])
423
423
  ])) : g("", !0)
424
424
  ])
425
- ], 8, Je))
425
+ ], 8, Ye))
426
426
  ]),
427
427
  _: 1
428
428
  }, 8, ["access-token", "data-layout", "callback"])
429
429
  ]),
430
430
  fallback: $(() => [
431
- o(Ne)
431
+ o(He)
432
432
  ]),
433
433
  _: 1
434
434
  }))
@@ -436,8 +436,8 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
436
436
  _: 1
437
437
  }, 8, ["styling"]));
438
438
  }
439
- }), G = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-278e1031"]]), bt = me(), vt = be();
440
- class ht extends HTMLElement {
439
+ }), G = /* @__PURE__ */ z(mt, [["__scopeId", "data-v-278e1031"]]), ft = me(), bt = be();
440
+ class vt extends HTMLElement {
441
441
  vueApp;
442
442
  constructor() {
443
443
  super();
@@ -448,7 +448,7 @@ class ht extends HTMLElement {
448
448
  connectedCallback() {
449
449
  const n = typeof G == "function" ? G.options : G;
450
450
  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 = {};
451
+ 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
452
  m = m.map(l);
453
453
  const p = {};
454
454
  for (const u of this.attributes) {
@@ -456,16 +456,16 @@ class ht extends HTMLElement {
456
456
  b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
457
457
  }
458
458
  for (const u of m) {
459
- let y = this.attributes.getNamedItem(u)?.value;
460
- p.hasOwnProperty(u) && (y = p[u]), h[u] = y;
459
+ let k = this.attributes.getNamedItem(u)?.value;
460
+ p.hasOwnProperty(u) && (k = p[u]), h[u] = k;
461
461
  }
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 });
462
+ this.vueApp = ce(G, h), this.vueApp.provide("emitter", bt), this.vueApp.use(ft), this.vueApp.use(fe), this.vueApp.use(we, { bootstrap: !0 });
463
463
  const _ = document.createElement("div");
464
464
  this.vueApp.mount(_), this.appendChild(_.children[0]);
465
465
  }
466
466
  }
467
- window.customElements.define("konnectio-gift-card", ht);
467
+ window.customElements.define("konnectio-gift-card", vt);
468
468
  export {
469
- ht as default
469
+ vt as default
470
470
  };
471
471
  //# sourceMappingURL=gift-card.js.map
Binary file