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