@konnectio/core 4.7.3 → 4.7.5

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-C5015jXn.js → ActionField-BSR_1wKe.js} +42 -42
  2. package/dist/ActionField-BSR_1wKe.js.br +0 -0
  3. package/dist/ActionField-BSR_1wKe.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-CIOBfx9I.js → AvailabilitySkeleton-DahKJsT-.js} +1660 -1660
  5. package/dist/AvailabilitySkeleton-DahKJsT-.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-DahKJsT-.js.gz +0 -0
  7. package/dist/{CheckoutWindow-BCDXTHgl.js → CheckoutWindow-DWwmz8yv.js} +152 -152
  8. package/dist/CheckoutWindow-DWwmz8yv.js.br +0 -0
  9. package/dist/CheckoutWindow-DWwmz8yv.js.gz +0 -0
  10. package/dist/{ErrorMessage-2ujqsV0p.js → ErrorMessage-CiXnpywW.js} +13 -13
  11. package/dist/ErrorMessage-CiXnpywW.js.br +0 -0
  12. package/dist/ErrorMessage-CiXnpywW.js.gz +0 -0
  13. package/dist/EventAvailabilityForm-CkhgG14V.js +114 -0
  14. package/dist/EventAvailabilityForm-CkhgG14V.js.br +0 -0
  15. package/dist/EventAvailabilityForm-CkhgG14V.js.gz +0 -0
  16. package/dist/{Field-vW62GIDN.js → Field-BX_mv8fo.js} +7 -7
  17. package/dist/Field-BX_mv8fo.js.br +0 -0
  18. package/dist/Field-BX_mv8fo.js.gz +0 -0
  19. package/dist/HotelAvailabilityForm-B0apZ6dV.js +323 -0
  20. package/dist/HotelAvailabilityForm-B0apZ6dV.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-B0apZ6dV.js.gz +0 -0
  22. package/dist/{SelectField-DttGt-nt.js → SelectField-O_sbbnII.js} +2651 -2613
  23. package/dist/SelectField-O_sbbnII.js.br +0 -0
  24. package/dist/SelectField-O_sbbnII.js.gz +0 -0
  25. package/dist/TermsOfService-CRw50Ij5.js +17 -0
  26. package/dist/TermsOfService-CRw50Ij5.js.br +0 -0
  27. package/dist/TermsOfService-CRw50Ij5.js.gz +4 -0
  28. package/dist/_-CQSZKAkn.js +25 -0
  29. package/dist/_-CQSZKAkn.js.br +0 -0
  30. package/dist/_-CQSZKAkn.js.gz +5 -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-D4z_LE4H.js → dist-DG27dLYP.js} +17 -17
  44. package/dist/dist-DG27dLYP.js.br +0 -0
  45. package/dist/dist-DG27dLYP.js.gz +0 -0
  46. package/dist/event.js +390 -390
  47. package/dist/event.js.br +0 -0
  48. package/dist/event.js.gz +0 -0
  49. package/dist/gift-card-validation.js +51 -51
  50. package/dist/gift-card-validation.js.br +0 -0
  51. package/dist/gift-card-validation.js.gz +0 -0
  52. package/dist/gift-card.js +168 -168
  53. package/dist/gift-card.js.br +0 -0
  54. package/dist/gift-card.js.gz +0 -0
  55. package/dist/{giftCard-BwmRapoq.js → giftCard-vF4EBRX1.js} +17 -17
  56. package/dist/giftCard-vF4EBRX1.js.br +0 -0
  57. package/dist/giftCard-vF4EBRX1.js.gz +0 -0
  58. package/dist/hotel.js +1479 -1479
  59. package/dist/hotel.js.br +0 -0
  60. package/dist/hotel.js.gz +0 -0
  61. package/dist/{mitt-DosBWi_E.js → i18n-DwFTw_rF.js} +1 -24
  62. package/dist/i18n-DwFTw_rF.js.br +0 -0
  63. package/dist/{mitt-DosBWi_E.js.gz → i18n-DwFTw_rF.js.gz} +0 -0
  64. package/dist/{masonry.plugin-DPJDEpE8.js → masonry.plugin-Cu4yg4ry.js} +34 -8
  65. package/dist/masonry.plugin-Cu4yg4ry.js.br +0 -0
  66. package/dist/masonry.plugin-Cu4yg4ry.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-DblOhid-.js → style-TnRMV-Vf.js} +389 -389
  71. package/dist/style-TnRMV-Vf.js.br +0 -0
  72. package/dist/style-TnRMV-Vf.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 +18 -18
  76. package/dist-wix/gift-card.js +24 -24
  77. package/dist-wix/hotel.js +7 -7
  78. package/package.json +1 -3
  79. package/dist/ActionField-C5015jXn.js.br +0 -0
  80. package/dist/ActionField-C5015jXn.js.gz +0 -0
  81. package/dist/AvailabilitySkeleton-CIOBfx9I.js.br +0 -0
  82. package/dist/AvailabilitySkeleton-CIOBfx9I.js.gz +0 -0
  83. package/dist/CheckoutWindow-BCDXTHgl.js.br +0 -0
  84. package/dist/CheckoutWindow-BCDXTHgl.js.gz +0 -0
  85. package/dist/ErrorMessage-2ujqsV0p.js.br +0 -0
  86. package/dist/ErrorMessage-2ujqsV0p.js.gz +0 -0
  87. package/dist/EventAvailabilityForm-Bt-pGK7V.js +0 -114
  88. package/dist/EventAvailabilityForm-Bt-pGK7V.js.br +0 -0
  89. package/dist/EventAvailabilityForm-Bt-pGK7V.js.gz +0 -0
  90. package/dist/Field-vW62GIDN.js.br +0 -0
  91. package/dist/Field-vW62GIDN.js.gz +0 -3
  92. package/dist/HotelAvailabilityForm-DE1by6Fp.js +0 -323
  93. package/dist/HotelAvailabilityForm-DE1by6Fp.js.br +0 -0
  94. package/dist/HotelAvailabilityForm-DE1by6Fp.js.gz +0 -0
  95. package/dist/SelectField-DttGt-nt.js.br +0 -0
  96. package/dist/SelectField-DttGt-nt.js.gz +0 -0
  97. package/dist/TermsOfService-BGmsGLqu.js +0 -17
  98. package/dist/TermsOfService-BGmsGLqu.js.br +0 -0
  99. package/dist/TermsOfService-BGmsGLqu.js.gz +0 -0
  100. package/dist/_--csI0qIp.js +0 -22
  101. package/dist/_--csI0qIp.js.br +0 -0
  102. package/dist/_--csI0qIp.js.gz +0 -0
  103. package/dist/dist-D4z_LE4H.js.br +0 -0
  104. package/dist/dist-D4z_LE4H.js.gz +0 -0
  105. package/dist/giftCard-BwmRapoq.js.br +0 -0
  106. package/dist/giftCard-BwmRapoq.js.gz +0 -0
  107. package/dist/masonry.plugin-DPJDEpE8.js.br +0 -0
  108. package/dist/masonry.plugin-DPJDEpE8.js.gz +0 -0
  109. package/dist/mitt-DosBWi_E.js.br +0 -0
  110. package/dist/style-DblOhid-.js.br +0 -0
  111. package/dist/style-DblOhid-.js.gz +0 -0
