@konnectio/core 4.0.64 → 4.0.66

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