@konnectio/core 4.11.2 → 4.11.4

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 (116) hide show
  1. package/dist/{ActionField-CrGPD8ma.js → ActionField-uvrQkuh0.js} +16 -17
  2. package/dist/ActionField-uvrQkuh0.js.br +0 -0
  3. package/dist/ActionField-uvrQkuh0.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-CKpPPNyV.js → AvailabilitySkeleton-BnOSMGJe.js} +2374 -2900
  5. package/dist/AvailabilitySkeleton-BnOSMGJe.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-BnOSMGJe.js.gz +0 -0
  7. package/dist/{CheckoutWindow-W80b2grC.js → CheckoutWindow-C81SaALY.js} +579 -655
  8. package/dist/CheckoutWindow-C81SaALY.js.br +0 -0
  9. package/dist/CheckoutWindow-C81SaALY.js.gz +0 -0
  10. package/dist/{ErrorMessage-fmvrjZrE.js → ErrorMessage-CoLcli9h.js} +12 -14
  11. package/dist/ErrorMessage-CoLcli9h.js.br +0 -0
  12. package/dist/{ErrorMessage-fmvrjZrE.js.gz → ErrorMessage-CoLcli9h.js.gz} +0 -0
  13. package/dist/{EventAvailabilityForm-BX0CUyYU.js → EventAvailabilityForm-q1YPg-bW.js} +29 -30
  14. package/dist/EventAvailabilityForm-q1YPg-bW.js.br +0 -0
  15. package/dist/EventAvailabilityForm-q1YPg-bW.js.gz +0 -0
  16. package/dist/{Field-DsFLUyHP.js → Field-DIFm-jDk.js} +6 -7
  17. package/dist/Field-DIFm-jDk.js.br +0 -0
  18. package/dist/Field-DIFm-jDk.js.gz +0 -0
  19. package/dist/HotelAvailabilityForm-B8RzSM0k.js +312 -0
  20. package/dist/HotelAvailabilityForm-B8RzSM0k.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-B8RzSM0k.js.gz +0 -0
  22. package/dist/{SelectField-__FvhjFN.js → SelectField-C9lJ8eBd.js} +3739 -3133
  23. package/dist/SelectField-C9lJ8eBd.js.br +0 -0
  24. package/dist/SelectField-C9lJ8eBd.js.gz +0 -0
  25. package/dist/{TermsOfService-XhYHiCia.js → TermsOfService-0719ZgMM.js} +5 -6
  26. package/dist/TermsOfService-0719ZgMM.js.br +0 -0
  27. package/dist/TermsOfService-0719ZgMM.js.gz +1 -0
  28. package/dist/_-0PVid2uc.js +24 -0
  29. package/dist/_-0PVid2uc.js.br +0 -0
  30. package/dist/_-0PVid2uc.js.gz +7 -0
  31. package/dist/availability.js +24 -25
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +57 -62
  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 +15 -16
  41. package/dist/deep-link.js.br +0 -0
  42. package/dist/deep-link.js.gz +0 -0
  43. package/dist/{dist-ChCkH-cE.js → dist-B_Ox_TrT.js} +705 -756
  44. package/dist/dist-B_Ox_TrT.js.br +0 -0
  45. package/dist/dist-B_Ox_TrT.js.gz +0 -0
  46. package/dist/{dist-CqcX4eCU.js → dist-CFPG9IfN.js} +168 -139
  47. package/dist/dist-CFPG9IfN.js.br +0 -0
  48. package/dist/dist-CFPG9IfN.js.gz +0 -0
  49. package/dist/event.js +334 -344
  50. package/dist/event.js.br +0 -0
  51. package/dist/event.js.gz +0 -0
  52. package/dist/gift-card-validation.js +42 -43
  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 +261 -166
  56. package/dist/gift-card.js.br +0 -0
  57. package/dist/gift-card.js.gz +0 -0
  58. package/dist/giftCard-CAPeGeXI.js +134 -0
  59. package/dist/giftCard-CAPeGeXI.js.br +0 -0
  60. package/dist/giftCard-CAPeGeXI.js.gz +0 -0
  61. package/dist/hotel.js +983 -1145
  62. package/dist/hotel.js.br +0 -0
  63. package/dist/hotel.js.gz +0 -0
  64. package/dist/{i18n-BU9Enb5i.js → i18n-Dq3VKG7w.js} +4004 -3647
  65. package/dist/i18n-Dq3VKG7w.js.br +0 -0
  66. package/dist/i18n-Dq3VKG7w.js.gz +0 -0
  67. package/dist/polyfill.js +905 -818
  68. package/dist/polyfill.js.br +0 -0
  69. package/dist/polyfill.js.gz +0 -0
  70. package/dist/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-QGRDbDUS.js} +2 -3
  71. package/dist/rolldown-runtime-QGRDbDUS.js.br +0 -0
  72. package/dist/rolldown-runtime-QGRDbDUS.js.gz +0 -0
  73. package/dist/style-B4cGytfi.js +1284 -0
  74. package/dist/style-B4cGytfi.js.br +0 -0
  75. package/dist/style-B4cGytfi.js.gz +0 -0
  76. package/dist-wix/availability.js +42 -34
  77. package/dist-wix/event.js +54 -46
  78. package/dist-wix/gift-card-validation.js +39 -31
  79. package/dist-wix/gift-card.js +43 -35
  80. package/dist-wix/hotel.js +54 -46
  81. package/package.json +32 -32
  82. package/dist/ActionField-CrGPD8ma.js.br +0 -0
  83. package/dist/ActionField-CrGPD8ma.js.gz +0 -0
  84. package/dist/AvailabilitySkeleton-CKpPPNyV.js.br +0 -0
  85. package/dist/AvailabilitySkeleton-CKpPPNyV.js.gz +0 -0
  86. package/dist/CheckoutWindow-W80b2grC.js.br +0 -0
  87. package/dist/CheckoutWindow-W80b2grC.js.gz +0 -0
  88. package/dist/ErrorMessage-fmvrjZrE.js.br +0 -0
  89. package/dist/EventAvailabilityForm-BX0CUyYU.js.br +0 -0
  90. package/dist/EventAvailabilityForm-BX0CUyYU.js.gz +0 -0
  91. package/dist/Field-DsFLUyHP.js.br +0 -0
  92. package/dist/Field-DsFLUyHP.js.gz +0 -0
  93. package/dist/HotelAvailabilityForm-_wN0A0VR.js +0 -322
  94. package/dist/HotelAvailabilityForm-_wN0A0VR.js.br +0 -0
  95. package/dist/HotelAvailabilityForm-_wN0A0VR.js.gz +0 -0
  96. package/dist/SelectField-__FvhjFN.js.br +0 -0
  97. package/dist/SelectField-__FvhjFN.js.gz +0 -0
  98. package/dist/TermsOfService-XhYHiCia.js.br +0 -0
  99. package/dist/TermsOfService-XhYHiCia.js.gz +0 -1
  100. package/dist/_-Bi3jyl9S.js +0 -25
  101. package/dist/_-Bi3jyl9S.js.br +0 -0
  102. package/dist/_-Bi3jyl9S.js.gz +0 -0
  103. package/dist/dist-ChCkH-cE.js.br +0 -0
  104. package/dist/dist-ChCkH-cE.js.gz +0 -0
  105. package/dist/dist-CqcX4eCU.js.br +0 -0
  106. package/dist/dist-CqcX4eCU.js.gz +0 -0
  107. package/dist/giftCard-BpWe7WsA.js +0 -114
  108. package/dist/giftCard-BpWe7WsA.js.br +0 -0
  109. package/dist/giftCard-BpWe7WsA.js.gz +0 -0
  110. package/dist/i18n-BU9Enb5i.js.br +0 -0
  111. package/dist/i18n-BU9Enb5i.js.gz +0 -0
  112. package/dist/rolldown-runtime-B0aSnxlc.js.br +0 -0
  113. package/dist/rolldown-runtime-B0aSnxlc.js.gz +0 -5
  114. package/dist/style-CcIo1t4N.js +0 -1711
  115. package/dist/style-CcIo1t4N.js.br +0 -0
  116. package/dist/style-CcIo1t4N.js.gz +0 -0