Binary file
Binary file
@@ -0,0 +1,17 @@
1
+ import { E as e, J as t, N as n, T as r, Tt as i, a, ut as o } from "./i18n-DwFTw_rF.js";
2
+ import { L as s, S as c } from "./SelectField-O_sbbnII.js";
3
+ import { a as l } from "./CheckoutWindow-DWwmz8yv.js";
4
+ //#region src/components/side-panels/TermsOfService.vue?vue&type=script&setup=true&lang.ts
5
+ var u = { class: "konnectio-terms-side-panel" }, d = ["innerHTML"], f = /*#__PURE__*/ c(/* @__PURE__ */ n({
6
+ __name: "TermsOfService",
7
+ props: { description: {} },
8
+ setup(n) {
9
+ let { t: c } = a();
10
+ return (a, f) => (t(), e(l, { title: i(c)("general.termsAndConditions") }, {
11
+ default: o(() => [r("div", u, [r("p", { innerHTML: i(s)(n.description) }, null, 8, d)])]),
12
+ _: 1
13
+ }, 8, ["title"]));
14
+ }
15
+ }), [["__scopeId", "data-v-107b46b8"]]);
16
+ //#endregion
17
+ export { f as t };
@@ -0,0 +1,4 @@
1
+ x�]R]k�0}��A�"9^al������[ǒч�b�tZ�H��.������J�{�=�rԶ5�c� H�� |
2
+ U ,B� J@
3
+ t��`�ƚ-�4S'3���.��^N�;v�g�0��V�95T�KEM�ޖn��WW�ae�4��oT=���)]�]z~����=�O�,;�t����UV�mk4i�2�jJ[��qق���n�d{UѴ��m�ѱl�p�U�?v件��F���wq/-:أj�s9؃њ*�L�c�w� P���)��~X|�a+�
4
+ d�������EYN2T<���s� ���,��R��V&⨵�u9���I�2:�~� �h��u�}E
@@ -0,0 +1,25 @@
1
+ import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
2
+ import { $ as t, J as n, N as r, O as i, T as a, Tt as o, a as s, kt as c, lt as l } from "./i18n-DwFTw_rF.js";
3
+ import { E as u } from "./SelectField-O_sbbnII.js";
4
+ //#region src/layouts/_.vue?vue&type=script&setup=true&lang.ts
5
+ var d = {
6
+ class: "konnectio-app",
7
+ ref: "base"
8
+ }, f = {
9
+ key: 0,
10
+ class: "konnectio-panel"
11
+ }, p = /*@__PURE__*/ r({
12
+ name: "BaseLayout",
13
+ __name: "_",
14
+ props: {
15
+ accessToken: {},
16
+ type: { default: "none" },
17
+ callback: {}
18
+ },
19
+ async setup(e) {
20
+ let r, p, m = e, { t: h } = s(), { bookingDisabled: g, setAccessToken: _, fetchUtilities: v } = u();
21
+ return [r, p] = l(() => _(m.accessToken)), await r, p(), [r, p] = l(() => v()), await r, p(), m.callback && ([r, p] = l(() => m.callback()), await r, p()), (e, r) => (n(), i("div", d, [o(g) ? (n(), i("div", f, [a("span", null, c(o(h)("alert.error.bookingDisabled")), 1)])) : t(e.$slots, "default", {}, void 0, void 0, 1)], 512));
22
+ }
23
+ }), m = /* @__PURE__ */ e({ default: () => h }), h = p;
24
+ //#endregion
25
+ export { m as n, h as t };
Binary file
@@ -0,0 +1,5 @@
1
+ x�mSaO�0����'Ur@�4el�1Mc�@��P�&�֫kg�S@U���F�t��{��|>�� X�@z6�:�� g�n�������y�����{v��'�^$�/��o�:��h��U�R�*ă��z���h�p�;����ޝ_������Y�;���� �t;���db..���x�h���wM���/�|��ɪ�Qx��S]y
2
+ }W��HK3˃OWҡE�u�4Zz_�-�1�eDz�HG�l"=�t#0���P�@���ICz�v�P�����?��z����41rI%�'���Pq���Gwo���/�P"����� 2%��&I��-Me�C f�!�!�H�'�YDp�D�����>�lH�)� vKT �5B�96��y�k��N��Mm���9>�S L)4�렴
3
+ �|�Ր���q�$�B� n��-*h�3T�Q�e��W� �;��5E�W�
4
+ �=<��[n�M��V��_
5
+ �����m�sD��aGȴ�5I��qɖ��<����/lR<E
@@ -1,13 +1,13 @@
1
- import { At as e, D as t, Dt as n, E as r, Et as i, M as a, O as o, P as s, S as c, T as l, Y as u, bt as d, c as f, d as p, dt as m, k as h, o as g, q as _, r as v, s as y, t as b, x, y as S } from "./mitt-DosBWi_E.js";
2
- import { t as C } from "./dist-D4z_LE4H.js";
3
- import { C as w, S as T, b as E } from "./SelectField-DttGt-nt.js";
4
- import { t as D } from "./_--csI0qIp.js";
5
- import { t as O } from "./AvailabilitySkeleton-CIOBfx9I.js";
6
- import { t as k } from "./HotelAvailabilityForm-DE1by6Fp.js";
7
- import { t as A } from "./EventAvailabilityForm-Bt-pGK7V.js";
8
- import { t as j } from "./ErrorMessage-2ujqsV0p.js";
1
+ import { D as e, E as t, Et as n, J as r, K as i, N as a, O as o, T as s, Tt as c, a as l, b as u, j as d, kt as f, n as p, o as m, s as h, u as g, ut as _, v, w as y, x as b, yt as x } from "./i18n-DwFTw_rF.js";
2
+ import { t as S } from "./dist-DG27dLYP.js";
3
+ import { C, S as w, b as T } from "./SelectField-O_sbbnII.js";
4
+ import { t as E } from "./_-CQSZKAkn.js";
5
+ import { t as D } from "./AvailabilitySkeleton-DahKJsT-.js";
6
+ import { t as O } from "./HotelAvailabilityForm-B0apZ6dV.js";
7
+ import { t as k } from "./EventAvailabilityForm-CkhgG14V.js";
8
+ import { t as A } from "./ErrorMessage-CiXnpywW.js";
9
9
  //#region src/layouts/Availability.vue?vue&type=script&setup=true&lang.ts
10
- var M = { class: "konnectio-availability-module" }, N = { class: "konnectio-availability-navigation" }, P = { class: "konnectio-availability-search-form" }, F = /*#__PURE__*/ T(/* @__PURE__ */ s({
10
+ var j = { class: "konnectio-availability-module" }, M = { class: "konnectio-availability-navigation" }, N = { class: "konnectio-availability-search-form" }, P = /*#__PURE__*/ w(/* @__PURE__ */ a({
11
11
  name: "AvailabilityLayout",
12
12
  __name: "Availability",
13
13
  props: {
@@ -21,58 +21,58 @@ var M = { class: "konnectio-availability-module" }, N = { class: "konnectio-avai
21
21
  hotelDisableDefaultLocation: { default: "no" },
22
22
  styling: {}
23
23
  },
24
- setup(s) {
25
- let { t: f } = g(), { fetchMetadata: v } = w(), y = s, b = d(), C = l(() => !!y.hotelLink || !!y.eventLink), T = l(() => !!y.hotelLink && !!y.eventLink), F = l(() => b.value === "hotel"), I = l(() => b.value === "event"), L = (e) => b.value = e, R = l(() => ({
24
+ setup(a) {
25
+ let { t: p } = l(), { fetchMetadata: m } = C(), h = a, S = x(), w = y(() => !!h.hotelLink || !!h.eventLink), P = y(() => !!h.hotelLink && !!h.eventLink), F = y(() => S.value === "hotel"), I = y(() => S.value === "event"), L = (e) => S.value = e, R = y(() => ({
26
26
  fontSize: "13px",
27
- ...y.styling
27
+ ...h.styling
28
28
  }));
29
- return _(() => {
30
- !y.hotelLink && y.eventLink ? b.value = "event" : b.value = "hotel";
31
- }), (l, d) => (u(), t(E, { styling: R.value }, {
32
- default: m(() => [C.value ? (u(), t(c, { key: 0 }, {
33
- default: m(() => [r("div", null, [a(D, {
34
- "access-token": s.accessToken,
35
- callback: i(v)
29
+ return i(() => {
30
+ !h.hotelLink && h.eventLink ? S.value = "event" : S.value = "hotel";
31
+ }), (i, l) => (r(), t(T, { styling: R.value }, {
32
+ default: _(() => [w.value ? (r(), t(b, { key: 0 }, {
33
+ default: _(() => [s("div", null, [d(E, {
34
+ "access-token": a.accessToken,
35
+ callback: c(m)
36
36
  }, {
37
- default: m(() => [r("div", M, [T.value ? (u(), h(x, { key: 0 }, [r("nav", N, [r("ul", null, [r("li", null, [r("button", {
37
+ default: _(() => [s("div", j, [P.value ? (r(), o(u, { key: 0 }, [s("nav", M, [s("ul", null, [s("li", null, [s("button", {
38
38
  class: n({ active: F.value }),
39
- onClick: d[0] ||= S((e) => L("hotel"), ["prevent"])
40
- }, [r("span", null, e(i(f)("availability.hotel")), 1)], 2)]), r("li", null, [r("button", {
39
+ onClick: l[0] ||= v((e) => L("hotel"), ["prevent"])
40
+ }, [s("span", null, f(c(p)("availability.hotel")), 1)], 2)]), s("li", null, [s("button", {
41
41
  class: n({ active: I.value }),
42
- onClick: d[1] ||= S((e) => L("event"), ["prevent"])
43
- }, [r("span", null, e(i(f)("availability.events")), 1)], 2)])])]), d[2] ||= r("div", { class: "konnectio-availability-divider" }, null, -1)], 64)) : o("", !0), r("div", P, [a(p, {
42
+ onClick: l[1] ||= v((e) => L("event"), ["prevent"])
43
+ }, [s("span", null, f(c(p)("availability.events")), 1)], 2)])])]), l[2] ||= s("div", { class: "konnectio-availability-divider" }, null, -1)], 64)) : e("", !0), s("div", N, [d(g, {
44
44
  name: "fade",
45
45
  mode: "out-in",
46
46
  appear: ""
47
47
  }, {
48
- default: m(() => [F.value ? (u(), t(k, {
48
+ default: _(() => [F.value ? (r(), t(O, {
49
49
  key: 0,
50
- link: s.hotelLink,
51
- "selected-location": Number(s.hotelLocation),
52
- "disable-default-location": s.hotelDisableDefaultLocation === "yes",
53
- "hide-locations": s.hideHotelLocations === "yes"
50
+ link: a.hotelLink,
51
+ "selected-location": Number(a.hotelLocation),
52
+ "disable-default-location": a.hotelDisableDefaultLocation === "yes",
53
+ "hide-locations": a.hideHotelLocations === "yes"
54
54
  }, null, 8, [
55
55
  "link",
56
56
  "selected-location",
57
57
  "disable-default-location",
58
58
  "hide-locations"
59
- ])) : I.value ? (u(), t(A, {
59
+ ])) : I.value ? (r(), t(k, {
60
60
  key: 1,
61
- link: s.eventLink,
62
- "selected-location": Number(s.eventLocation),
63
- "hide-locations": s.hideEventLocations === "yes"
61
+ link: a.eventLink,
62
+ "selected-location": Number(a.eventLocation),
63
+ "hide-locations": a.hideEventLocations === "yes"
64
64
  }, null, 8, [
65
65
  "link",
66
66
  "selected-location",
67
67
  "hide-locations"
68
- ])) : o("", !0)]),
68
+ ])) : e("", !0)]),
69
69
  _: 1
70
70
  })])])]),
71
71
  _: 1
72
72
  }, 8, ["access-token", "callback"])])]),
73
- fallback: m(() => [r("div", null, [a(O, { view: T.value ? "both" : b.value }, null, 8, ["view"])])]),
73
+ fallback: _(() => [s("div", null, [d(D, { view: P.value ? "both" : S.value }, null, 8, ["view"])])]),
74
74
  _: 1
75
- })) : (u(), t(j, {
75
+ })) : (r(), t(A, {
76
76
  key: 1,
77
77
  title: "Unable to render Availability module",
78
78
  description: "The 'hotel-link' and/or 'event-link' properties are missing.<br>\n The Konnectio Availability module can't be rendered without at least one link property set."
@@ -80,8 +80,8 @@ var M = { class: "konnectio-availability-module" }, N = { class: "konnectio-avai
80
80
  _: 1
81
81
  }, 8, ["styling"]));
82
82
  }
83
- }), [["__scopeId", "data-v-d4cca1d0"]]), I = f(), L = b(), R = y("konnectio-availability", F, (e) => {
84
- e.provide("emitter", L), e.use(C), e.use(v), e.use(I);
83
+ }), [["__scopeId", "data-v-d4cca1d0"]]), F = h(), I = m("konnectio-availability", P, (e) => {
84
+ e.use(S), e.use(p), e.use(F);
85
85
  });
86
86
  //#endregion
87
- export { R as default };
87
+ export { I as default };
Binary file
Binary file
@@ -1,62 +1,62 @@
1
- import { At as e, D as t, E as n, Et as r, M as i, P as a, S as o, T as s, Y as c, bt as l, c as u, dt as d, k as f, o as p, r as m, s as h, t as g, x as _ } from "./mitt-DosBWi_E.js";
2
- import { $ as v, M as y, O as b, S as x, b as S, n as C, t as w, v as T } from "./SelectField-DttGt-nt.js";
3
- import { t as E } from "./_--csI0qIp.js";
4
- import { t as D } from "./style-DblOhid-.js";
5
- import { t as O } from "./ActionField-C5015jXn.js";
1
+ import { E as e, J as t, N as n, O as r, T as i, Tt as a, a as o, b as s, j as c, kt as l, n as u, o as d, s as f, ut as p, w as m, x as h, yt as g } from "./i18n-DwFTw_rF.js";
2
+ import { N as _, O as v, S as y, b, et as x, n as S, t as C, v as w } from "./SelectField-O_sbbnII.js";
3
+ import { t as T } from "./_-CQSZKAkn.js";
4
+ import { t as E } from "./style-TnRMV-Vf.js";
5
+ import { t as D } from "./ActionField-BSR_1wKe.js";
6
6
  //#region src/components/forms/CancelReservationForm.vue?vue&type=script&setup=true&lang.ts
7
- var k = { class: "konnectio-cancel-reservation-form" }, A = /*#__PURE__*/ x(/* @__PURE__ */ a({
7
+ var O = { class: "konnectio-cancel-reservation-form" }, k = /*#__PURE__*/ y(/* @__PURE__ */ n({
8
8
  __name: "CancelReservationForm",
9
- setup(e) {
10
- let { t: n } = p(), { display: a } = y(), { cancelReservation: o } = b(), u = s(() => [
9
+ setup(n) {
10
+ let { t: i } = o(), { display: l } = _(), { cancelReservation: u } = v(), d = m(() => [
11
11
  {
12
- label: n("cancelReservation.cancellationReasonRegret"),
13
- value: v.Regret
12
+ label: i("cancelReservation.cancellationReasonRegret"),
13
+ value: x.Regret
14
14
  },
15
15
  {
16
- label: n("cancelReservation.cancellationReasonMistake"),
17
- value: v.BookingMistake
16
+ label: i("cancelReservation.cancellationReasonMistake"),
17
+ value: x.BookingMistake
18
18
  },
19
19
  {
20
- label: n("cancelReservation.cancellationReasonSickness"),
21
- value: v.Sickness
20
+ label: i("cancelReservation.cancellationReasonSickness"),
21
+ value: x.Sickness
22
22
  },
23
23
  {
24
- label: n("cancelReservation.cancellationReasonTestBooking"),
25
- value: v.TestBooking
24
+ label: i("cancelReservation.cancellationReasonTestBooking"),
25
+ value: x.TestBooking
26
26
  },
27
27
  {
28
- label: n("cancelReservation.cancellationReasonBadWeather"),
29
- value: v.BadWeather
28
+ label: i("cancelReservation.cancellationReasonBadWeather"),
29
+ value: x.BadWeather
30
30
  },
31
31
  {
32
- label: n("cancelReservation.cancellationReasonOther"),
33
- value: v.Other
32
+ label: i("cancelReservation.cancellationReasonOther"),
33
+ value: x.Other
34
34
  }
35
- ]), d = l(""), m = l(void 0), h = l(""), g = l(!1), x = l(!1);
36
- function S() {
37
- if (d.value === "") {
38
- a({
39
- message: n("alert.error.reservationIdEmpty"),
35
+ ]), f = g(""), p = g(void 0), h = g(""), y = g(!1), b = g(!1);
36
+ function T() {
37
+ if (f.value === "") {
38
+ l({
39
+ message: i("alert.error.reservationIdEmpty"),
40
40
  type: "error"
41
41
  });
42
42
  return;
43
43
  }
44
- x.value = !0;
44
+ b.value = !0;
45
45
  }
46
46
  function E() {
47
- o({
48
- id: d.value,
49
- reason: m.value,
47
+ u({
48
+ id: f.value,
49
+ reason: p.value,
50
50
  remark: h.value
51
- }), x.value = !1;
51
+ }), b.value = !1;
52
52
  }
53
- return (e, a) => (c(), f("form", k, [x.value ? (c(), f(_, { key: 1 }, [
54
- i(w, {
55
- modelValue: m.value,
56
- "onUpdate:modelValue": a[2] ||= (e) => m.value = e,
57
- label: r(n)("cancelReservation.reasonLabel"),
58
- placeholder: r(n)("cancelReservation.reasonPlaceholder"),
59
- options: u.value,
53
+ return (n, o) => (t(), r("form", O, [b.value ? (t(), r(s, { key: 1 }, [
54
+ c(C, {
55
+ modelValue: p.value,
56
+ "onUpdate:modelValue": o[2] ||= (e) => p.value = e,
57
+ label: a(i)("cancelReservation.reasonLabel"),
58
+ placeholder: a(i)("cancelReservation.reasonPlaceholder"),
59
+ options: d.value,
60
60
  searchable: !1,
61
61
  icon: "ban"
62
62
  }, null, 8, [
@@ -65,38 +65,38 @@ var k = { class: "konnectio-cancel-reservation-form" }, A = /*#__PURE__*/ x(/* @
65
65
  "placeholder",
66
66
  "options"
67
67
  ]),
68
- i(C, {
68
+ c(S, {
69
69
  modelValue: h.value,
70
- "onUpdate:modelValue": a[3] ||= (e) => h.value = e,
70
+ "onUpdate:modelValue": o[3] ||= (e) => h.value = e,
71
71
  type: "textarea",
72
72
  name: "remark",
73
- label: r(n)("cancelReservation.remarkLabel"),
73
+ label: a(i)("cancelReservation.remarkLabel"),
74
74
  icon: "info-circle",
75
- placeholder: r(n)("cancelReservation.remarkPlaceholder")
75
+ placeholder: a(i)("cancelReservation.remarkPlaceholder")
76
76
  }, null, 8, [
77
77
  "modelValue",
78
78
  "label",
79
79
  "placeholder"
80
80
  ]),
81
- i(T, {
82
- label: r(n)("cancelReservation.confirmCancellationButton"),
81
+ c(w, {
82
+ label: a(i)("cancelReservation.confirmCancellationButton"),
83
83
  "full-width": !0,
84
84
  disabled: !1,
85
- "is-loading": g.value,
86
- "onUpdate:isLoading": a[4] ||= (e) => g.value = e,
85
+ "is-loading": y.value,
86
+ "onUpdate:isLoading": o[4] ||= (e) => y.value = e,
87
87
  onClickEvent: E
88
88
  }, null, 8, ["label", "is-loading"])
89
- ], 64)) : (c(), t(O, {
89
+ ], 64)) : (t(), e(D, {
90
90
  key: 0,
91
- modelValue: d.value,
92
- "onUpdate:modelValue": a[0] ||= (e) => d.value = e,
91
+ modelValue: f.value,
92
+ "onUpdate:modelValue": o[0] ||= (e) => f.value = e,
93
93
  icon: "octagon-check",
94
- label: r(n)("cancelReservation.reservationIdLabel"),
95
- buttonLabel: r(n)("cancelReservation.checkReservationIdButton"),
96
- placeholder: r(n)("cancelReservation.reservationIdPlaceholder"),
97
- "is-loading": g.value,
98
- "onUpdate:isLoading": a[1] ||= (e) => g.value = e,
99
- onAction: S
94
+ label: a(i)("cancelReservation.reservationIdLabel"),
95
+ buttonLabel: a(i)("cancelReservation.checkReservationIdButton"),
96
+ placeholder: a(i)("cancelReservation.reservationIdPlaceholder"),
97
+ "is-loading": y.value,
98
+ "onUpdate:isLoading": o[1] ||= (e) => y.value = e,
99
+ onAction: T
100
100
  }, null, 8, [
101
101
  "modelValue",
102
102
  "label",
@@ -105,39 +105,39 @@ var k = { class: "konnectio-cancel-reservation-form" }, A = /*#__PURE__*/ x(/* @
105
105
  "is-loading"
106
106
  ]))]));
107
107
  }
108
- }), [["__scopeId", "data-v-042c89f5"]]), j = { class: "konnectio-cancel-reservation-module" }, M = { class: "konnectio-cancel-reservation-title" }, N = ["innerHTML"], P = { class: "konnectio-cancel-reservation-main" }, F = /*#__PURE__*/ x(/* @__PURE__ */ a({
108
+ }), [["__scopeId", "data-v-042c89f5"]]), A = { class: "konnectio-cancel-reservation-module" }, j = { class: "konnectio-cancel-reservation-title" }, M = ["innerHTML"], N = { class: "konnectio-cancel-reservation-main" }, P = /*#__PURE__*/ y(/* @__PURE__ */ n({
109
109
  name: "CancelReservationLayout",
110
110
  __name: "CancelReservation",
111
111
  props: {
112
112
  accessToken: {},
113
113
  styling: {}
114
114
  },
115
- setup(a) {
116
- let { t: l } = p(), u = a, f = s(() => ({
115
+ setup(n) {
116
+ let { t: r } = o(), s = n, u = m(() => ({
117
117
  panelMaxWidth: "800px",
118
- ...u.styling
118
+ ...s.styling
119
119
  }));
120
- return (s, u) => (c(), t(S, { styling: f.value }, {
121
- default: d(() => [(c(), t(o, null, {
122
- default: d(() => [n("div", null, [i(E, { "access-token": a.accessToken }, {
123
- default: d(() => [n("div", j, [
124
- n("h2", M, [n("span", null, e(r(l)("cancelReservation.title")), 1)]),
125
- n("div", {
126
- innerHTML: r(l)("cancelReservation.cancellationNotice"),
120
+ return (o, s) => (t(), e(b, { styling: u.value }, {
121
+ default: p(() => [(t(), e(h, null, {
122
+ default: p(() => [i("div", null, [c(T, { "access-token": n.accessToken }, {
123
+ default: p(() => [i("div", A, [
124
+ i("h2", j, [i("span", null, l(a(r)("cancelReservation.title")), 1)]),
125
+ i("div", {
126
+ innerHTML: a(r)("cancelReservation.cancellationNotice"),
127
127
  class: "konnectio-cancel-reservation-description"
128
- }, null, 8, N),
129
- n("div", P, [i(A)])
128
+ }, null, 8, M),
129
+ i("div", N, [c(k)])
130
130
  ])]),
131
131
  _: 1
132
132
  }, 8, ["access-token"])])]),
133
- fallback: d(() => [...u[0] ||= [n("div", null, null, -1)]]),
133
+ fallback: p(() => [...s[0] ||= [i("div", null, null, -1)]]),
134
134
  _: 1
135
135
  }))]),
136
136
  _: 1
137
137
  }, 8, ["styling"]));
138
138
  }
139
- }), [["__scopeId", "data-v-8f3d2709"]]), I = u(), L = g(), R = h("konnectio-cancel-reservation", F, (e) => {
140
- e.provide("emitter", L), e.use(m), e.use(I), e.use(D);
139
+ }), [["__scopeId", "data-v-8f3d2709"]]), F = f(), I = d("konnectio-cancel-reservation", P, (e) => {
140
+ e.use(u), e.use(F), e.use(E);
141
141
  });
142
142
  //#endregion
143
- export { R as default };
143
+ export { I as default };
Binary file
Binary file