@konnectio/core 4.0.56-rc60 → 4.0.56-rc62

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 (61) hide show
  1. package/dist/{ActionField-M9Xn2IjF.js → ActionField-BAmWCmNj.js} +3 -3
  2. package/dist/ActionField-BAmWCmNj.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-CmB18GBl.js → AvailabilitySkeleton-hnj2IB72.js} +44 -44
  4. package/dist/AvailabilitySkeleton-hnj2IB72.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DNhFVa3I.js} +6 -6
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DNhFVa3I.js.br +0 -0
  7. package/dist/{CheckoutWindow-Bhwi8Nxq.js → CheckoutWindow-D-2StEA9.js} +5 -5
  8. package/dist/CheckoutWindow-D-2StEA9.js.br +0 -0
  9. package/dist/{ErrorMessage-Cf84tBwS.js → ErrorMessage-meGV_pjV.js} +3 -3
  10. package/dist/ErrorMessage-meGV_pjV.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-ayhrj2Dh.js → EventAvailabilityForm-8BS4vRPQ.js} +5 -5
  12. package/dist/EventAvailabilityForm-8BS4vRPQ.js.br +0 -0
  13. package/dist/{Field-w5TiS3qQ.js → Field-cQkCPR1i.js} +3 -3
  14. package/dist/Field-cQkCPR1i.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CaK9Vq45.js} +509 -510
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CaK9Vq45.js.br +0 -0
  17. package/dist/{TermsOfService-DG9RmJhS.js → TermsOfService-C4NdU9pI.js} +9 -9
  18. package/dist/TermsOfService-C4NdU9pI.js.br +0 -0
  19. package/dist/{_-C3cdq-vi.js → _-DKwTcGqD.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-DUgEPbV0.js → _.vue_vue_type_style_index_0_lang-D3ANvLnT.js} +9 -9
  21. package/dist/_.vue_vue_type_style_index_0_lang-D3ANvLnT.js.br +0 -0
  22. package/dist/{_commonjsHelpers-Bwmg5gQN.js → _commonjsHelpers-DH5UFFrM.js} +2 -2
  23. package/dist/{_sentry-release-injection-file-Bs1oW58-.js → _sentry-release-injection-file-Bm35dIRL.js} +3 -3
  24. package/dist/_sentry-release-injection-file-Bm35dIRL.js.br +0 -0
  25. package/dist/availability.js +7 -7
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +2 -2
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +359 -350
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +9 -9
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +10 -10
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/{giftCard-BvD5QzCq.js → giftCard-h9CkNr7M.js} +17 -17
  36. package/dist/giftCard-h9CkNr7M.js.br +0 -0
  37. package/dist/hotel.js +90 -90
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-C_Lw26Pq.js → masonry.plugin-CKtOKvjw.js} +517 -508
  40. package/dist/masonry.plugin-CKtOKvjw.js.br +0 -0
  41. package/dist/{mitt-Djl3HvxD.js → mitt-CtCsoiRh.js} +2 -2
  42. package/dist/mitt-CtCsoiRh.js.br +0 -0
  43. package/dist/polyfill.js +95 -95
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/package.json +1 -1
  48. package/dist/ActionField-M9Xn2IjF.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-CmB18GBl.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js.br +0 -0
  51. package/dist/CheckoutWindow-Bhwi8Nxq.js.br +0 -0
  52. package/dist/ErrorMessage-Cf84tBwS.js.br +0 -0
  53. package/dist/EventAvailabilityForm-ayhrj2Dh.js.br +0 -0
  54. package/dist/Field-w5TiS3qQ.js.br +0 -0
  55. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js.br +0 -0
  56. package/dist/TermsOfService-DG9RmJhS.js.br +0 -0
  57. package/dist/_.vue_vue_type_style_index_0_lang-DUgEPbV0.js.br +0 -0
  58. package/dist/_sentry-release-injection-file-Bs1oW58-.js.br +0 -0
  59. package/dist/giftCard-BvD5QzCq.js.br +0 -0
  60. package/dist/masonry.plugin-C_Lw26Pq.js.br +0 -0
  61. package/dist/mitt-Djl3HvxD.js.br +0 -0
