@konnectio/core 4.6.0 → 4.7.1

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 (110) hide show
  1. package/README.md +274 -274
  2. package/dist/{ActionField-B7UmJY0Z.js → ActionField-VBqFo88z.js} +3 -3
  3. package/dist/ActionField-VBqFo88z.js.br +0 -0
  4. package/dist/ActionField-VBqFo88z.js.gz +0 -0
  5. package/dist/{AvailabilitySkeleton-BUHF365q.js → AvailabilitySkeleton-BFFLetWz.js} +4 -4
  6. package/dist/AvailabilitySkeleton-BFFLetWz.js.br +0 -0
  7. package/dist/AvailabilitySkeleton-BFFLetWz.js.gz +0 -0
  8. package/dist/{CheckoutWindow-0YZfQh0h.js → CheckoutWindow-AsI3_Bzr.js} +6 -6
  9. package/dist/CheckoutWindow-AsI3_Bzr.js.br +0 -0
  10. package/dist/CheckoutWindow-AsI3_Bzr.js.gz +0 -0
  11. package/dist/{ErrorMessage-DAJHMXps.js → ErrorMessage-D1MPQQle.js} +3 -3
  12. package/dist/ErrorMessage-D1MPQQle.js.br +0 -0
  13. package/dist/ErrorMessage-D1MPQQle.js.gz +0 -0
  14. package/dist/{EventAvailabilityForm-CYqJiGK-.js → EventAvailabilityForm-D9PTCYNX.js} +4 -4
  15. package/dist/EventAvailabilityForm-D9PTCYNX.js.br +0 -0
  16. package/dist/EventAvailabilityForm-D9PTCYNX.js.gz +0 -0
  17. package/dist/{Field-Bot3mYQN.js → Field-BL-AoXBd.js} +7 -7
  18. package/dist/Field-BL-AoXBd.js.br +0 -0
  19. package/dist/Field-BL-AoXBd.js.gz +0 -0
  20. package/dist/{HotelAvailabilityForm-B7kyXx-7.js → HotelAvailabilityForm-C7eUUGs2.js} +4 -4
  21. package/dist/HotelAvailabilityForm-C7eUUGs2.js.br +0 -0
  22. package/dist/HotelAvailabilityForm-C7eUUGs2.js.gz +0 -0
  23. package/dist/{SelectField-hnSeKsyE.js → SelectField-CrqlbsOV.js} +26 -13
  24. package/dist/SelectField-CrqlbsOV.js.br +0 -0
  25. package/dist/SelectField-CrqlbsOV.js.gz +0 -0
  26. package/dist/{TermsOfService-BNMlDWlr.js → TermsOfService-_e6yKE8q.js} +4 -4
  27. package/dist/TermsOfService-_e6yKE8q.js.br +0 -0
  28. package/dist/TermsOfService-_e6yKE8q.js.gz +0 -0
  29. package/dist/{_-C-uU-YJK.js → _-Dtly1pXI.js} +2 -2
  30. package/dist/_-Dtly1pXI.js.br +0 -0
  31. package/dist/_-Dtly1pXI.js.gz +3 -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-BRLG6yf0.js → dist-CNKW8-tw.js} +4 -4
  45. package/dist/dist-CNKW8-tw.js.br +0 -0
  46. package/dist/dist-CNKW8-tw.js.gz +0 -0
  47. package/dist/event.js +136 -146
  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 +92 -105
  54. package/dist/gift-card.js.br +0 -0
  55. package/dist/gift-card.js.gz +0 -0
  56. package/dist/{giftCard-DVmVkjIL.js → giftCard-DZU9iLJa.js} +2 -2
  57. package/dist/giftCard-DZU9iLJa.js.br +0 -0
  58. package/dist/giftCard-DZU9iLJa.js.gz +0 -0
  59. package/dist/hotel.js +1206 -1219
  60. package/dist/hotel.js.br +0 -0
  61. package/dist/hotel.js.gz +0 -0
  62. package/dist/{masonry.plugin-BE-hxMX3.js → masonry.plugin-BsTzBuWI.js} +37 -33
  63. package/dist/masonry.plugin-BsTzBuWI.js.br +0 -0
  64. package/dist/masonry.plugin-BsTzBuWI.js.gz +0 -0
  65. package/dist/{mitt-CC88Lv06.js → mitt-D_sfUt2u.js} +534 -520
  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 +1 -1
  69. package/dist/polyfill.js.br +0 -0
  70. package/dist/polyfill.js.gz +0 -0
  71. package/dist/rolldown-runtime-Dqa2HsxW.js.gz +0 -0
  72. package/dist/{style-BYpuwNCr.js → style-jcOhDNFr.js} +2 -2
  73. package/dist/style-jcOhDNFr.js.br +0 -0
  74. package/dist/style-jcOhDNFr.js.gz +0 -0
  75. package/dist-wix/availability.js +593 -71
  76. package/dist-wix/event.js +591 -69
  77. package/dist-wix/gift-card-validation.js +590 -68
  78. package/dist-wix/gift-card.js +592 -70
  79. package/dist-wix/hotel.js +591 -69
  80. package/package.json +121 -121
  81. package/dist/ActionField-B7UmJY0Z.js.br +0 -0
  82. package/dist/ActionField-B7UmJY0Z.js.gz +0 -0
  83. package/dist/AvailabilitySkeleton-BUHF365q.js.br +0 -0
  84. package/dist/AvailabilitySkeleton-BUHF365q.js.gz +0 -0
  85. package/dist/CheckoutWindow-0YZfQh0h.js.br +0 -0
  86. package/dist/CheckoutWindow-0YZfQh0h.js.gz +0 -0
  87. package/dist/ErrorMessage-DAJHMXps.js.br +0 -0
  88. package/dist/ErrorMessage-DAJHMXps.js.gz +0 -0
  89. package/dist/EventAvailabilityForm-CYqJiGK-.js.br +0 -0
  90. package/dist/EventAvailabilityForm-CYqJiGK-.js.gz +0 -0
  91. package/dist/Field-Bot3mYQN.js.br +0 -0
  92. package/dist/Field-Bot3mYQN.js.gz +0 -0
  93. package/dist/HotelAvailabilityForm-B7kyXx-7.js.br +0 -0
  94. package/dist/HotelAvailabilityForm-B7kyXx-7.js.gz +0 -0
  95. package/dist/SelectField-hnSeKsyE.js.br +0 -0
  96. package/dist/SelectField-hnSeKsyE.js.gz +0 -0
  97. package/dist/TermsOfService-BNMlDWlr.js.br +0 -0
  98. package/dist/TermsOfService-BNMlDWlr.js.gz +0 -3
  99. package/dist/_-C-uU-YJK.js.br +0 -0
  100. package/dist/_-C-uU-YJK.js.gz +0 -4
  101. package/dist/dist-BRLG6yf0.js.br +0 -0
  102. package/dist/dist-BRLG6yf0.js.gz +0 -0
  103. package/dist/giftCard-DVmVkjIL.js.br +0 -0
  104. package/dist/giftCard-DVmVkjIL.js.gz +0 -0
  105. package/dist/masonry.plugin-BE-hxMX3.js.br +0 -0
  106. package/dist/masonry.plugin-BE-hxMX3.js.gz +0 -0
  107. package/dist/mitt-CC88Lv06.js.br +0 -0
  108. package/dist/mitt-CC88Lv06.js.gz +0 -0
  109. package/dist/style-BYpuwNCr.js.br +0 -0
  110. package/dist/style-BYpuwNCr.js.gz +0 -0
