@konnectio/core 4.0.56-rc41 → 4.0.56-rc43

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