@konnectio/core 4.0.56-rc31 → 4.0.56-rc33

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