@konnectio/core 4.0.83 → 4.0.85

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