@konnectio/core 4.0.87 → 4.0.89

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-JyyQhohJ.js → ActionField-pRVpEYbK.js} +13 -13
  2. package/dist/ActionField-pRVpEYbK.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-DyueTEga.js +322 -0
  4. package/dist/AvailabilitySkeleton-DyueTEga.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CyxA0DFl.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.js} +262 -262
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.js.br +0 -0
  7. package/dist/{CheckoutWindow-BANXRcdP.js → CheckoutWindow-BrwxMXyf.js} +89 -89
  8. package/dist/CheckoutWindow-BrwxMXyf.js.br +0 -0
  9. package/dist/{ErrorMessage-BkKT-ltk.js → ErrorMessage-CIU5Cn9y.js} +25 -25
  10. package/dist/ErrorMessage-CIU5Cn9y.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-TIP9lliE.js → EventAvailabilityForm-ClaIOEwA.js} +17 -17
  12. package/dist/EventAvailabilityForm-ClaIOEwA.js.br +0 -0
  13. package/dist/{Field-W3dyKX_L.js → Field-DuG8W19B.js} +14 -13
  14. package/dist/Field-DuG8W19B.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-PtGXipvw.js +21 -0
  16. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DghVL0Oa.js → SelectField.vue_vue_type_style_index_0_lang-CDI5Jr8F.js} +5679 -5663
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-CDI5Jr8F.js.br +0 -0
  18. package/dist/{TermsOfService-Ch3BEIIo.js → TermsOfService-D28siuNO.js} +4 -4
  19. package/dist/_-C-ynrhKu.js +5 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BL9CKMuv.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-CMpwvYsv.js → giftCard-vF2jr39r.js} +19 -19
  34. package/dist/giftCard-vF2jr39r.js.br +0 -0
  35. package/dist/hotel.js +1050 -1051
  36. package/dist/hotel.js.br +0 -0
  37. package/dist/{masonry.plugin-DkIwTZE2.js → masonry.plugin-QKZ1Nfp8.js} +606 -605
  38. package/dist/masonry.plugin-QKZ1Nfp8.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 +91 -91
  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-JyyQhohJ.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-DfYTjUoS.js +0 -309
  50. package/dist/AvailabilitySkeleton-DfYTjUoS.js.br +0 -0
  51. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CyxA0DFl.js.br +0 -0
  52. package/dist/CheckoutWindow-BANXRcdP.js.br +0 -0
  53. package/dist/ErrorMessage-BkKT-ltk.js.br +0 -0
  54. package/dist/EventAvailabilityForm-TIP9lliE.js.br +0 -0
  55. package/dist/Field-W3dyKX_L.js.br +0 -0
  56. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DghVL0Oa.js.br +0 -0
  57. package/dist/_-v0hUQXei.js +0 -5
  58. package/dist/_.vue_vue_type_style_index_0_lang-0ivLN3Ws.js +0 -25
  59. package/dist/giftCard-CMpwvYsv.js.br +0 -0
  60. package/dist/masonry.plugin-DkIwTZE2.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-DghVL0Oa.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-DkIwTZE2.js";