package/dist/gift-card.js CHANGED
@@ -1,15 +1,15 @@
1
- import { A as e, At as t, D as n, E as r, L as i, M as a, N as o, P as s, Pt as c, Q as l, S as u, _t as d, a as f, bt as p, et as m, gt as h, h as g, i as _, it as v, j as y, jt as b, mt as x, n as S, o as C, p as w, w as T, wt as E, z as D } from "./i18n-BU9Enb5i.js";
2
- import { t as O } from "./dist-ChCkH-cE.js";
3
- import { E as ee, N as te, S as k, T as ne, _ as re, b as ie, n as A, r as ae, t as oe, v as j, y as se } from "./SelectField-__FvhjFN.js";
4
- import { a as ce, c as le, i as ue, l as de, r as fe, s as pe, t as me } from "./CheckoutWindow-W80b2grC.js";
5
- import { t as he } from "./_-Bi3jyl9S.js";
6
- import { t as ge } from "./ErrorMessage-fmvrjZrE.js";
7
- import { n as M, t as N } from "./Field-DsFLUyHP.js";
8
- import { t as P } from "./style-CcIo1t4N.js";
9
- import { t as F } from "./giftCard-BpWe7WsA.js";
10
- import { t as I } from "./TermsOfService-XhYHiCia.js";
11
- //#region src/components/inputs/MediaSelector.vue?vue&type=script&setup=true&lang.ts
12
- var L = { class: "media-selector" }, R = ["accept"], z = { class: "media-selector-wrapper" }, B = { class: "media-selector-tools" }, V = { key: 0 }, H = { key: 1 }, U = { key: 2 }, W = ["src"], G = /*@__PURE__*/ D({
1
+ import { A as e, D as t, Dt as n, E as r, L as i, M as a, N as o, Ot as s, P as c, Q as l, S as u, _t as d, a as f, et as p, ft as m, h, ht as g, i as _, j as v, jt as y, mt as b, n as x, nt as S, o as C, p as w, w as T, xt as E, z as D } from "./i18n-Dq3VKG7w.js";
2
+ import { t as O } from "./style-B4cGytfi.js";
3
+ import { t as k } from "./giftCard-CAPeGeXI.js";
4
+ import { $ as ee, C as te, _ as ne, at as re, b as A, g as j, h as M, j as ie, n as N, r as ae, t as oe, v as se, w as ce } from "./SelectField-C9lJ8eBd.js";
5
+ import { a as le, c as ue, i as P, l as de, r as fe, s as pe, t as me } from "./CheckoutWindow-C81SaALY.js";
6
+ import { t as he } from "./_-0PVid2uc.js";
7
+ import { n as F, t as I } from "./Field-DIFm-jDk.js";
8
+ import { t as ge } from "./ErrorMessage-CoLcli9h.js";
9
+ import { t as L } from "./TermsOfService-0719ZgMM.js";
10
+ import { t as R } from "./dist-B_Ox_TrT.js";
11
+ // src/components/inputs/MediaSelector.vue?vue&type=script&setup=true&lang.ts
12
+ var z = { class: "media-selector" }, B = ["accept"], V = { class: "media-selector-wrapper" }, H = { class: "media-selector-tools" }, _e = { key: 0 }, U = { key: 1 }, W = { key: 2 }, ve = ["src"], ye = /*@__PURE__*/ D({
13
13
  __name: "MediaSelector",
14
14
  props: {
15
15
  modelValue: {},
@@ -22,20 +22,20 @@ var L = { class: "media-selector" }, R = ["accept"], z = { class: "media-selecto
22
22
  }
23
23
  },
24
24
  emits: ["update:modelValue"],
25
- setup(n, { emit: r }) {
26
- let c = r, l = n, { t: u } = f(), { display: d } = te(), p = E(), g = e(() => l.modelValue.base64 !== "");
25
+ setup(t, { emit: r }) {
26
+ let l = r, u = t, { t: d } = f(), { display: m } = ie(), h = E(), g = e(() => u.modelValue.base64 !== "");
27
27
  function _(e) {
28
- c("update:modelValue", e);
28
+ l("update:modelValue", e);
29
29
  }
30
- function v() {
30
+ function y() {
31
31
  _({
32
32
  base64: "",
33
33
  name: "",
34
34
  type: ""
35
- }), p.value && (p.value.value = "");
35
+ }), h.value && (h.value.value = "");
36
36
  }
37
37
  function x() {
38
- p.value && p.value.click();
38
+ h.value && h.value.click();
39
39
  }
40
40
  function S(e, t) {
41
41
  let [n, r] = [e.name, e.type], i = new FileReader();
@@ -47,62 +47,61 @@ var L = { class: "media-selector" }, R = ["accept"], z = { class: "media-selecto
47
47
  name: n,
48
48
  type: r
49
49
  });
50
- } else d({
51
- message: u("imageUploadError"),
50
+ } else m({
51
+ message: d("imageUploadError"),
52
52
  type: "error"
53
53
  });
54
54
  }, i.readAsDataURL(e);
55
55
  }
56
56
  async function C() {
57
57
  let e;
58
- (e = p.value.files) instanceof FileList && S(e[0], _);
58
+ (e = h.value.files) instanceof FileList && S(e[0], _);
59
59
  }
60
- return (e, r) => (m(), a(re, {
61
- label: n.label,
62
- required: n.required,
60
+ return (e, r) => (p(), a(M, {
61
+ label: t.label,
62
+ required: t.required,
63
63
  type: "media"
64
64
  }, {
65
- default: h(() => [y("div", L, [y("input", {
65
+ default: b(() => [v("div", z, [v("input", {
66
66
  ref_key: "fileInput",
67
- ref: p,
67
+ ref: h,
68
68
  type: "file",
69
69
  class: "hidden",
70
- accept: n.validation,
70
+ accept: t.validation,
71
71
  single: "",
72
72
  onChange: r[0] ||= (e) => C()
73
- }, null, 40, R), y("div", z, [y("ul", B, [
74
- g.value ? o("", !0) : (m(), s("li", V, [i(j, {
75
- label: t(u)("uploadFile"),
73
+ }, null, 40, B), v("div", V, [v("ul", H, [
74
+ g.value ? o("", !0) : (p(), c("li", _e, [i(j, {
75
+ label: n(d)("uploadFile"),
76
76
  type: "button",
77
77
  icon: "upload",
78
- "icon-color": n.iconColor,
78
+ "icon-color": t.iconColor,
79
79
  onClickEvent: r[1] ||= (e) => x()
80
80
  }, null, 8, ["label", "icon-color"])])),
81
- g.value ? (m(), s("li", H, [i(j, {
82
- label: t(u)("replaceFile"),
81
+ g.value ? (p(), c("li", U, [i(j, {
82
+ label: n(d)("replaceFile"),
83
83
  type: "button",
84
84
  icon: "repeat-alt",
85
- "icon-color": n.iconColor,
85
+ "icon-color": t.iconColor,
86
86
  onClickEvent: r[2] ||= (e) => x()
87
87
  }, null, 8, ["label", "icon-color"])])) : o("", !0),
88
- g.value ? (m(), s("li", U, [i(j, {
89
- label: t(u)("removeFile"),
88
+ g.value ? (p(), c("li", W, [i(j, {
89
+ label: n(d)("removeFile"),
90
90
  type: "button",
91
91
  icon: "trash-alt",
92
- "icon-color": n.iconColor,
93
- onClickEvent: r[3] ||= (e) => v()
92
+ "icon-color": t.iconColor,
93
+ onClickEvent: r[3] ||= (e) => y()
94
94
  }, null, 8, ["label", "icon-color"])])) : o("", !0)
95
- ]), y("div", { class: b(["media-selector-previewer", { opened: g.value }]) }, [n.modelValue ? (m(), s("img", {
95
+ ]), v("div", { class: s(["media-selector-previewer", { opened: g.value }]) }, [t.modelValue ? (p(), c("img", {
96
96
  key: 0,
97
- src: n.modelValue.base64
98
- }, null, 8, W)) : o("", !0)], 2)])])]),
97
+ src: t.modelValue.base64
98
+ }, null, 8, ve)) : o("", !0)], 2)])])]),
99
99
  _: 1
100
100
  }, 8, ["label", "required"]));
101
101
  }
102
102
  });
103
- //#endregion
104
- //#region src/components/inputs/MediaSelector.vue?vue&type=i18n&index=0&lang.yaml
105
- function K(e) {
103
+ // src/components/inputs/MediaSelector.vue?vue&type=i18n&index=0&lang.yaml
104
+ function G(e) {
106
105
  let t = e;
107
106
  t.__i18n = t.__i18n || [], t.__i18n.push({
108
107
  locale: "",
@@ -178,71 +177,72 @@ function K(e) {
178
177
  }
179
178
  });
180
179
  }
181
- //#endregion
182
- //#region src/components/inputs/MediaSelector.vue
183
- typeof K == "function" && K(G);
184
- //#endregion
185
- //#region src/components/skeletons/GiftCardSkeleton.vue?vue&type=script&setup=true&lang.ts
186
- var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form" }, _e = /*#__PURE__*/ k(/* @__PURE__ */ D({
180
+ // src/components/inputs/MediaSelector.vue
181
+ typeof G == "function" && G(ye);
182
+ // src/components/skeletons/GiftCardSkeleton.vue?vue&type=script&setup=true&lang.ts
183
+ var K = { class: "gift-card-skeleton" }, be = { class: "gift-card-skeleton-form" }, xe = /*#__PURE__*/ A(/* @__PURE__ */ D({
187
184
  __name: "GiftCardSkeleton",
188
185
  setup(e) {
189
- return (e, t) => (m(), s("div", q, [y("div", J, [
190
- i(N),
191
- i(N),
192
- i(N),
193
- i(N),
194
- i(N, { "is-text-area": "" }),
195
- i(M, { height: "44px" })
186
+ return (e, t) => (p(), c("div", K, [v("div", be, [
187
+ i(I),
188
+ i(I),
189
+ i(I),
190
+ i(I),
191
+ i(I, { "is-text-area": "" }),
192
+ i(F, { height: "44px" })
196
193
  ])]));
197
194
  }
198
- }), [["__scopeId", "data-v-952c68dd"]]), Y = { class: "konnectio-accept-terms" }, X = /*#__PURE__*/ k(/* @__PURE__ */ D({
195
+ }), [["__scopeId", "data-v-952c68dd"]]), q = { class: "konnectio-accept-terms" }, J = /*#__PURE__*/ A(/* @__PURE__ */ D({
199
196
  __name: "_",
200
197
  props: {
201
198
  content: {},
202
199
  buttonLabel: {}
203
200
  },
204
201
  setup(e) {
205
- let { t: n } = f(), r = E(!1);
206
- return (a, o) => (m(), s("div", Y, [i(t(_), {
202
+ let { t } = f(), r = E(!1);
203
+ return (a, o) => (p(), c("div", q, [i(n(_), {
207
204
  keypath: "general.termsAndConditionsNotice",
208
205
  tag: "span",
209
206
  scope: "global"
210
207
  }, {
211
- button: h(() => [y("i", null, "\"" + c(e.buttonLabel) + "\"", 1)]),
212
- terms: h(() => [y("a", {
208
+ button: b(() => [v("i", null, "\"" + y(e.buttonLabel) + "\"", 1)]),
209
+ terms: b(() => [v("a", {
213
210
  class: "konnectio-accept-terms-link",
214
211
  target: "_blank",
215
212
  onClick: o[0] ||= T((e) => r.value = !0, ["prevent"])
216
- }, [y("span", null, c(t(n)("general.termsAndConditions")), 1)])]),
213
+ }, [v("span", null, y(n(t)("general.termsAndConditions")), 1)])]),
217
214
  _: 1
218
- }), i(I, {
215
+ }), i(L, {
219
216
  modelValue: r.value,
220
217
  "onUpdate:modelValue": o[1] ||= (e) => r.value = e,
221
218
  description: e.content
222
219
  }, null, 8, ["modelValue", "description"])]));
223
220
  }
224
- }), [["__scopeId", "data-v-93ef3159"]]), ve = /* @__PURE__ */ D({
221
+ }), [["__scopeId", "data-v-93ef3159"]]), Se = /* @__PURE__ */ D({
225
222
  __name: "GiftCard",
226
223
  setup(e) {
227
- let { t: n } = f(), r = F();
228
- return (e, i) => (m(), a(X, {
229
- content: t(r).termsOfService,
230
- "button-label": t(n)("giftCard.orderGiftCard")
224
+ let { t } = f(), r = k();
225
+ return (e, i) => (p(), a(J, {
226
+ content: n(r).termsOfService,
227
+ "button-label": n(t)("giftCard.orderGiftCard")
231
228
  }, null, 8, ["content", "button-label"]));
232
229
  }
233
- }), ye = ["data-layout"], be = { id: "konnectio-gift-card-wrapper" }, xe = { id: "konnectio-gift-card-title" }, Se = { id: "konnectio-gift-card-content" }, Ce = { id: "konnectio-gift-card-payment" }, we = ["innerHTML"], Te = { key: 0 }, Ee = {
230
+ }), Ce = ["data-layout"], we = { id: "konnectio-gift-card-wrapper" }, Te = { id: "konnectio-gift-card-title" }, Ee = { id: "konnectio-gift-card-content" }, De = { id: "konnectio-gift-card-payment" }, Oe = ["innerHTML"], ke = { key: 0 }, Ae = {
234
231
  key: 0,
235
232
  id: "konnectio-select-place-type"
236
- }, De = { class: /*@__PURE__*/ b(["konnectio-label", "required"]) }, Oe = { id: "konnectio-select-place-type-input" }, ke = ["innerHTML"], Z = {
233
+ }, je = { class: /*@__PURE__*/ s(["konnectio-label", "required"]) }, Me = { id: "konnectio-select-place-type-input" }, Ne = {
234
+ key: 3,
235
+ id: "konnectio-select-delivery-type"
236
+ }, Pe = { class: /*@__PURE__*/ s(["konnectio-label", "required"]) }, Fe = { id: "konnectio-select-delivery-type-input" }, Ie = ["innerHTML"], Le = {
237
237
  key: 0,
238
238
  id: "konnectio-gift-card-order"
239
- }, Ae = { class: "konnectio-panel" }, je = {
239
+ }, Re = { class: "konnectio-panel" }, ze = {
240
240
  key: 1,
241
241
  id: "konnectio-gift-card-remarks"
242
- }, Me = {
242
+ }, Be = {
243
243
  key: 2,
244
244
  id: "konnectio-gift-card-order-minimal"
245
- }, Ne = { id: "konnectio-gift-card-recaptcha" }, Q = /*#__PURE__*/ k(/* @__PURE__ */ D({
245
+ }, Ve = { id: "konnectio-gift-card-recaptcha" }, He = /*#__PURE__*/ A(/* @__PURE__ */ D({
246
246
  name: "GiftCardLayout",
247
247
  __name: "GiftCard",
248
248
  props: {
@@ -251,69 +251,72 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
251
251
  placeType: {},
252
252
  styling: {}
253
253
  },
254
- setup(_) {
255
- let b = _, S = e(() => ({
254
+ setup(s) {
255
+ let _ = s, x = e(() => ({
256
256
  panelMaxWidth: "800px",
257
- ...b.styling
258
- })), { t: C } = f(), { name: w, email: T, phone: E, value: D, remark: O, showValue: te, quantity: k, media: re, placeId: M, placeType: N, showFormPage: P, showPaymentPage: I, showConfirmationPage: L, places: R, hasFilledForm: z, hasForcedPlaceType: B, isWaitingForResponse: V } = g(F()), { initialize: H, orderGiftCard: U, fetchMetadata: W, giftCardPayload: G } = F(), { isRecaptchaEnabled: K, currency: q, hasError: J } = g(ee());
259
- de.useHttpClient(pe(ne()));
260
- let Y = le("post", "/gift-card/create", G());
261
- Y.setValidationTimeout(600);
262
- function X(e) {
263
- Y.setData(G()), Y.validate(e);
257
+ ..._.styling
258
+ })), { t: C } = f(), { name: w, email: T, phone: E, value: D, remark: O, showValue: A, quantity: M, media: ie, placeId: F, placeType: I, deliveryOption: L, deliveryName: R, deliveryStreet: z, deliveryZipCode: B, deliveryCity: V, isPhysicalDelivery: H, allowsPhysicalDelivery: _e, shippingFee: U, showFormPage: W, showPaymentPage: ve, showConfirmationPage: ye, places: G, hasFilledForm: K, hasForcedPlaceType: be, isWaitingForResponse: q } = h(k()), { initialize: J, orderGiftCard: He, fetchMetadata: Ue, giftCardPayload: Y } = k(), { isRecaptchaEnabled: We, currency: Ge, hasError: Ke } = h(ce()), qe = e(() => {
259
+ let e = U.value ? ee(U.value, Ge.value) : void 0;
260
+ return e ? `${C("giftCard.physicalDelivery")} · ${e}` : C("giftCard.physicalDelivery");
261
+ });
262
+ de.useHttpClient(ue(te()));
263
+ let X = pe("post", "/gift-card/create", Y());
264
+ X.setValidationTimeout(600);
265
+ function Z(e) {
266
+ X.setData(Y()), X.validate(e);
264
267
  }
265
268
  function Q(e) {
266
- return Y.errors[e];
269
+ return X.errors[e];
267
270
  }
268
271
  async function $() {
269
- let e = await U();
270
- e && Y.setErrors(e);
272
+ let e = await He();
273
+ e && X.setErrors(e);
271
274
  }
272
- return x(w, () => X("contactName")), x(T, () => X("contactEmail")), x(E, () => X("contactPhone")), x(D, () => X("amount")), x(k, () => X("quantity")), x(N, () => {
273
- M.value = void 0;
275
+ return m(w, () => Z("contactName")), m(T, () => Z("contactEmail")), m(E, () => Z("contactPhone")), m(D, () => Z("amount")), m(M, () => Z("quantity")), m(R, () => Z("deliveryAddress.name")), m(z, () => Z("deliveryAddress.address")), m(B, () => Z("deliveryAddress.zipCode")), m(V, () => Z("deliveryAddress.city")), m(I, () => {
276
+ F.value = void 0;
274
277
  }), l(() => {
275
- let e = b.placeType ? parseInt(b.placeType) : void 0;
276
- H(e);
277
- }), (e, l) => (m(), a(ie, { styling: S.value }, {
278
- default: h(() => [(m(), a(n, null, {
279
- default: h(() => [i(he, {
280
- "access-token": _.accessToken,
281
- "data-layout": _.layout,
282
- callback: t(W)
278
+ let e = _.placeType ? parseInt(_.placeType) : void 0;
279
+ J(e);
280
+ }), (e, l) => (p(), a(se, { styling: x.value }, {
281
+ default: b(() => [(p(), a(t, null, {
282
+ default: b(() => [i(he, {
283
+ "access-token": s.accessToken,
284
+ "data-layout": s.layout,
285
+ callback: n(Ue)
283
286
  }, {
284
- default: h(() => [t(J) ? (m(), a(ge, {
287
+ default: b(() => [n(Ke) ? (p(), a(ge, {
285
288
  key: 1,
286
289
  title: "Unable to render Gift card module",
287
290
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
288
- })) : (m(), s("div", {
291
+ })) : (p(), c("div", {
289
292
  key: 0,
290
293
  id: "konnectio-gift-card-module",
291
- "data-layout": _.layout
292
- }, [y("div", be, [
293
- y("h2", xe, [y("span", null, c(t(C)("giftCard.title")), 1)]),
294
- y("div", Se, [
295
- d(y("div", Ce, [i(me)], 512), [[u, t(I)]]),
296
- d(y("div", null, [y("p", {
294
+ "data-layout": s.layout
295
+ }, [v("div", we, [
296
+ v("h2", Te, [v("span", null, y(n(C)("giftCard.title")), 1)]),
297
+ v("div", Ee, [
298
+ g(v("div", De, [i(me)], 512), [[u, n(ve)]]),
299
+ g(v("div", null, [v("p", {
297
300
  id: "konnectio-gift-card-description",
298
- innerHTML: t(C)("giftCard.description")
299
- }, null, 8, we), y("form", null, [
300
- t(B) ? o("", !0) : (m(), s("div", Te, [t(R) ? (m(), s("div", Ee, [y("label", De, [y("span", null, c(t(C)("giftCard.selectType")), 1)]), y("div", Oe, [y("ul", null, [(m(!0), s(r, null, v(t(R), (e, n) => (m(), s("li", { key: n }, [i(ue, {
301
- modelValue: t(N),
302
- "onUpdate:modelValue": l[0] ||= (e) => p(N) ? N.value = e : null,
301
+ innerHTML: n(C)("giftCard.description")
302
+ }, null, 8, Oe), v("form", null, [
303
+ n(be) ? o("", !0) : (p(), c("div", ke, [n(G) ? (p(), c("div", Ae, [v("label", je, [v("span", null, y(n(C)("giftCard.selectType")), 1)]), v("div", Me, [v("ul", null, [(p(!0), c(r, null, S(n(G), (e, t) => (p(), c("li", { key: t }, [i(P, {
304
+ modelValue: n(I),
305
+ "onUpdate:modelValue": l[0] ||= (e) => d(I) ? I.value = e : null,
303
306
  type: "radio",
304
307
  name: "placeType",
305
- val: n,
308
+ val: t,
306
309
  label: e.label
307
310
  }, null, 8, [
308
311
  "modelValue",
309
312
  "val",
310
313
  "label"
311
- ])]))), 128))]), t(R)[t(N)] && t(R)[t(N)].data.length > 1 ? (m(), a(oe, {
314
+ ])]))), 128))]), n(G)[n(I)] && n(G)[n(I)].data.length > 1 ? (p(), a(oe, {
312
315
  key: 0,
313
- modelValue: t(M),
314
- "onUpdate:modelValue": l[1] ||= (e) => p(M) ? M.value = e : null,
315
- placeholder: t(C)("giftCard.selectPlacePlaceholder"),
316
- options: t(R)[t(N)].data,
316
+ modelValue: n(F),
317
+ "onUpdate:modelValue": l[1] ||= (e) => d(F) ? F.value = e : null,
318
+ placeholder: n(C)("giftCard.selectPlacePlaceholder"),
319
+ options: n(G)[n(I)].data,
317
320
  labelKey: "name",
318
321
  valueKey: "id",
319
322
  required: ""
@@ -321,16 +324,16 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
321
324
  "modelValue",
322
325
  "placeholder",
323
326
  "options"
324
- ])) : o("", !0)])])) : (m(), a(se, { key: 1 }))])),
325
- i(A, {
326
- modelValue: t(w),
327
- "onUpdate:modelValue": l[2] ||= (e) => p(w) ? w.value = e : null,
327
+ ])) : o("", !0)])])) : (p(), a(ne, { key: 1 }))])),
328
+ i(N, {
329
+ modelValue: n(w),
330
+ "onUpdate:modelValue": l[2] ||= (e) => d(w) ? w.value = e : null,
328
331
  type: "text",
329
332
  name: "name",
330
333
  autocomplete: "name",
331
- label: t(C)("giftCard.name"),
334
+ label: n(C)("giftCard.name"),
332
335
  icon: "user-alt",
333
- placeholder: t(C)("giftCard.namePlaceholder"),
336
+ placeholder: n(C)("giftCard.namePlaceholder"),
334
337
  error: Q("contactName"),
335
338
  required: ""
336
339
  }, null, 8, [
@@ -339,15 +342,15 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
339
342
  "placeholder",
340
343
  "error"
341
344
  ]),
342
- i(A, {
343
- modelValue: t(T),
344
- "onUpdate:modelValue": l[3] ||= (e) => p(T) ? T.value = e : null,
345
+ i(N, {
346
+ modelValue: n(T),
347
+ "onUpdate:modelValue": l[3] ||= (e) => d(T) ? T.value = e : null,
345
348
  type: "email",
346
349
  name: "email",
347
350
  autocomplete: "email",
348
- label: t(C)("giftCard.email"),
351
+ label: n(C)("giftCard.email"),
349
352
  icon: "at",
350
- placeholder: t(C)("giftCard.emailPlaceholder"),
353
+ placeholder: n(C)("giftCard.emailPlaceholder"),
351
354
  error: Q("contactEmail"),
352
355
  required: ""
353
356
  }, null, 8, [
@@ -356,12 +359,12 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
356
359
  "placeholder",
357
360
  "error"
358
361
  ]),
359
- i(ce, {
360
- modelValue: t(E),
361
- "onUpdate:modelValue": l[4] ||= (e) => p(E) ? E.value = e : null,
362
+ i(le, {
363
+ modelValue: n(E),
364
+ "onUpdate:modelValue": l[4] ||= (e) => d(E) ? E.value = e : null,
362
365
  icon: "phone-office",
363
- label: t(C)("giftCard.phone"),
364
- placeholder: t(C)("giftCard.phonePlaceholder"),
366
+ label: n(C)("giftCard.phone"),
367
+ placeholder: n(C)("giftCard.phonePlaceholder"),
365
368
  error: Q("contactPhone"),
366
369
  required: ""
367
370
  }, null, 8, [
@@ -370,15 +373,15 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
370
373
  "placeholder",
371
374
  "error"
372
375
  ]),
373
- i(A, {
374
- modelValue: t(D),
375
- "onUpdate:modelValue": l[5] ||= (e) => p(D) ? D.value = e : null,
376
+ i(N, {
377
+ modelValue: n(D),
378
+ "onUpdate:modelValue": l[5] ||= (e) => d(D) ? D.value = e : null,
376
379
  type: "number",
377
380
  name: "value",
378
- label: t(C)("giftCard.value"),
381
+ label: n(C)("giftCard.value"),
379
382
  icon: "money-bill",
380
- placeholder: t(C)("giftCard.valuePlaceholder"),
381
- suffix: t(q),
383
+ placeholder: n(C)("giftCard.valuePlaceholder"),
384
+ suffix: n(Ge),
382
385
  error: Q("amount"),
383
386
  required: ""
384
387
  }, null, 8, [
@@ -391,9 +394,9 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
391
394
  o("", !0),
392
395
  o("", !0),
393
396
  i(ae, {
394
- modelValue: t(k),
395
- "onUpdate:modelValue": l[8] ||= (e) => p(k) ? k.value = e : null,
396
- label: t(C)("giftCard.quantity"),
397
+ modelValue: n(M),
398
+ "onUpdate:modelValue": l[8] ||= (e) => d(M) ? M.value = e : null,
399
+ label: n(C)("giftCard.quantity"),
397
400
  icon: "gift-card",
398
401
  error: Q("quantity"),
399
402
  required: ""
@@ -401,67 +404,159 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
401
404
  "modelValue",
402
405
  "label",
403
406
  "error"
404
- ])
405
- ])], 512), [[u, t(P)]]),
406
- d(y("div", null, [y("div", { innerHTML: t(C)("giftCard.thankYou") }, null, 8, ke)], 512), [[u, t(L)]])
407
+ ]),
408
+ n(_e) ? (p(), c("div", Ne, [v("label", Pe, [v("span", null, y(n(C)("giftCard.deliveryType")), 1)]), v("div", Fe, [v("ul", null, [v("li", null, [i(P, {
409
+ modelValue: n(L),
410
+ "onUpdate:modelValue": l[9] ||= (e) => d(L) ? L.value = e : null,
411
+ type: "radio",
412
+ name: "deliveryOption",
413
+ val: n(re).Digital,
414
+ label: n(C)("giftCard.digitalDelivery")
415
+ }, null, 8, [
416
+ "modelValue",
417
+ "val",
418
+ "label"
419
+ ])]), v("li", null, [i(P, {
420
+ modelValue: n(L),
421
+ "onUpdate:modelValue": l[10] ||= (e) => d(L) ? L.value = e : null,
422
+ type: "radio",
423
+ name: "deliveryOption",
424
+ val: n(re).Physical,
425
+ label: qe.value
426
+ }, null, 8, [
427
+ "modelValue",
428
+ "val",
429
+ "label"
430
+ ])])])])])) : o("", !0),
431
+ n(H) ? (p(), c(r, { key: 4 }, [
432
+ i(N, {
433
+ modelValue: n(R),
434
+ "onUpdate:modelValue": l[11] ||= (e) => d(R) ? R.value = e : null,
435
+ type: "text",
436
+ name: "deliveryName",
437
+ autocomplete: "name",
438
+ label: n(C)("giftCard.deliveryName"),
439
+ icon: "user-alt",
440
+ placeholder: n(C)("giftCard.deliveryNamePlaceholder"),
441
+ error: Q("deliveryAddress.name"),
442
+ required: ""
443
+ }, null, 8, [
444
+ "modelValue",
445
+ "label",
446
+ "placeholder",
447
+ "error"
448
+ ]),
449
+ i(N, {
450
+ modelValue: n(z),
451
+ "onUpdate:modelValue": l[12] ||= (e) => d(z) ? z.value = e : null,
452
+ type: "text",
453
+ name: "deliveryStreet",
454
+ autocomplete: "street-address",
455
+ label: n(C)("giftCard.deliveryStreet"),
456
+ icon: "location-dot",
457
+ placeholder: n(C)("giftCard.deliveryStreetPlaceholder"),
458
+ error: Q("deliveryAddress.address"),
459
+ required: ""
460
+ }, null, 8, [
461
+ "modelValue",
462
+ "label",
463
+ "placeholder",
464
+ "error"
465
+ ]),
466
+ i(N, {
467
+ modelValue: n(B),
468
+ "onUpdate:modelValue": l[13] ||= (e) => d(B) ? B.value = e : null,
469
+ type: "text",
470
+ name: "deliveryZipCode",
471
+ autocomplete: "postal-code",
472
+ label: n(C)("giftCard.deliveryZipCode"),
473
+ icon: "location-dot",
474
+ placeholder: n(C)("giftCard.deliveryZipCodePlaceholder"),
475
+ error: Q("deliveryAddress.zipCode"),
476
+ required: ""
477
+ }, null, 8, [
478
+ "modelValue",
479
+ "label",
480
+ "placeholder",
481
+ "error"
482
+ ]),
483
+ i(N, {
484
+ modelValue: n(V),
485
+ "onUpdate:modelValue": l[14] ||= (e) => d(V) ? V.value = e : null,
486
+ type: "text",
487
+ name: "deliveryCity",
488
+ autocomplete: "address-level2",
489
+ label: n(C)("giftCard.deliveryCity"),
490
+ icon: "city",
491
+ placeholder: n(C)("giftCard.deliveryCityPlaceholder"),
492
+ error: Q("deliveryAddress.city"),
493
+ required: ""
494
+ }, null, 8, [
495
+ "modelValue",
496
+ "label",
497
+ "placeholder",
498
+ "error"
499
+ ])
500
+ ], 64)) : o("", !0)
501
+ ])], 512), [[u, n(W)]]),
502
+ g(v("div", null, [v("div", { innerHTML: n(C)("giftCard.thankYou") }, null, 8, Ie)], 512), [[u, n(ye)]])
407
503
  ]),
408
- _.layout !== "minimal" && t(P) ? (m(), s("div", Z, [y("div", Ae, [i(j, {
409
- label: t(C)("giftCard.orderGiftCard"),
504
+ s.layout !== "minimal" && n(W) ? (p(), c("div", Le, [v("div", Re, [i(j, {
505
+ label: n(C)("giftCard.orderGiftCard"),
410
506
  "full-width": !0,
411
- disabled: !t(z),
412
- "is-loading": t(V),
413
- "onUpdate:isLoading": l[9] ||= (e) => p(V) ? V.value = e : null,
507
+ disabled: !n(K),
508
+ "is-loading": n(q),
509
+ "onUpdate:isLoading": l[15] ||= (e) => d(q) ? q.value = e : null,
414
510
  onClickEvent: $
415
511
  }, null, 8, [
416
512
  "label",
417
513
  "disabled",
418
514
  "is-loading"
419
515
  ])])])) : o("", !0),
420
- t(P) ? (m(), s("div", je, [i(A, {
421
- modelValue: t(O),
422
- "onUpdate:modelValue": l[10] ||= (e) => p(O) ? O.value = e : null,
516
+ n(W) ? (p(), c("div", ze, [i(N, {
517
+ modelValue: n(O),
518
+ "onUpdate:modelValue": l[16] ||= (e) => d(O) ? O.value = e : null,
423
519
  type: "textarea",
424
520
  name: "remark",
425
- label: t(C)("giftCard.remark"),
521
+ label: n(C)("giftCard.remark"),
426
522
  icon: "info-circle",
427
- placeholder: t(C)("giftCard.remarkPlaceholder")
523
+ placeholder: n(C)("giftCard.remarkPlaceholder")
428
524
  }, null, 8, [
429
525
  "modelValue",
430
526
  "label",
431
527
  "placeholder"
432
528
  ])])) : o("", !0),
433
- t(P) ? (m(), s("div", Me, [
529
+ n(W) ? (p(), c("div", Be, [
434
530
  i(j, {
435
- label: t(C)("giftCard.orderGiftCard"),
531
+ label: n(C)("giftCard.orderGiftCard"),
436
532
  "full-width": !0,
437
- disabled: !t(z),
533
+ disabled: !n(K),
438
534
  "data-test": "orderGiftCard",
439
- "is-loading": t(V),
440
- "onUpdate:isLoading": l[11] ||= (e) => p(V) ? V.value = e : null,
535
+ "is-loading": n(q),
536
+ "onUpdate:isLoading": l[17] ||= (e) => d(q) ? q.value = e : null,
441
537
  onClickEvent: $
442
538
  }, null, 8, [
443
539
  "label",
444
540
  "disabled",
445
541
  "is-loading"
446
542
  ]),
447
- y("div", null, [l[12] ||= y("div", { class: "konnectio-divider" }, null, -1), i(ve)]),
448
- d(y("div", Ne, [i(fe)], 512), [[u, t(K)]])
543
+ v("div", null, [l[18] ||= v("div", { class: "konnectio-divider" }, null, -1), i(Se)]),
544
+ g(v("div", Ve, [i(fe)], 512), [[u, n(We)]])
449
545
  ])) : o("", !0)
450
- ])], 8, ye))]),
546
+ ])], 8, Ce))]),
451
547
  _: 1
452
548
  }, 8, [
453
549
  "access-token",
454
550
  "data-layout",
455
551
  "callback"
456
552
  ])]),
457
- fallback: h(() => [i(_e)]),
553
+ fallback: b(() => [i(xe)]),
458
554
  _: 1
459
555
  }))]),
460
556
  _: 1
461
557
  }, 8, ["styling"]));
462
558
  }
463
- }), [["__scopeId", "data-v-779afb5c"]]), $ = w(), Pe = C("konnectio-gift-card", Q, (e) => {
464
- e.use(O), e.use($), e.use(S), e.use(P);
559
+ }), [["__scopeId", "data-v-8807d9c4"]]), Ue = w(), Y = C("konnectio-gift-card", He, (e) => {
560
+ e.use(R), e.use(Ue), e.use(x), e.use(O);
465
561
  });
466
- //#endregion
467
- export { Pe as default };
562
+ export { Y as default };
Binary file