package/dist/hotel.js CHANGED
@@ -1,15 +1,15 @@
1
- import { d as Q, r as oe, a as c, b as A, w as $, l as qe, u as o, g as f, e as a, t as v, A as We, B as Ke, f as g, i as _, s as F, F as E, x as Ye, v as N, h as we, c as G, p as kt, j as _t, o as tt, z as Pe, n as Ae, S as eo, C as to, D as oo, E as lo, k as no } from "./_sentry-release-injection-file-Bs1oW58-.js";
2
- import { u as ne, s as Z, T as ao, c as io, i as so, m as ro } from "./mitt-Djl3HvxD.js";
3
- import { e as _e, x as me, u as ke, I as K, f as ue, y as Ze, l as dt, z as re, h as te, _ as ce, n as Ie, A as Vt, b as Qe, c as de, d as Tt, B as $t, D as ut, T as se, p as uo, F as co, a as po, C as mo, i as ct, j as fo, k as pt, m as ho } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js";
4
- import { R as vo, B as Se, L as yo, S as go, M as bo, a as xe, C as ko, T as _o, V as Vo, G as To } from "./masonry.plugin-C_Lw26Pq.js";
5
- import { A as $o, H as Co } from "./AvailabilitySkeleton-CmB18GBl.js";
6
- import { S as wo } from "./TermsOfService-DG9RmJhS.js";
7
- import { C as De, B as Po, P as Ao, a as Do } from "./CheckoutWindow-Bhwi8Nxq.js";
8
- import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js";
1
+ import { d as Q, r as oe, a as c, b as A, w as $, l as qe, u as o, g as f, e as a, t as v, A as We, B as Ke, f as g, i as _, s as F, F as E, x as Ye, v as N, h as we, c as G, p as bt, j as _t, o as tt, z as Pe, n as Ae, S as eo, C as to, D as oo, E as lo, k as no } from "./_sentry-release-injection-file-Bm35dIRL.js";
2
+ import { u as ne, s as Z, T as ao, c as io, i as so, m as ro } from "./mitt-CtCsoiRh.js";
3
+ import { d as _e, x as me, u as be, I as K, f as ue, y as Ze, l as dt, z as re, h as te, _ as ce, n as Ie, A as Vt, b as Qe, c as de, e as Tt, B as $t, D as ut, T as se, p as uo, F as co, a as po, C as mo, i as ct, j as fo, k as pt, m as ho } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CaK9Vq45.js";
4
+ import { R as vo, B as Se, L as yo, S as go, M as ko, a as xe, C as bo, T as _o, V as Vo, G as To } from "./masonry.plugin-CKtOKvjw.js";
5
+ import { A as $o, H as Co } from "./AvailabilitySkeleton-hnj2IB72.js";
6
+ import { S as wo } from "./TermsOfService-C4NdU9pI.js";
7
+ import { C as De, B as Po, P as Ao, a as Do } from "./CheckoutWindow-D-2StEA9.js";
8
+ import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DNhFVa3I.js";
9
9
  (function() {
10
10
  try {
11
11
  var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
12
- l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "47437dfc-4749-4b83-a51b-80cae13ab832", n._sentryDebugIdIdentifier = "sentry-dbid-47437dfc-4749-4b83-a51b-80cae13ab832");
12
+ l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "b64ccd6e-e983-4436-a9aa-e689c810f8ed", n._sentryDebugIdIdentifier = "sentry-dbid-b64ccd6e-e983-4436-a9aa-e689c810f8ed");
13
13
  } catch {
14
14
  }
15
15
  })();
@@ -38,7 +38,7 @@ const Eo = { key: 0 }, Mo = { key: 1 }, Lo = { key: 0 }, Uo = { class: "konnecti
38
38
  areListingsLoading: C,
39
39
  getSelectedPackageRoom: S,
40
40
  selectedPackage: B,
41
- discountVouchers: b,
41
+ discountVouchers: k,
42
42
  currentArrivalDate: w,
43
43
  currentDepartureDate: H,
44
44
  datesMismatch: O,
@@ -50,7 +50,7 @@ const Eo = { key: 0 }, Mo = { key: 1 }, Lo = { key: 0 }, Uo = { class: "konnecti
50
50
  hasTermOfService: Be,
51
51
  acceptTerms: M,
52
52
  totalTemplateAddonPrice: pe
53
- } = Z(me()), { hasHotelLocations: ve } = Z(ke()), { removeRoom: Ve, validateDiscountCode: Ee } = me(), { getHotelLocationName: Me } = ke(), fe = oe(!1);
53
+ } = Z(me()), { hasHotelLocations: ve } = Z(be()), { removeRoom: Ve, validateDiscountCode: Ee } = me(), { getHotelLocationName: Me } = be(), fe = oe(!1);
54
54
  function ye(le) {
55
55
  return le.reduce((L, { totalPrice: ge }) => L + ge, 0);
56
56
  }
@@ -114,7 +114,7 @@ const Eo = { key: 0 }, Mo = { key: 1 }, Lo = { key: 0 }, Uo = { class: "konnecti
114
114
  a("span", null, v(o(l)("booking.reservation.nights")), 1),
115
115
  a("b", null, v(o(Ze)(o(w), o(H))) + " " + v(o(dt)(o(Ze)(o(w), o(H)) === 1 ? o(l)("booking.reservation.night") : o(l)("booking.reservation.nights"))), 1)
116
116
  ]),
