@konnectio/core 4.0.56-rc39 → 4.0.56-rc40

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