@konnectio/core 4.0.56-rc53 → 4.0.56-rc54

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