@konnectio/core 4.0.88 → 4.0.89

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 (52) hide show
  1. package/dist/{ActionField-DcT_9OQ-.js → ActionField-pRVpEYbK.js} +2 -2
  2. package/dist/ActionField-pRVpEYbK.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DuS6EF5A.js → AvailabilitySkeleton-DyueTEga.js} +5 -5
  4. package/dist/AvailabilitySkeleton-DyueTEga.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-gdKPuOKO.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.js} +2 -2
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.js.br +0 -0
  7. package/dist/{CheckoutWindow-gdDFWtqb.js → CheckoutWindow-BrwxMXyf.js} +2 -2
  8. package/dist/CheckoutWindow-BrwxMXyf.js.br +0 -0
  9. package/dist/{ErrorMessage-Ve-udIdk.js → ErrorMessage-CIU5Cn9y.js} +2 -2
  10. package/dist/ErrorMessage-CIU5Cn9y.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-C4d81ddL.js → EventAvailabilityForm-ClaIOEwA.js} +3 -3
  12. package/dist/EventAvailabilityForm-ClaIOEwA.js.br +0 -0
  13. package/dist/{Field-D-HVbbAz.js → Field-DuG8W19B.js} +3 -3
  14. package/dist/Field-DuG8W19B.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DVknjZnB.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-PtGXipvw.js} +2 -2
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-HlNLn_PC.js → SelectField.vue_vue_type_style_index_0_lang-CDI5Jr8F.js} +2 -2
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-CDI5Jr8F.js.br +0 -0
  18. package/dist/{TermsOfService-D3_RZAXa.js → TermsOfService-D28siuNO.js} +3 -3
  19. package/dist/_-C-ynrhKu.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-Cd38IS_v.js → _.vue_vue_type_style_index_0_lang-BL9CKMuv.js} +2 -2
  21. package/dist/availability.js +5 -5
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +3 -3
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/event.js +7 -7
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +7 -7
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +8 -8
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/{giftCard-Cd9Y7fCq.js → giftCard-vF2jr39r.js} +2 -2
  32. package/dist/giftCard-vF2jr39r.js.br +0 -0
  33. package/dist/hotel.js +91 -90
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-DjoCgAa8.js → masonry.plugin-QKZ1Nfp8.js} +6 -6
  36. package/dist/masonry.plugin-QKZ1Nfp8.js.br +0 -0
  37. package/dist/polyfill.js +1 -1
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/package.json +1 -1
  42. package/dist/ActionField-DcT_9OQ-.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-DuS6EF5A.js.br +0 -0
  44. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-gdKPuOKO.js.br +0 -0
  45. package/dist/CheckoutWindow-gdDFWtqb.js.br +0 -0
  46. package/dist/ErrorMessage-Ve-udIdk.js.br +0 -0
  47. package/dist/EventAvailabilityForm-C4d81ddL.js.br +0 -0
  48. package/dist/Field-D-HVbbAz.js.br +0 -0
  49. package/dist/SelectField.vue_vue_type_style_index_0_lang-HlNLn_PC.js.br +0 -0
  50. package/dist/_-C5OzP-8w.js +0 -5
  51. package/dist/giftCard-Cd9Y7fCq.js.br +0 -0
  52. package/dist/masonry.plugin-DjoCgAa8.js.br +0 -0
package/dist/hotel.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { d as Z, u as se, s as X, r as le, K as uo, a as d, b as H, y as co, i as e, w as $, g as v, e as s, t as h, G as De, H as xe, f as y, j as T, z as q, F as U, v as Ke, B as Ze, A as F, h as Vt, D as po, c as x, o as lt, E as Ne, n as Me, S as mo, L as fo, M as ho, N as vo, k as yo, l as ko, m as go, p as bo, q as _o } from "./mitt-Cg46J41N.js";
2
- import { g as ve, b as ye, u as Ce, I as W, s as oe, z as we, l as Je, m as pe, j as ne, _ as fe, d as Be, A as Tt, f as et, e as me, B as wt, a as $t, D as ct, T as ue, r as Vo, E as To, C as wo, k as pt, n as $o, o as mt, p as Co } from "./SelectField.vue_vue_type_style_index_0_lang-HlNLn_PC.js";
2
+ import { g as ve, b as ye, u as Ce, I as W, s as oe, z as we, l as Je, m as pe, j as ne, _ as fe, d as Le, A as Tt, f as et, e as me, B as wt, a as $t, D as ct, T as ue, r as Vo, E as To, C as wo, k as pt, n as $o, o as mt, p as Co } from "./SelectField.vue_vue_type_style_index_0_lang-CDI5Jr8F.js";
3
3
  import { G as Po } from "./style-BEbp8L4f.js";