117
- o(b) ? (c(!0), f(E, { key: 1 }, F(o(b), (L) => (c(), f("li", {
117
+ o(k) ? (c(!0), f(E, { key: 1 }, F(o(k), (L) => (c(), f("li", {
118
118
  key: L.id
119
119
  }, [
120
120
  a("span", null, v(`${o(l)("general.discountCode")} (${L.value})`), 1),
@@ -237,7 +237,7 @@ const Eo = { key: 0 }, Mo = { key: 1 }, Lo = { key: 0 }, Uo = { class: "konnecti
237
237
  _: 3
238
238
  }, 8, ["discount-code", "validate-discount-code", "total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
239
239
  }
240
- }), ze = /* @__PURE__ */ ce(Ro, [["__scopeId", "data-v-61664f48"]]), No = (n) => (kt("data-v-69fe83d8"), n = n(), _t(), n), Fo = { class: "konnectio-room-config-option" }, Oo = { key: 0 }, jo = { class: "konnectio-selected-room-config" }, Go = { class: "konnectio-selected-room-config-people" }, qo = { key: 0 }, Wo = { class: "konnectio-selected-room-config-price" }, Ko = /* @__PURE__ */ No(() => /* @__PURE__ */ a("span", null, null, -1)), xo = /* @__PURE__ */ Q({
240
+ }), ze = /* @__PURE__ */ ce(Ro, [["__scopeId", "data-v-61664f48"]]), No = (n) => (bt("data-v-69fe83d8"), n = n(), _t(), n), Fo = { class: "konnectio-room-config-option" }, Oo = { key: 0 }, jo = { class: "konnectio-selected-room-config" }, Go = { class: "konnectio-selected-room-config-people" }, qo = { key: 0 }, Wo = { class: "konnectio-selected-room-config-price" }, Ko = /* @__PURE__ */ No(() => /* @__PURE__ */ a("span", null, null, -1)), xo = /* @__PURE__ */ Q({
241
241
  __name: "RoomConfigField",
242
242
  props: {
243
243
  modelValue: {},
@@ -320,17 +320,17 @@ const Xo = /* @__PURE__ */ Q({
320
320
  },
321
321
  setup(n) {
322
322
  const { t: l } = ne(), t = n, e = oe([]);
323
- function i(b) {
324
- e.value[b].config.push({
323
+ function i(k) {
324
+ e.value[k].config.push({
325
325
  id: NaN,
326
326
  units: 0,
327
327
  addons: []
328
328
  });
329
329
  }
330
- const s = G(() => t.room.rates.map((b) => ({
331
- label: b.name,
332
- value: b.id
333
- }))), { hideAvailableRoomAmount: m } = Z(_e()), { roomSelect: p } = Z(me()), { addToCart: u, removeFromCart: r } = Vt(), d = (b, w) => t.room.rates.find((H) => H.id === b)?.occupantRates.find((H) => H.index === w), h = G(() => t.room.rates.every((b) => b.isBreakfastIncluded === !0)), V = (b, w) => d(b, w) ? d(b, w)?.rooms : null, P = (b) => t.room.rates.length > 0 ? t.room.rates.find((w) => w.id === b)?.occupantRates.map((w) => ({
330
+ const s = G(() => t.room.rates.map((k) => ({
331
+ label: k.name,
332
+ value: k.id
333
+ }))), { hideAvailableRoomAmount: m } = Z(_e()), { roomSelect: p } = Z(me()), { addToCart: u, removeFromCart: r } = Vt(), d = (k, w) => t.room.rates.find((H) => H.id === k)?.occupantRates.find((H) => H.index === w), h = G(() => t.room.rates.every((k) => k.isBreakfastIncluded === !0)), V = (k, w) => d(k, w) ? d(k, w)?.rooms : null, P = (k) => t.room.rates.length > 0 ? t.room.rates.find((w) => w.id === k)?.occupantRates.map((w) => ({
334
334
  value: w.index,
335
335
  price: w.totalPrice,
336
336
  adults: w.adultsCount,
@@ -358,8 +358,8 @@ const Xo = /* @__PURE__ */ Q({
358
358
  S();
359
359
  });
360
360
  const B = G(() => JSON.parse(JSON.stringify(e.value)));
361
- return Pe(B, (b, w) => {
362
- w.length > 0 && b.forEach((H, O) => {
361
+ return Pe(B, (k, w) => {
362
+ w.length > 0 && k.forEach((H, O) => {
363
363
  H.config.forEach((j, Y) => {
364
364
  const R = j.units, z = w[O].config[Y].units;
365
365
  R !== z && (R > z ? (e.value[O].config[Y].addons.push({}), u({
@@ -375,15 +375,15 @@ const Xo = /* @__PURE__ */ Q({
375
375
  });
376
376
  }, { deep: !0 }), Pe(e, () => {
377
377
  p.value[t.room.id] = e.value;
378
- }, { deep: !0 }), (b, w) => (c(), A(Se, {
378
+ }, { deep: !0 }), (k, w) => (c(), A(Se, {
379
379
  type: "hotel",
380
- "listing-id": b.room.id,
381
- gallery: b.room.images,
382
- name: b.room.title,
383
- description: b.room.description,
384
- layout: b.layout,
385
- facilities: b.room.facilities,
386
- "prices-from": b.room.pricesFrom,
380
+ "listing-id": k.room.id,
381
+ gallery: k.room.images,
382
+ name: k.room.title,
383
+ description: k.room.description,
384
+ layout: k.layout,
385
+ facilities: k.room.facilities,
386
+ "prices-from": k.room.pricesFrom,
387
387
  "includes-breakfast": h.value
388
388
  }, {
389
389
  action: $(() => [
@@ -402,7 +402,7 @@ const Xo = /* @__PURE__ */ Q({
402
402
  searchable: !1
403
403
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : _("", !0),
404
404
  H.id ? (c(), f("div", Yo, [
405
- (c(!0), f(E, null, F(b.room.rates, ({
405
+ (c(!0), f(E, null, F(k.room.rates, ({
406
406
  id: j,
407
407
  maximumOccupants: Y
408
408
  }) => (c(), f("div", {
@@ -479,14 +479,14 @@ const Xo = /* @__PURE__ */ Q({
479
479
  title: C,
480
480
  description: S,
481
481
  images: B,
482
- facilities: b,
482
+ facilities: k,
483
483
  extraPrice: w
484
484
  }) => (c(), A(Se, {
485
485
  key: P,
486
486
  "listing-id": P,
487
487
  name: C,
488
488
  description: S,
489
- facilities: b,
489
+ facilities: k,
490
490
  gallery: B,
491
491
  "includes-breakfast": !1,
492
492
  "hide-info-button": !0
@@ -593,7 +593,7 @@ const Xo = /* @__PURE__ */ Q({
593
593
  callback: { type: Function }
594
594
  },
595
595
  setup(n) {
596
- const { t: l } = ne(), { updateDates: t } = ke(), e = n, i = oe([]), s = G(() => Ze(e.fromDate, e.toDate) === 1), m = G(() => [{
596
+ const { t: l } = ne(), { updateDates: t } = be(), e = n, i = oe([]), s = G(() => Ze(e.fromDate, e.toDate) === 1), m = G(() => [{
597
597
  large: e.image.url,
598
598
  medium: e.image.url,
599
599
  thumb: e.image.url,
@@ -860,7 +860,7 @@ const Xo = /* @__PURE__ */ Q({
860
860
  _: 1
861
861
  }, 8, ["label", "id", "required", "readonly", "limit"]));
862
862
  }
863
- }), hl = /* @__PURE__ */ ce(fl, [["__scopeId", "data-v-78b0b319"]]), vl = { class: "hotel-skeleton" }, yl = { class: "hotel-skeleton-content" }, gl = { class: "hotel-skeleton-sidebar" }, bl = /* @__PURE__ */ Q({
863
+ }), hl = /* @__PURE__ */ ce(fl, [["__scopeId", "data-v-78b0b319"]]), vl = { class: "hotel-skeleton" }, yl = { class: "hotel-skeleton-content" }, gl = { class: "hotel-skeleton-sidebar" }, kl = /* @__PURE__ */ Q({
864
864
  __name: "HotelSkeleton",
865
865
  setup(n) {
866
866
  return (l, t) => (c(), f("div", vl, [
@@ -873,7 +873,7 @@ const Xo = /* @__PURE__ */ Q({
873
873
  ])
874
874
  ]));
875
875
  }
876
- }), kl = /* @__PURE__ */ ce(bl, [["__scopeId", "data-v-1bb21da4"]]), ot = (n) => (kt("data-v-046ea616"), n = n(), _t(), n), _l = { id: "booking-availability-container" }, Vl = { id: "booking-availability-controls" };
876
+ }), bl = /* @__PURE__ */ ce(kl, [["__scopeId", "data-v-1bb21da4"]]), ot = (n) => (bt("data-v-046ea616"), n = n(), _t(), n), _l = { id: "booking-availability-container" }, Vl = { id: "booking-availability-controls" };
877
877
  const Tl = { key: 1 }, $l = { key: 0 }, Cl = {
878
878
  key: 0,
879
879
  id: "booking-availability-packages"
@@ -920,7 +920,7 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
920
920
  styling: {}
921
921
  },
922
922
  setup(n) {
923
- const l = to(() => import("./_-C3cdq-vi.js")), t = n, { t: e } = ne(), {
923
+ const l = to(() => import("./_-DKwTcGqD.js")), t = n, { t: e } = ne(), {
924
924
  templateID: i,
925
925
  templateAddons: s,
926
926
  countries: m,
@@ -934,7 +934,7 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
934
934
  nameTitle: C,
935
935
  email: S,
936
936
  phone: B,
937
- firmName: b,
937
+ firmName: k,
938
938
  postal: w,
939
939
  city: H,
940
940
  address: O,
@@ -956,7 +956,7 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
956
956
  location: le,
957
957
  arrivalDate: x,
958
958
  departureDate: L
959
- } = Z(ke()), { isValidHotelId: ge, updateDates: Le } = ke(), {
959
+ } = Z(be()), { isValidHotelId: ge, updateDates: Le } = be(), {
960
960
  currency: he,
961
961
  arrivalEarliest: Ue,
962
962
  arrivalLatest: ae,
@@ -1006,7 +1006,7 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1006
1006
  icon: "calendar-check"
1007
1007
  }
1008
1008
  ], Wt = G(() => {
1009
- const k = [
1009
+ const b = [
1010
1010
  {
1011
1011
  label: e("booking.reservation.business"),
1012
1012
  value: "Business"
@@ -1016,16 +1016,16 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1016
1016
  value: "Pleasure"
1017
1017
  }
1018
1018
  ];
1019
- return Mt.value || k.push({
1019
+ return Mt.value || b.push({
1020
1020
  label: e("booking.reservation.bleasure"),
1021
1021
  value: "Bleasure"
1022
- }), k;
1022
+ }), b;
1023
1023
  }), Kt = G(() => {
1024
- const k = M.value.roomGroups.slice();
1024
+ const b = M.value.roomGroups.slice();
1025
1025
  function T(q, D) {
1026
1026
  return Gt.value === !0 ? q.pricesFrom > D.pricesFrom ? -1 : 1 : q.pricesFrom > D.pricesFrom ? 1 : -1;
1027
1027
  }
1028
- return k.sort(T);
1028
+ return b.sort(T);
1029
1029
  }), xt = G(() => [[
1030
1030
  parseInt(Ue.value.split(":")[0]),
1031
1031
  parseInt(ae.value.split(":")[0])
@@ -1033,26 +1033,26 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1033
1033
  parseInt(Re.value.split(":")[0]),
1034
1034
  parseInt(nt.value.split(":")[0])
1035
1035
  ]]);
1036
- function rt(k) {
1037
- t.hideAddons === "yes" || pe.value ? k(2) : k(), Ft();
1036
+ function rt(b) {
1037
+ t.hideAddons === "yes" || pe.value ? b(2) : b(), Ft();
1038
1038
  }
1039
- async function Jt(k) {
1040
- await Ot(k);
1039
+ async function Jt(b) {
1040
+ await Ot(b);
1041
1041
  }
1042
- function Yt(k) {
1043
- It.value && Rt(), t.hideAddons === "yes" || pe.value ? k(2) : k();
1042
+ function Yt(b) {
1043
+ It.value && Rt(), t.hideAddons === "yes" || pe.value ? b(2) : b();
1044
1044
  }
1045
1045
  function Zt() {
1046
- const k = fo("hash-params", {
1046
+ const b = fo("hash-params", {
1047
1047
  removeNullishValues: !0
1048
- }), T = parseInt(k.adults), q = parseInt(k.children), D = parseInt(k.hId), y = k.checkin, W = k.checkout, U = k.roomGroupId;
1049
- if (isNaN(T) || (T > at.value ? fe.value = at.value : fe.value = T, k.adults = void 0), isNaN(q) || (q > it.value ? ye.value = it.value : ye.value = q, k.children = void 0), isNaN(D) || (ge(D) ? (le.value = D, k.hId = void 0) : Oe({
1048
+ }), T = parseInt(b.adults), q = parseInt(b.children), D = parseInt(b.hId), y = b.checkin, W = b.checkout, U = b.roomGroupId;
1049
+ if (isNaN(T) || (T > at.value ? fe.value = at.value : fe.value = T, b.adults = void 0), isNaN(q) || (q > it.value ? ye.value = it.value : ye.value = q, b.children = void 0), isNaN(D) || (ge(D) ? (le.value = D, b.hId = void 0) : Oe({
1050
1050
  message: e("alert.error.hotelIdNotFound"),
1051
1051
  type: "error"
1052
1052
  })), y && W)
1053
1053
  if (pt(y) && pt(W)) {
1054
1054
  const ee = new Date(y), J = new Date(W);
1055
- ee <= J ? (x.value = ee, L.value = J, k.checkin = void 0, k.checkout = void 0) : Oe({
1055
+ ee <= J ? (x.value = ee, L.value = J, b.checkin = void 0, b.checkout = void 0) : Oe({
1056
1056
  message: e("alert.error.invalidDateRange"),
1057
1057
  type: "error"
1058
1058
  });
@@ -1064,18 +1064,18 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1064
1064
  let I = null;
1065
1065
  U && (I = U), st(I);
1066
1066
  }
1067
- return (k, T) => (c(), A(mo, { styling: k.styling }, {
1067
+ return (b, T) => (c(), A(mo, { styling: b.styling }, {
1068
1068
  default: $(() => [
1069
1069
  (c(), A(eo, { onResolve: Zt }, {
1070
1070
  default: $(() => [
1071
1071
  g(o(l), {
1072
1072
  id: "konnectio-hotel-module",
1073
- "access-token": k.accessToken,
1073
+ "access-token": b.accessToken,
1074
1074
  callback: o(jt)
1075
1075
  }, {
1076
1076
  default: $(() => [
1077
- g(bo, {
1078
- layout: k.headerLayout,
1077
+ g(ko, {
1078
+ layout: b.headerLayout,
1079
1079
  steps: qt,
1080
1080
  onReset: o(Nt)
1081
1081
  }, {
@@ -1086,14 +1086,14 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1086
1086
  a("div", Vl, [
1087
1087
  g(Co, {
1088
1088
  booking: !0,
1089
- "selected-location": Number(k.selectedLocation)
1089
+ "selected-location": Number(b.selectedLocation)
1090
1090
  }, null, 8, ["selected-location"])
1091
1091
  ]),
1092
1092
  _("", !0),
1093
1093
  !o(p) && o(ve) ? (c(), f("div", Tl, [
1094
1094
  o(M).roomGroups.length > 0 || o(M).templates.length > 0 || o(M).specialTemplates.length > 0 ? (c(), f("div", $l, [
1095
- o(M).templates.length > 0 && k.onlyShow !== "rooms" ? (c(), f("div", Cl, [
1096
- k.onlyShow !== "packages" ? (c(), f("h2", wl, [
1095
+ o(M).templates.length > 0 && b.onlyShow !== "rooms" ? (c(), f("div", Cl, [
1096
+ b.onlyShow !== "packages" ? (c(), f("h2", wl, [
1097
1097
  g(K, {
1098
1098
  icon: "box",
1099
1099
  type: "fal",
@@ -1118,12 +1118,12 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1118
1118
  weekendFee: ee,
1119
1119
  "room-groups": W,
1120
1120
  callback: q,
1121
- "hide-addons": k.hideAddons
1121
+ "hide-addons": b.hideAddons
1122
1122
  }, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
1123
1123
  ])
1124
1124
  ])) : _("", !0),
1125
- o(M).roomGroups.length > 0 && k.onlyShow !== "packages" ? (c(), f("div", Al, [
1126
- o(M).templates.length > 0 && k.onlyShow !== "rooms" ? (c(), f("h2", Dl, [
1125
+ o(M).roomGroups.length > 0 && b.onlyShow !== "packages" ? (c(), f("div", Al, [
1126
+ o(M).templates.length > 0 && b.onlyShow !== "rooms" ? (c(), f("h2", Dl, [
1127
1127
  g(K, {
1128
1128
  icon: "house",
1129
1129
  type: "fal",
@@ -1138,7 +1138,7 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1138
1138
  }, null, 8, ["room"]))), 128))
1139
1139
  ])
1140
1140
  ])) : _("", !0),
1141
- o(M).specialTemplates.length > 0 && k.onlyShow !== "rooms" ? (c(), f("div", Il, [
1141
+ o(M).specialTemplates.length > 0 && b.onlyShow !== "rooms" ? (c(), f("div", Il, [
1142
1142
  a("h2", Sl, [
1143
1143
  g(K, {
1144
1144
  icon: "sparkles",
@@ -1171,7 +1171,7 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1171
1171
  }, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
1172
1172
  ])
1173
1173
  ])) : _("", !0),
1174
- (o(M).templates.length === 0 && k.onlyShow !== "rooms" || o(M).roomGroups.length === 0 && k.onlyShow !== "packages") && (k.onlyShow === "rooms" || k.onlyShow === "packages") ? (c(), f("div", El, [
1174
+ (o(M).templates.length === 0 && b.onlyShow !== "rooms" || o(M).roomGroups.length === 0 && b.onlyShow !== "packages") && (b.onlyShow === "rooms" || b.onlyShow === "packages") ? (c(), f("div", El, [
1175
1175
  a("span", null, v(o(e)("booking.availability.nothingAvailable")), 1)
1176
1176
  ])) : _("", !0)
1177
1177
  ])) : o(M).nextAvailableDates.length === 0 ? (c(), f("div", Ml, [
@@ -1227,7 +1227,7 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1227
1227
  onClickEvent: T[1] || (T[1] = (D) => o(st)())
1228
1228
  }, null, 8, ["label", "is-loading"])) : (c(), A(de, {
1229
1229
  key: 1,
1230
- label: o(pe) || k.hideAddons === "yes" ? o(e)("booking.availability.nextButton") : o(e)("general.chooseAddons"),
1230
+ label: o(pe) || b.hideAddons === "yes" ? o(e)("booking.availability.nextButton") : o(e)("general.chooseAddons"),
1231
1231
  disabled: !o(Be),
1232
1232
  "full-width": "",
1233
1233
  onClickEvent: (D) => Yt(q)
@@ -1287,10 +1287,10 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1287
1287
  (c(!0), f(E, null, F(y.addons, ({
1288
1288
  quantityStrategy: J,
1289
1289
  maximumNumber: je,
1290
- id: be,
1290
+ id: ke,
1291
1291
  name: Qt,
1292
1292
  price: Xt
1293
- }) => (c(), f("tr", { key: be }, [
1293
+ }) => (c(), f("tr", { key: ke }, [
1294
1294
  a("td", null, [
1295
1295
  a("b", null, v(o(re)(Qt)), 1),
1296
1296
  Wl,
@@ -1300,15 +1300,15 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1300
1300
  o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx] ? (c(), f(E, { key: 0 }, [
1301
1301
  J === 1 || J === 12 ? (c(), A(Qe, {
1302
1302
  key: 0,
1303
- modelValue: o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][be],
1304
- "onUpdate:modelValue": (Ge) => o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][be] = Ge,
1303
+ modelValue: o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][ke],
1304
+ "onUpdate:modelValue": (Ge) => o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][ke] = Ge,
1305
1305
  small: !0,
1306
1306
  "min-value": 0,
1307
1307
  "max-value": je || 1 / 0
1308
1308
  }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (c(), A(De, {
1309
1309
  key: 1,
1310
- modelValue: o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][be],
1311
- "onUpdate:modelValue": (Ge) => o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][be] = Ge,
1310
+ modelValue: o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][ke],
1311
+ "onUpdate:modelValue": (Ge) => o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][ke] = Ge,
1312
1312
  numeric: !0
1313
1313
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1314
1314
  ], 64)) : _("", !0)
@@ -1445,8 +1445,8 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1445
1445
  }, null, 8, ["modelValue", "label", "placeholder"]),
1446
1446
  o(Lt) ? _("", !0) : (c(), A(se, {
1447
1447
  key: 1,
1448
- modelValue: o(b),
1449
- "onUpdate:modelValue": T[7] || (T[7] = (y) => N(b) ? b.value = y : null),
1448
+ modelValue: o(k),
1449
+ "onUpdate:modelValue": T[7] || (T[7] = (y) => N(k) ? k.value = y : null),
1450
1450
  type: "text",
1451
1451
  name: "firm",
1452
1452
  autocomplete: "firm",
@@ -1525,7 +1525,7 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1525
1525
  icon: "allergies",
1526
1526
  placeholder: o(e)("booking.reservation.allergiesPlaceholder")
1527
1527
  }, null, 8, ["modelValue", "label", "placeholder"]),
1528
- o(Et) ? _("", !0) : (c(), A(ko, {
1528
+ o(Et) ? _("", !0) : (c(), A(bo, {
1529
1529
  key: 2,
1530
1530
  modelValue: o(d),
1531
1531
  "onUpdate:modelValue": T[15] || (T[15] = (y) => N(d) ? d.value = y : null),
@@ -1570,7 +1570,7 @@ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-
1570
1570
  }, 8, ["access-token", "callback"])
1571
1571
  ]),
1572
1572
  fallback: $(() => [
1573
- g(kl)
1573
+ g(bl)
1574
1574
  ]),
1575
1575
  _: 1
1576
1576
  }))
@@ -1791,13 +1791,13 @@ async function Ht(n, l) {
1791
1791
  }
1792
1792
  return n;
1793
1793
  }
1794
- const bn = 10;
1795
- async function kn(n) {
1794
+ const kn = 10;
1795
+ async function bn(n) {
1796
1796
  const l = [];
1797
1797
  return Object.entries(n.resolvedInput).filter(([t, e]) => typeof e < "u" && fn.includes(t)).forEach(([t, e]) => {
1798
1798
  const i = pn(e);
1799
1799
  l.push(...i.map((s) => yn(t, s, n)).flat());
1800
- }), (await Promise.all(l)).flat().filter(Boolean).map((t, e) => (t._e = n._i, n.mode && (t._m = n.mode), t._p = (n._i << bn) + e, t));
1800
+ }), (await Promise.all(l)).flat().filter(Boolean).map((t, e) => (t._e = n._i, n.mode && (t._m = n.mode), t._p = (n._i << kn) + e, t));
1801
1801
  }
1802
1802
  const vt = {
1803
1803
  // tags
@@ -1855,12 +1855,12 @@ async function Vn(n, l = {}) {
1855
1855
  const C = {
1856
1856
  tag: P.tagName.toLowerCase(),
1857
1857
  props: await Ht(
1858
- P.getAttributeNames().reduce((b, w) => ({ ...b, [w]: P.getAttribute(w) }), {})
1858
+ P.getAttributeNames().reduce((k, w) => ({ ...k, [w]: P.getAttribute(w) }), {})
1859
1859
  ),
1860
1860
  innerHTML: P.innerHTML
1861
1861
  };
1862
1862
  let S = 1, B = Dt(C);
1863
- for (; B && V.find((b) => b._d === B); )
1863
+ for (; B && V.find((k) => k._d === B); )
1864
1864
  B = `${B}:${S++}`;
1865
1865
  C._d = B || void 0, V.push(C), s.elMap[P.getAttribute("data-hid") || ft(C)] = P;
1866
1866
  }
@@ -1883,12 +1883,12 @@ async function Vn(n, l = {}) {
1883
1883
  Object.entries(V.props).forEach(([C, S]) => {
1884
1884
  const B = `attr:${C}`;
1885
1885
  if (C === "class")
1886
- for (const b of (S || "").split(" ").filter(Boolean))
1887
- P && m(d, `${B}:${b}`, () => h.classList.remove(b)), !h.classList.contains(b) && h.classList.add(b);
1886
+ for (const k of (S || "").split(" ").filter(Boolean))
1887
+ P && m(d, `${B}:${k}`, () => h.classList.remove(k)), !h.classList.contains(k) && h.classList.add(k);
1888
1888
  else if (C === "style")
1889
- for (const b of (S || "").split(";").filter(Boolean)) {
1890
- const [w, ...H] = b.split(":").map((O) => O.trim());
1891
- m(d, `${B}:${b}:${w}`, () => {
1889
+ for (const k of (S || "").split(";").filter(Boolean)) {
1890
+ const [w, ...H] = k.split(":").map((O) => O.trim());
1891
+ m(d, `${B}:${k}:${w}`, () => {
1892
1892
  h.style.removeProperty(w);
1893
1893
  }), h.style.setProperty(w, H.join(":"));
1894
1894
  }
@@ -2084,7 +2084,7 @@ function Un(n = {}) {
2084
2084
  const l = Rn(n);
2085
2085
  return l.use(/* @__PURE__ */ $n()), l;
2086
2086
  }
2087
- function bt(n, l) {
2087
+ function kt(n, l) {
2088
2088
  return !n || n === "server" && l || n === "client" && !l;
2089
2089
  }
2090
2090
  function Rn(n = {}) {
@@ -2104,7 +2104,7 @@ function Rn(n = {}) {
2104
2104
  },
2105
2105
  use(u) {
2106
2106
  const r = typeof u == "function" ? u(p) : u;
2107
- (!r.key || !m.some((d) => d.key === r.key)) && (m.push(r), bt(r.mode, t) && l.addHooks(r.hooks || {}));
2107
+ (!r.key || !m.some((d) => d.key === r.key)) && (m.push(r), kt(r.mode, t) && l.addHooks(r.hooks || {}));
2108
2108
  },
2109
2109
  push(u, r) {
2110
2110
  delete r?.head;
@@ -2113,7 +2113,7 @@ function Rn(n = {}) {
2113
2113
  input: u,
2114
2114
  ...r
2115
2115
  };
2116
- return bt(d.mode, t) && (s.push(d), e()), {
2116
+ return kt(d.mode, t) && (s.push(d), e()), {
2117
2117
  dispose() {
2118
2118
  s = s.filter((h) => h._i !== d._i), l.callHook("entries:updated", p), e();
2119
2119
  },
@@ -2129,7 +2129,7 @@ function Rn(n = {}) {
2129
2129
  for (const r of u.entries) {
2130
2130
  const d = r.resolvedInput || r.input;
2131
2131
  if (r.resolvedInput = await (r.transform ? r.transform(d) : d), r.resolvedInput)
2132
- for (const h of await kn(r)) {
2132
+ for (const h of await bn(r)) {
2133
2133
  const V = { tag: h, entry: r, resolvedOptions: p.resolvedOptions };
2134
2134
  await l.callHook("tag:normalise", V), u.tags.push(V.tag);
2135
2135
  }
package/dist/hotel.js.br CHANGED
Binary file