@@ -1,5 +1,5 @@
1
- import { At as e, E as t, P as n, T as r, Y as i, k as a } from "./mitt-CC88Lv06.js";
2
- import { S as o, V as s } from "./SelectField-hnSeKsyE.js";
1
+ import { At as e, E as t, P as n, T as r, Y as i, k as a } from "./mitt-D_sfUt2u.js";
2
+ import { S as o, V as s } from "./SelectField-CrqlbsOV.js";
3
3
  //#endregion
4
4
  //#region src/components/ErrorMessage.vue?vue&type=script&setup=true&lang.ts
5
5
  var c = { class: "konnectio-notice" }, l = { class: "konnectio-notice-title" }, u = ["innerHTML"], d = { class: "konnectio-notice-help" }, f = ["href"], p = /*#__PURE__*/ o(/* @__PURE__ */ n({
@@ -26,6 +26,6 @@ var c = { class: "konnectio-notice" }, l = { class: "konnectio-notice-title" },
26
26
  }, [...s[0] ||= [t("button", null, [t("span", null, "Need help?")], -1)]], 8, f)])
27
27
  ]));
28
28
  }
29
- }), [["__scopeId", "data-v-103b8eff"]]);
29
+ }), [["__scopeId", "data-v-eb4de3ab"]]);
30
30
  //#endregion
31
31
  export { p as t };
Binary file
Binary file
@@ -1,6 +1,6 @@
1
- import { D as e, Dt as t, Et as n, M as r, O as i, P as a, T as o, Y as s, bt as c, dt as l, f as u, k as d, o as f, u as p, x as m, y as h } from "./mitt-CC88Lv06.js";
2
- import { C as g, S as _, V as v, n as y, t as b, v as x, w as S } from "./SelectField-hnSeKsyE.js";
3
- import { n as C } from "./AvailabilitySkeleton-BUHF365q.js";
1
+ import { D as e, Dt as t, Et as n, M as r, O as i, P as a, T as o, Y as s, bt as c, dt as l, f as u, k as d, o as f, u as p, x as m, y as h } from "./mitt-D_sfUt2u.js";
2
+ import { C as g, S as _, V as v, n as y, t as b, v as x, w as S } from "./SelectField-CrqlbsOV.js";
3
+ import { n as C } from "./AvailabilitySkeleton-BFFLetWz.js";
4
4
  //#region src/components/forms/EventAvailabilityForm.vue?vue&type=script&setup=true&lang.ts
5
5
  var w = {
6
6
  class: "konnectio-search-button",
@@ -109,6 +109,6 @@ var w = {
109
109
  _: 1
110
110
  })], 34));
111
111
  }
112
- }), [["__scopeId", "data-v-fe590a00"]]);
112
+ }), [["__scopeId", "data-v-1fe27ff0"]]);
113
113
  //#endregion
114
114
  export { T as t };
@@ -1,5 +1,5 @@
1
- import { D as e, Dt as t, M as n, O as r, P as i, Y as a, k as o, m as s } from "./mitt-CC88Lv06.js";
2
- import { S as c } from "./SelectField-hnSeKsyE.js";
1
+ import { D as e, Dt as t, M as n, O as r, P as i, Y as a, k as o, m as s } from "./mitt-D_sfUt2u.js";
2
+ import { S as c } from "./SelectField-CrqlbsOV.js";
3
3
  //#region src/components/skeletons/_.vue?vue&type=script&setup=true&lang.ts