4
- import { R as Ao, B as Ue, L as Ho, S as So, M as Do, b as ze, C as Io, T as No, V as Mo, a as Ro } from "./masonry.plugin-DjoCgAa8.js";
5
- import { A as Lo, H as Bo } from "./AvailabilitySkeleton-DuS6EF5A.js";
6
- import { S as Uo } from "./TermsOfService-D3_RZAXa.js";
7
- import { C as $e, B as Eo, P as Oo, a as Fo } from "./CheckoutWindow-gdDFWtqb.js";
8
- import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-gdKPuOKO.js";
4
+ import { R as Ao, B as Ue, L as Ho, S as So, M as Do, b as ze, C as Io, T as No, V as Mo, a as Bo } from "./masonry.plugin-QKZ1Nfp8.js";
5
+ import { A as Ro, H as Lo } from "./AvailabilitySkeleton-DyueTEga.js";
6
+ import { S as Uo } from "./TermsOfService-D28siuNO.js";
7
+ import { C as $e, B as Eo, P as Oo, a as Fo } from "./CheckoutWindow-BrwxMXyf.js";
8
+ import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.js";
9
9
  const Go = { key: 0 }, qo = { class: "konnectio-hotel-reservation-warning" }, jo = { class: "konnectio-hotel-reservation-warning" }, Wo = { class: "konnectio-hotel-reservation-warning" };
