@konnectio/core 4.5.10 → 4.7.0

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 (113) hide show
  1. package/README.md +274 -274
  2. package/dist/{ActionField-DRRWeUYM.js → ActionField-DcJ46kr8.js} +4 -4
  3. package/dist/ActionField-DcJ46kr8.js.br +0 -0
  4. package/dist/ActionField-DcJ46kr8.js.gz +0 -0
  5. package/dist/{AvailabilitySkeleton-Dts-myrc.js → AvailabilitySkeleton-D_WemNm7.js} +2677 -2639
  6. package/dist/AvailabilitySkeleton-D_WemNm7.js.br +0 -0
  7. package/dist/AvailabilitySkeleton-D_WemNm7.js.gz +0 -0
  8. package/dist/{CheckoutWindow-BHVG2dxQ.js → CheckoutWindow-Cxf3LsRu.js} +11 -11
  9. package/dist/CheckoutWindow-Cxf3LsRu.js.br +0 -0
  10. package/dist/CheckoutWindow-Cxf3LsRu.js.gz +0 -0
  11. package/dist/{ErrorMessage-B9Z6kWVl.js → ErrorMessage-CWRDhW-r.js} +4 -4
  12. package/dist/ErrorMessage-CWRDhW-r.js.br +0 -0
  13. package/dist/ErrorMessage-CWRDhW-r.js.gz +0 -0
  14. package/dist/{EventAvailabilityForm-kkiWxezV.js → EventAvailabilityForm--wnnA59l.js} +5 -5
  15. package/dist/EventAvailabilityForm--wnnA59l.js.br +0 -0
  16. package/dist/EventAvailabilityForm--wnnA59l.js.gz +0 -0
  17. package/dist/{Field-uy59BBE5.js → Field-C0HFlyA-.js} +9 -9
  18. package/dist/Field-C0HFlyA-.js.br +0 -0
  19. package/dist/Field-C0HFlyA-.js.gz +0 -0
  20. package/dist/{HotelAvailabilityForm-BorqaKO9.js → HotelAvailabilityForm-CXhF2zZd.js} +5 -5
  21. package/dist/HotelAvailabilityForm-CXhF2zZd.js.br +0 -0
  22. package/dist/HotelAvailabilityForm-CXhF2zZd.js.gz +0 -0
  23. package/dist/{SelectField-Deugng4e.js → SelectField-BuepNFGh.js} +2834 -2512
  24. package/dist/SelectField-BuepNFGh.js.br +0 -0
  25. package/dist/SelectField-BuepNFGh.js.gz +0 -0
  26. package/dist/{TermsOfService-B0e2zZ1G.js → TermsOfService-CI6N0yyP.js} +5 -5
  27. package/dist/TermsOfService-CI6N0yyP.js.br +0 -0
  28. package/dist/TermsOfService-CI6N0yyP.js.gz +1 -0
  29. package/dist/{_-BLU96am3.js → _-CrX9aXtd.js} +4 -4
  30. package/dist/_-CrX9aXtd.js.br +0 -0
  31. package/dist/_-CrX9aXtd.js.gz +0 -0
  32. package/dist/availability.js +29 -42
  33. package/dist/availability.js.br +0 -0
  34. package/dist/availability.js.gz +0 -0
  35. package/dist/cancel-reservation.js +34 -47
  36. package/dist/cancel-reservation.js.br +0 -0
  37. package/dist/cancel-reservation.js.gz +0 -0
  38. package/dist/core.css +1 -1
  39. package/dist/core.css.br +0 -0
  40. package/dist/core.css.gz +0 -0
  41. package/dist/deep-link.js +11 -24
  42. package/dist/deep-link.js.br +0 -0
  43. package/dist/deep-link.js.gz +0 -0
  44. package/dist/{dist-CkHp-kIg.js → dist-Bmb1V_bQ.js} +290 -231
  45. package/dist/dist-Bmb1V_bQ.js.br +0 -0
  46. package/dist/dist-Bmb1V_bQ.js.gz +0 -0
  47. package/dist/event.js +144 -160
  48. package/dist/event.js.br +0 -0
  49. package/dist/event.js.gz +0 -0
  50. package/dist/gift-card-validation.js +37 -50
  51. package/dist/gift-card-validation.js.br +0 -0
  52. package/dist/gift-card-validation.js.gz +0 -0
  53. package/dist/gift-card.js +93 -105
  54. package/dist/gift-card.js.br +0 -0
  55. package/dist/gift-card.js.gz +0 -0
  56. package/dist/{giftCard-D4xa9d4r.js → giftCard-4K4sLoYc.js} +2 -2
  57. package/dist/giftCard-4K4sLoYc.js.br +0 -0
  58. package/dist/giftCard-4K4sLoYc.js.gz +0 -0
  59. package/dist/hotel.js +978 -945
  60. package/dist/hotel.js.br +0 -0
  61. package/dist/hotel.js.gz +0 -0
  62. package/dist/{masonry.plugin-DeTZh8E2.js → masonry.plugin-CB5zqVnY.js} +2864 -3816
  63. package/dist/masonry.plugin-CB5zqVnY.js.br +0 -0
  64. package/dist/masonry.plugin-CB5zqVnY.js.gz +0 -0
  65. package/dist/{mitt-Dp_pykgV.js → mitt-D_sfUt2u.js} +3462 -3343
  66. package/dist/mitt-D_sfUt2u.js.br +0 -0
  67. package/dist/mitt-D_sfUt2u.js.gz +0 -0
  68. package/dist/polyfill.js +27 -27
  69. package/dist/polyfill.js.br +0 -0
  70. package/dist/polyfill.js.gz +0 -0
  71. package/dist/rolldown-runtime-Dqa2HsxW.js.gz +2 -0
  72. package/dist/{style-CyChAn2F.js → style-DxH0isic.js} +4 -4
  73. package/dist/style-DxH0isic.js.br +0 -0
  74. package/dist/style-DxH0isic.js.gz +0 -0
  75. package/dist-wix/availability.js +1116 -0
  76. package/dist-wix/event.js +1117 -0
  77. package/dist-wix/gift-card-validation.js +1106 -0
  78. package/dist-wix/gift-card.js +1115 -0
  79. package/dist-wix/hotel.js +1117 -0
  80. package/package.json +121 -121
  81. package/dist/ActionField-DRRWeUYM.js.br +0 -0
  82. package/dist/ActionField-DRRWeUYM.js.gz +0 -0
  83. package/dist/AvailabilitySkeleton-Dts-myrc.js.br +0 -0
  84. package/dist/AvailabilitySkeleton-Dts-myrc.js.gz +0 -0
  85. package/dist/CheckoutWindow-BHVG2dxQ.js.br +0 -0
  86. package/dist/CheckoutWindow-BHVG2dxQ.js.gz +0 -0
  87. package/dist/ErrorMessage-B9Z6kWVl.js.br +0 -0
  88. package/dist/ErrorMessage-B9Z6kWVl.js.gz +0 -0
  89. package/dist/EventAvailabilityForm-kkiWxezV.js.br +0 -0
  90. package/dist/EventAvailabilityForm-kkiWxezV.js.gz +0 -0
  91. package/dist/Field-uy59BBE5.js.br +0 -0
  92. package/dist/Field-uy59BBE5.js.gz +0 -0
  93. package/dist/HotelAvailabilityForm-BorqaKO9.js.br +0 -0
  94. package/dist/HotelAvailabilityForm-BorqaKO9.js.gz +0 -0
  95. package/dist/SelectField-Deugng4e.js.br +0 -0
  96. package/dist/SelectField-Deugng4e.js.gz +0 -0
  97. package/dist/TermsOfService-B0e2zZ1G.js.br +0 -0
  98. package/dist/TermsOfService-B0e2zZ1G.js.gz +0 -1
  99. package/dist/_-BLU96am3.js.br +0 -0
  100. package/dist/_-BLU96am3.js.gz +0 -0
  101. package/dist/chunk-BPfpcrXh.js.gz +0 -0
  102. package/dist/dist-CkHp-kIg.js.br +0 -0
  103. package/dist/dist-CkHp-kIg.js.gz +0 -0
  104. package/dist/giftCard-D4xa9d4r.js.br +0 -0
  105. package/dist/giftCard-D4xa9d4r.js.gz +0 -9
  106. package/dist/masonry.plugin-DeTZh8E2.js.br +0 -0
  107. package/dist/masonry.plugin-DeTZh8E2.js.gz +0 -0
  108. package/dist/mitt-Dp_pykgV.js.br +0 -0
  109. package/dist/mitt-Dp_pykgV.js.gz +0 -0
  110. package/dist/style-CyChAn2F.js.br +0 -0
  111. package/dist/style-CyChAn2F.js.gz +0 -0
  112. /package/dist/{chunk-BPfpcrXh.js → rolldown-runtime-Dqa2HsxW.js} +0 -0
  113. /package/dist/{chunk-BPfpcrXh.js.br → rolldown-runtime-Dqa2HsxW.js.br} +0 -0
