@konnectio/core 4.7.10 → 4.7.12

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 (100) hide show
  1. package/dist/{ActionField-BSWeY8s9.js → ActionField-CHEKofSE.js} +1 -1
  2. package/dist/ActionField-CHEKofSE.js.br +0 -0
  3. package/dist/ActionField-CHEKofSE.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-Q_NRPJhM.js → AvailabilitySkeleton-GJevIw2E.js} +2 -2
  5. package/dist/AvailabilitySkeleton-GJevIw2E.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-GJevIw2E.js.gz +0 -0
  7. package/dist/{CheckoutWindow-BUNrnlGh.js → CheckoutWindow-Dyrewxbu.js} +105 -89
  8. package/dist/CheckoutWindow-Dyrewxbu.js.br +0 -0
  9. package/dist/CheckoutWindow-Dyrewxbu.js.gz +0 -0
  10. package/dist/{ErrorMessage-BvilVn5L.js → ErrorMessage-B4puc3U0.js} +1 -1
  11. package/dist/ErrorMessage-B4puc3U0.js.br +0 -0
  12. package/dist/ErrorMessage-B4puc3U0.js.gz +0 -0
  13. package/dist/{EventAvailabilityForm-btvOM8KB.js → EventAvailabilityForm-BDh2d9T1.js} +2 -2
  14. package/dist/EventAvailabilityForm-BDh2d9T1.js.br +0 -0
  15. package/dist/EventAvailabilityForm-BDh2d9T1.js.gz +0 -0
  16. package/dist/{Field-DAHZfr5Y.js → Field-CTtM3jfr.js} +1 -1
  17. package/dist/Field-CTtM3jfr.js.br +0 -0
  18. package/dist/Field-CTtM3jfr.js.gz +0 -0
  19. package/dist/{HotelAvailabilityForm-DCCdgoBw.js → HotelAvailabilityForm-CVuv-AmM.js} +2 -2
  20. package/dist/HotelAvailabilityForm-CVuv-AmM.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-CVuv-AmM.js.gz +0 -0
  22. package/dist/{SelectField-CnreRmEZ.js → SelectField-CzNVDtUC.js} +44 -39
  23. package/dist/SelectField-CzNVDtUC.js.br +0 -0
  24. package/dist/SelectField-CzNVDtUC.js.gz +0 -0
  25. package/dist/{TermsOfService-DcFuq9YM.js → TermsOfService-C_vQ4xBv.js} +2 -2
  26. package/dist/TermsOfService-C_vQ4xBv.js.br +0 -0
  27. package/dist/TermsOfService-C_vQ4xBv.js.gz +2 -0
  28. package/dist/{_-DYoQFY32.js → _-CFHqqMkv.js} +1 -1
  29. package/dist/_-CFHqqMkv.js.br +0 -0
  30. package/dist/_-CFHqqMkv.js.gz +0 -0
  31. package/dist/availability.js +7 -7
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +4 -4
  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/{dist-CXMkG9Ch.js → dist-CKFDpTJr.js} +4 -4
  41. package/dist/dist-CKFDpTJr.js.br +0 -0
  42. package/dist/dist-CKFDpTJr.js.gz +0 -0
  43. package/dist/{dist-VETO5cbq.js → dist-DPZ_IYST.js} +2 -2
  44. package/dist/dist-DPZ_IYST.js.br +0 -0
  45. package/dist/dist-DPZ_IYST.js.gz +0 -0
  46. package/dist/event.js +162 -162
  47. package/dist/event.js.br +0 -0
  48. package/dist/event.js.gz +0 -0
  49. package/dist/gift-card-validation.js +7 -7
  50. package/dist/gift-card-validation.js.br +5 -7
  51. package/dist/gift-card-validation.js.gz +0 -0
  52. package/dist/gift-card.js +11 -11
  53. package/dist/gift-card.js.br +0 -0
  54. package/dist/gift-card.js.gz +0 -0
  55. package/dist/{giftCard-k36XguqL.js → giftCard-Dk3oT5jY.js} +1 -1
  56. package/dist/giftCard-Dk3oT5jY.js.br +0 -0
  57. package/dist/giftCard-Dk3oT5jY.js.gz +0 -0
  58. package/dist/hotel.js +1054 -1054
  59. package/dist/hotel.js.br +0 -0
  60. package/dist/hotel.js.gz +0 -0
  61. package/dist/polyfill.js +1 -1
  62. package/dist/polyfill.js.br +0 -0
  63. package/dist/polyfill.js.gz +0 -0
  64. package/dist/{style-HOryxFZm.js → style-DXw1qwOr.js} +1 -1
  65. package/dist/style-DXw1qwOr.js.br +0 -0
  66. package/dist/style-DXw1qwOr.js.gz +0 -0
  67. package/dist-wix/availability.js +2 -2
  68. package/dist-wix/event.js +6 -6
  69. package/dist-wix/gift-card-validation.js +1 -1
  70. package/dist-wix/gift-card.js +10 -10
  71. package/dist-wix/hotel.js +6 -6
  72. package/package.json +1 -1
  73. package/dist/ActionField-BSWeY8s9.js.br +0 -0
  74. package/dist/ActionField-BSWeY8s9.js.gz +0 -0
  75. package/dist/AvailabilitySkeleton-Q_NRPJhM.js.br +0 -0
  76. package/dist/AvailabilitySkeleton-Q_NRPJhM.js.gz +0 -0
  77. package/dist/CheckoutWindow-BUNrnlGh.js.br +0 -0
  78. package/dist/CheckoutWindow-BUNrnlGh.js.gz +0 -0
  79. package/dist/ErrorMessage-BvilVn5L.js.br +0 -0
  80. package/dist/ErrorMessage-BvilVn5L.js.gz +0 -0
  81. package/dist/EventAvailabilityForm-btvOM8KB.js.br +0 -0
  82. package/dist/EventAvailabilityForm-btvOM8KB.js.gz +0 -0
  83. package/dist/Field-DAHZfr5Y.js.br +0 -0
  84. package/dist/Field-DAHZfr5Y.js.gz +0 -0
  85. package/dist/HotelAvailabilityForm-DCCdgoBw.js.br +0 -0
  86. package/dist/HotelAvailabilityForm-DCCdgoBw.js.gz +0 -0
  87. package/dist/SelectField-CnreRmEZ.js.br +0 -0
  88. package/dist/SelectField-CnreRmEZ.js.gz +0 -0
  89. package/dist/TermsOfService-DcFuq9YM.js.br +0 -0
  90. package/dist/TermsOfService-DcFuq9YM.js.gz +0 -3
  91. package/dist/_-DYoQFY32.js.br +0 -0
  92. package/dist/_-DYoQFY32.js.gz +0 -5
  93. package/dist/dist-CXMkG9Ch.js.br +0 -0
  94. package/dist/dist-CXMkG9Ch.js.gz +0 -0
  95. package/dist/dist-VETO5cbq.js.br +0 -0
  96. package/dist/dist-VETO5cbq.js.gz +0 -0
  97. package/dist/giftCard-k36XguqL.js.br +0 -0
  98. package/dist/giftCard-k36XguqL.js.gz +0 -0
  99. package/dist/style-HOryxFZm.js.br +0 -0
  100. package/dist/style-HOryxFZm.js.gz +0 -0
