@konnectio/core 4.7.4 → 4.7.6

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 (111) hide show
  1. package/dist/{ActionField-B1aBJVRb.js → ActionField-KZjb9lT9.js} +42 -42
  2. package/dist/ActionField-KZjb9lT9.js.br +0 -0
  3. package/dist/ActionField-KZjb9lT9.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-B1hwKbSA.js → AvailabilitySkeleton-CEdJogdt.js} +1662 -1662
  5. package/dist/AvailabilitySkeleton-CEdJogdt.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-CEdJogdt.js.gz +0 -0
  7. package/dist/{CheckoutWindow-BD2PXPt7.js → CheckoutWindow-BI5hQY73.js} +155 -154
  8. package/dist/CheckoutWindow-BI5hQY73.js.br +0 -0
  9. package/dist/CheckoutWindow-BI5hQY73.js.gz +0 -0
  10. package/dist/{ErrorMessage-DiRVby8f.js → ErrorMessage-BmIm1fd8.js} +13 -13
  11. package/dist/ErrorMessage-BmIm1fd8.js.br +0 -0
  12. package/dist/ErrorMessage-BmIm1fd8.js.gz +0 -0
  13. package/dist/EventAvailabilityForm-BS4UkhDW.js +114 -0
  14. package/dist/EventAvailabilityForm-BS4UkhDW.js.br +0 -0
  15. package/dist/EventAvailabilityForm-BS4UkhDW.js.gz +0 -0
  16. package/dist/{Field-BYZdtara.js → Field-DWuQQgVC.js} +7 -7
  17. package/dist/Field-DWuQQgVC.js.br +0 -0
  18. package/dist/Field-DWuQQgVC.js.gz +0 -0
  19. package/dist/HotelAvailabilityForm-CCI7Ub6M.js +323 -0
  20. package/dist/HotelAvailabilityForm-CCI7Ub6M.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-CCI7Ub6M.js.gz +0 -0
  22. package/dist/{SelectField-m_n1cMe0.js → SelectField-5RVfSG15.js} +2644 -2590
  23. package/dist/SelectField-5RVfSG15.js.br +0 -0
  24. package/dist/SelectField-5RVfSG15.js.gz +0 -0
  25. package/dist/TermsOfService-DJbt6icJ.js +17 -0
  26. package/dist/TermsOfService-DJbt6icJ.js.br +0 -0
  27. package/dist/TermsOfService-DJbt6icJ.js.gz +0 -0
  28. package/dist/_-WoNM0Unh.js +25 -0
  29. package/dist/_-WoNM0Unh.js.br +0 -0
  30. package/dist/_-WoNM0Unh.js.gz +0 -0
  31. package/dist/availability.js +39 -39
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +71 -71
  35. package/dist/cancel-reservation.js.br +0 -0
  36. package/dist/cancel-reservation.js.gz +0 -0
  37. package/dist/core.css +1 -1
  38. package/dist/core.css.br +0 -0
  39. package/dist/core.css.gz +0 -0
  40. package/dist/deep-link.js +17 -17
  41. package/dist/deep-link.js.br +0 -0
  42. package/dist/deep-link.js.gz +0 -0
  43. package/dist/{dist-8cx1vxIY.js → dist-BbbpdaI7.js} +17 -17
  44. package/dist/dist-BbbpdaI7.js.br +0 -0
  45. package/dist/dist-BbbpdaI7.js.gz +0 -0
  46. package/dist/{masonry.plugin-DG-fnTtd.js → dist-Bl3zpaAg.js} +44 -994
  47. package/dist/dist-Bl3zpaAg.js.br +0 -0
  48. package/dist/dist-Bl3zpaAg.js.gz +0 -0
  49. package/dist/event.js +393 -393
  50. package/dist/event.js.br +0 -0
  51. package/dist/event.js.gz +0 -0
  52. package/dist/gift-card-validation.js +51 -51
  53. package/dist/gift-card-validation.js.br +0 -0
  54. package/dist/gift-card-validation.js.gz +0 -0
  55. package/dist/gift-card.js +168 -168
  56. package/dist/gift-card.js.br +0 -0
  57. package/dist/gift-card.js.gz +0 -0
  58. package/dist/{giftCard-4w50jcS_.js → giftCard-D-RDtJQu.js} +17 -17
  59. package/dist/giftCard-D-RDtJQu.js.br +0 -0
  60. package/dist/giftCard-D-RDtJQu.js.gz +0 -0
  61. package/dist/hotel.js +925 -924
  62. package/dist/hotel.js.br +0 -0
  63. package/dist/hotel.js.gz +0 -0
  64. package/dist/{mitt-DosBWi_E.js → i18n-DwFTw_rF.js} +1 -24
  65. package/dist/i18n-DwFTw_rF.js.br +0 -0
  66. package/dist/{mitt-DosBWi_E.js.gz → i18n-DwFTw_rF.js.gz} +0 -0
  67. package/dist/polyfill.js +1 -1
  68. package/dist/polyfill.js.br +0 -0
  69. package/dist/polyfill.js.gz +0 -0
  70. package/dist/{style-BzTt5D-A.js → style-M-qG6NpA.js} +389 -389
  71. package/dist/style-M-qG6NpA.js.br +0 -0
  72. package/dist/style-M-qG6NpA.js.gz +0 -0
  73. package/dist-wix/availability.js +22 -22
  74. package/dist-wix/event.js +6 -6
  75. package/dist-wix/gift-card-validation.js +11 -11
  76. package/dist-wix/gift-card.js +25 -25
  77. package/dist-wix/hotel.js +7 -7
  78. package/package.json +5 -4
  79. package/dist/ActionField-B1aBJVRb.js.br +0 -0
  80. package/dist/ActionField-B1aBJVRb.js.gz +0 -0
  81. package/dist/AvailabilitySkeleton-B1hwKbSA.js.br +0 -0
  82. package/dist/AvailabilitySkeleton-B1hwKbSA.js.gz +0 -0
  83. package/dist/CheckoutWindow-BD2PXPt7.js.br +0 -0
  84. package/dist/CheckoutWindow-BD2PXPt7.js.gz +0 -0
  85. package/dist/ErrorMessage-DiRVby8f.js.br +0 -0
  86. package/dist/ErrorMessage-DiRVby8f.js.gz +0 -0
  87. package/dist/EventAvailabilityForm-DW6_GZv3.js +0 -114
  88. package/dist/EventAvailabilityForm-DW6_GZv3.js.br +0 -0
  89. package/dist/EventAvailabilityForm-DW6_GZv3.js.gz +0 -0
  90. package/dist/Field-BYZdtara.js.br +0 -0
  91. package/dist/Field-BYZdtara.js.gz +0 -0
  92. package/dist/HotelAvailabilityForm-B7yHDXz3.js +0 -323
  93. package/dist/HotelAvailabilityForm-B7yHDXz3.js.br +0 -0
  94. package/dist/HotelAvailabilityForm-B7yHDXz3.js.gz +0 -0
  95. package/dist/SelectField-m_n1cMe0.js.br +0 -0
  96. package/dist/SelectField-m_n1cMe0.js.gz +0 -0
  97. package/dist/TermsOfService-CXblPhj1.js +0 -17
  98. package/dist/TermsOfService-CXblPhj1.js.br +0 -0
  99. package/dist/TermsOfService-CXblPhj1.js.gz +0 -0
  100. package/dist/_-CTagk-cE.js +0 -25
  101. package/dist/_-CTagk-cE.js.br +0 -0
  102. package/dist/_-CTagk-cE.js.gz +0 -3
  103. package/dist/dist-8cx1vxIY.js.br +0 -0
  104. package/dist/dist-8cx1vxIY.js.gz +0 -0
  105. package/dist/giftCard-4w50jcS_.js.br +0 -0
  106. package/dist/giftCard-4w50jcS_.js.gz +0 -0
  107. package/dist/masonry.plugin-DG-fnTtd.js.br +0 -0
  108. package/dist/masonry.plugin-DG-fnTtd.js.gz +0 -0
  109. package/dist/mitt-DosBWi_E.js.br +0 -0
  110. package/dist/style-BzTt5D-A.js.br +0 -0
  111. package/dist/style-BzTt5D-A.js.gz +0 -0
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, q as S, r as C, s as w, t as T, u as E, x as ee, y as D } from "./mitt-DosBWi_E.js";
2
- import { t as O } from "./dist-8cx1vxIY.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-m_n1cMe0.js";
4
- import { t as I } from "./_-CTagk-cE.js";
5
- import { t as L } from "./ErrorMessage-DiRVby8f.js";
6
- import { n as R, t as z } from "./Field-BYZdtara.js";
7
- import { t as B } from "./style-BzTt5D-A.js";
8
- import { i as ie, n as ae, r as oe, t as se } from "./CheckoutWindow-BD2PXPt7.js";
9
- import { t as V } from "./giftCard-4w50jcS_.js";
10
- import { t as H } from "./TermsOfService-CXblPhj1.js";
1
+ import { D as e, E as t, Et as n, J as r, K as i, N as a, O as o, Q as s, T as c, Tt as l, a as u, b as d, ct as f, dt as p, g as m, ht as h, i as g, j as _, kt as v, l as y, n as b, o as x, s as S, ut as C, v as w, w as T, x as ee, yt as E } from "./i18n-DwFTw_rF.js";
2
+ import { t as D } from "./dist-BbbpdaI7.js";
3
+ import { E as te, N as O, S as k, _ as ne, b as re, n as A, r as j, t as M, v as N, y as P } from "./SelectField-5RVfSG15.js";
4
+ import { t as F } from "./_-WoNM0Unh.js";
5
+ import { t as I } from "./ErrorMessage-BmIm1fd8.js";
6
+ import { n as L, t as R } from "./Field-DWuQQgVC.js";
7
+ import { t as z } from "./style-M-qG6NpA.js";
8
+ import { i as ie, n as ae, r as oe, t as se } from "./CheckoutWindow-BI5hQY73.js";
9
+ import { t as B } from "./giftCard-D-RDtJQu.js";
10
+ import { t as V } from "./TermsOfService-DJbt6icJ.js";
11
11
  //#region src/components/inputs/MediaSelector.vue?vue&type=script&setup=true&lang.ts
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({
12
+ var H = { class: "media-selector" }, U = ["accept"], W = { class: "media-selector-wrapper" }, G = { class: "media-selector-tools" }, K = { key: 0 }, q = { key: 1 }, J = { key: 2 }, Y = ["src"], X = /*@__PURE__*/ a({
13
13
  __name: "MediaSelector",
14
14
  props: {
15
15
  modelValue: {},
@@ -22,22 +22,22 @@ var U = { class: "media-selector" }, W = ["accept"], G = { class: "media-selecto
22
22
  }
23
23
  },
24
24
  emits: ["update:modelValue"],
25
- setup(e, { emit: t }) {
26
- let c = t, l = e, { t: f } = x(), { display: p } = k(), h = m(), _ = u(() => l.modelValue.base64 !== "");
27
- function v(e) {
28
- c("update:modelValue", e);
25
+ setup(i, { emit: a }) {
26
+ let s = a, d = i, { t: f } = u(), { display: p } = O(), m = E(), h = T(() => d.modelValue.base64 !== "");
27
+ function g(e) {
28
+ s("update:modelValue", e);
29
29
  }
30
- function b() {
31
- v({
30
+ function v() {
31
+ g({
32
32
  base64: "",
33
33
  name: "",
34
34
  type: ""
35
- }), h.value && (h.value.value = "");
35
+ }), m.value && (m.value.value = "");
36
36
  }
37
- function S() {
38
- h.value && h.value.click();
37
+ function y() {
38
+ m.value && m.value.click();
39
39
  }
40
- function C(e, t) {
40
+ function b(e, t) {
41
41
  let [n, r] = [e.name, e.type], i = new FileReader();
42
42
  i.onload = function(e) {
43
43
  if (e.target) {
@@ -53,56 +53,56 @@ var U = { class: "media-selector" }, W = ["accept"], G = { class: "media-selecto
53
53
  });
54
54
  }, i.readAsDataURL(e);
55
55
  }
56
- async function w() {
56
+ async function x() {
57
57
  let e;
58
- (e = h.value.files) instanceof FileList && C(e[0], v);
58
+ (e = m.value.files) instanceof FileList && b(e[0], g);
59
59
  }
60
- return (t, c) => (d(), n(j, {
61
- label: e.label,
62
- required: e.required,
60
+ return (a, s) => (r(), t(ne, {
61
+ label: i.label,
62
+ required: i.required,
63
63
  type: "media"
64
64
  }, {
65
- default: g(() => [i("div", U, [i("input", {
65
+ default: C(() => [c("div", H, [c("input", {
66
66
  ref_key: "fileInput",
67
- ref: h,
67
+ ref: m,
68
68
  type: "file",
69
69
  class: "hidden",
70
- accept: e.validation,
70
+ accept: i.validation,
71
71
  single: "",
72
- onChange: c[0] ||= (e) => w()
73
- }, null, 40, W), i("div", G, [i("ul", K, [
74
- _.value ? s("", !0) : (d(), y("li", q, [o(P, {
75
- label: a(f)("uploadFile"),
72
+ onChange: s[0] ||= (e) => x()
73
+ }, null, 40, U), c("div", W, [c("ul", G, [
74
+ h.value ? e("", !0) : (r(), o("li", K, [_(N, {
75
+ label: l(f)("uploadFile"),
76
76
  type: "button",
77
77
  icon: "upload",
78
- "icon-color": e.iconColor,
79
- onClickEvent: c[1] ||= (e) => S()
78
+ "icon-color": i.iconColor,
79
+ onClickEvent: s[1] ||= (e) => y()
80
80
  }, null, 8, ["label", "icon-color"])])),
81
- _.value ? (d(), y("li", J, [o(P, {
82
- label: a(f)("replaceFile"),
81
+ h.value ? (r(), o("li", q, [_(N, {
82
+ label: l(f)("replaceFile"),
83
83
  type: "button",
84
84
  icon: "repeat-alt",
85
- "icon-color": e.iconColor,
86
- onClickEvent: c[2] ||= (e) => S()
87
- }, null, 8, ["label", "icon-color"])])) : s("", !0),
88
- _.value ? (d(), y("li", Y, [o(P, {
89
- label: a(f)("removeFile"),
85
+ "icon-color": i.iconColor,
86
+ onClickEvent: s[2] ||= (e) => y()
87
+ }, null, 8, ["label", "icon-color"])])) : e("", !0),
88
+ h.value ? (r(), o("li", J, [_(N, {
89
+ label: l(f)("removeFile"),
90
90
  type: "button",
91
91
  icon: "trash-alt",
92
- "icon-color": e.iconColor,
93
- onClickEvent: c[3] ||= (e) => b()
94
- }, null, 8, ["label", "icon-color"])])) : s("", !0)
95
- ]), i("div", { class: r(["media-selector-previewer", { opened: _.value }]) }, [e.modelValue ? (d(), y("img", {
92
+ "icon-color": i.iconColor,
93
+ onClickEvent: s[3] ||= (e) => v()
94
+ }, null, 8, ["label", "icon-color"])])) : e("", !0)
95
+ ]), c("div", { class: n(["media-selector-previewer", { opened: h.value }]) }, [i.modelValue ? (r(), o("img", {
96
96
  key: 0,
97
- src: e.modelValue.base64
98
- }, null, 8, X)) : s("", !0)], 2)])])]),
97
+ src: i.modelValue.base64
98
+ }, null, 8, Y)) : e("", !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 Q(e) {
105
+ function Z(e) {
106
106
  let t = e;
107
107
  t.__i18n = t.__i18n || [], t.__i18n.push({
108
108
  locale: "",
@@ -180,69 +180,69 @@ function Q(e) {
180
180
  }
181
181
  //#endregion
182
182
  //#region src/components/inputs/MediaSelector.vue
183
- typeof Q == "function" && Q(Z);
183
+ typeof Z == "function" && Z(X);
184
184
  //#endregion
185
185
  //#region src/components/skeletons/GiftCardSkeleton.vue?vue&type=script&setup=true&lang.ts
186
- var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form" }, ue = /*#__PURE__*/ A(/* @__PURE__ */ c({
186
+ var Q = { class: "gift-card-skeleton" }, ce = { class: "gift-card-skeleton-form" }, le = /*#__PURE__*/ k(/* @__PURE__ */ a({
187
187
  __name: "GiftCardSkeleton",
188
188
  setup(e) {
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" })
189
+ return (e, t) => (r(), o("div", Q, [c("div", ce, [
190
+ _(R),
191
+ _(R),
192
+ _(R),
193
+ _(R),
194
+ _(R, { "is-text-area": "" }),
195
+ _(L, { height: "44px" })
196
196
  ])]));
197
197
  }
198
- }), [["__scopeId", "data-v-952c68dd"]]), de = { class: "konnectio-accept-terms" }, fe = /*#__PURE__*/ A(/* @__PURE__ */ c({
198
+ }), [["__scopeId", "data-v-952c68dd"]]), ue = { class: "konnectio-accept-terms" }, de = /*#__PURE__*/ k(/* @__PURE__ */ a({
199
199
  __name: "_",
200
200
  props: {
201
201
  content: {},
202
202
  buttonLabel: {}
203
203
  },
204
204
  setup(e) {
205
- let { t: n } = x(), r = m(!1);
206
- return (s, c) => (d(), y("div", de, [o(a(p), {
205
+ let { t } = u(), n = E(!1);
206
+ return (i, a) => (r(), o("div", ue, [_(l(g), {
207
207
  keypath: "general.termsAndConditionsNotice",
208
208
  tag: "span",
209
209
  scope: "global"
210
210
  }, {
211
- button: g(() => [i("i", null, "\"" + t(e.buttonLabel) + "\"", 1)]),
212
- terms: g(() => [i("a", {
211
+ button: C(() => [c("i", null, "\"" + v(e.buttonLabel) + "\"", 1)]),
212
+ terms: C(() => [c("a", {
213
213
  class: "konnectio-accept-terms-link",
214
214
  target: "_blank",
215
- onClick: c[0] ||= D((e) => r.value = !0, ["prevent"])
216
- }, [i("span", null, t(a(n)("general.termsAndConditions")), 1)])]),
215
+ onClick: a[0] ||= w((e) => n.value = !0, ["prevent"])
216
+ }, [c("span", null, v(l(t)("general.termsAndConditions")), 1)])]),
217
217
  _: 1
218
- }), o(H, {
219
- modelValue: r.value,
220
- "onUpdate:modelValue": c[1] ||= (e) => r.value = e,
218
+ }), _(V, {
219
+ modelValue: n.value,
220
+ "onUpdate:modelValue": a[1] ||= (e) => n.value = e,
221
221
  description: e.content
222
222
  }, null, 8, ["modelValue", "description"])]));
223
223
  }
224
- }), [["__scopeId", "data-v-93ef3159"]]), pe = /* @__PURE__ */ c({
224
+ }), [["__scopeId", "data-v-93ef3159"]]), fe = /* @__PURE__ */ a({
225
225
  __name: "GiftCard",
226
226
  setup(e) {
227
- let { t } = x(), r = V();
228
- return (e, i) => (d(), n(fe, {
229
- content: a(r).termsOfService,
230
- "button-label": a(t)("giftCard.orderGiftCard")
227
+ let { t: n } = u(), i = B();
228
+ return (e, a) => (r(), t(de, {
229
+ content: l(i).termsOfService,
230
+ "button-label": l(n)("giftCard.orderGiftCard")
231
231
  }, null, 8, ["content", "button-label"]));
232
232
  }
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 }, $ = {
233
+ }), pe = ["data-layout"], me = { id: "konnectio-gift-card-wrapper" }, he = { id: "konnectio-gift-card-title" }, ge = { id: "konnectio-gift-card-content" }, _e = { id: "konnectio-gift-card-payment" }, ve = ["innerHTML"], ye = { key: 0 }, be = {
234
234
  key: 0,
235
235
  id: "konnectio-select-place-type"
236
- }, xe = { class: /*@__PURE__*/ r(["konnectio-label", "required"]) }, Se = { id: "konnectio-select-place-type-input" }, Ce = ["innerHTML"], we = {
236
+ }, $ = { class: /*@__PURE__*/ n(["konnectio-label", "required"]) }, xe = { id: "konnectio-select-place-type-input" }, Se = ["innerHTML"], Ce = {
237
237
  key: 0,
238
238
  id: "konnectio-gift-card-order"
239
- }, Te = { class: "konnectio-panel" }, Ee = {
239
+ }, we = { class: "konnectio-panel" }, Te = {
240
240
  key: 1,
241
241
  id: "konnectio-gift-card-remarks"
242
- }, De = {
242
+ }, Ee = {
243
243
  key: 2,
244
244
  id: "konnectio-gift-card-order-minimal"
245
- }, Oe = { id: "konnectio-gift-card-recaptcha" }, ke = /*#__PURE__*/ A(/* @__PURE__ */ c({
245
+ }, De = { id: "konnectio-gift-card-recaptcha" }, Oe = /*#__PURE__*/ k(/* @__PURE__ */ a({
246
246
  name: "GiftCardLayout",
247
247
  __name: "GiftCard",
248
248
  props: {
@@ -251,42 +251,42 @@ var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form
251
251
  placeType: {},
252
252
  styling: {}
253
253
  },
254
- setup(r) {
255
- let c = r, p = u(() => ({
254
+ setup(n) {
255
+ let a = n, g = T(() => ({
256
256
  panelMaxWidth: "800px",
257
- ...c.styling
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
- j.value = void 0;
261
- }), S(() => {
262
- let e = c.placeType ? parseInt(c.placeType) : void 0;
257
+ ...a.styling
258
+ })), { t: b } = u(), { name: x, email: S, phone: w, value: E, remark: D, showValue: O, quantity: k, media: ne, placeId: L, placeType: R, showFormPage: z, showPaymentPage: V, showConfirmationPage: H, places: U, hasFilledForm: W, hasForcedPlaceType: G, isWaitingForResponse: K } = y(B()), { initialize: q, orderGiftCard: J, fetchMetadata: Y } = B(), { isRecaptchaEnabled: X, currency: Z, hasError: Q } = y(te());
259
+ return f(R, () => {
260
+ L.value = void 0;
261
+ }), i(() => {
262
+ let e = a.placeType ? parseInt(a.placeType) : void 0;
263
263
  q(e);
264
- }), (c, u) => (d(), n(ne, { styling: p.value }, {
265
- default: g(() => [(d(), n(l, null, {
266
- default: g(() => [o(I, {
267
- "access-token": r.accessToken,
268
- "data-layout": r.layout,
269
- callback: a(Y)
264
+ }), (i, a) => (r(), t(re, { styling: g.value }, {
265
+ default: C(() => [(r(), t(ee, null, {
266
+ default: C(() => [_(F, {
267
+ "access-token": n.accessToken,
268
+ "data-layout": n.layout,
269
+ callback: l(Y)
270
270
  }, {
271
- default: g(() => [a(Q) ? (d(), n(L, {
271
+ default: C(() => [l(Q) ? (r(), t(I, {
272
272
  key: 1,
273
273
  title: "Unable to render Gift card module",
274
274
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
275
- })) : (d(), y("div", {
275
+ })) : (r(), o("div", {
276
276
  key: 0,
277
277
  id: "konnectio-gift-card-module",
278
- "data-layout": r.layout
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)]]),
283
- _(i("div", null, [i("p", {
278
+ "data-layout": n.layout
279
+ }, [c("div", me, [
280
+ c("h2", he, [c("span", null, v(l(b)("giftCard.title")), 1)]),
281
+ c("div", ge, [
282
+ p(c("div", _e, [_(se)], 512), [[m, l(V)]]),
283
+ p(c("div", null, [c("p", {
284
284
  id: "konnectio-gift-card-description",
285
- innerHTML: a(m)("giftCard.description")
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,
285
+ innerHTML: l(b)("giftCard.description")
286
+ }, null, 8, ve), c("form", null, [
287
+ l(G) ? e("", !0) : (r(), o("div", ye, [l(U) ? (r(), o("div", be, [c("label", $, [c("span", null, v(l(b)("giftCard.selectType")), 1)]), c("div", xe, [c("ul", null, [(r(!0), o(d, null, s(l(U), (e, t) => (r(), o("li", { key: t }, [_(oe, {
288
+ modelValue: l(R),
289
+ "onUpdate:modelValue": a[0] ||= (e) => h(R) ? R.value = e : null,
290
290
  type: "radio",
291
291
  name: "placeType",
292
292
  val: t,
@@ -295,12 +295,12 @@ var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form
295
295
  "modelValue",
296
296
  "val",
297
297
  "label"
298
- ])]))), 128))]), a(U)[a(R)] && a(U)[a(R)].data.length > 1 ? (d(), n(N, {
298
+ ])]))), 128))]), l(U)[l(R)] && l(U)[l(R)].data.length > 1 ? (r(), t(M, {
299
299
  key: 0,
300
- modelValue: a(j),
301
- "onUpdate:modelValue": u[1] ||= (e) => v(j) ? j.value = e : null,
302
- placeholder: a(m)("giftCard.selectPlacePlaceholder"),
303
- options: a(U)[a(R)].data,
300
+ modelValue: l(L),
301
+ "onUpdate:modelValue": a[1] ||= (e) => h(L) ? L.value = e : null,
302
+ placeholder: l(b)("giftCard.selectPlacePlaceholder"),
303
+ options: l(U)[l(R)].data,
304
304
  labelKey: "name",
305
305
  valueKey: "id",
306
306
  required: ""
@@ -308,58 +308,58 @@ var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form
308
308
  "modelValue",
309
309
  "placeholder",
310
310
  "options"
311
- ])) : s("", !0)])])) : (d(), n(F, { key: 1 }))])),
312
- o(M, {
313
- modelValue: a(h),
314
- "onUpdate:modelValue": u[2] ||= (e) => v(h) ? h.value = e : null,
311
+ ])) : e("", !0)])])) : (r(), t(P, { key: 1 }))])),
312
+ _(A, {
313
+ modelValue: l(x),
314
+ "onUpdate:modelValue": a[2] ||= (e) => h(x) ? x.value = e : null,
315
315
  type: "text",
316
316
  name: "name",
317
317
  autocomplete: "name",
318
- label: a(m)("giftCard.name"),
318
+ label: l(b)("giftCard.name"),
319
319
  icon: "user-alt",
320
- placeholder: a(m)("giftCard.namePlaceholder"),
320
+ placeholder: l(b)("giftCard.namePlaceholder"),
321
321
  required: ""
322
322
  }, null, 8, [
323
323
  "modelValue",
324
324
  "label",
325
325
  "placeholder"
326
326
  ]),
327
- o(M, {
328
- modelValue: a(C),
329
- "onUpdate:modelValue": u[3] ||= (e) => v(C) ? C.value = e : null,
327
+ _(A, {
328
+ modelValue: l(S),
329
+ "onUpdate:modelValue": a[3] ||= (e) => h(S) ? S.value = e : null,
330
330
  type: "email",
331
331
  name: "email",
332
332
  autocomplete: "email",
333
- label: a(m)("giftCard.email"),
333
+ label: l(b)("giftCard.email"),
334
334
  icon: "at",
335
- placeholder: a(m)("giftCard.emailPlaceholder"),
335
+ placeholder: l(b)("giftCard.emailPlaceholder"),
336
336
  required: ""
337
337
  }, null, 8, [
338
338
  "modelValue",
339
339
  "label",
340
340
  "placeholder"
341
341
  ]),
342
- o(ie, {
343
- modelValue: a(w),
344
- "onUpdate:modelValue": u[4] ||= (e) => v(w) ? w.value = e : null,
342
+ _(ie, {
343
+ modelValue: l(w),
344
+ "onUpdate:modelValue": a[4] ||= (e) => h(w) ? w.value = e : null,
345
345
  icon: "phone-office",
346
- label: a(m)("giftCard.phone"),
347
- placeholder: a(m)("giftCard.phonePlaceholder"),
346
+ label: l(b)("giftCard.phone"),
347
+ placeholder: l(b)("giftCard.phonePlaceholder"),
348
348
  required: ""
349
349
  }, null, 8, [
350
350
  "modelValue",
351
351
  "label",
352
352
  "placeholder"
353
353
  ]),
354
- o(M, {
355
- modelValue: a(T),
356
- "onUpdate:modelValue": u[5] ||= (e) => v(T) ? T.value = e : null,
354
+ _(A, {
355
+ modelValue: l(E),
356
+ "onUpdate:modelValue": a[5] ||= (e) => h(E) ? E.value = e : null,
357
357
  type: "number",
358
358
  name: "value",
359
- label: a(m)("giftCard.value"),
359
+ label: l(b)("giftCard.value"),
360
360
  icon: "money-bill",
361
- placeholder: a(m)("giftCard.valuePlaceholder"),
362
- suffix: a(Z),
361
+ placeholder: l(b)("giftCard.valuePlaceholder"),
362
+ suffix: l(Z),
363
363
  required: ""
364
364
  }, null, 8, [
365
365
  "modelValue",
@@ -367,77 +367,77 @@ var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form
367
367
  "placeholder",
368
368
  "suffix"
369
369
  ]),
370
- s("", !0),
371
- s("", !0),
372
- o(re, {
373
- modelValue: a(k),
374
- "onUpdate:modelValue": u[8] ||= (e) => v(k) ? k.value = e : null,
375
- label: a(m)("giftCard.quantity"),
370
+ e("", !0),
371
+ e("", !0),
372
+ _(j, {
373
+ modelValue: l(k),
374
+ "onUpdate:modelValue": a[8] ||= (e) => h(k) ? k.value = e : null,
375
+ label: l(b)("giftCard.quantity"),
376
376
  icon: "gift-card",
377
377
  required: ""
378
378
  }, null, 8, ["modelValue", "label"])
379
- ])], 512), [[f, a(z)]]),
380
- _(i("div", null, [i("div", { innerHTML: a(m)("giftCard.thankYou") }, null, 8, Ce)], 512), [[f, a(H)]])
379
+ ])], 512), [[m, l(z)]]),
380
+ p(c("div", null, [c("div", { innerHTML: l(b)("giftCard.thankYou") }, null, 8, Se)], 512), [[m, l(H)]])
381
381
  ]),
382
- r.layout !== "minimal" && a(z) ? (d(), y("div", we, [i("div", Te, [o(P, {
383
- label: a(m)("giftCard.orderGiftCard"),
382
+ n.layout !== "minimal" && l(z) ? (r(), o("div", Ce, [c("div", we, [_(N, {
383
+ label: l(b)("giftCard.orderGiftCard"),
384
384
  "full-width": !0,
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)
385
+ disabled: !l(W),
386
+ "is-loading": l(K),
387
+ "onUpdate:isLoading": a[9] ||= (e) => h(K) ? K.value = e : null,
388
+ onClickEvent: l(J)
389
389
  }, null, 8, [
390
390
  "label",
391
391
  "disabled",
392
392
  "is-loading",
393
393
  "onClickEvent"
394
- ])])])) : s("", !0),
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,
394
+ ])])])) : e("", !0),
395
+ l(z) ? (r(), o("div", Te, [_(A, {
396
+ modelValue: l(D),
397
+ "onUpdate:modelValue": a[10] ||= (e) => h(D) ? D.value = e : null,
398
398
  type: "textarea",
399
399
  name: "remark",
400
- label: a(m)("giftCard.remark"),
400
+ label: l(b)("giftCard.remark"),
401
401
  icon: "info-circle",
402
- placeholder: a(m)("giftCard.remarkPlaceholder")
402
+ placeholder: l(b)("giftCard.remarkPlaceholder")
403
403
  }, null, 8, [
404
404
  "modelValue",
405
405
  "label",
406
406
  "placeholder"
407
- ])])) : s("", !0),
408
- a(z) ? (d(), y("div", De, [
409
- o(P, {
410
- label: a(m)("giftCard.orderGiftCard"),
407
+ ])])) : e("", !0),
408
+ l(z) ? (r(), o("div", Ee, [
409
+ _(N, {
410
+ label: l(b)("giftCard.orderGiftCard"),
411
411
  "full-width": !0,
412
- disabled: !a(W),
412
+ disabled: !l(W),
413
413
  "data-test": "orderGiftCard",
414
- "is-loading": a(K),
415
- "onUpdate:isLoading": u[11] ||= (e) => v(K) ? K.value = e : null,
416
- onClickEvent: a(J)
414
+ "is-loading": l(K),
415
+ "onUpdate:isLoading": a[11] ||= (e) => h(K) ? K.value = e : null,
416
+ onClickEvent: l(J)
417
417
  }, null, 8, [
418
418
  "label",
419
419
  "disabled",
420
420
  "is-loading",
421
421
  "onClickEvent"
422
422
  ]),
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)]])
425
- ])) : s("", !0)
426
- ])], 8, me))]),
423
+ c("div", null, [a[12] ||= c("div", { class: "konnectio-divider" }, null, -1), _(fe)]),
424
+ p(c("div", De, [_(ae)], 512), [[m, l(X)]])
425
+ ])) : e("", !0)
426
+ ])], 8, pe))]),
427
427
  _: 1
428
428
  }, 8, [
429
429
  "access-token",
430
430
  "data-layout",
431
431
  "callback"
432
432
  ])]),
433
- fallback: g(() => [o(ue)]),
433
+ fallback: C(() => [_(le)]),
434
434
  _: 1
435
435
  }))]),
436
436
  _: 1
437
437
  }, 8, ["styling"]));
438
438
  }
439
- }), [["__scopeId", "data-v-5baf85ce"]]), 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);
439
+ }), [["__scopeId", "data-v-5baf85ce"]]), ke = S(), Ae = x("konnectio-gift-card", Oe, (e) => {
440
+ e.use(D), e.use(ke), e.use(b), e.use(z);
441
441
  });
442
442
  //#endregion
443
- export { Me as default };
443
+ export { Ae as default };
Binary file
Binary file
@@ -1,26 +1,26 @@
1
- import { T as e, bt as t, l as n, n as r, u as i } from "./mitt-DosBWi_E.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-m_n1cMe0.js";
1
+ import { c as e, l as t, t as n, w as r, yt as i } from "./i18n-DwFTw_rF.js";
2
+ import { E as a, F as o, H as s, N as c, T as l, dt as u, j as d, ot as f, tt as p } from "./SelectField-5RVfSG15.js";
3
3
  //#region src/store/giftCard.ts
4
- var m = n("giftCard", () => {
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({
4
+ var m = e("giftCard", () => {
5
+ let { pay: e } = d(), { display: m } = c(), { metaData: h, currencyId: g, hasError: _ } = t(a()), v = a(), y = i(p.InitialState), b = u("konnectio_name", "", void 0, { serializer: f.string }), x = u("konnectio_email", "", void 0, { serializer: f.string }), S = u("konnectio_phone", "", void 0, { serializer: f.string }), C = i(""), w = i(1), T = i(!0), E = i(""), D = i({
6
6
  base64: "",
7
7
  type: "",
8
8
  name: ""
9
- }), O = t(void 0), k = t(0), A = t(!1), j = t(0), M = e(() => v.metaData.hotels[0]), N = e(() => M.value.termsOfService ? M.value.termsOfService : ""), P = e(() => y.value === f.InitialState || y.value === f.WaitingForResponse), F = e(() => y.value === f.ReadyToPay), I = e(() => y.value === f.PaymentSuccess), L = e(() => {
9
+ }), O = i(void 0), k = i(0), A = i(!1), j = i(0), M = r(() => v.metaData.hotels[0]), N = r(() => M.value.termsOfService ? M.value.termsOfService : ""), P = r(() => y.value === p.InitialState || y.value === p.WaitingForResponse), F = r(() => y.value === p.ReadyToPay), I = r(() => y.value === p.PaymentSuccess), L = r(() => {
10
10
  let e = {
11
11
  1: {
12
- label: r.t("giftCard.hotelType"),
12
+ label: n.t("giftCard.hotelType"),
13
13
  data: []
14
14
  },
15
15
  2: {
16
- label: r.t("giftCard.restaurantType"),
16
+ label: n.t("giftCard.restaurantType"),
17
17
  data: []
18
18
  }
19
19
  }, t = h.value.hotels[0].places;
20
20
  return t && t.forEach((t) => {
21
21
  e[t.placeType].data.push(t);
22
22
  }), Object.fromEntries(Object.entries(e).filter(([, e]) => e.data.length > 0));
23
- }), R = e(() => j.value !== 0), z = e(() => {
23
+ }), R = r(() => j.value !== 0), z = r(() => {
24
24
  let e;
25
25
  if (R.value) e = L.value[j.value].data[0];
26
26
  else if (k.value !== 0) {
@@ -30,24 +30,24 @@ var m = n("giftCard", () => {
30
30
  });
31
31
  }
32
32
  return e;
33
- }), B = e(() => !(!b.value || !x.value || !(S.value.length >= 5) || !C.value || z.value === void 0)), V = e(() => !(y.value === f.InitialState && A.value)), H = e(() => !!(y.value === f.WaitingForResponse && A.value));
33
+ }), B = r(() => !(!b.value || !x.value || !(S.value.length >= 5) || !C.value || z.value === void 0)), V = r(() => !(y.value === p.InitialState && A.value)), H = r(() => !!(y.value === p.WaitingForResponse && A.value));
34
34
  async function U() {
35
35
  try {
36
- let e = (await l().get("/gift-card/metadata", { params: { language: u() } })).data;
36
+ let e = (await l().get("/gift-card/metadata", { params: { language: s() } })).data;
37
37
  e.success === void 0 ? _.value = !1 : _.value = !e.success, h.value = e;
38
38
  } catch {
39
39
  m({
40
- message: r.t("alert.error.couldntFetchMetadata"),
40
+ message: n.t("alert.error.couldntFetchMetadata"),
41
41
  type: "warning"
42
42
  });
43
43
  }
44
44
  }
45
45
  async function W() {
46
- y.value = f.WaitingForResponse, A.value = !0, await l().post("/gift-card/create", {
46
+ y.value = p.WaitingForResponse, A.value = !0, await l().post("/gift-card/create", {
47
47
  termsOfserviceURL: window.location.origin,
48
48
  checkoutUrl: window.location.origin,
49
49
  currencyID: g.value,
50
- language: u(),
50
+ language: s(),
51
51
  amount: C.value,
52
52
  quantity: w.value,
53
53
  freeText: E.value,
@@ -55,15 +55,15 @@ var m = n("giftCard", () => {
55
55
  contactName: b.value,
56
56
  contactEmail: x.value,
57
57
  contactPhone: S.value,
58
- imageBase64: c(D.value.base64),
58
+ imageBase64: o(D.value.base64),
59
59
  imageName: D.value.name,
60
60
  imageFormat: D.value.type,
61
61
  placeType: z.value ? z.value.placeType : void 0,
62
62
  placeID: z.value ? z.value.id : void 0
63
- }).then((e) => {
64
- y.value = f.ReadyToPay, A.value = !1, n({
63
+ }).then((t) => {
64
+ y.value = p.ReadyToPay, A.value = !1, e({
65
65
  callback: () => console.log("Callback!"),
66
- response: e.data
66
+ response: t.data
67
67
  });
68
68
  });
69
69
  }
Binary file
Binary file