4
4
  var l = { class: "konnectio-placeholder" }, u = /*#__PURE__*/ c(/* @__PURE__ */ i({
5
5
  __name: "_",
@@ -10,12 +10,12 @@ var l = { class: "konnectio-placeholder" }, u = /*#__PURE__*/ c(/* @__PURE__ */
10
10
  },
11
11
  setup(e) {
12
12
  return s((e) => ({
13
- v14bbc526: e.width,
14
- b65ad340: e.height,
15
- v68f07257: e.borderRadius
13
+ v5810229a: e.width,
14
+ dd92244c: e.height,
15
+ v23a0735e: e.borderRadius
16
16
  })), (e, t) => (a(), o("div", l));
17
17
  }
18
- }), [["__scopeId", "data-v-8d2eff15"]]), d = {
18
+ }), [["__scopeId", "data-v-1b836f89"]]), d = {
19
19
  key: 0,
20
20
  class: "skeleton-field-label"
21
21
  }, f = { key: 1 }, p = /*#__PURE__*/ c(/* @__PURE__ */ i({
@@ -52,6 +52,6 @@ var l = { class: "konnectio-placeholder" }, u = /*#__PURE__*/ c(/* @__PURE__ */
52
52
  "border-radius": "6px"
53
53
  }, null, 8, ["height"])], 2));
54
54
  }
55
- }), [["__scopeId", "data-v-6ef33e68"]]);
55
+ }), [["__scopeId", "data-v-c072a208"]]);
56
56
  //#endregion
57
57
  export { u as n, p as t };
Binary file
Binary file
@@ -1,6 +1,6 @@
1
- import { D as e, Dt as t, E as n, Et as r, M as i, O as a, P as o, T as s, Y as c, bt as l, dt as ee, f as te, k as u, lt as d, o as ne, q as re, u as f, y as ie } from "./mitt-CC88Lv06.js";
2
- import { C as p, E as m, M as ae, O as oe, S as h, V as se, ft as ce, k as le, n as ue, r as g, t as de, v as fe } from "./SelectField-hnSeKsyE.js";
3
- import { n as _, p as pe } from "./AvailabilitySkeleton-BUHF365q.js";
1
+ import { D as e, Dt as t, E as n, Et as r, M as i, O as a, P as o, T as s, Y as c, bt as l, dt as ee, f as te, k as u, lt as d, o as ne, q as re, u as f, y as ie } from "./mitt-D_sfUt2u.js";
2
+ import { C as p, E as m, M as ae, O as oe, S as h, V as se, ft as ce, k as le, n as ue, r as g, t as de, v as fe } from "./SelectField-CrqlbsOV.js";
3
+ import { n as _, p as pe } from "./AvailabilitySkeleton-BFFLetWz.js";
4
4
  //#region src/components/forms/HotelAvailabilityForm.vue?vue&type=script&setup=true&lang.ts
5
5
  var me = {
6
6
  class: "konnectio-availability-location",
@@ -318,6 +318,6 @@ var me = {
318
318
  _: 1
319
319
  }, 8, ["class"])], 34));
320
320
  }
321
- }), [["__scopeId", "data-v-439e714f"]]);
321
+ }), [["__scopeId", "data-v-e07ca13f"]]);
322
322
  //#endregion
323
323
  export { v as t };
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
2
- import { $ as t, At as n, Ct as r, D as i, Dt as a, E as o, Et as s, F as c, G as l, H as u, I as d, L as f, M as p, O as m, Ot as h, P as g, St as _, T as v, Tt as y, V as b, Y as x, _ as S, _t as C, at as w, bt as T, d as E, dt as D, et as O, ft as k, g as A, h as j, ht as M, i as ee, j as te, k as N, kt as ne, l as P, lt as F, mt as re, n as I, nt as L, o as ie, q as ae, rt as oe, t as se, u as ce, vt as le, wt as ue, x as R, xt as de, y as fe, yt as pe } from "./mitt-CC88Lv06.js";
2
+ import { $ as t, At as n, Ct as r, D as i, Dt as a, E as o, Et as s, F as c, G as l, H as u, I as d, L as f, M as p, O as m, Ot as h, P as g, St as _, T as v, Tt as y, V as b, Y as x, _ as S, _t as C, at as w, bt as T, d as E, dt as D, et as O, ft as k, g as A, h as j, ht as M, i as ee, j as te, k as N, kt as ne, l as P, lt as F, mt as re, n as I, nt as L, o as ie, q as ae, rt as oe, t as se, u as ce, vt as le, wt as ue, x as R, xt as de, y as fe, yt as pe } from "./mitt-D_sfUt2u.js";
3
3
  //#region node_modules/@vueuse/shared/dist/index.js
4
4
  function me(e, t) {
5
5
  return M() ? (C(e, t), !0) : !1;
@@ -4467,6 +4467,11 @@ var Sc = P("applyGiftCard", () => {
4467
4467
  message: I.t("alert.error.memberCardInvalid"),
4468
4468
  type: "error"
4469
4469
  }));
4470
+ }).catch(() => {
4471
+ a({
4472
+ message: I.t("alert.error.memberCardInvalid"),
4473
+ type: "error"
4474
+ });
4470
4475
  });