package/dist/event.js.br CHANGED
Binary file
package/dist/event.js.gz CHANGED
Binary file
@@ -1,26 +1,26 @@
1
- import { At as e, D as t, E as n, Et as r, M as i, O as a, P as o, S as s, T as c, Y as l, c as u, dt as d, gt as f, k as p, o as m, p as h, r as g, s as _, t as v, u as y, y as b } from "./mitt-Dp_pykgV.js";
2
- import { E as x, G as S, J as C, S as w, b as T, j as E, x as D } from "./SelectField-Deugng4e.js";
3
- import { t as O } from "./_-BLU96am3.js";
4
- import { t as k } from "./ErrorMessage-B9Z6kWVl.js";
5
- import { n as A, t as j } from "./Field-uy59BBE5.js";
6
- import { t as M } from "./style-CyChAn2F.js";
7
- import { t as N } from "./ActionField-DRRWeUYM.js";
8
- import { t as P } from "./giftCard-D4xa9d4r.js";
1
+ import { At as e, D as t, E as n, Et as r, M as i, O as a, P as o, S as s, T as c, Y as l, c as u, dt as d, gt as f, k as p, o as m, r as h, s as g, t as _, u as v, y } from "./mitt-D_sfUt2u.js";
2
+ import { E as b, G as x, J as S, S as C, b as w, j as T, x as E } from "./SelectField-BuepNFGh.js";
3
+ import { t as D } from "./_-CrX9aXtd.js";
4
+ import { t as O } from "./ErrorMessage-CWRDhW-r.js";
5
+ import { n as k, t as A } from "./Field-C0HFlyA-.js";
6
+ import { t as j } from "./style-DxH0isic.js";
7
+ import { t as M } from "./ActionField-DcJ46kr8.js";
8
+ import { t as N } from "./giftCard-4K4sLoYc.js";
9
9
  //#region src/components/skeletons/GiftCardValidationSkeleton.vue?vue&type=script&setup=true&lang.ts