10
10
  const xo = { key: 0 }, Ko = { key: 1 }, Jo = { key: 0 }, zo = { class: "konnectio-reservation-actions" }, Yo = {
11
11
  key: 0,
@@ -42,20 +42,20 @@ const xo = { key: 0 }, Ko = { key: 1 }, Jo = { key: 0 }, zo = { class: "konnecti
42
42
  termsOfService: A,
43
43
  discountCode: M,
44
44
  hasTermOfService: z,
45
- acceptTerms: L,
45
+ acceptTerms: R,
46
46
  totalTemplateAddonPrice: Y,
47
47
  totalRooms: E,
48
48
  totalAdults: ae,
49
49
  totalChildren: ie
50
50
  } = X(ye()), { hasHotelLocations: j } = X(Ce()), { removeRoom: Pe, validateDiscountCode: ge } = ye(), { getHotelLocationName: be } = Ce(), _e = le(!1);
51
51
  function Ae(ee) {
52
- return ee.reduce((he, { totalPrice: R }) => he + R, 0);
52
+ return ee.reduce((he, { totalPrice: B }) => he + B, 0);
53
53
  }
54
54
  return (ee, O) => {
55
55
  const he = uo("tooltip");
56
56
  return d(), H(Ao, {
57
57
  "discount-code": e(M),
58
- "onUpdate:discountCode": O[4] || (O[4] = (R) => F(M) ? M.value = R : null),
58
+ "onUpdate:discountCode": O[4] || (O[4] = (B) => F(M) ? M.value = B : null),
59
59
  "validate-discount-code": e(ge),
60
60
  "total-price": e(c),
61
61
  "show-gift-card": ee.showGiftCard,
@@ -69,10 +69,10 @@ const xo = { key: 0 }, Ko = { key: 1 }, Jo = { key: 0 }, zo = { class: "konnecti
69
69
  ]),
70
70
  "price-summary": $(() => [
71
71
  isNaN(e(u)) && e(f).length > 0 ? (d(!0), v(U, { key: 0 }, q(e(f), ({
72
- roomGroupID: R,
72
+ roomGroupID: B,
73
73
  title: Ve,
74
74
  variants: Te
75
- }) => (d(), v("div", { key: R }, [
75
+ }) => (d(), v("div", { key: B }, [
76
76
  s("h6", null, [
77
77
  s("span", null, h(Ve), 1)
78
78
  ]),
@@ -138,7 +138,7 @@ const xo = { key: 0 }, Ko = { key: 1 }, Jo = { key: 0 }, zo = { class: "konnecti
138
138
  e(n) ? T("", !0) : (d(), v("div", Yo, [
139
139
  y($e, {
140
140
  modelValue: e(_),
141
- "onUpdate:modelValue": O[0] || (O[0] = (R) => F(_) ? _.value = R : null),
141
+ "onUpdate:modelValue": O[0] || (O[0] = (B) => F(_) ? _.value = B : null),
142
142
  type: "checkbox",
143
143
  name: "newsletter",
144
144
  label: e(t)("booking.reservation.newsletterSignUp")
@@ -146,8 +146,8 @@ const xo = { key: 0 }, Ko = { key: 1 }, Jo = { key: 0 }, zo = { class: "konnecti
146
146
  ])),
147
147
  e(z) ? (d(), H($e, {
148
148
  key: 1,
149
- modelValue: e(L),
150
- "onUpdate:modelValue": O[2] || (O[2] = (R) => F(L) ? L.value = R : null),
149
+ modelValue: e(R),
150
+ "onUpdate:modelValue": O[2] || (O[2] = (B) => F(R) ? R.value = B : null),
151
151
  type: "checkbox",
152
152
  name: "terms"
153
153
  }, {
@@ -160,7 +160,7 @@ const xo = { key: 0 }, Ko = { key: 1 }, Jo = { key: 0 }, zo = { class: "konnecti
160
160
  terms: $(() => [
161
161
  s("a", {
162
162
  class: "konnectio-accept-terms-link",
163
- onClick: O[1] || (O[1] = Vt((R) => _e.value = !0, ["prevent"]))
163
+ onClick: O[1] || (O[1] = Vt((B) => _e.value = !0, ["prevent"]))
164
164
  }, [
165
165
  s("span", null, h(e(Je)(e(t)("general.termsAndConditions"))), 1)
166
166
  ])
@@ -173,7 +173,7 @@ const xo = { key: 0 }, Ko = { key: 1 }, Jo = { key: 0 }, zo = { class: "konnecti
173
173
  Ke(ee.$slots, "actions", {}, void 0, !0),
174
174
  y(Uo, {
175
175
  modelValue: _e.value,
176
- "onUpdate:modelValue": O[3] || (O[3] = (R) => _e.value = R),
176
+ "onUpdate:modelValue": O[3] || (O[3] = (B) => _e.value = B),
177
177
  description: e(A)
178
178
  }, null, 8, ["modelValue", "description"])
179
179
  ])
@@ -253,11 +253,11 @@ const xo = { key: 0 }, Ko = { key: 1 }, Jo = { key: 0 }, zo = { class: "konnecti
253
253
  s("span", null, h(e(t)("booking.reservation.nights")), 1),
254
254
  s("b", null, h(e(we)(e(C), e(S))) + " " + h(e(Je)(e(we)(e(C), e(S)) === 1 ? e(t)("booking.reservation.night") : e(t)("booking.reservation.nights"))), 1)
255
255
  ]),
256
- e(w) ? (d(!0), v(U, { key: 1 }, q(e(w), (R) => (d(), v("li", {
257
- key: R.id
256
+ e(w) ? (d(!0), v(U, { key: 1 }, q(e(w), (B) => (d(), v("li", {
257
+ key: B.id
258
258
  }, [
259
- s("span", null, h(`${e(t)("general.discountCode")} (${R.value})`), 1),
260
- s("b", null, h(R.key), 1)
259
+ s("span", null, h(`${e(t)("general.discountCode")} (${B.value})`), 1),
260
+ s("b", null, h(B.key), 1)
261
261
  ]))), 128)) : T("", !0)
262
262
  ]),
263
263
  key: "0"
@@ -284,7 +284,7 @@ const xo = { key: 0 }, Ko = { key: 1 }, Jo = { key: 0 }, zo = { class: "konnecti
284
284
  get: () => a.modelValue,
285
285
  set: (u) => r(u)
286
286
  });
287
- return (u, c) => (d(), H(Be, {
287
+ return (u, c) => (d(), H(Le, {
288
288
  modelValue: f.value,
289
289
  "onUpdate:modelValue": c[0] || (c[0] = (p) => f.value = p),
290
290
  label: u.label,
@@ -398,8 +398,8 @@ const pn = /* @__PURE__ */ Z({
398
398
  const K = x(() => JSON.parse(JSON.stringify(o.value)));
399
399
  return Ne(K, (_, A) => {
400
400
  A.length > 0 && _.forEach((M, z) => {
401
- M.config.forEach((L, Y) => {
402
- const E = L.units, ae = A[z].config[Y].units;
401
+ M.config.forEach((R, Y) => {
402
+ const E = R.units, ae = A[z].config[Y].units;
403
403
  E !== ae && (E > ae ? (o.value[z].config[Y].addons.push({}), c({
404
404
  id: n.room.id,
405
405
  name: n.room.title,
@@ -430,25 +430,25 @@ const pn = /* @__PURE__ */ Z({
430
430
  key: M.id,
431
431
  class: "konnectio-hotel-room"
432
432
  }, [
433
- S.value ? (d(), H(Be, {
433
+ S.value ? (d(), H(Le, {
434
434
  key: 0,
435
435
  modelValue: M.id,
436
- "onUpdate:modelValue": (L) => M.id = L,
436
+ "onUpdate:modelValue": (R) => M.id = R,
437
437
  label: e(t)("hotel.roomVariant"),
438
438
  placeholder: e(t)("hotel.chooseARoomVariant"),
439
439
  options: a.value,
440
440
  searchable: !1,
441
- onChanged: (L) => G(z, L)
441
+ onChanged: (R) => G(z, R)
442
442
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options", "onChanged"])) : T("", !0),
443
443
  M.id ? (d(), v("div", dn, [
444
444
  (d(!0), v(U, null, q(_.room.rates, ({
445
- id: L,
445
+ id: R,
446
446
  maximumOccupants: Y
447
447
  }) => (d(), v("div", {
448
- key: L,
448
+ key: R,
449
449
  class: "konnectio-listing-action-selective-i"
450
450
  }, [
451
- M.id === L ? (d(!0), v(U, { key: 0 }, q(M.config, (E, ae) => (d(), v("div", {
451
+ M.id === R ? (d(!0), v(U, { key: 0 }, q(M.config, (E, ae) => (d(), v("div", {
452
452
  key: ae,
453
453
  class: "konnectio-listing-action-selective"
454
454
  }, [
@@ -460,8 +460,8 @@ const pn = /* @__PURE__ */ Z({
460
460
  "icon-type": "fas",
461
461
  label: e(t)("general.guests"),
462
462
  description: Y === 0 ? void 0 : `${e(t)("general.maximumGuests")}: ${Y}`,
463
- options: C(L),
464
- readonly: !(C(L).length > 1)
463
+ options: C(R),
464
+ readonly: !(C(R).length > 1)
465
465
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
466
466
  ]),
467
467
  s("ul", cn, [
@@ -474,7 +474,7 @@ const pn = /* @__PURE__ */ Z({
474
474
  "icon-placement": "label",
475
475
  label: e(t)("booking.availability.units"),
476
476
  minValue: 0,
477
- "max-value": w(L, E.id) || 1 / 0
477
+ "max-value": w(R, E.id) || 1 / 0
478
478
  }, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
479
479
  ]),
480
480
  T("", !0)
@@ -754,7 +754,7 @@ const pn = /* @__PURE__ */ Z({
754
754
  get: () => i.modelValue,
755
755
  set: (f) => a(f)
756
756
  });
757
- return (f, u) => (d(), H(Be, {
757
+ return (f, u) => (d(), H(Le, {
758
758
  modelValue: r.value,
759
759
  "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
760
760
  label: f.label,
@@ -828,7 +828,7 @@ const pn = /* @__PURE__ */ Z({
828
828
  { "no-title": c.excludeTitle }
829
829
  ])
830
830
  }, [
831
- c.excludeTitle ? T("", !0) : (d(), H(Be, {
831
+ c.excludeTitle ? T("", !0) : (d(), H(Le, {
832
832
  key: 0,
833
833
  modelValue: r.value,
834
834
  "onUpdate:modelValue": p[0] || (p[0] = (m) => r.value = m),
@@ -890,7 +890,7 @@ const pn = /* @__PURE__ */ Z({
890
890
  setup(l) {
891
891
  return (t, n) => (d(), v("div", Pn, [
892
892
  s("div", An, [
893
- y(Lo, { hotel: "" }),
893
+ y(Ro, { hotel: "" }),
894
894
  y(Ho)
895
895
  ]),
896
896
  s("div", Hn, [
@@ -899,10 +899,10 @@ const pn = /* @__PURE__ */ Z({
899
899
  ]));
900
900
  }
901
901
  }), Dn = /* @__PURE__ */ fe(Sn, [["__scopeId", "data-v-1bb21da4"]]), In = { id: "booking-availability-container" }, Nn = { id: "booking-availability-controls" };
902
- const Mn = { key: 1 }, Rn = { key: 0 }, Ln = {
902
+ const Mn = { key: 1 }, Bn = { key: 0 }, Rn = {
903
903
  key: 0,
904
904
  id: "booking-availability-packages"
905
- }, Bn = {
905
+ }, Ln = {
906
906
  key: 0,
907
907
  class: "konnectio-hotel-availability-title"
908
908
  }, Un = { id: "booking-availability-packages-wrapper" }, En = { key: 1 }, On = {
@@ -948,10 +948,11 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
948
948
  hideAddons: { default: "no" },
949
949
  disableDefaultLocation: { default: "no" },
950
950
  selectedLocation: {},
951
+ sortBy: { default: "default" },
951
952
  styling: {}
952
953
  },
953
954
  setup(l) {
954
- const t = fo(() => import("./_-C5OzP-8w.js")), n = l, { t: o } = se(), {
955
+ const t = fo(() => import("./_-C-ynrhKu.js")), n = l, { t: o } = se(), {
955
956
  currentLocation: i,
956
957
  templateID: a,
957
958
  templateAddons: r,
@@ -971,7 +972,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
971
972
  city: A,
972
973
  address: M,
973
974
  country: z,
974
- remark: L,
975
+ remark: R,
975
976
  allergies: Y,
976
977
  roomSelect: E,
977
978
  roomDisplay: ae,
@@ -986,7 +987,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
986
987
  isTemplateReservation: O,
987
988
  newsMails: he
988
989
  } = X(ye()), {
989
- adults: R,
990
+ adults: B,
990
991
  children: Ve,
991
992
  location: Te,
992
993
  arrivalDate: He,
@@ -995,9 +996,9 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
995
996
  } = X(Ce()), { isValidHotelId: Oe, updateDates: at } = Ce(), {
996
997
  currency: Fe,
997
998
  enableTracking: Mt,
998
- disableNamePrefix: Rt,
999
- disableTravelingFor: Lt,
1000
- disableTravelingForBleasure: Bt,
999
+ disableNamePrefix: Bt,
1000
+ disableTravelingFor: Rt,
1001
+ disableTravelingForBleasure: Lt,
1001
1002
  disableCompanyField: Ut,
1002
1003
  hasPaymentGateway: Et,
1003
1004
  maxAdultAmount: it,
@@ -1056,7 +1057,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1056
1057
  value: "Pleasure"
1057
1058
  }
1058
1059
  ];
1059
- return Bt.value || b.push({
1060
+ return Lt.value || b.push({
1060
1061
  label: o("booking.reservation.bleasure"),
1061
1062
  value: "Bleasure"
1062
1063
  }), b;
@@ -1065,7 +1066,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1065
1066
  function V(J, P) {
1066
1067
  return Zt.value === !0 ? J.pricesFrom > P.pricesFrom ? -1 : 1 : J.pricesFrom > P.pricesFrom ? 1 : -1;
1067
1068
  }
1068
- return b.sort(V);
1069
+ return n.sortBy === "price" ? b.sort(V) : b;
1069
1070
  }), je = x(() => n.hideAddons === "yes" || O.value && n.hideAddons === "packages" || !O.value && n.hideAddons === "rooms");
1070
1071
  function ut(b) {
1071
1072
  je.value || Pe.value ? b(2) : b(), Yt();
@@ -1089,14 +1090,14 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1089
1090
  function io() {
1090
1091
  const b = $o("history", {
1091
1092
  removeNullishValues: !0
1092
- }), V = parseInt(b.a), J = parseInt(b.c), P = parseInt(b.hid), I = parseInt(b.n), k = b.ci, B = b.co, N = b.id;
1093
+ }), V = parseInt(b.a), J = parseInt(b.c), P = parseInt(b.hid), I = parseInt(b.n), k = b.ci, L = b.co, N = b.id;
1093
1094
  let te = !1;
1094
- if (isNaN(V) || (V > it.value ? R.value = it.value : R.value = V, R.value === Ot.value && (b.a = void 0)), isNaN(J) || (J > st.value ? Ve.value = st.value : Ve.value = J, Ve.value === Ft.value && (b.c = void 0)), isNaN(I) || I > 0 && (b.n = void 0), isNaN(P) || (Oe(P) ? (Te.value = P, te = !0) : Se({
1095
+ if (isNaN(V) || (V > it.value ? B.value = it.value : B.value = V, B.value === Ot.value && (b.a = void 0)), isNaN(J) || (J > st.value ? Ve.value = st.value : Ve.value = J, Ve.value === Ft.value && (b.c = void 0)), isNaN(I) || I > 0 && (b.n = void 0), isNaN(P) || (Oe(P) ? (Te.value = P, te = !0) : Se({
1095
1096
  message: o("alert.error.hotelIdNotFound"),
1096
1097
  type: "error"
1097
- })), k && B)
1098
- if (mt(k) && mt(B)) {
1099
- const ke = new Date(k), de = new Date(B);
1098
+ })), k && L)
1099
+ if (mt(k) && mt(L)) {
1100
+ const ke = new Date(k), de = new Date(L);
1100
1101
  ke <= de ? (He.value = ke, Ee.value = de) : (b.ci = void 0, b.co = void 0, Se({
1101
1102
  message: o("alert.error.invalidDateRange"),
1102
1103
  type: "error"
@@ -1129,7 +1130,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1129
1130
  form: $(() => [
1130
1131
  s("div", In, [
1131
1132
  s("div", Nn, [
1132
- y(Bo, {
1133
+ y(Lo, {
1133
1134
  booking: !0,
1134
1135
  "selected-location": Number(b.selectedLocation),
1135
1136
  "disable-default-location": b.disableDefaultLocation === "yes"
@@ -1137,9 +1138,9 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1137
1138
  ]),
1138
1139
  T("", !0),
1139
1140
  !e(u) && e(ge) ? (d(), v("div", Mn, [
1140
- e(j).roomGroups.length > 0 || e(j).templates.length > 0 || e(j).specialTemplates.length > 0 ? (d(), v("div", Rn, [
1141
- e(j).templates.length > 0 && b.onlyShow !== "rooms" ? (d(), v("div", Ln, [
1142
- b.onlyShow !== "packages" ? (d(), v("h2", Bn, [
1141
+ e(j).roomGroups.length > 0 || e(j).templates.length > 0 || e(j).specialTemplates.length > 0 ? (d(), v("div", Bn, [
1142
+ e(j).templates.length > 0 && b.onlyShow !== "rooms" ? (d(), v("div", Rn, [
1143
+ b.onlyShow !== "packages" ? (d(), v("h2", Ln, [
1143
1144
  y(W, {
1144
1145
  icon: "box",
1145
1146
  type: "fal",
@@ -1152,7 +1153,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1152
1153
  id: P,
1153
1154
  name: I,
1154
1155
  templateRoomGroups: k,
1155
- image: B,
1156
+ image: L,
1156
1157
  description: N,
1157
1158
  weekendFee: te
1158
1159
  }) => (d(), H(kn, {
@@ -1160,7 +1161,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1160
1161
  id: P,
1161
1162
  description: N,
1162
1163
  name: I,
1163
- image: B,
1164
+ image: L,
1164
1165
  weekendFee: te,
1165
1166
  "room-groups": k,
1166
1167
  callback: J,
@@ -1198,7 +1199,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1198
1199
  id: P,
1199
1200
  name: I,
1200
1201
  templateRoomGroups: k,
1201
- image: B,
1202
+ image: L,
1202
1203
  description: N,
1203
1204
  weekendFee: te,
1204
1205
  fromDate: Q,
@@ -1208,7 +1209,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1208
1209
  id: P,
1209
1210
  description: N,
1210
1211
  name: I,
1211
- image: B,
1212
+ image: L,
1212
1213
  fromDate: Q,
1213
1214
  toDate: ke,
1214
1215
  weekendFee: te,
@@ -1306,7 +1307,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1306
1307
  (d(!0), v(U, null, q(e(ae), (I) => (d(), v("ul", {
1307
1308
  key: I.roomGroupID
1308
1309
  }, [
1309
- (d(!0), v(U, null, q(I.variants, (k, B) => (d(), v("li", {
1310
+ (d(!0), v(U, null, q(I.variants, (k, L) => (d(), v("li", {
1310
1311
  key: k.ratePlanID
1311
1312
  }, [
1312
1313
  s("h4", null, [
@@ -1354,18 +1355,18 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1354
1355
  s("span", null, h(e(ne)(ro, e(Fe))) + " " + h(e(pt)(Q)), 1)
1355
1356
  ]),
1356
1357
  s("td", al, [
1357
- e(E)[I.roomGroupID][B].config[N.configIdx].addons[N.roomIdx] ? (d(), v(U, { key: 0 }, [
1358
+ e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx] ? (d(), v(U, { key: 0 }, [
1358
1359
  Q === 1 || Q === 12 ? (d(), H(et, {
1359
1360
  key: 0,
1360
- modelValue: e(E)[I.roomGroupID][B].config[N.configIdx].addons[N.roomIdx][de],
1361
- "onUpdate:modelValue": (We) => e(E)[I.roomGroupID][B].config[N.configIdx].addons[N.roomIdx][de] = We,
1361
+ modelValue: e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de],
1362
+ "onUpdate:modelValue": (We) => e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de] = We,
1362
1363
  small: !0,
1363
1364
  "min-value": 0,
1364
1365
  "max-value": ke || 1 / 0
1365
1366
  }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), H($e, {
1366
1367
  key: 1,
1367
- modelValue: e(E)[I.roomGroupID][B].config[N.configIdx].addons[N.roomIdx][de],
1368
- "onUpdate:modelValue": (We) => e(E)[I.roomGroupID][B].config[N.configIdx].addons[N.roomIdx][de] = We,
1368
+ modelValue: e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de],
1369
+ "onUpdate:modelValue": (We) => e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de] = We,
1369
1370
  numeric: !0
1370
1371
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1371
1372
  ], 64)) : T("", !0)
@@ -1394,10 +1395,10 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1394
1395
  (d(!0), v(U, null, q(e(dt)(e(be).addons, e(ee)), ({
1395
1396
  quantityStrategy: I,
1396
1397
  maximumNumber: k,
1397
- id: B,
1398
+ id: L,
1398
1399
  name: N,
1399
1400
  price: te
1400
- }) => (d(), v("tr", { key: B }, [
1401
+ }) => (d(), v("tr", { key: L }, [
1401
1402
  s("td", rl, [
1402
1403
  s("b", null, h(e(pe)(N)), 1),
1403
1404
  s("span", null, h(e(ne)(te, e(Fe))) + " " + h(e(pt)(I)), 1)
@@ -1405,15 +1406,15 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1405
1406
  s("td", dl, [
1406
1407
  I === 1 || I === 12 ? (d(), H(et, {
1407
1408
  key: 0,
1408
- modelValue: e(r)[B],
1409
- "onUpdate:modelValue": (Q) => e(r)[B] = Q,
1409
+ modelValue: e(r)[L],
1410
+ "onUpdate:modelValue": (Q) => e(r)[L] = Q,
1410
1411
  small: !0,
1411
1412
  "min-value": 0,
1412
1413
  "max-value": k || 1 / 0
1413
1414
  }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), H($e, {
1414
1415
  key: 1,
1415
- modelValue: e(r)[B],
1416
- "onUpdate:modelValue": (Q) => e(r)[B] = Q,
1416
+ modelValue: e(r)[L],
1417
+ "onUpdate:modelValue": (Q) => e(r)[L] = Q,
1417
1418
  numeric: !0
1418
1419
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1419
1420
  ])
@@ -1479,7 +1480,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1479
1480
  "onUpdate:modelValue": V[4] || (V[4] = (k) => F(C) ? C.value = k : null),
1480
1481
  title: e(S),
1481
1482
  "onUpdate:title": V[5] || (V[5] = (k) => F(S) ? S.value = k : null),
1482
- "exclude-title": e(Rt),
1483
+ "exclude-title": e(Bt),
1483
1484
  label: e(o)("booking.reservation.name"),
1484
1485
  icon: "user-alt",
1485
1486
  placeholder: e(o)("booking.reservation.namePlaceholder"),
@@ -1573,8 +1574,8 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1573
1574
  ])
1574
1575
  ]),
1575
1576
  y(ue, {
1576
- modelValue: e(L),
1577
- "onUpdate:modelValue": V[14] || (V[14] = (k) => F(L) ? L.value = k : null),
1577
+ modelValue: e(R),
1578
+ "onUpdate:modelValue": V[14] || (V[14] = (k) => F(R) ? R.value = k : null),
1578
1579
  type: "textarea",
1579
1580
  label: `${e(o)("booking.reservation.remark")} (${e(o)("booking.reservation.optional")})`,
1580
1581
  icon: "info-circle",
@@ -1588,7 +1589,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1588
1589
  icon: "allergies",
1589
1590
  placeholder: e(o)("booking.reservation.allergiesPlaceholder")
1590
1591
  }, null, 8, ["modelValue", "label", "placeholder"]),
1591
- e(Lt) ? T("", !0) : (d(), H(Io, {
1592
+ e(Rt) ? T("", !0) : (d(), H(Io, {
1592
1593
  key: 3,
1593
1594
  modelValue: e(m),
1594
1595
  "onUpdate:modelValue": V[16] || (V[16] = (k) => F(m) ? m.value = k : null),
@@ -1635,7 +1636,7 @@ const rl = { class: "konnectio-table-addons-information" }, dl = { class: "konne
1635
1636
  _: 1
1636
1637
  }, 8, ["styling"]));
1637
1638
  }
1638
- }), ht = /* @__PURE__ */ fe(hl, [["__scopeId", "data-v-f8fb992e"]]);
1639
+ }), ht = /* @__PURE__ */ fe(hl, [["__scopeId", "data-v-77d495ab"]]);
1639
1640
  function tt(l, t = {}, n) {
1640
1641
  for (const o in l) {
1641
1642
  const i = l[o], a = n ? `${n}:${o}` : o;
@@ -1784,7 +1785,7 @@ const Vl = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style",
1784
1785
  "script",
1785
1786
  "noscript"
1786
1787
  ]), wl = /* @__PURE__ */ new Set(["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"]), Ht = /* @__PURE__ */ new Set(["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"]), $l = typeof window < "u";
1787
- function Re(l) {
1788
+ function Be(l) {
1788
1789
  let t = 9;
1789
1790
  for (let n = 0; n < l.length; )
1790
1791
  t = Math.imul(t ^ l.charCodeAt(n++), 9 ** 9);
@@ -1794,11 +1795,11 @@ function vt(l) {
1794
1795
  if (l._h)
1795
1796
  return l._h;
1796
1797
  if (l._d)
1797
- return Re(l._d);
1798
+ return Be(l._d);
1798
1799
  let t = `${l.tag}:${l.textContent || l.innerHTML || ""}:`;
1799
1800
  for (const n in l.props)
1800
1801
  t += `${n}:${l.props[n]},`;
1801
- return Re(t);
1802
+ return Be(t);
1802
1803
  }
1803
1804
  const Cl = ["name", "property", "http-equiv"];
1804
1805
  function St(l) {
@@ -1903,7 +1904,7 @@ const kt = {
1903
1904
  high: -10,
1904
1905
  low: 20
1905
1906
  };
1906
- function Le(l) {
1907
+ function Re(l) {
1907
1908
  const t = l.tagPriority;
1908
1909
  if (typeof t == "number")
1909
1910
  return t;
@@ -2044,27 +2045,27 @@ async function Ml(l, t = {}) {
2044
2045
  a.pendingSideEffects[p]();
2045
2046
  l._dom = a, l.dirty = !1, await l.hooks.callHook("dom:rendered", { renders: i });
2046
2047
  }
2047
- function Rl(l, t = {}) {
2048
+ function Bl(l, t = {}) {
2048
2049
  const n = t.delayFn || ((o) => setTimeout(o, 10));
2049
2050
  return l._domUpdatePromise = l._domUpdatePromise || new Promise((o) => n(() => Ml(l, t).then(() => {
2050
2051
  delete l._domUpdatePromise, o();
2051
2052
  })));
2052
2053
  }
2053
2054
  // @__NO_SIDE_EFFECTS__
2054
- function Ll(l) {
2055
+ function Rl(l) {
2055
2056
  return (t) => {
2056
2057
  const n = t.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
2057
2058
  return n && t.push(JSON.parse(n)), {
2058
2059
  mode: "client",
2059
2060
  hooks: {
2060
2061
  "entries:updated": (o) => {
2061
- Rl(o, l);
2062
+ Bl(o, l);
2062
2063
  }
2063
2064
  }
2064
2065
  };
2065
2066
  };
2066
2067
  }
2067
- const Bl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]), Ul = {
2068
+ const Ll = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]), Ul = {
2068
2069
  hooks: {
2069
2070
  "tag:normalise": ({ tag: l }) => {
2070
2071
  l.props.hid && (l.key = l.props.hid, delete l.props.hid), l.props.vmid && (l.key = l.props.vmid, delete l.props.vmid), l.props.key && (l.key = l.props.key, delete l.props.key);
@@ -2077,7 +2078,7 @@ const Bl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
2077
2078
  const i = (o.key ? `${o.tag}:${o.key}` : o._d) || o._p, a = t[i];
2078
2079
  if (a) {
2079
2080
  let f = o?.tagDuplicateStrategy;
2080
- if (!f && Bl.has(o.tag) && (f = "merge"), f === "merge") {
2081
+ if (!f && Ll.has(o.tag) && (f = "merge"), f === "merge") {
2081
2082
  const u = a.props;
2082
2083
  u.style && o.props.style && (u.style[u.style.length - 1] !== ";" && (u.style += ";"), o.props.style = `${u.style} ${o.props.style}`), u.class && o.props.class ? o.props.class = `${u.class} ${o.props.class}` : u.class && (o.props.class = u.class), t[i].props = {
2083
2084
  ...u,
@@ -2087,7 +2088,7 @@ const Bl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
2087
2088
  } else if (o._e === a._e) {
2088
2089
  a._duped = a._duped || [], o._d = `${a._d}:${a._duped.length + 1}`, a._duped.push(o);
2089
2090
  continue;
2090
- } else if (Le(o) > Le(a))
2091
+ } else if (Re(o) > Re(a))
2091
2092
  continue;
2092
2093
  }
2093
2094
  if (!(o.innerHTML || o.textContent || Object.keys(o.props).length !== 0) && Ie.has(o.tag)) {
@@ -2132,7 +2133,7 @@ const Bl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
2132
2133
  const a = o[i];
2133
2134
  typeof a == "function" && (l.ssr && bt.has(i) ? o[i] = `this.dataset.${i}fired = true` : delete o[i], n._eventHandlers = n._eventHandlers || {}, n._eventHandlers[i] = a);
2134
2135
  }
2135
- l.ssr && n._eventHandlers && (n.props.src || n.props.href) && (n.key = n.key || Re(n.props.src || n.props.href));
2136
+ l.ssr && n._eventHandlers && (n.props.src || n.props.href) && (n.key = n.key || Be(n.props.src || n.props.href));
2136
2137
  }
2137
2138
  },
2138
2139
  "dom:renderTag": ({ $el: t, tag: n }) => {
@@ -2149,7 +2150,7 @@ const Bl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
2149
2150
  }), Gl = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), ql = {
2150
2151
  hooks: {
2151
2152
  "tag:normalise": ({ tag: l }) => {
2152
- l.key && Gl.has(l.tag) && (l.props["data-hid"] = l._h = Re(l.key));
2153
+ l.key && Gl.has(l.tag) && (l.props["data-hid"] = l._h = Be(l.key));
2153
2154
  }
2154
2155
  }
2155
2156
  }, jl = {
@@ -2167,7 +2168,7 @@ const Bl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
2167
2168
  }
2168
2169
  }
2169
2170
  l.tags.sort((t, n) => {
2170
- const o = Le(t), i = Le(n);
2171
+ const o = Re(t), i = Re(n);
2171
2172
  return o < i ? -1 : o > i ? 1 : t._p - n._p;
2172
2173
  });
2173
2174
  }
@@ -2238,7 +2239,7 @@ const Bl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
2238
2239
  // @__NO_SIDE_EFFECTS__
2239
2240
  function Yl(l = {}) {
2240
2241
  const t = Ql(l);
2241
- return t.use(/* @__PURE__ */ Ll()), t;
2242
+ return t.use(/* @__PURE__ */ Rl()), t;
2242
2243
  }
2243
2244
  function _t(l, t) {
2244
2245
  return !l || l === "server" && t || l === "client" && !t;
@@ -2365,7 +2366,7 @@ class sa extends HTMLElement {
2365
2366
  }
2366
2367
  connectedCallback() {
2367
2368
  const t = ko(ht, this.attributes);
2368
- this.vueApp = go(ht, t), this.vueApp.provide("emitter", ia), this.vueApp.use(aa), this.vueApp.use(la), this.vueApp.use(Mo), this.vueApp.use(bo), this.vueApp.use(Ro), this.vueApp.use(Po), this.vueApp.use(Co, { bootstrap: !0 });
2369
+ this.vueApp = go(ht, t), this.vueApp.provide("emitter", ia), this.vueApp.use(aa), this.vueApp.use(la), this.vueApp.use(Mo), this.vueApp.use(bo), this.vueApp.use(Bo), this.vueApp.use(Po), this.vueApp.use(Co, { bootstrap: !0 });
2369
2370
  const n = document.createElement("div");
2370
2371
  this.vueApp.mount(n), this.appendChild(n.children[0]);
2371
2372
  }
package/dist/hotel.js.br CHANGED
Binary file
@@ -1,9 +1,9 @@
1
1
  import { d as defineComponent, P as getCurrentInstance, Q as resolveComponent, R as h, U as Comment, V as Text, F as Fragment, r as ref, c as computed$1, E as watch, o as onMounted, a as openBlock, g as createElementBlock, b as createBlock, w as withCtx, e as createBaseVNode, h as withModifiers, j as createCommentVNode, f as createVNode, z as renderList, i as unref, n as normalizeClass, u as useI18n, s as storeToRefs, O as inject, K as resolveDirective, y as createSlots, G as withDirectives, t as toDisplayString, W as reactive, X as onUnmounted, v as renderSlot, Y as normalizeStyle, M as nextTick, H as vShow, B as createTextVNode, Z as mergeModels, x as useSlots, _ as useModel, T as Transition, A as isRef, q as mitt } from "./mitt-Cg46J41N.js";
2
- import { I as Icon, _ as _export_sfc, b as useHotelStore, T as TextField, F as convertDescription, B as BookingLayout, g as useUtilityStore, m as capitalized, z as daysBetweenDates, j as showPrice, s as showDate, r as InputField, E as BookingHeaderLayout, t as useApplyGiftCardStore, v as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-HlNLn_PC.js";
3
- import { B as Base$1, C as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-gdDFWtqb.js";
4
- import { u as useEventStore } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-gdKPuOKO.js";
5
- import { A as ActionField } from "./ActionField-DcT_9OQ-.js";
6
- import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DVknjZnB.js";
2
+ import { I as Icon, _ as _export_sfc, b as useHotelStore, T as TextField, F as convertDescription, B as BookingLayout, g as useUtilityStore, m as capitalized, z as daysBetweenDates, j as showPrice, s as showDate, r as InputField, E as BookingHeaderLayout, t as useApplyGiftCardStore, v as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-CDI5Jr8F.js";
3
+ import { B as Base$1, C as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-BrwxMXyf.js";
4
+ import { u as useEventStore } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.js";
5
+ import { A as ActionField } from "./ActionField-pRVpEYbK.js";
6
+ import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-PtGXipvw.js";
7
7
  import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-DaMA6jEr.js";
8
8
  /*! *****************************************************************************
9
9
  Copyright (c) Microsoft Corporation.
@@ -10690,4 +10690,4 @@ export {
10690
10690
  StickyPlugin as a,
10691
10691
  ListingSkeleton as b
10692
10692
  };
10693
- //# sourceMappingURL=masonry.plugin-DjoCgAa8.js.map
10693
+ //# sourceMappingURL=masonry.plugin-QKZ1Nfp8.js.map
package/dist/polyfill.js CHANGED
@@ -6707,5 +6707,5 @@ var _nr = { exports: {} };
6707
6707
  tr = new ResizeObserver(I), hr = new MutationObserver(ir), K();
6708
6708
  }
6709
6709
  })()();
6710
- console.log("Konnectio production release: 4.0.88");
6710
+ console.log("Konnectio production release: 4.0.89");
6711
6711
  //# sourceMappingURL=polyfill.js.map
Binary file