4471
4476
  } else a({
4472
4477
  message: I.t("alert.error.memberCardEmpty"),
@@ -4781,7 +4786,7 @@ var Sc = P("applyGiftCard", () => {
4781
4786
  async function Ae() {
4782
4787
  await jc().get("/utility/get-settings-and-translations").then((n) => {
4783
4788
  let { settings: a, hotelSettings: o, translations: s } = n.data;
4784
- r.value = a, i.value = o, isNaN(e.adults) && (e.adults = a.defaultAdultAmount), isNaN(e.children) && (e.children = a.defaultChildAmount), e.arrivalDate === null && (e.arrivalDate = Ee()), e.departureDate === null && (e.departureDate = De()), ee(s), r.value.enableTracking && t.setup();
4789
+ a && (r.value = a, i.value = o, isNaN(e.adults) && (e.adults = a.defaultAdultAmount), isNaN(e.children) && (e.children = a.defaultChildAmount), e.arrivalDate === null && (e.arrivalDate = Ee()), e.departureDate === null && (e.departureDate = De()), ee(s), r.value.enableTracking && t.setup());
4785
4790
  }).catch(() => {
4786
4791
  n({
4787
4792
  message: I.t("alert.error.couldntFetchMetadata"),
@@ -4866,16 +4871,24 @@ async function Ac() {
4866
4871
  return Oc.value = Dc().bearerToken, Promise.resolve();
4867
4872
  }
4868
4873
  function jc() {
4869
- let e = window.KONNECTIO_API_URL_OVERRIDE ?? "https://production.hotel-service.konnectio.com";
4870
- return q.create({
4874
+ let e = window.KONNECTIO_API_URL_OVERRIDE ?? "https://production.hotel-service.konnectio.com", t = q.create({
4871
4875
  baseURL: `${e}/api`,
4872
4876
  headers: {
4873
4877
  Accept: "application/json",
4874
4878
  Authorization: Oc.value,
4875
- "Konnectio-Version": "4.6.0",
4879
+ "Konnectio-Version": "4.7.1",
4876
4880
  "Konnectio-Ref": kc.ref
4877
4881
  }
4878
4882
  });
4883
+ return t.interceptors.response.use(void 0, (e) => {
4884
+ let n = e?.config;
4885
+ if (e?.response?.status === 429 && n && (n.__retryCount ?? 0) < 2) {
4886
+ n.__retryCount = (n.__retryCount ?? 0) + 1;
4887
+ let r = e.response.headers?.["retry-after"], i = r && /^\d+$/.test(r) ? Math.min(Number(r) * 1e3, 5e3) : Math.min(1e3 * 2 ** n.__retryCount, 5e3);
4888
+ return new Promise((e) => setTimeout(e, i)).then(() => t.request(n));
4889
+ }
4890
+ return Promise.reject(e);
4891
+ }), t;
4879
4892
  }
4880
4893
  //#endregion
4881
4894
  //#region src/store/event.ts
@@ -9537,7 +9550,7 @@ var Bm = {
9537
9550
  let n = e.__vccOpts || e;
9538
9551
  for (let [e, r] of t) n[e] = r;
9539
9552
  return n;
9540
- }, Pg = /*#__PURE__*/ Ng(Mg, [["__scopeId", "data-v-6d49975d"]]), Fg = {
9553
+ }, Pg = /*#__PURE__*/ Ng(Mg, [["__scopeId", "data-v-2999dd6a"]]), Fg = {
9541
9554
  key: 0,
9542
9555
  class: "konnectio-alert-message"
9543
9556
  }, Ig = /*#__PURE__*/ Ng(/* @__PURE__ */ g({
@@ -9559,7 +9572,7 @@ var Bm = {
9559
9572
  role: "alert"
9560
9573
  }, [s(r) ? (x(), N("div", Fg, [p(Pg, { icon: t[s(i)] }, null, 8, ["icon"]), o("span", null, n(s(r)), 1)])) : m("", !0)], 2));
9561
9574
  }
9562
- }), [["__scopeId", "data-v-46bf8609"]]), Lg = { class: "konnectio-container" }, Rg = /*#__PURE__*/ Ng(/* @__PURE__ */ g({
9575
+ }), [["__scopeId", "data-v-d76e20b7"]]), Lg = { class: "konnectio-container" }, Rg = /*#__PURE__*/ Ng(/* @__PURE__ */ g({
9563
9576
  __name: "Container",
9564
9577
  props: { styling: {} },
9565
9578
  setup(e) {
@@ -9621,7 +9634,7 @@ var Bm = {
9621
9634
  e.setProperty("--accentColor", n.value.accentColor), e.setProperty("--accentColorSecondary", n.value.accentColorSecondary), e.setProperty("--buttonBackground", n.value.buttonBackground), e.setProperty("--buttonBorder", n.value.buttonBorder), e.setProperty("--buttonBorderRadius", n.value.buttonBorderRadius), e.setProperty("--buttonColor", n.value.buttonColor), e.setProperty("--buttonFontFamily", n.value.buttonFontFamily), e.setProperty("--buttonFontSize", n.value.buttonFontSize), e.setProperty("--buttonFontWeight", n.value.buttonFontWeight), e.setProperty("--buttonTextTransform", n.value.buttonTextTransform), e.setProperty("--dangerColor", n.value.dangerColor), e.setProperty("--fontColor", n.value.fontColor), e.setProperty("--fontFamily", n.value.fontFamily), e.setProperty("--fontWeight", n.value.fontWeight), e.setProperty("--fontSize", n.value.fontSize), e.setProperty("--grayColor", n.value.grayColor), e.setProperty("--headerColor", n.value.headerColor), e.setProperty("--headerFontFamily", n.value.headerFontFamily), e.setProperty("--headerLetterSpacing", n.value.headerLetterSpacing), e.setProperty("--headerTextTransform", n.value.headerTextTransform), e.setProperty("--highlightBackground", n.value.highlightBackground), e.setProperty("--inputBackground", n.value.inputBackground), e.setProperty("--inputBorder", n.value.inputBorder), e.setProperty("--inputBorderRadius", n.value.inputBorderRadius), e.setProperty("--inputBorderWidth", n.value.inputBorderWidth), e.setProperty("--inputFontColor", n.value.inputFontColor), e.setProperty("--inputFontWeight", n.value.inputFontWeight), e.setProperty("--inputFontSize", n.value.inputFontSize), e.setProperty("--labelFontColor", n.value.labelFontColor), e.setProperty("--labelFontWeight", n.value.labelFontWeight), e.setProperty("--labelFontSize", n.value.labelFontSize), e.setProperty("--labelPadding", n.value.labelPadding), e.setProperty("--labelTextTransform", n.value.labelTextTransform), e.setProperty("--linkColor", n.value.linkColor), e.setProperty("--linkHoverColor", n.value.linkHoverColor), e.setProperty("--loadingColor", n.value.loadingColor), e.setProperty("--panelBackground", n.value.panelBackground), e.setProperty("--panelBorder", n.value.panelBorder), e.setProperty("--panelBorderRadius", n.value.panelBorderRadius), e.setProperty("--panelInnerPadding", n.value.panelInnerPadding), e.setProperty("--panelMaxWidth", n.value.panelMaxWidth), e.setProperty("--panelPadding", n.value.panelPadding), e.setProperty("--panelSectionBackground", n.value.panelSectionBackground), e.setProperty("--panelSectionBorder", n.value.panelSectionBorder), e.setProperty("--panelSectionBorderRadius", n.value.panelSectionBorderRadius), e.setProperty("--panelShadow", n.value.panelShadow), e.setProperty("--successColor", n.value.successColor), e.setProperty("--stepBarBorderRadius", n.value.stepBarBorderRadius), e.setProperty("--stepBarBackground", n.value.stepBarBackground);
9622
9635
  }), (e, t) => (x(), N("div", null, [o("div", Lg, [O(e.$slots, "default", {}, void 0, !0)]), p(Ig, { "local-domain": "global" })]));
9623
9636
  }
9624
- }), [["__scopeId", "data-v-9e36fdbf"]]), zg = /*#__PURE__*/ Ng(/* @__PURE__ */ g({
9637
+ }), [["__scopeId", "data-v-30a34810"]]), zg = /*#__PURE__*/ Ng(/* @__PURE__ */ g({
9625
9638
  __name: "Loading",
9626
9639
  props: {
9627
9640
  color: {},
@@ -9638,11 +9651,11 @@ var Bm = {
9638
9651
  o("div", { style: ne({ background: e.color }) }, null, 4)
9639
9652
  ], 2));
9640
9653
  }
9641
- }), [["__scopeId", "data-v-38453619"]]), Bg = {}, Vg = { class: "konnectio-spinner" };
9654
+ }), [["__scopeId", "data-v-03f93282"]]), Bg = {}, Vg = { class: "konnectio-spinner" };
9642
9655
  function Hg(e, t) {
9643
9656
  return x(), N("div", Vg, [...t[0] ||= [o("span", null, null, -1)]]);
9644
9657
  }
9645
- var Ug = /*#__PURE__*/ Ng(Bg, [["render", Hg], ["__scopeId", "data-v-88ad2e2d"]]), Wg = [
9658
+ var Ug = /*#__PURE__*/ Ng(Bg, [["render", Hg], ["__scopeId", "data-v-9fca0a3f"]]), Wg = [
9646
9659
  "type",
9647
9660
  "tabindex",
9648
9661
  "disabled"
@@ -9721,7 +9734,7 @@ var Ug = /*#__PURE__*/ Ng(Bg, [["render", Hg], ["__scopeId", "data-v-88ad2e2d"]]
9721
9734
  })])
9722
9735
  ], 64))], 10, Wg));
