@konnectio/core 4.0.63 → 4.0.64

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