@konnectio/core 4.0.89 → 4.0.91

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