@konnectio/core 4.0.89 → 4.0.90

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