@@ -4043,7 +4043,7 @@ var Cc = D("applyGiftCard", () => {
4043
4043
  };
4044
4044
  });
4045
4045
  function wc() {
4046
- return window.KONNECTIO_CHECKOUT_URL_OVERRIDE ?? "https://check.konnectio.com/checkout.html";
4046
+ return window.KONNECTIO_CHECKOUT_URL_OVERRIDE ?? "https://checkout.konnectio.com/checkout.html";
4047
4047
  }
4048
4048
  function Tc(e) {
4049
4049
  let t = new URL(wc());
@@ -4069,8 +4069,8 @@ function kc(e = 4e3) {
4069
4069
  }), Oc);
4070
4070
  }
4071
4071
  var Ac = D("payment", () => {
4072
- let { display: e } = Ks(), { paymentGatewayId: t, bearerToken: n } = re(Fc()), r = L({}), i = L(), a = L(NaN), o = I(() => t.value !== Nr.None), s = I(() => r.value && r.value.guest ? r.value.guest.name : ""), c = I(() => r.value && r.value.guest ? r.value.guest.email : ""), l = I(() => r.value && r.value.guest ? r.value.guest.phone : ""), u = I(() => r.value.adults), d = I(() => r.value.children), f = I(() => r.value.totalPrice || 0), p = I(() => r.value.totalVAT || 0), m = I(() => r.value.offerDate), h = I(() => f.value - p.value), g = I(() => r.value.orderLines), _ = I(() => g.value ? g.value.length > 0 : !1);
4073
- function v() {
4072
+ let { display: e } = Ks(), { paymentGatewayId: t, bearerToken: n } = re(Fc()), r = L({}), i = L(), a = L(NaN), o = L(!1), s = I(() => t.value !== Nr.None), c = I(() => r.value && r.value.guest ? r.value.guest.name : ""), l = I(() => r.value && r.value.guest ? r.value.guest.email : ""), u = I(() => r.value && r.value.guest ? r.value.guest.phone : ""), d = I(() => r.value.adults), f = I(() => r.value.children), p = I(() => r.value.totalPrice || 0), m = I(() => r.value.totalVAT || 0), h = I(() => r.value.offerDate), g = I(() => p.value - m.value), _ = I(() => r.value.orderLines), v = I(() => _.value ? _.value.length > 0 : !1);
4073
+ function y() {
4074
4074
  zc().put("/capture/confirm", { confirmationId: i.value });
4075
4075
  let e = {
4076
4076
  transaction_id: r.value.uniqueID,
@@ -4100,49 +4100,51 @@ var Ac = D("payment", () => {
4100
4100
  }
4101
4101
  uc("purchase", e);
4102
4102
  }
4103
- function y(t, r, i) {
4103
+ let b = L(!1), x = L(null), S = null, C;
4104
+ function w(e) {
4105
+ S = window.open(e, "konnectio-reepay", "popup=yes,width=520,height=800"), b.value = !!S, S || (window.location.href = e);
4106
+ }
4107
+ function T() {
4108
+ x.value && o.value && w(x.value);
4109
+ }
4110
+ function E(t, r, i) {
4104
4111
  let a = Tc({
4105
4112
  session: t,
4106
4113
  confirmationId: r,
4107
4114
  parentOrigin: window.location.origin,
4108
4115
  token: n.value,
4109
4116
  locale: Yr()
4110
- }), o = new URL(wc()).origin, s = window.open(a, "konnectio-reepay", "popup=yes,width=500,height=780");
4111
- if (!s) {
4112
- window.location.href = a;
4113
- return;
4114
- }
4115
- let c = () => {
4116
- window.removeEventListener("message", l), clearInterval(u);
4117
- }, l = (n) => {
4118
- if (n.origin !== o) return;
4117
+ }), s = new URL(wc()).origin;
4118
+ x.value = a, o.value = !0;
4119
+ let c = (n) => {
4120
+ if (n.origin !== s) return;
4119
4121
  let r = Ec(n.data);
4120
- !r || r.session !== t || (r.event === "accept" ? (c(), v(), e({
4122
+ !r || r.session !== t || (r.event === "accept" ? (window.removeEventListener("message", c), clearInterval(C), o.value = !1, x.value = null, y(), e({
4121
4123
  message: F.t("alert.success.payment"),
4122
4124
  type: "success"
4123
4125
  }), i(2)) : r.event === "error" && e({
4124
4126
  message: F.t("alert.error.payment"),
4125
4127
  type: "warning"
4126
4128
  }));
4127
- }, u = setInterval(() => {
4128
- s.closed && c();
4129
- }, 500);
4130
- window.addEventListener("message", l);
4129
+ };
4130
+ clearInterval(C), C = setInterval(() => {
4131
+ S?.closed && (b.value = !1);
4132
+ }, 500), window.addEventListener("message", c), w(a);
4131
4133
  }
4132
- async function b({ callback: n, response: o, enableHostedRedirect: s }) {
4134
+ async function D({ callback: n, response: o, enableHostedRedirect: s }) {
4133
4135
  if (!o.error) if (!o.offer) e({
4134
4136
  message: F.t("booking.other.errorMessage"),
4135
4137
  type: "warning"
4136
4138
  });
4137
4139
  else if (r.value = o.offer, i.value = o.confirmationId, a.value = o.offer.id, o.easyPayment) {
4138
4140
  if (t.value === Nr.ReePay && !await kc() && s) {
4139
- y(o.easyPayment.paymentID, o.confirmationId, n);
4141
+ E(o.easyPayment.paymentID, o.confirmationId, n);
4140
4142
  return;
4141
4143
  }
4142
4144
  if (n(), t.value === Nr.ReePay) try {
4143
4145
  let t = new Reepay.EmbeddedCheckout(o.easyPayment.paymentID, { html_element: "konnectio-payment-checkout" });
4144
4146
  t.addEventHandler(Ar.Accept, () => {
4145
- v(), e({
4147
+ y(), e({
4146
4148
  message: F.t("alert.success.payment"),
4147
4149
  type: "success"
4148
4150
  }), n();
@@ -4166,7 +4168,7 @@ var Ac = D("payment", () => {
4166
4168
  language: Yr() === "da" ? "da-DK" : "en-GB"
4167
4169
  }, r = new Dibs.Checkout(t);
4168
4170
  r.on("payment-completed", () => {
4169
- console.log("Konnectio: Payment completed!"), v(), e({
4171
+ console.log("Konnectio: Payment completed!"), y(), e({
4170
4172
  message: F.t("alert.success.payment"),
4171
4173
  type: "success"
4172
4174
  }), n();
@@ -4174,28 +4176,31 @@ var Ac = D("payment", () => {
4174
4176
  r.send("payment-order-finalized", !0);
4175
4177
  });
4176
4178
  }
4177
- } else v(), n(2);
4179
+ } else y(), n(2);
4178
4180
  }
4179
- function x() {
4181
+ function O() {
4180
4182
  a.value = NaN;
4181
4183
  }
4182
4184
  return {
4183
4185
  offerId: a,
4184
4186
  offerData: r,
4185
- hasPaymentGateway: o,
4186
- name: s,
4187
- email: c,
4188
- phone: l,
4189
- adults: u,
4190
- children: d,
4191
- totalPrice: f,
4192
- totalVAT: p,
4193
- offerDate: m,
4194
- subTotalPrice: h,
4195
- orderSummary: g,
4196
- hasOrderLines: _,
4197
- pay: b,
4198
- clearOfferId: x
4187
+ hasPaymentGateway: s,
4188
+ isHostedCheckoutActive: o,
4189
+ isHostedPopupOpen: b,
4190
+ reopenHostedCheckout: T,
4191
+ name: c,
4192
+ email: l,
4193
+ phone: u,
4194
+ adults: d,
4195
+ children: f,
4196
+ totalPrice: p,
4197
+ totalVAT: m,
4198
+ offerDate: h,
4199
+ subTotalPrice: g,
4200
+ orderSummary: _,
4201
+ hasOrderLines: v,
4202
+ pay: D,
4203
+ clearOfferId: O
4199
4204
  };
4200
4205
  }), jc = Symbol("forcedDateChange"), Mc = Symbol("scrollToTop"), Nc = D("hotel", () => {
4201
4206
  let e = Gc(), t = Pc(), n = Ac(), { voucher: r, amount: i } = re(Cc()), { display: a } = Ks(), { metaData: o } = re(Fc()), s = Fc(), c = L({}), l = I(() => {
@@ -4985,7 +4990,7 @@ function zc() {
4985
4990
  headers: {
4986
4991
  Accept: "application/json",
4987
4992
  Authorization: Ic.value,
4988
- "Konnectio-Version": "4.7.10",
4993
+ "Konnectio-Version": "4.7.12",
4989
4994
  "Konnectio-Ref": Lc.ref
4990
4995
  }
4991
4996
  });
Binary file
Binary file
@@ -1,6 +1,6 @@
1
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-CnreRmEZ.js";
3
- import { a as l } from "./CheckoutWindow-BUNrnlGh.js";
2
+ import { L as s, S as c } from "./SelectField-CzNVDtUC.js";
3
+ import { o as l } from "./CheckoutWindow-Dyrewxbu.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__ */ n({
6
6
  __name: "TermsOfService",
@@ -0,0 +1,2 @@
1
+ x�]R]o�0|N~�ȕ*��\���J>tm�D��p:En�WLsvd;w-��w����ګ�ٙ��ug]�g�$�!� p�����!>���Ƿŀ��k�i���M~�=�okw>���I��/����y����p��U������p=�k#�}��}�����6�n��G���~+�G��x��]w֐ ��ZQ�IC�/�������F74���z��ax���]8���
2
+ ���V��i��F:���C�J�K�;k 5A�<D����A@�‚icȽ��`K�*����|�嬮'^L�汁I�wiR�F���W+i�9��;(ڋ�֔�
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
2
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-CnreRmEZ.js";
3
+ import { E as u } from "./SelectField-CzNVDtUC.js";
4
4
  //#region src/layouts/_.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = {
6
6
  class: "konnectio-app",
Binary file
Binary file
@@ -1,11 +1,11 @@
1
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-VETO5cbq.js";
3
- import { C, S as w, b as T } from "./SelectField-CnreRmEZ.js";
4
- import { t as E } from "./_-DYoQFY32.js";
5
- import { t as D } from "./AvailabilitySkeleton-Q_NRPJhM.js";
6
- import { t as O } from "./HotelAvailabilityForm-DCCdgoBw.js";
7
- import { t as k } from "./EventAvailabilityForm-btvOM8KB.js";
8
- import { t as A } from "./ErrorMessage-BvilVn5L.js";
2
+ import { t as S } from "./dist-DPZ_IYST.js";
3
+ import { C, S as w, b as T } from "./SelectField-CzNVDtUC.js";
4
+ import { t as E } from "./_-CFHqqMkv.js";
5
+ import { t as D } from "./AvailabilitySkeleton-GJevIw2E.js";
6
+ import { t as O } from "./HotelAvailabilityForm-CVuv-AmM.js";
7
+ import { t as k } from "./EventAvailabilityForm-BDh2d9T1.js";
8
+ import { t as A } from "./ErrorMessage-B4puc3U0.js";
9
9
  //#region src/layouts/Availability.vue?vue&type=script&setup=true&lang.ts
10
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",
Binary file
Binary file
@@ -1,8 +1,8 @@
1
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-CnreRmEZ.js";
3
- import { t as T } from "./_-DYoQFY32.js";
4
- import { t as E } from "./style-HOryxFZm.js";
5
- import { t as D } from "./ActionField-BSWeY8s9.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-CzNVDtUC.js";
3
+ import { t as T } from "./_-CFHqqMkv.js";
4
+ import { t as E } from "./style-DXw1qwOr.js";
5
+ import { t as D } from "./ActionField-CHEKofSE.js";
6
6
  //#region src/components/forms/CancelReservationForm.vue?vue&type=script&setup=true&lang.ts
7
7
  var O = { class: "konnectio-cancel-reservation-form" }, k = /*#__PURE__*/ y(/* @__PURE__ */ n({
8
8
  __name: "CancelReservationForm",
Binary file
Binary file