9723
9736
  }
9724
- }), [["__scopeId", "data-v-540a1086"]]), Xg = { class: "konnectio-input-field" }, Zg = ["for"], Qg = { key: 0 }, $g = {
9737
+ }), [["__scopeId", "data-v-62d9a593"]]), Xg = { class: "konnectio-input-field" }, Zg = ["for"], Qg = { key: 0 }, $g = {
9725
9738
  key: 0,
9726
9739
  class: "konnectio-description-label"
9727
9740
  }, e_ = ["for"], t_ = {
@@ -9801,7 +9814,7 @@ var Ug = /*#__PURE__*/ Ng(Bg, [["render", Hg], ["__scopeId", "data-v-88ad2e2d"]]
9801
9814
  e.description && e.descriptionPlacement === "field" ? (x(), N("div", t_, [o("span", { innerHTML: e.description }, null, 8, n_)])) : m("", !0)
9802
9815
  ]));
9803
9816
  }
9804
- }), [["__scopeId", "data-v-b0727f34"]]), i_ = [
9817
+ }), [["__scopeId", "data-v-53b78f27"]]), i_ = [
9805
9818
  "top",
9806
9819
  "right",
9807
9820
  "bottom",
@@ -10659,7 +10672,7 @@ var rv = /* @__PURE__ */ g({
10659
10672
  ]);
10660
10673
  };
10661
10674
  }
