@konnectio/core 4.0.86 → 4.0.88

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