5
- import { A as Uo, H as Eo } from "./AvailabilitySkeleton-DfYTjUoS.js";
6
- import { S as Oo } from "./TermsOfService-Ch3BEIIo.js";
7
- import { C as $e, B as Fo, P as Go, a as qo } from "./CheckoutWindow-BANXRcdP.js";
8
- import { _ as Dt } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CyxA0DFl.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 Le, 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-CDI5Jr8F.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 Bo } from "./masonry.plugin-QKZ1Nfp8.js";
5
+ import { A as Ro, H as Lo } from "./AvailabilitySkeleton-DyueTEga.js";
6
+ import { S as Uo } from "./TermsOfService-D28siuNO.js";
7
+ import { C as $e, B as Eo, P as Oo, a as Fo } from "./CheckoutWindow-BrwxMXyf.js";
8
+ import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.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: R,
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: B }) => he + B, 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] = (B) => F(M) ? M.value = B : 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: B,
73
+ title: Ve,
74
+ variants: Te
75
+ }) => (d(), v("div", { key: B }, [
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] = (B) => F(_) ? _.value = B : 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(R),
150
+ "onUpdate:modelValue": O[2] || (O[2] = (B) => F(R) ? R.value = B : 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((B) => _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] = (B) => _e.value = B),
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), (B) => (d(), v("li", {
257
+ key: B.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")} (${B.value})`), 1),
260
+ s("b", null, h(B.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(Le, {
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((R, Y) => {
402
+ const E = R.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(Le, {
437
434
  key: 0,
438
- modelValue: N.id,
439
- "onUpdate:modelValue": (R) => N.id = R,
435
+ modelValue: M.id,
436
+ "onUpdate:modelValue": (R) => M.id = R,
440
437
  label: e(t)("hotel.roomVariant"),
441
438
  placeholder: e(t)("hotel.chooseARoomVariant"),
442
439
  options: a.value,
443
440
  searchable: !1,
444
441
  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, ({
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, ({
448
445
  id: R,
449
446
  maximumOccupants: Y
450
447
  }) => (d(), v("div", {
451
448
  key: R,
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 === R ? (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(R),
464
+ readonly: !(C(R).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(R, 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(Le, {
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(Le, {
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,170 @@ 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(Ro, { 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 }, Bn = { key: 0 }, Rn = {
906
903
  key: 0,
907
904
  id: "booking-availability-packages"
908
- }, jn = {
905
+ }, Ln = {
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: {},
951
+ sortBy: { default: "default" },
954
952
  styling: {}
955
953
  },
956
- setup(n) {
957
- const t = vo(() => import("./_-v0hUQXei.js")), l = n, { t: o } = ie(), {
954
+ setup(l) {
955
+ const t = fo(() => import("./_-C-ynrhKu.js")), n = l, { t: o } = se(), {
958
956
  currentLocation: i,
959
957
  templateID: a,
960
958
  templateAddons: r,
961
959
  countries: f,
962
960
  areListingsLoading: u,
963
- isPaymentLoading: p,
964
- isReservationFormFilled: c,
961
+ isPaymentLoading: c,
962
+ isReservationFormFilled: p,
965
963
  travelingFor: m,
966
- arrivalTime: b,
967
- departureTime: $,
968
- name: S,
969
- nameTitle: I,
964
+ arrivalTime: g,
965
+ departureTime: w,
966
+ name: C,
967
+ nameTitle: S,
970
968
  email: G,
971
- phone: H,
972
- firmName: L,
973
- postal: k,
974
- city: P,
975
- address: N,
969
+ phone: D,
970
+ firmName: K,
971
+ postal: _,
972
+ city: A,
973
+ address: M,
976
974
  country: z,
977
975
  remark: R,
978
976
  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,
977
+ roomSelect: E,
978
+ roomDisplay: ae,
979
+ hasValidRoomSelection: ie,
980
+ availabilityData: j,
981
+ selectionHasNoAddons: Pe,
982
+ isAvailabilityDataAvailable: ge,
983
+ getSelectedPackageRoom: be,
984
+ selectedPackage: _e,
985
+ isSearchOutdated: Ae,
986
+ currentChildren: ee,
987
+ isTemplateReservation: O,
990
988
  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(() => [
989
+ } = X(ye()), {
990
+ adults: B,
991
+ children: Ve,
992
+ location: Te,
993
+ arrivalDate: He,
994
+ departureDate: Ee,
995
+ hasHotelLocations: re
996
+ } = X(Ce()), { isValidHotelId: Oe, updateDates: at } = Ce(), {
997
+ currency: Fe,
998
+ enableTracking: Mt,
999
+ disableNamePrefix: Bt,
1000
+ disableTravelingFor: Rt,
1001
+ disableTravelingForBleasure: Lt,
1002
+ disableCompanyField: Ut,
1003
+ hasPaymentGateway: Et,
1004
+ maxAdultAmount: it,
1005
+ maxChildAmount: st,
1006
+ defaultAdultAmount: Ot,
1007
+ defaultChildAmount: Ft,
1008
+ disableNewsletterSignup: Gt
1009
+ } = X(ve()), {
1010
+ hasArrivalDepartureInputs: qt,
1011
+ hasUserArrivalSelection: Ge,
1012
+ hasUserDepartureSelection: qe,
1013
+ earliestArrivalTime: jt,
1014
+ latestArrivalTime: Wt,
1015
+ earliestDepartureTime: xt,
1016
+ latestDepartureTime: Kt
1017
+ } = ve(), { beginCheckout: Jt } = Tt(), { display: Se } = $t(), {
1018
+ resetTemplate: zt,
1019
+ resetDiscountVoucher: Yt,
1020
+ createReservation: Qt,
1021
+ fetchMetadata: Xt,
1022
+ fetchAvailabilityData: rt,
1023
+ filterAddons: dt
1024
+ } = ye(), Zt = le(!0), eo = x(() => [
1026
1025
  {
1027
1026
  id: "availability",
1028
1027
  label: o("booking.availability.title"),
@@ -1047,8 +1046,8 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1047
1046
  label: o("booking.confirmation.title"),
1048
1047
  icon: "calendar-check"
1049
1048
  }
1050
- ]), no = K(() => {
1051
- const _ = [
1049
+ ]), to = x(() => {
1050
+ const b = [
1052
1051
  {
1053
1052
  label: o("booking.reservation.business"),
1054
1053
  value: "Business"
@@ -1058,136 +1057,136 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1058
1057
  value: "Pleasure"
1059
1058
  }
1060
1059
  ];
1061
- return jt.value || _.push({
1060
+ return Lt.value || b.push({
1062
1061
  label: o("booking.reservation.bleasure"),
1063
1062
  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;
1063
+ }), b;
1064
+ }), oo = x(() => {
1065
+ const b = j.value.roomGroups.slice();
1066
+ function V(J, P) {
1067
+ return Zt.value === !0 ? J.pricesFrom > P.pricesFrom ? -1 : 1 : J.pricesFrom > P.pricesFrom ? 1 : -1;
1069
1068
  }
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();
1069
+ return n.sortBy === "price" ? b.sort(V) : b;
1070
+ }), je = x(() => n.hideAddons === "yes" || O.value && n.hideAddons === "packages" || !O.value && n.hideAddons === "rooms");
1071
+ function ut(b) {
1072
+ je.value || Pe.value ? b(2) : b(), Yt();
1074
1073
  }
1075
- async function ao(_, T) {
1076
- await Zt(_, T);
1074
+ async function no(b, V) {
1075
+ await Qt(b, V);
1077
1076
  }
1078
- function io() {
1079
- if (isNaN(x.value) && Fe.value) {
1080
- He({
1077
+ function lo() {
1078
+ if (isNaN(Te.value) && re.value) {
1079
+ Se({
1081
1080
  message: o("alert.error.selectHotelId"),
1082
1081
  type: "error"
1083
1082
  });
1084
1083
  return;
1085
1084
  }
1086
- mt();
1085
+ rt();
1087
1086
  }
1088
- function so(_) {
1089
- Ot.value && Yt(), xe.value || ye.value ? _(2) : _();
1087
+ function ao(b) {
1088
+ Mt.value && Jt(), je.value || Pe.value ? b(2) : b();
1090
1089
  }
1091
- function ro() {
1092
- const _ = Po("history", {
1090
+ function io() {
1091
+ const b = $o("history", {
1093
1092
  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({
1093
+ }), V = parseInt(b.a), J = parseInt(b.c), P = parseInt(b.hid), I = parseInt(b.n), k = b.ci, L = b.co, N = b.id;
1094
+ let te = !1;
1095
+ if (isNaN(V) || (V > it.value ? B.value = it.value : B.value = V, B.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
1096
  message: o("alert.error.hotelIdNotFound"),
1098
1097
  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({
1098
+ })), k && L)
1099
+ if (mt(k) && mt(L)) {
1100
+ const ke = new Date(k), de = new Date(L);
1101
+ ke <= de ? (He.value = ke, Ee.value = de) : (b.ci = void 0, b.co = void 0, Se({
1103
1102
  message: o("alert.error.invalidDateRange"),
1104
1103
  type: "error"
1105
1104
  }));
1106
1105
  } else
1107
- He({
1106
+ Se({
1108
1107
  message: o("alert.error.wrongDateFormat"),
1109
1108
  type: "error"
1110
1109
  });
1111
- let X = null;
1112
- M && (X = M), l.disableDefaultLocation === "yes" && oe === !1 ? (x.value = void 0, i.value = void 0) : mt(X);
1110
+ let Q = null;
1111
+ N && (Q = N), n.disableDefaultLocation === "yes" && te === !1 ? (Te.value = void 0, i.value = void 0) : rt(Q);
1113
1112
  }
1114
- return (_, T) => (d(), A(Co, { styling: _.styling }, {
1115
- default: w(() => [
1116
- (d(), A(ho, { onResolve: ro }, {
1117
- default: w(() => [
1113
+ return (b, V) => (d(), H(wo, { styling: b.styling }, {
1114
+ default: $(() => [
1115
+ (d(), H(mo, { onResolve: io }, {
1116
+ default: $(() => [
1118
1117
  y(e(t), {
1119
1118
  id: "konnectio-hotel-module",
1120
- "access-token": _.accessToken,
1121
- callback: e(eo)
1119
+ "access-token": b.accessToken,
1120
+ callback: e(Xt)
1122
1121
  }, {
1123
- default: w(() => [
1124
- y(Mo, {
1125
- layout: _.headerLayout,
1126
- steps: oo.value,
1127
- onReset: e(Qt)
1122
+ default: $(() => [
1123
+ y(Do, {
1124
+ layout: b.headerLayout,
1125
+ steps: eo.value,
1126
+ onReset: e(zt)
1128
1127
  }, {
1129
- availability: w(({ next: J }) => [
1130
- y(Xe, null, {
1131
- form: w(() => [
1132
- s("div", En, [
1133
- s("div", On, [
1134
- y(Eo, {
1128
+ availability: $(({ next: J }) => [
1129
+ y(Ye, null, {
1130
+ form: $(() => [
1131
+ s("div", In, [
1132
+ s("div", Nn, [
1133
+ y(Lo, {
1135
1134
  booking: !0,
1136
- "selected-location": Number(_.selectedLocation),
1137
- "disable-default-location": _.disableDefaultLocation === "yes"
1135
+ "selected-location": Number(b.selectedLocation),
1136
+ "disable-default-location": b.disableDefaultLocation === "yes"
1138
1137
  }, null, 8, ["selected-location", "disable-default-location"])
1139
1138
  ]),
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, [
1139
+ T("", !0),
1140
+ !e(u) && e(ge) ? (d(), v("div", Mn, [
1141
+ e(j).roomGroups.length > 0 || e(j).templates.length > 0 || e(j).specialTemplates.length > 0 ? (d(), v("div", Bn, [
1142
+ e(j).templates.length > 0 && b.onlyShow !== "rooms" ? (d(), v("div", Rn, [
1143
+ b.onlyShow !== "packages" ? (d(), v("h2", Ln, [
1145
1144
  y(W, {
1146
1145
  icon: "box",
1147
1146
  type: "fal",
1148
1147
  color: "header"
1149
1148
  }),
1150
1149
  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,
1150
+ ])) : T("", !0),
1151
+ s("ul", Un, [
1152
+ (d(!0), v(U, null, q(e(j).templates, ({
1153
+ id: P,
1154
+ name: I,
1155
+ templateRoomGroups: k,
1156
+ image: L,
1157
+ description: N,
1158
+ weekendFee: te
1159
+ }) => (d(), H(kn, {
1160
+ key: P,
1161
+ id: P,
1162
+ description: N,
1163
+ name: I,
1164
+ image: L,
1165
+ weekendFee: te,
1166
+ "room-groups": k,
1168
1167
  callback: J,
1169
- "hide-addons": _.hideAddons === "yes" || _.hideAddons === "packages"
1168
+ "hide-addons": b.hideAddons === "yes" || b.hideAddons === "packages"
1170
1169
  }, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
1171
1170
  ])
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, [
1171
+ ])) : T("", !0),
1172
+ e(j).roomGroups.length > 0 && b.onlyShow !== "packages" ? (d(), v("div", En, [
1173
+ e(j).templates.length > 0 && b.onlyShow !== "rooms" ? (d(), v("h2", On, [
1175
1174
  y(W, {
1176
1175
  icon: "house",
1177
1176
  type: "fal",
1178
1177
  color: "header"
1179
1178
  }),
1180
1179
  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
1180
+ ])) : T("", !0),
1181
+ s("ul", Fn, [
1182
+ (d(!0), v(U, null, q(oo.value, (P, I) => (d(), H(mn, {
1183
+ room: P,
1184
+ key: I
1186
1185
  }, null, 8, ["room"]))), 128))
1187
1186
  ])
1188
- ])) : V("", !0),
1189
- e(q).specialTemplates.length > 0 && _.onlyShow !== "rooms" ? (d(), v("div", zn, [
1190
- s("h2", Yn, [
1187
+ ])) : T("", !0),
1188
+ e(j).specialTemplates.length > 0 && b.onlyShow !== "rooms" ? (d(), v("div", Gn, [
1189
+ s("h2", qn, [
1191
1190
  y(W, {
1192
1191
  icon: "sparkles",
1193
1192
  type: "fal",
@@ -1195,37 +1194,37 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1195
1194
  }),
1196
1195
  s("span", null, h(e(o)("hotel.specialOffers")), 1)
1197
1196
  ]),
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,
1197
+ s("ul", jn, [
1198
+ (d(!0), v(U, null, q(e(j).specialTemplates, ({
1199
+ id: P,
1200
+ name: I,
1201
+ templateRoomGroups: k,
1202
+ image: L,
1203
+ description: N,
1204
+ weekendFee: te,
1205
+ fromDate: Q,
1206
+ toDate: ke
1207
+ }) => (d(), H(_n, {
1208
+ key: P,
1209
+ id: P,
1210
+ description: N,
1211
+ name: I,
1212
+ image: L,
1213
+ fromDate: Q,
1214
+ toDate: ke,
1215
+ weekendFee: te,
1216
+ "room-groups": k,
1218
1217
  callback: J
1219
1218
  }, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
1220
1219
  ])
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, [
1220
+ ])) : T("", !0),
1221
+ (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
1222
  s("span", null, h(e(o)("booking.availability.nothingAvailable")), 1)
1224
- ])) : V("", !0)
1225
- ])) : e(q).nextAvailableDates.length === 0 ? (d(), v("div", Zn, [
1223
+ ])) : T("", !0)
1224
+ ])) : e(j).nextAvailableDates.length === 0 ? (d(), v("div", xn, [
1226
1225
  s("span", null, h(e(o)("booking.availability.nothingAvailable")), 1)
1227
- ])) : (d(), v("div", el, [
1228
- s("h2", tl, [
1226
+ ])) : (d(), v("div", Kn, [
1227
+ s("h2", Jn, [
1229
1228
  y(W, {
1230
1229
  icon: "calendar-circle-exclamation",
1231
1230
  type: "fal",
@@ -1233,21 +1232,21 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1233
1232
  }),
1234
1233
  s("span", null, h(e(o)("booking.availability.nextAvailableDates")), 1)
1235
1234
  ]),
1236
- s("ul", ol, [
1237
- (d(!0), v(E, null, j(e(q).nextAvailableDates, (C, D) => (d(), v("li", { key: D }, [
1235
+ s("ul", zn, [
1236
+ (d(!0), v(U, null, q(e(j).nextAvailableDates, (P, I) => (d(), v("li", { key: I }, [
1238
1237
  s("h3", {
1239
- title: `${e(ne)(C.fromDate, 0, !0)} - ${e(ne)(C.toDate, 0, !0)}`
1238
+ title: `${e(oe)(P.fromDate, 0, !0)} - ${e(oe)(P.toDate, 0, !0)}`
1240
1239
  }, [
1241
- s("span", null, h(`${e(ne)(C.fromDate, 0, !0)} - ${e(ne)(C.toDate, 0, !0)}`), 1)
1242
- ], 8, nl),
1240
+ s("span", null, h(`${e(oe)(P.fromDate, 0, !0)} - ${e(oe)(P.toDate, 0, !0)}`), 1)
1241
+ ], 8, Yn),
1243
1242
  s("ul", null, [
1244
- isNaN(C.roomCount) ? V("", !0) : (d(), v("li", ll, [
1243
+ isNaN(P.roomCount) ? T("", !0) : (d(), v("li", Qn, [
1245
1244
  y(W, {
1246
1245
  icon: "house",
1247
1246
  type: "fal",
1248
1247
  color: "header"
1249
1248
  }),
1250
- s("span", null, h(e(o)("booking.availability.units")) + ": " + h(C.roomCount), 1)
1249
+ s("span", null, h(e(o)("booking.availability.units")) + ": " + h(P.roomCount), 1)
1251
1250
  ])),
1252
1251
  s("li", null, [
1253
1252
  y(W, {
@@ -1255,167 +1254,167 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1255
1254
  type: "fal",
1256
1255
  color: "header"
1257
1256
  }),
1258
- s("span", null, h(e(o)("booking.availability.pricesFrom")) + ": " + h(e(le)(C.priceStartFrom, e(Te))) + " " + h(e(o)("general.perNight")), 1)
1257
+ s("span", null, h(e(o)("booking.availability.pricesFrom")) + ": " + h(e(ne)(P.priceStartFrom, e(Fe))) + " " + h(e(o)("general.perNight")), 1)
1259
1258
  ])
1260
1259
  ]),
1261
1260
  y(me, {
1262
1261
  label: e(o)("booking.availability.selectDates"),
1263
1262
  "full-width": "",
1264
- onClickEvent: (g) => e(Se)(new Date(C.fromDate), new Date(C.toDate))
1263
+ onClickEvent: (k) => e(at)(new Date(P.fromDate), new Date(P.toDate))
1265
1264
  }, null, 8, ["label", "onClickEvent"])
1266
1265
  ]))), 128))
1267
1266
  ])
1268
1267
  ]))
1269
- ])) : isNaN(e(i)) && !e(u) ? (d(), v("div", al, [
1268
+ ])) : isNaN(e(i)) && !e(u) ? (d(), v("div", Xn, [
1270
1269
  s("span", null, h(e(o)("alert.info.selectHotelToStart")), 1)
1271
- ])) : (d(), v("div", il, [
1272
- y(Qe),
1273
- y(Qe),
1274
- y(Qe)
1270
+ ])) : (d(), v("div", Zn, [
1271
+ y(ze),
1272
+ y(ze),
1273
+ y(ze)
1275
1274
  ]))
1276
1275
  ])
1277
1276
  ]),
1278
- navigation: w(() => [
1279
- e(dt) ? (d(), A(me, {
1277
+ navigation: $(() => [
1278
+ e(Ae) ? (d(), H(me, {
1280
1279
  key: 0,
1281
1280
  label: isNaN(e(i)) ? e(o)("availability.buttonLabel") : e(o)("general.searchAgain"),
1282
1281
  "is-loading": e(u),
1283
1282
  "full-width": "",
1284
- onClickEvent: T[1] || (T[1] = (C) => io())
1285
- }, null, 8, ["label", "is-loading"])) : (d(), A(me, {
1283
+ onClickEvent: V[1] || (V[1] = (P) => lo())
1284
+ }, null, 8, ["label", "is-loading"])) : (d(), H(me, {
1286
1285
  key: 1,
1287
- label: e(ye) || xe.value ? e(o)("booking.availability.nextButton") : e(o)("general.chooseAddons"),
1288
- disabled: !e(te),
1286
+ label: e(Pe) || je.value ? e(o)("booking.availability.nextButton") : e(o)("general.chooseAddons"),
1287
+ disabled: !e(ie),
1289
1288
  "full-width": "",
1290
- onClickEvent: (C) => so(J)
1289
+ onClickEvent: (P) => ao(J)
1291
1290
  }, null, 8, ["label", "disabled", "onClickEvent"]))
1292
1291
  ]),
1293
1292
  _: 2
1294
1293
  }, 1024)
1295
1294
  ]),
1296
- addons: w(({ next: J, prev: C }) => [
1297
- e(ke) ? (d(), A(Xe, {
1295
+ addons: $(({ next: J, prev: P }) => [
1296
+ e(ge) ? (d(), H(Ye, {
1298
1297
  key: 0,
1299
- "prev-callback": () => ht(C)
1298
+ "prev-callback": () => ut(P)
1300
1299
  }, {
1301
- form: w(() => [
1302
- s("form", sl, [
1300
+ form: $(() => [
1301
+ s("form", el, [
1303
1302
  s("h2", null, [
1304
1303
  s("span", null, h(e(o)("booking.reservation.addons")), 1)
1305
1304
  ]),
1306
1305
  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
1306
+ isNaN(e(a)) ? (d(), v("div", tl, [
1307
+ (d(!0), v(U, null, q(e(ae), (I) => (d(), v("ul", {
1308
+ key: I.roomGroupID
1310
1309
  }, [
1311
- (d(!0), v(E, null, j(D.variants, (g, U) => (d(), v("li", {
1312
- key: g.ratePlanID
1310
+ (d(!0), v(U, null, q(I.variants, (k, L) => (d(), v("li", {
1311
+ key: k.ratePlanID
1313
1312
  }, [
1314
1313
  s("h4", null, [
1315
- s("span", null, h(e(pe)(D.title)), 1)
1314
+ s("span", null, h(e(pe)(I.title)), 1)
1316
1315
  ]),
1317
- (d(!0), v(E, null, j(g.rooms, (M, oe) => (d(), v("table", {
1318
- key: oe,
1316
+ (d(!0), v(U, null, q(k.rooms, (N, te) => (d(), v("table", {
1317
+ key: te,
1319
1318
  class: "konnectio-table with-lines"
1320
1319
  }, [
1321
1320
  s("thead", null, [
1322
1321
  s("tr", null, [
1323
1322
  s("th", null, [
1324
- s("span", null, h(e(pe)(g.name)), 1)
1323
+ s("span", null, h(e(pe)(k.name)), 1)
1325
1324
  ]),
1326
- V("", !0),
1327
- s("th", dl, [
1325
+ T("", !0),
1326
+ s("th", ol, [
1328
1327
  s("b", null, [
1329
1328
  y(W, {
1330
1329
  icon: "male",
1331
1330
  type: "fas",
1332
1331
  color: "font"
1333
1332
  }),
1334
- s("span", null, h(M.adultsCount), 1),
1335
- M.childrenCount > 0 ? (d(), A(W, {
1333
+ s("span", null, h(N.adultsCount), 1),
1334
+ N.childrenCount > 0 ? (d(), H(W, {
1336
1335
  key: 0,
1337
1336
  icon: "child",
1338
1337
  type: "fas",
1339
1338
  color: "font"
1340
- })) : V("", !0),
1341
- M.childrenCount > 0 ? (d(), v("span", ul, h(M.childrenCount), 1)) : V("", !0)
1339
+ })) : T("", !0),
1340
+ N.childrenCount > 0 ? (d(), v("span", nl, h(N.childrenCount), 1)) : T("", !0)
1342
1341
  ])
1343
1342
  ])
1344
1343
  ])
1345
1344
  ]),
1346
1345
  s("tbody", null, [
1347
- (d(!0), v(E, null, j(e(ft)(g.addons, M.childrenCount), ({
1348
- quantityStrategy: X,
1349
- maximumNumber: _e,
1346
+ (d(!0), v(U, null, q(e(dt)(k.addons, N.childrenCount), ({
1347
+ quantityStrategy: Q,
1348
+ maximumNumber: ke,
1350
1349
  id: de,
1351
- name: uo,
1352
- price: co
1350
+ name: so,
1351
+ price: ro
1353
1352
  }) => (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)
1353
+ s("td", ll, [
1354
+ s("b", null, h(e(pe)(so)), 1),
1355
+ s("span", null, h(e(ne)(ro, e(Fe))) + " " + h(e(pt)(Q)), 1)
1357
1356
  ]),
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, {
1357
+ s("td", al, [
1358
+ e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx] ? (d(), v(U, { key: 0 }, [
1359
+ Q === 1 || Q === 12 ? (d(), H(et, {
1361
1360
  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,
1361
+ modelValue: e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de],
1362
+ "onUpdate:modelValue": (We) => e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de] = We,
1364
1363
  small: !0,
1365
1364
  "min-value": 0,
1366
- "max-value": _e || 1 / 0
1367
- }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), A($e, {
1365
+ "max-value": ke || 1 / 0
1366
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), H($e, {
1368
1367
  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,
1368
+ modelValue: e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de],
1369
+ "onUpdate:modelValue": (We) => e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de] = We,
1371
1370
  numeric: !0
1372
1371
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1373
- ], 64)) : V("", !0)
1372
+ ], 64)) : T("", !0)
1374
1373
  ])
1375
1374
  ]))), 128))
1376
1375
  ])
1377
1376
  ]))), 128))
1378
1377
  ]))), 128))
1379
1378
  ]))), 128))
1380
- ])) : e(ge) ? (d(), v("div", ml, [
1379
+ ])) : e(be) ? (d(), v("div", il, [
1381
1380
  s("div", null, [
1382
1381
  s("h4", null, [
1383
- s("span", null, h(e(Ee).name), 1)
1382
+ s("span", null, h(e(_e).name), 1)
1384
1383
  ]),
1385
- s("table", fl, [
1384
+ s("table", sl, [
1386
1385
  s("thead", null, [
1387
1386
  s("tr", null, [
1388
1387
  s("th", null, [
1389
- s("span", null, h(e(pe)(e(ge).title)), 1)
1388
+ s("span", null, h(e(pe)(e(be).title)), 1)
1390
1389
  ]),
1391
- V("", !0),
1392
- hl
1390
+ T("", !0),
1391
+ V[19] || (V[19] = s("th", { class: "konnectio-event-addons-price" }, null, -1))
1393
1392
  ])
1394
1393
  ]),
1395
1394
  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)
1395
+ (d(!0), v(U, null, q(e(dt)(e(be).addons, e(ee)), ({
1396
+ quantityStrategy: I,
1397
+ maximumNumber: k,
1398
+ id: L,
1399
+ name: N,
1400
+ price: te
1401
+ }) => (d(), v("tr", { key: L }, [
1402
+ s("td", rl, [
1403
+ s("b", null, h(e(pe)(N)), 1),
1404
+ s("span", null, h(e(ne)(te, e(Fe))) + " " + h(e(pt)(I)), 1)
1406
1405
  ]),
1407
- s("td", yl, [
1408
- D === 1 || D === 12 ? (d(), A(ot, {
1406
+ s("td", dl, [
1407
+ I === 1 || I === 12 ? (d(), H(et, {
1409
1408
  key: 0,
1410
- modelValue: e(r)[U],
1411
- "onUpdate:modelValue": (X) => e(r)[U] = X,
1409
+ modelValue: e(r)[L],
1410
+ "onUpdate:modelValue": (Q) => e(r)[L] = Q,
1412
1411
  small: !0,
1413
1412
  "min-value": 0,
1414
- "max-value": g || 1 / 0
1415
- }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), A($e, {
1413
+ "max-value": k || 1 / 0
1414
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), H($e, {
1416
1415
  key: 1,
1417
- modelValue: e(r)[U],
1418
- "onUpdate:modelValue": (X) => e(r)[U] = X,
1416
+ modelValue: e(r)[L],
1417
+ "onUpdate:modelValue": (Q) => e(r)[L] = Q,
1419
1418
  numeric: !0
1420
1419
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1421
1420
  ])
@@ -1423,11 +1422,11 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1423
1422
  ])
1424
1423
  ])
1425
1424
  ])
1426
- ])) : V("", !0)
1425
+ ])) : T("", !0)
1427
1426
  ])
1428
1427
  ])
1429
1428
  ]),
1430
- navigation: w(() => [
1429
+ navigation: $(() => [
1431
1430
  y(me, {
1432
1431
  label: e(o)("general.startReservation"),
1433
1432
  "full-width": "",
@@ -1435,53 +1434,53 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1435
1434
  }, null, 8, ["label", "onClickEvent"])
1436
1435
  ]),
1437
1436
  _: 2
1438
- }, 1032, ["prev-callback"])) : V("", !0)
1437
+ }, 1032, ["prev-callback"])) : T("", !0)
1439
1438
  ]),
1440
- reservation: w(({ next: J, prev: C, reset: D }) => [
1441
- e(ke) ? (d(), A(Xe, {
1439
+ reservation: $(({ next: J, prev: P, reset: I }) => [
1440
+ e(ge) ? (d(), H(Ye, {
1442
1441
  key: 0,
1443
- "prev-callback": () => ht(C),
1442
+ "prev-callback": () => ut(P),
1444
1443
  "show-terms-notice": !0,
1445
1444
  "show-gift-card": !0
1446
1445
  }, {
1447
- form: w(() => [
1448
- s("form", kl, [
1446
+ form: $(() => [
1447
+ s("form", ul, [
1449
1448
  s("h2", null, [
1450
1449
  s("span", null, h(e(o)("booking.reservation.detailsTitle")), 1)
1451
1450
  ]),
1452
- !e(Ft) && !(e(je) && e(We)) ? (d(), v("ul", {
1451
+ e(qt)(e(i)) && e(Ge)(e(i)) && e(qe)(e(i)) ? (d(), v("ul", {
1453
1452
  key: 0,
1454
- class: Ne(["konnectio-reservation-timepicker", { "konnectio-split-inputs": !e(je) && !e(We) }])
1453
+ class: Me(["konnectio-reservation-timepicker", { "konnectio-split-inputs": e(Ge)(e(i)) && e(qe)(e(i)) }])
1455
1454
  }, [
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),
1455
+ e(Ge)(e(i)) ? (d(), v("li", cl, [
1456
+ y(ft, {
1457
+ modelValue: e(g),
1458
+ "onUpdate:modelValue": V[2] || (V[2] = (k) => F(g) ? g.value = k : null),
1460
1459
  label: e(o)("booking.reservation.arrivalTime"),
1461
1460
  icon: "hourglass-start",
1462
- "min-time": e(re),
1463
- "max-time": e(qe),
1461
+ "min-time": e(jt)(e(i)),
1462
+ "max-time": e(Wt)(e(i)),
1464
1463
  required: ""
1465
1464
  }, 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),
1465
+ ])) : T("", !0),
1466
+ e(qe)(e(i)) ? (d(), v("li", pl, [
1467
+ y(ft, {
1468
+ modelValue: e(w),
1469
+ "onUpdate:modelValue": V[3] || (V[3] = (k) => F(w) ? w.value = k : null),
1471
1470
  label: e(o)("booking.reservation.departureTime"),
1472
1471
  icon: "hourglass-end",
1473
- "min-time": e(ut),
1474
- "max-time": e(Et),
1472
+ "min-time": e(xt)(e(i)),
1473
+ "max-time": e(Kt)(e(i)),
1475
1474
  required: ""
1476
1475
  }, 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),
1476
+ ])) : T("", !0)
1477
+ ], 2)) : T("", !0),
1478
+ y(Cn, {
1479
+ modelValue: e(C),
1480
+ "onUpdate:modelValue": V[4] || (V[4] = (k) => F(C) ? C.value = k : null),
1481
+ title: e(S),
1482
+ "onUpdate:title": V[5] || (V[5] = (k) => F(S) ? S.value = k : null),
1483
+ "exclude-title": e(Bt),
1485
1484
  label: e(o)("booking.reservation.name"),
1486
1485
  icon: "user-alt",
1487
1486
  placeholder: e(o)("booking.reservation.namePlaceholder"),
@@ -1489,7 +1488,7 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1489
1488
  }, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
1490
1489
  y(ue, {
1491
1490
  modelValue: e(G),
1492
- "onUpdate:modelValue": T[6] || (T[6] = (g) => F(G) ? G.value = g : null),
1491
+ "onUpdate:modelValue": V[6] || (V[6] = (k) => F(G) ? G.value = k : null),
1493
1492
  type: "email",
1494
1493
  name: "email",
1495
1494
  autocomplete: "email",
@@ -1499,19 +1498,19 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1499
1498
  placeholder: e(o)("booking.reservation.emailPlaceholder"),
1500
1499
  required: ""
1501
1500
  }, null, 8, ["modelValue", "label", "placeholder"]),
1502
- e(zt) ? V("", !0) : (d(), v("div", _l, [
1501
+ e(Gt) ? T("", !0) : (d(), v("div", ml, [
1503
1502
  y($e, {
1504
1503
  modelValue: e(he),
1505
- "onUpdate:modelValue": T[7] || (T[7] = (g) => F(he) ? he.value = g : null),
1504
+ "onUpdate:modelValue": V[7] || (V[7] = (k) => F(he) ? he.value = k : null),
1506
1505
  type: "checkbox",
1507
1506
  name: "newsletter",
1508
1507
  label: e(o)("booking.reservation.newsletterSignUp")
1509
1508
  }, null, 8, ["modelValue", "label"])
1510
1509
  ])),
1511
- e(Wt) ? V("", !0) : (d(), A(ue, {
1510
+ e(Ut) ? T("", !0) : (d(), H(ue, {
1512
1511
  key: 2,
1513
- modelValue: e(L),
1514
- "onUpdate:modelValue": T[8] || (T[8] = (g) => F(L) ? L.value = g : null),
1512
+ modelValue: e(K),
1513
+ "onUpdate:modelValue": V[8] || (V[8] = (k) => F(K) ? K.value = k : null),
1515
1514
  type: "text",
1516
1515
  name: "firm",
1517
1516
  autocomplete: "firm",
@@ -1519,25 +1518,25 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1519
1518
  icon: "id-card",
1520
1519
  placeholder: e(o)("booking.reservation.companyNamePlaceholder")
1521
1520
  }, 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),
1521
+ y(Oo, {
1522
+ modelValue: e(D),
1523
+ "onUpdate:modelValue": V[9] || (V[9] = (k) => F(D) ? D.value = k : null),
1525
1524
  icon: "phone-office",
1526
1525
  label: e(o)("booking.reservation.phone"),
1527
1526
  placeholder: e(o)("booking.reservation.phonePlaceholder"),
1528
1527
  required: ""
1529
1528
  }, null, 8, ["modelValue", "label", "placeholder"]),
1530
- y(Hn, {
1529
+ y(wn, {
1531
1530
  modelValue: e(z),
1532
- "onUpdate:modelValue": T[10] || (T[10] = (g) => F(z) ? z.value = g : null),
1531
+ "onUpdate:modelValue": V[10] || (V[10] = (k) => F(z) ? z.value = k : null),
1533
1532
  label: e(o)("booking.reservation.country"),
1534
1533
  placeholder: e(o)("booking.reservation.countryPlaceholder"),
1535
1534
  options: e(f),
1536
1535
  required: ""
1537
1536
  }, null, 8, ["modelValue", "label", "placeholder", "options"]),
1538
1537
  y(ue, {
1539
- modelValue: e(N),
1540
- "onUpdate:modelValue": T[11] || (T[11] = (g) => F(N) ? N.value = g : null),
1538
+ modelValue: e(M),
1539
+ "onUpdate:modelValue": V[11] || (V[11] = (k) => F(M) ? M.value = k : null),
1541
1540
  type: "textarea",
1542
1541
  name: "address",
1543
1542
  autocomplete: "street-address",
@@ -1546,11 +1545,11 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1546
1545
  placeholder: e(o)("booking.reservation.streetAddressPlaceholder"),
1547
1546
  required: ""
1548
1547
  }, null, 8, ["modelValue", "label", "placeholder"]),
1549
- s("ul", Vl, [
1548
+ s("ul", fl, [
1550
1549
  s("li", null, [
1551
1550
  y(ue, {
1552
- modelValue: e(k),
1553
- "onUpdate:modelValue": T[12] || (T[12] = (g) => F(k) ? k.value = g : null),
1551
+ modelValue: e(_),
1552
+ "onUpdate:modelValue": V[12] || (V[12] = (k) => F(_) ? _.value = k : null),
1554
1553
  type: "text",
1555
1554
  name: "postal",
1556
1555
  autocomplete: "postal-code",
@@ -1562,8 +1561,8 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1562
1561
  ]),
1563
1562
  s("li", null, [
1564
1563
  y(ue, {
1565
- modelValue: e(P),
1566
- "onUpdate:modelValue": T[13] || (T[13] = (g) => F(P) ? P.value = g : null),
1564
+ modelValue: e(A),
1565
+ "onUpdate:modelValue": V[13] || (V[13] = (k) => F(A) ? A.value = k : null),
1567
1566
  type: "text",
1568
1567
  name: "city",
1569
1568
  autocomplete: "address-level2",
@@ -1576,7 +1575,7 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1576
1575
  ]),
1577
1576
  y(ue, {
1578
1577
  modelValue: e(R),
1579
- "onUpdate:modelValue": T[14] || (T[14] = (g) => F(R) ? R.value = g : null),
1578
+ "onUpdate:modelValue": V[14] || (V[14] = (k) => F(R) ? R.value = k : null),
1580
1579
  type: "textarea",
1581
1580
  label: `${e(o)("booking.reservation.remark")} (${e(o)("booking.reservation.optional")})`,
1582
1581
  icon: "info-circle",
@@ -1584,41 +1583,41 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1584
1583
  }, null, 8, ["modelValue", "label", "placeholder"]),
1585
1584
  y(ue, {
1586
1585
  modelValue: e(Y),
1587
- "onUpdate:modelValue": T[15] || (T[15] = (g) => F(Y) ? Y.value = g : null),
1586
+ "onUpdate:modelValue": V[15] || (V[15] = (k) => F(Y) ? Y.value = k : null),
1588
1587
  type: "textarea",
1589
1588
  label: `${e(o)("booking.reservation.allergies")} (${e(o)("booking.reservation.optional")})`,
1590
1589
  icon: "allergies",
1591
1590
  placeholder: e(o)("booking.reservation.allergiesPlaceholder")
1592
1591
  }, null, 8, ["modelValue", "label", "placeholder"]),
1593
- e(qt) ? V("", !0) : (d(), A(No, {
1592
+ e(Rt) ? T("", !0) : (d(), H(Io, {
1594
1593
  key: 3,
1595
1594
  modelValue: e(m),
1596
- "onUpdate:modelValue": T[16] || (T[16] = (g) => F(m) ? m.value = g : null),
1595
+ "onUpdate:modelValue": V[16] || (V[16] = (k) => F(m) ? m.value = k : null),
1597
1596
  label: `${e(o)("booking.reservation.purposeOfStay")} (${e(o)("booking.reservation.optional")})`,
1598
1597
  name: "travelingFor",
1599
- checkboxes: no.value
1598
+ checkboxes: to.value
1600
1599
  }, null, 8, ["modelValue", "label", "checkboxes"]))
1601
1600
  ])
1602
1601
  ]),
1603
- navigation: w(() => [
1602
+ navigation: $(() => [
1604
1603
  s("div", null, [
1605
1604
  y(me, {
1606
- label: e(xt) ? e(o)("booking.reservation.nextButton") : e(o)("general.confirmReservation"),
1607
- disabled: !e(c),
1608
- "is-loading": e(p),
1605
+ label: e(Et) ? e(o)("booking.reservation.nextButton") : e(o)("general.confirmReservation"),
1606
+ disabled: !e(p),
1607
+ "is-loading": e(c),
1609
1608
  "full-width": "",
1610
- onClickEvent: (g) => ao(J, D)
1609
+ onClickEvent: (k) => no(J, I)
1611
1610
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
1612
1611
  ])
1613
1612
  ]),
1614
1613
  _: 2
1615
- }, 1032, ["prev-callback"])) : V("", !0)
1614
+ }, 1032, ["prev-callback"])) : T("", !0)
1616
1615
  ]),
1617
- payment: w(() => [
1618
- y(qo)
1616
+ payment: $(() => [
1617
+ y(Fo)
1619
1618
  ]),
1620
- confirmation: w(() => [
1621
- y(Lo, {
1619
+ confirmation: $(() => [
1620
+ y(No, {
1622
1621
  message: e(o)("booking.confirmation.thankYou")
1623
1622
  }, null, 8, ["message"])
1624
1623
  ]),
@@ -1628,8 +1627,8 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1628
1627
  _: 1
1629
1628
  }, 8, ["access-token", "callback"])
1630
1629
  ]),
1631
- fallback: w(() => [
1632
- y(Bn)
1630
+ fallback: $(() => [
1631
+ y(Dn)
1633
1632
  ]),
1634
1633
  _: 1
1635
1634
  }))
@@ -1637,36 +1636,36 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
1637
1636
  _: 1
1638
1637
  }, 8, ["styling"]));
1639
1638
  }
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);
1639
+ }), ht = /* @__PURE__ */ fe(hl, [["__scopeId", "data-v-77d495ab"]]);
1640
+ function tt(l, t = {}, n) {
1641
+ for (const o in l) {
1642
+ const i = l[o], a = n ? `${n}:${o}` : o;
1643
+ typeof i == "object" && i !== null ? tt(i, t, a) : typeof i == "function" && (t[a] = i);
1645
1644
  }
1646
1645
  return t;
1647
1646
  }
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(
1647
+ const vl = { run: (l) => l() }, yl = () => vl, At = typeof console.createTask < "u" ? console.createTask : yl;
1648
+ function kl(l, t) {
1649
+ const n = t.shift(), o = At(n);
1650
+ return l.reduce(
1652
1651
  (i, a) => i.then(() => o.run(() => a(...t))),
1653
1652
  Promise.resolve()
1654
1653
  );
1655
1654
  }
1656
- function Pl(n, t) {
1657
- const l = t.shift(), o = Mt(l);
1658
- return Promise.all(n.map((i) => o.run(() => i(...t))));
1655
+ function gl(l, t) {
1656
+ const n = t.shift(), o = At(n);
1657
+ return Promise.all(l.map((i) => o.run(() => i(...t))));
1659
1658
  }
1660
- function Ze(n, t) {
1661
- for (const l of [...n])
1662
- l(t);
1659
+ function Qe(l, t) {
1660
+ for (const n of [...l])
1661
+ n(t);
1663
1662
  }
1664
- class Al {
1663
+ class bl {
1665
1664
  constructor() {
1666
1665
  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
1666
  }
1668
- hook(t, l, o = {}) {
1669
- if (!t || typeof l != "function")
1667
+ hook(t, n, o = {}) {
1668
+ if (!t || typeof n != "function")
1670
1669
  return () => {
1671
1670
  };
1672
1671
  const i = t;
@@ -1677,30 +1676,30 @@ class Al {
1677
1676
  let r = a.message;
1678
1677
  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
1678
  }
1680
- if (!l.name)
1679
+ if (!n.name)
1681
1680
  try {
1682
- Object.defineProperty(l, "name", {
1681
+ Object.defineProperty(n, "name", {
1683
1682
  get: () => "_" + t.replace(/\W+/g, "_") + "_hook_cb",
1684
1683
  configurable: !0
1685
1684
  });
1686
1685
  } catch {
1687
1686
  }
1688
- return this._hooks[t] = this._hooks[t] || [], this._hooks[t].push(l), () => {
1689
- l && (this.removeHook(t, l), l = void 0);
1687
+ return this._hooks[t] = this._hooks[t] || [], this._hooks[t].push(n), () => {
1688
+ n && (this.removeHook(t, n), n = void 0);
1690
1689
  };
1691
1690
  }
1692
- hookOnce(t, l) {
1693
- let o, i = (...a) => (typeof o == "function" && o(), o = void 0, i = void 0, l(...a));
1691
+ hookOnce(t, n) {
1692
+ let o, i = (...a) => (typeof o == "function" && o(), o = void 0, i = void 0, n(...a));
1694
1693
  return o = this.hook(t, i), o;
1695
1694
  }
1696
- removeHook(t, l) {
1695
+ removeHook(t, n) {
1697
1696
  if (this._hooks[t]) {
1698
- const o = this._hooks[t].indexOf(l);
1697
+ const o = this._hooks[t].indexOf(n);
1699
1698
  o !== -1 && this._hooks[t].splice(o, 1), this._hooks[t].length === 0 && delete this._hooks[t];
1700
1699
  }
1701
1700
  }
1702
- deprecateHook(t, l) {
1703
- this._deprecatedHooks[t] = typeof l == "string" ? { to: l } : l;
1701
+ deprecateHook(t, n) {
1702
+ this._deprecatedHooks[t] = typeof n == "string" ? { to: n } : n;
1704
1703
  const o = this._hooks[t] || [];
1705
1704
  delete this._hooks[t];
1706
1705
  for (const i of o)
@@ -1708,12 +1707,12 @@ class Al {
1708
1707
  }
1709
1708
  deprecateHooks(t) {
1710
1709
  Object.assign(this._deprecatedHooks, t);
1711
- for (const l in t)
1712
- this.deprecateHook(l, t[l]);
1710
+ for (const n in t)
1711
+ this.deprecateHook(n, t[n]);
1713
1712
  }
1714
1713
  addHooks(t) {
1715
- const l = nt(t), o = Object.keys(l).map(
1716
- (i) => this.hook(i, l[i])
1714
+ const n = tt(t), o = Object.keys(n).map(
1715
+ (i) => this.hook(i, n[i])
1717
1716
  );
1718
1717
  return () => {
1719
1718
  for (const i of o.splice(0, o.length))
@@ -1721,59 +1720,59 @@ class Al {
1721
1720
  };
1722
1721
  }
1723
1722
  removeHooks(t) {
1724
- const l = nt(t);
1725
- for (const o in l)
1726
- this.removeHook(o, l[o]);
1723
+ const n = tt(t);
1724
+ for (const o in n)
1725
+ this.removeHook(o, n[o]);
1727
1726
  }
1728
1727
  removeAllHooks() {
1729
1728
  for (const t in this._hooks)
1730
1729
  delete this._hooks[t];
1731
1730
  }
1732
- callHook(t, ...l) {
1733
- return l.unshift(t), this.callHookWith(Cl, t, ...l);
1731
+ callHook(t, ...n) {
1732
+ return n.unshift(t), this.callHookWith(kl, t, ...n);
1734
1733
  }
1735
- callHookParallel(t, ...l) {
1736
- return l.unshift(t), this.callHookWith(Pl, t, ...l);
1734
+ callHookParallel(t, ...n) {
1735
+ return n.unshift(t), this.callHookWith(gl, t, ...n);
1737
1736
  }
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);
1737
+ callHookWith(t, n, ...o) {
1738
+ const i = this._before || this._after ? { name: n, args: o, context: {} } : void 0;
1739
+ this._before && Qe(this._before, i);
1741
1740
  const a = t(
1742
- l in this._hooks ? [...this._hooks[l]] : [],
1741
+ n in this._hooks ? [...this._hooks[n]] : [],
1743
1742
  o
1744
1743
  );
1745
1744
  return a instanceof Promise ? a.finally(() => {
1746
- this._after && i && Ze(this._after, i);
1747
- }) : (this._after && i && Ze(this._after, i), a);
1745
+ this._after && i && Qe(this._after, i);
1746
+ }) : (this._after && i && Qe(this._after, i), a);
1748
1747
  }
1749
1748
  beforeEach(t) {
1750
1749
  return this._before = this._before || [], this._before.push(t), () => {
1751
1750
  if (this._before !== void 0) {
1752
- const l = this._before.indexOf(t);
1753
- l !== -1 && this._before.splice(l, 1);
1751
+ const n = this._before.indexOf(t);
1752
+ n !== -1 && this._before.splice(n, 1);
1754
1753
  }
1755
1754
  };
1756
1755
  }
1757
1756
  afterEach(t) {
1758
1757
  return this._after = this._after || [], this._after.push(t), () => {
1759
1758
  if (this._after !== void 0) {
1760
- const l = this._after.indexOf(t);
1761
- l !== -1 && this._after.splice(l, 1);
1759
+ const n = this._after.indexOf(t);
1760
+ n !== -1 && this._after.splice(n, 1);
1762
1761
  }
1763
1762
  };
1764
1763
  }
1765
1764
  }
1766
- function Sl() {
1767
- return new Al();
1765
+ function _l() {
1766
+ return new bl();
1768
1767
  }
1769
- const Hl = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]), Ie = /* @__PURE__ */ new Set([
1768
+ const Vl = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]), Ie = /* @__PURE__ */ new Set([
1770
1769
  "base",
1771
1770
  "meta",
1772
1771
  "link",
1773
1772
  "style",
1774
1773
  "script",
1775
1774
  "noscript"
1776
- ]), Dl = /* @__PURE__ */ new Set([
1775
+ ]), Tl = /* @__PURE__ */ new Set([
1777
1776
  "title",
1778
1777
  "titleTemplate",
1779
1778
  "templateParams",
@@ -1785,301 +1784,301 @@ const Hl = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style",
1785
1784
  "style",
1786
1785
  "script",
1787
1786
  "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) {
1787
+ ]), 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";
1788
+ function Be(l) {
1790
1789
  let t = 9;
1791
- for (let l = 0; l < n.length; )
1792
- t = Math.imul(t ^ n.charCodeAt(l++), 9 ** 9);
1790
+ for (let n = 0; n < l.length; )
1791
+ t = Math.imul(t ^ l.charCodeAt(n++), 9 ** 9);
1793
1792
  return ((t ^ t >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
1794
1793
  }
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);
1794
+ function vt(l) {
1795
+ if (l._h)
1796
+ return l._h;
1797
+ if (l._d)
1798
+ return Be(l._d);
1799
+ let t = `${l.tag}:${l.textContent || l.innerHTML || ""}:`;
1800
+ for (const n in l.props)
1801
+ t += `${n}:${l.props[n]},`;
1802
+ return Be(t);
1804
1803
  }
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")
1804
+ const Cl = ["name", "property", "http-equiv"];
1805
+ function St(l) {
1806
+ const { props: t, tag: n } = l;
1807
+ if (wl.has(n))
1808
+ return n;
1809
+ if (n === "link" && t.rel === "canonical")
1811
1810
  return "canonical";
1812
1811
  if (t.charset)
1813
1812
  return "charset";
1814
1813
  if (t.id)
1815
- return `${l}:id:${t.id}`;
1816
- for (const o of Nl)
1814
+ return `${n}:id:${t.id}`;
1815
+ for (const o of Cl)
1817
1816
  if (t[o] !== void 0)
1818
- return `${l}:${o}:${t[o]}`;
1817
+ return `${n}:${o}:${t[o]}`;
1819
1818
  return !1;
1820
1819
  }
1821
- function Vt(n, t) {
1822
- return n == null ? t || null : typeof n == "function" ? n(t) : n;
1820
+ function yt(l, t) {
1821
+ return l == null ? t || null : typeof l == "function" ? l(t) : l;
1823
1822
  }
1824
- function Ll(n, t) {
1825
- return n instanceof Promise ? n.then(t) : t(n);
1823
+ function Pl(l, t) {
1824
+ return l instanceof Promise ? l.then(t) : t(l);
1826
1825
  }
1827
- function lt(n, t, l, o) {
1828
- const i = o || Bt(
1826
+ function ot(l, t, n, o) {
1827
+ const i = o || It(
1829
1828
  // explicitly check for an object
1830
1829
  // @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"
1830
+ typeof t == "object" && typeof t != "function" && !(t instanceof Promise) ? { ...t } : { [l === "script" || l === "noscript" || l === "style" ? "innerHTML" : "textContent"]: t },
1831
+ l === "templateParams" || l === "titleTemplate"
1833
1832
  );
1834
1833
  if (i instanceof Promise)
1835
- return i.then((r) => lt(n, t, l, r));
1834
+ return i.then((r) => ot(l, t, n, r));
1836
1835
  const a = {
1837
- tag: n,
1836
+ tag: l,
1838
1837
  props: i
1839
1838
  };
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]);
1839
+ for (const r of Ht) {
1840
+ const f = a.props[r] !== void 0 ? a.props[r] : n[r];
1841
+ f !== void 0 && ((!(r === "innerHTML" || r === "textContent" || r === "children") || Vl.has(a.tag)) && (a[r === "children" ? "innerHTML" : r] = f), delete a.props[r]);
1843
1842
  }
1844
1843
  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
1844
  }
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);
1845
+ function Al(l, t) {
1846
+ const n = l === "class" ? " " : ";";
1847
+ 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
1848
  }
1850
- function Rt(n, t, l, o) {
1851
- for (let i = o; i < l.length; i += 1) {
1852
- const a = l[i];
1849
+ function Dt(l, t, n, o) {
1850
+ for (let i = o; i < n.length; i += 1) {
1851
+ const a = n[i];
1853
1852
  if (a === "class" || a === "style") {
1854
- n[a] = Rl(a, n[a]);
1853
+ l[a] = Al(a, l[a]);
1855
1854
  continue;
1856
1855
  }
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]);
1856
+ if (l[a] instanceof Promise)
1857
+ return l[a].then((r) => (l[a] = r, Dt(l, t, n, i)));
1858
+ if (!t && !Ht.has(a)) {
1859
+ const r = String(l[a]), f = a.startsWith("data-");
1860
+ r === "true" || r === "" ? l[a] = f ? "true" : !0 : l[a] || (f && r === "false" ? l[a] = "false" : delete l[a]);
1862
1861
  }
1863
1862
  }
1864
1863
  }
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;
1864
+ function It(l, t = !1) {
1865
+ const n = Dt(l, t, Object.keys(l), 0);
1866
+ return n instanceof Promise ? n.then(() => l) : l;
1868
1867
  }
1869
- const Bl = 10;
1870
- function Ut(n, t, l) {
1871
- for (let o = l; o < t.length; o += 1) {
1868
+ const Hl = 10;
1869
+ function Nt(l, t, n) {
1870
+ for (let o = n; o < t.length; o += 1) {
1872
1871
  const i = t[o];
1873
1872
  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);
1873
+ return i.then((a) => (t[o] = a, Nt(l, t, o)));
1874
+ Array.isArray(i) ? l.push(...i) : l.push(i);
1876
1875
  }
1877
1876
  }
1878
- function Ul(n) {
1879
- const t = [], l = n.resolvedInput;
1880
- for (const i in l) {
1881
- if (!Object.prototype.hasOwnProperty.call(l, i))
1877
+ function Sl(l) {
1878
+ const t = [], n = l.resolvedInput;
1879
+ for (const i in n) {
1880
+ if (!Object.prototype.hasOwnProperty.call(n, i))
1882
1881
  continue;
1883
- const a = l[i];
1884
- if (!(a === void 0 || !Dl.has(i))) {
1882
+ const a = n[i];
1883
+ if (!(a === void 0 || !Tl.has(i))) {
1885
1884
  if (Array.isArray(a)) {
1886
1885
  for (const r of a)
1887
- t.push(lt(i, r, n));
1886
+ t.push(ot(i, r, l));
1888
1887
  continue;
1889
1888
  }
1890
- t.push(lt(i, a, n));
1889
+ t.push(ot(i, a, l));
1891
1890
  }
1892
1891
  }
1893
1892
  if (t.length === 0)
1894
1893
  return [];
1895
1894
  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)));
1895
+ 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
1896
  }
1898
- const Tt = {
1897
+ const kt = {
1899
1898
  // tags
1900
1899
  base: -10,
1901
1900
  title: 10
1902
- }, wt = {
1901
+ }, gt = {
1903
1902
  // relative scores to their default values
1904
1903
  critical: -80,
1905
1904
  high: -10,
1906
1905
  low: 20
1907
1906
  };
1908
- function Re(n) {
1909
- const t = n.tagPriority;
1907
+ function Re(l) {
1908
+ const t = l.tagPriority;
1910
1909
  if (typeof t == "number")
1911
1910
  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;
1911
+ let n = 100;
1912
+ 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
1913
  }
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;
1914
+ const Dl = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], bt = /* @__PURE__ */ new Set(["onload", "onerror", "onabort", "onprogress", "onloadstart"]), ce = "%separator";
1915
+ function Il(l, t) {
1916
+ let n;
1918
1917
  if (t === "s" || t === "pageTitle")
1919
- l = n.pageTitle;
1918
+ n = l.pageTitle;
1920
1919
  else if (t.includes(".")) {
1921
1920
  const o = t.indexOf(".");
1922
- l = n[t.substring(0, o)]?.[t.substring(o + 1)];
1921
+ n = l[t.substring(0, o)]?.[t.substring(o + 1)];
1923
1922
  } else
1924
- l = n[t];
1925
- return l !== void 0 ? (l || "").replace(/"/g, '\\"') : void 0;
1923
+ n = l[t];
1924
+ return n !== void 0 ? (n || "").replace(/"/g, '\\"') : void 0;
1926
1925
  }
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;
1926
+ const Nl = new RegExp(`${ce}(?:\\s*${ce})*`, "g");
1927
+ function Xe(l, t, n) {
1928
+ if (typeof l != "string" || !l.includes("%"))
1929
+ return l;
1930
+ let o = l;
1932
1931
  try {
1933
- o = decodeURI(n);
1932
+ o = decodeURI(l);
1934
1933
  } catch {
1935
1934
  }
1936
1935
  const i = o.match(/%\w+(?:\.\w+)?/g);
1937
1936
  if (!i)
1938
- return n;
1939
- const a = n.includes(ce);
1940
- return n = n.replace(/%\w+(?:\.\w+)?/g, (r) => {
1937
+ return l;
1938
+ const a = l.includes(ce);
1939
+ return l = l.replace(/%\w+(?:\.\w+)?/g, (r) => {
1941
1940
  if (r === ce || !i.includes(r))
1942
1941
  return r;
1943
- const f = Ol(t, r.slice(1));
1942
+ const f = Il(t, r.slice(1));
1944
1943
  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;
1944
+ }).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
1945
  }
1947
- async function Gl(n, t = {}) {
1948
- const l = t.document || n.resolvedOptions.document;
1949
- if (!l || !n.dirty)
1946
+ async function Ml(l, t = {}) {
1947
+ const n = t.document || l.resolvedOptions.document;
1948
+ if (!n || !l.dirty)
1950
1949
  return;
1951
1950
  const o = { shouldRender: !0, tags: [] };
1952
- if (await n.hooks.callHook("dom:beforeRender", o), !o.shouldRender)
1951
+ if (await l.hooks.callHook("dom:beforeRender", o), !o.shouldRender)
1953
1952
  return;
1954
- const i = (await n.resolveTags()).map((c) => ({
1955
- tag: c,
1956
- id: Ie.has(c.tag) ? _t(c) : c.tag,
1953
+ const i = (await l.resolveTags()).map((p) => ({
1954
+ tag: p,
1955
+ id: Ie.has(p.tag) ? vt(p) : p.tag,
1957
1956
  shouldRender: !0
1958
1957
  }));
1959
- let a = n._dom;
1958
+ let a = l._dom;
1960
1959
  if (!a) {
1961
1960
  a = {
1962
- elMap: { htmlAttrs: l.documentElement, bodyAttrs: l.body }
1961
+ elMap: { htmlAttrs: n.documentElement, bodyAttrs: n.body }
1963
1962
  };
1964
- const c = /* @__PURE__ */ new Set();
1963
+ const p = /* @__PURE__ */ new Set();
1965
1964
  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))
1965
+ const g = n[m]?.children;
1966
+ for (const w of g) {
1967
+ const C = w.tagName.toLowerCase();
1968
+ if (!Ie.has(C))
1970
1969
  continue;
1971
- const I = {
1972
- tag: S,
1973
- props: await Bt(
1974
- $.getAttributeNames().reduce((k, P) => ({ ...k, [P]: $.getAttribute(P) }), {})
1970
+ const S = {
1971
+ tag: C,
1972
+ props: await It(
1973
+ w.getAttributeNames().reduce((_, A) => ({ ..._, [A]: w.getAttribute(A) }), {})
1975
1974
  ),
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)] = $;
1975
+ innerHTML: w.innerHTML
1976
+ }, G = St(S);
1977
+ let D = G, K = 1;
1978
+ for (; D && p.has(D); )
1979
+ D = `${G}:${K++}`;
1980
+ D && (S._d = D, p.add(D)), a.elMap[w.getAttribute("data-hid") || vt(S)] = w;
1982
1981
  }
1983
1982
  }
1984
1983
  }
1985
1984
  a.pendingSideEffects = { ...a.sideEffects }, a.sideEffects = {};
1986
- function r(c, m, b) {
1987
- const $ = `${c}:${m}`;
1988
- a.sideEffects[$] = b, delete a.pendingSideEffects[$];
1985
+ function r(p, m, g) {
1986
+ const w = `${p}:${m}`;
1987
+ a.sideEffects[w] = g, delete a.pendingSideEffects[w];
1989
1988
  }
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(
1989
+ function f({ id: p, $el: m, tag: g }) {
1990
+ const w = g.tag.endsWith("Attrs");
1991
+ 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", () => {
1992
+ a.elMap[p]?.remove(), delete a.elMap[p];
1993
+ })), g._eventHandlers)
1994
+ for (const C in g._eventHandlers)
1995
+ Object.prototype.hasOwnProperty.call(g._eventHandlers, C) && m.getAttribute(`data-${C}`) !== "" && ((g.tag === "bodyAttrs" ? n.defaultView : m).addEventListener(
1997
1996
  // 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))
1997
+ C.substring(2),
1998
+ g._eventHandlers[C].bind(m)
1999
+ ), m.setAttribute(`data-${C}`, ""));
2000
+ for (const C in g.props) {
2001
+ if (!Object.prototype.hasOwnProperty.call(g.props, C))
2003
2002
  continue;
2004
- const I = b.props[S], G = `attr:${S}`;
2005
- if (S === "class") {
2006
- if (!I)
2003
+ const S = g.props[C], G = `attr:${C}`;
2004
+ if (C === "class") {
2005
+ if (!S)
2007
2006
  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)
2007
+ for (const D of S.split(" "))
2008
+ w && r(p, `${G}:${D}`, () => m.classList.remove(D)), !m.classList.contains(D) && m.classList.add(D);
2009
+ } else if (C === "style") {
2010
+ if (!S)
2012
2011
  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);
2012
+ for (const D of S.split(";")) {
2013
+ const K = D.indexOf(":"), _ = D.substring(0, K).trim(), A = D.substring(K + 1).trim();
2014
+ r(p, `${G}:${_}`, () => {
2015
+ m.style.removeProperty(_);
2016
+ }), m.style.setProperty(_, A);
2018
2017
  }
2019
2018
  } else
2020
- m.getAttribute(S) !== I && m.setAttribute(S, I === !0 ? "" : String(I)), $ && r(c, G, () => m.removeAttribute(S));
2019
+ m.getAttribute(C) !== S && m.setAttribute(C, S === !0 ? "" : String(S)), w && r(p, G, () => m.removeAttribute(C));
2021
2020
  }
2022
2021
  }
2023
- const u = [], p = {
2022
+ const u = [], c = {
2024
2023
  bodyClose: void 0,
2025
2024
  bodyOpen: void 0,
2026
2025
  head: void 0
2027
2026
  };
2028
- for (const c of i) {
2029
- const { tag: m, shouldRender: b, id: $ } = c;
2030
- if (b) {
2027
+ for (const p of i) {
2028
+ const { tag: m, shouldRender: g, id: w } = p;
2029
+ if (g) {
2031
2030
  if (m.tag === "title") {
2032
- l.title = m.textContent;
2031
+ n.title = m.textContent;
2033
2032
  continue;
2034
2033
  }
2035
- c.$el = c.$el || a.elMap[$], c.$el ? f(c) : Ie.has(m.tag) && u.push(c);
2034
+ p.$el = p.$el || a.elMap[w], p.$el ? f(p) : Ie.has(m.tag) && u.push(p);
2036
2035
  }
2037
2036
  }
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);
2037
+ for (const p of u) {
2038
+ const m = p.tag.tagPosition || "head";
2039
+ p.$el = n.createElement(p.tag.tag), f(p), c[m] = c[m] || n.createDocumentFragment(), c[m].appendChild(p.$el);
2041
2040
  }
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 });
2041
+ for (const p of i)
2042
+ await l.hooks.callHook("dom:renderTag", p, n, r);
2043
+ c.head && n.head.appendChild(c.head), c.bodyOpen && n.body.insertBefore(c.bodyOpen, n.body.firstChild), c.bodyClose && n.body.appendChild(c.bodyClose);
2044
+ for (const p in a.pendingSideEffects)
2045
+ a.pendingSideEffects[p]();
2046
+ l._dom = a, l.dirty = !1, await l.hooks.callHook("dom:rendered", { renders: i });
2048
2047
  }
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();
2048
+ function Bl(l, t = {}) {
2049
+ const n = t.delayFn || ((o) => setTimeout(o, 10));
2050
+ return l._domUpdatePromise = l._domUpdatePromise || new Promise((o) => n(() => Ml(l, t).then(() => {
2051
+ delete l._domUpdatePromise, o();
2053
2052
  })));
2054
2053
  }
2055
2054
  // @__NO_SIDE_EFFECTS__
2056
- function jl(n) {
2055
+ function Rl(l) {
2057
2056
  return (t) => {
2058
- const l = t.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
2059
- return l && t.push(JSON.parse(l)), {
2057
+ const n = t.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
2058
+ return n && t.push(JSON.parse(n)), {
2060
2059
  mode: "client",
2061
2060
  hooks: {
2062
2061
  "entries:updated": (o) => {
2063
- ql(o, n);
2062
+ Bl(o, l);
2064
2063
  }
2065
2064
  }
2066
2065
  };
2067
2066
  };
2068
2067
  }
2069
- const Wl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]), xl = {
2068
+ const Ll = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]), Ul = {
2070
2069
  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);
2070
+ "tag:normalise": ({ tag: l }) => {
2071
+ 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);
2072
+ const n = St(l) || (l.key ? `${l.tag}:${l.key}` : !1);
2073
+ n && (l._d = n);
2075
2074
  },
2076
- "tags:resolve": (n) => {
2075
+ "tags:resolve": (l) => {
2077
2076
  const t = /* @__PURE__ */ Object.create(null);
2078
- for (const o of n.tags) {
2077
+ for (const o of l.tags) {
2079
2078
  const i = (o.key ? `${o.tag}:${o.key}` : o._d) || o._p, a = t[i];
2080
2079
  if (a) {
2081
2080
  let f = o?.tagDuplicateStrategy;
2082
- if (!f && Wl.has(o.tag) && (f = "merge"), f === "merge") {
2081
+ if (!f && Ll.has(o.tag) && (f = "merge"), f === "merge") {
2083
2082
  const u = a.props;
2084
2083
  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
2084
  ...u,
@@ -2098,187 +2097,187 @@ const Wl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
2098
2097
  }
2099
2098
  t[i] = o;
2100
2099
  }
2101
- const l = [];
2100
+ const n = [];
2102
2101
  for (const o in t) {
2103
2102
  const i = t[o], a = i._duped;
2104
- l.push(i), a && (delete i._duped, l.push(...a));
2103
+ n.push(i), a && (delete i._duped, n.push(...a));
2105
2104
  }
2106
- n.tags = l, n.tags = n.tags.filter((o) => !(o.tag === "meta" && (o.props.name || o.props.property) && !o.props.content));
2105
+ l.tags = n, l.tags = l.tags.filter((o) => !(o.tag === "meta" && (o.props.name || o.props.property) && !o.props.content));
2107
2106
  }
2108
2107
  }
2109
- }, Kl = {
2108
+ }, El = {
2110
2109
  mode: "server",
2111
2110
  hooks: {
2112
- "tags:resolve": (n) => {
2111
+ "tags:resolve": (l) => {
2113
2112
  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({
2113
+ let n = !1;
2114
+ for (const o of l.tags)
2115
+ 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);
2116
+ n && l.tags.push({
2118
2117
  tag: "script",
2119
2118
  innerHTML: JSON.stringify(t),
2120
2119
  props: { id: "unhead:payload", type: "application/json" }
2121
2120
  });
2122
2121
  }
2123
2122
  }
2124
- }, Jl = /* @__PURE__ */ new Set(["script", "link", "bodyAttrs"]), zl = (n) => ({
2123
+ }, Ol = /* @__PURE__ */ new Set(["script", "link", "bodyAttrs"]), Fl = (l) => ({
2125
2124
  hooks: {
2126
2125
  "tags:resolve": (t) => {
2127
- for (const l of t.tags) {
2128
- if (!Jl.has(l.tag))
2126
+ for (const n of t.tags) {
2127
+ if (!Ol.has(n.tag))
2129
2128
  continue;
2130
- const o = l.props;
2129
+ const o = n.props;
2131
2130
  for (const i in o) {
2132
2131
  if (i[0] !== "o" || i[1] !== "n" || !Object.prototype.hasOwnProperty.call(o, i))
2133
2132
  continue;
2134
2133
  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);
2134
+ 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
2135
  }
2137
- n.ssr && l._eventHandlers && (l.props.src || l.props.href) && (l.key = l.key || Le(l.props.src || l.props.href));
2136
+ l.ssr && n._eventHandlers && (n.props.src || n.props.href) && (n.key = n.key || Be(n.props.src || n.props.href));
2138
2137
  }
2139
2138
  },
2140
- "dom:renderTag": ({ $el: t, tag: l }) => {
2139
+ "dom:renderTag": ({ $el: t, tag: n }) => {
2141
2140
  const o = t?.dataset;
2142
2141
  if (o)
2143
2142
  for (const i in o) {
2144
2143
  if (!i.endsWith("fired"))
2145
2144
  continue;
2146
2145
  const a = i.slice(0, -5);
2147
- $t.has(a) && l._eventHandlers?.[a]?.call(t, new Event(a.substring(2)));
2146
+ bt.has(a) && n._eventHandlers?.[a]?.call(t, new Event(a.substring(2)));
2148
2147
  }
2149
2148
  }
2150
2149
  }
2151
- }), Yl = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), Ql = {
2150
+ }), Gl = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), ql = {
2152
2151
  hooks: {
2153
- "tag:normalise": ({ tag: n }) => {
2154
- n.key && Yl.has(n.tag) && (n.props["data-hid"] = n._h = Le(n.key));
2152
+ "tag:normalise": ({ tag: l }) => {
2153
+ l.key && Gl.has(l.tag) && (l.props["data-hid"] = l._h = Be(l.key));
2155
2154
  }
2156
2155
  }
2157
- }, Xl = {
2156
+ }, jl = {
2158
2157
  hooks: {
2159
- "tags:resolve": (n) => {
2160
- for (const t of n.tags)
2158
+ "tags:resolve": (l) => {
2159
+ for (const t of l.tags)
2161
2160
  if (typeof t.tagPriority == "string")
2162
- for (const { prefix: l, offset: o } of El) {
2163
- if (!t.tagPriority.startsWith(l))
2161
+ for (const { prefix: n, offset: o } of Dl) {
2162
+ if (!t.tagPriority.startsWith(n))
2164
2163
  continue;
2165
- const i = t.tagPriority.substring(l.length), a = n.tags.find((r) => r._d === i)?._p;
2164
+ const i = t.tagPriority.substring(n.length), a = l.tags.find((r) => r._d === i)?._p;
2166
2165
  if (a !== void 0) {
2167
2166
  t._p = a + o;
2168
2167
  break;
2169
2168
  }
2170
2169
  }
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;
2170
+ l.tags.sort((t, n) => {
2171
+ const o = Re(t), i = Re(n);
2172
+ return o < i ? -1 : o > i ? 1 : t._p - n._p;
2174
2173
  });
2175
2174
  }
2176
2175
  }
2177
- }, Zl = {
2176
+ }, Wl = {
2178
2177
  meta: "content",
2179
2178
  link: "href",
2180
2179
  htmlAttrs: "lang"
2181
- }, ea = ["innerHTML", "textContent"], ta = (n) => ({
2180
+ }, xl = ["innerHTML", "textContent"], Kl = (l) => ({
2182
2181
  hooks: {
2183
2182
  "tags:resolve": (t) => {
2184
- const { tags: l } = t;
2183
+ const { tags: n } = t;
2185
2184
  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);
2185
+ for (let r = 0; r < n.length; r += 1)
2186
+ n[r].tag === "templateParams" && (o = t.tags.splice(r, 1)[0].props, r -= 1);
2188
2187
  const i = o || {}, a = i.separator || "|";
2189
- delete i.separator, i.pageTitle = et(
2188
+ delete i.separator, i.pageTitle = Xe(
2190
2189
  // find templateParams
2191
- i.pageTitle || l.find((r) => r.tag === "title")?.textContent || "",
2190
+ i.pageTitle || n.find((r) => r.tag === "title")?.textContent || "",
2192
2191
  i,
2193
2192
  a
2194
2193
  );
2195
- for (const r of l) {
2194
+ for (const r of n) {
2196
2195
  if (r.processTemplateParams === !1)
2197
2196
  continue;
2198
- const f = Zl[r.tag];
2197
+ const f = Wl[r.tag];
2199
2198
  if (f && typeof r.props[f] == "string")
2200
- r.props[f] = et(r.props[f], i, a);
2199
+ r.props[f] = Xe(r.props[f], i, a);
2201
2200
  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));
2201
+ for (const u of xl)
2202
+ typeof r[u] == "string" && (r[u] = Xe(r[u], i, a));
2204
2203
  }
2205
- n._templateParams = i, n._separator = a;
2204
+ l._templateParams = i, l._separator = a;
2206
2205
  }
2207
2206
  }
2208
- }), oa = {
2207
+ }), Jl = {
2209
2208
  hooks: {
2210
- "tags:resolve": (n) => {
2211
- const { tags: t } = n;
2212
- let l, o;
2209
+ "tags:resolve": (l) => {
2210
+ const { tags: t } = l;
2211
+ let n, o;
2213
2212
  for (let i = 0; i < t.length; i += 1) {
2214
2213
  const a = t[i];
2215
- a.tag === "title" ? l = a : a.tag === "titleTemplate" && (o = a);
2214
+ a.tag === "title" ? n = a : a.tag === "titleTemplate" && (o = a);
2216
2215
  }
2217
- if (o && l) {
2218
- const i = Vt(
2216
+ if (o && n) {
2217
+ const i = yt(
2219
2218
  o.textContent,
2220
- l.textContent
2219
+ n.textContent
2221
2220
  );
2222
- i !== null ? l.textContent = i || l.textContent : n.tags.splice(n.tags.indexOf(l), 1);
2221
+ i !== null ? n.textContent = i || n.textContent : l.tags.splice(l.tags.indexOf(n), 1);
2223
2222
  } else if (o) {
2224
- const i = Vt(
2223
+ const i = yt(
2225
2224
  o.textContent
2226
2225
  );
2227
2226
  i !== null && (o.textContent = i, o.tag = "title", o = void 0);
2228
2227
  }
2229
- o && n.tags.splice(n.tags.indexOf(o), 1);
2228
+ o && l.tags.splice(l.tags.indexOf(o), 1);
2230
2229
  }
2231
2230
  }
2232
- }, na = {
2231
+ }, zl = {
2233
2232
  hooks: {
2234
- "tags:afterResolve": (n) => {
2235
- for (const t of n.tags)
2233
+ "tags:afterResolve": (l) => {
2234
+ for (const t of l.tags)
2236
2235
  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
2236
  }
2238
2237
  }
2239
2238
  };
2240
2239
  // @__NO_SIDE_EFFECTS__
2241
- function la(n = {}) {
2242
- const t = aa(n);
2243
- return t.use(/* @__PURE__ */ jl()), t;
2240
+ function Yl(l = {}) {
2241
+ const t = Ql(l);
2242
+ return t.use(/* @__PURE__ */ Rl()), t;
2244
2243
  }
2245
- function Ct(n, t) {
2246
- return !n || n === "server" && t || n === "client" && !t;
2244
+ function _t(l, t) {
2245
+ return !l || l === "server" && t || l === "client" && !t;
2247
2246
  }
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 = () => {
2247
+ function Ql(l = {}) {
2248
+ const t = _l();
2249
+ t.addHooks(l.hooks || {}), l.document = l.document || ($l ? document : void 0);
2250
+ const n = !l.document, o = () => {
2252
2251
  f.dirty = !0, t.callHook("entries:updated", f);
2253
2252
  };
2254
2253
  let i = 0, a = [];
2255
2254
  const r = [], f = {
2256
2255
  plugins: r,
2257
2256
  dirty: !1,
2258
- resolvedOptions: n,
2257
+ resolvedOptions: l,
2259
2258
  hooks: t,
2260
2259
  headEntries() {
2261
2260
  return a;
2262
2261
  },
2263
2262
  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 || {}));
2263
+ const c = typeof u == "function" ? u(f) : u;
2264
+ (!c.key || !r.some((p) => p.key === c.key)) && (r.push(c), _t(c.mode, n) && t.addHooks(c.hooks || {}));
2266
2265
  },
2267
- push(u, p) {
2268
- delete p?.head;
2269
- const c = {
2266
+ push(u, c) {
2267
+ delete c?.head;
2268
+ const p = {
2270
2269
  _i: i++,
2271
2270
  input: u,
2272
- ...p
2271
+ ...c
2273
2272
  };
2274
- return Ct(c.mode, l) && (a.push(c), o()), {
2273
+ return _t(p.mode, n) && (a.push(p), o()), {
2275
2274
  dispose() {
2276
- a = a.filter((m) => m._i !== c._i), t.callHook("entries:updated", f), o();
2275
+ a = a.filter((m) => m._i !== p._i), t.callHook("entries:updated", f), o();
2277
2276
  },
2278
2277
  // a patch is the same as creating a new entry, just a nice DX
2279
2278
  patch(m) {
2280
- for (const b of a)
2281
- b._i === c._i && (b.input = c.input = m);
2279
+ for (const g of a)
2280
+ g._i === p._i && (g.input = p.input = m);
2282
2281
  o();
2283
2282
  }
2284
2283
  };
@@ -2286,78 +2285,78 @@ function aa(n = {}) {
2286
2285
  async resolveTags() {
2287
2286
  const u = { tags: [], entries: [...a] };
2288
2287
  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);
2288
+ for (const c of u.entries) {
2289
+ const p = c.resolvedInput || c.input;
2290
+ if (c.resolvedInput = await (c.transform ? c.transform(p) : p), c.resolvedInput)
2291
+ for (const m of await Sl(c)) {
2292
+ const g = { tag: m, entry: c, resolvedOptions: f.resolvedOptions };
2293
+ await t.callHook("tag:normalise", g), u.tags.push(g.tag);
2295
2294
  }
2296
2295
  }
2297
2296
  return await t.callHook("tags:beforeResolve", u), await t.callHook("tags:resolve", u), await t.callHook("tags:afterResolve", u), u.tags;
2298
2297
  },
2299
- ssr: l
2298
+ ssr: n
2300
2299
  };
2301
2300
  return [
2302
- xl,
2301
+ Ul,
2302
+ El,
2303
+ Fl,
2304
+ ql,
2305
+ jl,
2303
2306
  Kl,
2307
+ Jl,
2304
2308
  zl,
2305
- Ql,
2306
- Xl,
2307
- ta,
2308
- oa,
2309
- na,
2310
- ...n?.plugins || []
2309
+ ...l?.plugins || []
2311
2310
  ].forEach((u) => f.use(u)), f.hooks.callHook("init", f), f;
2312
2311
  }
2313
- const ia = ko[0] === "3";
2314
- function sa(n) {
2315
- return typeof n == "function" ? n() : e(n);
2312
+ const Xl = vo[0] === "3";
2313
+ function Zl(l) {
2314
+ return typeof l == "function" ? l() : e(l);
2316
2315
  }
2317
- function at(n) {
2318
- if (n instanceof Promise)
2319
- return n;
2320
- const t = sa(n);
2321
- if (!n || !t)
2316
+ function nt(l) {
2317
+ if (l instanceof Promise)
2318
+ return l;
2319
+ const t = Zl(l);
2320
+ if (!l || !t)
2322
2321
  return t;
2323
2322
  if (Array.isArray(t))
2324
- return t.map((l) => at(l));
2323
+ return t.map((n) => nt(n));
2325
2324
  if (typeof t == "object") {
2326
- const l = {};
2325
+ const n = {};
2327
2326
  for (const o in t)
2328
2327
  if (Object.prototype.hasOwnProperty.call(t, o)) {
2329
2328
  if (o === "titleTemplate" || o[0] === "o" && o[1] === "n") {
2330
- l[o] = e(t[o]);
2329
+ n[o] = e(t[o]);
2331
2330
  continue;
2332
2331
  }
2333
- l[o] = at(t[o]);
2332
+ n[o] = nt(t[o]);
2334
2333
  }
2335
- return l;
2334
+ return n;
2336
2335
  }
2337
2336
  return t;
2338
2337
  }
2339
- const ra = {
2338
+ const ea = {
2340
2339
  hooks: {
2341
- "entries:resolve": (n) => {
2342
- for (const t of n.entries)
2343
- t.resolvedInput = at(t.input);
2340
+ "entries:resolve": (l) => {
2341
+ for (const t of l.entries)
2342
+ t.resolvedInput = nt(t.input);
2344
2343
  }
2345
2344
  }
2346
- }, da = "usehead";
2347
- function ua(n) {
2345
+ }, ta = "usehead";
2346
+ function oa(l) {
2348
2347
  return {
2349
- install(l) {
2350
- ia && (l.config.globalProperties.$unhead = n, l.config.globalProperties.$head = n, l.provide(da, n));
2348
+ install(n) {
2349
+ Xl && (n.config.globalProperties.$unhead = l, n.config.globalProperties.$head = l, n.provide(ta, l));
2351
2350
  }
2352
2351
  }.install;
2353
2352
  }
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;
2353
+ function na(l = {}) {
2354
+ l.domDelayFn = l.domDelayFn || ((n) => ho(() => setTimeout(() => n(), 0)));
2355
+ const t = /* @__PURE__ */ Yl(l);
2356
+ return t.use(ea), t.install = oa(t), t;
2358
2357
  }
2359
- const pa = go(), ma = ca(), fa = To();
2360
- class ha extends HTMLElement {
2358
+ const la = yo(), aa = na(), ia = _o();
2359
+ class sa extends HTMLElement {
2361
2360
  vueApp;
2362
2361
  constructor() {
2363
2362
  super();
@@ -2366,14 +2365,14 @@ class ha extends HTMLElement {
2366
2365
  this.vueApp.unmount();
2367
2366
  }
2368
2367
  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]);
2368
+ const t = ko(ht, this.attributes);
2369
+ 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(Bo), this.vueApp.use(Po), this.vueApp.use(Co, { bootstrap: !0 });
2370
+ const n = document.createElement("div");
2371
+ this.vueApp.mount(n), this.appendChild(n.children[0]);
2373
2372
  }
2374
2373
  }
2375
- window.customElements.define("konnectio-hotel", ha);
2374
+ window.customElements.define("konnectio-hotel", sa);
2376
2375
  export {
2377
- ha as default
2376
+ sa as default
2378
2377
  };
2379
2378
  //# sourceMappingURL=hotel.js.map