@konnectio/core 4.0.56-rc53 → 4.0.56-rc55

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