10662
- }), [["__scopeId", "data-v-f895770d"]]), dv = Object.defineProperty, fv = Object.defineProperties, pv = Object.getOwnPropertyDescriptors, mv = Object.getOwnPropertySymbols, hv = Object.prototype.hasOwnProperty, gv = Object.prototype.propertyIsEnumerable, _v = (e, t, n) => t in e ? dv(e, t, {
10675
+ }), [["__scopeId", "data-v-055d391b"]]), dv = Object.defineProperty, fv = Object.defineProperties, pv = Object.getOwnPropertyDescriptors, mv = Object.getOwnPropertySymbols, hv = Object.prototype.hasOwnProperty, gv = Object.prototype.propertyIsEnumerable, _v = (e, t, n) => t in e ? dv(e, t, {
10663
10676
  enumerable: !0,
10664
10677
  configurable: !0,
10665
10678
  writable: !0,
Binary file
Binary file
@@ -1,6 +1,6 @@
1
- import { D as e, E as t, Et as n, P as r, Y as i, dt as a, o } from "./mitt-CC88Lv06.js";
2
- import { I as s, S as c } from "./SelectField-hnSeKsyE.js";
3
- import { a as l } from "./CheckoutWindow-0YZfQh0h.js";
1
+ import { D as e, E as t, Et as n, P as r, Y as i, dt as a, o } from "./mitt-D_sfUt2u.js";
2
+ import { I as s, S as c } from "./SelectField-CrqlbsOV.js";
3
+ import { a as l } from "./CheckoutWindow-AsI3_Bzr.js";
4
4
  //#region src/components/side-panels/TermsOfService.vue?vue&type=script&setup=true&lang.ts
5
5
  var u = { class: "konnectio-terms-side-panel" }, d = ["innerHTML"], f = /*#__PURE__*/ c(/* @__PURE__ */ r({
6
6
  __name: "TermsOfService",
@@ -12,6 +12,6 @@ var u = { class: "konnectio-terms-side-panel" }, d = ["innerHTML"], f = /*#__PUR
12
12
  _: 1
13
13
  }, 8, ["title"]));
14
14
  }
15
- }), [["__scopeId", "data-v-486f73de"]]);
15
+ }), [["__scopeId", "data-v-107b46b8"]]);
16
16
  //#endregion
17
17
  export { f as t };
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
2
- import { P as t, Y as n, et as r, k as i, ut as a } from "./mitt-CC88Lv06.js";
3
- import { E as o } from "./SelectField-hnSeKsyE.js";
2
+ import { P as t, Y as n, et as r, k as i, ut as a } from "./mitt-D_sfUt2u.js";
3
+ import { E as o } from "./SelectField-CrqlbsOV.js";
4
4
  //#region src/layouts/_.vue?vue&type=script&setup=true&lang.ts
5
5
  var s = {
6
6
  class: "konnectio-app",
Binary file
@@ -0,0 +1,3 @@
1
+ x�eRێ�0}n�bP�Tn"*�BU���$V@A�"י,�������*��8�BE,{f�9s�]g]�0 < ��:�����պ�wf� j��[���ᅲ�}���#�*��60���M���8�ީ��o�a���L`{��ex�P7�w�Vo��oGNU=qx���d����ૺ�G|Eg��t� S�!v��ȭ��)����<d���/ �Zc(��s�u9�&[ro��<�9H�W��u}��|Y׳
2
+ #�;$�[�}�HԺ�u�:g;�@�����j�h��Sp�*�74؊���5���B덐��&�%��HZbX ���N� 9h�9�Q��i�ȡ� ���*(�r��
3
+ ,+�$�H���d��-+`�"��I�E�A� u���:c4����>`:v��?#�ɨ�0��Ij����<�w ˧^�@F>�0/�9<�(Rk}���T3��{@߇�d�c�����rX14�q�2�wT���Շ~��~��
@@ -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, p as _, q as v, r as y, s as b, t as x, x as S, y as C } from "./mitt-CC88Lv06.js";
2
- import { t as w } from "./dist-BRLG6yf0.js";
3
- import { C as T, S as E, b as D } from "./SelectField-hnSeKsyE.js";
4
- import { t as O } from "./_-C-uU-YJK.js";
5
- import { t as k } from "./AvailabilitySkeleton-BUHF365q.js";
6
- import { t as A } from "./HotelAvailabilityForm-B7kyXx-7.js";
7
- import { t as j } from "./EventAvailabilityForm-CYqJiGK-.js";
8
- import { t as M } from "./ErrorMessage-DAJHMXps.js";
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-D_sfUt2u.js";
2
+ import { t as C } from "./dist-CNKW8-tw.js";
3
+ import { C as w, S as T, b as E } from "./SelectField-CrqlbsOV.js";
4
+ import { t as D } from "./_-Dtly1pXI.js";
5
+ import { t as O } from "./AvailabilitySkeleton-BFFLetWz.js";
6
+ import { t as k } from "./HotelAvailabilityForm-C7eUUGs2.js";
7
+ import { t as A } from "./EventAvailabilityForm-D9PTCYNX.js";
8
+ import { t as j } from "./ErrorMessage-D1MPQQle.js";
9
9
  //#region src/layouts/Availability.vue?vue&type=script&setup=true&lang.ts
10
- var N = { class: "konnectio-availability-module" }, P = { class: "konnectio-availability-navigation" }, F = { class: "konnectio-availability-search-form" }, I = /*#__PURE__*/ E(/* @__PURE__ */ s({
10
+ var M = { class: "konnectio-availability-module" }, N = { class: "konnectio-availability-navigation" }, P = { class: "konnectio-availability-search-form" }, F = /*#__PURE__*/ T(/* @__PURE__ */ s({
11
11
  name: "AvailabilityLayout",
12
12
  __name: "Availability",
13
13
  props: {
@@ -22,30 +22,30 @@ var N = { class: "konnectio-availability-module" }, P = { class: "konnectio-avai
22
22
  styling: {}
23
23
  },
24
24
  setup(s) {
25
- let { t: f } = g(), { fetchMetadata: _ } = T(), y = s, b = d(), x = l(() => !!y.hotelLink || !!y.eventLink), w = l(() => !!y.hotelLink && !!y.eventLink), E = l(() => b.value === "hotel"), I = l(() => b.value === "event"), L = (e) => b.value = e, R = l(() => ({
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(() => ({
26
26
  fontSize: "13px",
27
27
  ...y.styling
28
28
  }));
29
- return v(() => {
29
+ return _(() => {
30
30
  !y.hotelLink && y.eventLink ? b.value = "event" : b.value = "hotel";
31
- }), (l, d) => (u(), t(D, { styling: R.value }, {
32
- default: m(() => [x.value ? (u(), t(c, { key: 0 }, {
33
- default: m(() => [r("div", null, [a(O, {
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
34
  "access-token": s.accessToken,
35
- callback: i(_)
35
+ callback: i(v)
36
36
  }, {
37
- default: m(() => [r("div", N, [w.value ? (u(), h(S, { key: 0 }, [r("nav", P, [r("ul", null, [r("li", null, [r("button", {
38
- class: n({ active: E.value }),
39
- onClick: d[0] ||= C((e) => L("hotel"), ["prevent"])
37
+ default: m(() => [r("div", M, [T.value ? (u(), h(x, { key: 0 }, [r("nav", N, [r("ul", null, [r("li", null, [r("button", {
38
+ class: n({ active: F.value }),
39
+ onClick: d[0] ||= S((e) => L("hotel"), ["prevent"])
40
40
  }, [r("span", null, e(i(f)("availability.hotel")), 1)], 2)]), r("li", null, [r("button", {
41
41
  class: n({ active: I.value }),
42
- onClick: d[1] ||= C((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", F, [a(p, {
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, {
44
44
  name: "fade",
45
45
  mode: "out-in",
46
46
  appear: ""
47
47
  }, {
48
- default: m(() => [E.value ? (u(), t(A, {
48
+ default: m(() => [F.value ? (u(), t(k, {
49
49
  key: 0,
50
50
  link: s.hotelLink,
51
51
  "selected-location": Number(s.hotelLocation),
@@ -56,7 +56,7 @@ var N = { class: "konnectio-availability-module" }, P = { class: "konnectio-avai
56
56
  "selected-location",
57
57
  "disable-default-location",
58
58
  "hide-locations"
59
- ])) : I.value ? (u(), t(j, {
59
+ ])) : I.value ? (u(), t(A, {
60
60
  key: 1,
61
61
  link: s.eventLink,
62
62
  "selected-location": Number(s.eventLocation),
@@ -70,31 +70,18 @@ var N = { class: "konnectio-availability-module" }, P = { class: "konnectio-avai
70
70
  })])])]),
71
71
  _: 1
72
72
  }, 8, ["access-token", "callback"])])]),
73
- fallback: m(() => [r("div", null, [a(k, { view: w.value ? "both" : b.value }, null, 8, ["view"])])]),
73
+ fallback: m(() => [r("div", null, [a(O, { view: T.value ? "both" : b.value }, null, 8, ["view"])])]),
74
74
  _: 1
75
- })) : (u(), t(M, {
75
+ })) : (u(), t(j, {
76
76
  key: 1,
77
77
  title: "Unable to render Availability module",
78
- description: "The 'hotel-link' and/or 'event-link' properties are missing.<br>\r\n The Konnectio Availability module can't be rendered without at least one link property set."
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."
79
79
  }))]),
80
80
  _: 1
81
81
  }, 8, ["styling"]));
82
82
  }
83
- }), [["__scopeId", "data-v-a8e928a0"]]), L = f(), R = x(), z = class extends HTMLElement {
84
- vueApp;
85
- constructor() {
86
- super();
87
- }
88
- disconnectedCallback() {
89
- this.vueApp.unmount();
90
- }
91
- connectedCallback() {
92
- let e = b(I, this.attributes);
93
- this.vueApp = _(I, e), this.vueApp.provide("emitter", R), this.vueApp.use(w), this.vueApp.use(y), this.vueApp.use(L);
94
- let t = document.createElement("div");
95
- this.vueApp.mount(t), this.appendChild(t.children[0]);
96
- }
97
- };
98
- window.customElements.define("konnectio-availability", z);
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);
85
+ });
99
86
  //#endregion
100
- export { z as default };
87
+ export { R as default };
Binary file
Binary file
@@ -1,38 +1,38 @@
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, p as m, r as h, s as g, t as _, x as v } from "./mitt-CC88Lv06.js";
2
- import { $ as y, M as b, O as x, S, b as C, n as w, t as T, v as E } from "./SelectField-hnSeKsyE.js";
3
- import { t as D } from "./_-C-uU-YJK.js";
4
- import { t as O } from "./style-BYpuwNCr.js";
5
- import { t as k } from "./ActionField-B7UmJY0Z.js";
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-D_sfUt2u.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-CrqlbsOV.js";
3
+ import { t as E } from "./_-Dtly1pXI.js";
4
+ import { t as D } from "./style-jcOhDNFr.js";
5
+ import { t as O } from "./ActionField-VBqFo88z.js";
6
6
  //#region src/components/forms/CancelReservationForm.vue?vue&type=script&setup=true&lang.ts
7
- var A = { class: "konnectio-cancel-reservation-form" }, j = /*#__PURE__*/ S(/* @__PURE__ */ a({
7
+ var k = { class: "konnectio-cancel-reservation-form" }, A = /*#__PURE__*/ x(/* @__PURE__ */ a({
8
8
  __name: "CancelReservationForm",
9
9
  setup(e) {
10
- let { t: n } = p(), { display: a } = b(), { cancelReservation: o } = x(), u = s(() => [
10
+ let { t: n } = p(), { display: a } = y(), { cancelReservation: o } = b(), u = s(() => [
11
11
  {
12
12
  label: n("cancelReservation.cancellationReasonRegret"),
13
- value: y.Regret
13
+ value: v.Regret
14
14
  },
15
15
  {
16
16
  label: n("cancelReservation.cancellationReasonMistake"),
17
- value: y.BookingMistake
17
+ value: v.BookingMistake
18
18
  },
19
19
  {
20
20
  label: n("cancelReservation.cancellationReasonSickness"),
21
- value: y.Sickness
21
+ value: v.Sickness
22
22
  },
23
23
  {
24
24
  label: n("cancelReservation.cancellationReasonTestBooking"),
25
- value: y.TestBooking
25
+ value: v.TestBooking
26
26
  },
27
27
  {
28
28
  label: n("cancelReservation.cancellationReasonBadWeather"),
29
- value: y.BadWeather
29
+ value: v.BadWeather
30
30
  },
31
31
  {
32
32
  label: n("cancelReservation.cancellationReasonOther"),
33
- value: y.Other
33
+ value: v.Other
34
34
  }
35
- ]), d = l(""), m = l(void 0), h = l(""), g = l(!1), _ = l(!1);
35
+ ]), d = l(""), m = l(void 0), h = l(""), g = l(!1), x = l(!1);
36
36
  function S() {
37
37
  if (d.value === "") {
38
38
  a({
@@ -41,17 +41,17 @@ var A = { class: "konnectio-cancel-reservation-form" }, j = /*#__PURE__*/ S(/* @
41
41
  });
42
42
  return;
43
43
  }
44
- _.value = !0;
44
+ x.value = !0;
45
45
  }
46
- function C() {
46
+ function E() {
47
47
  o({
48
48
  id: d.value,
49
49
  reason: m.value,
50
50
  remark: h.value
51
- }), _.value = !1;
51
+ }), x.value = !1;
52
52
  }
53
- return (e, a) => (c(), f("form", A, [_.value ? (c(), f(v, { key: 1 }, [
54
- i(T, {
53
+ return (e, a) => (c(), f("form", k, [x.value ? (c(), f(_, { key: 1 }, [
54
+ i(w, {
55
55
  modelValue: m.value,
56
56
  "onUpdate:modelValue": a[2] ||= (e) => m.value = e,
57
57
  label: r(n)("cancelReservation.reasonLabel"),
@@ -65,7 +65,7 @@ var A = { class: "konnectio-cancel-reservation-form" }, j = /*#__PURE__*/ S(/* @
65
65
  "placeholder",
66
66
  "options"
67
67
  ]),
68
- i(w, {
68
+ i(C, {
69
69
  modelValue: h.value,
70
70
  "onUpdate:modelValue": a[3] ||= (e) => h.value = e,
71
71
  type: "textarea",
@@ -78,15 +78,15 @@ var A = { class: "konnectio-cancel-reservation-form" }, j = /*#__PURE__*/ S(/* @
78
78
  "label",
79
79
  "placeholder"
80
80
  ]),
81
- i(E, {
81
+ i(T, {
82
82
  label: r(n)("cancelReservation.confirmCancellationButton"),
83
83
  "full-width": !0,
84
84
  disabled: !1,
85
85
  "is-loading": g.value,
86
86
  "onUpdate:isLoading": a[4] ||= (e) => g.value = e,
87
- onClickEvent: C
87
+ onClickEvent: E
88
88
  }, null, 8, ["label", "is-loading"])
89
- ], 64)) : (c(), t(k, {
89
+ ], 64)) : (c(), t(O, {
90
90
  key: 0,
91
91
  modelValue: d.value,
92
92
  "onUpdate:modelValue": a[0] ||= (e) => d.value = e,
@@ -105,7 +105,7 @@ var A = { class: "konnectio-cancel-reservation-form" }, j = /*#__PURE__*/ S(/* @
105
105
  "is-loading"
106
106
  ]))]));
107
107
  }
108
- }), [["__scopeId", "data-v-8e11fd35"]]), M = { class: "konnectio-cancel-reservation-module" }, N = { class: "konnectio-cancel-reservation-title" }, P = ["innerHTML"], F = { class: "konnectio-cancel-reservation-main" }, I = /*#__PURE__*/ S(/* @__PURE__ */ a({
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({
109
109
  name: "CancelReservationLayout",
110
110
  __name: "CancelReservation",
111
111
  props: {
@@ -117,16 +117,16 @@ var A = { class: "konnectio-cancel-reservation-form" }, j = /*#__PURE__*/ S(/* @
117
117
  panelMaxWidth: "800px",
118
118
  ...u.styling
119
119
  }));
120
- return (s, u) => (c(), t(C, { styling: f.value }, {
120
+ return (s, u) => (c(), t(S, { styling: f.value }, {
121
121
  default: d(() => [(c(), t(o, null, {
122
- default: d(() => [n("div", null, [i(D, { "access-token": a.accessToken }, {
123
- default: d(() => [n("div", M, [
124
- n("h2", N, [n("span", null, e(r(l)("cancelReservation.title")), 1)]),
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
125
  n("div", {
126
126
  innerHTML: r(l)("cancelReservation.cancellationNotice"),
127
127
  class: "konnectio-cancel-reservation-description"
128
- }, null, 8, P),
129
- n("div", F, [i(j)])
128
+ }, null, 8, N),
129
+ n("div", P, [i(A)])
130
130
  ])]),
131
131
  _: 1
132
132
  }, 8, ["access-token"])])]),
@@ -136,21 +136,8 @@ var A = { class: "konnectio-cancel-reservation-form" }, j = /*#__PURE__*/ S(/* @
136
136
  _: 1
137
137
  }, 8, ["styling"]));
138
138
  }
139
- }), [["__scopeId", "data-v-6270ad61"]]), L = u(), R = _(), z = class extends HTMLElement {
140
- vueApp;
141
- constructor() {
142
- super();
143
- }
144
- disconnectedCallback() {
145
- this.vueApp.unmount();
146
- }
147
- connectedCallback() {
148
- let e = g(I, this.attributes);
149
- this.vueApp = m(I, e), this.vueApp.provide("emitter", R), this.vueApp.use(h), this.vueApp.use(L), this.vueApp.use(O);
150
- let t = document.createElement("div");
151
- this.vueApp.mount(t), this.appendChild(t.children[0]);
152
- }
153
- };
154
- window.customElements.define("konnectio-cancel-reservation", z);
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);
141
+ });
155
142
  //#endregion
156
- export { z as default };
143
+ export { R as default };
Binary file
Binary file