@konnectio/core 4.0.74 → 4.0.76

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 (67) hide show
  1. package/dist/{ActionField-D8W3NqRF.js → ActionField-CHwplij8.js} +3 -3
  2. package/dist/ActionField-CHwplij8.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-BBDi4x8U.js → AvailabilitySkeleton-Cy0P6NKm.js} +35 -35
  4. package/dist/AvailabilitySkeleton-Cy0P6NKm.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CIEzLxoU.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DxsosH1C.js} +4 -4
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DxsosH1C.js.br +0 -0
  7. package/dist/{CheckoutWindow-DUjpjYxC.js → CheckoutWindow-Bfhocd4F.js} +4 -4
  8. package/dist/CheckoutWindow-Bfhocd4F.js.br +0 -0
  9. package/dist/{ErrorMessage-hjNJgwrs.js → ErrorMessage-CtXOviJv.js} +3 -3
  10. package/dist/ErrorMessage-CtXOviJv.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-DUjmm91K.js → EventAvailabilityForm-Bg2tNWol.js} +5 -5
  12. package/dist/EventAvailabilityForm-Bg2tNWol.js.br +0 -0
  13. package/dist/{Field-BQPBt3Yl.js → Field-BHkztiL_.js} +3 -3
  14. package/dist/Field-BHkztiL_.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B04XBO4v.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BvjuCBue.js} +6 -6
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BvjuCBue.js.br +0 -0
  17. package/dist/{TermsOfService-D6RUoOUV.js → TermsOfService-D7x_WeB9.js} +9 -9
  18. package/dist/TermsOfService-D7x_WeB9.js.br +0 -0
  19. package/dist/{_-Dshgs9--.js → _-5d7Am3XD.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CGVeBj5b.js → _.vue_vue_type_style_index_0_lang-2eVbpOnK.js} +3 -3
  21. package/dist/_.vue_vue_type_style_index_0_lang-2eVbpOnK.js.br +0 -0
  22. package/dist/{_commonjsHelpers-B-6sA32f.js → _commonjsHelpers-B13T3-KN.js} +2 -2
  23. package/dist/_commonjsHelpers-B13T3-KN.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-CYoJrL75.js → _sentry-release-injection-file-Ckhbagwi.js} +3 -3
  25. package/dist/_sentry-release-injection-file-Ckhbagwi.js.br +0 -0
  26. package/dist/availability.js +8 -8
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +2 -2
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +10 -10
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +10 -10
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +11 -11
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/{giftCard-Cia2eO-w.js → giftCard-C3-VNyzx.js} +4 -4
  37. package/dist/giftCard-C3-VNyzx.js.br +0 -0
  38. package/dist/hotel.js +664 -647
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-CgYuuVsX.js → masonry.plugin-CqrNqwa8.js} +98 -96
  41. package/dist/masonry.plugin-CqrNqwa8.js.br +0 -0
  42. package/dist/{mitt-BOKsNQma.js → mitt-BsDqRQVb.js} +2 -2
  43. package/dist/mitt-BsDqRQVb.js.br +0 -0
  44. package/dist/polyfill.js +91 -91
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{sentry-bc_bi4Og.js → sentry-COtUucgq.js} +2 -2
  47. package/dist/{style-BMdCLRVb.js → style-BSS_jYVc.js} +2 -2
  48. package/dist/style-BSS_jYVc.js.br +0 -0
  49. package/dist/style.css +1 -1
  50. package/dist/style.css.br +0 -0
  51. package/package.json +1 -1
  52. package/dist/ActionField-D8W3NqRF.js.br +0 -0
  53. package/dist/AvailabilitySkeleton-BBDi4x8U.js.br +0 -0
  54. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CIEzLxoU.js.br +0 -0
  55. package/dist/CheckoutWindow-DUjpjYxC.js.br +0 -0
  56. package/dist/ErrorMessage-hjNJgwrs.js.br +0 -0
  57. package/dist/EventAvailabilityForm-DUjmm91K.js.br +0 -0
  58. package/dist/Field-BQPBt3Yl.js.br +0 -0
  59. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B04XBO4v.js.br +0 -0
  60. package/dist/TermsOfService-D6RUoOUV.js.br +0 -0
  61. package/dist/_.vue_vue_type_style_index_0_lang-CGVeBj5b.js.br +0 -0
  62. package/dist/_commonjsHelpers-B-6sA32f.js.br +0 -0
  63. package/dist/_sentry-release-injection-file-CYoJrL75.js.br +0 -0
  64. package/dist/giftCard-Cia2eO-w.js.br +0 -0
  65. package/dist/masonry.plugin-CgYuuVsX.js.br +0 -0
  66. package/dist/mitt-BOKsNQma.js.br +0 -0
  67. package/dist/style-BMdCLRVb.js.br +0 -0
package/dist/hotel.js CHANGED
@@ -1,16 +1,16 @@
1
- import { d as ee, r as ae, C as ao, a as d, b as P, q as io, u as e, w as T, g as v, e as a, t as h, A as Se, B as ze, f as y, i as _, s as G, F, l as Ye, x as tt, v as q, h as Pt, p as at, j as it, c as x, o as st, z as Ee, n as Be, S as so, D as ro, E as co, G as uo, k as po } from "./_sentry-release-injection-file-CYoJrL75.js";
2
- import { u as ie, s as Z, T as mo, c as fo, l as ho, i as vo, m as yo } from "./mitt-BOKsNQma.js";
3
- import { d as Ce, x as ye, u as we, I as W, s as le, y as Te, l as Qe, i as pe, g as ne, _ as fe, n as Re, z as At, b as ot, c as me, B as Dt, a as St, A as vt, T as ue, p as go, D as bo, C as ko, h as yt, j as _o, k as gt, m as Vo } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B04XBO4v.js";
4
- import { G as $o } from "./style-BMdCLRVb.js";
5
- import { R as To, B as Le, L as wo, S as Co, M as Po, b as Xe, C as Ao, T as Do, V as So, a as Ho } from "./masonry.plugin-CgYuuVsX.js";
6
- import { A as Io, H as Eo } from "./AvailabilitySkeleton-BBDi4x8U.js";
7
- import { S as Bo } from "./TermsOfService-D6RUoOUV.js";
8
- import { C as Ne, B as No, P as Mo, a as Ro } from "./CheckoutWindow-DUjpjYxC.js";
9
- import { _ as Ht } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CIEzLxoU.js";
1
+ import { d as ee, r as ae, C as so, a as d, b as A, q as ro, u as e, w, g as h, e as a, t as v, A as Se, B as ze, f as y, i as _, s as G, F, l as Ye, x as tt, v as j, h as Pt, p as at, j as it, c as x, o as st, z as Ee, n as Be, S as uo, D as co, E as po, G as mo, k as fo } from "./_sentry-release-injection-file-Ckhbagwi.js";
2
+ import { u as ie, s as Z, T as ho, c as vo, l as yo, i as go, m as bo } from "./mitt-BsDqRQVb.js";
3
+ import { d as Pe, x as ve, u as Ce, I as W, s as le, y as we, l as Qe, i as pe, g as ne, _ as fe, n as Me, z as At, b as ot, c as me, B as Dt, a as St, A as vt, T as ce, p as ko, D as _o, C as Vo, h as yt, j as $o, k as gt, m as wo } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BvjuCBue.js";
4
+ import { G as To } from "./style-BSS_jYVc.js";
5
+ import { R as Co, B as Re, L as Po, S as Ao, M as Do, b as Xe, C as So, T as Ho, V as Io, a as Eo } from "./masonry.plugin-CqrNqwa8.js";
6
+ import { A as Bo, H as No } from "./AvailabilitySkeleton-Cy0P6NKm.js";
7
+ import { S as Mo } from "./TermsOfService-D7x_WeB9.js";
8
+ import { C as Te, B as Ro, P as Lo, a as Uo } from "./CheckoutWindow-Bfhocd4F.js";
9
+ import { _ as Ht } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DxsosH1C.js";
10
10
  (function() {
11
11
  try {
12
12
  var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
13
- l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "72d05faa-25fe-412f-a228-27f00781e2c7", n._sentryDebugIdIdentifier = "sentry-dbid-72d05faa-25fe-412f-a228-27f00781e2c7");
13
+ l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "c15a7887-41c8-4fe6-85c1-061eb0076ea2", n._sentryDebugIdIdentifier = "sentry-dbid-c15a7887-41c8-4fe6-85c1-061eb0076ea2");
14
14
  } catch {
15
15
  }
16
16
  })();
@@ -22,8 +22,11 @@ import { _ as Ht } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scope
22
22
  { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
23
23
  );
24
24
  }