10
- var F = { class: "gift-card-validation-skeleton" }, I = { class: "gift-card-validation-skeleton-form" }, L = { class: "gift-card-validation-skeleton-text" }, R = { class: "gift-card-validation-skeleton-input" }, z = /* @__PURE__ */ w(/* @__PURE__ */ o({
10
+ var P = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-validation-skeleton-form" }, I = { class: "gift-card-validation-skeleton-text" }, L = { class: "gift-card-validation-skeleton-input" }, R = /*#__PURE__*/ C(/* @__PURE__ */ o({
11
11
  __name: "GiftCardValidationSkeleton",
12
12
  setup(e) {
13
- return (e, t) => (l(), p("div", F, [n("div", I, [n("div", L, [
14
- i(A, { height: "20px" }),
15
- i(A, { height: "15px" }),
16
- i(A, { height: "15px" })
17
- ]), n("div", R, [i(j), i(j, { "no-label": "" })])])]));
13
+ return (e, t) => (l(), p("div", P, [n("div", F, [n("div", I, [
14
+ i(k, { height: "20px" }),
15
+ i(k, { height: "15px" }),
16
+ i(k, { height: "15px" })
17
+ ]), n("div", L, [i(A), i(A, { "no-label": "" })])])]));
18
18
  }
19
- }), [["__scopeId", "data-v-91109a29"]]), B = ["innerHTML"], V = {
19
+ }), [["__scopeId", "data-v-b1601b74"]]), z = ["innerHTML"], B = {
20
20
  key: 0,
21
21
  id: "konnectio-gift-card-validation-resume",
22
22
  class: "konnectio-panel"
23
- }, H = /* @__PURE__ */ w(/* @__PURE__ */ o({
23
+ }, V = /*#__PURE__*/ C(/* @__PURE__ */ o({
24
24
  name: "GiftCardValidationLayout",
25
25
  __name: "GiftCardValidation",
26
26
  props: {
@@ -31,85 +31,72 @@ var F = { class: "gift-card-validation-skeleton" }, I = { class: "gift-card-vali
31
31
  let u = o, h = c(() => ({
32
32
  panelMaxWidth: "800px",
33
33
  ...u.styling
34
- })), { t: g } = m(), { voucher: _, isValid: v, amount: w, expirationDate: A, productName: j, isLoading: M } = y(E()), { currency: F, hasError: I } = y(x()), { fetchMetadata: L } = P(), { apply: R } = E();
35
- return (c, u) => (l(), t(T, { styling: h.value }, {
34
+ })), { t: g } = m(), { voucher: _, isValid: C, amount: k, expirationDate: A, productName: j, isLoading: P } = v(T()), { currency: F, hasError: I } = v(b()), { fetchMetadata: L } = N(), { apply: V } = T();
35
+ return (c, u) => (l(), t(w, { styling: h.value }, {
36
36
  default: d(() => [(l(), t(s, null, {
37
- default: d(() => [i(O, {
37
+ default: d(() => [i(D, {
38
38
  "access-token": o.accessToken,
39
39
  callback: r(L)
40
40
  }, {
41
- default: d(() => [r(I) ? (l(), t(k, {
41
+ default: d(() => [r(I) ? (l(), t(O, {
42
42
  key: 1,
43
43
  title: "Unable to render Gift card validation module",
44
44
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
45
45
  })) : (l(), p("form", {
46
46
  key: 0,
47
47
  id: "konnectio-gift-card-validation-module",
48
- onSubmit: u[3] ||= b((e) => r(R)(), ["prevent"])
48
+ onSubmit: u[3] ||= y((e) => r(V)(), ["prevent"])
49
49
  }, [
50
50
  n("h4", null, [n("span", null, e(r(g)("giftCardValidation.title")), 1)]),
51
- n("p", { innerHTML: r(g)("giftCardValidation.description") }, null, 8, B),
52
- i(N, {
51
+ n("p", { innerHTML: r(g)("giftCardValidation.description") }, null, 8, z),
52
+ i(M, {
53
53
  modelValue: r(_),
54
54
  "onUpdate:modelValue": u[0] ||= (e) => f(_) ? _.value = e : null,
55
55
  icon: "gift-card",
56
56
  label: r(g)("booking.reservation.giftCardCode"),
57
57
  buttonLabel: r(g)("giftCardValidation.submitButton"),
58
58
  placeholder: "XXXXXXXX",
59
- "is-loading": r(M),
60
- "onUpdate:isLoading": u[1] ||= (e) => f(M) ? M.value = e : null,
61
- onAction: u[2] ||= (e) => r(R)()
59
+ "is-loading": r(P),
60
+ "onUpdate:isLoading": u[1] ||= (e) => f(P) ? P.value = e : null,
61
+ onAction: u[2] ||= (e) => r(V)()
62
62
  }, null, 8, [
63
63
  "modelValue",
64
64
  "label",
65
65
  "buttonLabel",
66
66
  "is-loading"
67
67
  ]),
68
- !r(M) && r(v) ? (l(), p("table", V, [n("thead", null, [n("tr", null, [
69
- n("th", null, [n("span", null, e(r(g)("giftCardValidation.giftCard")), 1), i(D, {
68
+ !r(P) && r(C) ? (l(), p("table", B, [n("thead", null, [n("tr", null, [
69
+ n("th", null, [n("span", null, e(r(g)("giftCardValidation.giftCard")), 1), i(E, {
70
70
  icon: "gift-card",
71
71
  type: "fas",
72
72
  color: "header"
73
73
  })]),
74
- n("th", null, [n("span", null, e(r(g)("giftCardValidation.balance")), 1), i(D, {
74
+ n("th", null, [n("span", null, e(r(g)("giftCardValidation.balance")), 1), i(E, {
75
75
  icon: "money-bill",
76
76
  type: "fas",
77
77
  color: "header"
78
78
  })]),
79
- n("th", null, [n("span", null, e(r(g)("giftCardValidation.expirationDate")), 1), i(D, {
79
+ n("th", null, [n("span", null, e(r(g)("giftCardValidation.expirationDate")), 1), i(E, {
80
80
  icon: "timer",
81
81
  type: "fas",
82
82
  color: "header"
83
83
  })])
84
84
  ])]), n("tbody", null, [n("tr", null, [
85
85
  n("td", null, [n("span", null, e(r(j)), 1)]),
86
- n("td", null, [n("span", null, e(r(C)(r(w), r(F))), 1)]),
87
- n("td", null, [n("span", null, e(r(S)(r(A))), 1)])
86
+ n("td", null, [n("span", null, e(r(S)(r(k), r(F))), 1)]),
87
+ n("td", null, [n("span", null, e(r(x)(r(A))), 1)])
88
88
  ])])])) : a("", !0)
89
89
  ], 32))]),
90
90
  _: 1
91
91
  }, 8, ["access-token", "callback"])]),
92
- fallback: d(() => [i(z)]),
92
+ fallback: d(() => [i(R)]),
93
93
  _: 1
94
94
  }))]),
95
95
  _: 1
96
96
  }, 8, ["styling"]));
97
97
  }
98
- }), [["__scopeId", "data-v-e88ebaf6"]]), U = u(), W = v(), G = class extends HTMLElement {
99
- vueApp;
100
- constructor() {
101
- super();
102
- }
103
- disconnectedCallback() {
104
- this.vueApp.unmount();
105
- }
106
- connectedCallback() {
107
- let e = _(H, this.attributes);
108
- this.vueApp = h(H, e), this.vueApp.provide("emitter", W), this.vueApp.use(U), this.vueApp.use(g), this.vueApp.use(M);
109
- let t = document.createElement("div");
110
- this.vueApp.mount(t), this.appendChild(t.children[0]);
111
- }
112
- };
113
- window.customElements.define("konnectio-gift-card-validation", G);
98
+ }), [["__scopeId", "data-v-ca768ef6"]]), H = u(), U = _(), W = g("konnectio-gift-card-validation", V, (e) => {
99
+ e.provide("emitter", U), e.use(H), e.use(h), e.use(j);
100
+ });
114
101
  //#endregion
115
- export { G as default };
102
+ export { W as default };
Binary file
Binary file
package/dist/gift-card.js CHANGED
@@ -1,15 +1,15 @@
1
- import { $ as e, At as t, D as n, Dt as r, E as i, Et as a, M as o, O as s, P as c, S as l, T as u, Y as d, _ as f, a as p, bt as m, c as h, dt as g, ft as _, gt as v, k as y, lt as b, o as x, p as S, q as C, r as w, s as T, t as E, u as D, x as O, y as ee } from "./mitt-Dp_pykgV.js";
2
- import { t as k } from "./dist-CkHp-kIg.js";
3
- import { E as A, M as te, S as j, _ as M, b as N, n as P, r as ne, t as re, v as F, y as ie } from "./SelectField-Deugng4e.js";
4
- import { t as ae } from "./_-BLU96am3.js";
5
- import { t as oe } from "./ErrorMessage-B9Z6kWVl.js";
6
- import { n as I, t as L } from "./Field-uy59BBE5.js";
7
- import { t as R } from "./style-CyChAn2F.js";
8
- import { i as se, n as ce, r as le, t as ue } from "./CheckoutWindow-BHVG2dxQ.js";
9
- import { t as z } from "./giftCard-D4xa9d4r.js";
10
- import { t as B } from "./TermsOfService-B0e2zZ1G.js";
1
+ import { $ as e, At as t, D as n, Dt as r, E as i, Et as a, M as o, O as s, P as c, S as l, T as u, Y as d, _ as f, a as p, bt as m, c as h, dt as g, ft as _, gt as v, k as y, lt as b, o as x, q as S, r as C, s as w, t as T, u as E, x as ee, y as D } from "./mitt-D_sfUt2u.js";
2
+ import { t as O } from "./dist-Bmb1V_bQ.js";
3
+ import { E as te, M as k, S as A, _ as j, b as ne, n as M, r as re, t as N, v as P, y as F } from "./SelectField-BuepNFGh.js";
4
+ import { t as I } from "./_-CrX9aXtd.js";
5
+ import { t as L } from "./ErrorMessage-CWRDhW-r.js";
6
+ import { n as R, t as z } from "./Field-C0HFlyA-.js";
7
+ import { t as B } from "./style-DxH0isic.js";
8
+ import { i as ie, n as ae, r as oe, t as se } from "./CheckoutWindow-Cxf3LsRu.js";
9
+ import { t as V } from "./giftCard-4K4sLoYc.js";
10
+ import { t as H } from "./TermsOfService-CI6N0yyP.js";
11
11
  //#region src/components/inputs/MediaSelector.vue?vue&type=script&setup=true&lang.ts
12
- var V = { class: "media-selector" }, H = ["accept"], U = { class: "media-selector-wrapper" }, W = { class: "media-selector-tools" }, G = { key: 0 }, K = { key: 1 }, q = { key: 2 }, J = ["src"], Y = /* @__PURE__ */ c({
12
+ var U = { class: "media-selector" }, W = ["accept"], G = { class: "media-selector-wrapper" }, K = { class: "media-selector-tools" }, q = { key: 0 }, J = { key: 1 }, Y = { key: 2 }, X = ["src"], Z = /*@__PURE__*/ c({
13
13
  __name: "MediaSelector",
14
14
  props: {
15
15
  modelValue: {},
@@ -23,7 +23,7 @@ var V = { class: "media-selector" }, H = ["accept"], U = { class: "media-selecto
23
23
  },
24
24
  emits: ["update:modelValue"],
25
25
  setup(e, { emit: t }) {
26
- let c = t, l = e, { t: f } = x(), { display: p } = te(), h = m(), _ = u(() => l.modelValue.base64 !== "");
26
+ let c = t, l = e, { t: f } = x(), { display: p } = k(), h = m(), _ = u(() => l.modelValue.base64 !== "");
27
27
  function v(e) {
28
28
  c("update:modelValue", e);
29
29
  }
@@ -57,12 +57,12 @@ var V = { class: "media-selector" }, H = ["accept"], U = { class: "media-selecto
57
57
  let e;
58
58
  (e = h.value.files) instanceof FileList && C(e[0], v);
59
59
  }
60
- return (t, c) => (d(), n(M, {
60
+ return (t, c) => (d(), n(j, {
61
61
  label: e.label,
62
62
  required: e.required,
63
63
  type: "media"
64
64
  }, {
65
- default: g(() => [i("div", V, [i("input", {
65
+ default: g(() => [i("div", U, [i("input", {
66
66
  ref_key: "fileInput",
67
67
  ref: h,
68
68
  type: "file",
@@ -70,22 +70,22 @@ var V = { class: "media-selector" }, H = ["accept"], U = { class: "media-selecto
70
70
  accept: e.validation,
71
71
  single: "",
72
72
  onChange: c[0] ||= (e) => w()
73
- }, null, 40, H), i("div", U, [i("ul", W, [
74
- _.value ? s("", !0) : (d(), y("li", G, [o(F, {
73
+ }, null, 40, W), i("div", G, [i("ul", K, [
74
+ _.value ? s("", !0) : (d(), y("li", q, [o(P, {
75
75
  label: a(f)("uploadFile"),
76
76
  type: "button",
77
77
  icon: "upload",
78
78
  "icon-color": e.iconColor,
79
79
  onClickEvent: c[1] ||= (e) => S()
80
80
  }, null, 8, ["label", "icon-color"])])),
81
- _.value ? (d(), y("li", K, [o(F, {
81
+ _.value ? (d(), y("li", J, [o(P, {
82
82
  label: a(f)("replaceFile"),
83
83
  type: "button",
84
84
  icon: "repeat-alt",
85
85
  "icon-color": e.iconColor,
86
86
  onClickEvent: c[2] ||= (e) => S()
87
87
  }, null, 8, ["label", "icon-color"])])) : s("", !0),
88
- _.value ? (d(), y("li", q, [o(F, {
88
+ _.value ? (d(), y("li", Y, [o(P, {
89
89
  label: a(f)("removeFile"),
90
90
  type: "button",
91
91
  icon: "trash-alt",
@@ -95,14 +95,14 @@ var V = { class: "media-selector" }, H = ["accept"], U = { class: "media-selecto
95
95
  ]), i("div", { class: r(["media-selector-previewer", { opened: _.value }]) }, [e.modelValue ? (d(), y("img", {
96
96
  key: 0,
97
97
  src: e.modelValue.base64
98
- }, null, 8, J)) : s("", !0)], 2)])])]),
98
+ }, null, 8, X)) : s("", !0)], 2)])])]),
99
99
  _: 1
100
100
  }, 8, ["label", "required"]));
101
101
  }
102
102
  });
103
103
  //#endregion
104
104
  //#region src/components/inputs/MediaSelector.vue?vue&type=i18n&index=0&lang.yaml
105
- function X(e) {
105
+ function Q(e) {
106
106
  let t = e;
107
107
  t.__i18n = t.__i18n || [], t.__i18n.push({
108
108
  locale: "",
@@ -180,22 +180,22 @@ function X(e) {
180
180
  }
181
181
  //#endregion
182
182
  //#region src/components/inputs/MediaSelector.vue
183
- typeof X == "function" && X(Y);
183
+ typeof Q == "function" && Q(Z);
184
184
  //#endregion
185
185
  //#region src/components/skeletons/GiftCardSkeleton.vue?vue&type=script&setup=true&lang.ts
186
- var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form" }, pe = /* @__PURE__ */ j(/* @__PURE__ */ c({
186
+ var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form" }, ue = /*#__PURE__*/ A(/* @__PURE__ */ c({
187
187
  __name: "GiftCardSkeleton",
188
188
  setup(e) {
189
- return (e, t) => (d(), y("div", de, [i("div", fe, [
190
- o(L),
191
- o(L),
192
- o(L),
193
- o(L),
194
- o(L, { "is-text-area": "" }),
195
- o(I, { height: "44px" })
189
+ return (e, t) => (d(), y("div", ce, [i("div", le, [
190
+ o(z),
191
+ o(z),
192
+ o(z),
193
+ o(z),
194
+ o(z, { "is-text-area": "" }),
195
+ o(R, { height: "44px" })
196
196
  ])]));
197
197
  }
198
- }), [["__scopeId", "data-v-952c68dd"]]), me = { class: "konnectio-accept-terms" }, he = /* @__PURE__ */ j(/* @__PURE__ */ c({
198
+ }), [["__scopeId", "data-v-ba3efaa1"]]), de = { class: "konnectio-accept-terms" }, fe = /*#__PURE__*/ A(/* @__PURE__ */ c({
199
199
  __name: "_",
200
200
  props: {
201
201
  content: {},
@@ -203,7 +203,7 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
203
203
  },
204
204
  setup(e) {
205
205
  let { t: n } = x(), r = m(!1);
206
- return (s, c) => (d(), y("div", me, [o(a(p), {
206
+ return (s, c) => (d(), y("div", de, [o(a(p), {
207
207
  keypath: "general.termsAndConditionsNotice",
208
208
  tag: "span",
209
209
  scope: "global"
@@ -212,37 +212,37 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
212
212
  terms: g(() => [i("a", {
213
213
  class: "konnectio-accept-terms-link",
214
214
  target: "_blank",
215
- onClick: c[0] ||= ee((e) => r.value = !0, ["prevent"])
215
+ onClick: c[0] ||= D((e) => r.value = !0, ["prevent"])
216
216
  }, [i("span", null, t(a(n)("general.termsAndConditions")), 1)])]),
217
217
  _: 1
218
- }), o(B, {
218
+ }), o(H, {
219
219
  modelValue: r.value,
220
220
  "onUpdate:modelValue": c[1] ||= (e) => r.value = e,
221
221
  description: e.content
222
222
  }, null, 8, ["modelValue", "description"])]));
223
223
  }
224
- }), [["__scopeId", "data-v-93ef3159"]]), ge = /* @__PURE__ */ c({
224
+ }), [["__scopeId", "data-v-689c045a"]]), pe = /* @__PURE__ */ c({
225
225
  __name: "GiftCard",
226
226
  setup(e) {
227
- let { t } = x(), r = z();
228
- return (e, i) => (d(), n(he, {
227
+ let { t } = x(), r = V();
228
+ return (e, i) => (d(), n(fe, {
229
229
  content: a(r).termsOfService,
230
230
  "button-label": a(t)("giftCard.orderGiftCard")
231
231
  }, null, 8, ["content", "button-label"]));
232
232
  }
233
- }), _e = ["data-layout"], ve = { id: "konnectio-gift-card-wrapper" }, ye = { id: "konnectio-gift-card-title" }, be = { id: "konnectio-gift-card-content" }, xe = { id: "konnectio-gift-card-payment" }, Se = ["innerHTML"], Ce = { key: 0 }, we = {
233
+ }), me = ["data-layout"], he = { id: "konnectio-gift-card-wrapper" }, ge = { id: "konnectio-gift-card-title" }, _e = { id: "konnectio-gift-card-content" }, ve = { id: "konnectio-gift-card-payment" }, ye = ["innerHTML"], be = { key: 0 }, $ = {
234
234
  key: 0,
235
235
  id: "konnectio-select-place-type"
236
- }, Te = { class: /* @__PURE__ */ r(["konnectio-label", "required"]) }, Ee = { id: "konnectio-select-place-type-input" }, De = ["innerHTML"], Z = {
236
+ }, xe = { class: /*@__PURE__*/ r(["konnectio-label", "required"]) }, Se = { id: "konnectio-select-place-type-input" }, Ce = ["innerHTML"], we = {
237
237
  key: 0,
238
238
  id: "konnectio-gift-card-order"
239
- }, Oe = { class: "konnectio-panel" }, ke = {
239
+ }, Te = { class: "konnectio-panel" }, Ee = {
240
240
  key: 1,
241
241
  id: "konnectio-gift-card-remarks"
242
- }, Ae = {
242
+ }, De = {
243
243
  key: 2,
244
244
  id: "konnectio-gift-card-order-minimal"
245
- }, je = { id: "konnectio-gift-card-recaptcha" }, Q = /* @__PURE__ */ j(/* @__PURE__ */ c({
245
+ }, Oe = { id: "konnectio-gift-card-recaptcha" }, ke = /*#__PURE__*/ A(/* @__PURE__ */ c({
246
246
  name: "GiftCardLayout",
247
247
  __name: "GiftCard",
248
248
  props: {
@@ -255,19 +255,20 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
255
255
  let c = r, p = u(() => ({
256
256
  panelMaxWidth: "800px",
257
257
  ...c.styling
258
- })), { t: m } = x(), { name: h, email: S, phone: w, value: T, remark: E, showValue: ee, quantity: k, media: te, placeId: j, placeType: M, showFormPage: I, showPaymentPage: L, showConfirmationPage: R, places: B, hasFilledForm: V, hasForcedPlaceType: H, isWaitingForResponse: U } = D(z()), { initialize: W, orderGiftCard: G, fetchMetadata: K } = z(), { isRecaptchaEnabled: q, currency: J, hasError: Y } = D(A());
259
- return b(M, () => {
258
+ })), { t: m } = x(), { name: h, email: C, phone: w, value: T, remark: D, showValue: O, quantity: k, media: A, placeId: j, placeType: R, showFormPage: z, showPaymentPage: B, showConfirmationPage: H, places: U, hasFilledForm: W, hasForcedPlaceType: G, isWaitingForResponse: K } = E(V()), { initialize: q, orderGiftCard: J, fetchMetadata: Y } = V(), { isRecaptchaEnabled: X, currency: Z, hasError: Q } = E(te());
259
+ return b(R, () => {
260
260
  j.value = void 0;
261
- }), C(() => {
262
- W(c.placeType ? parseInt(c.placeType) : void 0);
263
- }), (c, u) => (d(), n(N, { styling: p.value }, {
261
+ }), S(() => {
262
+ let e = c.placeType ? parseInt(c.placeType) : void 0;
263
+ q(e);
264
+ }), (c, u) => (d(), n(ne, { styling: p.value }, {
264
265
  default: g(() => [(d(), n(l, null, {
265
- default: g(() => [o(ae, {
266
+ default: g(() => [o(I, {
266
267
  "access-token": r.accessToken,
267
268
  "data-layout": r.layout,
268
- callback: a(K)
269
+ callback: a(Y)
269
270
  }, {
270
- default: g(() => [a(Y) ? (d(), n(oe, {
271
+ default: g(() => [a(Q) ? (d(), n(L, {
271
272
  key: 1,
272
273
  title: "Unable to render Gift card module",
273
274
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
@@ -275,17 +276,17 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
275
276
  key: 0,
276
277
  id: "konnectio-gift-card-module",
277
278
  "data-layout": r.layout
278
- }, [i("div", ve, [
279
- i("h2", ye, [i("span", null, t(a(m)("giftCard.title")), 1)]),
280
- i("div", be, [
281
- _(i("div", xe, [o(ue)], 512), [[f, a(L)]]),
279
+ }, [i("div", he, [
280
+ i("h2", ge, [i("span", null, t(a(m)("giftCard.title")), 1)]),
281
+ i("div", _e, [
282
+ _(i("div", ve, [o(se)], 512), [[f, a(B)]]),
282
283
  _(i("div", null, [i("p", {
283
284
  id: "konnectio-gift-card-description",
284
285
  innerHTML: a(m)("giftCard.description")
285
- }, null, 8, Se), i("form", null, [
286
- a(H) ? s("", !0) : (d(), y("div", Ce, [a(B) ? (d(), y("div", we, [i("label", Te, [i("span", null, t(a(m)("giftCard.selectType")), 1)]), i("div", Ee, [i("ul", null, [(d(!0), y(O, null, e(a(B), (e, t) => (d(), y("li", { key: t }, [o(le, {
287
- modelValue: a(M),
288
- "onUpdate:modelValue": u[0] ||= (e) => v(M) ? M.value = e : null,
286
+ }, null, 8, ye), i("form", null, [
287
+ a(G) ? s("", !0) : (d(), y("div", be, [a(U) ? (d(), y("div", $, [i("label", xe, [i("span", null, t(a(m)("giftCard.selectType")), 1)]), i("div", Se, [i("ul", null, [(d(!0), y(ee, null, e(a(U), (e, t) => (d(), y("li", { key: t }, [o(oe, {
288
+ modelValue: a(R),
289
+ "onUpdate:modelValue": u[0] ||= (e) => v(R) ? R.value = e : null,
289
290
  type: "radio",
290
291
  name: "placeType",
291
292
  val: t,
@@ -294,12 +295,12 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
294
295
  "modelValue",
295
296
  "val",
296
297
  "label"
297
- ])]))), 128))]), a(B)[a(M)] && a(B)[a(M)].data.length > 1 ? (d(), n(re, {
298
+ ])]))), 128))]), a(U)[a(R)] && a(U)[a(R)].data.length > 1 ? (d(), n(N, {
298
299
  key: 0,
299
300
  modelValue: a(j),
300
301
  "onUpdate:modelValue": u[1] ||= (e) => v(j) ? j.value = e : null,
301
302
  placeholder: a(m)("giftCard.selectPlacePlaceholder"),
302
- options: a(B)[a(M)].data,
303
+ options: a(U)[a(R)].data,
303
304
  labelKey: "name",
304
305
  valueKey: "id",
305
306
  required: ""
@@ -307,8 +308,8 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
307
308
  "modelValue",
308
309
  "placeholder",
309
310
  "options"
310
- ])) : s("", !0)])])) : (d(), n(ie, { key: 1 }))])),
311
- o(P, {
311
+ ])) : s("", !0)])])) : (d(), n(F, { key: 1 }))])),
312
+ o(M, {
312
313
  modelValue: a(h),
313
314
  "onUpdate:modelValue": u[2] ||= (e) => v(h) ? h.value = e : null,
314
315
  type: "text",
@@ -323,9 +324,9 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
323
324
  "label",
324
325
  "placeholder"
325
326
  ]),
326
- o(P, {
327
- modelValue: a(S),
328
- "onUpdate:modelValue": u[3] ||= (e) => v(S) ? S.value = e : null,
327
+ o(M, {
328
+ modelValue: a(C),
329
+ "onUpdate:modelValue": u[3] ||= (e) => v(C) ? C.value = e : null,
329
330
  type: "email",
330
331
  name: "email",
331
332
  autocomplete: "email",
@@ -338,7 +339,7 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
338
339
  "label",
339
340
  "placeholder"
340
341
  ]),
341
- o(se, {
342
+ o(ie, {
342
343
  modelValue: a(w),
343
344
  "onUpdate:modelValue": u[4] ||= (e) => v(w) ? w.value = e : null,
344
345
  icon: "phone-office",
@@ -350,7 +351,7 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
350
351
  "label",
351
352
  "placeholder"
352
353
  ]),
353
- o(P, {
354
+ o(M, {
354
355
  modelValue: a(T),
355
356
  "onUpdate:modelValue": u[5] ||= (e) => v(T) ? T.value = e : null,
356
357
  type: "number",
@@ -358,7 +359,7 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
358
359
  label: a(m)("giftCard.value"),
359
360
  icon: "money-bill",
360
361
  placeholder: a(m)("giftCard.valuePlaceholder"),
361
- suffix: a(J),
362
+ suffix: a(Z),
362
363
  required: ""
363
364
  }, null, 8, [
364
365
  "modelValue",
@@ -368,32 +369,32 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
368
369
  ]),
369
370
  s("", !0),
370
371
  s("", !0),
371
- o(ne, {
372
+ o(re, {
372
373
  modelValue: a(k),
373
374
  "onUpdate:modelValue": u[8] ||= (e) => v(k) ? k.value = e : null,
374
375
  label: a(m)("giftCard.quantity"),
375
376
  icon: "gift-card",
376
377
  required: ""
377
378
  }, null, 8, ["modelValue", "label"])
378
- ])], 512), [[f, a(I)]]),
379
- _(i("div", null, [i("div", { innerHTML: a(m)("giftCard.thankYou") }, null, 8, De)], 512), [[f, a(R)]])
379
+ ])], 512), [[f, a(z)]]),
380
+ _(i("div", null, [i("div", { innerHTML: a(m)("giftCard.thankYou") }, null, 8, Ce)], 512), [[f, a(H)]])
380
381
  ]),
381
- r.layout !== "minimal" && a(I) ? (d(), y("div", Z, [i("div", Oe, [o(F, {
382
+ r.layout !== "minimal" && a(z) ? (d(), y("div", we, [i("div", Te, [o(P, {
382
383
  label: a(m)("giftCard.orderGiftCard"),
383
384
  "full-width": !0,
384
- disabled: !a(V),
385
- "is-loading": a(U),
386
- "onUpdate:isLoading": u[9] ||= (e) => v(U) ? U.value = e : null,
387
- onClickEvent: a(G)
385
+ disabled: !a(W),
386
+ "is-loading": a(K),
387
+ "onUpdate:isLoading": u[9] ||= (e) => v(K) ? K.value = e : null,
388
+ onClickEvent: a(J)
388
389
  }, null, 8, [
389
390
  "label",
390
391
  "disabled",
391
392
  "is-loading",
392
393
  "onClickEvent"
393
394
  ])])])) : s("", !0),
394
- a(I) ? (d(), y("div", ke, [o(P, {
395
- modelValue: a(E),
396
- "onUpdate:modelValue": u[10] ||= (e) => v(E) ? E.value = e : null,
395
+ a(z) ? (d(), y("div", Ee, [o(M, {
396
+ modelValue: a(D),
397
+ "onUpdate:modelValue": u[10] ||= (e) => v(D) ? D.value = e : null,
397
398
  type: "textarea",
398
399
  name: "remark",
399
400
  label: a(m)("giftCard.remark"),
@@ -404,52 +405,39 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
404
405
  "label",
405
406
  "placeholder"
406
407
  ])])) : s("", !0),
407
- a(I) ? (d(), y("div", Ae, [
408
- o(F, {
408
+ a(z) ? (d(), y("div", De, [
409
+ o(P, {
409
410
  label: a(m)("giftCard.orderGiftCard"),
410
411
  "full-width": !0,
411
- disabled: !a(V),
412
+ disabled: !a(W),
412
413
  "data-test": "orderGiftCard",
413
- "is-loading": a(U),
414
- "onUpdate:isLoading": u[11] ||= (e) => v(U) ? U.value = e : null,
415
- onClickEvent: a(G)
414
+ "is-loading": a(K),
415
+ "onUpdate:isLoading": u[11] ||= (e) => v(K) ? K.value = e : null,
416
+ onClickEvent: a(J)
416
417
  }, null, 8, [
417
418
  "label",
418
419
  "disabled",
419
420
  "is-loading",
420
421
  "onClickEvent"
421
422
  ]),
422
- i("div", null, [u[12] ||= i("div", { class: "konnectio-divider" }, null, -1), o(ge)]),
423
- _(i("div", je, [o(ce)], 512), [[f, a(q)]])
423
+ i("div", null, [u[12] ||= i("div", { class: "konnectio-divider" }, null, -1), o(pe)]),
424
+ _(i("div", Oe, [o(ae)], 512), [[f, a(X)]])
424
425
  ])) : s("", !0)
425
- ])], 8, _e))]),
426
+ ])], 8, me))]),
426
427
  _: 1
427
428
  }, 8, [
428
429
  "access-token",
429
430
  "data-layout",
430
431
  "callback"
431
432
  ])]),
432
- fallback: g(() => [o(pe)]),
433
+ fallback: g(() => [o(ue)]),
433
434
  _: 1
434
435
  }))]),
435
436
  _: 1
436
437
  }, 8, ["styling"]));
437
438
  }
438
- }), [["__scopeId", "data-v-5baf85ce"]]), Me = h(), Ne = E(), $ = class extends HTMLElement {
439
- vueApp;
440
- constructor() {
441
- super();
442
- }
443
- disconnectedCallback() {
444
- this.vueApp.unmount();
445
- }
446
- connectedCallback() {
447
- let e = T(Q, this.attributes);
448
- this.vueApp = S(Q, e), this.vueApp.provide("emitter", Ne), this.vueApp.use(k), this.vueApp.use(Me), this.vueApp.use(w), this.vueApp.use(R);
449
- let t = document.createElement("div");
450
- this.vueApp.mount(t), this.appendChild(t.children[0]);
451
- }
452
- };
453
- window.customElements.define("konnectio-gift-card", $);
439
+ }), [["__scopeId", "data-v-06fd20aa"]]), Ae = h(), je = T(), Me = w("konnectio-gift-card", ke, (e) => {
440
+ e.provide("emitter", je), e.use(O), e.use(Ae), e.use(C), e.use(B);
441
+ });
454
442
  //#endregion
455
- export { $ as default };
443
+ export { Me as default };
Binary file
Binary file
@@ -1,5 +1,5 @@
1
- import { T as e, bt as t, l as n, n as r, u as i } from "./mitt-Dp_pykgV.js";
2
- import { A as a, E as o, M as s, P as c, T as l, V as u, at as d, et as f, lt as p } from "./SelectField-Deugng4e.js";
1
+ import { T as e, bt as t, l as n, n as r, u as i } from "./mitt-D_sfUt2u.js";
2
+ import { A as a, E as o, M as s, P as c, T as l, V as u, at as d, et as f, lt as p } from "./SelectField-BuepNFGh.js";
3
3
  //#region src/store/giftCard.ts
4
4
  var m = n("giftCard", () => {
5
5
  let { pay: n } = a(), { display: m } = s(), { metaData: h, currencyId: g, hasError: _ } = i(o()), v = o(), y = t(f.InitialState), b = p("konnectio_name", "", void 0, { serializer: d.string }), x = p("konnectio_email", "", void 0, { serializer: d.string }), S = p("konnectio_phone", "", void 0, { serializer: d.string }), C = t(""), w = t(1), T = t(!0), E = t(""), D = t({
Binary file
Binary file