25
- const Lo = (n) => (at("data-v-d005e08c"), n = n(), it(), n), Uo = { key: 0 }, Fo = { class: "konnectio-hotel-reservation-warning" }, Oo = { class: "konnectio-hotel-reservation-warning" }, jo = { class: "konnectio-hotel-reservation-warning" };
26
- const qo = { key: 0 }, Go = { key: 1 }, Wo = { key: 0 }, xo = { class: "konnectio-reservation-actions" }, Ko = /* @__PURE__ */ Lo(() => /* @__PURE__ */ a("span", null, "For ", -1)), Jo = { class: "konnectio-hotel-reservation-tooltip" }, zo = /* @__PURE__ */ ee({
25
+ const Fo = (n) => (at("data-v-3b5fb922"), n = n(), it(), n), Oo = { key: 0 }, jo = { class: "konnectio-hotel-reservation-warning" }, qo = { class: "konnectio-hotel-reservation-warning" }, Go = { class: "konnectio-hotel-reservation-warning" };
26
+ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnectio-reservation-actions" }, zo = {
27
+ key: 0,
28
+ class: "konnectio-newsletter-signup"
29
+ }, Yo = /* @__PURE__ */ Fo(() => /* @__PURE__ */ a("span", null, "For ", -1)), Qo = { class: "konnectio-hotel-reservation-tooltip" }, Xo = /* @__PURE__ */ ee({
27
30
  __name: "HotelReservationForm",
28
31
  props: {
29
32
  showGiftCard: { type: Boolean, default: !1 },
@@ -38,13 +41,13 @@ const qo = { key: 0 }, Go = { key: 1 }, Wo = { key: 0 }, xo = { class: "konnecti
38
41
  arrivalDefault: s,
39
42
  departureDefault: p,
40
43
  disableNewsletterSignup: m,
41
- currency: c
42
- } = Z(Ce()), {
44
+ currency: u
45
+ } = Z(Pe()), {
43
46
  arrivalTime: r,
44
- departureTime: u,
47
+ departureTime: c,
45
48
  roomDisplay: f,
46
- templateID: V,
47
- totalPrice: w,
49
+ templateID: $,
50
+ totalPrice: T,
48
51
  areListingsLoading: C,
49
52
  getSelectedPackageRoom: I,
50
53
  selectedPackage: M,
@@ -53,131 +56,132 @@ const qo = { key: 0 }, Go = { key: 1 }, Wo = { key: 0 }, xo = { class: "konnecti
53
56
  currentDepartureDate: k,
54
57
  datesMismatch: D,
55
58
  currentLocation: B,
56
- locationMismatch: J,
59
+ locationMismatch: z,
57
60
  newsMails: R,
58
61
  termsOfService: Y,
59
62
  discountCode: L,
60
63
  hasTermOfService: se,
61
64
  acceptTerms: te,
62
- totalTemplateAddonPrice: j,
63
- totalRooms: he,
65
+ totalTemplateAddonPrice: q,
66
+ totalRooms: ye,
64
67
  totalAdults: ge,
65
68
  totalChildren: be
66
- } = Z(ye()), { hasHotelLocations: Ue } = Z(we()), { removeRoom: dt, validateDiscountCode: Fe } = ye(), { getHotelLocationName: Pe } = we(), ve = ae(!1);
67
- function ke(X) {
68
- return X.reduce((Ve, { totalPrice: O }) => Ve + O, 0);
69
+ } = Z(ve()), { hasHotelLocations: Le } = Z(Ce()), { removeRoom: dt, validateDiscountCode: Ue } = ve(), { getHotelLocationName: Ae } = Ce(), he = ae(!1);
70
+ function ke(Q) {
71
+ return Q.reduce(($e, { totalPrice: O }) => $e + O, 0);
69
72
  }
70
- return (X, z) => {
71
- const Ve = ao("tooltip");
72
- return d(), P(To, {
73
+ return (Q, K) => {
74
+ const $e = so("tooltip");
75
+ return d(), A(Co, {
73
76
  "discount-code": e(L),
74
- "onUpdate:discountCode": z[4] || (z[4] = (O) => q(L) ? L.value = O : null),
75
- "validate-discount-code": e(Fe),
76
- "total-price": e(w),
77
- "show-gift-card": X.showGiftCard,
78
- "show-terms-notice": X.showTermsNotice,
77
+ "onUpdate:discountCode": K[4] || (K[4] = (O) => j(L) ? L.value = O : null),
78
+ "validate-discount-code": e(Ue),
79
+ "total-price": e(T),
80
+ "show-gift-card": Q.showGiftCard,
81
+ "show-terms-notice": Q.showTermsNotice,
79
82
  "is-sidebar-loading": e(C),
80
83
  notice: e(l)("hotel.reservationNotice"),
81
- "prev-callback": X.prevCallback
82
- }, io({
83
- form: T(() => [
84
- Ye(X.$slots, "form", {}, void 0, !0)
84
+ "prev-callback": Q.prevCallback
85
+ }, ro({
86
+ form: w(() => [
87
+ Ye(Q.$slots, "form", {}, void 0, !0)
85
88
  ]),
86
- "price-summary": T(() => [
87
- isNaN(e(V)) && e(f).length > 0 ? (d(!0), v(F, { key: 0 }, G(e(f), ({
89
+ "price-summary": w(() => [
90
+ isNaN(e($)) && e(f).length > 0 ? (d(!0), h(F, { key: 0 }, G(e(f), ({
88
91
  roomGroupID: O,
89
- title: Oe,
90
- variants: $e
91
- }) => (d(), v("div", { key: O }, [
92
+ title: Fe,
93
+ variants: Oe
94
+ }) => (d(), h("div", { key: O }, [
92
95
  a("h6", null, [
93
- a("span", null, h(Oe), 1)
96
+ a("span", null, v(Fe), 1)
94
97
  ]),
95
- (d(!0), v(F, null, G($e, (Ae, je) => (d(), v("div", { key: je }, [
96
- (d(!0), v(F, null, G(Ae.rooms, (re, qe) => (d(), v("ul", { key: qe }, [
98
+ (d(!0), h(F, null, G(Oe, (_e, je) => (d(), h("div", { key: je }, [
99
+ (d(!0), h(F, null, G(_e.rooms, (re, qe) => (d(), h("ul", { key: qe }, [
97
100
  a("li", null, [
98
101
  a("span", null, [
99
102
  a("span", null, [
100
- tt(h(e(pe)(Ae.name)) + " ( ", 1),
103
+ tt(v(e(pe)(_e.name)) + " ( ", 1),
101
104
  y(W, {
102
105
  icon: "male",
103
106
  type: "fas",
104
107
  color: "font"
105
108
  }),
106
- a("span", null, h(re.adultsCount), 1),
107
- re.childrenCount > 0 ? (d(), v(F, { key: 0 }, [
109
+ a("span", null, v(re.adultsCount), 1),
110
+ re.childrenCount > 0 ? (d(), h(F, { key: 0 }, [
108
111
  y(W, {
109
112
  icon: "child",
110
113
  type: "fas",
111
114
  color: "font"
112
115
  }),
113
- a("span", null, h(re.childrenCount), 1)
116
+ a("span", null, v(re.childrenCount), 1)
114
117
  ], 64)) : _("", !0),
115
118
  tt(") ")
116
119
  ])
117
120
  ]),
118
121
  a("b", null, [
119
- a("span", null, h(e(ne)(re.totalPrice, e(c))), 1),
122
+ a("span", null, v(e(ne)(re.totalPrice, e(u))), 1),
120
123
  _("", !0)
121
124
  ])
122
125
  ]),
123
- ke(re.roomAddons) > 0 ? (d(), v("li", qo, [
124
- a("span", null, h(e(l)("general.addons")), 1),
125
- a("b", null, h(e(ne)(ke(re.roomAddons), e(c))), 1)
126
+ ke(re.roomAddons) > 0 ? (d(), h("li", Wo, [
127
+ a("span", null, v(e(l)("general.addons")), 1),
128
+ a("b", null, v(e(ne)(ke(re.roomAddons), e(u))), 1)
126
129
  ])) : _("", !0)
127
130
  ]))), 128))
128
131
  ]))), 128))
129
132
  ]))), 128)) : _("", !0),
130
- e(I) && e(M) ? (d(), v("div", Go, [
133
+ e(I) && e(M) ? (d(), h("div", xo, [
131
134
  a("h6", null, [
132
- a("span", null, h(e(pe)(e(M).name)), 1)
135
+ a("span", null, v(e(pe)(e(M).name)), 1)
133
136
  ]),
134
137
  a("div", null, [
135
138
  a("ul", null, [
136
139
  a("li", null, [
137
140
  a("span", null, [
138
- a("span", null, h(e(pe)(e(I).title)), 1)
141
+ a("span", null, v(e(pe)(e(I).title)), 1)
139
142
  ]),
140
143
  a("b", null, [
141
- a("span", null, h(e(ne)(e(I).extraPrice, e(c))), 1)
144
+ a("span", null, v(e(ne)(e(I).extraPrice, e(u))), 1)
142
145
  ])
143
146
  ]),
144
- e(j) ? (d(), v("li", Wo, [
145
- a("span", null, h(e(l)("general.addons")), 1),
146
- a("b", null, h(e(ne)(e(j), e(c))), 1)
147
+ e(q) ? (d(), h("li", Ko, [
148
+ a("span", null, v(e(l)("general.addons")), 1),
149
+ a("b", null, v(e(ne)(e(q), e(u))), 1)
147
150
  ])) : _("", !0)
148
151
  ])
149
152
  ])
150
153
  ])) : _("", !0)
151
154
  ]),
152
- actions: T(() => [
153
- a("ul", xo, [
154
- e(m) ? _("", !0) : (d(), P(Ne, {
155
- key: 0,
156
- modelValue: e(R),
157
- "onUpdate:modelValue": z[0] || (z[0] = (O) => q(R) ? R.value = O : null),
158
- type: "checkbox",
159
- name: "newsletter",
160
- label: e(l)("booking.reservation.newsletterSignUp")
161
- }, null, 8, ["modelValue", "label"])),
162
- e(se) ? (d(), P(Ne, {
155
+ actions: w(() => [
156
+ a("ul", Jo, [
157
+ e(m) ? _("", !0) : (d(), h("div", zo, [
158
+ y(Te, {
159
+ modelValue: e(R),
160
+ "onUpdate:modelValue": K[0] || (K[0] = (O) => j(R) ? R.value = O : null),
161
+ type: "checkbox",
162
+ name: "newsletter",
163
+ label: e(l)("booking.reservation.newsletterSignUp")
164
+ }, null, 8, ["modelValue", "label"])
165
+ ])),
166
+ e(se) ? (d(), A(Te, {
163
167
  key: 1,
164
168
  modelValue: e(te),
165
- "onUpdate:modelValue": z[2] || (z[2] = (O) => q(te) ? te.value = O : null),
169
+ "onUpdate:modelValue": K[2] || (K[2] = (O) => j(te) ? te.value = O : null),
166
170
  type: "checkbox",
167
171
  name: "terms"
168
172
  }, {
169
- default: T(() => [
170
- y(e(mo), {
173
+ default: w(() => [
174
+ y(e(ho), {
171
175
  keypath: "general.termsAndConditionsCheckbox",
172
176
  tag: "span",
173
177
  scope: "global"
174
178
  }, {
175
- terms: T(() => [
179
+ terms: w(() => [
176
180
  a("a", {
177
181
  class: "konnectio-accept-terms-link",
178
- onClick: z[1] || (z[1] = Pt((O) => ve.value = !0, ["prevent"]))
182
+ onClick: K[1] || (K[1] = Pt((O) => he.value = !0, ["prevent"]))
179
183
  }, [
180
- a("span", null, h(e(Qe)(e(l)("general.termsAndConditions"))), 1)
184
+ a("span", null, v(e(Qe)(e(l)("general.termsAndConditions"))), 1)
181
185
  ])
182
186
  ]),
183
187
  _: 1
@@ -185,62 +189,62 @@ const qo = { key: 0 }, Go = { key: 1 }, Wo = { key: 0 }, xo = { class: "konnecti
185
189
  ]),
186
190
  _: 1
187
191
  }, 8, ["modelValue"])) : _("", !0),
188
- Ye(X.$slots, "actions", {}, void 0, !0),
189
- y(Bo, {
190
- modelValue: ve.value,
191
- "onUpdate:modelValue": z[3] || (z[3] = (O) => ve.value = O),
192
+ Ye(Q.$slots, "actions", {}, void 0, !0),
193
+ y(Mo, {
194
+ modelValue: he.value,
195
+ "onUpdate:modelValue": K[3] || (K[3] = (O) => he.value = O),
192
196
  description: e(Y)
193
197
  }, null, 8, ["modelValue", "description"])
194
198
  ])
195
199
  ]),
196
- navigation: T(() => [
197
- Ye(X.$slots, "navigation", {}, void 0, !0)
200
+ navigation: w(() => [
201
+ Ye(Q.$slots, "navigation", {}, void 0, !0)
198
202
  ]),
199
- "mobile-under-price": T(() => [
200
- Ko,
201
- a("b", null, h(e(Te)(e(E), e(k))) + " " + h(e(Qe)(e(Te)(e(E), e(k)) === 1 ? e(l)("booking.reservation.night") : e(l)("booking.reservation.nights"))), 1),
202
- Se((d(), v("span", Jo, [
203
+ "mobile-under-price": w(() => [
204
+ Yo,
205
+ a("b", null, v(e(we)(e(E), e(k))) + " " + v(e(Qe)(e(we)(e(E), e(k)) === 1 ? e(l)("booking.reservation.night") : e(l)("booking.reservation.nights"))), 1),
206
+ Se((d(), h("span", Qo, [
203
207
  y(W, {
204
208
  icon: "circle-info",
205
209
  type: "fas"
206
210
  })
207
211
  ])), [
208
- [Ve, {
212
+ [$e, {
209
213
  content: `<span>(${e(le)(e(E))} - ${e(le)(e(k))})</span>`,
210
214
  classes: ["tooltip", "konnectio-tooltip"],
211
215
  html: !0
212
216
  }]
213
217
  ])
214
218
  ]),
215
- "mobile-summary": T(() => [
216
- a("span", null, h(`${e(ge)} ${e(ge) === 1 ? e(l)("general.adult") : e(l)("general.adults")}`), 1),
217
- a("span", null, h(`${e(be)} ${e(be) === 1 ? e(l)("general.child") : e(l)("general.children")}`), 1),
218
- a("span", null, h(`${e(he)} ${e(he) === 1 ? e(l)("booking.reservation.room") : e(l)("booking.reservation.rooms")}`), 1)
219
+ "mobile-summary": w(() => [
220
+ a("span", null, v(`${e(ge)} ${e(ge) === 1 ? e(l)("general.adult") : e(l)("general.adults")}`), 1),
221
+ a("span", null, v(`${e(be)} ${e(be) === 1 ? e(l)("general.child") : e(l)("general.children")}`), 1),
222
+ a("span", null, v(`${e(ye)} ${e(ye) === 1 ? e(l)("booking.reservation.room") : e(l)("booking.reservation.rooms")}`), 1)
219
223
  ]),
220
224
  _: 2
221
225
  }, [
222
226
  isNaN(e(B)) ? void 0 : {
223
227
  name: "reservation-summary",
224
- fn: T(() => [
225
- e(Ue) ? (d(), v("li", Uo, [
226
- a("span", null, h(e(l)("general.location")), 1),
228
+ fn: w(() => [
229
+ e(Le) ? (d(), h("li", Oo, [
230
+ a("span", null, v(e(l)("general.location")), 1),
227
231
  a("b", null, [
228
- a("span", null, h(e(Pe)(e(B))), 1),
229
- Se(a("span", Fo, [
232
+ a("span", null, v(e(Ae)(e(B))), 1),
233
+ Se(a("span", jo, [
230
234
  y(W, {
231
235
  icon: "exclamation-triangle",
232
236
  type: "fas"
233
237
  })
234
238
  ], 512), [
235
- [ze, e(J)]
239
+ [ze, e(z)]
236
240
  ])
237
241
  ])
238
242
  ])) : _("", !0),
239
243
  a("li", null, [
240
- a("span", null, h(e(l)("booking.reservation.arrival")), 1),
244
+ a("span", null, v(e(l)("booking.reservation.arrival")), 1),
241
245
  a("b", null, [
242
- a("span", null, h(e(t) ? e(le)(e(E)) : `${e(le)(e(E))}, ${e(o) ? e(s) : e(r)}`), 1),
243
- Se(a("span", Oo, [
246
+ a("span", null, v(e(t) ? e(le)(e(E)) : `${e(le)(e(E))}, ${e(o) ? e(s) : e(r)}`), 1),
247
+ Se(a("span", qo, [
244
248
  y(W, {
245
249
  icon: "exclamation-triangle",
246
250
  type: "fas"
@@ -251,10 +255,10 @@ const qo = { key: 0 }, Go = { key: 1 }, Wo = { key: 0 }, xo = { class: "konnecti
251
255
  ])
252
256
  ]),
253
257
  a("li", null, [
254
- a("span", null, h(e(l)("booking.reservation.departure")), 1),
258
+ a("span", null, v(e(l)("booking.reservation.departure")), 1),
255
259
  a("b", null, [
256
- a("span", null, h(e(t) ? e(le)(e(k)) : `${e(le)(e(k))}, ${e(i) ? e(p) : e(u)}`), 1),
257
- Se(a("span", jo, [
260
+ a("span", null, v(e(t) ? e(le)(e(k)) : `${e(le)(e(k))}, ${e(i) ? e(p) : e(c)}`), 1),
261
+ Se(a("span", Go, [
258
262
  y(W, {
259
263
  icon: "exclamation-triangle",
260
264
  type: "fas"
@@ -265,14 +269,14 @@ const qo = { key: 0 }, Go = { key: 1 }, Wo = { key: 0 }, xo = { class: "konnecti
265
269
  ])
266
270
  ]),
267
271
  a("li", null, [
268
- a("span", null, h(e(l)("booking.reservation.nights")), 1),
269
- a("b", null, h(e(Te)(e(E), e(k))) + " " + h(e(Qe)(e(Te)(e(E), e(k)) === 1 ? e(l)("booking.reservation.night") : e(l)("booking.reservation.nights"))), 1)
272
+ a("span", null, v(e(l)("booking.reservation.nights")), 1),
273
+ a("b", null, v(e(we)(e(E), e(k))) + " " + v(e(Qe)(e(we)(e(E), e(k)) === 1 ? e(l)("booking.reservation.night") : e(l)("booking.reservation.nights"))), 1)
270
274
  ]),
271
- e(N) ? (d(!0), v(F, { key: 1 }, G(e(N), (O) => (d(), v("li", {
275
+ e(N) ? (d(!0), h(F, { key: 1 }, G(e(N), (O) => (d(), h("li", {
272
276
  key: O.id
273
277
  }, [
274
- a("span", null, h(`${e(l)("general.discountCode")} (${O.value})`), 1),
275
- a("b", null, h(O.key), 1)
278
+ a("span", null, v(`${e(l)("general.discountCode")} (${O.value})`), 1),
279
+ a("b", null, v(O.key), 1)
276
280
  ]))), 128)) : _("", !0)
277
281
  ]),
278
282
  key: "0"
@@ -280,7 +284,7 @@ const qo = { key: 0 }, Go = { key: 1 }, Wo = { key: 0 }, xo = { class: "konnecti
280
284
  ]), 1032, ["discount-code", "validate-discount-code", "total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice", "prev-callback"]);
281
285
  };
282
286
  }
283
- }), Ze = /* @__PURE__ */ fe(zo, [["__scopeId", "data-v-d005e08c"]]), Yo = (n) => (at("data-v-69fe83d8"), n = n(), it(), n), Qo = { class: "konnectio-room-config-option" }, Xo = { key: 0 }, Zo = { class: "konnectio-selected-room-config" }, el = { class: "konnectio-selected-room-config-people" }, tl = { key: 0 }, ol = { class: "konnectio-selected-room-config-price" }, ll = /* @__PURE__ */ Yo(() => /* @__PURE__ */ a("span", null, null, -1)), nl = /* @__PURE__ */ ee({
287
+ }), Ze = /* @__PURE__ */ fe(Xo, [["__scopeId", "data-v-3b5fb922"]]), Zo = (n) => (at("data-v-69fe83d8"), n = n(), it(), n), el = { class: "konnectio-room-config-option" }, tl = { key: 0 }, ol = { class: "konnectio-selected-room-config" }, ll = { class: "konnectio-selected-room-config-people" }, nl = { key: 0 }, al = { class: "konnectio-selected-room-config-price" }, il = /* @__PURE__ */ Zo(() => /* @__PURE__ */ a("span", null, null, -1)), sl = /* @__PURE__ */ ee({
284
288
  __name: "RoomConfigField",
285
289
  props: {
286
290
  modelValue: {},
@@ -291,71 +295,71 @@ const qo = { key: 0 }, Go = { key: 1 }, Wo = { key: 0 }, xo = { class: "konnecti
291
295
  },
292
296
  emits: ["update:modelValue"],
293
297
  setup(n, { emit: l }) {
294
- const { t } = ie(), { currency: o } = Z(Ce()), i = l, s = n;
295
- function p(c) {
296
- i("update:modelValue", c);
298
+ const { t } = ie(), { currency: o } = Z(Pe()), i = l, s = n;
299
+ function p(u) {
300
+ i("update:modelValue", u);
297
301
  }
298
302
  const m = x({
299
303
  get: () => s.modelValue,
300
- set: (c) => p(c)
304
+ set: (u) => p(u)
301
305
  });
302
- return (c, r) => (d(), P(Re, {
306
+ return (u, r) => (d(), A(Me, {
303
307
  modelValue: m.value,
304
- "onUpdate:modelValue": r[0] || (r[0] = (u) => m.value = u),
305
- label: c.label,
308
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => m.value = c),
309
+ label: u.label,
306
310
  placeholder: "Select guest configuration",
307
311
  labelKey: "label",
308
312
  valueKey: "value",
309
313
  "icon-placement": "label",
310
- options: c.options,
311
- readonly: c.readonly,
312
- required: c.required,
314
+ options: u.options,
315
+ readonly: u.readonly,
316
+ required: u.required,
313
317
  searchable: !1
314
318
  }, {
315
- option: T(({ data: u }) => [
316
- a("span", Qo, [
319
+ option: w(({ data: c }) => [
320
+ a("span", el, [
317
321
  a("div", null, [
318
322
  y(W, {
319
323
  icon: "male",
320
324
  type: "fas",
321
325
  color: "font"
322
326
  }),
323
- a("span", null, h(`${u.adults}`), 1),
324
- u.children > 0 ? (d(), v("span", Xo, [
327
+ a("span", null, v(`${c.adults}`), 1),
328
+ c.children > 0 ? (d(), h("span", tl, [
325
329
  y(W, {
326
330
  icon: "child",
327
331
  type: "fas",
328
332
  color: "font"
329
333
  }),
330
- a("span", null, h(`${u.children}`), 1)
334
+ a("span", null, v(`${c.children}`), 1)
331
335
  ])) : _("", !0)
332
336
  ]),
333
- a("span", null, h(`(${e(ne)(u.price, e(o))})`), 1)
337
+ a("span", null, v(`(${e(ne)(c.price, e(o))})`), 1)
334
338
  ])
335
339
  ]),
336
- "selected-option": T(({ data: u }) => [
337
- a("div", Zo, [
338
- a("div", el, [
340
+ "selected-option": w(({ data: c }) => [
341
+ a("div", ol, [
342
+ a("div", ll, [
339
343
  a("div", null, [
340
344
  _("", !0),
341
- a("span", null, h(`${u.adults} ${u.adults === 1 ? e(t)("general.adult") : e(t)("general.adults")}`), 1)
345
+ a("span", null, v(`${c.adults} ${c.adults === 1 ? e(t)("general.adult") : e(t)("general.adults")}`), 1)
342
346
  ]),
343
- u.children > 0 ? (d(), v("div", tl, [
347
+ c.children > 0 ? (d(), h("div", nl, [
344
348
  _("", !0),
345
- a("span", null, h(`& ${u.children} ${u.children === 1 ? e(t)("general.child") : e(t)("general.children")}`), 1)
349
+ a("span", null, v(`& ${c.children} ${c.children === 1 ? e(t)("general.child") : e(t)("general.children")}`), 1)
346
350
  ])) : _("", !0)
347
351
  ]),
348
- a("div", ol, [
349
- ll,
350
- tt(" " + h(`(${e(ne)(u.price, e(o))})`), 1)
352
+ a("div", al, [
353
+ il,
354
+ tt(" " + v(`(${e(ne)(c.price, e(o))})`), 1)
351
355
  ])
352
356
  ])
353
357
  ]),
354
358
  _: 1
355
359
  }, 8, ["modelValue", "label", "options", "readonly", "required"]));
356
360
  }
357
- }), al = /* @__PURE__ */ fe(nl, [["__scopeId", "data-v-69fe83d8"]]), il = { class: "konnectio-availability-listing-selection" }, sl = { key: 1 }, rl = { class: "konnectio-listing-config-body" }, dl = { class: "konnectio-listing-units-body" };
358
- const cl = /* @__PURE__ */ ee({
361
+ }), rl = /* @__PURE__ */ fe(sl, [["__scopeId", "data-v-69fe83d8"]]), dl = { class: "konnectio-availability-listing-selection" }, ul = { key: 1 }, cl = { class: "konnectio-listing-config-body" }, pl = { class: "konnectio-listing-units-body" };
362
+ const ml = /* @__PURE__ */ ee({
359
363
  __name: "Hotel",
360
364
  props: {
361
365
  room: {},
@@ -373,7 +377,7 @@ const cl = /* @__PURE__ */ ee({
373
377
  const s = x(() => t.room.rates.map((k) => ({
374
378
  label: k.name,
375
379
  value: k.id
376
- }))), { hideAvailableRoomAmount: p, autoSelectRateId: m } = Z(Ce()), { roomSelect: c } = Z(ye()), { addToCart: r, removeFromCart: u } = At(), f = (k, D) => t.room.rates.find((B) => B.id === k)?.occupantRates.find((B) => B.index === D), V = x(() => t.room.rates.every((k) => k.isBreakfastIncluded === !0)), w = (k, D) => f(k, D) ? f(k, D)?.rooms : null, C = (k) => t.room.rates.length > 0 ? t.room.rates.find((D) => D.id === k)?.occupantRates.map((D) => ({
380
+ }))), { hideAvailableRoomAmount: p, autoSelectRateId: m } = Z(Pe()), { roomSelect: u } = Z(ve()), { addToCart: r, removeFromCart: c } = At(), f = (k, D) => t.room.rates.find((B) => B.id === k)?.occupantRates.find((B) => B.index === D), $ = x(() => t.room.rates.every((k) => k.isBreakfastIncluded === !0)), T = (k, D) => f(k, D) ? f(k, D)?.rooms : null, C = (k) => t.room.rates.length > 0 ? t.room.rates.find((D) => D.id === k)?.occupantRates.map((D) => ({
377
381
  value: D.index,
378
382
  price: D.totalPrice,
379
383
  adults: D.adultsCount,
@@ -412,23 +416,23 @@ const cl = /* @__PURE__ */ ee({
412
416
  });
413
417
  const E = x(() => JSON.parse(JSON.stringify(o.value)));
414
418
  return Ee(E, (k, D) => {
415
- D.length > 0 && k.forEach((B, J) => {
419
+ D.length > 0 && k.forEach((B, z) => {
416
420
  B.config.forEach((R, Y) => {
417
- const L = R.units, se = D[J].config[Y].units;
418
- L !== se && (L > se ? (o.value[J].config[Y].addons.push({}), r({
421
+ const L = R.units, se = D[z].config[Y].units;
422
+ L !== se && (L > se ? (o.value[z].config[Y].addons.push({}), r({
419
423
  id: t.room.id,
420
424
  name: t.room.title,
421
- value: t.room.rates[J].rackRate
422
- })) : (o.value[J].config[Y].addons.pop(), u({
425
+ value: t.room.rates[z].rackRate
426
+ })) : (o.value[z].config[Y].addons.pop(), c({
423
427
  id: t.room.id,
424
428
  name: t.room.title,
425
- value: t.room.rates[J].rackRate
429
+ value: t.room.rates[z].rackRate
426
430
  })));
427
431
  });
428
432
  });
429
433
  }, { deep: !0 }), Ee(o, () => {
430
- c.value[t.room.id] = o.value;
431
- }, { deep: !0 }), (k, D) => (d(), P(Le, {
434
+ u.value[t.room.id] = o.value;
435
+ }, { deep: !0 }), (k, D) => (d(), A(Re, {
432
436
  type: "hotel",
433
437
  "listing-id": k.room.id,
434
438
  gallery: k.room.images,
@@ -437,15 +441,15 @@ const cl = /* @__PURE__ */ ee({
437
441
  layout: k.layout,
438
442
  facilities: k.room.facilities,
439
443
  "prices-from": k.room.pricesFrom,
440
- "includes-breakfast": V.value
444
+ "includes-breakfast": $.value
441
445
  }, {
442
- action: T(() => [
443
- a("div", il, [
444
- (d(!0), v(F, null, G(o.value, (B, J) => (d(), v("div", {
446
+ action: w(() => [
447
+ a("div", dl, [
448
+ (d(!0), h(F, null, G(o.value, (B, z) => (d(), h("div", {
445
449
  key: B.id,
446
450
  class: "konnectio-hotel-room"
447
451
  }, [
448
- I.value ? (d(), P(Re, {
452
+ I.value ? (d(), A(Me, {
449
453
  key: 0,
450
454
  modelValue: B.id,
451
455
  "onUpdate:modelValue": (R) => B.id = R,
@@ -453,22 +457,22 @@ const cl = /* @__PURE__ */ ee({
453
457
  placeholder: e(l)("hotel.chooseARoomVariant"),
454
458
  options: s.value,
455
459
  searchable: !1,
456
- onChanged: (R) => M(J, R)
460
+ onChanged: (R) => M(z, R)
457
461
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options", "onChanged"])) : _("", !0),
458
- B.id ? (d(), v("div", sl, [
459
- (d(!0), v(F, null, G(k.room.rates, ({
462
+ B.id ? (d(), h("div", ul, [
463
+ (d(!0), h(F, null, G(k.room.rates, ({
460
464
  id: R,
461
465
  maximumOccupants: Y
462
- }) => (d(), v("div", {
466
+ }) => (d(), h("div", {
463
467
  key: R,
464
468
  class: "konnectio-listing-action-selective-i"
465
469
  }, [
466
- B.id === R ? (d(!0), v(F, { key: 0 }, G(B.config, (L, se) => (d(), v("div", {
470
+ B.id === R ? (d(!0), h(F, { key: 0 }, G(B.config, (L, se) => (d(), h("div", {
467
471
  key: se,
468
472
  class: "konnectio-listing-action-selective"
469
473
  }, [
470
- a("ul", rl, [
471
- y(al, {
474
+ a("ul", cl, [
475
+ y(rl, {
472
476
  modelValue: L.id,
473
477
  "onUpdate:modelValue": (te) => L.id = te,
474
478
  icon: "male",
@@ -479,17 +483,17 @@ const cl = /* @__PURE__ */ ee({
479
483
  readonly: !(C(R).length > 1)
480
484
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
481
485
  ]),
482
- a("ul", dl, [
486
+ a("ul", pl, [
483
487
  y(ot, {
484
488
  modelValue: L.units,
485
489
  "onUpdate:modelValue": (te) => L.units = te,
486
- description: e(p) ? void 0 : `${e(l)("booking.availability.availableUnits")}: ${w(B.id, L.id)}`,
490
+ description: e(p) ? void 0 : `${e(l)("booking.availability.availableUnits")}: ${T(B.id, L.id)}`,
487
491
  icon: "house",
488
492
  "icon-type": "fas",
489
493
  "icon-placement": "label",
490
494
  label: e(l)("booking.availability.units"),
491
495
  minValue: 0,
492
- "max-value": w(R, L.id) || 1 / 0
496
+ "max-value": T(R, L.id) || 1 / 0
493
497
  }, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
494
498
  ]),
495
499
  _("", !0)
@@ -502,7 +506,7 @@ const cl = /* @__PURE__ */ ee({
502
506
  _: 1
503
507
  }, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
504
508
  }
505
- }), ul = /* @__PURE__ */ fe(cl, [["__scopeId", "data-v-102e8e63"]]), pl = { class: "konnectio-template-side-panel" }, ml = { class: "konnectio-template-side-panel-listings" }, fl = /* @__PURE__ */ ee({
509
+ }), fl = /* @__PURE__ */ fe(ml, [["__scopeId", "data-v-102e8e63"]]), hl = { class: "konnectio-template-side-panel" }, vl = { class: "konnectio-template-side-panel-listings" }, yl = /* @__PURE__ */ ee({
506
510
  __name: "Template",
507
511
  props: {
508
512
  title: {},
@@ -512,32 +516,32 @@ const cl = /* @__PURE__ */ ee({
512
516
  callback: { type: Function }
513
517
  },
514
518
  setup(n) {
515
- const { t: l } = ie(), { templateID: t, roomGroupID: o, selectionHasNoAddons: i } = Z(ye()), { currency: s } = Z(Ce()), { clearRoomSelection: p } = ye(), m = n, c = ae(!0), r = x(() => {
516
- function f(V, w) {
517
- return c.value === !0 ? V.extraPrice > w.extraPrice ? -1 : 1 : V.extraPrice > w.extraPrice ? 1 : -1;
519
+ const { t: l } = ie(), { templateID: t, roomGroupID: o, selectionHasNoAddons: i } = Z(ve()), { currency: s } = Z(Pe()), { clearRoomSelection: p } = ve(), m = n, u = ae(!0), r = x(() => {
520
+ function f($, T) {
521
+ return u.value === !0 ? $.extraPrice > T.extraPrice ? -1 : 1 : $.extraPrice > T.extraPrice ? 1 : -1;
518
522
  }
519
523
  return m.roomGroups?.slice().sort(f);
520
524
  });
521
- function u(f) {
525
+ function c(f) {
522
526
  t.value = m.templateId, o.value = f, p(), m.hideAddons === !0 || i.value ? m.callback(2) : m.callback(1);
523
527
  }
524
- return (f, V) => (d(), P(No, {
528
+ return (f, $) => (d(), A(Ro, {
525
529
  title: f.title,
526
530
  subtitle: e(l)("booking.availability.selectATemplateRoom")
527
531
  }, {
528
- default: T(() => [
529
- a("div", pl, [
530
- a("div", ml, [
531
- (d(!0), v(F, null, G(r.value, ({
532
- id: w,
532
+ default: w(() => [
533
+ a("div", hl, [
534
+ a("div", vl, [
535
+ (d(!0), h(F, null, G(r.value, ({
536
+ id: T,
533
537
  title: C,
534
538
  description: I,
535
539
  images: M,
536
540
  facilities: N,
537
541
  extraPrice: E
538
- }) => (d(), P(Le, {
539
- key: w,
540
- "listing-id": w,
542
+ }) => (d(), A(Re, {
543
+ key: T,
544
+ "listing-id": T,
541
545
  name: C,
542
546
  description: I,
543
547
  facilities: N,
@@ -545,10 +549,10 @@ const cl = /* @__PURE__ */ ee({
545
549
  "includes-breakfast": !1,
546
550
  "hide-info-button": !0
547
551
  }, {
548
- action: T(() => [
552
+ action: w(() => [
549
553
  a("div", null, [
550
554
  y(me, {
551
- onClickEvent: (k) => u(w),
555
+ onClickEvent: (k) => c(T),
552
556
  label: `${e(l)("booking.availability.selectThisRoom")} (${e(ne)(E, e(s))})`,
553
557
  "full-width": ""
554
558
  }, null, 8, ["onClickEvent", "label"])
@@ -562,7 +566,7 @@ const cl = /* @__PURE__ */ ee({
562
566
  _: 1
563
567
  }, 8, ["title", "subtitle"]));
564
568
  }
565
- }), It = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-7424de30"]]), hl = { class: "konnectio-template-select-package" }, vl = /* @__PURE__ */ ee({
569
+ }), It = /* @__PURE__ */ fe(yl, [["__scopeId", "data-v-7424de30"]]), gl = { class: "konnectio-template-select-package" }, bl = /* @__PURE__ */ ee({
566
570
  __name: "Template",
567
571
  props: {
568
572
  id: {},
@@ -576,7 +580,7 @@ const cl = /* @__PURE__ */ ee({
576
580
  },
577
581
  setup(n) {
578
582
  const { t: l } = ie(), t = n, o = x(() => t.roomGroups.reduce(
579
- (c, r) => c < r.extraPrice ? c : r.extraPrice,
583
+ (u, r) => u < r.extraPrice ? u : r.extraPrice,
580
584
  1 / 0
581
585
  )), i = x(() => {
582
586
  if (t.image)
@@ -590,22 +594,22 @@ const cl = /* @__PURE__ */ ee({
590
594
  function p() {
591
595
  s.value = !0;
592
596
  }
593
- function m(c) {
594
- t.callback(c), s.value = !1;
597
+ function m(u) {
598
+ t.callback(u), s.value = !1;
595
599
  }
596
- return (c, r) => (d(), P(Le, {
600
+ return (u, r) => (d(), A(Re, {
597
601
  type: "template",
598
- "listing-id": c.id,
599
- name: c.name,
600
- description: c.description,
602
+ "listing-id": u.id,
603
+ name: u.name,
604
+ description: u.description,
601
605
  gallery: i.value,
602
606
  layout: e(Dt).Template,
603
607
  "includes-breakfast": !1,
604
608
  "hide-info-button": !1,
605
609
  "prices-from": o.value
606
610
  }, {
607
- action: T(() => [
608
- a("div", hl, [
611
+ action: w(() => [
612
+ a("div", gl, [
609
613
  y(me, {
610
614
  onClickEvent: p,
611
615
  label: e(l)("booking.availability.selectPackage"),
@@ -613,21 +617,21 @@ const cl = /* @__PURE__ */ ee({
613
617
  }, null, 8, ["label"])
614
618
  ])
615
619
  ]),
616
- default: T(() => [
620
+ default: w(() => [
617
621
  y(It, {
618
622
  modelValue: s.value,
619
- "onUpdate:modelValue": r[0] || (r[0] = (u) => s.value = u),
620
- title: c.name,
621
- "template-id": c.id,
622
- "room-groups": c.roomGroups,
623
- "hide-addons": c.hideAddons,
623
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => s.value = c),
624
+ title: u.name,
625
+ "template-id": u.id,
626
+ "room-groups": u.roomGroups,
627
+ "hide-addons": u.hideAddons,
624
628
  callback: m
625
629
  }, null, 8, ["modelValue", "title", "template-id", "room-groups", "hide-addons"])
626
630
  ]),
627
631
  _: 1
628
632
  }, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
629
633
  }
630
- }), yl = { class: "konnectio-special-offer-availability" }, gl = { class: "konnectio-special-offer-availability-button" }, bl = /* @__PURE__ */ ee({
634
+ }), kl = { class: "konnectio-special-offer-availability" }, _l = { class: "konnectio-special-offer-availability-button" }, Vl = /* @__PURE__ */ ee({
631
635
  __name: "SpecialOffer",
632
636
  props: {
633
637
  id: {},
@@ -641,16 +645,16 @@ const cl = /* @__PURE__ */ ee({
641
645
  callback: { type: Function }
642
646
  },
643
647
  setup(n) {
644
- const { t: l } = ie(), { updateDates: t } = we(), { display: o } = St(), i = n, s = ae([]), p = x(() => Te(i.fromDate, i.toDate) === 1), m = x(() => [{
648
+ const { t: l } = ie(), { updateDates: t } = Ce(), { display: o } = St(), i = n, s = ae([]), p = x(() => we(i.fromDate, i.toDate) === 1), m = x(() => [{
645
649
  large: i.image.url,
646
650
  medium: i.image.url,
647
651
  thumb: i.image.url,
648
652
  url: i.image.url
649
- }]), c = ae(!1);
653
+ }]), u = ae(!1);
650
654
  function r(f) {
651
- i.callback(f), c.value = !1;
655
+ i.callback(f), u.value = !1;
652
656
  }
653
- function u() {
657
+ function c() {
654
658
  s.value.length > 0 ? t(s.value[0], s.value[1]) : o({
655
659
  message: l("alert.error.selectDates"),
656
660
  type: "error"
@@ -658,7 +662,7 @@ const cl = /* @__PURE__ */ ee({
658
662
  }
659
663
  return st(() => {
660
664
  p.value && (s.value = [new Date(i.fromDate), new Date(i.toDate)]);
661
- }), (f, V) => (d(), P(Le, {
665
+ }), (f, $) => (d(), A(Re, {
662
666
  type: "template",
663
667
  "listing-id": f.id,
664
668
  name: f.name,
@@ -670,11 +674,11 @@ const cl = /* @__PURE__ */ ee({
670
674
  "to-date": f.toDate,
671
675
  "from-date": f.fromDate
672
676
  }, {
673
- action: T(() => [
674
- a("div", yl, [
677
+ action: w(() => [
678
+ a("div", kl, [
675
679
  y(Ht, {
676
680
  modelValue: s.value,
677
- "onUpdate:modelValue": V[0] || (V[0] = (w) => s.value = w),
681
+ "onUpdate:modelValue": $[0] || ($[0] = (T) => s.value = T),
678
682
  label: e(l)("availability.checkInOut"),
679
683
  placeholder: e(l)("booking.availability.selectDates"),
680
684
  "icon-type": "fas",
@@ -686,18 +690,18 @@ const cl = /* @__PURE__ */ ee({
686
690
  readonly: p.value,
687
691
  range: ""
688
692
  }, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
689
- a("div", gl, [
693
+ a("div", _l, [
690
694
  y(me, {
691
695
  label: e(l)("availability.buttonLabel"),
692
- onClick: Pt(u, ["prevent"])
696
+ onClick: Pt(c, ["prevent"])
693
697
  }, null, 8, ["label"])
694
698
  ])
695
699
  ])
696
700
  ]),
697
- default: T(() => [
701
+ default: w(() => [
698
702
  y(It, {
699
- modelValue: c.value,
700
- "onUpdate:modelValue": V[1] || (V[1] = (w) => c.value = w),
703
+ modelValue: u.value,
704
+ "onUpdate:modelValue": $[1] || ($[1] = (T) => u.value = T),
701
705
  title: f.name,
702
706
  "template-id": f.id,
703
707
  roomGroups: f.roomGroups,
@@ -732,9 +736,9 @@ const cl = /* @__PURE__ */ ee({
732
736
  const s = ae(o.modelValue);
733
737
  return Ee(s, (p) => {
734
738
  i(p);
735
- }), (p, m) => (d(), P(Ht, {
739
+ }), (p, m) => (d(), A(Ht, {
736
740
  modelValue: s.value,
737
- "onUpdate:modelValue": m[0] || (m[0] = (c) => s.value = c),
741
+ "onUpdate:modelValue": m[0] || (m[0] = (u) => s.value = u),
738
742
  type: "time",
739
743
  label: p.label,
740
744
  id: p.id,
@@ -749,7 +753,7 @@ const cl = /* @__PURE__ */ ee({
749
753
  "max-time": p.maxTime
750
754
  }, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly", "min-time", "max-time"]));
751
755
  }
752
- }), kl = { style: { display: "flex", "align-items": "baseline" } }, _l = /* @__PURE__ */ ee({
756
+ }), $l = { style: { display: "flex", "align-items": "baseline" } }, wl = /* @__PURE__ */ ee({
753
757
  __name: "CountryField",
754
758
  props: {
755
759
  modelValue: {},
@@ -769,9 +773,9 @@ const cl = /* @__PURE__ */ ee({
769
773
  get: () => i.modelValue,
770
774
  set: (m) => s(m)
771
775
  });
772
- return (m, c) => (d(), P(Re, {
776
+ return (m, u) => (d(), A(Me, {
773
777
  modelValue: p.value,
774
- "onUpdate:modelValue": c[0] || (c[0] = (r) => p.value = r),
778
+ "onUpdate:modelValue": u[0] || (u[0] = (r) => p.value = r),
775
779
  label: m.label,
776
780
  placeholder: e(t)("booking.reservation.countryPlaceholder"),
777
781
  labelKey: "name",
@@ -779,24 +783,24 @@ const cl = /* @__PURE__ */ ee({
779
783
  options: m.options,
780
784
  required: m.required
781
785
  }, {
782
- option: T(({ data: r }) => [
786
+ option: w(({ data: r }) => [
783
787
  a("i", {
784
788
  class: Be(["konnectio-flag-icon", r.iso])
785
789
  }, null, 2),
786
- a("span", null, h(r.name), 1)
790
+ a("span", null, v(r.name), 1)
787
791
  ]),
788
- "selected-option": T(({ data: r }) => [
789
- a("div", kl, [
792
+ "selected-option": w(({ data: r }) => [
793
+ a("div", $l, [
790
794
  a("i", {
791
795
  class: Be(["konnectio-flag-icon", r.iso])
792
796
  }, null, 2),
793
- a("span", null, h(r.name), 1)
797
+ a("span", null, v(r.name), 1)
794
798
  ])
795
799
  ]),
796
800
  _: 1
797
801
  }, 8, ["modelValue", "label", "placeholder", "options", "required"]));
798
802
  }
799
- }), Vl = /* @__PURE__ */ fe(_l, [["__scopeId", "data-v-1462612d"]]), $l = /* @__PURE__ */ ee({
803
+ }), Tl = /* @__PURE__ */ fe(wl, [["__scopeId", "data-v-1462612d"]]), Cl = /* @__PURE__ */ ee({
800
804
  __name: "NameField",
801
805
  props: {
802
806
  modelValue: {},
@@ -825,10 +829,10 @@ const cl = /* @__PURE__ */ ee({
825
829
  Ee(p, (r) => {
826
830
  o("update:title", r);
827
831
  });
828
- const { t: c } = ie();
832
+ const { t: u } = ie();
829
833
  return st(() => {
830
834
  t.modelValue && (s.value = t.modelValue), t.title && (p.value = t.title);
831
- }), (r, u) => (d(), P(go, {
835
+ }), (r, c) => (d(), A(ko, {
832
836
  label: r.label,
833
837
  id: e(i),
834
838
  required: r.required,
@@ -836,40 +840,40 @@ const cl = /* @__PURE__ */ ee({
836
840
  readonly: r.readonly,
837
841
  limit: r.limit
838
842
  }, {
839
- default: T(() => [
843
+ default: w(() => [
840
844
  a("div", {
841
845
  class: Be([
842
846
  "konnectio-name-input",
843
847
  { "no-title": r.excludeTitle }
844
848
  ])
845
849
  }, [
846
- r.excludeTitle ? _("", !0) : (d(), P(Re, {
850
+ r.excludeTitle ? _("", !0) : (d(), A(Me, {
847
851
  key: 0,
848
852
  modelValue: p.value,
849
- "onUpdate:modelValue": u[0] || (u[0] = (f) => p.value = f),
853
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => p.value = f),
850
854
  id: e(vt)(),
851
855
  icon: r.icon,
852
856
  "icon-color": r.iconColor,
853
857
  "icon-type": r.iconType,
854
858
  options: [
855
859
  {
856
- label: e(c)("booking.reservation.noNameTitle"),
860
+ label: e(u)("booking.reservation.noNameTitle"),
857
861
  value: 1
858
862
  },
859
863
  {
860
- label: e(c)("booking.reservation.nameTitleMr"),
864
+ label: e(u)("booking.reservation.nameTitleMr"),
861
865
  value: 2
862
866
  },
863
867
  {
864
- label: e(c)("booking.reservation.nameTitleMs"),
868
+ label: e(u)("booking.reservation.nameTitleMs"),
865
869
  value: 3
866
870
  },
867
871
  {
868
- label: e(c)("booking.reservation.nameTitleMrs"),
872
+ label: e(u)("booking.reservation.nameTitleMrs"),
869
873
  value: 4
870
874
  },
871
875
  {
872
- label: e(c)("booking.reservation.nameTitleDr"),
876
+ label: e(u)("booking.reservation.nameTitleDr"),
873
877
  value: 5
874
878
  }
875
879
  ],
@@ -878,9 +882,9 @@ const cl = /* @__PURE__ */ ee({
878
882
  "input-style": r.inputStyle,
879
883
  searchable: !1
880
884
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
881
- y(ue, {
885
+ y(ce, {
882
886
  modelValue: s.value,
883
- "onUpdate:modelValue": u[1] || (u[1] = (f) => s.value = f),
887
+ "onUpdate:modelValue": c[1] || (c[1] = (f) => s.value = f),
884
888
  type: "text",
885
889
  name: "name",
886
890
  autocomplete: "name",
@@ -892,7 +896,7 @@ const cl = /* @__PURE__ */ ee({
892
896
  required: r.required,
893
897
  readonly: r.readonly,
894
898
  limit: r.limit,
895
- onInput: u[2] || (u[2] = (f) => m()),
899
+ onInput: c[2] || (c[2] = (f) => m()),
896
900
  "input-style": r.inputStyle
897
901
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
898
902
  ], 2)
@@ -900,63 +904,66 @@ const cl = /* @__PURE__ */ ee({
900
904
  _: 1
901
905
  }, 8, ["label", "id", "required", "readonly", "limit"]));
902
906
  }
903
- }), Tl = /* @__PURE__ */ fe($l, [["__scopeId", "data-v-7c44829d"]]), wl = { class: "hotel-skeleton" }, Cl = { class: "hotel-skeleton-content" }, Pl = { class: "hotel-skeleton-sidebar" }, Al = /* @__PURE__ */ ee({
907
+ }), Pl = /* @__PURE__ */ fe(Cl, [["__scopeId", "data-v-7c44829d"]]), Al = { class: "hotel-skeleton" }, Dl = { class: "hotel-skeleton-content" }, Sl = { class: "hotel-skeleton-sidebar" }, Hl = /* @__PURE__ */ ee({
904
908
  __name: "HotelSkeleton",
905
909
  setup(n) {
906
- return (l, t) => (d(), v("div", wl, [
907
- a("div", Cl, [
908
- y(Io, { hotel: "" }),
909
- y(wo)
910
+ return (l, t) => (d(), h("div", Al, [
911
+ a("div", Dl, [
912
+ y(Bo, { hotel: "" }),
913
+ y(Po)
910
914
  ]),
911
- a("div", Pl, [
912
- y(Co)
915
+ a("div", Sl, [
916
+ y(Ao)
913
917
  ])
914
918
  ]));
915
919
  }
916
- }), Dl = /* @__PURE__ */ fe(Al, [["__scopeId", "data-v-1bb21da4"]]), Sl = (n) => (at("data-v-b6142cc2"), n = n(), it(), n), Hl = { id: "booking-availability-container" }, Il = { id: "booking-availability-controls" };
917
- const El = { key: 1 }, Bl = { key: 0 }, Nl = {
920
+ }), Il = /* @__PURE__ */ fe(Hl, [["__scopeId", "data-v-1bb21da4"]]), El = (n) => (at("data-v-4ef19623"), n = n(), it(), n), Bl = { id: "booking-availability-container" }, Nl = { id: "booking-availability-controls" };
921
+ const Ml = { key: 1 }, Rl = { key: 0 }, Ll = {
918
922
  key: 0,
919
923
  id: "booking-availability-packages"
920
- }, Ml = {
924
+ }, Ul = {
921
925
  key: 0,
922
926
  class: "konnectio-hotel-availability-title"
923
- }, Rl = { id: "booking-availability-packages-wrapper" }, Ll = { key: 1 }, Ul = {
927
+ }, Fl = { id: "booking-availability-packages-wrapper" }, Ol = { key: 1 }, jl = {
924
928
  key: 0,
925
929
  class: "konnectio-hotel-availability-title"
926
- }, Fl = { id: "konnectio-listings" }, Ol = {
930
+ }, ql = { id: "konnectio-listings" }, Gl = {
927
931
  key: 2,
928
932
  id: "booking-availability-packages"
929
- }, jl = { class: "konnectio-hotel-availability-title" }, ql = { id: "booking-availability-packages-wrapper" }, Gl = {
933
+ }, Wl = { class: "konnectio-hotel-availability-title" }, xl = { id: "booking-availability-packages-wrapper" }, Kl = {
930
934
  key: 3,
931
935
  id: "booking-availability-no-listings",
932
936
  class: "konnectio-panel"
933
- }, Wl = {
937
+ }, Jl = {
934
938
  key: 1,
935
939
  id: "booking-availability-no-listings"
936
- }, xl = {
940
+ }, zl = {
937
941
  key: 2,
938
942
  id: "reservation-availability-next-dates"
939
- }, Kl = { class: "konnectio-hotel-availability-title" }, Jl = { class: "reservation-special-offers-grid" }, zl = ["title"];
940
- const Yl = {
943
+ }, Yl = { class: "konnectio-hotel-availability-title" }, Ql = { class: "reservation-special-offers-grid" }, Xl = ["title"];
944
+ const Zl = {
941
945
  key: 2,
942
946
  class: "konnectio-panel"
943
- }, Ql = {
947
+ }, en = {
944
948
  key: 3,
945
949
  class: "konnectio-listing-loading"
946
- }, Xl = { class: "konnectio-panel" }, Zl = {
950
+ }, tn = { class: "konnectio-panel" }, on = {
947
951
  key: 0,
948
952
  id: "konnectio-hotel-addons"
949
953
  };
950
- const en = { class: "konnectio-event-addons-price" }, tn = { key: 1 }, on = { class: "konnectio-table-addons-information" }, ln = { class: "konnectio-table-addons-option" }, nn = {
954
+ const ln = { class: "konnectio-event-addons-price" }, nn = { key: 1 }, an = { class: "konnectio-table-addons-information" }, sn = { class: "konnectio-table-addons-option" }, rn = {
951
955
  key: 1,
952
956
  id: "konnectio-hotel-addons"
953
- }, an = { class: "konnectio-table with-lines" };
954
- const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-event-addons-price" }, null, -1)), rn = { class: "konnectio-table-addons-information" }, dn = { class: "konnectio-table-addons-option" }, cn = { class: "konnectio-panel" }, un = { key: 0 }, pn = { key: 1 }, mn = { class: "konnectio-split-inputs" }, fn = /* @__PURE__ */ ee({
957
+ }, dn = { class: "konnectio-table with-lines" };
958
+ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-event-addons-price" }, null, -1)), cn = { class: "konnectio-table-addons-information" }, pn = { class: "konnectio-table-addons-option" }, mn = { class: "konnectio-panel" }, fn = { key: 0 }, hn = { key: 1 }, vn = {
959
+ key: 1,
960
+ class: "konnectio-show-on-mobile"
961
+ }, yn = { class: "konnectio-split-inputs" }, gn = /* @__PURE__ */ ee({
955
962
  name: "HotelLayout",
956
963
  __name: "Hotel",
957
964
  props: {
958
965
  accessToken: {},
959
- headerLayout: { default: bo.Minimal },
966
+ headerLayout: { default: _o.Minimal },
960
967
  onlyShow: { default: "everything" },
961
968
  hideAddons: { default: "no" },
962
969
  disableDefaultLocation: { default: "no" },
@@ -964,17 +971,17 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
964
971
  styling: {}
965
972
  },
966
973
  setup(n) {
967
- const l = ro(() => import("./_-Dshgs9--.js")), t = n, { t: o } = ie(), {
974
+ const l = co(() => import("./_-5d7Am3XD.js")), t = n, { t: o } = ie(), {
968
975
  currentLocation: i,
969
976
  templateID: s,
970
977
  templateAddons: p,
971
978
  countries: m,
972
- areListingsLoading: c,
979
+ areListingsLoading: u,
973
980
  isPaymentLoading: r,
974
- isReservationFormFilled: u,
981
+ isReservationFormFilled: c,
975
982
  travelingFor: f,
976
- arrivalTime: V,
977
- departureTime: w,
983
+ arrivalTime: $,
984
+ departureTime: T,
978
985
  name: C,
979
986
  nameTitle: I,
980
987
  email: M,
@@ -983,53 +990,55 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
983
990
  postal: k,
984
991
  city: D,
985
992
  address: B,
986
- country: J,
993
+ country: z,
987
994
  remark: R,
988
995
  allergies: Y,
989
996
  roomSelect: L,
990
997
  roomDisplay: se,
991
998
  hasValidRoomSelection: te,
992
- availabilityData: j,
993
- selectionHasNoAddons: he,
999
+ availabilityData: q,
1000
+ selectionHasNoAddons: ye,
994
1001
  isAvailabilityDataAvailable: ge,
995
1002
  getSelectedPackageRoom: be,
996
- selectedPackage: Ue,
1003
+ selectedPackage: Le,
997
1004
  isSearchOutdated: dt,
998
- currentChildren: Fe,
999
- isTemplateReservation: Pe
1000
- } = Z(ye()), {
1001
- adults: ve,
1002
- children: ke,
1003
- location: X,
1004
- arrivalDate: z,
1005
- departureDate: Ve
1006
- } = Z(we()), { isValidHotelId: O, updateDates: Oe } = we(), {
1007
- currency: $e,
1008
- arrivalEarliest: Ae,
1009
- arrivalLatest: je,
1010
- departureEarliest: re,
1011
- departureLatest: qe,
1012
- enableTracking: ct,
1013
- hideArrivalDepartureInputs: Rt,
1005
+ currentChildren: Ue,
1006
+ isTemplateReservation: Ae,
1007
+ newsMails: he
1008
+ } = Z(ve()), {
1009
+ adults: ke,
1010
+ children: Q,
1011
+ location: K,
1012
+ arrivalDate: $e,
1013
+ departureDate: O
1014
+ } = Z(Ce()), { isValidHotelId: Fe, updateDates: Oe } = Ce(), {
1015
+ currency: _e,
1016
+ arrivalEarliest: je,
1017
+ arrivalLatest: re,
1018
+ departureEarliest: qe,
1019
+ departureLatest: ut,
1020
+ enableTracking: Rt,
1021
+ hideArrivalDepartureInputs: Lt,
1014
1022
  disableArrivalUserSelection: Ge,
1015
- disableNamePrefix: Lt,
1023
+ disableNamePrefix: Ut,
1016
1024
  disableDepartureUserSelection: We,
1017
- disableTravelingFor: Ut,
1018
- disableTravelingForBleasure: Ft,
1019
- disableCompanyField: Ot,
1020
- hasPaymentGateway: jt,
1021
- maxAdultAmount: ut,
1025
+ disableTravelingFor: Ft,
1026
+ disableTravelingForBleasure: Ot,
1027
+ disableCompanyField: jt,
1028
+ hasPaymentGateway: qt,
1029
+ maxAdultAmount: ct,
1022
1030
  maxChildAmount: pt,
1023
- defaultAdultAmount: qt,
1024
- defaultChildAmount: Gt
1025
- } = Z(Ce()), { beginCheckout: Wt } = At(), { display: xe } = St(), {
1026
- resetTemplate: xt,
1027
- resetDiscountVoucher: Kt,
1028
- createReservation: Jt,
1029
- fetchMetadata: zt,
1031
+ defaultAdultAmount: Gt,
1032
+ defaultChildAmount: Wt,
1033
+ disableNewsletterSignup: xt
1034
+ } = Z(Pe()), { beginCheckout: Kt } = At(), { display: xe } = St(), {
1035
+ resetTemplate: Jt,
1036
+ resetDiscountVoucher: zt,
1037
+ createReservation: Yt,
1038
+ fetchMetadata: Qt,
1030
1039
  fetchAvailabilityData: mt,
1031
1040
  filterAddons: ft
1032
- } = ye(), Yt = ae(!0), Qt = x(() => [
1041
+ } = ve(), Xt = ae(!0), Zt = x(() => [
1033
1042
  {
1034
1043
  id: "availability",
1035
1044
  label: o("booking.availability.title"),
@@ -1038,8 +1047,7 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1038
1047
  {
1039
1048
  id: "addons",
1040
1049
  label: o("booking.reservation.addons"),
1041
- icon: "shopping-cart",
1042
- hidden: he.value
1050
+ icon: "shopping-cart"
1043
1051
  },
1044
1052
  {
1045
1053
  id: "reservation",
@@ -1055,8 +1063,8 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1055
1063
  label: o("booking.confirmation.title"),
1056
1064
  icon: "calendar-check"
1057
1065
  }
1058
- ]), Xt = x(() => {
1059
- const g = [
1066
+ ]), eo = x(() => {
1067
+ const b = [
1060
1068
  {
1061
1069
  label: o("booking.reservation.business"),
1062
1070
  value: "Business"
@@ -1066,38 +1074,38 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1066
1074
  value: "Pleasure"
1067
1075
  }
1068
1076
  ];
1069
- return Ft.value || g.push({
1077
+ return Ot.value || b.push({
1070
1078
  label: o("booking.reservation.bleasure"),
1071
1079
  value: "Bleasure"
1072
- }), g;
1073
- }), Zt = x(() => {
1074
- const g = j.value.roomGroups.slice();
1075
- function $(K, A) {
1076
- return Yt.value === !0 ? K.pricesFrom > A.pricesFrom ? -1 : 1 : K.pricesFrom > A.pricesFrom ? 1 : -1;
1080
+ }), b;
1081
+ }), to = x(() => {
1082
+ const b = q.value.roomGroups.slice();
1083
+ function V(J, P) {
1084
+ return Xt.value === !0 ? J.pricesFrom > P.pricesFrom ? -1 : 1 : J.pricesFrom > P.pricesFrom ? 1 : -1;
1077
1085
  }
1078
- return g.sort($);
1079
- }), Ke = x(() => t.hideAddons === "yes" || Pe.value && t.hideAddons === "packages" || !Pe.value && t.hideAddons === "rooms");
1080
- function ht(g) {
1081
- Ke.value || he.value ? g(2) : g(), Kt();
1086
+ return b.sort(V);
1087
+ }), Ke = x(() => t.hideAddons === "yes" || Ae.value && t.hideAddons === "packages" || !Ae.value && t.hideAddons === "rooms");
1088
+ function ht(b) {
1089
+ Ke.value || ye.value ? b(2) : b(), zt();
1082
1090
  }
1083
- async function eo(g, $) {
1084
- await Jt(g, $);
1091
+ async function oo(b, V) {
1092
+ await Yt(b, V);
1085
1093
  }
1086
- function to(g) {
1087
- ct.value && Wt(), Ke.value || he.value ? g(2) : g();
1094
+ function lo(b) {
1095
+ Rt.value && Kt(), Ke.value || ye.value ? b(2) : b();
1088
1096
  }
1089
- function oo() {
1090
- const g = _o("history", {
1097
+ function no() {
1098
+ const b = $o("history", {
1091
1099
  removeNullishValues: !0
1092
- }), $ = parseInt(g.a), K = parseInt(g.c), A = parseInt(g.hid), S = parseInt(g.n), b = g.ci, U = g.co, H = g.id;
1100
+ }), V = parseInt(b.a), J = parseInt(b.c), P = parseInt(b.hid), S = parseInt(b.n), g = b.ci, U = b.co, H = b.id;
1093
1101
  let oe = !1;
1094
- if (isNaN($) || ($ > ut.value ? ve.value = ut.value : ve.value = $, ve.value === qt.value && (g.a = void 0)), isNaN(K) || (K > pt.value ? ke.value = pt.value : ke.value = K, ke.value === Gt.value && (g.c = void 0)), isNaN(S) || S > 0 && (g.n = void 0), isNaN(A) || (O(A) ? (X.value = A, oe = !0) : xe({
1102
+ if (isNaN(V) || (V > ct.value ? ke.value = ct.value : ke.value = V, ke.value === Gt.value && (b.a = void 0)), isNaN(J) || (J > pt.value ? Q.value = pt.value : Q.value = J, Q.value === Wt.value && (b.c = void 0)), isNaN(S) || S > 0 && (b.n = void 0), isNaN(P) || (Fe(P) ? (K.value = P, oe = !0) : xe({
1095
1103
  message: o("alert.error.hotelIdNotFound"),
1096
1104
  type: "error"
1097
- })), b && U)
1098
- if (gt(b) && gt(U)) {
1099
- const _e = new Date(b), de = new Date(U);
1100
- _e <= de ? (z.value = _e, Ve.value = de) : (g.ci = void 0, g.co = void 0, xe({
1105
+ })), g && U)
1106
+ if (gt(g) && gt(U)) {
1107
+ const Ve = new Date(g), de = new Date(U);
1108
+ Ve <= de ? ($e.value = Ve, O.value = de) : (b.ci = void 0, b.co = void 0, xe({
1101
1109
  message: o("alert.error.invalidDateRange"),
1102
1110
  type: "error"
1103
1111
  }));
@@ -1106,138 +1114,138 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1106
1114
  message: o("alert.error.wrongDateFormat"),
1107
1115
  type: "error"
1108
1116
  });
1109
- let Q = null;
1110
- H && (Q = H), t.disableDefaultLocation === "yes" && oe === !1 ? (X.value = void 0, i.value = void 0) : mt(Q);
1117
+ let X = null;
1118
+ H && (X = H), t.disableDefaultLocation === "yes" && oe === !1 ? (K.value = void 0, i.value = void 0) : mt(X);
1111
1119
  }
1112
- return (g, $) => (d(), P(ko, { styling: g.styling }, {
1113
- default: T(() => [
1114
- (d(), P(so, { onResolve: oo }, {
1115
- default: T(() => [
1120
+ return (b, V) => (d(), A(Vo, { styling: b.styling }, {
1121
+ default: w(() => [
1122
+ (d(), A(uo, { onResolve: no }, {
1123
+ default: w(() => [
1116
1124
  y(e(l), {
1117
1125
  id: "konnectio-hotel-module",
1118
- "access-token": g.accessToken,
1119
- callback: e(zt)
1126
+ "access-token": b.accessToken,
1127
+ callback: e(Qt)
1120
1128
  }, {
1121
- default: T(() => [
1122
- y(Po, {
1123
- layout: g.headerLayout,
1124
- steps: Qt.value,
1125
- onReset: e(xt)
1129
+ default: w(() => [
1130
+ y(Do, {
1131
+ layout: b.headerLayout,
1132
+ steps: Zt.value,
1133
+ onReset: e(Jt)
1126
1134
  }, {
1127
- availability: T(({ next: K }) => [
1135
+ availability: w(({ next: J }) => [
1128
1136
  y(Ze, null, {
1129
- form: T(() => [
1130
- a("div", Hl, [
1131
- a("div", Il, [
1132
- y(Eo, {
1137
+ form: w(() => [
1138
+ a("div", Bl, [
1139
+ a("div", Nl, [
1140
+ y(No, {
1133
1141
  booking: !0,
1134
- "selected-location": Number(g.selectedLocation),
1135
- "disable-default-location": g.disableDefaultLocation === "yes"
1142
+ "selected-location": Number(b.selectedLocation),
1143
+ "disable-default-location": b.disableDefaultLocation === "yes"
1136
1144
  }, null, 8, ["selected-location", "disable-default-location"])
1137
1145
  ]),
1138
1146
  _("", !0),
1139
- !e(c) && e(ge) ? (d(), v("div", El, [
1140
- e(j).roomGroups.length > 0 || e(j).templates.length > 0 || e(j).specialTemplates.length > 0 ? (d(), v("div", Bl, [
1141
- e(j).templates.length > 0 && g.onlyShow !== "rooms" ? (d(), v("div", Nl, [
1142
- g.onlyShow !== "packages" ? (d(), v("h2", Ml, [
1147
+ !e(u) && e(ge) ? (d(), h("div", Ml, [
1148
+ e(q).roomGroups.length > 0 || e(q).templates.length > 0 || e(q).specialTemplates.length > 0 ? (d(), h("div", Rl, [
1149
+ e(q).templates.length > 0 && b.onlyShow !== "rooms" ? (d(), h("div", Ll, [
1150
+ b.onlyShow !== "packages" ? (d(), h("h2", Ul, [
1143
1151
  y(W, {
1144
1152
  icon: "box",
1145
1153
  type: "fal",
1146
1154
  color: "header"
1147
1155
  }),
1148
- a("span", null, h(e(o)("booking.availability.packagesTitle")), 1)
1156
+ a("span", null, v(e(o)("booking.availability.packagesTitle")), 1)
1149
1157
  ])) : _("", !0),
1150
- a("ul", Rl, [
1151
- (d(!0), v(F, null, G(e(j).templates, ({
1152
- id: A,
1158
+ a("ul", Fl, [
1159
+ (d(!0), h(F, null, G(e(q).templates, ({
1160
+ id: P,
1153
1161
  name: S,
1154
- templateRoomGroups: b,
1162
+ templateRoomGroups: g,
1155
1163
  image: U,
1156
1164
  description: H,
1157
1165
  weekendFee: oe
1158
- }) => (d(), P(vl, {
1159
- key: A,
1160
- id: A,
1166
+ }) => (d(), A(bl, {
1167
+ key: P,
1168
+ id: P,
1161
1169
  description: H,
1162
1170
  name: S,
1163
1171
  image: U,
1164
1172
  weekendFee: oe,
1165
- "room-groups": b,
1166
- callback: K,
1167
- "hide-addons": g.hideAddons === "yes" || g.hideAddons === "packages"
1173
+ "room-groups": g,
1174
+ callback: J,
1175
+ "hide-addons": b.hideAddons === "yes" || b.hideAddons === "packages"
1168
1176
  }, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
1169
1177
  ])
1170
1178
  ])) : _("", !0),
1171
- e(j).roomGroups.length > 0 && g.onlyShow !== "packages" ? (d(), v("div", Ll, [
1172
- e(j).templates.length > 0 && g.onlyShow !== "rooms" ? (d(), v("h2", Ul, [
1179
+ e(q).roomGroups.length > 0 && b.onlyShow !== "packages" ? (d(), h("div", Ol, [
1180
+ e(q).templates.length > 0 && b.onlyShow !== "rooms" ? (d(), h("h2", jl, [
1173
1181
  y(W, {
1174
1182
  icon: "house",
1175
1183
  type: "fal",
1176
1184
  color: "header"
1177
1185
  }),
1178
- a("span", null, h(e(o)("booking.availability.roomsTitle")), 1)
1186
+ a("span", null, v(e(o)("booking.availability.roomsTitle")), 1)
1179
1187
  ])) : _("", !0),
1180
- a("ul", Fl, [
1181
- (d(!0), v(F, null, G(Zt.value, (A, S) => (d(), P(ul, {
1182
- room: A,
1188
+ a("ul", ql, [
1189
+ (d(!0), h(F, null, G(to.value, (P, S) => (d(), A(fl, {
1190
+ room: P,
1183
1191
  key: S
1184
1192
  }, null, 8, ["room"]))), 128))
1185
1193
  ])
1186
1194
  ])) : _("", !0),
1187
- e(j).specialTemplates.length > 0 && g.onlyShow !== "rooms" ? (d(), v("div", Ol, [
1188
- a("h2", jl, [
1195
+ e(q).specialTemplates.length > 0 && b.onlyShow !== "rooms" ? (d(), h("div", Gl, [
1196
+ a("h2", Wl, [
1189
1197
  y(W, {
1190
1198
  icon: "sparkles",
1191
1199
  type: "fal",
1192
1200
  color: "header"
1193
1201
  }),
1194
- a("span", null, h(e(o)("hotel.specialOffers")), 1)
1202
+ a("span", null, v(e(o)("hotel.specialOffers")), 1)
1195
1203
  ]),
1196
- a("ul", ql, [
1197
- (d(!0), v(F, null, G(e(j).specialTemplates, ({
1198
- id: A,
1204
+ a("ul", xl, [
1205
+ (d(!0), h(F, null, G(e(q).specialTemplates, ({
1206
+ id: P,
1199
1207
  name: S,
1200
- templateRoomGroups: b,
1208
+ templateRoomGroups: g,
1201
1209
  image: U,
1202
1210
  description: H,
1203
1211
  weekendFee: oe,
1204
- fromDate: Q,
1205
- toDate: _e
1206
- }) => (d(), P(bl, {
1207
- key: A,
1208
- id: A,
1212
+ fromDate: X,
1213
+ toDate: Ve
1214
+ }) => (d(), A(Vl, {
1215
+ key: P,
1216
+ id: P,
1209
1217
  description: H,
1210
1218
  name: S,
1211
1219
  image: U,
1212
- fromDate: Q,
1213
- toDate: _e,
1220
+ fromDate: X,
1221
+ toDate: Ve,
1214
1222
  weekendFee: oe,
1215
- "room-groups": b,
1216
- callback: K
1223
+ "room-groups": g,
1224
+ callback: J
1217
1225
  }, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
1218
1226
  ])
1219
1227
  ])) : _("", !0),
1220
- (e(j).templates.length === 0 && g.onlyShow !== "rooms" || e(j).roomGroups.length === 0 && g.onlyShow !== "packages") && (g.onlyShow === "rooms" || g.onlyShow === "packages") ? (d(), v("div", Gl, [
1221
- a("span", null, h(e(o)("booking.availability.nothingAvailable")), 1)
1228
+ (e(q).templates.length === 0 && b.onlyShow !== "rooms" || e(q).roomGroups.length === 0 && b.onlyShow !== "packages") && (b.onlyShow === "rooms" || b.onlyShow === "packages") ? (d(), h("div", Kl, [
1229
+ a("span", null, v(e(o)("booking.availability.nothingAvailable")), 1)
1222
1230
  ])) : _("", !0)
1223
- ])) : e(j).nextAvailableDates.length === 0 ? (d(), v("div", Wl, [
1224
- a("span", null, h(e(o)("booking.availability.nothingAvailable")), 1)
1225
- ])) : (d(), v("div", xl, [
1226
- a("h2", Kl, [
1231
+ ])) : e(q).nextAvailableDates.length === 0 ? (d(), h("div", Jl, [
1232
+ a("span", null, v(e(o)("booking.availability.nothingAvailable")), 1)
1233
+ ])) : (d(), h("div", zl, [
1234
+ a("h2", Yl, [
1227
1235
  y(W, {
1228
1236
  icon: "calendar-circle-exclamation",
1229
1237
  type: "fal",
1230
1238
  color: "header"
1231
1239
  }),
1232
- a("span", null, h(e(o)("booking.availability.nextAvailableDates")), 1)
1240
+ a("span", null, v(e(o)("booking.availability.nextAvailableDates")), 1)
1233
1241
  ]),
1234
- a("ul", Jl, [
1235
- (d(!0), v(F, null, G(e(j).nextAvailableDates, (A, S) => (d(), v("li", { key: S }, [
1242
+ a("ul", Ql, [
1243
+ (d(!0), h(F, null, G(e(q).nextAvailableDates, (P, S) => (d(), h("li", { key: S }, [
1236
1244
  a("h3", {
1237
- title: `${e(le)(A.fromDate)} - ${e(le)(A.toDate)}`
1245
+ title: `${e(le)(P.fromDate)} - ${e(le)(P.toDate)}`
1238
1246
  }, [
1239
- a("span", null, h(`${e(le)(A.fromDate)} - ${e(le)(A.toDate)}`), 1)
1240
- ], 8, zl),
1247
+ a("span", null, v(`${e(le)(P.fromDate)} - ${e(le)(P.toDate)}`), 1)
1248
+ ], 8, Xl),
1241
1249
  a("ul", null, [
1242
1250
  _("", !0),
1243
1251
  a("li", null, [
@@ -1246,116 +1254,116 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1246
1254
  type: "fal",
1247
1255
  color: "header"
1248
1256
  }),
1249
- a("span", null, h(e(o)("booking.availability.pricesFrom")) + ": " + h(e(ne)(A.priceStartFrom, e($e))), 1)
1257
+ a("span", null, v(e(o)("booking.availability.pricesFrom")) + ": " + v(e(ne)(P.priceStartFrom, e(_e))), 1)
1250
1258
  ])
1251
1259
  ]),
1252
1260
  y(me, {
1253
1261
  label: e(o)("booking.availability.selectDates"),
1254
1262
  "full-width": "",
1255
- onClickEvent: (b) => e(Oe)(new Date(A.fromDate), new Date(A.toDate))
1263
+ onClickEvent: (g) => e(Oe)(new Date(P.fromDate), new Date(P.toDate))
1256
1264
  }, null, 8, ["label", "onClickEvent"])
1257
1265
  ]))), 128))
1258
1266
  ])
1259
1267
  ]))
1260
- ])) : isNaN(e(i)) && !e(c) ? (d(), v("div", Yl, [
1261
- a("span", null, h(e(o)("alert.info.selectHotelToStart")), 1)
1262
- ])) : (d(), v("div", Ql, [
1268
+ ])) : isNaN(e(i)) && !e(u) ? (d(), h("div", Zl, [
1269
+ a("span", null, v(e(o)("alert.info.selectHotelToStart")), 1)
1270
+ ])) : (d(), h("div", en, [
1263
1271
  y(Xe),
1264
1272
  y(Xe),
1265
1273
  y(Xe)
1266
1274
  ]))
1267
1275
  ])
1268
1276
  ]),
1269
- navigation: T(() => [
1270
- e(dt) ? (d(), P(me, {
1277
+ navigation: w(() => [
1278
+ e(dt) ? (d(), A(me, {
1271
1279
  key: 0,
1272
1280
  label: isNaN(e(i)) ? e(o)("availability.buttonLabel") : e(o)("general.searchAgain"),
1273
- "is-loading": e(c),
1281
+ "is-loading": e(u),
1274
1282
  "full-width": "",
1275
- onClickEvent: $[1] || ($[1] = (A) => e(mt)())
1276
- }, null, 8, ["label", "is-loading"])) : (d(), P(me, {
1283
+ onClickEvent: V[1] || (V[1] = (P) => e(mt)())
1284
+ }, null, 8, ["label", "is-loading"])) : (d(), A(me, {
1277
1285
  key: 1,
1278
- label: e(he) || Ke.value ? e(o)("booking.availability.nextButton") : e(o)("general.chooseAddons"),
1286
+ label: e(ye) || Ke.value ? e(o)("booking.availability.nextButton") : e(o)("general.chooseAddons"),
1279
1287
  disabled: !e(te),
1280
1288
  "full-width": "",
1281
- onClickEvent: (A) => to(K)
1289
+ onClickEvent: (P) => lo(J)
1282
1290
  }, null, 8, ["label", "disabled", "onClickEvent"]))
1283
1291
  ]),
1284
1292
  _: 2
1285
1293
  }, 1024)
1286
1294
  ]),
1287
- addons: T(({ next: K, prev: A }) => [
1288
- e(ge) ? (d(), P(Ze, {
1295
+ addons: w(({ next: J, prev: P }) => [
1296
+ e(ge) ? (d(), A(Ze, {
1289
1297
  key: 0,
1290
- "prev-callback": () => ht(A)
1298
+ "prev-callback": () => ht(P)
1291
1299
  }, {
1292
- form: T(() => [
1293
- a("form", Xl, [
1300
+ form: w(() => [
1301
+ a("form", tn, [
1294
1302
  a("h2", null, [
1295
- a("span", null, h(e(o)("booking.reservation.addons")), 1)
1303
+ a("span", null, v(e(o)("booking.reservation.addons")), 1)
1296
1304
  ]),
1297
1305
  a("div", null, [
1298
- isNaN(e(s)) ? (d(), v("div", Zl, [
1299
- (d(!0), v(F, null, G(e(se), (S) => (d(), v("ul", {
1306
+ isNaN(e(s)) ? (d(), h("div", on, [
1307
+ (d(!0), h(F, null, G(e(se), (S) => (d(), h("ul", {
1300
1308
  key: S.roomGroupID
1301
1309
  }, [
1302
- (d(!0), v(F, null, G(S.variants, (b, U) => (d(), v("li", {
1303
- key: b.ratePlanID
1310
+ (d(!0), h(F, null, G(S.variants, (g, U) => (d(), h("li", {
1311
+ key: g.ratePlanID
1304
1312
  }, [
1305
1313
  a("h4", null, [
1306
- a("span", null, h(e(pe)(S.title)), 1)
1314
+ a("span", null, v(e(pe)(S.title)), 1)
1307
1315
  ]),
1308
- (d(!0), v(F, null, G(b.rooms, (H, oe) => (d(), v("table", {
1316
+ (d(!0), h(F, null, G(g.rooms, (H, oe) => (d(), h("table", {
1309
1317
  key: oe,
1310
1318
  class: "konnectio-table with-lines"
1311
1319
  }, [
1312
1320
  a("thead", null, [
1313
1321
  a("tr", null, [
1314
1322
  a("th", null, [
1315
- a("span", null, h(e(pe)(b.name)), 1)
1323
+ a("span", null, v(e(pe)(g.name)), 1)
1316
1324
  ]),
1317
1325
  _("", !0),
1318
- a("th", en, [
1326
+ a("th", ln, [
1319
1327
  a("b", null, [
1320
1328
  y(W, {
1321
1329
  icon: "male",
1322
1330
  type: "fas",
1323
1331
  color: "font"
1324
1332
  }),
1325
- a("span", null, h(H.adultsCount), 1),
1326
- H.childrenCount > 0 ? (d(), P(W, {
1333
+ a("span", null, v(H.adultsCount), 1),
1334
+ H.childrenCount > 0 ? (d(), A(W, {
1327
1335
  key: 0,
1328
1336
  icon: "child",
1329
1337
  type: "fas",
1330
1338
  color: "font"
1331
1339
  })) : _("", !0),
1332
- H.childrenCount > 0 ? (d(), v("span", tn, h(H.childrenCount), 1)) : _("", !0)
1340
+ H.childrenCount > 0 ? (d(), h("span", nn, v(H.childrenCount), 1)) : _("", !0)
1333
1341
  ])
1334
1342
  ])
1335
1343
  ])
1336
1344
  ]),
1337
1345
  a("tbody", null, [
1338
- (d(!0), v(F, null, G(e(ft)(b.addons, H.childrenCount), ({
1339
- quantityStrategy: Q,
1340
- maximumNumber: _e,
1346
+ (d(!0), h(F, null, G(e(ft)(g.addons, H.childrenCount), ({
1347
+ quantityStrategy: X,
1348
+ maximumNumber: Ve,
1341
1349
  id: de,
1342
- name: lo,
1343
- price: no
1344
- }) => (d(), v("tr", { key: de }, [
1345
- a("td", on, [
1346
- a("b", null, h(e(pe)(lo)), 1),
1347
- a("span", null, h(e(ne)(no, e($e))) + " " + h(e(yt)(Q)), 1)
1350
+ name: ao,
1351
+ price: io
1352
+ }) => (d(), h("tr", { key: de }, [
1353
+ a("td", an, [
1354
+ a("b", null, v(e(pe)(ao)), 1),
1355
+ a("span", null, v(e(ne)(io, e(_e))) + " " + v(e(yt)(X)), 1)
1348
1356
  ]),
1349
- a("td", ln, [
1350
- e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx] ? (d(), v(F, { key: 0 }, [
1351
- Q === 1 || Q === 12 ? (d(), P(ot, {
1357
+ a("td", sn, [
1358
+ e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx] ? (d(), h(F, { key: 0 }, [
1359
+ X === 1 || X === 12 ? (d(), A(ot, {
1352
1360
  key: 0,
1353
1361
  modelValue: e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx][de],
1354
1362
  "onUpdate:modelValue": (Je) => e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx][de] = Je,
1355
1363
  small: !0,
1356
1364
  "min-value": 0,
1357
- "max-value": _e || 1 / 0
1358
- }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), P(Ne, {
1365
+ "max-value": Ve || 1 / 0
1366
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), A(Te, {
1359
1367
  key: 1,
1360
1368
  modelValue: e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx][de],
1361
1369
  "onUpdate:modelValue": (Je) => e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx][de] = Je,
@@ -1368,45 +1376,45 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1368
1376
  ]))), 128))
1369
1377
  ]))), 128))
1370
1378
  ]))), 128))
1371
- ])) : e(be) ? (d(), v("div", nn, [
1379
+ ])) : e(be) ? (d(), h("div", rn, [
1372
1380
  a("div", null, [
1373
1381
  a("h4", null, [
1374
- a("span", null, h(e(Ue).name), 1)
1382
+ a("span", null, v(e(Le).name), 1)
1375
1383
  ]),
1376
- a("table", an, [
1384
+ a("table", dn, [
1377
1385
  a("thead", null, [
1378
1386
  a("tr", null, [
1379
1387
  a("th", null, [
1380
- a("span", null, h(e(pe)(e(be).title)), 1)
1388
+ a("span", null, v(e(pe)(e(be).title)), 1)
1381
1389
  ]),
1382
1390
  _("", !0),
1383
- sn
1391
+ un
1384
1392
  ])
1385
1393
  ]),
1386
1394
  a("tbody", null, [
1387
- (d(!0), v(F, null, G(e(ft)(e(be).addons, e(Fe)), ({
1395
+ (d(!0), h(F, null, G(e(ft)(e(be).addons, e(Ue)), ({
1388
1396
  quantityStrategy: S,
1389
- maximumNumber: b,
1397
+ maximumNumber: g,
1390
1398
  id: U,
1391
1399
  name: H,
1392
1400
  price: oe
1393
- }) => (d(), v("tr", { key: U }, [
1394
- a("td", rn, [
1395
- a("b", null, h(e(pe)(H)), 1),
1396
- a("span", null, h(e(ne)(oe, e($e))) + " " + h(e(yt)(S)), 1)
1401
+ }) => (d(), h("tr", { key: U }, [
1402
+ a("td", cn, [
1403
+ a("b", null, v(e(pe)(H)), 1),
1404
+ a("span", null, v(e(ne)(oe, e(_e))) + " " + v(e(yt)(S)), 1)
1397
1405
  ]),
1398
- a("td", dn, [
1399
- S === 1 || S === 12 ? (d(), P(ot, {
1406
+ a("td", pn, [
1407
+ S === 1 || S === 12 ? (d(), A(ot, {
1400
1408
  key: 0,
1401
1409
  modelValue: e(p)[U],
1402
- "onUpdate:modelValue": (Q) => e(p)[U] = Q,
1410
+ "onUpdate:modelValue": (X) => e(p)[U] = X,
1403
1411
  small: !0,
1404
1412
  "min-value": 0,
1405
- "max-value": b || 1 / 0
1406
- }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), P(Ne, {
1413
+ "max-value": g || 1 / 0
1414
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), A(Te, {
1407
1415
  key: 1,
1408
1416
  modelValue: e(p)[U],
1409
- "onUpdate:modelValue": (Q) => e(p)[U] = Q,
1417
+ "onUpdate:modelValue": (X) => e(p)[U] = X,
1410
1418
  numeric: !0
1411
1419
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1412
1420
  ])
@@ -1418,69 +1426,69 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1418
1426
  ])
1419
1427
  ])
1420
1428
  ]),
1421
- navigation: T(() => [
1429
+ navigation: w(() => [
1422
1430
  y(me, {
1423
1431
  label: e(o)("general.startReservation"),
1424
1432
  "full-width": "",
1425
- onClickEvent: K
1433
+ onClickEvent: J
1426
1434
  }, null, 8, ["label", "onClickEvent"])
1427
1435
  ]),
1428
1436
  _: 2
1429
1437
  }, 1032, ["prev-callback"])) : _("", !0)
1430
1438
  ]),
1431
- reservation: T(({ next: K, prev: A, reset: S }) => [
1432
- e(ge) ? (d(), P(Ze, {
1439
+ reservation: w(({ next: J, prev: P, reset: S }) => [
1440
+ e(ge) ? (d(), A(Ze, {
1433
1441
  key: 0,
1434
- "prev-callback": () => ht(A),
1442
+ "prev-callback": () => ht(P),
1435
1443
  "show-terms-notice": !0,
1436
1444
  "show-gift-card": !0
1437
1445
  }, {
1438
- form: T(() => [
1439
- a("form", cn, [
1446
+ form: w(() => [
1447
+ a("form", mn, [
1440
1448
  a("h2", null, [
1441
- a("span", null, h(e(o)("booking.reservation.detailsTitle")), 1)
1449
+ a("span", null, v(e(o)("booking.reservation.detailsTitle")), 1)
1442
1450
  ]),
1443
- !e(Rt) && !(e(Ge) && e(We)) ? (d(), v("ul", {
1451
+ !e(Lt) && !(e(Ge) && e(We)) ? (d(), h("ul", {
1444
1452
  key: 0,
1445
1453
  class: Be(["konnectio-reservation-timepicker", { "konnectio-split-inputs": !e(Ge) && !e(We) }])
1446
1454
  }, [
1447
- e(Ge) ? _("", !0) : (d(), v("li", un, [
1455
+ e(Ge) ? _("", !0) : (d(), h("li", fn, [
1448
1456
  y(bt, {
1449
- modelValue: e(V),
1450
- "onUpdate:modelValue": $[2] || ($[2] = (b) => q(V) ? V.value = b : null),
1457
+ modelValue: e($),
1458
+ "onUpdate:modelValue": V[2] || (V[2] = (g) => j($) ? $.value = g : null),
1451
1459
  label: e(o)("booking.reservation.arrivalTime"),
1452
1460
  icon: "hourglass-start",
1453
- "min-time": e(Ae),
1454
- "max-time": e(je),
1461
+ "min-time": e(je),
1462
+ "max-time": e(re),
1455
1463
  required: ""
1456
1464
  }, null, 8, ["modelValue", "label", "min-time", "max-time"])
1457
1465
  ])),
1458
- e(We) ? _("", !0) : (d(), v("li", pn, [
1466
+ e(We) ? _("", !0) : (d(), h("li", hn, [
1459
1467
  y(bt, {
1460
- modelValue: e(w),
1461
- "onUpdate:modelValue": $[3] || ($[3] = (b) => q(w) ? w.value = b : null),
1468
+ modelValue: e(T),
1469
+ "onUpdate:modelValue": V[3] || (V[3] = (g) => j(T) ? T.value = g : null),
1462
1470
  label: e(o)("booking.reservation.departureTime"),
1463
1471
  icon: "hourglass-end",
1464
- "min-time": e(re),
1465
- "max-time": e(qe),
1472
+ "min-time": e(qe),
1473
+ "max-time": e(ut),
1466
1474
  required: ""
1467
1475
  }, null, 8, ["modelValue", "label", "min-time", "max-time"])
1468
1476
  ]))
1469
1477
  ], 2)) : _("", !0),
1470
- y(Tl, {
1478
+ y(Pl, {
1471
1479
  modelValue: e(C),
1472
- "onUpdate:modelValue": $[4] || ($[4] = (b) => q(C) ? C.value = b : null),
1480
+ "onUpdate:modelValue": V[4] || (V[4] = (g) => j(C) ? C.value = g : null),
1473
1481
  title: e(I),
1474
- "onUpdate:title": $[5] || ($[5] = (b) => q(I) ? I.value = b : null),
1475
- "exclude-title": e(Lt),
1482
+ "onUpdate:title": V[5] || (V[5] = (g) => j(I) ? I.value = g : null),
1483
+ "exclude-title": e(Ut),
1476
1484
  label: e(o)("booking.reservation.name"),
1477
1485
  icon: "user-alt",
1478
1486
  placeholder: e(o)("booking.reservation.namePlaceholder"),
1479
1487
  required: ""
1480
1488
  }, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
1481
- y(ue, {
1489
+ y(ce, {
1482
1490
  modelValue: e(M),
1483
- "onUpdate:modelValue": $[6] || ($[6] = (b) => q(M) ? M.value = b : null),
1491
+ "onUpdate:modelValue": V[6] || (V[6] = (g) => j(M) ? M.value = g : null),
1484
1492
  type: "email",
1485
1493
  name: "email",
1486
1494
  autocomplete: "email",
@@ -1489,10 +1497,19 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1489
1497
  placeholder: e(o)("booking.reservation.emailPlaceholder"),
1490
1498
  required: ""
1491
1499
  }, null, 8, ["modelValue", "label", "placeholder"]),
1492
- e(Ot) ? _("", !0) : (d(), P(ue, {
1493
- key: 1,
1500
+ e(xt) ? _("", !0) : (d(), h("div", vn, [
1501
+ y(Te, {
1502
+ modelValue: e(he),
1503
+ "onUpdate:modelValue": V[7] || (V[7] = (g) => j(he) ? he.value = g : null),
1504
+ type: "checkbox",
1505
+ name: "newsletter",
1506
+ label: e(o)("booking.reservation.newsletterSignUp")
1507
+ }, null, 8, ["modelValue", "label"])
1508
+ ])),
1509
+ e(jt) ? _("", !0) : (d(), A(ce, {
1510
+ key: 2,
1494
1511
  modelValue: e(E),
1495
- "onUpdate:modelValue": $[7] || ($[7] = (b) => q(E) ? E.value = b : null),
1512
+ "onUpdate:modelValue": V[8] || (V[8] = (g) => j(E) ? E.value = g : null),
1496
1513
  type: "text",
1497
1514
  name: "firm",
1498
1515
  autocomplete: "firm",
@@ -1500,25 +1517,25 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1500
1517
  icon: "id-card",
1501
1518
  placeholder: e(o)("booking.reservation.companyNamePlaceholder")
1502
1519
  }, null, 8, ["modelValue", "label", "placeholder"])),
1503
- y(Mo, {
1520
+ y(Lo, {
1504
1521
  modelValue: e(N),
1505
- "onUpdate:modelValue": $[8] || ($[8] = (b) => q(N) ? N.value = b : null),
1522
+ "onUpdate:modelValue": V[9] || (V[9] = (g) => j(N) ? N.value = g : null),
1506
1523
  icon: "phone-office",
1507
1524
  label: e(o)("booking.reservation.phone"),
1508
1525
  placeholder: e(o)("booking.reservation.phonePlaceholder"),
1509
1526
  required: ""
1510
1527
  }, null, 8, ["modelValue", "label", "placeholder"]),
1511
- y(Vl, {
1512
- modelValue: e(J),
1513
- "onUpdate:modelValue": $[9] || ($[9] = (b) => q(J) ? J.value = b : null),
1528
+ y(Tl, {
1529
+ modelValue: e(z),
1530
+ "onUpdate:modelValue": V[10] || (V[10] = (g) => j(z) ? z.value = g : null),
1514
1531
  label: e(o)("booking.reservation.country"),
1515
1532
  placeholder: e(o)("booking.reservation.countryPlaceholder"),
1516
1533
  options: e(m),
1517
1534
  required: ""
1518
1535
  }, null, 8, ["modelValue", "label", "placeholder", "options"]),
1519
- y(ue, {
1536
+ y(ce, {
1520
1537
  modelValue: e(B),
1521
- "onUpdate:modelValue": $[10] || ($[10] = (b) => q(B) ? B.value = b : null),
1538
+ "onUpdate:modelValue": V[11] || (V[11] = (g) => j(B) ? B.value = g : null),
1522
1539
  type: "textarea",
1523
1540
  name: "address",
1524
1541
  autocomplete: "street-address",
@@ -1527,11 +1544,11 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1527
1544
  placeholder: e(o)("booking.reservation.streetAddressPlaceholder"),
1528
1545
  required: ""
1529
1546
  }, null, 8, ["modelValue", "label", "placeholder"]),
1530
- a("ul", mn, [
1547
+ a("ul", yn, [
1531
1548
  a("li", null, [
1532
- y(ue, {
1549
+ y(ce, {
1533
1550
  modelValue: e(k),
1534
- "onUpdate:modelValue": $[11] || ($[11] = (b) => q(k) ? k.value = b : null),
1551
+ "onUpdate:modelValue": V[12] || (V[12] = (g) => j(k) ? k.value = g : null),
1535
1552
  type: "text",
1536
1553
  name: "postal",
1537
1554
  autocomplete: "postal-code",
@@ -1542,9 +1559,9 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1542
1559
  }, null, 8, ["modelValue", "label", "placeholder"])
1543
1560
  ]),
1544
1561
  a("li", null, [
1545
- y(ue, {
1562
+ y(ce, {
1546
1563
  modelValue: e(D),
1547
- "onUpdate:modelValue": $[12] || ($[12] = (b) => q(D) ? D.value = b : null),
1564
+ "onUpdate:modelValue": V[13] || (V[13] = (g) => j(D) ? D.value = g : null),
1548
1565
  type: "text",
1549
1566
  name: "city",
1550
1567
  autocomplete: "address-level2",
@@ -1555,51 +1572,51 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1555
1572
  }, null, 8, ["modelValue", "label", "placeholder"])
1556
1573
  ])
1557
1574
  ]),
1558
- y(ue, {
1575
+ y(ce, {
1559
1576
  modelValue: e(R),
1560
- "onUpdate:modelValue": $[13] || ($[13] = (b) => q(R) ? R.value = b : null),
1577
+ "onUpdate:modelValue": V[14] || (V[14] = (g) => j(R) ? R.value = g : null),
1561
1578
  type: "textarea",
1562
1579
  label: `${e(o)("booking.reservation.remark")} (${e(o)("booking.reservation.optional")})`,
1563
1580
  icon: "info-circle",
1564
1581
  placeholder: e(o)("booking.reservation.remarkPlaceholder")
1565
1582
  }, null, 8, ["modelValue", "label", "placeholder"]),
1566
- y(ue, {
1583
+ y(ce, {
1567
1584
  modelValue: e(Y),
1568
- "onUpdate:modelValue": $[14] || ($[14] = (b) => q(Y) ? Y.value = b : null),
1585
+ "onUpdate:modelValue": V[15] || (V[15] = (g) => j(Y) ? Y.value = g : null),
1569
1586
  type: "textarea",
1570
1587
  label: `${e(o)("booking.reservation.allergies")} (${e(o)("booking.reservation.optional")})`,
1571
1588
  icon: "allergies",
1572
1589
  placeholder: e(o)("booking.reservation.allergiesPlaceholder")
1573
1590
  }, null, 8, ["modelValue", "label", "placeholder"]),
1574
- e(Ut) ? _("", !0) : (d(), P(Ao, {
1575
- key: 2,
1591
+ e(Ft) ? _("", !0) : (d(), A(So, {
1592
+ key: 3,
1576
1593
  modelValue: e(f),
1577
- "onUpdate:modelValue": $[15] || ($[15] = (b) => q(f) ? f.value = b : null),
1594
+ "onUpdate:modelValue": V[16] || (V[16] = (g) => j(f) ? f.value = g : null),
1578
1595
  label: `${e(o)("booking.reservation.purposeOfStay")} (${e(o)("booking.reservation.optional")})`,
1579
1596
  name: "travelingFor",
1580
- checkboxes: Xt.value
1597
+ checkboxes: eo.value
1581
1598
  }, null, 8, ["modelValue", "label", "checkboxes"]))
1582
1599
  ])
1583
1600
  ]),
1584
- navigation: T(() => [
1601
+ navigation: w(() => [
1585
1602
  a("div", null, [
1586
1603
  y(me, {
1587
- label: e(jt) ? e(o)("booking.reservation.nextButton") : e(o)("general.confirmReservation"),
1588
- disabled: !e(u),
1604
+ label: e(qt) ? e(o)("booking.reservation.nextButton") : e(o)("general.confirmReservation"),
1605
+ disabled: !e(c),
1589
1606
  "is-loading": e(r),
1590
1607
  "full-width": "",
1591
- onClickEvent: (b) => eo(K, S)
1608
+ onClickEvent: (g) => oo(J, S)
1592
1609
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
1593
1610
  ])
1594
1611
  ]),
1595
1612
  _: 2
1596
1613
  }, 1032, ["prev-callback"])) : _("", !0)
1597
1614
  ]),
1598
- payment: T(() => [
1599
- y(Ro)
1615
+ payment: w(() => [
1616
+ y(Uo)
1600
1617
  ]),
1601
- confirmation: T(() => [
1602
- y(Do, {
1618
+ confirmation: w(() => [
1619
+ y(Ho, {
1603
1620
  message: e(o)("booking.confirmation.thankYou")
1604
1621
  }, null, 8, ["message"])
1605
1622
  ]),
@@ -1609,8 +1626,8 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1609
1626
  _: 1
1610
1627
  }, 8, ["access-token", "callback"])
1611
1628
  ]),
1612
- fallback: T(() => [
1613
- y(Dl)
1629
+ fallback: w(() => [
1630
+ y(Il)
1614
1631
  ]),
1615
1632
  _: 1
1616
1633
  }))
@@ -1618,7 +1635,7 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1618
1635
  _: 1
1619
1636
  }, 8, ["styling"]));
1620
1637
  }
1621
- }), kt = /* @__PURE__ */ fe(fn, [["__scopeId", "data-v-b6142cc2"]]);
1638
+ }), kt = /* @__PURE__ */ fe(gn, [["__scopeId", "data-v-4ef19623"]]);
1622
1639
  function lt(n, l = {}, t) {
1623
1640
  for (const o in n) {
1624
1641
  const i = n[o], s = t ? `${t}:${o}` : o;
@@ -1626,15 +1643,15 @@ function lt(n, l = {}, t) {
1626
1643
  }
1627
1644
  return l;
1628
1645
  }
1629
- const hn = { run: (n) => n() }, vn = () => hn, Et = typeof console.createTask < "u" ? console.createTask : vn;
1630
- function yn(n, l) {
1646
+ const bn = { run: (n) => n() }, kn = () => bn, Et = typeof console.createTask < "u" ? console.createTask : kn;
1647
+ function _n(n, l) {
1631
1648
  const t = l.shift(), o = Et(t);
1632
1649
  return n.reduce(
1633
1650
  (i, s) => i.then(() => o.run(() => s(...l))),
1634
1651
  Promise.resolve()
1635
1652
  );
1636
1653
  }
1637
- function gn(n, l) {
1654
+ function Vn(n, l) {
1638
1655
  const t = l.shift(), o = Et(t);
1639
1656
  return Promise.all(n.map((i) => o.run(() => i(...l))));
1640
1657
  }
@@ -1642,7 +1659,7 @@ function et(n, l) {
1642
1659
  for (const t of [...n])
1643
1660
  t(l);
1644
1661
  }
1645
- class bn {
1662
+ class $n {
1646
1663
  constructor() {
1647
1664
  this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this);
1648
1665
  }
@@ -1711,10 +1728,10 @@ class bn {
1711
1728
  delete this._hooks[l];
1712
1729
  }
1713
1730
  callHook(l, ...t) {
1714
- return t.unshift(l), this.callHookWith(yn, l, ...t);
1731
+ return t.unshift(l), this.callHookWith(_n, l, ...t);
1715
1732
  }
1716
1733
  callHookParallel(l, ...t) {
1717
- return t.unshift(l), this.callHookWith(gn, l, ...t);
1734
+ return t.unshift(l), this.callHookWith(Vn, l, ...t);
1718
1735
  }
1719
1736
  callHookWith(l, t, ...o) {
1720
1737
  const i = this._before || this._after ? { name: t, args: o, context: {} } : void 0;
@@ -1744,20 +1761,20 @@ class bn {
1744
1761
  };
1745
1762
  }
1746
1763
  }
1747
- function kn() {
1748
- return new bn();
1764
+ function wn() {
1765
+ return new $n();
1749
1766
  }
1750
- function _n(n) {
1767
+ function Tn(n) {
1751
1768
  return Array.isArray(n) ? n : [n];
1752
1769
  }
1753
- const Vn = ["title", "titleTemplate", "script", "style", "noscript"], He = [
1770
+ const Cn = ["title", "titleTemplate", "script", "style", "noscript"], He = [
1754
1771
  "base",
1755
1772
  "meta",
1756
1773
  "link",
1757
1774
  "style",
1758
1775
  "script",
1759
1776
  "noscript"
1760
- ], $n = [
1777
+ ], Pn = [
1761
1778
  "title",
1762
1779
  "titleTemplate",
1763
1780
  "templateParams",
@@ -1769,7 +1786,7 @@ const Vn = ["title", "titleTemplate", "script", "style", "noscript"], He = [
1769
1786
  "style",
1770
1787
  "script",
1771
1788
  "noscript"
1772
- ], Tn = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], Bt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], wn = typeof window < "u";
1789
+ ], An = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], Bt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Dn = typeof window < "u";
1773
1790
  function rt(n) {
1774
1791
  let l = 9;
1775
1792
  for (let t = 0; t < n.length; )
@@ -1781,7 +1798,7 @@ function _t(n) {
1781
1798
  }
1782
1799
  function Nt(n, l) {
1783
1800
  const { props: t, tag: o } = n;
1784
- if (Tn.includes(o))
1801
+ if (An.includes(o))
1785
1802
  return o;
1786
1803
  if (o === "link" && t.rel === "canonical")
1787
1804
  return "canonical";
@@ -1799,7 +1816,7 @@ function Nt(n, l) {
1799
1816
  function Vt(n, l) {
1800
1817
  return n == null ? l || null : typeof n == "function" ? n(l) : n;
1801
1818
  }
1802
- async function Cn(n, l, t) {
1819
+ async function Sn(n, l, t) {
1803
1820
  const o = {
1804
1821
  tag: n,
1805
1822
  props: await Mt(
@@ -1811,17 +1828,17 @@ async function Cn(n, l, t) {
1811
1828
  };
1812
1829
  return Bt.forEach((i) => {
1813
1830
  const s = typeof o.props[i] < "u" ? o.props[i] : t[i];
1814
- typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) || Vn.includes(o.tag)) && (o[i === "children" ? "innerHTML" : i] = s), delete o.props[i]);
1831
+ typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) || Cn.includes(o.tag)) && (o[i === "children" ? "innerHTML" : i] = s), delete o.props[i]);
1815
1832
  }), o.props.body && (o.tagPosition = "bodyClose", delete o.props.body), o.tag === "script" && typeof o.innerHTML == "object" && (o.innerHTML = JSON.stringify(o.innerHTML), o.props.type = o.props.type || "application/json"), Array.isArray(o.props.content) ? o.props.content.map((i) => ({ ...o, props: { ...o.props, content: i } })) : o;
1816
1833
  }
1817
- function Pn(n, l) {
1834
+ function Hn(n, l) {
1818
1835
  const t = n === "class" ? " " : ";";
1819
1836
  return typeof l == "object" && !Array.isArray(l) && (l = Object.entries(l).filter(([, o]) => o).map(([o, i]) => n === "style" ? `${o}:${i}` : o)), String(Array.isArray(l) ? l.join(t) : l)?.split(t).filter((o) => o.trim()).filter(Boolean).join(t);
1820
1837
  }
1821
1838
  async function Mt(n, l) {
1822
1839
  for (const t of Object.keys(n)) {
1823
1840
  if (["class", "style"].includes(t)) {
1824
- n[t] = Pn(t, n[t]);
1841
+ n[t] = Hn(t, n[t]);
1825
1842
  continue;
1826
1843
  }
1827
1844
  if (n[t] instanceof Promise && (n[t] = await n[t]), !l && !Bt.includes(t)) {
@@ -1831,36 +1848,36 @@ async function Mt(n, l) {
1831
1848
  }
1832
1849
  return n;
1833
1850
  }
1834
- const An = 10;
1835
- async function Dn(n) {
1851
+ const In = 10;
1852
+ async function En(n) {
1836
1853
  const l = [];
1837
- return Object.entries(n.resolvedInput).filter(([t, o]) => typeof o < "u" && $n.includes(t)).forEach(([t, o]) => {
1838
- const i = _n(o);
1839
- l.push(...i.map((s) => Cn(t, s, n)).flat());
1840
- }), (await Promise.all(l)).flat().filter(Boolean).map((t, o) => (t._e = n._i, n.mode && (t._m = n.mode), t._p = (n._i << An) + o, t));
1854
+ return Object.entries(n.resolvedInput).filter(([t, o]) => typeof o < "u" && Pn.includes(t)).forEach(([t, o]) => {
1855
+ const i = Tn(o);
1856
+ l.push(...i.map((s) => Sn(t, s, n)).flat());
1857
+ }), (await Promise.all(l)).flat().filter(Boolean).map((t, o) => (t._e = n._i, n.mode && (t._m = n.mode), t._p = (n._i << In) + o, t));
1841
1858
  }
1842
1859
  const $t = {
1843
1860
  // tags
1844
1861
  base: -10,
1845
1862
  title: 10
1846
- }, Tt = {
1863
+ }, wt = {
1847
1864
  // relative scores to their default values
1848
1865
  critical: -80,
1849
1866
  high: -10,
1850
1867
  low: 20
1851
1868
  };
1852
- function Me(n) {
1869
+ function Ne(n) {
1853
1870
  let l = 100;
1854
1871
  const t = n.tagPriority;
1855
- return typeof t == "number" ? t : (n.tag === "meta" ? (n.props["http-equiv"] === "content-security-policy" && (l = -30), n.props.charset && (l = -20), n.props.name === "viewport" && (l = -15)) : n.tag === "link" && n.props.rel === "preconnect" ? l = 20 : n.tag in $t && (l = $t[n.tag]), typeof t == "string" && t in Tt ? l + Tt[t] : l);
1872
+ return typeof t == "number" ? t : (n.tag === "meta" ? (n.props["http-equiv"] === "content-security-policy" && (l = -30), n.props.charset && (l = -20), n.props.name === "viewport" && (l = -15)) : n.tag === "link" && n.props.rel === "preconnect" ? l = 20 : n.tag in $t && (l = $t[n.tag]), typeof t == "string" && t in wt ? l + wt[t] : l);
1856
1873
  }
1857
- const Sn = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], wt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], ce = "%separator";
1874
+ const Bn = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], Tt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], ue = "%separator";
1858
1875
  function Ie(n, l, t) {
1859
1876
  if (typeof n != "string" || !n.includes("%"))
1860
1877
  return n;
1861
1878
  function o(p) {
1862
1879
  let m;
1863
- return ["s", "pageTitle"].includes(p) ? m = l.pageTitle : p.includes(".") ? m = p.split(".").reduce((c, r) => c && c[r] || void 0, l) : m = l[p], typeof m < "u" ? (m || "").replace(/"/g, '\\"') : !1;
1880
+ return ["s", "pageTitle"].includes(p) ? m = l.pageTitle : p.includes(".") ? m = p.split(".").reduce((u, r) => u && u[r] || void 0, l) : m = l[p], typeof m < "u" ? (m || "").replace(/"/g, '\\"') : !1;
1864
1881
  }
1865
1882
  let i = n;
1866
1883
  try {
@@ -1869,19 +1886,19 @@ function Ie(n, l, t) {
1869
1886
  }
1870
1887
  return (i.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((p) => {
1871
1888
  const m = o(p.slice(1));
1872
- typeof m == "string" && (n = n.replace(new RegExp(`\\${p}(\\W|$)`, "g"), (c, r) => `${m}${r}`).trim());
1873
- }), n.includes(ce) && (n.endsWith(ce) && (n = n.slice(0, -ce.length).trim()), n.startsWith(ce) && (n = n.slice(ce.length).trim()), n = n.replace(new RegExp(`\\${ce}\\s*\\${ce}`, "g"), ce), n = Ie(n, { separator: t }, t)), n;
1889
+ typeof m == "string" && (n = n.replace(new RegExp(`\\${p}(\\W|$)`, "g"), (u, r) => `${m}${r}`).trim());
1890
+ }), n.includes(ue) && (n.endsWith(ue) && (n = n.slice(0, -ue.length).trim()), n.startsWith(ue) && (n = n.slice(ue.length).trim()), n = n.replace(new RegExp(`\\${ue}\\s*\\${ue}`, "g"), ue), n = Ie(n, { separator: t }, t)), n;
1874
1891
  }
1875
- async function Hn(n, l = {}) {
1892
+ async function Nn(n, l = {}) {
1876
1893
  const t = l.document || n.resolvedOptions.document;
1877
1894
  if (!t || !n.dirty)
1878
1895
  return;
1879
1896
  const o = { shouldRender: !0, tags: [] };
1880
1897
  if (await n.hooks.callHook("dom:beforeRender", o), !o.shouldRender)
1881
1898
  return;
1882
- const i = (await n.resolveTags()).map((u) => ({
1883
- tag: u,
1884
- id: He.includes(u.tag) ? _t(u) : u.tag,
1899
+ const i = (await n.resolveTags()).map((c) => ({
1900
+ tag: c,
1901
+ id: He.includes(c.tag) ? _t(c) : c.tag,
1885
1902
  shouldRender: !0
1886
1903
  }));
1887
1904
  let s = n._dom;
@@ -1889,97 +1906,97 @@ async function Hn(n, l = {}) {
1889
1906
  s = {
1890
1907
  elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
1891
1908
  };
1892
- for (const u of ["body", "head"]) {
1893
- const f = t[u]?.children, V = [];
1894
- for (const w of [...f].filter((C) => He.includes(C.tagName.toLowerCase()))) {
1909
+ for (const c of ["body", "head"]) {
1910
+ const f = t[c]?.children, $ = [];
1911
+ for (const T of [...f].filter((C) => He.includes(C.tagName.toLowerCase()))) {
1895
1912
  const C = {
1896
- tag: w.tagName.toLowerCase(),
1913
+ tag: T.tagName.toLowerCase(),
1897
1914
  props: await Mt(
1898
- w.getAttributeNames().reduce((N, E) => ({ ...N, [E]: w.getAttribute(E) }), {})
1915
+ T.getAttributeNames().reduce((N, E) => ({ ...N, [E]: T.getAttribute(E) }), {})
1899
1916
  ),
1900
- innerHTML: w.innerHTML
1917
+ innerHTML: T.innerHTML
1901
1918
  };
1902
1919
  let I = 1, M = Nt(C);
1903
- for (; M && V.find((N) => N._d === M); )
1920
+ for (; M && $.find((N) => N._d === M); )
1904
1921
  M = `${M}:${I++}`;
1905
- C._d = M || void 0, V.push(C), s.elMap[w.getAttribute("data-hid") || _t(C)] = w;
1922
+ C._d = M || void 0, $.push(C), s.elMap[T.getAttribute("data-hid") || _t(C)] = T;
1906
1923
  }
1907
1924
  }
1908
1925
  }
1909
1926
  s.pendingSideEffects = { ...s.sideEffects || {} }, s.sideEffects = {};
1910
- function p(u, f, V) {
1911
- const w = `${u}:${f}`;
1912
- s.sideEffects[w] = V, delete s.pendingSideEffects[w];
1927
+ function p(c, f, $) {
1928
+ const T = `${c}:${f}`;
1929
+ s.sideEffects[T] = $, delete s.pendingSideEffects[T];
1913
1930
  }
1914
- function m({ id: u, $el: f, tag: V }) {
1915
- const w = V.tag.endsWith("Attrs");
1916
- s.elMap[u] = f, w || (["textContent", "innerHTML"].forEach((C) => {
1917
- V[C] && V[C] !== f[C] && (f[C] = V[C]);
1918
- }), p(u, "el", () => {
1919
- s.elMap[u]?.remove(), delete s.elMap[u];
1931
+ function m({ id: c, $el: f, tag: $ }) {
1932
+ const T = $.tag.endsWith("Attrs");
1933
+ s.elMap[c] = f, T || (["textContent", "innerHTML"].forEach((C) => {
1934
+ $[C] && $[C] !== f[C] && (f[C] = $[C]);
1935
+ }), p(c, "el", () => {
1936
+ s.elMap[c]?.remove(), delete s.elMap[c];
1920
1937
  }));
1921
- for (const [C, I] of Object.entries(V._eventHandlers || {}))
1922
- f.getAttribute(`data-${C}`) !== "" && ((V.tag === "bodyAttrs" ? t.defaultView : f).addEventListener(C.replace("on", ""), I.bind(f)), f.setAttribute(`data-${C}`, ""));
1923
- Object.entries(V.props).forEach(([C, I]) => {
1938
+ for (const [C, I] of Object.entries($._eventHandlers || {}))
1939
+ f.getAttribute(`data-${C}`) !== "" && (($.tag === "bodyAttrs" ? t.defaultView : f).addEventListener(C.replace("on", ""), I.bind(f)), f.setAttribute(`data-${C}`, ""));
1940
+ Object.entries($.props).forEach(([C, I]) => {
1924
1941
  const M = `attr:${C}`;
1925
1942
  if (C === "class")
1926
1943
  for (const N of (I || "").split(" ").filter(Boolean))
1927
- w && p(u, `${M}:${N}`, () => f.classList.remove(N)), !f.classList.contains(N) && f.classList.add(N);
1944
+ T && p(c, `${M}:${N}`, () => f.classList.remove(N)), !f.classList.contains(N) && f.classList.add(N);
1928
1945
  else if (C === "style")
1929
1946
  for (const N of (I || "").split(";").filter(Boolean)) {
1930
1947
  const [E, ...k] = N.split(":").map((D) => D.trim());
1931
- p(u, `${M}:${E}`, () => {
1948
+ p(c, `${M}:${E}`, () => {
1932
1949
  f.style.removeProperty(E);
1933
1950
  }), f.style.setProperty(E, k.join(":"));
1934
1951
  }
1935
1952
  else
1936
- f.getAttribute(C) !== I && f.setAttribute(C, I === !0 ? "" : String(I)), w && p(u, M, () => f.removeAttribute(C));
1953
+ f.getAttribute(C) !== I && f.setAttribute(C, I === !0 ? "" : String(I)), T && p(c, M, () => f.removeAttribute(C));
1937
1954
  });
1938
1955
  }
1939
- const c = [], r = {
1956
+ const u = [], r = {
1940
1957
  bodyClose: void 0,
1941
1958
  bodyOpen: void 0,
1942
1959
  head: void 0
1943
1960
  };
1944
- for (const u of i) {
1945
- const { tag: f, shouldRender: V, id: w } = u;
1946
- if (V) {
1961
+ for (const c of i) {
1962
+ const { tag: f, shouldRender: $, id: T } = c;
1963
+ if ($) {
1947
1964
  if (f.tag === "title") {
1948
1965
  t.title = f.textContent;
1949
1966
  continue;
1950
1967
  }
1951
- u.$el = u.$el || s.elMap[w], u.$el ? m(u) : He.includes(f.tag) && c.push(u);
1968
+ c.$el = c.$el || s.elMap[T], c.$el ? m(c) : He.includes(f.tag) && u.push(c);
1952
1969
  }
1953
1970
  }
1954
- for (const u of c) {
1955
- const f = u.tag.tagPosition || "head";
1956
- u.$el = t.createElement(u.tag.tag), m(u), r[f] = r[f] || t.createDocumentFragment(), r[f].appendChild(u.$el);
1971
+ for (const c of u) {
1972
+ const f = c.tag.tagPosition || "head";
1973
+ c.$el = t.createElement(c.tag.tag), m(c), r[f] = r[f] || t.createDocumentFragment(), r[f].appendChild(c.$el);
1957
1974
  }
1958
- for (const u of i)
1959
- await n.hooks.callHook("dom:renderTag", u, t, p);
1960
- r.head && t.head.appendChild(r.head), r.bodyOpen && t.body.insertBefore(r.bodyOpen, t.body.firstChild), r.bodyClose && t.body.appendChild(r.bodyClose), Object.values(s.pendingSideEffects).forEach((u) => u()), n._dom = s, n.dirty = !1, await n.hooks.callHook("dom:rendered", { renders: i });
1975
+ for (const c of i)
1976
+ await n.hooks.callHook("dom:renderTag", c, t, p);
1977
+ r.head && t.head.appendChild(r.head), r.bodyOpen && t.body.insertBefore(r.bodyOpen, t.body.firstChild), r.bodyClose && t.body.appendChild(r.bodyClose), Object.values(s.pendingSideEffects).forEach((c) => c()), n._dom = s, n.dirty = !1, await n.hooks.callHook("dom:rendered", { renders: i });
1961
1978
  }
1962
- async function In(n, l = {}) {
1979
+ async function Mn(n, l = {}) {
1963
1980
  const t = l.delayFn || ((o) => setTimeout(o, 10));
1964
1981
  return n._domUpdatePromise = n._domUpdatePromise || new Promise((o) => t(async () => {
1965
- await Hn(n, l), delete n._domUpdatePromise, o();
1982
+ await Nn(n, l), delete n._domUpdatePromise, o();
1966
1983
  }));
1967
1984
  }
1968
1985
  // @__NO_SIDE_EFFECTS__
1969
- function En(n) {
1986
+ function Rn(n) {
1970
1987
  return (l) => {
1971
1988
  const t = l.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
1972
1989
  return t && l.push(JSON.parse(t)), {
1973
1990
  mode: "client",
1974
1991
  hooks: {
1975
1992
  "entries:updated": function(o) {
1976
- In(o, n);
1993
+ Mn(o, n);
1977
1994
  }
1978
1995
  }
1979
1996
  };
1980
1997
  };
1981
1998
  }
1982
- const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
1999
+ const Ln = ["templateParams", "htmlAttrs", "bodyAttrs"], Un = {
1983
2000
  hooks: {
1984
2001
  "tag:normalise": function({ tag: n }) {
1985
2002
  ["hid", "vmid", "key"].forEach((o) => {
@@ -1994,19 +2011,19 @@ const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
1994
2011
  const i = (o.key ? `${o.tag}:${o.key}` : o._d) || o._p, s = l[i];
1995
2012
  if (s) {
1996
2013
  let m = o?.tagDuplicateStrategy;
1997
- if (!m && Bn.includes(o.tag) && (m = "merge"), m === "merge") {
1998
- const c = s.props;
2014
+ if (!m && Ln.includes(o.tag) && (m = "merge"), m === "merge") {
2015
+ const u = s.props;
1999
2016
  ["class", "style"].forEach((r) => {
2000
- c[r] && (o.props[r] ? (r === "style" && !c[r].endsWith(";") && (c[r] += ";"), o.props[r] = `${c[r]} ${o.props[r]}`) : o.props[r] = c[r]);
2017
+ u[r] && (o.props[r] ? (r === "style" && !u[r].endsWith(";") && (u[r] += ";"), o.props[r] = `${u[r]} ${o.props[r]}`) : o.props[r] = u[r]);
2001
2018
  }), l[i].props = {
2002
- ...c,
2019
+ ...u,
2003
2020
  ...o.props
2004
2021
  };
2005
2022
  return;
2006
2023
  } else if (o._e === s._e) {
2007
2024
  s._duped = s._duped || [], o._d = `${s._d}:${s._duped.length + 1}`, s._duped.push(o);
2008
2025
  return;
2009
- } else if (Me(o) > Me(s))
2026
+ } else if (Ne(o) > Ne(s))
2010
2027
  return;
2011
2028
  }
2012
2029
  const p = Object.keys(o.props).length + (o.innerHTML ? 1 : 0) + (o.textContent ? 1 : 0);
@@ -2023,7 +2040,7 @@ const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
2023
2040
  }), n.tags = t, n.tags = n.tags.filter((o) => !(o.tag === "meta" && (o.props.name || o.props.property) && !o.props.content));
2024
2041
  }
2025
2042
  }
2026
- }, Mn = {
2043
+ }, Fn = {
2027
2044
  mode: "server",
2028
2045
  hooks: {
2029
2046
  "tags:resolve": function(n) {
@@ -2037,60 +2054,60 @@ const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
2037
2054
  });
2038
2055
  }
2039
2056
  }
2040
- }, Rn = ["script", "link", "bodyAttrs"], Ln = (n) => ({
2057
+ }, On = ["script", "link", "bodyAttrs"], jn = (n) => ({
2041
2058
  hooks: {
2042
2059
  "tags:resolve": function(l) {
2043
- for (const t of l.tags.filter((o) => Rn.includes(o.tag)))
2060
+ for (const t of l.tags.filter((o) => On.includes(o.tag)))
2044
2061
  Object.entries(t.props).forEach(([o, i]) => {
2045
- o.startsWith("on") && typeof i == "function" && (n.ssr && wt.includes(o) ? t.props[o] = `this.dataset.${o}fired = true` : delete t.props[o], t._eventHandlers = t._eventHandlers || {}, t._eventHandlers[o] = i);
2062
+ o.startsWith("on") && typeof i == "function" && (n.ssr && Tt.includes(o) ? t.props[o] = `this.dataset.${o}fired = true` : delete t.props[o], t._eventHandlers = t._eventHandlers || {}, t._eventHandlers[o] = i);
2046
2063
  }), n.ssr && t._eventHandlers && (t.props.src || t.props.href) && (t.key = t.key || rt(t.props.src || t.props.href));
2047
2064
  },
2048
2065
  "dom:renderTag": function({ $el: l, tag: t }) {
2049
- for (const o of Object.keys(l?.dataset || {}).filter((i) => wt.some((s) => `${s}fired` === i))) {
2066
+ for (const o of Object.keys(l?.dataset || {}).filter((i) => Tt.some((s) => `${s}fired` === i))) {
2050
2067
  const i = o.replace("fired", "");
2051
2068
  t._eventHandlers?.[i]?.call(l, new Event(i.replace("on", "")));
2052
2069
  }
2053
2070
  }
2054
2071
  }
2055
- }), Un = ["link", "style", "script", "noscript"], Fn = {
2072
+ }), qn = ["link", "style", "script", "noscript"], Gn = {
2056
2073
  hooks: {
2057
2074
  "tag:normalise": ({ tag: n }) => {
2058
- n.key && Un.includes(n.tag) && (n.props["data-hid"] = n._h = rt(n.key));
2075
+ n.key && qn.includes(n.tag) && (n.props["data-hid"] = n._h = rt(n.key));
2059
2076
  }
2060
2077
  }
2061
- }, On = {
2078
+ }, Wn = {
2062
2079
  hooks: {
2063
2080
  "tags:resolve": (n) => {
2064
2081
  const l = (t) => n.tags.find((o) => o._d === t)?._p;
2065
- for (const { prefix: t, offset: o } of Sn)
2082
+ for (const { prefix: t, offset: o } of Bn)
2066
2083
  for (const i of n.tags.filter((s) => typeof s.tagPriority == "string" && s.tagPriority.startsWith(t))) {
2067
2084
  const s = l(
2068
2085
  i.tagPriority.replace(t, "")
2069
2086
  );
2070
2087
  typeof s < "u" && (i._p = s + o);
2071
2088
  }
2072
- n.tags.sort((t, o) => t._p - o._p).sort((t, o) => Me(t) - Me(o));
2089
+ n.tags.sort((t, o) => t._p - o._p).sort((t, o) => Ne(t) - Ne(o));
2073
2090
  }
2074
2091
  }
2075
- }, jn = {
2092
+ }, xn = {
2076
2093
  meta: "content",
2077
2094
  link: "href",
2078
2095
  htmlAttrs: "lang"
2079
- }, qn = (n) => ({
2096
+ }, Kn = (n) => ({
2080
2097
  hooks: {
2081
2098
  "tags:resolve": (l) => {
2082
2099
  const { tags: t } = l, o = t.find((m) => m.tag === "title")?.textContent, i = t.findIndex((m) => m.tag === "templateParams"), s = i !== -1 ? t[i].props : {}, p = s.separator || "|";
2083
2100
  delete s.separator, s.pageTitle = Ie(s.pageTitle || o || "", s, p);
2084
- for (const m of t.filter((c) => c.processTemplateParams !== !1)) {
2085
- const c = jn[m.tag];
2086
- c && typeof m.props[c] == "string" ? m.props[c] = Ie(m.props[c], s, p) : (m.processTemplateParams === !0 || ["titleTemplate", "title"].includes(m.tag)) && ["innerHTML", "textContent"].forEach((r) => {
2101
+ for (const m of t.filter((u) => u.processTemplateParams !== !1)) {
2102
+ const u = xn[m.tag];
2103
+ u && typeof m.props[u] == "string" ? m.props[u] = Ie(m.props[u], s, p) : (m.processTemplateParams === !0 || ["titleTemplate", "title"].includes(m.tag)) && ["innerHTML", "textContent"].forEach((r) => {
2087
2104
  typeof m[r] == "string" && (m[r] = Ie(m[r], s, p));
2088
2105
  });
2089
2106
  }
2090
2107
  n._templateParams = s, n._separator = p, l.tags = t.filter((m) => m.tag !== "templateParams");
2091
2108
  }
2092
2109
  }
2093
- }), Gn = {
2110
+ }), Jn = {
2094
2111
  hooks: {
2095
2112
  "tags:resolve": (n) => {
2096
2113
  const { tags: l } = n;
@@ -2111,7 +2128,7 @@ const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
2111
2128
  t !== -1 && delete l[t], n.tags = l.filter(Boolean);
2112
2129
  }
2113
2130
  }
2114
- }, Wn = {
2131
+ }, zn = {
2115
2132
  hooks: {
2116
2133
  "tags:afterResolve": function(n) {
2117
2134
  for (const l of n.tags)
@@ -2120,16 +2137,16 @@ const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
2120
2137
  }
2121
2138
  };
2122
2139
  // @__NO_SIDE_EFFECTS__
2123
- function xn(n = {}) {
2124
- const l = Kn(n);
2125
- return l.use(/* @__PURE__ */ En()), l;
2140
+ function Yn(n = {}) {
2141
+ const l = Qn(n);
2142
+ return l.use(/* @__PURE__ */ Rn()), l;
2126
2143
  }
2127
2144
  function Ct(n, l) {
2128
2145
  return !n || n === "server" && l || n === "client" && !l;
2129
2146
  }
2130
- function Kn(n = {}) {
2131
- const l = kn();
2132
- l.addHooks(n.hooks || {}), n.document = n.document || (wn ? document : void 0);
2147
+ function Qn(n = {}) {
2148
+ const l = wn();
2149
+ l.addHooks(n.hooks || {}), n.document = n.document || (Dn ? document : void 0);
2133
2150
  const t = !n.document, o = () => {
2134
2151
  m.dirty = !0, l.callHook("entries:updated", m);
2135
2152
  };
@@ -2142,88 +2159,88 @@ function Kn(n = {}) {
2142
2159
  headEntries() {
2143
2160
  return s;
2144
2161
  },
2145
- use(c) {
2146
- const r = typeof c == "function" ? c(m) : c;
2147
- (!r.key || !p.some((u) => u.key === r.key)) && (p.push(r), Ct(r.mode, t) && l.addHooks(r.hooks || {}));
2162
+ use(u) {
2163
+ const r = typeof u == "function" ? u(m) : u;
2164
+ (!r.key || !p.some((c) => c.key === r.key)) && (p.push(r), Ct(r.mode, t) && l.addHooks(r.hooks || {}));
2148
2165
  },
2149
- push(c, r) {
2166
+ push(u, r) {
2150
2167
  delete r?.head;
2151
- const u = {
2168
+ const c = {
2152
2169
  _i: i++,
2153
- input: c,
2170
+ input: u,
2154
2171
  ...r
2155
2172
  };
2156
- return Ct(u.mode, t) && (s.push(u), o()), {
2173
+ return Ct(c.mode, t) && (s.push(c), o()), {
2157
2174
  dispose() {
2158
- s = s.filter((f) => f._i !== u._i), l.callHook("entries:updated", m), o();
2175
+ s = s.filter((f) => f._i !== c._i), l.callHook("entries:updated", m), o();
2159
2176
  },
2160
2177
  // a patch is the same as creating a new entry, just a nice DX
2161
2178
  patch(f) {
2162
- s = s.map((V) => (V._i === u._i && (V.input = u.input = f), V)), o();
2179
+ s = s.map(($) => ($._i === c._i && ($.input = c.input = f), $)), o();
2163
2180
  }
2164
2181
  };
2165
2182
  },
2166
2183
  async resolveTags() {
2167
- const c = { tags: [], entries: [...s] };
2168
- await l.callHook("entries:resolve", c);
2169
- for (const r of c.entries) {
2170
- const u = r.resolvedInput || r.input;
2171
- if (r.resolvedInput = await (r.transform ? r.transform(u) : u), r.resolvedInput)
2172
- for (const f of await Dn(r)) {
2173
- const V = { tag: f, entry: r, resolvedOptions: m.resolvedOptions };
2174
- await l.callHook("tag:normalise", V), c.tags.push(V.tag);
2184
+ const u = { tags: [], entries: [...s] };
2185
+ await l.callHook("entries:resolve", u);
2186
+ for (const r of u.entries) {
2187
+ const c = r.resolvedInput || r.input;
2188
+ if (r.resolvedInput = await (r.transform ? r.transform(c) : c), r.resolvedInput)
2189
+ for (const f of await En(r)) {
2190
+ const $ = { tag: f, entry: r, resolvedOptions: m.resolvedOptions };
2191
+ await l.callHook("tag:normalise", $), u.tags.push($.tag);
2175
2192
  }
2176
2193
  }
2177
- return await l.callHook("tags:beforeResolve", c), await l.callHook("tags:resolve", c), await l.callHook("tags:afterResolve", c), c.tags;
2194
+ return await l.callHook("tags:beforeResolve", u), await l.callHook("tags:resolve", u), await l.callHook("tags:afterResolve", u), u.tags;
2178
2195
  },
2179
2196
  ssr: t
2180
2197
  };
2181
2198
  return [
2182
- Nn,
2183
- Mn,
2184
- Ln,
2199
+ Un,
2185
2200
  Fn,
2186
- On,
2187
- qn,
2201
+ jn,
2188
2202
  Gn,
2189
2203
  Wn,
2204
+ Kn,
2205
+ Jn,
2206
+ zn,
2190
2207
  ...n?.plugins || []
2191
- ].forEach((c) => m.use(c)), m.hooks.callHook("init", m), m;
2208
+ ].forEach((u) => m.use(u)), m.hooks.callHook("init", m), m;
2192
2209
  }
2193
- const Jn = uo.startsWith("3");
2194
- function zn(n) {
2210
+ const Xn = mo.startsWith("3");
2211
+ function Zn(n) {
2195
2212
  return typeof n == "function" ? n() : e(n);
2196
2213
  }
2197
2214
  function nt(n, l = "") {
2198
2215
  if (n instanceof Promise)
2199
2216
  return n;
2200
- const t = zn(n);
2217
+ const t = Zn(n);
2201
2218
  return !n || !t ? t : Array.isArray(t) ? t.map((o) => nt(o, l)) : typeof t == "object" ? Object.fromEntries(
2202
2219
  Object.entries(t).map(([o, i]) => o === "titleTemplate" || o.startsWith("on") ? [o, e(i)] : [o, nt(i, o)])
2203
2220
  ) : t;
2204
2221
  }
2205
- const Yn = {
2222
+ const ea = {
2206
2223
  hooks: {
2207
2224
  "entries:resolve": function(n) {
2208
2225
  for (const l of n.entries)
2209
2226
  l.resolvedInput = nt(l.input);
2210
2227
  }
2211
2228
  }
2212
- }, Qn = "usehead";
2213
- function Xn(n) {
2229
+ }, ta = "usehead";
2230
+ function oa(n) {
2214
2231
  return {
2215
2232
  install(t) {
2216
- Jn && (t.config.globalProperties.$unhead = n, t.config.globalProperties.$head = n, t.provide(Qn, n));
2233
+ Xn && (t.config.globalProperties.$unhead = n, t.config.globalProperties.$head = n, t.provide(ta, n));
2217
2234
  }
2218
2235
  }.install;
2219
2236
  }
2220
- function Zn(n = {}) {
2221
- n.domDelayFn = n.domDelayFn || ((t) => co(() => setTimeout(() => t(), 0)));
2222
- const l = /* @__PURE__ */ xn(n);
2223
- return l.use(Yn), l.install = Xn(l), l;
2237
+ function la(n = {}) {
2238
+ n.domDelayFn = n.domDelayFn || ((t) => po(() => setTimeout(() => t(), 0)));
2239
+ const l = /* @__PURE__ */ Yn(n);
2240
+ return l.use(ea), l.install = oa(l), l;
2224
2241
  }
2225
- const ea = fo(), ta = Zn(), oa = yo();
2226
- class la extends HTMLElement {
2242
+ const na = vo(), aa = la(), ia = bo();
2243
+ class sa extends HTMLElement {
2227
2244
  vueApp;
2228
2245
  constructor() {
2229
2246
  super();
@@ -2232,14 +2249,14 @@ class la extends HTMLElement {
2232
2249
  this.vueApp.unmount();
2233
2250
  }
2234
2251
  connectedCallback() {
2235
- const l = ho(kt, this.attributes);
2236
- this.vueApp = po(kt, l), this.vueApp.provide("emitter", oa), this.vueApp.use(ta), this.vueApp.use(ea), this.vueApp.use(So), this.vueApp.use(vo), this.vueApp.use(Ho), this.vueApp.use($o), this.vueApp.use(Vo, { bootstrap: !0 });
2252
+ const l = yo(kt, this.attributes);
2253
+ this.vueApp = fo(kt, l), this.vueApp.provide("emitter", ia), this.vueApp.use(aa), this.vueApp.use(na), this.vueApp.use(Io), this.vueApp.use(go), this.vueApp.use(Eo), this.vueApp.use(To), this.vueApp.use(wo, { bootstrap: !0 });
2237
2254
  const t = document.createElement("div");
2238
2255
  this.vueApp.mount(t), this.appendChild(t.children[0]);
2239
2256
  }
2240
2257
  }
2241
- window.customElements.define("konnectio-hotel", la);
2258
+ window.customElements.define("konnectio-hotel", sa);
2242
2259
  export {
2243
- la as default
2260
+ sa as default
2244
2261
  };
2245
2262
  //# sourceMappingURL=hotel.js.map