@konnectio/core 4.0.56-rc23 → 4.0.56-rc24

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 (44) hide show
  1. package/dist/{ActionField-BUeonTqc.js → ActionField-h6vpGaYw.js} +10 -10
  2. package/dist/ActionField-h6vpGaYw.js.br +0 -0
  3. package/dist/{DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js → AvailabilitySkeleton-HUUimpaX.js} +1376 -1324
  4. package/dist/AvailabilitySkeleton-HUUimpaX.js.br +0 -0
  5. package/dist/{CheckoutWindow-sws5X9v2.js → CheckoutWindow-Dmg9JyZJ.js} +26 -26
  6. package/dist/CheckoutWindow-Dmg9JyZJ.js.br +0 -0
  7. package/dist/{ErrorMessage-GzJ2T5_d.js → ErrorMessage-iVDG0uzJ.js} +1 -1
  8. package/dist/ErrorMessage-iVDG0uzJ.js.br +0 -0
  9. package/dist/EventAvailabilityForm-UmnEHYcV.js +325 -0
  10. package/dist/EventAvailabilityForm-UmnEHYcV.js.br +0 -0
  11. package/dist/{_-hKpeUU4C.js → Field-wvMopAED.js} +13127 -12491
  12. package/dist/Field-wvMopAED.js.br +0 -0
  13. package/dist/HotelAvailabilityForm-GWIoGscc.js +164 -0
  14. package/dist/HotelAvailabilityForm-GWIoGscc.js.br +0 -0
  15. package/dist/availability.js +22 -21
  16. package/dist/availability.js.br +0 -0
  17. package/dist/event.js +578 -304
  18. package/dist/event.js.br +0 -0
  19. package/dist/gift-card-validation.js +41 -42
  20. package/dist/gift-card-validation.js.br +0 -0
  21. package/dist/gift-card.js +69 -70
  22. package/dist/gift-card.js.br +0 -0
  23. package/dist/hotel.js +1081 -2224
  24. package/dist/hotel.js.br +0 -0
  25. package/dist/masonry.plugin-UcfbgWN-.js +12726 -0
  26. package/dist/masonry.plugin-UcfbgWN-.js.br +0 -0
  27. package/dist/polyfill.js +3014 -2962
  28. package/dist/polyfill.js.br +0 -0
  29. package/dist/style.css +1 -1
  30. package/dist/style.css.br +0 -0
  31. package/package.json +8 -8
  32. package/dist/ActionField-BUeonTqc.js.br +0 -9
  33. package/dist/AvailabilitySkeleton-gympaD6B.js +0 -217
  34. package/dist/AvailabilitySkeleton-gympaD6B.js.br +0 -0
  35. package/dist/CheckoutWindow-sws5X9v2.js.br +0 -0
  36. package/dist/DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js.br +0 -0
  37. package/dist/ErrorMessage-GzJ2T5_d.js.br +0 -0
  38. package/dist/EventAvailabilityForm-c0u7rObv.js +0 -367
  39. package/dist/EventAvailabilityForm-c0u7rObv.js.br +0 -0
  40. package/dist/Field-hjOjPQhC.js +0 -41
  41. package/dist/Field-hjOjPQhC.js.br +0 -0
  42. package/dist/ThankYou-d129mmKn.js +0 -11549
  43. package/dist/ThankYou-d129mmKn.js.br +0 -0
  44. package/dist/_-hKpeUU4C.js.br +0 -0
package/dist/hotel.js CHANGED
@@ -1,168 +1,167 @@
1
- import { g as K, d as j, j as J, aB as fo, D as Q, G as ge, a9 as de, o as E, a as M, aC as mo, u as r, w as P, a6 as Ae, b as y, t as V, U as ie, ac as ot, ad as nt, f as C, N as G, aD as qe, aE as go, h as I, K as z, F as R, i as L, M as Ge, aF as ce, P as re, c as N, _ as Ie, v as yt, x as bt, k as se, aG as kt, l as $e, H as Ee, e as _t, C as ue, am as Et, az as Tt, a8 as Ct, m as je, n as Te, I as It, r as it, T as ne, E as Y, aA as vo, s as yo, S as bo, Q as ko, J as U, q as _o, B as $t, aj as St, aH as Eo, y as To, z as Co, A as Io, V as $o } from "./_-hKpeUU4C.js";
2
- import { _ as So, R as Vo, S as wo, M as Lo, T as Po, G as Do } from "./ThankYou-d129mmKn.js";
3
- import { A as Ao, H as Oo } from "./AvailabilitySkeleton-gympaD6B.js";
4
- import { b as xo, C as Ye, P as Ho, a as Mo } from "./CheckoutWindow-sws5X9v2.js";
5
- import { _ as Vt } from "./DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js";
6
- import { c as wt, g as Lt } from "./_commonjsHelpers-f3sTPFkQ.js";
7
- const Se = /* @__PURE__ */ K(So, [["__scopeId", "data-v-48093561"]]), Ro = { class: "konnectio-hotel-reservation-warning" }, Bo = { class: "konnectio-hotel-reservation-warning" };
8
- const zo = { key: 0 }, Wo = { key: 1 }, Fo = /* @__PURE__ */ j({
1
+ import { d as q, u as J, aa as Ft, s as K, c as ce, b as ie, f, n as D, a4 as Ot, j as l, z as V, Z as De, h as r, A as y, a3 as te, ai as je, aj as Ge, k as g, a1 as j, a6 as Ee, av as Nt, g as m, ab as B, F as E, m as k, ac as Me, aw as se, a2 as oe, x as Z, e as U, _ as ke, G as Qe, H as Xe, r as le, ax as xe, o as _e, w as ve, p as et, C as ae, a5 as tt, a9 as ot, a as lt, t as Be, q as ye, I as nt, y as qe, T as ee, ay as jt, E as Gt, S as qt, ad as Wt, l as R, D as Kt, aq as zt, az as Jt, J as Zt, K as Yt, L as Qt, af as Xt, M as xt } from "./Field-wvMopAED.js";
2
+ import { R as eo, B as Ve, L as to, S as oo, M as lo, a as Se, T as no, V as ao, G as io } from "./masonry.plugin-UcfbgWN-.js";
3
+ import { H as so } from "./HotelAvailabilityForm-GWIoGscc.js";
4
+ import { b as ro, C as Le, P as uo, a as co } from "./CheckoutWindow-Dmg9JyZJ.js";
5
+ import { _ as at, A as po } from "./AvailabilitySkeleton-HUUimpaX.js";
6
+ const fo = { class: "konnectio-hotel-reservation-warning" }, mo = { class: "konnectio-hotel-reservation-warning" };
7
+ const ho = { key: 0 }, go = { key: 1 }, vo = /* @__PURE__ */ q({
9
8
  __name: "HotelReservationForm",
10
9
  props: {
11
10
  showGiftCard: { type: Boolean, default: !1 },
12
11
  showTermsNotice: { type: Boolean, default: !1 }
13
12
  },
14
13
  setup(o) {
15
- const { t: e } = J(), t = fo(), {
14
+ const { t: e } = J(), t = Ft(), {
16
15
  hideArrivalDepartureInputs: n,
17
- disableArrivalUserSelection: p,
18
- disableDepartureUserSelection: s,
19
- arrivalDefault: h,
20
- departureDefault: d,
21
- currency: l
22
- } = Q(ge()), {
23
- arrivalTime: u,
24
- departureTime: f,
25
- roomDisplay: g,
26
- templateID: _,
27
- totalPrice: c,
28
- areListingsLoading: b,
29
- getSelectedPackageRoom: k,
30
- selectedPackage: m,
31
- discountVouchers: i,
32
- currentArrivalDate: a,
33
- currentDepartureDate: v,
34
- datesMismatch: T
35
- } = Q(de()), { removeRoom: S } = de();
36
- function w(A) {
37
- return A.reduce((O, { totalPrice: W }) => O + W, 0);
16
+ disableArrivalUserSelection: a,
17
+ disableDepartureUserSelection: i,
18
+ arrivalDefault: c,
19
+ departureDefault: p,
20
+ currency: d
21
+ } = K(ce()), {
22
+ arrivalTime: s,
23
+ departureTime: u,
24
+ roomDisplay: h,
25
+ templateID: b,
26
+ totalPrice: S,
27
+ areListingsLoading: H,
28
+ getSelectedPackageRoom: L,
29
+ selectedPackage: G,
30
+ discountVouchers: _,
31
+ currentArrivalDate: C,
32
+ currentDepartureDate: A,
33
+ datesMismatch: N
34
+ } = K(ie()), { removeRoom: F } = ie();
35
+ function O(I) {
36
+ return I.reduce((w, { totalPrice: ne }) => w + ne, 0);
38
37
  }
39
- return (A, B) => (E(), M(Vo, {
40
- "total-price": r(c),
41
- "show-gift-card": A.showGiftCard,
42
- "show-terms-notice": A.showTermsNotice,
43
- "is-sidebar-loading": r(b),
44
- notice: r(e)("hotel.reservationNotice")
45
- }, mo({
46
- form: P(() => [
47
- Ae(A.$slots, "form", {}, void 0, !0)
38
+ return (I, Y) => (f(), D(eo, {
39
+ "total-price": l(S),
40
+ "show-gift-card": I.showGiftCard,
41
+ "show-terms-notice": I.showTermsNotice,
42
+ "is-sidebar-loading": l(H),
43
+ notice: l(e)("hotel.reservationNotice")
44
+ }, Ot({
45
+ form: V(() => [
46
+ De(I.$slots, "form", {}, void 0, !0)
48
47
  ]),
49
- "reservation-summary": P(() => [
50
- y("li", null, [
51
- y("span", null, V(r(e)("booking.reservation.arrival")), 1),
52
- y("b", null, [
53
- y("span", null, V(r(n) ? r(ie)(r(a)) : `${r(ie)(r(a))}, ${r(p) ? r(h) : r(u)}`), 1),
54
- ot(y("span", Ro, [
55
- C(G, {
48
+ "reservation-summary": V(() => [
49
+ r("li", null, [
50
+ r("span", null, y(l(e)("booking.reservation.arrival")), 1),
51
+ r("b", null, [
52
+ r("span", null, y(l(n) ? l(te)(l(C)) : `${l(te)(l(C))}, ${l(a) ? l(c) : l(s)}`), 1),
53
+ je(r("span", fo, [
54
+ g(j, {
56
55
  icon: "exclamation-triangle",
57
56
  type: "fas"
58
57
  })
59
58
  ], 512), [
60
- [nt, r(T)]
59
+ [Ge, l(N)]
61
60
  ])
62
61
  ])
63
62
  ]),
64
- y("li", null, [
65
- y("span", null, V(r(e)("booking.reservation.departure")), 1),
66
- y("b", null, [
67
- y("span", null, V(r(n) ? r(ie)(r(v)) : `${r(ie)(r(v))}, ${r(s) ? r(d) : r(f)}`), 1),
68
- ot(y("span", Bo, [
69
- C(G, {
63
+ r("li", null, [
64
+ r("span", null, y(l(e)("booking.reservation.departure")), 1),
65
+ r("b", null, [
66
+ r("span", null, y(l(n) ? l(te)(l(A)) : `${l(te)(l(A))}, ${l(i) ? l(p) : l(u)}`), 1),
67
+ je(r("span", mo, [
68
+ g(j, {
70
69
  icon: "exclamation-triangle",
71
70
  type: "fas"
72
71
  })
73
72
  ], 512), [
74
- [nt, r(T)]
73
+ [Ge, l(N)]
75
74
  ])
76
75
  ])
77
76
  ]),
78
- y("li", null, [
79
- y("span", null, V(r(e)("booking.reservation.nights")), 1),
80
- y("b", null, V(r(qe)(r(a), r(v))) + " " + V(r(go)(r(qe)(r(a), r(v)) === 1 ? r(e)("booking.reservation.night") : r(e)("booking.reservation.nights"))), 1)
77
+ r("li", null, [
78
+ r("span", null, y(l(e)("booking.reservation.nights")), 1),
79
+ r("b", null, y(l(Ee)(l(C), l(A))) + " " + y(l(Nt)(l(Ee)(l(C), l(A)) === 1 ? l(e)("booking.reservation.night") : l(e)("booking.reservation.nights"))), 1)
81
80
  ]),
82
- r(i) ? (E(!0), I(R, { key: 0 }, z(r(i), (O) => (E(), I("li", {
83
- key: O.id
81
+ l(_) ? (f(!0), m(E, { key: 0 }, B(l(_), (w) => (f(), m("li", {
82
+ key: w.id
84
83
  }, [
85
- y("span", null, V(`${r(e)("general.discountCode")} (${O.value})`), 1),
86
- y("b", null, V(O.key), 1)
87
- ]))), 128)) : L("", !0)
84
+ r("span", null, y(`${l(e)("general.discountCode")} (${w.value})`), 1),
85
+ r("b", null, y(w.key), 1)
86
+ ]))), 128)) : k("", !0)
88
87
  ]),
89
- "price-summary": P(() => [
90
- isNaN(r(_)) && r(g).length > 0 ? (E(!0), I(R, { key: 0 }, z(r(g), ({
91
- roomGroupID: O,
92
- title: W,
93
- variants: X
94
- }) => (E(), I("div", { key: O }, [
95
- y("h6", null, [
96
- y("span", null, V(W), 1)
88
+ "price-summary": V(() => [
89
+ isNaN(l(b)) && l(h).length > 0 ? (f(!0), m(E, { key: 0 }, B(l(h), ({
90
+ roomGroupID: w,
91
+ title: ne,
92
+ variants: Te
93
+ }) => (f(), m("div", { key: w }, [
94
+ r("h6", null, [
95
+ r("span", null, y(ne), 1)
97
96
  ]),
98
- (E(!0), I(R, null, z(X, (ae, le) => (E(), I("div", { key: le }, [
99
- (E(!0), I(R, null, z(ae.rooms, (Z, Ve) => (E(), I("ul", { key: Ve }, [
100
- y("li", null, [
101
- y("span", null, [
102
- y("span", null, [
103
- Ge(V(r(ce)(ae.name)) + " ( ", 1),
104
- C(G, {
97
+ (f(!0), m(E, null, B(Te, (pe, fe) => (f(), m("div", { key: fe }, [
98
+ (f(!0), m(E, null, B(pe.rooms, (Q, $e) => (f(), m("ul", { key: $e }, [
99
+ r("li", null, [
100
+ r("span", null, [
101
+ r("span", null, [
102
+ Me(y(l(se)(pe.name)) + " ( ", 1),
103
+ g(j, {
105
104
  icon: "male",
106
105
  type: "fas",
107
106
  color: "font"
108
107
  }),
109
- y("span", null, V(Z.adultsCount), 1),
110
- Z.childrenCount > 0 ? (E(), I(R, { key: 0 }, [
111
- C(G, {
108
+ r("span", null, y(Q.adultsCount), 1),
109
+ Q.childrenCount > 0 ? (f(), m(E, { key: 0 }, [
110
+ g(j, {
112
111
  icon: "child",
113
112
  type: "fas",
114
113
  color: "font"
115
114
  }),
116
- y("span", null, V(Z.childrenCount), 1)
117
- ], 64)) : L("", !0),
118
- Ge(") ")
115
+ r("span", null, y(Q.childrenCount), 1)
116
+ ], 64)) : k("", !0),
117
+ Me(") ")
119
118
  ])
120
119
  ]),
121
- y("b", null, [
122
- y("span", null, V(r(re)(Z.totalPrice, r(l))), 1),
123
- L("", !0)
120
+ r("b", null, [
121
+ r("span", null, y(l(oe)(Q.totalPrice, l(d))), 1),
122
+ k("", !0)
124
123
  ])
125
124
  ]),
126
- w(Z.roomAddons) > 0 ? (E(), I("li", zo, [
127
- y("span", null, V(r(e)("general.addons")), 1),
128
- y("b", null, V(r(re)(w(Z.roomAddons), r(l))), 1)
129
- ])) : L("", !0)
125
+ O(Q.roomAddons) > 0 ? (f(), m("li", ho, [
126
+ r("span", null, y(l(e)("general.addons")), 1),
127
+ r("b", null, y(l(oe)(O(Q.roomAddons), l(d))), 1)
128
+ ])) : k("", !0)
130
129
  ]))), 128))
131
130
  ]))), 128))
132
- ]))), 128)) : L("", !0),
133
- r(k) && r(m) ? (E(), I("div", Wo, [
134
- y("h6", null, [
135
- y("span", null, V(r(ce)(r(m).name)), 1)
131
+ ]))), 128)) : k("", !0),
132
+ l(L) && l(G) ? (f(), m("div", go, [
133
+ r("h6", null, [
134
+ r("span", null, y(l(se)(l(G).name)), 1)
136
135
  ]),
137
- y("div", null, [
138
- y("ul", null, [
139
- y("li", null, [
140
- y("span", null, [
141
- y("span", null, V(r(ce)(r(k).title)), 1)
136
+ r("div", null, [
137
+ r("ul", null, [
138
+ r("li", null, [
139
+ r("span", null, [
140
+ r("span", null, y(l(se)(l(L).title)), 1)
142
141
  ]),
143
- y("b", null, [
144
- y("span", null, V(r(re)(r(k).extraPrice, r(l))), 1)
142
+ r("b", null, [
143
+ r("span", null, y(l(oe)(l(L).extraPrice, l(d))), 1)
145
144
  ])
146
145
  ])
147
146
  ])
148
147
  ])
149
- ])) : L("", !0)
148
+ ])) : k("", !0)
150
149
  ]),
151
- navigation: P(() => [
152
- Ae(A.$slots, "navigation", {}, void 0, !0)
150
+ navigation: V(() => [
151
+ De(I.$slots, "navigation", {}, void 0, !0)
153
152
  ]),
154
153
  _: 2
155
154
  }, [
156
- r(t).addons ? {
155
+ l(t).addons ? {
157
156
  name: "addons",
158
- fn: P(() => [
159
- Ae(A.$slots, "addons", {}, void 0, !0)
157
+ fn: V(() => [
158
+ De(I.$slots, "addons", {}, void 0, !0)
160
159
  ]),
161
160
  key: "0"
162
161
  } : void 0
163
162
  ]), 1032, ["total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
164
163
  }
165
- }), Oe = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-b2859c46"]]), No = (o) => (yt("data-v-69fe83d8"), o = o(), bt(), o), Uo = { class: "konnectio-room-config-option" }, qo = { key: 0 }, Go = { class: "konnectio-selected-room-config" }, jo = { class: "konnectio-selected-room-config-people" }, Yo = { key: 0 }, Ko = { class: "konnectio-selected-room-config-price" }, Qo = /* @__PURE__ */ No(() => /* @__PURE__ */ y("span", null, null, -1)), Jo = /* @__PURE__ */ j({
164
+ }), Ae = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-b2859c46"]]), yo = (o) => (Qe("data-v-69fe83d8"), o = o(), Xe(), o), bo = { class: "konnectio-room-config-option" }, ko = { key: 0 }, _o = { class: "konnectio-selected-room-config" }, Vo = { class: "konnectio-selected-room-config-people" }, To = { key: 0 }, $o = { class: "konnectio-selected-room-config-price" }, wo = /* @__PURE__ */ yo(() => /* @__PURE__ */ r("span", null, null, -1)), Co = /* @__PURE__ */ q({
166
165
  __name: "RoomConfigField",
167
166
  props: {
168
167
  modelValue: {},
@@ -173,100 +172,97 @@ const zo = { key: 0 }, Wo = { key: 1 }, Fo = /* @__PURE__ */ j({
173
172
  },
174
173
  emits: ["update:modelValue"],
175
174
  setup(o, { emit: e }) {
176
- const { t } = J(), { currency: n } = Q(ge()), p = e, s = o;
177
- function h(l) {
178
- p("update:modelValue", l);
175
+ const { t } = J(), { currency: n } = K(ce()), a = e, i = o;
176
+ function c(d) {
177
+ a("update:modelValue", d);
179
178
  }
180
- const d = N({
181
- get: () => s.modelValue,
182
- set: (l) => h(l)
179
+ const p = U({
180
+ get: () => i.modelValue,
181
+ set: (d) => c(d)
183
182
  });
184
- return (l, u) => (E(), M(Ie, {
185
- modelValue: d.value,
186
- "onUpdate:modelValue": u[0] || (u[0] = (f) => d.value = f),
187
- label: l.label,
183
+ return (d, s) => (f(), D(ke, {
184
+ modelValue: p.value,
185
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => p.value = u),
186
+ label: d.label,
188
187
  placeholder: "Select guest configuration",
189
188
  labelKey: "label",
190
189
  valueKey: "value",
191
190
  "icon-placement": "label",
192
- options: l.options,
193
- readonly: l.readonly,
194
- required: l.required,
191
+ options: d.options,
192
+ readonly: d.readonly,
193
+ required: d.required,
195
194
  searchable: !1
196
195
  }, {
197
- option: P(({ data: f }) => [
198
- y("span", Uo, [
199
- y("div", null, [
200
- C(G, {
196
+ option: V(({ data: u }) => [
197
+ r("span", bo, [
198
+ r("div", null, [
199
+ g(j, {
201
200
  icon: "male",
202
201
  type: "fas",
203
202
  color: "font"
204
203
  }),
205
- y("span", null, V(`${f.adults}`), 1),
206
- f.children > 0 ? (E(), I("span", qo, [
207
- C(G, {
204
+ r("span", null, y(`${u.adults}`), 1),
205
+ u.children > 0 ? (f(), m("span", ko, [
206
+ g(j, {
208
207
  icon: "child",
209
208
  type: "fas",
210
209
  color: "font"
211
210
  }),
212
- y("span", null, V(`${f.children}`), 1)
213
- ])) : L("", !0)
211
+ r("span", null, y(`${u.children}`), 1)
212
+ ])) : k("", !0)
214
213
  ]),
215
- y("span", null, V(`(${r(re)(f.price, r(n))})`), 1)
214
+ r("span", null, y(`(${l(oe)(u.price, l(n))})`), 1)
216
215
  ])
217
216
  ]),
218
- "selected-option": P(({ data: f }) => [
219
- y("div", Go, [
220
- y("div", jo, [
221
- y("div", null, [
222
- L("", !0),
223
- y("span", null, V(`${f.adults} ${f.adults === 1 ? r(t)("general.adult") : r(t)("general.adults")}`), 1)
217
+ "selected-option": V(({ data: u }) => [
218
+ r("div", _o, [
219
+ r("div", Vo, [
220
+ r("div", null, [
221
+ k("", !0),
222
+ r("span", null, y(`${u.adults} ${u.adults === 1 ? l(t)("general.adult") : l(t)("general.adults")}`), 1)
224
223
  ]),
225
- f.children > 0 ? (E(), I("div", Yo, [
226
- L("", !0),
227
- y("span", null, V(`& ${f.children} ${f.children === 1 ? r(t)("general.child") : r(t)("general.children")}`), 1)
228
- ])) : L("", !0)
224
+ u.children > 0 ? (f(), m("div", To, [
225
+ k("", !0),
226
+ r("span", null, y(`& ${u.children} ${u.children === 1 ? l(t)("general.child") : l(t)("general.children")}`), 1)
227
+ ])) : k("", !0)
229
228
  ]),
230
- y("div", Ko, [
231
- Qo,
232
- Ge(" " + V(`(${r(re)(f.price, r(n))})`), 1)
229
+ r("div", $o, [
230
+ wo,
231
+ Me(" " + y(`(${l(oe)(u.price, l(n))})`), 1)
233
232
  ])
234
233
  ])
235
234
  ]),
236
235
  _: 1
237
236
  }, 8, ["modelValue", "label", "options", "readonly", "required"]));
238
237
  }
239
- }), Xo = /* @__PURE__ */ K(Jo, [["__scopeId", "data-v-69fe83d8"]]), Zo = { class: "konnectio-availability-listing-selection" }, en = { key: 1 }, tn = { class: "fresh-booking-listing-config-body" }, on = { class: "fresh-booking-listing-units-body" };
240
- const nn = /* @__PURE__ */ j({
238
+ }), Ho = /* @__PURE__ */ Z(Co, [["__scopeId", "data-v-69fe83d8"]]), Po = { class: "konnectio-availability-listing-selection" }, Do = { key: 1 }, So = { class: "fresh-booking-listing-config-body" }, Ao = { class: "fresh-booking-listing-units-body" };
239
+ const Io = /* @__PURE__ */ q({
241
240
  __name: "Hotel",
242
241
  props: {
243
242
  room: {},
244
243
  layout: {}
245
244
  },
246
245
  setup(o) {
247
- const { t: e } = J(), t = o, n = se([]);
248
- function p(a) {
249
- n.value[a].config.push({
246
+ const { t: e } = J(), t = o, n = le([]);
247
+ function a(_) {
248
+ n.value[_].config.push({
250
249
  id: NaN,
251
250
  units: 0,
252
251
  addons: []
253
252
  });
254
253
  }
255
- const s = N(() => t.room.rates.map((a) => ({
256
- label: a.name,
257
- value: a.id
258
- }))), { hideAvailableRoomAmount: h } = Q(ge()), { roomSelect: d } = Q(de()), { addToCart: l, removeFromCart: u } = kt(), f = (a, v) => t.room.rates.find((T) => T.id === a)?.occupantRates.find((T) => T.index === v), g = N(() => t.room.rates.reduce(
259
- (a, v) => a < v.rackRate ? a : v.rackRate,
260
- 1 / 0
261
- )), _ = N(() => t.room.rates.every((a) => a.isBreakfastIncluded === !0)), c = (a, v) => f(a, v) ? f(a, v)?.rooms : null, b = (a) => t.room.rates.length > 0 ? t.room.rates.find((v) => v.id === a)?.occupantRates.map((v) => ({
262
- value: v.index,
263
- price: v.totalPrice,
264
- adults: v.adultsCount,
265
- children: v.childrenCount,
266
- hasBreakfast: v.hasBreakfast
267
- })) || [] : [], k = N(() => t.room.rates.length > 1);
268
- function m() {
269
- k.value ? n.value.push({
254
+ const i = U(() => t.room.rates.map((_) => ({
255
+ label: _.name,
256
+ value: _.id
257
+ }))), { hideAvailableRoomAmount: c } = K(ce()), { roomSelect: p } = K(ie()), { addToCart: d, removeFromCart: s } = xe(), u = (_, C) => t.room.rates.find((A) => A.id === _)?.occupantRates.find((A) => A.index === C), h = U(() => t.room.rates.every((_) => _.isBreakfastIncluded === !0)), b = (_, C) => u(_, C) ? u(_, C)?.rooms : null, S = (_) => t.room.rates.length > 0 ? t.room.rates.find((C) => C.id === _)?.occupantRates.map((C) => ({
258
+ value: C.index,
259
+ price: C.totalPrice,
260
+ adults: C.adultsCount,
261
+ children: C.childrenCount,
262
+ hasBreakfast: C.hasBreakfast
263
+ })) || [] : [], H = U(() => t.room.rates.length > 1);
264
+ function L() {
265
+ H.value ? n.value.push({
270
266
  id: void 0,
271
267
  config: [{
272
268
  id: t.room.rates[0].occupantRateIndex || NaN,
@@ -282,100 +278,100 @@ const nn = /* @__PURE__ */ j({
282
278
  }]
283
279
  });
284
280
  }
285
- $e(() => {
286
- m();
281
+ _e(() => {
282
+ L();
287
283
  });
288
- const i = N(() => JSON.parse(JSON.stringify(n.value)));
289
- return Ee(i, (a, v) => {
290
- v.length > 0 && a.forEach((T, S) => {
291
- T.config.forEach((w, A) => {
292
- const B = w.units, O = v[S].config[A].units;
293
- B !== O && (B > O ? (n.value[S].config[A].addons.push({}), l({
284
+ const G = U(() => JSON.parse(JSON.stringify(n.value)));
285
+ return ve(G, (_, C) => {
286
+ C.length > 0 && _.forEach((A, N) => {
287
+ A.config.forEach((F, O) => {
288
+ const I = F.units, Y = C[N].config[O].units;
289
+ I !== Y && (I > Y ? (n.value[N].config[O].addons.push({}), d({
294
290
  id: t.room.id,
295
291
  name: t.room.title,
296
- value: t.room.rates[S].rackRate
297
- })) : (n.value[S].config[A].addons.pop(), u({
292
+ value: t.room.rates[N].rackRate
293
+ })) : (n.value[N].config[O].addons.pop(), s({
298
294
  id: t.room.id,
299
295
  name: t.room.title,
300
- value: t.room.rates[S].rackRate
296
+ value: t.room.rates[N].rackRate
301
297
  })));
302
298
  });
303
299
  });
304
- }, { deep: !0 }), Ee(n, () => {
305
- d.value[t.room.id] = n.value;
306
- }, { deep: !0 }), (a, v) => (E(), M(Se, {
307
- "listing-id": a.room.id,
308
- gallery: a.room.images,
309
- name: a.room.title,
310
- description: a.room.description,
311
- layout: a.layout,
312
- facilities: a.room.facilities,
313
- "prices-from": g.value,
314
- "includes-breakfast": _.value
300
+ }, { deep: !0 }), ve(n, () => {
301
+ p.value[t.room.id] = n.value;
302
+ }, { deep: !0 }), (_, C) => (f(), D(Ve, {
303
+ "listing-id": _.room.id,
304
+ gallery: _.room.images,
305
+ name: _.room.title,
306
+ description: _.room.description,
307
+ layout: _.layout,
308
+ facilities: _.room.facilities,
309
+ "prices-from": _.room.pricesFrom,
310
+ "includes-breakfast": h.value
315
311
  }, {
316
- action: P(() => [
317
- y("div", Zo, [
318
- (E(!0), I(R, null, z(n.value, (T, S) => (E(), I("div", {
319
- key: T.id,
312
+ action: V(() => [
313
+ r("div", Po, [
314
+ (f(!0), m(E, null, B(n.value, (A, N) => (f(), m("div", {
315
+ key: A.id,
320
316
  class: "freshbooking-hotel-room"
321
317
  }, [
322
- k.value ? (E(), M(Ie, {
318
+ H.value ? (f(), D(ke, {
323
319
  key: 0,
324
- modelValue: T.id,
325
- "onUpdate:modelValue": (w) => T.id = w,
326
- label: r(e)("hotel.roomVariant"),
327
- placeholder: r(e)("hotel.chooseARoomVariant"),
328
- options: s.value,
320
+ modelValue: A.id,
321
+ "onUpdate:modelValue": (F) => A.id = F,
322
+ label: l(e)("hotel.roomVariant"),
323
+ placeholder: l(e)("hotel.chooseARoomVariant"),
324
+ options: i.value,
329
325
  searchable: !1
330
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : L("", !0),
331
- T.id ? (E(), I("div", en, [
332
- (E(!0), I(R, null, z(a.room.rates, ({
333
- id: w,
334
- maximumOccupants: A
335
- }) => (E(), I("div", {
336
- key: w,
326
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : k("", !0),
327
+ A.id ? (f(), m("div", Do, [
328
+ (f(!0), m(E, null, B(_.room.rates, ({
329
+ id: F,
330
+ maximumOccupants: O
331
+ }) => (f(), m("div", {
332
+ key: F,
337
333
  class: "booking-availability-listing-action-selective-i"
338
334
  }, [
339
- T.id === w ? (E(!0), I(R, { key: 0 }, z(T.config, (B, O) => (E(), I("div", {
340
- key: O,
335
+ A.id === F ? (f(!0), m(E, { key: 0 }, B(A.config, (I, Y) => (f(), m("div", {
336
+ key: Y,
341
337
  class: "booking-availability-listing-action-selective"
342
338
  }, [
343
- y("ul", tn, [
344
- C(Xo, {
345
- modelValue: B.id,
346
- "onUpdate:modelValue": (W) => B.id = W,
339
+ r("ul", So, [
340
+ g(Ho, {
341
+ modelValue: I.id,
342
+ "onUpdate:modelValue": (w) => I.id = w,
347
343
  icon: "male",
348
344
  "icon-type": "fas",
349
- label: r(e)("general.guests"),
350
- description: `${r(e)("general.maximumGuests")}: ${A}`,
351
- options: b(w),
352
- readonly: !(b(w).length > 1)
345
+ label: l(e)("general.guests"),
346
+ description: `${l(e)("general.maximumGuests")}: ${O}`,
347
+ options: S(F),
348
+ readonly: !(S(F).length > 1)
353
349
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
354
350
  ]),
355
- y("ul", on, [
356
- C(_t, {
357
- modelValue: B.units,
358
- "onUpdate:modelValue": (W) => B.units = W,
359
- description: r(h) ? void 0 : `${r(e)("booking.availability.availableUnits")}: ${c(T.id, B.id)}`,
351
+ r("ul", Ao, [
352
+ g(et, {
353
+ modelValue: I.units,
354
+ "onUpdate:modelValue": (w) => I.units = w,
355
+ description: l(c) ? void 0 : `${l(e)("booking.availability.availableUnits")}: ${b(A.id, I.id)}`,
360
356
  icon: "house",
361
357
  "icon-type": "fas",
362
358
  "icon-placement": "label",
363
- label: r(e)("booking.availability.units"),
359
+ label: l(e)("booking.availability.units"),
364
360
  minValue: 0,
365
- "max-value": c(w, B.id) || 1 / 0
361
+ "max-value": b(F, I.id) || 1 / 0
366
362
  }, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
367
363
  ]),
368
- L("", !0)
369
- ]))), 128)) : L("", !0)
364
+ k("", !0)
365
+ ]))), 128)) : k("", !0)
370
366
  ]))), 128))
371
- ])) : L("", !0)
367
+ ])) : k("", !0)
372
368
  ]))), 128))
373
369
  ])
374
370
  ]),
375
371
  _: 1
376
372
  }, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
377
373
  }
378
- }), rn = /* @__PURE__ */ K(nn, [["__scopeId", "data-v-eb0eba62"]]), sn = { class: "konnectio-template-side-panel" }, an = { class: "konnectio-template-side-panel-listings" }, ln = /* @__PURE__ */ j({
374
+ }), Eo = /* @__PURE__ */ Z(Io, [["__scopeId", "data-v-2121431c"]]), Mo = { class: "konnectio-template-side-panel" }, Bo = { class: "konnectio-template-side-panel-listings" }, Lo = /* @__PURE__ */ q({
379
375
  __name: "Template",
380
376
  props: {
381
377
  title: {},
@@ -384,39 +380,39 @@ const nn = /* @__PURE__ */ j({
384
380
  callback: { type: Function }
385
381
  },
386
382
  setup(o) {
387
- const { t: e } = J(), { templateID: t, roomGroupID: n } = Q(de()), { currency: p } = Q(ge()), { clearRoomSelection: s } = de(), h = o;
388
- function d(l) {
389
- t.value = h.templateId, n.value = l, s(), h.callback(2);
383
+ const { t: e } = J(), { templateID: t, roomGroupID: n } = K(ie()), { currency: a } = K(ce()), { clearRoomSelection: i } = ie(), c = o;
384
+ function p(d) {
385
+ t.value = c.templateId, n.value = d, i(), c.callback(2);
390
386
  }
391
- return (l, u) => (E(), M(xo, {
392
- title: l.title,
393
- subtitle: r(e)("booking.availability.selectATemplateRoom")
387
+ return (d, s) => (f(), D(ro, {
388
+ title: d.title,
389
+ subtitle: l(e)("booking.availability.selectATemplateRoom")
394
390
  }, {
395
- default: P(() => [
396
- y("div", sn, [
397
- y("div", an, [
398
- (E(!0), I(R, null, z(l.roomGroups, ({
399
- id: f,
400
- title: g,
401
- description: _,
402
- images: c,
403
- facilities: b,
404
- extraPrice: k
405
- }) => (E(), M(Se, {
406
- key: f,
407
- "listing-id": f,
408
- name: g,
409
- description: _,
410
- facilities: b,
411
- gallery: c,
391
+ default: V(() => [
392
+ r("div", Mo, [
393
+ r("div", Bo, [
394
+ (f(!0), m(E, null, B(d.roomGroups, ({
395
+ id: u,
396
+ title: h,
397
+ description: b,
398
+ images: S,
399
+ facilities: H,
400
+ extraPrice: L
401
+ }) => (f(), D(Ve, {
402
+ key: u,
403
+ "listing-id": u,
404
+ name: h,
405
+ description: b,
406
+ facilities: H,
407
+ gallery: S,
412
408
  "includes-breakfast": !1,
413
409
  "hide-info-button": !0
414
410
  }, {
415
- action: P(() => [
416
- y("div", null, [
417
- C(ue, {
418
- onClickEvent: (m) => d(f),
419
- label: `${r(e)("booking.availability.selectThisRoom")} (${r(re)(k, r(p))})`,
411
+ action: V(() => [
412
+ r("div", null, [
413
+ g(ae, {
414
+ onClickEvent: (G) => p(u),
415
+ label: `${l(e)("booking.availability.selectThisRoom")} (${l(oe)(L, l(a))})`,
420
416
  "full-width": ""
421
417
  }, null, 8, ["onClickEvent", "label"])
422
418
  ])
@@ -429,7 +425,7 @@ const nn = /* @__PURE__ */ j({
429
425
  _: 1
430
426
  }, 8, ["title", "subtitle"]));
431
427
  }
432
- }), Pt = /* @__PURE__ */ K(ln, [["__scopeId", "data-v-4c035ea3"]]), un = ["innerHTML"], dn = { class: "konnectio-template-select-package" }, cn = /* @__PURE__ */ j({
428
+ }), it = /* @__PURE__ */ Z(Lo, [["__scopeId", "data-v-4c035ea3"]]), Ro = ["innerHTML"], Uo = { class: "konnectio-template-select-package" }, Fo = /* @__PURE__ */ q({
433
429
  __name: "Template",
434
430
  props: {
435
431
  id: {},
@@ -441,60 +437,60 @@ const nn = /* @__PURE__ */ j({
441
437
  callback: { type: Function }
442
438
  },
443
439
  setup(o) {
444
- const { t: e } = J(), t = o, n = N(() => t.roomGroups.reduce(
445
- (l, u) => l < u.extraPrice ? l : u.extraPrice,
440
+ const { t: e } = J(), t = o, n = U(() => t.roomGroups.reduce(
441
+ (d, s) => d < s.extraPrice ? d : s.extraPrice,
446
442
  1 / 0
447
- )), p = N(() => [{
443
+ )), a = U(() => [{
448
444
  large: t.image.url,
449
445
  medium: t.image.url,
450
446
  thumb: t.image.url,
451
447
  url: t.image.url
452
- }]), s = se(!1);
453
- function h() {
454
- s.value = !0;
448
+ }]), i = le(!1);
449
+ function c() {
450
+ i.value = !0;
455
451
  }
456
- function d(l) {
457
- t.callback(l), s.value = !1;
452
+ function p(d) {
453
+ t.callback(d), i.value = !1;
458
454
  }
459
- return (l, u) => (E(), M(Se, {
460
- "listing-id": l.id,
461
- name: l.name,
462
- description: l.description,
463
- gallery: p.value,
464
- layout: r(Tt).Template,
455
+ return (d, s) => (f(), D(Ve, {
456
+ "listing-id": d.id,
457
+ name: d.name,
458
+ description: d.description,
459
+ gallery: a.value,
460
+ layout: l(ot).Template,
465
461
  "includes-breakfast": !1,
466
462
  "hide-info-button": !1,
467
463
  "prices-from": n.value
468
464
  }, {
469
- description: P(() => [
470
- l.description ? (E(), I("p", {
465
+ description: V(() => [
466
+ d.description ? (f(), m("p", {
471
467
  key: 0,
472
- innerHTML: r(Et)(l.description)
473
- }, null, 8, un)) : L("", !0)
468
+ innerHTML: l(tt)(d.description)
469
+ }, null, 8, Ro)) : k("", !0)
474
470
  ]),
475
- action: P(() => [
476
- y("div", dn, [
477
- C(ue, {
478
- onClickEvent: h,
479
- label: r(e)("booking.availability.selectPackage"),
471
+ action: V(() => [
472
+ r("div", Uo, [
473
+ g(ae, {
474
+ onClickEvent: c,
475
+ label: l(e)("booking.availability.selectPackage"),
480
476
  "full-width": ""
481
477
  }, null, 8, ["label"])
482
478
  ])
483
479
  ]),
484
- default: P(() => [
485
- C(Pt, {
486
- modelValue: s.value,
487
- "onUpdate:modelValue": u[0] || (u[0] = (f) => s.value = f),
488
- title: l.name,
489
- "template-id": l.id,
490
- roomGroups: l.roomGroups,
491
- callback: d
480
+ default: V(() => [
481
+ g(it, {
482
+ modelValue: i.value,
483
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => i.value = u),
484
+ title: d.name,
485
+ "template-id": d.id,
486
+ roomGroups: d.roomGroups,
487
+ callback: p
492
488
  }, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
493
489
  ]),
494
490
  _: 1
495
491
  }, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
496
492
  }
497
- }), pn = ["innerHTML"], hn = { class: "konnectio-special-offer-availability" }, fn = { class: "konnectio-special-offer-availability-button" }, mn = /* @__PURE__ */ j({
493
+ }), Oo = ["innerHTML"], No = { class: "konnectio-special-offer-availability" }, jo = { class: "konnectio-special-offer-availability-button" }, Go = /* @__PURE__ */ q({
498
494
  __name: "SpecialOffer",
499
495
  props: {
500
496
  id: {},
@@ -508,75 +504,75 @@ const nn = /* @__PURE__ */ j({
508
504
  callback: { type: Function }
509
505
  },
510
506
  setup(o) {
511
- const { t: e } = J(), { updateDates: t } = Ct(), n = o, p = se([]), s = N(() => qe(n.fromDate, n.toDate) === 1), h = N(() => [{
507
+ const { t: e } = J(), { updateDates: t } = lt(), n = o, a = le([]), i = U(() => Ee(n.fromDate, n.toDate) === 1), c = U(() => [{
512
508
  large: n.image.url,
513
509
  medium: n.image.url,
514
510
  thumb: n.image.url,
515
511
  url: n.image.url
516
- }]), d = se(!1);
517
- function l(f) {
518
- n.callback(f), d.value = !1;
512
+ }]), p = le(!1);
513
+ function d(u) {
514
+ n.callback(u), p.value = !1;
519
515
  }
520
- function u() {
521
- t(p.value[0], p.value[1]);
516
+ function s() {
517
+ t(a.value[0], a.value[1]);
522
518
  }
523
- return $e(() => {
524
- s.value && (p.value = [new Date(n.fromDate), new Date(n.toDate)]);
525
- }), (f, g) => (E(), M(Se, {
526
- "listing-id": f.id,
527
- name: f.name,
528
- description: f.description,
529
- gallery: h.value,
530
- layout: r(Tt).Template,
519
+ return _e(() => {
520
+ i.value && (a.value = [new Date(n.fromDate), new Date(n.toDate)]);
521
+ }), (u, h) => (f(), D(Ve, {
522
+ "listing-id": u.id,
523
+ name: u.name,
524
+ description: u.description,
525
+ gallery: c.value,
526
+ layout: l(ot).Template,
531
527
  "includes-breakfast": !1,
532
528
  "hide-info-button": !1,
533
- "to-date": f.toDate,
534
- "from-date": f.fromDate
529
+ "to-date": u.toDate,
530
+ "from-date": u.fromDate
535
531
  }, {
536
- description: P(() => [
537
- f.description ? (E(), I("p", {
532
+ description: V(() => [
533
+ u.description ? (f(), m("p", {
538
534
  key: 0,
539
- innerHTML: r(Et)(f.description)
540
- }, null, 8, pn)) : L("", !0)
535
+ innerHTML: l(tt)(u.description)
536
+ }, null, 8, Oo)) : k("", !0)
541
537
  ]),
542
- action: P(() => [
543
- y("div", hn, [
544
- C(Vt, {
545
- modelValue: p.value,
546
- "onUpdate:modelValue": g[0] || (g[0] = (_) => p.value = _),
547
- label: r(e)("availability.checkInOut"),
548
- placeholder: r(e)("booking.availability.selectDates"),
538
+ action: V(() => [
539
+ r("div", No, [
540
+ g(at, {
541
+ modelValue: a.value,
542
+ "onUpdate:modelValue": h[0] || (h[0] = (b) => a.value = b),
543
+ label: l(e)("availability.checkInOut"),
544
+ placeholder: l(e)("booking.availability.selectDates"),
549
545
  "icon-type": "fas",
550
546
  "icon-placement": "label",
551
547
  "min-range": 1,
552
- "start-date": new Date(f.fromDate),
553
- "min-date": new Date(f.fromDate),
554
- "max-date": new Date(f.toDate),
555
- readonly: s.value,
548
+ "start-date": new Date(u.fromDate),
549
+ "min-date": new Date(u.fromDate),
550
+ "max-date": new Date(u.toDate),
551
+ readonly: i.value,
556
552
  range: ""
557
553
  }, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
558
- y("div", fn, [
559
- C(ue, {
560
- label: r(e)("availability.buttonLabel"),
561
- onClick: je(u, ["prevent"])
554
+ r("div", jo, [
555
+ g(ae, {
556
+ label: l(e)("availability.buttonLabel"),
557
+ onClick: Be(s, ["prevent"])
562
558
  }, null, 8, ["label"])
563
559
  ])
564
560
  ])
565
561
  ]),
566
- default: P(() => [
567
- C(Pt, {
568
- modelValue: d.value,
569
- "onUpdate:modelValue": g[1] || (g[1] = (_) => d.value = _),
570
- title: f.name,
571
- "template-id": f.id,
572
- roomGroups: f.roomGroups,
573
- callback: l
562
+ default: V(() => [
563
+ g(it, {
564
+ modelValue: p.value,
565
+ "onUpdate:modelValue": h[1] || (h[1] = (b) => p.value = b),
566
+ title: u.name,
567
+ "template-id": u.id,
568
+ roomGroups: u.roomGroups,
569
+ callback: d
574
570
  }, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
575
571
  ]),
576
572
  _: 1
577
573
  }, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
578
574
  }
579
- }), rt = /* @__PURE__ */ j({
575
+ }), We = /* @__PURE__ */ q({
580
576
  __name: "TimeField",
581
577
  props: {
582
578
  modelValue: {},
@@ -602,28 +598,28 @@ const nn = /* @__PURE__ */ j({
602
598
  emits: ["update:modelValue"],
603
599
  setup(o, { emit: e }) {
604
600
  const t = e, n = o;
605
- function p(h) {
606
- t("update:modelValue", h);
601
+ function a(c) {
602
+ t("update:modelValue", c);
607
603
  }
608
- const s = se(n.modelValue);
609
- return Ee(s, (h) => {
610
- p(h);
611
- }), (h, d) => (E(), M(Vt, {
612
- modelValue: s.value,
613
- "onUpdate:modelValue": d[0] || (d[0] = (l) => s.value = l),
604
+ const i = le(n.modelValue);
605
+ return ve(i, (c) => {
606
+ a(c);
607
+ }), (c, p) => (f(), D(at, {
608
+ modelValue: i.value,
609
+ "onUpdate:modelValue": p[0] || (p[0] = (d) => i.value = d),
614
610
  type: "time",
615
- label: h.label,
616
- id: h.id,
617
- name: h.name,
618
- icon: h.icon,
619
- "icon-type": h.iconType,
620
- "icon-color": h.iconColor,
611
+ label: c.label,
612
+ id: c.id,
613
+ name: c.name,
614
+ icon: c.icon,
615
+ "icon-type": c.iconType,
616
+ "icon-color": c.iconColor,
621
617
  "auto-apply": !0,
622
- required: h.required,
623
- readonly: h.readonly
618
+ required: c.required,
619
+ readonly: c.readonly
624
620
  }, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
625
621
  }
626
- }), gn = { style: { display: "flex", "align-items": "baseline" } }, vn = /* @__PURE__ */ j({
622
+ }), qo = { style: { display: "flex", "align-items": "baseline" } }, Wo = /* @__PURE__ */ q({
627
623
  __name: "CountryField",
628
624
  props: {
629
625
  modelValue: {},
@@ -635,42 +631,42 @@ const nn = /* @__PURE__ */ j({
635
631
  },
636
632
  emits: ["update:modelValue"],
637
633
  setup(o, { emit: e }) {
638
- const { t } = J(), n = e, p = o;
639
- function s(d) {
640
- n("update:modelValue", d);
634
+ const { t } = J(), n = e, a = o;
635
+ function i(p) {
636
+ n("update:modelValue", p);
641
637
  }
642
- const h = N({
643
- get: () => p.modelValue,
644
- set: (d) => s(d)
638
+ const c = U({
639
+ get: () => a.modelValue,
640
+ set: (p) => i(p)
645
641
  });
646
- return (d, l) => (E(), M(Ie, {
647
- modelValue: h.value,
648
- "onUpdate:modelValue": l[0] || (l[0] = (u) => h.value = u),
649
- label: d.label,
650
- placeholder: r(t)("booking.reservation.countryPlaceholder"),
642
+ return (p, d) => (f(), D(ke, {
643
+ modelValue: c.value,
644
+ "onUpdate:modelValue": d[0] || (d[0] = (s) => c.value = s),
645
+ label: p.label,
646
+ placeholder: l(t)("booking.reservation.countryPlaceholder"),
651
647
  labelKey: "name",
652
648
  valueKey: "id",
653
- options: d.options,
654
- required: d.required
649
+ options: p.options,
650
+ required: p.required
655
651
  }, {
656
- option: P(({ data: u }) => [
657
- y("i", {
658
- class: Te(["konnectio-flag-icon", u.iso])
652
+ option: V(({ data: s }) => [
653
+ r("i", {
654
+ class: ye(["konnectio-flag-icon", s.iso])
659
655
  }, null, 2),
660
- y("span", null, V(u.name), 1)
656
+ r("span", null, y(s.name), 1)
661
657
  ]),
662
- "selected-option": P(({ data: u }) => [
663
- y("div", gn, [
664
- y("i", {
665
- class: Te(["konnectio-flag-icon", u.iso])
658
+ "selected-option": V(({ data: s }) => [
659
+ r("div", qo, [
660
+ r("i", {
661
+ class: ye(["konnectio-flag-icon", s.iso])
666
662
  }, null, 2),
667
- y("span", null, V(u.name), 1)
663
+ r("span", null, y(s.name), 1)
668
664
  ])
669
665
  ]),
670
666
  _: 1
671
667
  }, 8, ["modelValue", "label", "placeholder", "options", "required"]));
672
668
  }
673
- }), yn = /* @__PURE__ */ K(vn, [["__scopeId", "data-v-1462612d"]]), bn = { class: "konnectio-radio-checkboxes" }, kn = /* @__PURE__ */ j({
669
+ }), Ko = /* @__PURE__ */ Z(Wo, [["__scopeId", "data-v-1462612d"]]), zo = { class: "konnectio-radio-checkboxes" }, Jo = /* @__PURE__ */ q({
674
670
  __name: "CheckboxField",
675
671
  props: {
676
672
  modelValue: {},
@@ -681,27 +677,27 @@ const nn = /* @__PURE__ */ j({
681
677
  emits: ["update:modelValue"],
682
678
  setup(o, { emit: e }) {
683
679
  const t = e, n = o;
684
- function p(h) {
685
- t("update:modelValue", h);
680
+ function a(c) {
681
+ t("update:modelValue", c);
686
682
  }
687
- const s = N({
683
+ const i = U({
688
684
  get: () => n.modelValue,
689
- set: (h) => p(h)
685
+ set: (c) => a(c)
690
686
  });
691
- return (h, d) => (E(), M(It, {
692
- label: h.label,
687
+ return (c, p) => (f(), D(nt, {
688
+ label: c.label,
693
689
  type: "multi-radio"
694
690
  }, {
695
- default: P(() => [
696
- y("ul", bn, [
697
- (E(!0), I(R, null, z(h.checkboxes, ({ label: l, value: u }, f) => (E(), I("li", { key: f }, [
698
- C(Ye, {
699
- modelValue: s.value,
700
- "onUpdate:modelValue": d[0] || (d[0] = (g) => s.value = g),
701
- label: l,
702
- name: h.name,
691
+ default: V(() => [
692
+ r("ul", zo, [
693
+ (f(!0), m(E, null, B(c.checkboxes, ({ label: d, value: s }, u) => (f(), m("li", { key: u }, [
694
+ g(Le, {
695
+ modelValue: i.value,
696
+ "onUpdate:modelValue": p[0] || (p[0] = (h) => i.value = h),
697
+ label: d,
698
+ name: c.name,
703
699
  type: "radio",
704
- val: u
700
+ val: s
705
701
  }, null, 8, ["modelValue", "label", "name", "val"])
706
702
  ]))), 128))
707
703
  ])
@@ -709,7 +705,7 @@ const nn = /* @__PURE__ */ j({
709
705
  _: 1
710
706
  }, 8, ["label"]));
711
707
  }
712
- }), _n = /* @__PURE__ */ K(kn, [["__scopeId", "data-v-7185c7da"]]), En = /* @__PURE__ */ j({
708
+ }), Zo = /* @__PURE__ */ Z(Jo, [["__scopeId", "data-v-7185c7da"]]), Yo = /* @__PURE__ */ q({
713
709
  __name: "NameField",
714
710
  props: {
715
711
  modelValue: {},
@@ -731,199 +727,141 @@ const nn = /* @__PURE__ */ j({
731
727
  },
732
728
  emits: ["update:modelValue", "update:title"],
733
729
  setup(o, { emit: e }) {
734
- const t = o, n = e, p = t.id || it(), s = se(""), h = se(2);
735
- function d() {
736
- n("update:modelValue", s.value);
730
+ const t = o, n = e, a = t.id || qe(), i = le(""), c = le(2);
731
+ function p() {
732
+ n("update:modelValue", i.value);
737
733
  }
738
- Ee(h, (u) => {
739
- n("update:title", u);
734
+ ve(c, (s) => {
735
+ n("update:title", s);
740
736
  });
741
- const { t: l } = J();
742
- return $e(() => {
743
- t.modelValue && (s.value = t.modelValue), t.title && (h.value = t.title);
744
- }), (u, f) => (E(), M(It, {
745
- label: u.label,
746
- id: r(p),
747
- required: u.required,
737
+ const { t: d } = J();
738
+ return _e(() => {
739
+ t.modelValue && (i.value = t.modelValue), t.title && (c.value = t.title);
740
+ }), (s, u) => (f(), D(nt, {
741
+ label: s.label,
742
+ id: l(a),
743
+ required: s.required,
748
744
  type: "fresh-booking-name-field",
749
- readonly: u.readonly,
750
- limit: u.limit
745
+ readonly: s.readonly,
746
+ limit: s.limit
751
747
  }, {
752
- default: P(() => [
753
- y("div", {
754
- class: Te([
748
+ default: V(() => [
749
+ r("div", {
750
+ class: ye([
755
751
  "fresh-booking-name-input",
756
- { "no-title": u.excludeTitle }
752
+ { "no-title": s.excludeTitle }
757
753
  ])
758
754
  }, [
759
- u.excludeTitle ? L("", !0) : (E(), M(Ie, {
755
+ s.excludeTitle ? k("", !0) : (f(), D(ke, {
760
756
  key: 0,
761
- modelValue: h.value,
762
- "onUpdate:modelValue": f[0] || (f[0] = (g) => h.value = g),
763
- id: r(it)(),
764
- icon: u.icon,
765
- "icon-color": u.iconColor,
766
- "icon-type": u.iconType,
757
+ modelValue: c.value,
758
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => c.value = h),
759
+ id: l(qe)(),
760
+ icon: s.icon,
761
+ "icon-color": s.iconColor,
762
+ "icon-type": s.iconType,
767
763
  options: [
768
764
  {
769
- label: r(l)("booking.reservation.noNameTitle"),
765
+ label: l(d)("booking.reservation.noNameTitle"),
770
766
  value: 1
771
767
  },
772
768
  {
773
- label: r(l)("booking.reservation.nameTitleMr"),
769
+ label: l(d)("booking.reservation.nameTitleMr"),
774
770
  value: 2
775
771
  },
776
772
  {
777
- label: r(l)("booking.reservation.nameTitleMs"),
773
+ label: l(d)("booking.reservation.nameTitleMs"),
778
774
  value: 3
779
775
  },
780
776
  {
781
- label: r(l)("booking.reservation.nameTitleMrs"),
777
+ label: l(d)("booking.reservation.nameTitleMrs"),
782
778
  value: 4
783
779
  },
784
780
  {
785
- label: r(l)("booking.reservation.nameTitleDr"),
781
+ label: l(d)("booking.reservation.nameTitleDr"),
786
782
  value: 5
787
783
  }
788
784
  ],
789
- readonly: u.readonly,
785
+ readonly: s.readonly,
790
786
  "hide-button": "",
791
- "input-style": u.inputStyle,
787
+ "input-style": s.inputStyle,
792
788
  searchable: !1
793
789
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
794
- C(ne, {
795
- modelValue: s.value,
796
- "onUpdate:modelValue": f[1] || (f[1] = (g) => s.value = g),
790
+ g(ee, {
791
+ modelValue: i.value,
792
+ "onUpdate:modelValue": u[1] || (u[1] = (h) => i.value = h),
797
793
  type: "text",
798
794
  name: "name",
799
795
  autocomplete: "name",
800
- id: r(p),
801
- icon: u.excludeTitle ? u.icon : void 0,
802
- "icon-color": u.iconColor,
803
- "icon-type": u.iconType,
804
- placeholder: u.placeholder,
805
- required: u.required,
806
- readonly: u.readonly,
807
- limit: u.limit,
808
- onInput: f[2] || (f[2] = (g) => d()),
809
- "input-style": u.inputStyle
796
+ id: l(a),
797
+ icon: s.excludeTitle ? s.icon : void 0,
798
+ "icon-color": s.iconColor,
799
+ "icon-type": s.iconType,
800
+ placeholder: s.placeholder,
801
+ required: s.required,
802
+ readonly: s.readonly,
803
+ limit: s.limit,
804
+ onInput: u[2] || (u[2] = (h) => p()),
805
+ "input-style": s.inputStyle
810
806
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
811
807
  ], 2)
812
808
  ]),
813
809
  _: 1
814
810
  }, 8, ["label", "id", "required", "readonly", "limit"]));
815
811
  }
816
- }), Tn = /* @__PURE__ */ K(En, [["__scopeId", "data-v-78b0b319"]]), Cn = { class: "hotel-listing" }, In = { class: "hotel-listing-content-gallery" }, $n = { class: "hotel-listing-content-thumbs" }, Sn = { class: "hotel-listing-content" }, Vn = { class: "hotel-listing-content-header" }, wn = { class: "hotel-listing-content-title" }, Ln = { class: "hotel-listing-content-body" }, Pn = { class: "hotel-listing-content-facilities" }, Dn = /* @__PURE__ */ j({
817
- __name: "Listing",
818
- setup(o) {
819
- return (e, t) => (E(), I("div", Cn, [
820
- y("div", In, [
821
- C(Y, {
822
- width: "280px",
823
- height: "153px"
824
- }),
825
- y("div", $n, [
826
- (E(), I(R, null, z(3, (n) => C(Y, {
827
- key: n,
828
- width: "84px",
829
- height: "44px"
830
- })), 64))
831
- ])
832
- ]),
833
- y("div", Sn, [
834
- y("div", Vn, [
835
- y("div", wn, [
836
- C(Y, {
837
- height: "30px",
838
- width: "60%"
839
- }),
840
- C(Y, {
841
- height: "30px",
842
- width: "30px",
843
- "border-radius": "100%"
844
- })
845
- ]),
846
- C(Y, {
847
- height: "15px",
848
- width: "25%"
849
- })
850
- ]),
851
- y("div", Ln, [
852
- C(Y, { height: "15px" }),
853
- C(Y, { height: "15px" }),
854
- C(Y, { height: "15px" }),
855
- C(Y, { height: "15px" }),
856
- C(Y, {
857
- height: "15px",
858
- width: "90%"
859
- })
860
- ]),
861
- y("div", Pn, [
862
- (E(), I(R, null, z(5, (n) => C(Y, {
863
- key: n,
864
- height: "25px",
865
- width: "25px",
866
- "border-radius": "6px"
867
- })), 64))
868
- ])
869
- ])
870
- ]));
871
- }
872
- }), pe = /* @__PURE__ */ K(Dn, [["__scopeId", "data-v-c7574b59"]]), An = { class: "hotel-skeleton" }, On = { class: "hotel-skeleton-content" }, xn = { class: "hotel-skeleton-sidebar" }, Hn = /* @__PURE__ */ j({
812
+ }), Qo = /* @__PURE__ */ Z(Yo, [["__scopeId", "data-v-78b0b319"]]), Xo = { class: "hotel-skeleton" }, xo = { class: "hotel-skeleton-content" }, el = { class: "hotel-skeleton-sidebar" }, tl = /* @__PURE__ */ q({
873
813
  __name: "HotelSkeleton",
874
814
  setup(o) {
875
- return (e, t) => (E(), I("div", An, [
876
- y("div", On, [
877
- C(Ao, { hotel: "" }),
878
- C(pe),
879
- C(pe),
880
- C(pe)
815
+ return (e, t) => (f(), m("div", Xo, [
816
+ r("div", xo, [
817
+ g(po, { hotel: "" }),
818
+ g(to)
881
819
  ]),
882
- y("div", xn, [
883
- C(wo)
820
+ r("div", el, [
821
+ g(oo)
884
822
  ])
885
823
  ]));
886
824
  }
887
- }), Mn = /* @__PURE__ */ K(Hn, [["__scopeId", "data-v-49e83cbb"]]), Rn = (o) => (yt("data-v-8f62043c"), o = o(), bt(), o), Bn = { id: "booking-availability-container" }, zn = { id: "booking-availability-controls" };
888
- const Wn = { key: 1 }, Fn = { key: 0 }, Nn = {
825
+ }), ol = /* @__PURE__ */ Z(tl, [["__scopeId", "data-v-1bb21da4"]]), ll = (o) => (Qe("data-v-4e53740f"), o = o(), Xe(), o), nl = { id: "booking-availability-container" }, al = { id: "booking-availability-controls" };
826
+ const il = { key: 1 }, sl = { key: 0 }, rl = {
889
827
  key: 0,
890
828
  id: "booking-availability-packages"
891
- }, Un = {
829
+ }, ul = {
892
830
  key: 0,
893
831
  class: "konnectio-hotel-availability-title"
894
- }, qn = { id: "booking-availability-packages-wrapper" }, Gn = { key: 1 }, jn = {
832
+ }, dl = { id: "booking-availability-packages-wrapper" }, cl = { key: 1 }, pl = {
895
833
  key: 0,
896
834
  class: "konnectio-hotel-availability-title"
897
- }, Yn = { id: "booking-availability-listings" }, Kn = {
835
+ }, fl = { id: "booking-availability-listings" }, ml = {
898
836
  key: 2,
899
837
  id: "booking-availability-packages"
900
- }, Qn = {
838
+ }, hl = {
901
839
  key: 0,
902
840
  class: "konnectio-hotel-availability-title"
903
- }, Jn = { id: "booking-availability-packages-wrapper" }, Xn = {
841
+ }, gl = { id: "booking-availability-packages-wrapper" }, vl = {
904
842
  key: 3,
905
843
  id: "booking-availability-no-listings",
906
844
  class: "fresh-booking-panel"
907
- }, Zn = {
845
+ }, yl = {
908
846
  key: 1,
909
847
  id: "booking-availability-no-listings"
910
- }, ei = {
848
+ }, bl = {
911
849
  key: 2,
912
850
  id: "reservation-availability-next-dates"
913
- }, ti = { class: "konnectio-hotel-availability-title" }, oi = { class: "reservation-special-offers-grid" }, ni = ["title"];
914
- const ii = {
851
+ }, kl = { class: "konnectio-hotel-availability-title" }, _l = { class: "reservation-special-offers-grid" }, Vl = ["title"];
852
+ const Tl = {
915
853
  key: 2,
916
854
  class: "konnectio-listing-loading"
917
- }, ri = { class: "fresh-booking-panel" }, si = {
855
+ }, $l = { class: "fresh-booking-panel" }, wl = {
918
856
  key: 0,
919
857
  id: "konnectio-hotel-addons"
920
858
  };
921
- const ai = { class: "fresh-booking-event-addons-price" }, li = { key: 1 }, ui = /* @__PURE__ */ Rn(() => /* @__PURE__ */ y("br", null, null, -1)), di = ["onClick"], ci = { class: "fresh-booking-panel" }, pi = { key: 0 }, hi = { key: 1 }, fi = { class: "fresh-booking-split-inputs" }, mi = ["onClick"], gi = /* @__PURE__ */ j({
859
+ const Cl = { class: "fresh-booking-event-addons-price" }, Hl = { key: 1 }, Pl = /* @__PURE__ */ ll(() => /* @__PURE__ */ r("br", null, null, -1)), Dl = ["onClick"], Sl = { class: "fresh-booking-panel" }, Al = { key: 0 }, Il = { key: 1 }, El = { class: "fresh-booking-split-inputs" }, Ml = ["onClick"], Bl = /* @__PURE__ */ q({
922
860
  name: "HotelLayout",
923
861
  __name: "Hotel",
924
862
  props: {
925
863
  accessToken: {},
926
- headerLayout: { default: vo.Minimal },
864
+ headerLayout: { default: jt.Minimal },
927
865
  onlyShow: { default: "everything" },
928
866
  styling: {}
929
867
  },
@@ -931,57 +869,57 @@ const ai = { class: "fresh-booking-event-addons-price" }, li = { key: 1 }, ui =
931
869
  const { t: e } = J(), {
932
870
  templateID: t,
933
871
  countries: n,
934
- areListingsLoading: p,
935
- isPaymentLoading: s,
936
- isReservationFormFilled: h,
937
- travelingFor: d,
938
- arrivalTime: l,
939
- departureTime: u,
940
- name: f,
941
- nameTitle: g,
942
- email: _,
943
- phone: c,
944
- firmName: b,
945
- postal: k,
946
- city: m,
947
- address: i,
948
- country: a,
949
- remark: v,
950
- allergies: T,
951
- newsMails: S,
952
- roomSelect: w,
953
- roomDisplay: A,
954
- hasValidRoomSelection: B,
955
- availabilityData: O,
956
- selectionHasNoAddons: W
957
- } = Q(de()), {
958
- arrivalDate: X,
959
- departureDate: ae
960
- } = Q(Ct()), {
961
- currency: le,
962
- disableNewsletterSignup: Z,
963
- arrivalEarliest: Ve,
964
- arrivalLatest: et,
965
- departureEarliest: zt,
966
- departureLatest: Wt,
967
- enableTracking: Ft,
968
- arrivalDefault: Nt,
969
- departureDefault: Ut,
970
- hideArrivalDepartureInputs: qt,
872
+ areListingsLoading: a,
873
+ isPaymentLoading: i,
874
+ isReservationFormFilled: c,
875
+ travelingFor: p,
876
+ arrivalTime: d,
877
+ departureTime: s,
878
+ name: u,
879
+ nameTitle: h,
880
+ email: b,
881
+ phone: S,
882
+ firmName: H,
883
+ postal: L,
884
+ city: G,
885
+ address: _,
886
+ country: C,
887
+ remark: A,
888
+ allergies: N,
889
+ newsMails: F,
890
+ roomSelect: O,
891
+ roomDisplay: I,
892
+ hasValidRoomSelection: Y,
893
+ availabilityData: w,
894
+ selectionHasNoAddons: ne
895
+ } = K(ie()), {
896
+ arrivalDate: Te,
897
+ departureDate: pe
898
+ } = K(lt()), {
899
+ currency: fe,
900
+ disableNewsletterSignup: Q,
901
+ arrivalEarliest: $e,
902
+ arrivalLatest: Oe,
903
+ departureEarliest: pt,
904
+ departureLatest: ft,
905
+ enableTracking: mt,
906
+ arrivalDefault: ht,
907
+ departureDefault: gt,
908
+ hideArrivalDepartureInputs: vt,
971
909
  disableArrivalUserSelection: we,
972
- disableNamePrefix: Gt,
973
- disableDepartureUserSelection: Le,
974
- disableTravelingFor: jt,
975
- disableTravelingForBleasure: Yt,
976
- disableCompanyField: Kt,
977
- hasPaymentGateway: Qt
978
- } = Q(ge()), { beginCheckout: Jt } = kt(), {
979
- initialize: Xt,
980
- resetTemplate: Zt,
981
- resetDiscountVoucher: eo,
982
- createReservation: to
983
- } = de(), oo = se(!0), no = N(() => {
984
- const x = [
910
+ disableNamePrefix: yt,
911
+ disableDepartureUserSelection: Ce,
912
+ disableTravelingFor: bt,
913
+ disableTravelingForBleasure: kt,
914
+ disableCompanyField: _t,
915
+ hasPaymentGateway: Vt
916
+ } = K(ce()), { beginCheckout: Tt } = xe(), {
917
+ initialize: $t,
918
+ resetTemplate: wt,
919
+ resetDiscountVoucher: Ct,
920
+ createReservation: Ht
921
+ } = ie(), Pt = le(!0), Dt = U(() => {
922
+ const $ = [
985
923
  {
986
924
  label: e("booking.reservation.business"),
987
925
  value: "Business"
@@ -991,188 +929,182 @@ const ai = { class: "fresh-booking-event-addons-price" }, li = { key: 1 }, ui =
991
929
  value: "Pleasure"
992
930
  }
993
931
  ];
994
- return Yt.value || x.push({
932
+ return kt.value || $.push({
995
933
  label: e("booking.reservation.bleasure"),
996
934
  value: "Bleasure"
997
- }), x;
998
- }), io = N(() => {
999
- const x = O.value.roomGroups.slice();
1000
- x.forEach((q) => {
1001
- q.pricesFrom = q.rates.reduce(
1002
- (H, $) => H < $.rackRate ? H : $.rackRate,
1003
- 1 / 0
1004
- );
1005
- });
1006
- function D(q, H) {
1007
- return oo.value === !0 ? q.pricesFrom > H.pricesFrom ? -1 : 1 : q.pricesFrom > H.pricesFrom ? 1 : -1;
935
+ }), $;
936
+ }), St = U(() => {
937
+ const $ = w.value.roomGroups.slice();
938
+ function T(W, P) {
939
+ return Pt.value === !0 ? W.pricesFrom > P.pricesFrom ? -1 : 1 : W.pricesFrom > P.pricesFrom ? 1 : -1;
1008
940
  }
1009
- return x.sort(D);
1010
- }), ro = N(() => [[
1011
- parseInt(Ve.value.split(":")[0]),
1012
- parseInt(et.value.split(":")[0])
1013
- ]]), so = N(() => [[
1014
- parseInt(zt.value.split(":")[0]),
1015
- parseInt(Wt.value.split(":")[0])
941
+ return $.sort(T);
942
+ }), At = U(() => [[
943
+ parseInt($e.value.split(":")[0]),
944
+ parseInt(Oe.value.split(":")[0])
945
+ ]]), It = U(() => [[
946
+ parseInt(pt.value.split(":")[0]),
947
+ parseInt(ft.value.split(":")[0])
1016
948
  ]]);
1017
- function tt(x) {
1018
- W.value ? x(2) : x(), eo();
949
+ function Ne($) {
950
+ ne.value ? $(2) : $(), Ct();
1019
951
  }
1020
- function ao(x, D) {
1021
- ae.value = new Date(D), X.value = new Date(x), location.reload();
952
+ function Et($, T) {
953
+ pe.value = new Date(T), Te.value = new Date($), location.reload();
1022
954
  }
1023
- async function lo(x) {
1024
- await to(x);
955
+ async function Mt($) {
956
+ await Ht($);
1025
957
  }
1026
- function uo(x) {
1027
- Ft.value && Jt(), W.value ? x(2) : x();
958
+ function Bt($) {
959
+ mt.value && Tt(), ne.value ? $(2) : $();
1028
960
  }
1029
- function co() {
1030
- l.value === "" && (l.value = Nt.value), u.value === "" && (u.value = Ut.value);
961
+ function Lt() {
962
+ d.value === "" && (d.value = ht.value), s.value === "" && (s.value = gt.value);
1031
963
  }
1032
- return $e(() => {
1033
- Xt(), co();
1034
- }), (x, D) => (E(), M(yo, { styling: x.styling }, {
1035
- default: P(() => [
1036
- (E(), M(bo, null, {
1037
- default: P(() => [
1038
- C(_o, {
964
+ return _e(() => {
965
+ $t(), Lt();
966
+ }), ($, T) => (f(), D(Gt, { styling: $.styling }, {
967
+ default: V(() => [
968
+ (f(), D(qt, null, {
969
+ default: V(() => [
970
+ g(Kt, {
1039
971
  id: "fresh-booking-hotel-module",
1040
- "access-token": x.accessToken,
972
+ "access-token": $.accessToken,
1041
973
  type: "hotel"
1042
974
  }, {
1043
- default: P(() => [
1044
- C(Lo, {
1045
- layout: x.headerLayout,
1046
- onReset: r(Zt)
975
+ default: V(() => [
976
+ g(lo, {
977
+ layout: $.headerLayout,
978
+ onReset: l(wt)
1047
979
  }, {
1048
- availability: P(({ next: q }) => [
1049
- C(Oe, null, {
1050
- form: P(() => [
1051
- y("div", Bn, [
1052
- y("div", zn, [
1053
- C(Oo, { booking: !0 })
980
+ availability: V(({ next: W }) => [
981
+ g(Ae, null, {
982
+ form: V(() => [
983
+ r("div", nl, [
984
+ r("div", al, [
985
+ g(so, { booking: !0 })
1054
986
  ]),
1055
- L("", !0),
1056
- r(p) ? (E(), I("div", ii, [
1057
- C(pe),
1058
- C(pe),
1059
- C(pe)
1060
- ])) : (E(), I("div", Wn, [
1061
- r(O).roomGroups.length > 0 || r(O).templates.length > 0 || r(O).specialTemplates.length > 0 ? (E(), I("div", Fn, [
1062
- r(O).templates.length > 0 && x.onlyShow !== "rooms" ? (E(), I("div", Nn, [
1063
- x.onlyShow !== "packages" ? (E(), I("h2", Un, [
1064
- C(G, {
987
+ k("", !0),
988
+ l(a) ? (f(), m("div", Tl, [
989
+ g(Se),
990
+ g(Se),
991
+ g(Se)
992
+ ])) : (f(), m("div", il, [
993
+ l(w).roomGroups.length > 0 || l(w).templates.length > 0 || l(w).specialTemplates.length > 0 ? (f(), m("div", sl, [
994
+ l(w).templates.length > 0 && $.onlyShow !== "rooms" ? (f(), m("div", rl, [
995
+ $.onlyShow !== "packages" ? (f(), m("h2", ul, [
996
+ g(j, {
1065
997
  icon: "box",
1066
998
  type: "fal",
1067
999
  color: "header"
1068
1000
  }),
1069
- y("span", null, V(r(e)("booking.availability.packagesTitle")), 1)
1070
- ])) : L("", !0),
1071
- y("ul", qn, [
1072
- (E(!0), I(R, null, z(r(O).templates, ({
1073
- id: H,
1074
- name: $,
1075
- templateRoomGroups: ee,
1076
- image: te,
1077
- description: F,
1078
- weekendFee: he
1079
- }) => (E(), M(cn, {
1080
- key: H,
1081
- id: H,
1082
- description: F,
1083
- name: $,
1084
- image: te,
1085
- weekendFee: he,
1086
- "room-groups": ee,
1087
- callback: q
1001
+ r("span", null, y(l(e)("booking.availability.packagesTitle")), 1)
1002
+ ])) : k("", !0),
1003
+ r("ul", dl, [
1004
+ (f(!0), m(E, null, B(l(w).templates, ({
1005
+ id: P,
1006
+ name: v,
1007
+ templateRoomGroups: X,
1008
+ image: z,
1009
+ description: M,
1010
+ weekendFee: re
1011
+ }) => (f(), D(Fo, {
1012
+ key: P,
1013
+ id: P,
1014
+ description: M,
1015
+ name: v,
1016
+ image: z,
1017
+ weekendFee: re,
1018
+ "room-groups": X,
1019
+ callback: W
1088
1020
  }, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback"]))), 128))
1089
1021
  ])
1090
- ])) : L("", !0),
1091
- r(O).roomGroups.length > 0 && x.onlyShow !== "packages" ? (E(), I("div", Gn, [
1092
- r(O).templates.length > 0 && x.onlyShow !== "rooms" ? (E(), I("h2", jn, [
1093
- C(G, {
1022
+ ])) : k("", !0),
1023
+ l(w).roomGroups.length > 0 && $.onlyShow !== "packages" ? (f(), m("div", cl, [
1024
+ l(w).templates.length > 0 && $.onlyShow !== "rooms" ? (f(), m("h2", pl, [
1025
+ g(j, {
1094
1026
  icon: "house",
1095
1027
  type: "fal",
1096
1028
  color: "header"
1097
1029
  }),
1098
- y("span", null, V(r(e)("booking.availability.roomsTitle")), 1)
1099
- ])) : L("", !0),
1100
- y("ul", Yn, [
1101
- (E(!0), I(R, null, z(io.value, (H, $) => (E(), M(rn, {
1102
- room: H,
1103
- key: $
1030
+ r("span", null, y(l(e)("booking.availability.roomsTitle")), 1)
1031
+ ])) : k("", !0),
1032
+ r("ul", fl, [
1033
+ (f(!0), m(E, null, B(St.value, (P, v) => (f(), D(Eo, {
1034
+ room: P,
1035
+ key: v
1104
1036
  }, null, 8, ["room"]))), 128))
1105
1037
  ])
1106
- ])) : L("", !0),
1107
- r(O).specialTemplates.length > 0 && x.onlyShow !== "rooms" ? (E(), I("div", Kn, [
1108
- x.onlyShow !== "packages" ? (E(), I("h2", Qn, [
1109
- C(G, {
1038
+ ])) : k("", !0),
1039
+ l(w).specialTemplates.length > 0 && $.onlyShow !== "rooms" ? (f(), m("div", ml, [
1040
+ $.onlyShow !== "packages" ? (f(), m("h2", hl, [
1041
+ g(j, {
1110
1042
  icon: "sparkles",
1111
1043
  type: "fal",
1112
1044
  color: "header"
1113
1045
  }),
1114
- y("span", null, V(r(e)("hotel.specialOffers")), 1)
1115
- ])) : L("", !0),
1116
- y("ul", Jn, [
1117
- (E(!0), I(R, null, z(r(O).specialTemplates, ({
1118
- id: H,
1119
- name: $,
1120
- templateRoomGroups: ee,
1121
- image: te,
1122
- description: F,
1123
- weekendFee: he,
1124
- fromDate: fe,
1125
- toDate: Pe
1126
- }) => (E(), M(mn, {
1127
- key: H,
1128
- id: H,
1129
- description: F,
1130
- name: $,
1131
- image: te,
1132
- fromDate: fe,
1133
- toDate: Pe,
1134
- weekendFee: he,
1135
- "room-groups": ee,
1136
- callback: q
1046
+ r("span", null, y(l(e)("hotel.specialOffers")), 1)
1047
+ ])) : k("", !0),
1048
+ r("ul", gl, [
1049
+ (f(!0), m(E, null, B(l(w).specialTemplates, ({
1050
+ id: P,
1051
+ name: v,
1052
+ templateRoomGroups: X,
1053
+ image: z,
1054
+ description: M,
1055
+ weekendFee: re,
1056
+ fromDate: ue,
1057
+ toDate: He
1058
+ }) => (f(), D(Go, {
1059
+ key: P,
1060
+ id: P,
1061
+ description: M,
1062
+ name: v,
1063
+ image: z,
1064
+ fromDate: ue,
1065
+ toDate: He,
1066
+ weekendFee: re,
1067
+ "room-groups": X,
1068
+ callback: W
1137
1069
  }, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
1138
1070
  ])
1139
- ])) : L("", !0),
1140
- (r(O).templates.length === 0 && x.onlyShow !== "rooms" || r(O).roomGroups.length === 0 && x.onlyShow !== "packages") && (x.onlyShow === "rooms" || x.onlyShow === "packages") ? (E(), I("div", Xn, [
1141
- y("span", null, V(r(e)("booking.availability.nothingAvailable")), 1)
1142
- ])) : L("", !0)
1143
- ])) : r(O).nextAvailableDates.length === 0 ? (E(), I("div", Zn, [
1144
- y("span", null, V(r(e)("booking.availability.nothingAvailable")), 1)
1145
- ])) : (E(), I("div", ei, [
1146
- y("h2", ti, [
1147
- C(G, {
1071
+ ])) : k("", !0),
1072
+ (l(w).templates.length === 0 && $.onlyShow !== "rooms" || l(w).roomGroups.length === 0 && $.onlyShow !== "packages") && ($.onlyShow === "rooms" || $.onlyShow === "packages") ? (f(), m("div", vl, [
1073
+ r("span", null, y(l(e)("booking.availability.nothingAvailable")), 1)
1074
+ ])) : k("", !0)
1075
+ ])) : l(w).nextAvailableDates.length === 0 ? (f(), m("div", yl, [
1076
+ r("span", null, y(l(e)("booking.availability.nothingAvailable")), 1)
1077
+ ])) : (f(), m("div", bl, [
1078
+ r("h2", kl, [
1079
+ g(j, {
1148
1080
  icon: "calendar-circle-exclamation",
1149
1081
  type: "fal",
1150
1082
  color: "header"
1151
1083
  }),
1152
- y("span", null, V(r(e)("booking.availability.nextAvailableDates")), 1)
1084
+ r("span", null, y(l(e)("booking.availability.nextAvailableDates")), 1)
1153
1085
  ]),
1154
- y("ul", oi, [
1155
- (E(!0), I(R, null, z(r(O).nextAvailableDates, (H, $) => (E(), I("li", { key: $ }, [
1156
- y("h3", {
1157
- title: `${r(ie)(H.fromDate)} - ${r(ie)(H.toDate)}`
1086
+ r("ul", _l, [
1087
+ (f(!0), m(E, null, B(l(w).nextAvailableDates, (P, v) => (f(), m("li", { key: v }, [
1088
+ r("h3", {
1089
+ title: `${l(te)(P.fromDate)} - ${l(te)(P.toDate)}`
1158
1090
  }, [
1159
- y("span", null, V(`${r(ie)(H.fromDate)} - ${r(ie)(H.toDate)}`), 1)
1160
- ], 8, ni),
1161
- y("ul", null, [
1162
- L("", !0),
1163
- y("li", null, [
1164
- C(G, {
1091
+ r("span", null, y(`${l(te)(P.fromDate)} - ${l(te)(P.toDate)}`), 1)
1092
+ ], 8, Vl),
1093
+ r("ul", null, [
1094
+ k("", !0),
1095
+ r("li", null, [
1096
+ g(j, {
1165
1097
  icon: "money-bill",
1166
1098
  type: "fal",
1167
1099
  color: "header"
1168
1100
  }),
1169
- y("span", null, V(r(e)("booking.availability.pricesFrom")) + ": " + V(r(re)(H.priceStartFrom, r(le))), 1)
1101
+ r("span", null, y(l(e)("booking.availability.pricesFrom")) + ": " + y(l(oe)(P.priceStartFrom, l(fe))), 1)
1170
1102
  ])
1171
1103
  ]),
1172
- C(ue, {
1173
- label: r(e)("booking.availability.selectDates"),
1104
+ g(ae, {
1105
+ label: l(e)("booking.availability.selectDates"),
1174
1106
  "full-width": "",
1175
- onClickEvent: (ee) => ao(H.fromDate, H.toDate)
1107
+ onClickEvent: (X) => Et(P.fromDate, P.toDate)
1176
1108
  }, null, 8, ["label", "onClickEvent"])
1177
1109
  ]))), 128))
1178
1110
  ])
@@ -1180,301 +1112,303 @@ const ai = { class: "fresh-booking-event-addons-price" }, li = { key: 1 }, ui =
1180
1112
  ]))
1181
1113
  ])
1182
1114
  ]),
1183
- navigation: P(() => [
1184
- C(ue, {
1185
- label: r(W) ? r(e)("booking.availability.nextButton") : r(e)("general.chooseAddons"),
1186
- disabled: !r(B),
1115
+ navigation: V(() => [
1116
+ g(ae, {
1117
+ label: l(ne) ? l(e)("booking.availability.nextButton") : l(e)("general.chooseAddons"),
1118
+ disabled: !l(Y),
1187
1119
  "is-loading": !1,
1188
1120
  "full-width": "",
1189
- onClickEvent: (H) => uo(q)
1121
+ onClickEvent: (P) => Bt(W)
1190
1122
  }, null, 8, ["label", "disabled", "onClickEvent"])
1191
1123
  ]),
1192
1124
  _: 2
1193
1125
  }, 1024)
1194
1126
  ]),
1195
- addons: P(({ next: q, prev: H }) => [
1196
- C(Oe, null, {
1197
- form: P(() => [
1198
- y("form", ri, [
1199
- y("h2", null, [
1200
- y("span", null, V(r(e)("booking.reservation.addons")), 1)
1127
+ addons: V(({ next: W, prev: P }) => [
1128
+ g(Ae, null, {
1129
+ form: V(() => [
1130
+ r("form", $l, [
1131
+ r("h2", null, [
1132
+ r("span", null, y(l(e)("booking.reservation.addons")), 1)
1201
1133
  ]),
1202
- y("div", null, [
1203
- isNaN(r(t)) ? (E(), I("div", si, [
1204
- (E(!0), I(R, null, z(r(A), ($) => (E(), I("ul", {
1205
- key: $.roomGroupID
1134
+ r("div", null, [
1135
+ isNaN(l(t)) ? (f(), m("div", wl, [
1136
+ (f(!0), m(E, null, B(l(I), (v) => (f(), m("ul", {
1137
+ key: v.roomGroupID
1206
1138
  }, [
1207
- (E(!0), I(R, null, z($.variants, (ee, te) => (E(), I("li", {
1208
- key: ee.ratePlanID
1139
+ (f(!0), m(E, null, B(v.variants, (X, z) => (f(), m("li", {
1140
+ key: X.ratePlanID
1209
1141
  }, [
1210
- y("h4", null, [
1211
- y("span", null, V(r(ce)($.title)), 1)
1142
+ r("h4", null, [
1143
+ r("span", null, y(l(se)(v.title)), 1)
1212
1144
  ]),
1213
- (E(!0), I(R, null, z(ee.rooms, (F, he) => (E(), I("table", {
1214
- key: he,
1145
+ (f(!0), m(E, null, B(X.rooms, (M, re) => (f(), m("table", {
1146
+ key: re,
1215
1147
  class: "fresh-booking-table"
1216
1148
  }, [
1217
- y("thead", null, [
1218
- y("tr", null, [
1219
- y("th", null, [
1220
- y("span", null, V(r(ce)(ee.name)), 1)
1149
+ r("thead", null, [
1150
+ r("tr", null, [
1151
+ r("th", null, [
1152
+ r("span", null, y(l(se)(X.name)), 1)
1221
1153
  ]),
1222
- L("", !0),
1223
- y("th", ai, [
1224
- y("b", null, [
1225
- C(G, {
1154
+ k("", !0),
1155
+ r("th", Cl, [
1156
+ r("b", null, [
1157
+ g(j, {
1226
1158
  icon: "male",
1227
1159
  type: "fas",
1228
1160
  color: "font"
1229
1161
  }),
1230
- y("span", null, V(F.adultsCount), 1),
1231
- F.childrenCount > 0 ? (E(), M(G, {
1162
+ r("span", null, y(M.adultsCount), 1),
1163
+ M.childrenCount > 0 ? (f(), D(j, {
1232
1164
  key: 0,
1233
1165
  icon: "child",
1234
1166
  type: "fas",
1235
1167
  color: "font"
1236
- })) : L("", !0),
1237
- F.childrenCount > 0 ? (E(), I("span", li, V(F.childrenCount), 1)) : L("", !0)
1168
+ })) : k("", !0),
1169
+ M.childrenCount > 0 ? (f(), m("span", Hl, y(M.childrenCount), 1)) : k("", !0)
1238
1170
  ])
1239
1171
  ])
1240
1172
  ])
1241
1173
  ]),
1242
- y("tbody", null, [
1243
- (E(!0), I(R, null, z($.addons, ({
1244
- quantityStrategy: fe,
1245
- maximumNumber: Pe,
1246
- id: me,
1247
- name: po,
1248
- price: ho
1249
- }) => (E(), I("tr", { key: me }, [
1250
- y("td", null, [
1251
- y("b", null, V(r(ce)(po)), 1),
1252
- ui,
1253
- y("span", null, V(r(re)(ho, r(le))) + " " + V(r(ko)(fe)), 1)
1174
+ r("tbody", null, [
1175
+ (f(!0), m(E, null, B(v.addons, ({
1176
+ quantityStrategy: ue,
1177
+ maximumNumber: He,
1178
+ id: de,
1179
+ name: Rt,
1180
+ price: Ut
1181
+ }) => (f(), m("tr", { key: de }, [
1182
+ r("td", null, [
1183
+ r("b", null, y(l(se)(Rt)), 1),
1184
+ Pl,
1185
+ r("span", null, y(l(oe)(Ut, l(fe))) + " " + y(l(Wt)(ue)), 1)
1254
1186
  ]),
1255
- y("td", null, [
1256
- fe === 1 || fe === 12 ? (E(), M(_t, {
1257
- key: 0,
1258
- modelValue: r(w)[$.roomGroupID][te].config[F.configIdx].addons[F.roomIdx][me],
1259
- "onUpdate:modelValue": (De) => r(w)[$.roomGroupID][te].config[F.configIdx].addons[F.roomIdx][me] = De,
1260
- small: !0,
1261
- "min-value": 0,
1262
- "max-value": Pe || 1 / 0
1263
- }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (E(), M(Ye, {
1264
- key: 1,
1265
- modelValue: r(w)[$.roomGroupID][te].config[F.configIdx].addons[F.roomIdx][me],
1266
- "onUpdate:modelValue": (De) => r(w)[$.roomGroupID][te].config[F.configIdx].addons[F.roomIdx][me] = De,
1267
- numeric: !0
1268
- }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1187
+ r("td", null, [
1188
+ l(O)[v.roomGroupID][z].config[M.configIdx].addons[M.roomIdx] ? (f(), m(E, { key: 0 }, [
1189
+ ue === 1 || ue === 12 ? (f(), D(et, {
1190
+ key: 0,
1191
+ modelValue: l(O)[v.roomGroupID][z].config[M.configIdx].addons[M.roomIdx][de],
1192
+ "onUpdate:modelValue": (Pe) => l(O)[v.roomGroupID][z].config[M.configIdx].addons[M.roomIdx][de] = Pe,
1193
+ small: !0,
1194
+ "min-value": 0,
1195
+ "max-value": He || 1 / 0
1196
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (f(), D(Le, {
1197
+ key: 1,
1198
+ modelValue: l(O)[v.roomGroupID][z].config[M.configIdx].addons[M.roomIdx][de],
1199
+ "onUpdate:modelValue": (Pe) => l(O)[v.roomGroupID][z].config[M.configIdx].addons[M.roomIdx][de] = Pe,
1200
+ numeric: !0
1201
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1202
+ ], 64)) : k("", !0)
1269
1203
  ])
1270
1204
  ]))), 128))
1271
1205
  ])
1272
1206
  ]))), 128))
1273
1207
  ]))), 128))
1274
1208
  ]))), 128))
1275
- ])) : L("", !0)
1209
+ ])) : k("", !0)
1276
1210
  ])
1277
1211
  ])
1278
1212
  ]),
1279
- navigation: P(() => [
1280
- C(ue, {
1281
- label: r(e)("general.startReservation"),
1213
+ navigation: V(() => [
1214
+ g(ae, {
1215
+ label: l(e)("general.startReservation"),
1282
1216
  "full-width": "",
1283
- onClickEvent: q
1217
+ onClickEvent: W
1284
1218
  }, null, 8, ["label", "onClickEvent"]),
1285
- y("button", {
1219
+ r("button", {
1286
1220
  class: "konnectio-abort-reservation link",
1287
- onClick: je(($) => tt(H), ["prevent"])
1221
+ onClick: Be((v) => Ne(P), ["prevent"])
1288
1222
  }, [
1289
- y("span", null, V(r(e)("general.goAStepBack")), 1)
1290
- ], 8, di)
1223
+ r("span", null, y(l(e)("general.goAStepBack")), 1)
1224
+ ], 8, Dl)
1291
1225
  ]),
1292
1226
  _: 2
1293
1227
  }, 1024)
1294
1228
  ]),
1295
- reservation: P(({ next: q, prev: H }) => [
1296
- C(Oe, {
1229
+ reservation: V(({ next: W, prev: P }) => [
1230
+ g(Ae, {
1297
1231
  "show-terms-notice": !0,
1298
1232
  "show-gift-card": !0
1299
1233
  }, {
1300
- form: P(() => [
1301
- y("form", ci, [
1302
- y("h2", null, [
1303
- y("span", null, V(r(e)("booking.reservation.detailsTitle")), 1)
1234
+ form: V(() => [
1235
+ r("form", Sl, [
1236
+ r("h2", null, [
1237
+ r("span", null, y(l(e)("booking.reservation.detailsTitle")), 1)
1304
1238
  ]),
1305
- !r(qt) && !(r(we) && r(Le)) ? (E(), I("ul", {
1239
+ !l(vt) && !(l(we) && l(Ce)) ? (f(), m("ul", {
1306
1240
  key: 0,
1307
- class: Te({ "fresh-booking-split-inputs": !r(we) && !r(Le) })
1241
+ class: ye({ "fresh-booking-split-inputs": !l(we) && !l(Ce) })
1308
1242
  }, [
1309
- r(we) ? L("", !0) : (E(), I("li", pi, [
1310
- C(rt, {
1311
- modelValue: r(l),
1312
- "onUpdate:modelValue": D[1] || (D[1] = ($) => U(l) ? l.value = $ : null),
1313
- label: r(e)("booking.reservation.arrivalTime"),
1243
+ l(we) ? k("", !0) : (f(), m("li", Al, [
1244
+ g(We, {
1245
+ modelValue: l(d),
1246
+ "onUpdate:modelValue": T[1] || (T[1] = (v) => R(d) ? d.value = v : null),
1247
+ label: l(e)("booking.reservation.arrivalTime"),
1314
1248
  icon: "hourglass-start",
1315
- "hour-range": ro.value,
1249
+ "hour-range": At.value,
1316
1250
  required: ""
1317
1251
  }, null, 8, ["modelValue", "label", "hour-range"])
1318
1252
  ])),
1319
- r(Le) ? L("", !0) : (E(), I("li", hi, [
1320
- C(rt, {
1321
- modelValue: r(u),
1322
- "onUpdate:modelValue": D[2] || (D[2] = ($) => U(u) ? u.value = $ : null),
1323
- label: r(e)("booking.reservation.departureTime"),
1253
+ l(Ce) ? k("", !0) : (f(), m("li", Il, [
1254
+ g(We, {
1255
+ modelValue: l(s),
1256
+ "onUpdate:modelValue": T[2] || (T[2] = (v) => R(s) ? s.value = v : null),
1257
+ label: l(e)("booking.reservation.departureTime"),
1324
1258
  icon: "hourglass-end",
1325
- "hour-range": so.value,
1259
+ "hour-range": It.value,
1326
1260
  required: ""
1327
1261
  }, null, 8, ["modelValue", "label", "hour-range"])
1328
1262
  ]))
1329
- ], 2)) : L("", !0),
1330
- C(Tn, {
1331
- modelValue: r(f),
1332
- "onUpdate:modelValue": D[3] || (D[3] = ($) => U(f) ? f.value = $ : null),
1333
- title: r(g),
1334
- "onUpdate:title": D[4] || (D[4] = ($) => U(g) ? g.value = $ : null),
1335
- "exclude-title": r(Gt),
1336
- label: r(e)("booking.reservation.name"),
1263
+ ], 2)) : k("", !0),
1264
+ g(Qo, {
1265
+ modelValue: l(u),
1266
+ "onUpdate:modelValue": T[3] || (T[3] = (v) => R(u) ? u.value = v : null),
1267
+ title: l(h),
1268
+ "onUpdate:title": T[4] || (T[4] = (v) => R(h) ? h.value = v : null),
1269
+ "exclude-title": l(yt),
1270
+ label: l(e)("booking.reservation.name"),
1337
1271
  icon: "user-alt",
1338
- placeholder: r(e)("booking.reservation.namePlaceholder"),
1272
+ placeholder: l(e)("booking.reservation.namePlaceholder"),
1339
1273
  required: ""
1340
1274
  }, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
1341
- C(ne, {
1342
- modelValue: r(_),
1343
- "onUpdate:modelValue": D[5] || (D[5] = ($) => U(_) ? _.value = $ : null),
1275
+ g(ee, {
1276
+ modelValue: l(b),
1277
+ "onUpdate:modelValue": T[5] || (T[5] = (v) => R(b) ? b.value = v : null),
1344
1278
  type: "email",
1345
1279
  name: "email",
1346
1280
  autocomplete: "email",
1347
- label: r(e)("booking.reservation.email"),
1281
+ label: l(e)("booking.reservation.email"),
1348
1282
  icon: "at",
1349
- placeholder: r(e)("booking.reservation.emailPlaceholder"),
1283
+ placeholder: l(e)("booking.reservation.emailPlaceholder"),
1350
1284
  required: ""
1351
1285
  }, null, 8, ["modelValue", "label", "placeholder"]),
1352
- r(Z) ? L("", !0) : (E(), M(Ye, {
1286
+ l(Q) ? k("", !0) : (f(), D(Le, {
1353
1287
  key: 1,
1354
- modelValue: r(S),
1355
- "onUpdate:modelValue": D[6] || (D[6] = ($) => U(S) ? S.value = $ : null),
1288
+ modelValue: l(F),
1289
+ "onUpdate:modelValue": T[6] || (T[6] = (v) => R(F) ? F.value = v : null),
1356
1290
  type: "checkbox",
1357
1291
  name: "newsletter",
1358
- label: r(e)("booking.reservation.newsletterSignUp")
1292
+ label: l(e)("booking.reservation.newsletterSignUp")
1359
1293
  }, null, 8, ["modelValue", "label"])),
1360
- r(Kt) ? L("", !0) : (E(), M(ne, {
1294
+ l(_t) ? k("", !0) : (f(), D(ee, {
1361
1295
  key: 2,
1362
- modelValue: r(b),
1363
- "onUpdate:modelValue": D[7] || (D[7] = ($) => U(b) ? b.value = $ : null),
1296
+ modelValue: l(H),
1297
+ "onUpdate:modelValue": T[7] || (T[7] = (v) => R(H) ? H.value = v : null),
1364
1298
  type: "text",
1365
1299
  name: "firm",
1366
1300
  autocomplete: "firm",
1367
- label: `${r(e)("booking.reservation.companyName")} (${r(e)("booking.reservation.optional")})`,
1301
+ label: `${l(e)("booking.reservation.companyName")} (${l(e)("booking.reservation.optional")})`,
1368
1302
  icon: "id-card",
1369
- placeholder: r(e)("booking.reservation.companyNamePlaceholder")
1303
+ placeholder: l(e)("booking.reservation.companyNamePlaceholder")
1370
1304
  }, null, 8, ["modelValue", "label", "placeholder"])),
1371
- C(Ho, {
1372
- modelValue: r(c),
1373
- "onUpdate:modelValue": D[8] || (D[8] = ($) => U(c) ? c.value = $ : null),
1305
+ g(uo, {
1306
+ modelValue: l(S),
1307
+ "onUpdate:modelValue": T[8] || (T[8] = (v) => R(S) ? S.value = v : null),
1374
1308
  icon: "phone-office",
1375
- label: r(e)("booking.reservation.phone"),
1376
- placeholder: r(e)("booking.reservation.phonePlaceholder"),
1309
+ label: l(e)("booking.reservation.phone"),
1310
+ placeholder: l(e)("booking.reservation.phonePlaceholder"),
1377
1311
  required: ""
1378
1312
  }, null, 8, ["modelValue", "label", "placeholder"]),
1379
- C(yn, {
1380
- modelValue: r(a),
1381
- "onUpdate:modelValue": D[9] || (D[9] = ($) => U(a) ? a.value = $ : null),
1382
- label: r(e)("booking.reservation.country"),
1383
- placeholder: r(e)("booking.reservation.countryPlaceholder"),
1384
- options: r(n),
1313
+ g(Ko, {
1314
+ modelValue: l(C),
1315
+ "onUpdate:modelValue": T[9] || (T[9] = (v) => R(C) ? C.value = v : null),
1316
+ label: l(e)("booking.reservation.country"),
1317
+ placeholder: l(e)("booking.reservation.countryPlaceholder"),
1318
+ options: l(n),
1385
1319
  required: ""
1386
1320
  }, null, 8, ["modelValue", "label", "placeholder", "options"]),
1387
- C(ne, {
1388
- modelValue: r(i),
1389
- "onUpdate:modelValue": D[10] || (D[10] = ($) => U(i) ? i.value = $ : null),
1321
+ g(ee, {
1322
+ modelValue: l(_),
1323
+ "onUpdate:modelValue": T[10] || (T[10] = (v) => R(_) ? _.value = v : null),
1390
1324
  type: "textarea",
1391
1325
  name: "address",
1392
1326
  autocomplete: "street-address",
1393
- label: r(e)("booking.reservation.streetAddress"),
1327
+ label: l(e)("booking.reservation.streetAddress"),
1394
1328
  icon: "map-marked",
1395
- placeholder: r(e)("booking.reservation.streetAddressPlaceholder"),
1329
+ placeholder: l(e)("booking.reservation.streetAddressPlaceholder"),
1396
1330
  required: ""
1397
1331
  }, null, 8, ["modelValue", "label", "placeholder"]),
1398
- y("ul", fi, [
1399
- y("li", null, [
1400
- C(ne, {
1401
- modelValue: r(k),
1402
- "onUpdate:modelValue": D[11] || (D[11] = ($) => U(k) ? k.value = $ : null),
1332
+ r("ul", El, [
1333
+ r("li", null, [
1334
+ g(ee, {
1335
+ modelValue: l(L),
1336
+ "onUpdate:modelValue": T[11] || (T[11] = (v) => R(L) ? L.value = v : null),
1403
1337
  type: "text",
1404
1338
  name: "postal",
1405
1339
  autocomplete: "postal-code",
1406
- label: r(e)("booking.reservation.postal"),
1340
+ label: l(e)("booking.reservation.postal"),
1407
1341
  icon: "mailbox",
1408
- placeholder: r(e)("booking.reservation.postalPlaceholder"),
1342
+ placeholder: l(e)("booking.reservation.postalPlaceholder"),
1409
1343
  required: ""
1410
1344
  }, null, 8, ["modelValue", "label", "placeholder"])
1411
1345
  ]),
1412
- y("li", null, [
1413
- C(ne, {
1414
- modelValue: r(m),
1415
- "onUpdate:modelValue": D[12] || (D[12] = ($) => U(m) ? m.value = $ : null),
1346
+ r("li", null, [
1347
+ g(ee, {
1348
+ modelValue: l(G),
1349
+ "onUpdate:modelValue": T[12] || (T[12] = (v) => R(G) ? G.value = v : null),
1416
1350
  type: "text",
1417
1351
  name: "city",
1418
1352
  autocomplete: "address-level2",
1419
- label: r(e)("booking.reservation.city"),
1353
+ label: l(e)("booking.reservation.city"),
1420
1354
  icon: "city",
1421
- placeholder: r(e)("booking.reservation.cityPlaceholder"),
1355
+ placeholder: l(e)("booking.reservation.cityPlaceholder"),
1422
1356
  required: ""
1423
1357
  }, null, 8, ["modelValue", "label", "placeholder"])
1424
1358
  ])
1425
1359
  ]),
1426
- C(ne, {
1427
- modelValue: r(v),
1428
- "onUpdate:modelValue": D[13] || (D[13] = ($) => U(v) ? v.value = $ : null),
1360
+ g(ee, {
1361
+ modelValue: l(A),
1362
+ "onUpdate:modelValue": T[13] || (T[13] = (v) => R(A) ? A.value = v : null),
1429
1363
  type: "textarea",
1430
- label: `${r(e)("booking.reservation.remark")} (${r(e)("booking.reservation.optional")})`,
1364
+ label: `${l(e)("booking.reservation.remark")} (${l(e)("booking.reservation.optional")})`,
1431
1365
  icon: "info-circle",
1432
- placeholder: r(e)("booking.reservation.remarkPlaceholder")
1366
+ placeholder: l(e)("booking.reservation.remarkPlaceholder")
1433
1367
  }, null, 8, ["modelValue", "label", "placeholder"]),
1434
- C(ne, {
1435
- modelValue: r(T),
1436
- "onUpdate:modelValue": D[14] || (D[14] = ($) => U(T) ? T.value = $ : null),
1368
+ g(ee, {
1369
+ modelValue: l(N),
1370
+ "onUpdate:modelValue": T[14] || (T[14] = (v) => R(N) ? N.value = v : null),
1437
1371
  type: "textarea",
1438
- label: `${r(e)("booking.reservation.allergies")} (${r(e)("booking.reservation.optional")})`,
1372
+ label: `${l(e)("booking.reservation.allergies")} (${l(e)("booking.reservation.optional")})`,
1439
1373
  icon: "allergies",
1440
- placeholder: r(e)("booking.reservation.allergiesPlaceholder")
1374
+ placeholder: l(e)("booking.reservation.allergiesPlaceholder")
1441
1375
  }, null, 8, ["modelValue", "label", "placeholder"]),
1442
- r(jt) ? L("", !0) : (E(), M(_n, {
1376
+ l(bt) ? k("", !0) : (f(), D(Zo, {
1443
1377
  key: 3,
1444
- modelValue: r(d),
1445
- "onUpdate:modelValue": D[15] || (D[15] = ($) => U(d) ? d.value = $ : null),
1446
- label: `${r(e)("booking.reservation.purposeOfStay")} (${r(e)("booking.reservation.optional")})`,
1378
+ modelValue: l(p),
1379
+ "onUpdate:modelValue": T[15] || (T[15] = (v) => R(p) ? p.value = v : null),
1380
+ label: `${l(e)("booking.reservation.purposeOfStay")} (${l(e)("booking.reservation.optional")})`,
1447
1381
  name: "travelingFor",
1448
- checkboxes: no.value
1382
+ checkboxes: Dt.value
1449
1383
  }, null, 8, ["modelValue", "label", "checkboxes"]))
1450
1384
  ])
1451
1385
  ]),
1452
- navigation: P(() => [
1453
- y("div", null, [
1454
- C(ue, {
1455
- label: r(Qt) ? r(e)("booking.reservation.nextButton") : r(e)("general.confirmReservation"),
1456
- disabled: !r(h),
1457
- "is-loading": r(s),
1386
+ navigation: V(() => [
1387
+ r("div", null, [
1388
+ g(ae, {
1389
+ label: l(Vt) ? l(e)("booking.reservation.nextButton") : l(e)("general.confirmReservation"),
1390
+ disabled: !l(c),
1391
+ "is-loading": l(i),
1458
1392
  "full-width": "",
1459
- onClickEvent: ($) => lo(q)
1393
+ onClickEvent: (v) => Mt(W)
1460
1394
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
1461
- y("button", {
1395
+ r("button", {
1462
1396
  class: "konnectio-abort-reservation link",
1463
- onClick: je(($) => tt(H), ["prevent"])
1397
+ onClick: Be((v) => Ne(P), ["prevent"])
1464
1398
  }, [
1465
- y("span", null, V(r(e)("general.goAStepBack")), 1)
1466
- ], 8, mi)
1399
+ r("span", null, y(l(e)("general.goAStepBack")), 1)
1400
+ ], 8, Ml)
1467
1401
  ])
1468
1402
  ]),
1469
1403
  _: 2
1470
1404
  }, 1024)
1471
1405
  ]),
1472
- payment: P(() => [
1473
- C(Mo)
1406
+ payment: V(() => [
1407
+ g(co)
1474
1408
  ]),
1475
- confirmation: P(() => [
1476
- C(Po, {
1477
- message: r(e)("booking.confirmation.thankYou")
1409
+ confirmation: V(() => [
1410
+ g(no, {
1411
+ message: l(e)("booking.confirmation.thankYou")
1478
1412
  }, null, 8, ["message"])
1479
1413
  ]),
1480
1414
  _: 1
@@ -1483,8 +1417,8 @@ const ai = { class: "fresh-booking-event-addons-price" }, li = { key: 1 }, ui =
1483
1417
  _: 1
1484
1418
  }, 8, ["access-token"])
1485
1419
  ]),
1486
- fallback: P(() => [
1487
- C(Mn)
1420
+ fallback: V(() => [
1421
+ g(ol)
1488
1422
  ]),
1489
1423
  _: 1
1490
1424
  }))
@@ -1492,1108 +1426,31 @@ const ai = { class: "fresh-booking-event-addons-price" }, li = { key: 1 }, ui =
1492
1426
  _: 1
1493
1427
  }, 8, ["styling"]));
1494
1428
  }
1495
- }), ve = /* @__PURE__ */ K(gi, [["__scopeId", "data-v-8f62043c"]]);
1496
- var Dt = { exports: {} }, xe = { exports: {} }, He = { exports: {} }, st;
1497
- function Je() {
1498
- return st || (st = 1, function(o) {
1499
- (function(e, t) {
1500
- o.exports ? o.exports = t() : e.EvEmitter = t();
1501
- })(typeof window < "u" ? window : wt, function() {
1502
- function e() {
1503
- }
1504
- var t = e.prototype;
1505
- return t.on = function(n, p) {
1506
- if (!(!n || !p)) {
1507
- var s = this._events = this._events || {}, h = s[n] = s[n] || [];
1508
- return h.indexOf(p) == -1 && h.push(p), this;
1509
- }
1510
- }, t.once = function(n, p) {
1511
- if (!(!n || !p)) {
1512
- this.on(n, p);
1513
- var s = this._onceEvents = this._onceEvents || {}, h = s[n] = s[n] || {};
1514
- return h[p] = !0, this;
1515
- }
1516
- }, t.off = function(n, p) {
1517
- var s = this._events && this._events[n];
1518
- if (!(!s || !s.length)) {
1519
- var h = s.indexOf(p);
1520
- return h != -1 && s.splice(h, 1), this;
1521
- }
1522
- }, t.emitEvent = function(n, p) {
1523
- var s = this._events && this._events[n];
1524
- if (!(!s || !s.length)) {
1525
- s = s.slice(0), p = p || [];
1526
- for (var h = this._onceEvents && this._onceEvents[n], d = 0; d < s.length; d++) {
1527
- var l = s[d], u = h && h[l];
1528
- u && (this.off(n, l), delete h[l]), l.apply(this, p);
1529
- }
1530
- return this;
1531
- }
1532
- }, t.allOff = function() {
1533
- delete this._events, delete this._onceEvents;
1534
- }, e;
1535
- });
1536
- }(He)), He.exports;
1537
- }
1538
- var Me = { exports: {} };
1539
- /*!
1540
- * getSize v2.0.3
1541
- * measure size of elements
1542
- * MIT license
1543
- */
1544
- var at;
1545
- function Xe() {
1546
- return at || (at = 1, function(o) {
1547
- (function(e, t) {
1548
- o.exports ? o.exports = t() : e.getSize = t();
1549
- })(window, function() {
1550
- function t(c) {
1551
- var b = parseFloat(c), k = c.indexOf("%") == -1 && !isNaN(b);
1552
- return k && b;
1553
- }
1554
- function n() {
1555
- }
1556
- var p = typeof console > "u" ? n : function(c) {
1557
- console.error(c);
1558
- }, s = [
1559
- "paddingLeft",
1560
- "paddingRight",
1561
- "paddingTop",
1562
- "paddingBottom",
1563
- "marginLeft",
1564
- "marginRight",
1565
- "marginTop",
1566
- "marginBottom",
1567
- "borderLeftWidth",
1568
- "borderRightWidth",
1569
- "borderTopWidth",
1570
- "borderBottomWidth"
1571
- ], h = s.length;
1572
- function d() {
1573
- for (var c = {
1574
- width: 0,
1575
- height: 0,
1576
- innerWidth: 0,
1577
- innerHeight: 0,
1578
- outerWidth: 0,
1579
- outerHeight: 0
1580
- }, b = 0; b < h; b++) {
1581
- var k = s[b];
1582
- c[k] = 0;
1583
- }
1584
- return c;
1585
- }
1586
- function l(c) {
1587
- var b = getComputedStyle(c);
1588
- return b || p("Style returned " + b + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), b;
1589
- }
1590
- var u = !1, f;
1591
- function g() {
1592
- if (!u) {
1593
- u = !0;
1594
- var c = document.createElement("div");
1595
- c.style.width = "200px", c.style.padding = "1px 2px 3px 4px", c.style.borderStyle = "solid", c.style.borderWidth = "1px 2px 3px 4px", c.style.boxSizing = "border-box";
1596
- var b = document.body || document.documentElement;
1597
- b.appendChild(c);
1598
- var k = l(c);
1599
- f = Math.round(t(k.width)) == 200, _.isBoxSizeOuter = f, b.removeChild(c);
1600
- }
1601
- }
1602
- function _(c) {
1603
- if (g(), typeof c == "string" && (c = document.querySelector(c)), !(!c || typeof c != "object" || !c.nodeType)) {
1604
- var b = l(c);
1605
- if (b.display == "none")
1606
- return d();
1607
- var k = {};
1608
- k.width = c.offsetWidth, k.height = c.offsetHeight;
1609
- for (var m = k.isBorderBox = b.boxSizing == "border-box", i = 0; i < h; i++) {
1610
- var a = s[i], v = b[a], T = parseFloat(v);
1611
- k[a] = isNaN(T) ? 0 : T;
1612
- }
1613
- var S = k.paddingLeft + k.paddingRight, w = k.paddingTop + k.paddingBottom, A = k.marginLeft + k.marginRight, B = k.marginTop + k.marginBottom, O = k.borderLeftWidth + k.borderRightWidth, W = k.borderTopWidth + k.borderBottomWidth, X = m && f, ae = t(b.width);
1614
- ae !== !1 && (k.width = ae + // add padding and border unless it's already including it
1615
- (X ? 0 : S + O));
1616
- var le = t(b.height);
1617
- return le !== !1 && (k.height = le + // add padding and border unless it's already including it
1618
- (X ? 0 : w + W)), k.innerWidth = k.width - (S + O), k.innerHeight = k.height - (w + W), k.outerWidth = k.width + A, k.outerHeight = k.height + B, k;
1619
- }
1620
- }
1621
- return _;
1622
- });
1623
- }(Me)), Me.exports;
1624
- }
1625
- var Re = { exports: {} }, Be = { exports: {} }, lt;
1626
- function vi() {
1627
- return lt || (lt = 1, function(o) {
1628
- (function(e, t) {
1629
- o.exports ? o.exports = t() : e.matchesSelector = t();
1630
- })(window, function() {
1631
- var t = function() {
1632
- var n = window.Element.prototype;
1633
- if (n.matches)
1634
- return "matches";
1635
- if (n.matchesSelector)
1636
- return "matchesSelector";
1637
- for (var p = ["webkit", "moz", "ms", "o"], s = 0; s < p.length; s++) {
1638
- var h = p[s], d = h + "MatchesSelector";
1639
- if (n[d])
1640
- return d;
1641
- }
1642
- }();
1643
- return function(p, s) {
1644
- return p[t](s);
1645
- };
1646
- });
1647
- }(Be)), Be.exports;
1648
- }
1649
- var ut;
1650
- function yi() {
1651
- return ut || (ut = 1, function(o) {
1652
- (function(e, t) {
1653
- o.exports ? o.exports = t(
1654
- e,
1655
- vi()
1656
- ) : e.fizzyUIUtils = t(
1657
- e,
1658
- e.matchesSelector
1659
- );
1660
- })(window, function(t, n) {
1661
- var p = {};
1662
- p.extend = function(d, l) {
1663
- for (var u in l)
1664
- d[u] = l[u];
1665
- return d;
1666
- }, p.modulo = function(d, l) {
1667
- return (d % l + l) % l;
1668
- };
1669
- var s = Array.prototype.slice;
1670
- p.makeArray = function(d) {
1671
- if (Array.isArray(d))
1672
- return d;
1673
- if (d == null)
1674
- return [];
1675
- var l = typeof d == "object" && typeof d.length == "number";
1676
- return l ? s.call(d) : [d];
1677
- }, p.removeFrom = function(d, l) {
1678
- var u = d.indexOf(l);
1679
- u != -1 && d.splice(u, 1);
1680
- }, p.getParent = function(d, l) {
1681
- for (; d.parentNode && d != document.body; )
1682
- if (d = d.parentNode, n(d, l))
1683
- return d;
1684
- }, p.getQueryElement = function(d) {
1685
- return typeof d == "string" ? document.querySelector(d) : d;
1686
- }, p.handleEvent = function(d) {
1687
- var l = "on" + d.type;
1688
- this[l] && this[l](d);
1689
- }, p.filterFindElements = function(d, l) {
1690
- d = p.makeArray(d);
1691
- var u = [];
1692
- return d.forEach(function(f) {
1693
- if (f instanceof HTMLElement) {
1694
- if (!l) {
1695
- u.push(f);
1696
- return;
1697
- }
1698
- n(f, l) && u.push(f);
1699
- for (var g = f.querySelectorAll(l), _ = 0; _ < g.length; _++)
1700
- u.push(g[_]);
1701
- }
1702
- }), u;
1703
- }, p.debounceMethod = function(d, l, u) {
1704
- u = u || 100;
1705
- var f = d.prototype[l], g = l + "Timeout";
1706
- d.prototype[l] = function() {
1707
- var _ = this[g];
1708
- clearTimeout(_);
1709
- var c = arguments, b = this;
1710
- this[g] = setTimeout(function() {
1711
- f.apply(b, c), delete b[g];
1712
- }, u);
1713
- };
1714
- }, p.docReady = function(d) {
1715
- var l = document.readyState;
1716
- l == "complete" || l == "interactive" ? setTimeout(d) : document.addEventListener("DOMContentLoaded", d);
1717
- }, p.toDashed = function(d) {
1718
- return d.replace(/(.)([A-Z])/g, function(l, u, f) {
1719
- return u + "-" + f;
1720
- }).toLowerCase();
1721
- };
1722
- var h = t.console;
1723
- return p.htmlInit = function(d, l) {
1724
- p.docReady(function() {
1725
- var u = p.toDashed(l), f = "data-" + u, g = document.querySelectorAll("[" + f + "]"), _ = document.querySelectorAll(".js-" + u), c = p.makeArray(g).concat(p.makeArray(_)), b = f + "-options", k = t.jQuery;
1726
- c.forEach(function(m) {
1727
- var i = m.getAttribute(f) || m.getAttribute(b), a;
1728
- try {
1729
- a = i && JSON.parse(i);
1730
- } catch (T) {
1731
- h && h.error("Error parsing " + f + " on " + m.className + ": " + T);
1732
- return;
1733
- }
1734
- var v = new d(m, a);
1735
- k && k.data(m, l, v);
1736
- });
1737
- });
1738
- }, p;
1739
- });
1740
- }(Re)), Re.exports;
1741
- }
1742
- var ze = { exports: {} }, dt;
1743
- function bi() {
1744
- return dt || (dt = 1, function(o) {
1745
- (function(e, t) {
1746
- o.exports ? o.exports = t(
1747
- Je(),
1748
- Xe()
1749
- ) : (e.Outlayer = {}, e.Outlayer.Item = t(
1750
- e.EvEmitter,
1751
- e.getSize
1752
- ));
1753
- })(window, function(t, n) {
1754
- function p(m) {
1755
- for (var i in m)
1756
- return !1;
1757
- return i = null, !0;
1758
- }
1759
- var s = document.documentElement.style, h = typeof s.transition == "string" ? "transition" : "WebkitTransition", d = typeof s.transform == "string" ? "transform" : "WebkitTransform", l = {
1760
- WebkitTransition: "webkitTransitionEnd",
1761
- transition: "transitionend"
1762
- }[h], u = {
1763
- transform: d,
1764
- transition: h,
1765
- transitionDuration: h + "Duration",
1766
- transitionProperty: h + "Property",
1767
- transitionDelay: h + "Delay"
1768
- };
1769
- function f(m, i) {
1770
- m && (this.element = m, this.layout = i, this.position = {
1771
- x: 0,
1772
- y: 0
1773
- }, this._create());
1774
- }
1775
- var g = f.prototype = Object.create(t.prototype);
1776
- g.constructor = f, g._create = function() {
1777
- this._transn = {
1778
- ingProperties: {},
1779
- clean: {},
1780
- onEnd: {}
1781
- }, this.css({
1782
- position: "absolute"
1783
- });
1784
- }, g.handleEvent = function(m) {
1785
- var i = "on" + m.type;
1786
- this[i] && this[i](m);
1787
- }, g.getSize = function() {
1788
- this.size = n(this.element);
1789
- }, g.css = function(m) {
1790
- var i = this.element.style;
1791
- for (var a in m) {
1792
- var v = u[a] || a;
1793
- i[v] = m[a];
1794
- }
1795
- }, g.getPosition = function() {
1796
- var m = getComputedStyle(this.element), i = this.layout._getOption("originLeft"), a = this.layout._getOption("originTop"), v = m[i ? "left" : "right"], T = m[a ? "top" : "bottom"], S = parseFloat(v), w = parseFloat(T), A = this.layout.size;
1797
- v.indexOf("%") != -1 && (S = S / 100 * A.width), T.indexOf("%") != -1 && (w = w / 100 * A.height), S = isNaN(S) ? 0 : S, w = isNaN(w) ? 0 : w, S -= i ? A.paddingLeft : A.paddingRight, w -= a ? A.paddingTop : A.paddingBottom, this.position.x = S, this.position.y = w;
1798
- }, g.layoutPosition = function() {
1799
- var m = this.layout.size, i = {}, a = this.layout._getOption("originLeft"), v = this.layout._getOption("originTop"), T = a ? "paddingLeft" : "paddingRight", S = a ? "left" : "right", w = a ? "right" : "left", A = this.position.x + m[T];
1800
- i[S] = this.getXValue(A), i[w] = "";
1801
- var B = v ? "paddingTop" : "paddingBottom", O = v ? "top" : "bottom", W = v ? "bottom" : "top", X = this.position.y + m[B];
1802
- i[O] = this.getYValue(X), i[W] = "", this.css(i), this.emitEvent("layout", [this]);
1803
- }, g.getXValue = function(m) {
1804
- var i = this.layout._getOption("horizontal");
1805
- return this.layout.options.percentPosition && !i ? m / this.layout.size.width * 100 + "%" : m + "px";
1806
- }, g.getYValue = function(m) {
1807
- var i = this.layout._getOption("horizontal");
1808
- return this.layout.options.percentPosition && i ? m / this.layout.size.height * 100 + "%" : m + "px";
1809
- }, g._transitionTo = function(m, i) {
1810
- this.getPosition();
1811
- var a = this.position.x, v = this.position.y, T = m == this.position.x && i == this.position.y;
1812
- if (this.setPosition(m, i), T && !this.isTransitioning) {
1813
- this.layoutPosition();
1814
- return;
1815
- }
1816
- var S = m - a, w = i - v, A = {};
1817
- A.transform = this.getTranslate(S, w), this.transition({
1818
- to: A,
1819
- onTransitionEnd: {
1820
- transform: this.layoutPosition
1821
- },
1822
- isCleaning: !0
1823
- });
1824
- }, g.getTranslate = function(m, i) {
1825
- var a = this.layout._getOption("originLeft"), v = this.layout._getOption("originTop");
1826
- return m = a ? m : -m, i = v ? i : -i, "translate3d(" + m + "px, " + i + "px, 0)";
1827
- }, g.goTo = function(m, i) {
1828
- this.setPosition(m, i), this.layoutPosition();
1829
- }, g.moveTo = g._transitionTo, g.setPosition = function(m, i) {
1830
- this.position.x = parseFloat(m), this.position.y = parseFloat(i);
1831
- }, g._nonTransition = function(m) {
1832
- this.css(m.to), m.isCleaning && this._removeStyles(m.to);
1833
- for (var i in m.onTransitionEnd)
1834
- m.onTransitionEnd[i].call(this);
1835
- }, g.transition = function(m) {
1836
- if (!parseFloat(this.layout.options.transitionDuration)) {
1837
- this._nonTransition(m);
1838
- return;
1839
- }
1840
- var i = this._transn;
1841
- for (var a in m.onTransitionEnd)
1842
- i.onEnd[a] = m.onTransitionEnd[a];
1843
- for (a in m.to)
1844
- i.ingProperties[a] = !0, m.isCleaning && (i.clean[a] = !0);
1845
- m.from && (this.css(m.from), this.element.offsetHeight), this.enableTransition(m.to), this.css(m.to), this.isTransitioning = !0;
1846
- };
1847
- function _(m) {
1848
- return m.replace(/([A-Z])/g, function(i) {
1849
- return "-" + i.toLowerCase();
1850
- });
1851
- }
1852
- var c = "opacity," + _(d);
1853
- g.enableTransition = function() {
1854
- if (!this.isTransitioning) {
1855
- var m = this.layout.options.transitionDuration;
1856
- m = typeof m == "number" ? m + "ms" : m, this.css({
1857
- transitionProperty: c,
1858
- transitionDuration: m,
1859
- transitionDelay: this.staggerDelay || 0
1860
- }), this.element.addEventListener(l, this, !1);
1861
- }
1862
- }, g.onwebkitTransitionEnd = function(m) {
1863
- this.ontransitionend(m);
1864
- }, g.onotransitionend = function(m) {
1865
- this.ontransitionend(m);
1866
- };
1867
- var b = {
1868
- "-webkit-transform": "transform"
1869
- };
1870
- g.ontransitionend = function(m) {
1871
- if (m.target === this.element) {
1872
- var i = this._transn, a = b[m.propertyName] || m.propertyName;
1873
- if (delete i.ingProperties[a], p(i.ingProperties) && this.disableTransition(), a in i.clean && (this.element.style[m.propertyName] = "", delete i.clean[a]), a in i.onEnd) {
1874
- var v = i.onEnd[a];
1875
- v.call(this), delete i.onEnd[a];
1876
- }
1877
- this.emitEvent("transitionEnd", [this]);
1878
- }
1879
- }, g.disableTransition = function() {
1880
- this.removeTransitionStyles(), this.element.removeEventListener(l, this, !1), this.isTransitioning = !1;
1881
- }, g._removeStyles = function(m) {
1882
- var i = {};
1883
- for (var a in m)
1884
- i[a] = "";
1885
- this.css(i);
1886
- };
1887
- var k = {
1888
- transitionProperty: "",
1889
- transitionDuration: "",
1890
- transitionDelay: ""
1891
- };
1892
- return g.removeTransitionStyles = function() {
1893
- this.css(k);
1894
- }, g.stagger = function(m) {
1895
- m = isNaN(m) ? 0 : m, this.staggerDelay = m + "ms";
1896
- }, g.removeElem = function() {
1897
- this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
1898
- }, g.remove = function() {
1899
- if (!h || !parseFloat(this.layout.options.transitionDuration)) {
1900
- this.removeElem();
1901
- return;
1902
- }
1903
- this.once("transitionEnd", function() {
1904
- this.removeElem();
1905
- }), this.hide();
1906
- }, g.reveal = function() {
1907
- delete this.isHidden, this.css({ display: "" });
1908
- var m = this.layout.options, i = {}, a = this.getHideRevealTransitionEndProperty("visibleStyle");
1909
- i[a] = this.onRevealTransitionEnd, this.transition({
1910
- from: m.hiddenStyle,
1911
- to: m.visibleStyle,
1912
- isCleaning: !0,
1913
- onTransitionEnd: i
1914
- });
1915
- }, g.onRevealTransitionEnd = function() {
1916
- this.isHidden || this.emitEvent("reveal");
1917
- }, g.getHideRevealTransitionEndProperty = function(m) {
1918
- var i = this.layout.options[m];
1919
- if (i.opacity)
1920
- return "opacity";
1921
- for (var a in i)
1922
- return a;
1923
- }, g.hide = function() {
1924
- this.isHidden = !0, this.css({ display: "" });
1925
- var m = this.layout.options, i = {}, a = this.getHideRevealTransitionEndProperty("hiddenStyle");
1926
- i[a] = this.onHideTransitionEnd, this.transition({
1927
- from: m.visibleStyle,
1928
- to: m.hiddenStyle,
1929
- // keep hidden stuff hidden
1930
- isCleaning: !0,
1931
- onTransitionEnd: i
1932
- });
1933
- }, g.onHideTransitionEnd = function() {
1934
- this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide"));
1935
- }, g.destroy = function() {
1936
- this.css({
1937
- position: "",
1938
- left: "",
1939
- right: "",
1940
- top: "",
1941
- bottom: "",
1942
- transition: "",
1943
- transform: ""
1944
- });
1945
- }, f;
1946
- });
1947
- }(ze)), ze.exports;
1948
- }
1949
- /*!
1950
- * Outlayer v2.1.1
1951
- * the brains and guts of a layout library
1952
- * MIT license
1953
- */
1954
- var ct;
1955
- function ki() {
1956
- return ct || (ct = 1, function(o) {
1957
- (function(e, t) {
1958
- o.exports ? o.exports = t(
1959
- e,
1960
- Je(),
1961
- Xe(),
1962
- yi(),
1963
- bi()
1964
- ) : e.Outlayer = t(
1965
- e,
1966
- e.EvEmitter,
1967
- e.getSize,
1968
- e.fizzyUIUtils,
1969
- e.Outlayer.Item
1970
- );
1971
- })(window, function(t, n, p, s, h) {
1972
- var d = t.console, l = t.jQuery, u = function() {
1973
- }, f = 0, g = {};
1974
- function _(i, a) {
1975
- var v = s.getQueryElement(i);
1976
- if (!v) {
1977
- d && d.error("Bad element for " + this.constructor.namespace + ": " + (v || i));
1978
- return;
1979
- }
1980
- this.element = v, l && (this.$element = l(this.element)), this.options = s.extend({}, this.constructor.defaults), this.option(a);
1981
- var T = ++f;
1982
- this.element.outlayerGUID = T, g[T] = this, this._create();
1983
- var S = this._getOption("initLayout");
1984
- S && this.layout();
1985
- }
1986
- _.namespace = "outlayer", _.Item = h, _.defaults = {
1987
- containerStyle: {
1988
- position: "relative"
1989
- },
1990
- initLayout: !0,
1991
- originLeft: !0,
1992
- originTop: !0,
1993
- resize: !0,
1994
- resizeContainer: !0,
1995
- // item options
1996
- transitionDuration: "0.4s",
1997
- hiddenStyle: {
1998
- opacity: 0,
1999
- transform: "scale(0.001)"
2000
- },
2001
- visibleStyle: {
2002
- opacity: 1,
2003
- transform: "scale(1)"
2004
- }
2005
- };
2006
- var c = _.prototype;
2007
- s.extend(c, n.prototype), c.option = function(i) {
2008
- s.extend(this.options, i);
2009
- }, c._getOption = function(i) {
2010
- var a = this.constructor.compatOptions[i];
2011
- return a && this.options[a] !== void 0 ? this.options[a] : this.options[i];
2012
- }, _.compatOptions = {
2013
- // currentName: oldName
2014
- initLayout: "isInitLayout",
2015
- horizontal: "isHorizontal",
2016
- layoutInstant: "isLayoutInstant",
2017
- originLeft: "isOriginLeft",
2018
- originTop: "isOriginTop",
2019
- resize: "isResizeBound",
2020
- resizeContainer: "isResizingContainer"
2021
- }, c._create = function() {
2022
- this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), s.extend(this.element.style, this.options.containerStyle);
2023
- var i = this._getOption("resize");
2024
- i && this.bindResize();
2025
- }, c.reloadItems = function() {
2026
- this.items = this._itemize(this.element.children);
2027
- }, c._itemize = function(i) {
2028
- for (var a = this._filterFindItemElements(i), v = this.constructor.Item, T = [], S = 0; S < a.length; S++) {
2029
- var w = a[S], A = new v(w, this);
2030
- T.push(A);
2031
- }
2032
- return T;
2033
- }, c._filterFindItemElements = function(i) {
2034
- return s.filterFindElements(i, this.options.itemSelector);
2035
- }, c.getItemElements = function() {
2036
- return this.items.map(function(i) {
2037
- return i.element;
2038
- });
2039
- }, c.layout = function() {
2040
- this._resetLayout(), this._manageStamps();
2041
- var i = this._getOption("layoutInstant"), a = i !== void 0 ? i : !this._isLayoutInited;
2042
- this.layoutItems(this.items, a), this._isLayoutInited = !0;
2043
- }, c._init = c.layout, c._resetLayout = function() {
2044
- this.getSize();
2045
- }, c.getSize = function() {
2046
- this.size = p(this.element);
2047
- }, c._getMeasurement = function(i, a) {
2048
- var v = this.options[i], T;
2049
- v ? (typeof v == "string" ? T = this.element.querySelector(v) : v instanceof HTMLElement && (T = v), this[i] = T ? p(T)[a] : v) : this[i] = 0;
2050
- }, c.layoutItems = function(i, a) {
2051
- i = this._getItemsForLayout(i), this._layoutItems(i, a), this._postLayout();
2052
- }, c._getItemsForLayout = function(i) {
2053
- return i.filter(function(a) {
2054
- return !a.isIgnored;
2055
- });
2056
- }, c._layoutItems = function(i, a) {
2057
- if (this._emitCompleteOnItems("layout", i), !(!i || !i.length)) {
2058
- var v = [];
2059
- i.forEach(function(T) {
2060
- var S = this._getItemLayoutPosition(T);
2061
- S.item = T, S.isInstant = a || T.isLayoutInstant, v.push(S);
2062
- }, this), this._processLayoutQueue(v);
2063
- }
2064
- }, c._getItemLayoutPosition = function() {
2065
- return {
2066
- x: 0,
2067
- y: 0
2068
- };
2069
- }, c._processLayoutQueue = function(i) {
2070
- this.updateStagger(), i.forEach(function(a, v) {
2071
- this._positionItem(a.item, a.x, a.y, a.isInstant, v);
2072
- }, this);
2073
- }, c.updateStagger = function() {
2074
- var i = this.options.stagger;
2075
- if (i == null) {
2076
- this.stagger = 0;
2077
- return;
2078
- }
2079
- return this.stagger = m(i), this.stagger;
2080
- }, c._positionItem = function(i, a, v, T, S) {
2081
- T ? i.goTo(a, v) : (i.stagger(S * this.stagger), i.moveTo(a, v));
2082
- }, c._postLayout = function() {
2083
- this.resizeContainer();
2084
- }, c.resizeContainer = function() {
2085
- var i = this._getOption("resizeContainer");
2086
- if (i) {
2087
- var a = this._getContainerSize();
2088
- a && (this._setContainerMeasure(a.width, !0), this._setContainerMeasure(a.height, !1));
2089
- }
2090
- }, c._getContainerSize = u, c._setContainerMeasure = function(i, a) {
2091
- if (i !== void 0) {
2092
- var v = this.size;
2093
- v.isBorderBox && (i += a ? v.paddingLeft + v.paddingRight + v.borderLeftWidth + v.borderRightWidth : v.paddingBottom + v.paddingTop + v.borderTopWidth + v.borderBottomWidth), i = Math.max(i, 0), this.element.style[a ? "width" : "height"] = i + "px";
2094
- }
2095
- }, c._emitCompleteOnItems = function(i, a) {
2096
- var v = this;
2097
- function T() {
2098
- v.dispatchEvent(i + "Complete", null, [a]);
2099
- }
2100
- var S = a.length;
2101
- if (!a || !S) {
2102
- T();
2103
- return;
2104
- }
2105
- var w = 0;
2106
- function A() {
2107
- w++, w == S && T();
2108
- }
2109
- a.forEach(function(B) {
2110
- B.once(i, A);
2111
- });
2112
- }, c.dispatchEvent = function(i, a, v) {
2113
- var T = a ? [a].concat(v) : v;
2114
- if (this.emitEvent(i, T), l)
2115
- if (this.$element = this.$element || l(this.element), a) {
2116
- var S = l.Event(a);
2117
- S.type = i, this.$element.trigger(S, v);
2118
- } else
2119
- this.$element.trigger(i, v);
2120
- }, c.ignore = function(i) {
2121
- var a = this.getItem(i);
2122
- a && (a.isIgnored = !0);
2123
- }, c.unignore = function(i) {
2124
- var a = this.getItem(i);
2125
- a && delete a.isIgnored;
2126
- }, c.stamp = function(i) {
2127
- i = this._find(i), i && (this.stamps = this.stamps.concat(i), i.forEach(this.ignore, this));
2128
- }, c.unstamp = function(i) {
2129
- i = this._find(i), i && i.forEach(function(a) {
2130
- s.removeFrom(this.stamps, a), this.unignore(a);
2131
- }, this);
2132
- }, c._find = function(i) {
2133
- if (i)
2134
- return typeof i == "string" && (i = this.element.querySelectorAll(i)), i = s.makeArray(i), i;
2135
- }, c._manageStamps = function() {
2136
- !this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
2137
- }, c._getBoundingRect = function() {
2138
- var i = this.element.getBoundingClientRect(), a = this.size;
2139
- this._boundingRect = {
2140
- left: i.left + a.paddingLeft + a.borderLeftWidth,
2141
- top: i.top + a.paddingTop + a.borderTopWidth,
2142
- right: i.right - (a.paddingRight + a.borderRightWidth),
2143
- bottom: i.bottom - (a.paddingBottom + a.borderBottomWidth)
2144
- };
2145
- }, c._manageStamp = u, c._getElementOffset = function(i) {
2146
- var a = i.getBoundingClientRect(), v = this._boundingRect, T = p(i), S = {
2147
- left: a.left - v.left - T.marginLeft,
2148
- top: a.top - v.top - T.marginTop,
2149
- right: v.right - a.right - T.marginRight,
2150
- bottom: v.bottom - a.bottom - T.marginBottom
2151
- };
2152
- return S;
2153
- }, c.handleEvent = s.handleEvent, c.bindResize = function() {
2154
- t.addEventListener("resize", this), this.isResizeBound = !0;
2155
- }, c.unbindResize = function() {
2156
- t.removeEventListener("resize", this), this.isResizeBound = !1;
2157
- }, c.onresize = function() {
2158
- this.resize();
2159
- }, s.debounceMethod(_, "onresize", 100), c.resize = function() {
2160
- !this.isResizeBound || !this.needsResizeLayout() || this.layout();
2161
- }, c.needsResizeLayout = function() {
2162
- var i = p(this.element), a = this.size && i;
2163
- return a && i.innerWidth !== this.size.innerWidth;
2164
- }, c.addItems = function(i) {
2165
- var a = this._itemize(i);
2166
- return a.length && (this.items = this.items.concat(a)), a;
2167
- }, c.appended = function(i) {
2168
- var a = this.addItems(i);
2169
- a.length && (this.layoutItems(a, !0), this.reveal(a));
2170
- }, c.prepended = function(i) {
2171
- var a = this._itemize(i);
2172
- if (a.length) {
2173
- var v = this.items.slice(0);
2174
- this.items = a.concat(v), this._resetLayout(), this._manageStamps(), this.layoutItems(a, !0), this.reveal(a), this.layoutItems(v);
2175
- }
2176
- }, c.reveal = function(i) {
2177
- if (this._emitCompleteOnItems("reveal", i), !(!i || !i.length)) {
2178
- var a = this.updateStagger();
2179
- i.forEach(function(v, T) {
2180
- v.stagger(T * a), v.reveal();
2181
- });
2182
- }
2183
- }, c.hide = function(i) {
2184
- if (this._emitCompleteOnItems("hide", i), !(!i || !i.length)) {
2185
- var a = this.updateStagger();
2186
- i.forEach(function(v, T) {
2187
- v.stagger(T * a), v.hide();
2188
- });
2189
- }
2190
- }, c.revealItemElements = function(i) {
2191
- var a = this.getItems(i);
2192
- this.reveal(a);
2193
- }, c.hideItemElements = function(i) {
2194
- var a = this.getItems(i);
2195
- this.hide(a);
2196
- }, c.getItem = function(i) {
2197
- for (var a = 0; a < this.items.length; a++) {
2198
- var v = this.items[a];
2199
- if (v.element == i)
2200
- return v;
2201
- }
2202
- }, c.getItems = function(i) {
2203
- i = s.makeArray(i);
2204
- var a = [];
2205
- return i.forEach(function(v) {
2206
- var T = this.getItem(v);
2207
- T && a.push(T);
2208
- }, this), a;
2209
- }, c.remove = function(i) {
2210
- var a = this.getItems(i);
2211
- this._emitCompleteOnItems("remove", a), !(!a || !a.length) && a.forEach(function(v) {
2212
- v.remove(), s.removeFrom(this.items, v);
2213
- }, this);
2214
- }, c.destroy = function() {
2215
- var i = this.element.style;
2216
- i.height = "", i.position = "", i.width = "", this.items.forEach(function(v) {
2217
- v.destroy();
2218
- }), this.unbindResize();
2219
- var a = this.element.outlayerGUID;
2220
- delete g[a], delete this.element.outlayerGUID, l && l.removeData(this.element, this.constructor.namespace);
2221
- }, _.data = function(i) {
2222
- i = s.getQueryElement(i);
2223
- var a = i && i.outlayerGUID;
2224
- return a && g[a];
2225
- }, _.create = function(i, a) {
2226
- var v = b(_);
2227
- return v.defaults = s.extend({}, _.defaults), s.extend(v.defaults, a), v.compatOptions = s.extend({}, _.compatOptions), v.namespace = i, v.data = _.data, v.Item = b(h), s.htmlInit(v, i), l && l.bridget && l.bridget(i, v), v;
2228
- };
2229
- function b(i) {
2230
- function a() {
2231
- i.apply(this, arguments);
2232
- }
2233
- return a.prototype = Object.create(i.prototype), a.prototype.constructor = a, a;
2234
- }
2235
- var k = {
2236
- ms: 1,
2237
- s: 1e3
2238
- };
2239
- function m(i) {
2240
- if (typeof i == "number")
2241
- return i;
2242
- var a = i.match(/(^\d*\.?\d*)(\w*)/), v = a && a[1], T = a && a[2];
2243
- if (!v.length)
2244
- return 0;
2245
- v = parseFloat(v);
2246
- var S = k[T] || 1;
2247
- return v * S;
2248
- }
2249
- return _.Item = h, _;
2250
- });
2251
- }(xe)), xe.exports;
2252
- }
2253
- /*!
2254
- * Masonry v4.2.2
2255
- * Cascading grid layout library
2256
- * https://masonry.desandro.com
2257
- * MIT License
2258
- * by David DeSandro
2259
- */
2260
- (function(o) {
2261
- (function(e, t) {
2262
- o.exports ? o.exports = t(
2263
- ki(),
2264
- Xe()
2265
- ) : e.Masonry = t(
2266
- e.Outlayer,
2267
- e.getSize
2268
- );
2269
- })(window, function(t, n) {
2270
- var p = t.create("masonry");
2271
- p.compatOptions.fitWidth = "isFitWidth";
2272
- var s = p.prototype;
2273
- return s._resetLayout = function() {
2274
- this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];
2275
- for (var h = 0; h < this.cols; h++)
2276
- this.colYs.push(0);
2277
- this.maxY = 0, this.horizontalColIndex = 0;
2278
- }, s.measureColumns = function() {
2279
- if (this.getContainerWidth(), !this.columnWidth) {
2280
- var h = this.items[0], d = h && h.element;
2281
- this.columnWidth = d && n(d).outerWidth || // if first elem has no width, default to size of container
2282
- this.containerWidth;
2283
- }
2284
- var l = this.columnWidth += this.gutter, u = this.containerWidth + this.gutter, f = u / l, g = l - u % l, _ = g && g < 1 ? "round" : "floor";
2285
- f = Math[_](f), this.cols = Math.max(f, 1);
2286
- }, s.getContainerWidth = function() {
2287
- var h = this._getOption("fitWidth"), d = h ? this.element.parentNode : this.element, l = n(d);
2288
- this.containerWidth = l && l.innerWidth;
2289
- }, s._getItemLayoutPosition = function(h) {
2290
- h.getSize();
2291
- var d = h.size.outerWidth % this.columnWidth, l = d && d < 1 ? "round" : "ceil", u = Math[l](h.size.outerWidth / this.columnWidth);
2292
- u = Math.min(u, this.cols);
2293
- for (var f = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", g = this[f](u, h), _ = {
2294
- x: this.columnWidth * g.col,
2295
- y: g.y
2296
- }, c = g.y + h.size.outerHeight, b = u + g.col, k = g.col; k < b; k++)
2297
- this.colYs[k] = c;
2298
- return _;
2299
- }, s._getTopColPosition = function(h) {
2300
- var d = this._getTopColGroup(h), l = Math.min.apply(Math, d);
2301
- return {
2302
- col: d.indexOf(l),
2303
- y: l
2304
- };
2305
- }, s._getTopColGroup = function(h) {
2306
- if (h < 2)
2307
- return this.colYs;
2308
- for (var d = [], l = this.cols + 1 - h, u = 0; u < l; u++)
2309
- d[u] = this._getColGroupY(u, h);
2310
- return d;
2311
- }, s._getColGroupY = function(h, d) {
2312
- if (d < 2)
2313
- return this.colYs[h];
2314
- var l = this.colYs.slice(h, h + d);
2315
- return Math.max.apply(Math, l);
2316
- }, s._getHorizontalColPosition = function(h, d) {
2317
- var l = this.horizontalColIndex % this.cols, u = h > 1 && l + h > this.cols;
2318
- l = u ? 0 : l;
2319
- var f = d.size.outerWidth && d.size.outerHeight;
2320
- return this.horizontalColIndex = f ? l + h : this.horizontalColIndex, {
2321
- col: l,
2322
- y: this._getColGroupY(l, h)
2323
- };
2324
- }, s._manageStamp = function(h) {
2325
- var d = n(h), l = this._getElementOffset(h), u = this._getOption("originLeft"), f = u ? l.left : l.right, g = f + d.outerWidth, _ = Math.floor(f / this.columnWidth);
2326
- _ = Math.max(0, _);
2327
- var c = Math.floor(g / this.columnWidth);
2328
- c -= g % this.columnWidth ? 0 : 1, c = Math.min(this.cols - 1, c);
2329
- for (var b = this._getOption("originTop"), k = (b ? l.top : l.bottom) + d.outerHeight, m = _; m <= c; m++)
2330
- this.colYs[m] = Math.max(k, this.colYs[m]);
2331
- }, s._getContainerSize = function() {
2332
- this.maxY = Math.max.apply(Math, this.colYs);
2333
- var h = {
2334
- height: this.maxY
2335
- };
2336
- return this._getOption("fitWidth") && (h.width = this._getContainerFitWidth()), h;
2337
- }, s._getContainerFitWidth = function() {
2338
- for (var h = 0, d = this.cols; --d && this.colYs[d] === 0; )
2339
- h++;
2340
- return (this.cols - h) * this.columnWidth - this.gutter;
2341
- }, s.needsResizeLayout = function() {
2342
- var h = this.containerWidth;
2343
- return this.getContainerWidth(), h != this.containerWidth;
2344
- }, p;
2345
- });
2346
- })(Dt);
2347
- var _i = Dt.exports;
2348
- const pt = /* @__PURE__ */ Lt(_i);
2349
- var At = { exports: {} };
2350
- /*!
2351
- * imagesLoaded v4.1.4
2352
- * JavaScript is all like "You images are done yet or what?"
2353
- * MIT License
2354
- */
2355
- (function(o) {
2356
- (function(e, t) {
2357
- o.exports ? o.exports = t(
2358
- e,
2359
- Je()
2360
- ) : e.imagesLoaded = t(
2361
- e,
2362
- e.EvEmitter
2363
- );
2364
- })(
2365
- typeof window < "u" ? window : wt,
2366
- // -------------------------- factory -------------------------- //
2367
- function(t, n) {
2368
- var p = t.jQuery, s = t.console;
2369
- function h(c, b) {
2370
- for (var k in b)
2371
- c[k] = b[k];
2372
- return c;
2373
- }
2374
- var d = Array.prototype.slice;
2375
- function l(c) {
2376
- if (Array.isArray(c))
2377
- return c;
2378
- var b = typeof c == "object" && typeof c.length == "number";
2379
- return b ? d.call(c) : [c];
2380
- }
2381
- function u(c, b, k) {
2382
- if (!(this instanceof u))
2383
- return new u(c, b, k);
2384
- var m = c;
2385
- if (typeof c == "string" && (m = document.querySelectorAll(c)), !m) {
2386
- s.error("Bad element for imagesLoaded " + (m || c));
2387
- return;
2388
- }
2389
- this.elements = l(m), this.options = h({}, this.options), typeof b == "function" ? k = b : h(this.options, b), k && this.on("always", k), this.getImages(), p && (this.jqDeferred = new p.Deferred()), setTimeout(this.check.bind(this));
2390
- }
2391
- u.prototype = Object.create(n.prototype), u.prototype.options = {}, u.prototype.getImages = function() {
2392
- this.images = [], this.elements.forEach(this.addElementImages, this);
2393
- }, u.prototype.addElementImages = function(c) {
2394
- c.nodeName == "IMG" && this.addImage(c), this.options.background === !0 && this.addElementBackgroundImages(c);
2395
- var b = c.nodeType;
2396
- if (!(!b || !f[b])) {
2397
- for (var k = c.querySelectorAll("img"), m = 0; m < k.length; m++) {
2398
- var i = k[m];
2399
- this.addImage(i);
2400
- }
2401
- if (typeof this.options.background == "string") {
2402
- var a = c.querySelectorAll(this.options.background);
2403
- for (m = 0; m < a.length; m++) {
2404
- var v = a[m];
2405
- this.addElementBackgroundImages(v);
2406
- }
2407
- }
2408
- }
2409
- };
2410
- var f = {
2411
- 1: !0,
2412
- 9: !0,
2413
- 11: !0
2414
- };
2415
- u.prototype.addElementBackgroundImages = function(c) {
2416
- var b = getComputedStyle(c);
2417
- if (b)
2418
- for (var k = /url\((['"])?(.*?)\1\)/gi, m = k.exec(b.backgroundImage); m !== null; ) {
2419
- var i = m && m[2];
2420
- i && this.addBackground(i, c), m = k.exec(b.backgroundImage);
2421
- }
2422
- }, u.prototype.addImage = function(c) {
2423
- var b = new g(c);
2424
- this.images.push(b);
2425
- }, u.prototype.addBackground = function(c, b) {
2426
- var k = new _(c, b);
2427
- this.images.push(k);
2428
- }, u.prototype.check = function() {
2429
- var c = this;
2430
- if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
2431
- this.complete();
2432
- return;
2433
- }
2434
- function b(k, m, i) {
2435
- setTimeout(function() {
2436
- c.progress(k, m, i);
2437
- });
2438
- }
2439
- this.images.forEach(function(k) {
2440
- k.once("progress", b), k.check();
2441
- });
2442
- }, u.prototype.progress = function(c, b, k) {
2443
- this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !c.isLoaded, this.emitEvent("progress", [this, c, b]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, c), this.progressedCount == this.images.length && this.complete(), this.options.debug && s && s.log("progress: " + k, c, b);
2444
- }, u.prototype.complete = function() {
2445
- var c = this.hasAnyBroken ? "fail" : "done";
2446
- if (this.isComplete = !0, this.emitEvent(c, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
2447
- var b = this.hasAnyBroken ? "reject" : "resolve";
2448
- this.jqDeferred[b](this);
2449
- }
2450
- };
2451
- function g(c) {
2452
- this.img = c;
2453
- }
2454
- g.prototype = Object.create(n.prototype), g.prototype.check = function() {
2455
- var c = this.getIsImageComplete();
2456
- if (c) {
2457
- this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
2458
- return;
2459
- }
2460
- this.proxyImage = new Image(), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.proxyImage.src = this.img.src;
2461
- }, g.prototype.getIsImageComplete = function() {
2462
- return this.img.complete && this.img.naturalWidth;
2463
- }, g.prototype.confirm = function(c, b) {
2464
- this.isLoaded = c, this.emitEvent("progress", [this, this.img, b]);
2465
- }, g.prototype.handleEvent = function(c) {
2466
- var b = "on" + c.type;
2467
- this[b] && this[b](c);
2468
- }, g.prototype.onload = function() {
2469
- this.confirm(!0, "onload"), this.unbindEvents();
2470
- }, g.prototype.onerror = function() {
2471
- this.confirm(!1, "onerror"), this.unbindEvents();
2472
- }, g.prototype.unbindEvents = function() {
2473
- this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
2474
- };
2475
- function _(c, b) {
2476
- this.url = c, this.element = b, this.img = new Image();
2477
- }
2478
- return _.prototype = Object.create(g.prototype), _.prototype.check = function() {
2479
- this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
2480
- var c = this.getIsImageComplete();
2481
- c && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
2482
- }, _.prototype.unbindEvents = function() {
2483
- this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
2484
- }, _.prototype.confirm = function(c, b) {
2485
- this.isLoaded = c, this.emitEvent("progress", [this, this.element, b]);
2486
- }, u.makeJQueryPlugin = function(c) {
2487
- c = c || t.jQuery, c && (p = c, p.fn.imagesLoaded = function(b, k) {
2488
- var m = new u(this, b, k);
2489
- return m.jqDeferred.promise(p(this));
2490
- });
2491
- }, u.makeJQueryPlugin(), u;
2492
- }
2493
- );
2494
- })(At);
2495
- var Ei = At.exports;
2496
- const Ti = /* @__PURE__ */ Lt(Ei), ye = {
2497
- "column-width": "columnWidth",
2498
- "transition-duration": "transitionDuration",
2499
- "item-selector": "itemSelector",
2500
- "origin-left": "originLeft",
2501
- "origin-top": "originTop",
2502
- "fit-width": "fitWidth",
2503
- stamp: "stamp",
2504
- gutter: "gutter",
2505
- "percent-position": "percentPosition",
2506
- "horizontal-order": "horizontalOrder",
2507
- stagger: "stagger",
2508
- "destroy-delay": "destroyDelay"
2509
- }, be = "vuemasonry.itemAdded", We = "vuemasonry.itemRemoved", Fe = "vuemasonry.imageLoaded", Ne = "vuemasonry.destroy", Ci = function(o) {
2510
- return (o + "").toLowerCase() === "true";
2511
- }, Ii = function(o) {
2512
- return isNaN(o) ? o : parseInt(o);
2513
- }, $i = function(o) {
2514
- const e = {};
2515
- return Array.prototype.slice.call(o).forEach(function(n) {
2516
- Object.keys(ye).indexOf(n.name) > -1 && (n.name.indexOf("origin") > -1 ? e[ye[n.name]] = Ci(n.value) : n.name === "column-width" || n.name === "gutter" ? e[ye[n.name]] = Ii(n.value) : e[ye[n.name]] = n.value);
2517
- }), e;
2518
- }, Ot = {};
2519
- Ot.install = function(o, e) {
2520
- const t = $t(), n = "VueMasonry", p = o;
2521
- p.directive("masonry", {
2522
- props: ["transitionDuration", " itemSelector", "destroyDelay"],
2523
- mounted: function(s, h) {
2524
- if (!pt)
2525
- throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
2526
- const d = $i(s.attributes), l = new pt(s, d), u = h.value || n, f = d.destroyDelay ? parseInt(d.destroyDelay, 10) : void 0, g = function() {
2527
- l.reloadItems(), l.layout();
2528
- };
2529
- St(() => {
2530
- g();
2531
- });
2532
- const _ = function(b) {
2533
- g();
2534
- }, c = function(b) {
2535
- t.off(`${be}__${u}`, _), t.off(`${We}__${u}`, _), t.off(`${Fe}__${u}`, _), t.off(`${Ne}__${u}`, c);
2536
- const k = f && !Number.isNaN(f) ? f : 0;
2537
- setTimeout(function() {
2538
- l.destroy();
2539
- }, k);
2540
- };
2541
- t.on(`${be}__${u}`, _), t.on(`${We}__${u}`, _), t.on(`${Fe}__${u}`, _), t.on(`${Ne}__${u}`, c);
2542
- },
2543
- unbind: function(s, h) {
2544
- const d = h.value || n;
2545
- t.emit(`${Ne}__${d}`);
2546
- }
2547
- }), p.directive("masonryTile", {
2548
- mounted: function(s, h) {
2549
- const d = h.value || n;
2550
- t.emit(`${be}__${d}`, {
2551
- element: s
2552
- }), new Ti(s, function() {
2553
- t.emit(`${Fe}__${d}`, {
2554
- element: s
2555
- });
2556
- });
2557
- },
2558
- unbind: function(s, h) {
2559
- const d = h.value || n;
2560
- t.emit(`${We}__${d}`, {
2561
- element: s
2562
- });
2563
- }
2564
- });
2565
- {
2566
- const s = function(h) {
2567
- const d = h || n;
2568
- t.emit(`${be}__${d}`);
2569
- };
2570
- o.config.globalProperties.$redrawVueMasonry = s, o.provide("redrawVueMasonry", s);
2571
- }
2572
- };
2573
- function Ke(o, e = {}, t) {
1429
+ }), me = /* @__PURE__ */ Z(Bl, [["__scopeId", "data-v-4e53740f"]]);
1430
+ function Re(o, e = {}, t) {
2574
1431
  for (const n in o) {
2575
- const p = o[n], s = t ? `${t}:${n}` : n;
2576
- typeof p == "object" && p !== null ? Ke(p, e, s) : typeof p == "function" && (e[s] = p);
1432
+ const a = o[n], i = t ? `${t}:${n}` : n;
1433
+ typeof a == "object" && a !== null ? Re(a, e, i) : typeof a == "function" && (e[i] = a);
2577
1434
  }
2578
1435
  return e;
2579
1436
  }
2580
- const Si = { run: (o) => o() }, Vi = () => Si, xt = typeof console.createTask < "u" ? console.createTask : Vi;
2581
- function wi(o, e) {
2582
- const t = e.shift(), n = xt(t);
1437
+ const Ll = { run: (o) => o() }, Rl = () => Ll, st = typeof console.createTask < "u" ? console.createTask : Rl;
1438
+ function Ul(o, e) {
1439
+ const t = e.shift(), n = st(t);
2583
1440
  return o.reduce(
2584
- (p, s) => p.then(() => n.run(() => s(...e))),
1441
+ (a, i) => a.then(() => n.run(() => i(...e))),
2585
1442
  Promise.resolve()
2586
1443
  );
2587
1444
  }
2588
- function Li(o, e) {
2589
- const t = e.shift(), n = xt(t);
2590
- return Promise.all(o.map((p) => n.run(() => p(...e))));
1445
+ function Fl(o, e) {
1446
+ const t = e.shift(), n = st(t);
1447
+ return Promise.all(o.map((a) => n.run(() => a(...e))));
2591
1448
  }
2592
- function Ue(o, e) {
1449
+ function Ie(o, e) {
2593
1450
  for (const t of [...o])
2594
1451
  t(e);
2595
1452
  }
2596
- class Pi {
1453
+ class Ol {
2597
1454
  constructor() {
2598
1455
  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);
2599
1456
  }
@@ -2601,13 +1458,13 @@ class Pi {
2601
1458
  if (!e || typeof t != "function")
2602
1459
  return () => {
2603
1460
  };
2604
- const p = e;
2605
- let s;
1461
+ const a = e;
1462
+ let i;
2606
1463
  for (; this._deprecatedHooks[e]; )
2607
- s = this._deprecatedHooks[e], e = s.to;
2608
- if (s && !n.allowDeprecated) {
2609
- let h = s.message;
2610
- h || (h = `${p} hook has been deprecated` + (s.to ? `, please use ${s.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(h) || (console.warn(h), this._deprecatedMessages.add(h));
1464
+ i = this._deprecatedHooks[e], e = i.to;
1465
+ if (i && !n.allowDeprecated) {
1466
+ let c = i.message;
1467
+ c || (c = `${a} hook has been deprecated` + (i.to ? `, please use ${i.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(c) || (console.warn(c), this._deprecatedMessages.add(c));
2611
1468
  }
2612
1469
  if (!t.name)
2613
1470
  try {
@@ -2622,8 +1479,8 @@ class Pi {
2622
1479
  };
2623
1480
  }
2624
1481
  hookOnce(e, t) {
2625
- let n, p = (...s) => (typeof n == "function" && n(), n = void 0, p = void 0, t(...s));
2626
- return n = this.hook(e, p), n;
1482
+ let n, a = (...i) => (typeof n == "function" && n(), n = void 0, a = void 0, t(...i));
1483
+ return n = this.hook(e, a), n;
2627
1484
  }
2628
1485
  removeHook(e, t) {
2629
1486
  if (this._hooks[e]) {
@@ -2635,8 +1492,8 @@ class Pi {
2635
1492
  this._deprecatedHooks[e] = typeof t == "string" ? { to: t } : t;
2636
1493
  const n = this._hooks[e] || [];
2637
1494
  delete this._hooks[e];
2638
- for (const p of n)
2639
- this.hook(e, p);
1495
+ for (const a of n)
1496
+ this.hook(e, a);
2640
1497
  }
2641
1498
  deprecateHooks(e) {
2642
1499
  Object.assign(this._deprecatedHooks, e);
@@ -2644,16 +1501,16 @@ class Pi {
2644
1501
  this.deprecateHook(t, e[t]);
2645
1502
  }
2646
1503
  addHooks(e) {
2647
- const t = Ke(e), n = Object.keys(t).map(
2648
- (p) => this.hook(p, t[p])
1504
+ const t = Re(e), n = Object.keys(t).map(
1505
+ (a) => this.hook(a, t[a])
2649
1506
  );
2650
1507
  return () => {
2651
- for (const p of n.splice(0, n.length))
2652
- p();
1508
+ for (const a of n.splice(0, n.length))
1509
+ a();
2653
1510
  };
2654
1511
  }
2655
1512
  removeHooks(e) {
2656
- const t = Ke(e);
1513
+ const t = Re(e);
2657
1514
  for (const n in t)
2658
1515
  this.removeHook(n, t[n]);
2659
1516
  }
@@ -2662,21 +1519,21 @@ class Pi {
2662
1519
  delete this._hooks[e];
2663
1520
  }
2664
1521
  callHook(e, ...t) {
2665
- return t.unshift(e), this.callHookWith(wi, e, ...t);
1522
+ return t.unshift(e), this.callHookWith(Ul, e, ...t);
2666
1523
  }
2667
1524
  callHookParallel(e, ...t) {
2668
- return t.unshift(e), this.callHookWith(Li, e, ...t);
1525
+ return t.unshift(e), this.callHookWith(Fl, e, ...t);
2669
1526
  }
2670
1527
  callHookWith(e, t, ...n) {
2671
- const p = this._before || this._after ? { name: t, args: n, context: {} } : void 0;
2672
- this._before && Ue(this._before, p);
2673
- const s = e(
1528
+ const a = this._before || this._after ? { name: t, args: n, context: {} } : void 0;
1529
+ this._before && Ie(this._before, a);
1530
+ const i = e(
2674
1531
  t in this._hooks ? [...this._hooks[t]] : [],
2675
1532
  n
2676
1533
  );
2677
- return s instanceof Promise ? s.finally(() => {
2678
- this._after && p && Ue(this._after, p);
2679
- }) : (this._after && p && Ue(this._after, p), s);
1534
+ return i instanceof Promise ? i.finally(() => {
1535
+ this._after && a && Ie(this._after, a);
1536
+ }) : (this._after && a && Ie(this._after, a), i);
2680
1537
  }
2681
1538
  beforeEach(e) {
2682
1539
  return this._before = this._before || [], this._before.push(e), () => {
@@ -2695,20 +1552,20 @@ class Pi {
2695
1552
  };
2696
1553
  }
2697
1554
  }
2698
- function Di() {
2699
- return new Pi();
1555
+ function Nl() {
1556
+ return new Ol();
2700
1557
  }
2701
- function Ai(o) {
1558
+ function jl(o) {
2702
1559
  return Array.isArray(o) ? o : [o];
2703
1560
  }
2704
- const Oi = ["title", "titleTemplate", "script", "style", "noscript"], ke = [
1561
+ const Gl = ["title", "titleTemplate", "script", "style", "noscript"], he = [
2705
1562
  "base",
2706
1563
  "meta",
2707
1564
  "link",
2708
1565
  "style",
2709
1566
  "script",
2710
1567
  "noscript"
2711
- ], xi = [
1568
+ ], ql = [
2712
1569
  "title",
2713
1570
  "titleTemplate",
2714
1571
  "templateParams",
@@ -2720,249 +1577,249 @@ const Oi = ["title", "titleTemplate", "script", "style", "noscript"], ke = [
2720
1577
  "style",
2721
1578
  "script",
2722
1579
  "noscript"
2723
- ], Hi = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], Ht = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Mi = typeof window < "u";
2724
- function Ze(o) {
1580
+ ], Wl = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], rt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Kl = typeof window < "u";
1581
+ function Fe(o) {
2725
1582
  let e = 9;
2726
1583
  for (let t = 0; t < o.length; )
2727
1584
  e = Math.imul(e ^ o.charCodeAt(t++), 9 ** 9);
2728
1585
  return ((e ^ e >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
2729
1586
  }
2730
- function ht(o) {
2731
- return o._h || Ze(o._d ? o._d : `${o.tag}:${o.textContent || o.innerHTML || ""}:${Object.entries(o.props).map(([e, t]) => `${e}:${String(t)}`).join(",")}`);
1587
+ function Ke(o) {
1588
+ return o._h || Fe(o._d ? o._d : `${o.tag}:${o.textContent || o.innerHTML || ""}:${Object.entries(o.props).map(([e, t]) => `${e}:${String(t)}`).join(",")}`);
2732
1589
  }
2733
- function Mt(o, e) {
1590
+ function ut(o, e) {
2734
1591
  const { props: t, tag: n } = o;
2735
- if (Hi.includes(n))
1592
+ if (Wl.includes(n))
2736
1593
  return n;
2737
1594
  if (n === "link" && t.rel === "canonical")
2738
1595
  return "canonical";
2739
1596
  if (t.charset)
2740
1597
  return "charset";
2741
- const p = ["id"];
2742
- n === "meta" && p.push("name", "property", "http-equiv");
2743
- for (const s of p)
2744
- if (typeof t[s] < "u") {
2745
- const h = String(t[s]);
2746
- return e && !e(h) ? !1 : `${n}:${s}:${h}`;
1598
+ const a = ["id"];
1599
+ n === "meta" && a.push("name", "property", "http-equiv");
1600
+ for (const i of a)
1601
+ if (typeof t[i] < "u") {
1602
+ const c = String(t[i]);
1603
+ return e && !e(c) ? !1 : `${n}:${i}:${c}`;
2747
1604
  }
2748
1605
  return !1;
2749
1606
  }
2750
- function ft(o, e) {
1607
+ function ze(o, e) {
2751
1608
  return o == null ? e || null : typeof o == "function" ? o(e) : o;
2752
1609
  }
2753
- async function Ri(o, e, t) {
1610
+ async function zl(o, e, t) {
2754
1611
  const n = {
2755
1612
  tag: o,
2756
- props: await Rt(
1613
+ props: await dt(
2757
1614
  // explicitly check for an object
2758
1615
  // @ts-expect-error untyped
2759
1616
  typeof e == "object" && typeof e != "function" && !(e instanceof Promise) ? { ...e } : { [["script", "noscript", "style"].includes(o) ? "innerHTML" : "textContent"]: e },
2760
1617
  ["templateParams", "titleTemplate"].includes(o)
2761
1618
  )
2762
1619
  };
2763
- return Ht.forEach((p) => {
2764
- const s = typeof n.props[p] < "u" ? n.props[p] : t[p];
2765
- typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(p) || Oi.includes(n.tag)) && (n[p === "children" ? "innerHTML" : p] = s), delete n.props[p]);
2766
- }), n.props.body && (n.tagPosition = "bodyClose", delete n.props.body), n.tag === "script" && typeof n.innerHTML == "object" && (n.innerHTML = JSON.stringify(n.innerHTML), n.props.type = n.props.type || "application/json"), Array.isArray(n.props.content) ? n.props.content.map((p) => ({ ...n, props: { ...n.props, content: p } })) : n;
1620
+ return rt.forEach((a) => {
1621
+ const i = typeof n.props[a] < "u" ? n.props[a] : t[a];
1622
+ typeof i < "u" && ((!["innerHTML", "textContent", "children"].includes(a) || Gl.includes(n.tag)) && (n[a === "children" ? "innerHTML" : a] = i), delete n.props[a]);
1623
+ }), n.props.body && (n.tagPosition = "bodyClose", delete n.props.body), n.tag === "script" && typeof n.innerHTML == "object" && (n.innerHTML = JSON.stringify(n.innerHTML), n.props.type = n.props.type || "application/json"), Array.isArray(n.props.content) ? n.props.content.map((a) => ({ ...n, props: { ...n.props, content: a } })) : n;
2767
1624
  }
2768
- function Bi(o) {
1625
+ function Jl(o) {
2769
1626
  return typeof o == "object" && !Array.isArray(o) && (o = Object.keys(o).filter((e) => o[e])), (Array.isArray(o) ? o.join(" ") : o).split(" ").filter((e) => e.trim()).filter(Boolean).join(" ");
2770
1627
  }
2771
- async function Rt(o, e) {
1628
+ async function dt(o, e) {
2772
1629
  for (const t of Object.keys(o)) {
2773
1630
  if (t === "class") {
2774
- o[t] = Bi(o[t]);
1631
+ o[t] = Jl(o[t]);
2775
1632
  continue;
2776
1633
  }
2777
- if (o[t] instanceof Promise && (o[t] = await o[t]), !e && !Ht.includes(t)) {
2778
- const n = String(o[t]), p = t.startsWith("data-");
2779
- n === "true" || n === "" ? o[t] = p ? "true" : !0 : o[t] || (p && n === "false" ? o[t] = "false" : delete o[t]);
1634
+ if (o[t] instanceof Promise && (o[t] = await o[t]), !e && !rt.includes(t)) {
1635
+ const n = String(o[t]), a = t.startsWith("data-");
1636
+ n === "true" || n === "" ? o[t] = a ? "true" : !0 : o[t] || (a && n === "false" ? o[t] = "false" : delete o[t]);
2780
1637
  }
2781
1638
  }
2782
1639
  return o;
2783
1640
  }
2784
- const zi = 10;
2785
- async function Wi(o) {
1641
+ const Zl = 10;
1642
+ async function Yl(o) {
2786
1643
  const e = [];
2787
- return Object.entries(o.resolvedInput).filter(([t, n]) => typeof n < "u" && xi.includes(t)).forEach(([t, n]) => {
2788
- const p = Ai(n);
2789
- e.push(...p.map((s) => Ri(t, s, o)).flat());
2790
- }), (await Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e = o._i, o.mode && (t._m = o.mode), t._p = (o._i << zi) + n, t));
1644
+ return Object.entries(o.resolvedInput).filter(([t, n]) => typeof n < "u" && ql.includes(t)).forEach(([t, n]) => {
1645
+ const a = jl(n);
1646
+ e.push(...a.map((i) => zl(t, i, o)).flat());
1647
+ }), (await Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e = o._i, o.mode && (t._m = o.mode), t._p = (o._i << Zl) + n, t));
2791
1648
  }
2792
- const mt = {
1649
+ const Je = {
2793
1650
  // tags
2794
1651
  base: -10,
2795
1652
  title: 10
2796
- }, gt = {
1653
+ }, Ze = {
2797
1654
  // relative scores to their default values
2798
1655
  critical: -80,
2799
1656
  high: -10,
2800
1657
  low: 20
2801
1658
  };
2802
- function Ce(o) {
1659
+ function be(o) {
2803
1660
  let e = 100;
2804
1661
  const t = o.tagPriority;
2805
- return typeof t == "number" ? t : (o.tag === "meta" ? (o.props["http-equiv"] === "content-security-policy" && (e = -30), o.props.charset && (e = -20), o.props.name === "viewport" && (e = -15)) : o.tag === "link" && o.props.rel === "preconnect" ? e = 20 : o.tag in mt && (e = mt[o.tag]), typeof t == "string" && t in gt ? e + gt[t] : e);
1662
+ return typeof t == "number" ? t : (o.tag === "meta" ? (o.props["http-equiv"] === "content-security-policy" && (e = -30), o.props.charset && (e = -20), o.props.name === "viewport" && (e = -15)) : o.tag === "link" && o.props.rel === "preconnect" ? e = 20 : o.tag in Je && (e = Je[o.tag]), typeof t == "string" && t in Ze ? e + Ze[t] : e);
2806
1663
  }
2807
- const Fi = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], Bt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], oe = "%separator";
2808
- function _e(o, e, t) {
1664
+ const Ql = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], ct = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], x = "%separator";
1665
+ function ge(o, e, t) {
2809
1666
  if (typeof o != "string" || !o.includes("%"))
2810
1667
  return o;
2811
- function n(h) {
2812
- let d;
2813
- return ["s", "pageTitle"].includes(h) ? d = e.pageTitle : h.includes(".") ? d = h.split(".").reduce((l, u) => l && l[u] || void 0, e) : d = e[h], typeof d < "u" ? (d || "").replace(/"/g, '\\"') : !1;
1668
+ function n(c) {
1669
+ let p;
1670
+ return ["s", "pageTitle"].includes(c) ? p = e.pageTitle : c.includes(".") ? p = c.split(".").reduce((d, s) => d && d[s] || void 0, e) : p = e[c], typeof p < "u" ? (p || "").replace(/"/g, '\\"') : !1;
2814
1671
  }
2815
- let p = o;
1672
+ let a = o;
2816
1673
  try {
2817
- p = decodeURI(o);
1674
+ a = decodeURI(o);
2818
1675
  } catch {
2819
1676
  }
2820
- return (p.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((h) => {
2821
- const d = n(h.slice(1));
2822
- typeof d == "string" && (o = o.replace(new RegExp(`\\${h}(\\W|$)`, "g"), (l, u) => `${d}${u}`).trim());
2823
- }), o.includes(oe) && (o.endsWith(oe) && (o = o.slice(0, -oe.length).trim()), o.startsWith(oe) && (o = o.slice(oe.length).trim()), o = o.replace(new RegExp(`\\${oe}\\s*\\${oe}`, "g"), oe), o = _e(o, { separator: t }, t)), o;
1677
+ return (a.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((c) => {
1678
+ const p = n(c.slice(1));
1679
+ typeof p == "string" && (o = o.replace(new RegExp(`\\${c}(\\W|$)`, "g"), (d, s) => `${p}${s}`).trim());
1680
+ }), o.includes(x) && (o.endsWith(x) && (o = o.slice(0, -x.length).trim()), o.startsWith(x) && (o = o.slice(x.length).trim()), o = o.replace(new RegExp(`\\${x}\\s*\\${x}`, "g"), x), o = ge(o, { separator: t }, t)), o;
2824
1681
  }
2825
- async function Ni(o) {
1682
+ async function Xl(o) {
2826
1683
  const e = {
2827
1684
  tag: o.tagName.toLowerCase(),
2828
- props: await Rt(
1685
+ props: await dt(
2829
1686
  o.getAttributeNames().reduce((t, n) => ({ ...t, [n]: o.getAttribute(n) }), {})
2830
1687
  ),
2831
1688
  innerHTML: o.innerHTML
2832
1689
  };
2833
- return e._d = Mt(e), e;
1690
+ return e._d = ut(e), e;
2834
1691
  }
2835
- async function Ui(o, e = {}) {
1692
+ async function xl(o, e = {}) {
2836
1693
  const t = e.document || o.resolvedOptions.document;
2837
1694
  if (!t)
2838
1695
  return;
2839
1696
  const n = { shouldRender: o.dirty, tags: [] };
2840
1697
  if (await o.hooks.callHook("dom:beforeRender", n), !n.shouldRender)
2841
1698
  return;
2842
- const p = (await o.resolveTags()).map((f) => ({
2843
- tag: f,
2844
- id: ke.includes(f.tag) ? ht(f) : f.tag,
1699
+ const a = (await o.resolveTags()).map((u) => ({
1700
+ tag: u,
1701
+ id: he.includes(u.tag) ? Ke(u) : u.tag,
2845
1702
  shouldRender: !0
2846
1703
  }));
2847
- let s = o._dom;
2848
- if (!s) {
2849
- s = {
1704
+ let i = o._dom;
1705
+ if (!i) {
1706
+ i = {
2850
1707
  elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
2851
1708
  };
2852
- for (const f of ["body", "head"]) {
2853
- const g = t?.[f]?.children;
2854
- for (const _ of [...g].filter((c) => ke.includes(c.tagName.toLowerCase())))
2855
- s.elMap[_.getAttribute("data-hid") || ht(await Ni(_))] = _;
1709
+ for (const u of ["body", "head"]) {
1710
+ const h = t?.[u]?.children;
1711
+ for (const b of [...h].filter((S) => he.includes(S.tagName.toLowerCase())))
1712
+ i.elMap[b.getAttribute("data-hid") || Ke(await Xl(b))] = b;
2856
1713
  }
2857
1714
  }
2858
- s.pendingSideEffects = { ...s.sideEffects || {} }, s.sideEffects = {};
2859
- function h(f, g, _) {
2860
- const c = `${f}:${g}`;
2861
- s.sideEffects[c] = _, delete s.pendingSideEffects[c];
1715
+ i.pendingSideEffects = { ...i.sideEffects || {} }, i.sideEffects = {};
1716
+ function c(u, h, b) {
1717
+ const S = `${u}:${h}`;
1718
+ i.sideEffects[S] = b, delete i.pendingSideEffects[S];
2862
1719
  }
2863
- function d({ id: f, $el: g, tag: _ }) {
2864
- const c = _.tag.endsWith("Attrs");
2865
- s.elMap[f] = g, c || (["textContent", "innerHTML"].forEach((b) => {
2866
- _[b] && _[b] !== g[b] && (g[b] = _[b]);
2867
- }), h(f, "el", () => {
2868
- s.elMap[f].remove(), delete s.elMap[f];
2869
- })), Object.entries(_.props).forEach(([b, k]) => {
2870
- const m = `attr:${b}`;
2871
- if (b === "class")
2872
- for (const i of (k || "").split(" ").filter(Boolean))
2873
- c && h(f, `${m}:${i}`, () => g.classList.remove(i)), !g.classList.contains(i) && g.classList.add(i);
1720
+ function p({ id: u, $el: h, tag: b }) {
1721
+ const S = b.tag.endsWith("Attrs");
1722
+ i.elMap[u] = h, S || (["textContent", "innerHTML"].forEach((H) => {
1723
+ b[H] && b[H] !== h[H] && (h[H] = b[H]);
1724
+ }), c(u, "el", () => {
1725
+ i.elMap[u].remove(), delete i.elMap[u];
1726
+ })), Object.entries(b.props).forEach(([H, L]) => {
1727
+ const G = `attr:${H}`;
1728
+ if (H === "class")
1729
+ for (const _ of (L || "").split(" ").filter(Boolean))
1730
+ S && c(u, `${G}:${_}`, () => h.classList.remove(_)), !h.classList.contains(_) && h.classList.add(_);
2874
1731
  else
2875
- g.getAttribute(b) !== k && g.setAttribute(b, k === !0 ? "" : String(k)), c && h(f, m, () => g.removeAttribute(b));
1732
+ h.getAttribute(H) !== L && h.setAttribute(H, L === !0 ? "" : String(L)), S && c(u, G, () => h.removeAttribute(H));
2876
1733
  });
2877
1734
  }
2878
- const l = [], u = {
1735
+ const d = [], s = {
2879
1736
  bodyClose: void 0,
2880
1737
  bodyOpen: void 0,
2881
1738
  head: void 0
2882
1739
  };
2883
- for (const f of p) {
2884
- const { tag: g, shouldRender: _, id: c } = f;
2885
- if (_) {
2886
- if (g.tag === "title") {
2887
- t.title = g.textContent;
1740
+ for (const u of a) {
1741
+ const { tag: h, shouldRender: b, id: S } = u;
1742
+ if (b) {
1743
+ if (h.tag === "title") {
1744
+ t.title = h.textContent;
2888
1745
  continue;
2889
1746
  }
2890
- f.$el = f.$el || s.elMap[c], f.$el ? d(f) : ke.includes(g.tag) && l.push(f);
1747
+ u.$el = u.$el || i.elMap[S], u.$el ? p(u) : he.includes(h.tag) && d.push(u);
2891
1748
  }
2892
1749
  }
2893
- for (const f of l) {
2894
- const g = f.tag.tagPosition || "head";
2895
- f.$el = t.createElement(f.tag.tag), d(f), u[g] = u[g] || t.createDocumentFragment(), u[g].appendChild(f.$el);
1750
+ for (const u of d) {
1751
+ const h = u.tag.tagPosition || "head";
1752
+ u.$el = t.createElement(u.tag.tag), p(u), s[h] = s[h] || t.createDocumentFragment(), s[h].appendChild(u.$el);
2896
1753
  }
2897
- for (const f of p)
2898
- await o.hooks.callHook("dom:renderTag", f, t, h);
2899
- u.head && t.head.appendChild(u.head), u.bodyOpen && t.body.insertBefore(u.bodyOpen, t.body.firstChild), u.bodyClose && t.body.appendChild(u.bodyClose), Object.values(s.pendingSideEffects).forEach((f) => f()), o._dom = s, o.dirty = !1, await o.hooks.callHook("dom:rendered", { renders: p });
1754
+ for (const u of a)
1755
+ await o.hooks.callHook("dom:renderTag", u, t, c);
1756
+ s.head && t.head.appendChild(s.head), s.bodyOpen && t.body.insertBefore(s.bodyOpen, t.body.firstChild), s.bodyClose && t.body.appendChild(s.bodyClose), Object.values(i.pendingSideEffects).forEach((u) => u()), o._dom = i, o.dirty = !1, await o.hooks.callHook("dom:rendered", { renders: a });
2900
1757
  }
2901
- async function qi(o, e = {}) {
1758
+ async function en(o, e = {}) {
2902
1759
  const t = e.delayFn || ((n) => setTimeout(n, 10));
2903
1760
  return o._domUpdatePromise = o._domUpdatePromise || new Promise((n) => t(async () => {
2904
- await Ui(o, e), delete o._domUpdatePromise, n();
1761
+ await xl(o, e), delete o._domUpdatePromise, n();
2905
1762
  }));
2906
1763
  }
2907
1764
  // @__NO_SIDE_EFFECTS__
2908
- function Gi(o) {
1765
+ function tn(o) {
2909
1766
  return (e) => {
2910
1767
  const t = e.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
2911
1768
  return t && e.push(JSON.parse(t)), {
2912
1769
  mode: "client",
2913
1770
  hooks: {
2914
1771
  "entries:updated": function(n) {
2915
- qi(n, o);
1772
+ en(n, o);
2916
1773
  }
2917
1774
  }
2918
1775
  };
2919
1776
  };
2920
1777
  }
2921
- const ji = ["templateParams", "htmlAttrs", "bodyAttrs"], Yi = {
1778
+ const on = ["templateParams", "htmlAttrs", "bodyAttrs"], ln = {
2922
1779
  hooks: {
2923
1780
  "tag:normalise": function({ tag: o }) {
2924
1781
  ["hid", "vmid", "key"].forEach((n) => {
2925
1782
  o.props[n] && (o.key = o.props[n], delete o.props[n]);
2926
1783
  });
2927
- const t = Mt(o) || (o.key ? `${o.tag}:${o.key}` : !1);
1784
+ const t = ut(o) || (o.key ? `${o.tag}:${o.key}` : !1);
2928
1785
  t && (o._d = t);
2929
1786
  },
2930
1787
  "tags:resolve": function(o) {
2931
1788
  const e = {};
2932
1789
  o.tags.forEach((n) => {
2933
- const p = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p, s = e[p];
2934
- if (s) {
2935
- let d = n?.tagDuplicateStrategy;
2936
- if (!d && ji.includes(n.tag) && (d = "merge"), d === "merge") {
2937
- const l = s.props;
2938
- ["class", "style"].forEach((u) => {
2939
- l[u] && (n.props[u] ? (u === "style" && !l[u].endsWith(";") && (l[u] += ";"), n.props[u] = `${l[u]} ${n.props[u]}`) : n.props[u] = l[u]);
2940
- }), e[p].props = {
2941
- ...l,
1790
+ const a = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p, i = e[a];
1791
+ if (i) {
1792
+ let p = n?.tagDuplicateStrategy;
1793
+ if (!p && on.includes(n.tag) && (p = "merge"), p === "merge") {
1794
+ const d = i.props;
1795
+ ["class", "style"].forEach((s) => {
1796
+ d[s] && (n.props[s] ? (s === "style" && !d[s].endsWith(";") && (d[s] += ";"), n.props[s] = `${d[s]} ${n.props[s]}`) : n.props[s] = d[s]);
1797
+ }), e[a].props = {
1798
+ ...d,
2942
1799
  ...n.props
2943
1800
  };
2944
1801
  return;
2945
- } else if (n._e === s._e) {
2946
- s._duped = s._duped || [], n._d = `${s._d}:${s._duped.length + 1}`, s._duped.push(n);
1802
+ } else if (n._e === i._e) {
1803
+ i._duped = i._duped || [], n._d = `${i._d}:${i._duped.length + 1}`, i._duped.push(n);
2947
1804
  return;
2948
- } else if (Ce(n) > Ce(s))
1805
+ } else if (be(n) > be(i))
2949
1806
  return;
2950
1807
  }
2951
- const h = Object.keys(n.props).length + (n.innerHTML ? 1 : 0) + (n.textContent ? 1 : 0);
2952
- if (ke.includes(n.tag) && h === 0) {
2953
- delete e[p];
1808
+ const c = Object.keys(n.props).length + (n.innerHTML ? 1 : 0) + (n.textContent ? 1 : 0);
1809
+ if (he.includes(n.tag) && c === 0) {
1810
+ delete e[a];
2954
1811
  return;
2955
1812
  }
2956
- e[p] = n;
1813
+ e[a] = n;
2957
1814
  });
2958
1815
  const t = [];
2959
1816
  Object.values(e).forEach((n) => {
2960
- const p = n._duped;
2961
- delete n._duped, t.push(n), p && t.push(...p);
1817
+ const a = n._duped;
1818
+ delete n._duped, t.push(n), a && t.push(...a);
2962
1819
  }), o.tags = t, o.tags = o.tags.filter((n) => !(n.tag === "meta" && (n.props.name || n.props.property) && !n.props.content));
2963
1820
  }
2964
1821
  }
2965
- }, Ki = {
1822
+ }, nn = {
2966
1823
  mode: "server",
2967
1824
  hooks: {
2968
1825
  "tags:resolve": function(o) {
@@ -2976,106 +1833,106 @@ const ji = ["templateParams", "htmlAttrs", "bodyAttrs"], Yi = {
2976
1833
  });
2977
1834
  }
2978
1835
  }
2979
- }, Qi = ["script", "link", "bodyAttrs"];
2980
- function Ji(o) {
1836
+ }, an = ["script", "link", "bodyAttrs"];
1837
+ function sn(o) {
2981
1838
  const e = {}, t = {};
2982
- return Object.entries(o.props).forEach(([n, p]) => {
2983
- n.startsWith("on") && typeof p == "function" ? (Bt.includes(n) && (e[n] = `this.dataset.${n} = true`), t[n] = p) : e[n] = p;
1839
+ return Object.entries(o.props).forEach(([n, a]) => {
1840
+ n.startsWith("on") && typeof a == "function" ? (ct.includes(n) && (e[n] = `this.dataset.${n} = true`), t[n] = a) : e[n] = a;
2984
1841
  }), { props: e, eventHandlers: t };
2985
1842
  }
2986
- const Xi = (o) => ({
1843
+ const rn = (o) => ({
2987
1844
  hooks: {
2988
1845
  "tags:resolve": function(e) {
2989
1846
  for (const t of e.tags)
2990
- if (Qi.includes(t.tag)) {
2991
- const { props: n, eventHandlers: p } = Ji(t);
2992
- t.props = n, Object.keys(p).length && ((t.props.src || t.props.href) && (t.key = t.key || Ze(t.props.src || t.props.href)), t._eventHandlers = p);
1847
+ if (an.includes(t.tag)) {
1848
+ const { props: n, eventHandlers: a } = sn(t);
1849
+ t.props = n, Object.keys(a).length && ((t.props.src || t.props.href) && (t.key = t.key || Fe(t.props.src || t.props.href)), t._eventHandlers = a);
2993
1850
  }
2994
1851
  },
2995
1852
  "dom:renderTag": function(e, t, n) {
2996
1853
  if (!e.tag._eventHandlers)
2997
1854
  return;
2998
- const p = e.tag.tag === "bodyAttrs" ? t.defaultView : e.$el;
2999
- Object.entries(e.tag._eventHandlers).forEach(([s, h]) => {
3000
- const d = `${e.tag._d || e.tag._p}:${s}`, l = s.slice(2).toLowerCase(), u = `data-h-${l}`;
3001
- if (n(e.id, d, () => {
3002
- }), e.$el.hasAttribute(u))
1855
+ const a = e.tag.tag === "bodyAttrs" ? t.defaultView : e.$el;
1856
+ Object.entries(e.tag._eventHandlers).forEach(([i, c]) => {
1857
+ const p = `${e.tag._d || e.tag._p}:${i}`, d = i.slice(2).toLowerCase(), s = `data-h-${d}`;
1858
+ if (n(e.id, p, () => {
1859
+ }), e.$el.hasAttribute(s))
3003
1860
  return;
3004
- e.$el.setAttribute(u, "");
3005
- let f;
3006
- const g = (_) => {
3007
- h(_), f?.disconnect();
1861
+ e.$el.setAttribute(s, "");
1862
+ let u;
1863
+ const h = (b) => {
1864
+ c(b), u?.disconnect();
3008
1865
  };
3009
- s in e.$el.dataset ? g(new Event(s.replace("on", ""))) : Bt.includes(s) && typeof MutationObserver < "u" ? (f = new MutationObserver((_) => {
3010
- _.some((b) => b.attributeName === `data-${s}`) && (g(new Event(s.replace("on", ""))), f?.disconnect());
3011
- }), f.observe(e.$el, {
1866
+ i in e.$el.dataset ? h(new Event(i.replace("on", ""))) : ct.includes(i) && typeof MutationObserver < "u" ? (u = new MutationObserver((b) => {
1867
+ b.some((H) => H.attributeName === `data-${i}`) && (h(new Event(i.replace("on", ""))), u?.disconnect());
1868
+ }), u.observe(e.$el, {
3012
1869
  attributes: !0
3013
- })) : p.addEventListener(l, g), n(e.id, d, () => {
3014
- f?.disconnect(), p.removeEventListener(l, g), e.$el.removeAttribute(u);
1870
+ })) : a.addEventListener(d, h), n(e.id, p, () => {
1871
+ u?.disconnect(), a.removeEventListener(d, h), e.$el.removeAttribute(s);
3015
1872
  });
3016
1873
  });
3017
1874
  }
3018
1875
  }
3019
- }), Zi = ["link", "style", "script", "noscript"], er = {
1876
+ }), un = ["link", "style", "script", "noscript"], dn = {
3020
1877
  hooks: {
3021
1878
  "tag:normalise": ({ tag: o }) => {
3022
- o.key && Zi.includes(o.tag) && (o.props["data-hid"] = o._h = Ze(o.key));
1879
+ o.key && un.includes(o.tag) && (o.props["data-hid"] = o._h = Fe(o.key));
3023
1880
  }
3024
1881
  }
3025
- }, tr = {
1882
+ }, cn = {
3026
1883
  hooks: {
3027
1884
  "tags:resolve": (o) => {
3028
1885
  const e = (t) => o.tags.find((n) => n._d === t)?._p;
3029
- for (const { prefix: t, offset: n } of Fi)
3030
- for (const p of o.tags.filter((s) => typeof s.tagPriority == "string" && s.tagPriority.startsWith(t))) {
3031
- const s = e(
3032
- p.tagPriority.replace(t, "")
1886
+ for (const { prefix: t, offset: n } of Ql)
1887
+ for (const a of o.tags.filter((i) => typeof i.tagPriority == "string" && i.tagPriority.startsWith(t))) {
1888
+ const i = e(
1889
+ a.tagPriority.replace(t, "")
3033
1890
  );
3034
- typeof s < "u" && (p._p = s + n);
1891
+ typeof i < "u" && (a._p = i + n);
3035
1892
  }
3036
- o.tags.sort((t, n) => t._p - n._p).sort((t, n) => Ce(t) - Ce(n));
1893
+ o.tags.sort((t, n) => t._p - n._p).sort((t, n) => be(t) - be(n));
3037
1894
  }
3038
1895
  }
3039
- }, or = {
1896
+ }, pn = {
3040
1897
  meta: "content",
3041
1898
  link: "href",
3042
1899
  htmlAttrs: "lang"
3043
- }, nr = (o) => ({
1900
+ }, fn = (o) => ({
3044
1901
  hooks: {
3045
1902
  "tags:resolve": (e) => {
3046
- const { tags: t } = e, n = t.find((d) => d.tag === "title")?.textContent, p = t.findIndex((d) => d.tag === "templateParams"), s = p !== -1 ? t[p].props : {}, h = s.separator || "|";
3047
- delete s.separator, s.pageTitle = _e(s.pageTitle || n || "", s, h);
3048
- for (const d of t.filter((l) => l.processTemplateParams !== !1)) {
3049
- const l = or[d.tag];
3050
- l && typeof d.props[l] == "string" ? d.props[l] = _e(d.props[l], s, h) : (d.processTemplateParams === !0 || ["titleTemplate", "title"].includes(d.tag)) && ["innerHTML", "textContent"].forEach((u) => {
3051
- typeof d[u] == "string" && (d[u] = _e(d[u], s, h));
1903
+ const { tags: t } = e, n = t.find((p) => p.tag === "title")?.textContent, a = t.findIndex((p) => p.tag === "templateParams"), i = a !== -1 ? t[a].props : {}, c = i.separator || "|";
1904
+ delete i.separator, i.pageTitle = ge(i.pageTitle || n || "", i, c);
1905
+ for (const p of t.filter((d) => d.processTemplateParams !== !1)) {
1906
+ const d = pn[p.tag];
1907
+ d && typeof p.props[d] == "string" ? p.props[d] = ge(p.props[d], i, c) : (p.processTemplateParams === !0 || ["titleTemplate", "title"].includes(p.tag)) && ["innerHTML", "textContent"].forEach((s) => {
1908
+ typeof p[s] == "string" && (p[s] = ge(p[s], i, c));
3052
1909
  });
3053
1910
  }
3054
- o._templateParams = s, o._separator = h, e.tags = t.filter((d) => d.tag !== "templateParams");
1911
+ o._templateParams = i, o._separator = c, e.tags = t.filter((p) => p.tag !== "templateParams");
3055
1912
  }
3056
1913
  }
3057
- }), ir = {
1914
+ }), mn = {
3058
1915
  hooks: {
3059
1916
  "tags:resolve": (o) => {
3060
1917
  const { tags: e } = o;
3061
- let t = e.findIndex((p) => p.tag === "titleTemplate");
3062
- const n = e.findIndex((p) => p.tag === "title");
1918
+ let t = e.findIndex((a) => a.tag === "titleTemplate");
1919
+ const n = e.findIndex((a) => a.tag === "title");
3063
1920
  if (n !== -1 && t !== -1) {
3064
- const p = ft(
1921
+ const a = ze(
3065
1922
  e[t].textContent,
3066
1923
  e[n].textContent
3067
1924
  );
3068
- p !== null ? e[n].textContent = p || e[n].textContent : delete e[n];
1925
+ a !== null ? e[n].textContent = a || e[n].textContent : delete e[n];
3069
1926
  } else if (t !== -1) {
3070
- const p = ft(
1927
+ const a = ze(
3071
1928
  e[t].textContent
3072
1929
  );
3073
- p !== null && (e[t].textContent = p, e[t].tag = "title", t = -1);
1930
+ a !== null && (e[t].textContent = a, e[t].tag = "title", t = -1);
3074
1931
  }
3075
1932
  t !== -1 && delete e[t], o.tags = e.filter(Boolean);
3076
1933
  }
3077
1934
  }
3078
- }, rr = {
1935
+ }, hn = {
3079
1936
  hooks: {
3080
1937
  "tags:afterResolve": function(o) {
3081
1938
  for (const e of o.tags)
@@ -3084,110 +1941,110 @@ const Xi = (o) => ({
3084
1941
  }
3085
1942
  };
3086
1943
  // @__NO_SIDE_EFFECTS__
3087
- function sr(o = {}) {
3088
- const e = ar(o);
3089
- return e.use(/* @__PURE__ */ Gi()), e;
1944
+ function gn(o = {}) {
1945
+ const e = vn(o);
1946
+ return e.use(/* @__PURE__ */ tn()), e;
3090
1947
  }
3091
- function vt(o, e) {
1948
+ function Ye(o, e) {
3092
1949
  return !o || o === "server" && e || o === "client" && !e;
3093
1950
  }
3094
- function ar(o = {}) {
3095
- const e = Di();
3096
- e.addHooks(o.hooks || {}), o.document = o.document || (Mi ? document : void 0);
1951
+ function vn(o = {}) {
1952
+ const e = Nl();
1953
+ e.addHooks(o.hooks || {}), o.document = o.document || (Kl ? document : void 0);
3097
1954
  const t = !o.document, n = () => {
3098
- d.dirty = !0, e.callHook("entries:updated", d);
1955
+ p.dirty = !0, e.callHook("entries:updated", p);
3099
1956
  };
3100
- let p = 0, s = [];
3101
- const h = [], d = {
3102
- plugins: h,
1957
+ let a = 0, i = [];
1958
+ const c = [], p = {
1959
+ plugins: c,
3103
1960
  dirty: !1,
3104
1961
  resolvedOptions: o,
3105
1962
  hooks: e,
3106
1963
  headEntries() {
3107
- return s;
1964
+ return i;
3108
1965
  },
3109
- use(l) {
3110
- const u = typeof l == "function" ? l(d) : l;
3111
- (!u.key || !h.some((f) => f.key === u.key)) && (h.push(u), vt(u.mode, t) && e.addHooks(u.hooks || {}));
1966
+ use(d) {
1967
+ const s = typeof d == "function" ? d(p) : d;
1968
+ (!s.key || !c.some((u) => u.key === s.key)) && (c.push(s), Ye(s.mode, t) && e.addHooks(s.hooks || {}));
3112
1969
  },
3113
- push(l, u) {
3114
- delete u?.head;
3115
- const f = {
3116
- _i: p++,
3117
- input: l,
3118
- ...u
1970
+ push(d, s) {
1971
+ delete s?.head;
1972
+ const u = {
1973
+ _i: a++,
1974
+ input: d,
1975
+ ...s
3119
1976
  };
3120
- return vt(f.mode, t) && (s.push(f), n()), {
1977
+ return Ye(u.mode, t) && (i.push(u), n()), {
3121
1978
  dispose() {
3122
- s = s.filter((g) => g._i !== f._i), e.callHook("entries:updated", d), n();
1979
+ i = i.filter((h) => h._i !== u._i), e.callHook("entries:updated", p), n();
3123
1980
  },
3124
1981
  // a patch is the same as creating a new entry, just a nice DX
3125
- patch(g) {
3126
- s = s.map((_) => (_._i === f._i && (_.input = f.input = g), _)), n();
1982
+ patch(h) {
1983
+ i = i.map((b) => (b._i === u._i && (b.input = u.input = h), b)), n();
3127
1984
  }
3128
1985
  };
3129
1986
  },
3130
1987
  async resolveTags() {
3131
- const l = { tags: [], entries: [...s] };
3132
- await e.callHook("entries:resolve", l);
3133
- for (const u of l.entries) {
3134
- const f = u.resolvedInput || u.input;
3135
- if (u.resolvedInput = await (u.transform ? u.transform(f) : f), u.resolvedInput)
3136
- for (const g of await Wi(u)) {
3137
- const _ = { tag: g, entry: u, resolvedOptions: d.resolvedOptions };
3138
- await e.callHook("tag:normalise", _), l.tags.push(_.tag);
1988
+ const d = { tags: [], entries: [...i] };
1989
+ await e.callHook("entries:resolve", d);
1990
+ for (const s of d.entries) {
1991
+ const u = s.resolvedInput || s.input;
1992
+ if (s.resolvedInput = await (s.transform ? s.transform(u) : u), s.resolvedInput)
1993
+ for (const h of await Yl(s)) {
1994
+ const b = { tag: h, entry: s, resolvedOptions: p.resolvedOptions };
1995
+ await e.callHook("tag:normalise", b), d.tags.push(b.tag);
3139
1996
  }
3140
1997
  }
3141
- return await e.callHook("tags:beforeResolve", l), await e.callHook("tags:resolve", l), await e.callHook("tags:afterResolve", l), l.tags;
1998
+ return await e.callHook("tags:beforeResolve", d), await e.callHook("tags:resolve", d), await e.callHook("tags:afterResolve", d), d.tags;
3142
1999
  },
3143
2000
  ssr: t
3144
2001
  };
3145
2002
  return [
3146
- Yi,
3147
- Ki,
3148
- Xi,
3149
- er,
3150
- tr,
3151
- nr,
3152
- ir,
3153
- rr,
2003
+ ln,
2004
+ nn,
2005
+ rn,
2006
+ dn,
2007
+ cn,
2008
+ fn,
2009
+ mn,
2010
+ hn,
3154
2011
  ...o?.plugins || []
3155
- ].forEach((l) => d.use(l)), d.hooks.callHook("init", d), d;
2012
+ ].forEach((d) => p.use(d)), p.hooks.callHook("init", p), p;
3156
2013
  }
3157
- const lr = Eo.startsWith("3");
3158
- function ur(o) {
3159
- return typeof o == "function" ? o() : r(o);
2014
+ const yn = Jt.startsWith("3");
2015
+ function bn(o) {
2016
+ return typeof o == "function" ? o() : l(o);
3160
2017
  }
3161
- function Qe(o, e = "") {
2018
+ function Ue(o, e = "") {
3162
2019
  if (o instanceof Promise)
3163
2020
  return o;
3164
- const t = ur(o);
3165
- return !o || !t ? t : Array.isArray(t) ? t.map((n) => Qe(n, e)) : typeof t == "object" ? Object.fromEntries(
3166
- Object.entries(t).map(([n, p]) => n === "titleTemplate" || n.startsWith("on") ? [n, r(p)] : [n, Qe(p, n)])
2021
+ const t = bn(o);
2022
+ return !o || !t ? t : Array.isArray(t) ? t.map((n) => Ue(n, e)) : typeof t == "object" ? Object.fromEntries(
2023
+ Object.entries(t).map(([n, a]) => n === "titleTemplate" || n.startsWith("on") ? [n, l(a)] : [n, Ue(a, n)])
3167
2024
  ) : t;
3168
2025
  }
3169
- const dr = {
2026
+ const kn = {
3170
2027
  hooks: {
3171
2028
  "entries:resolve": function(o) {
3172
2029
  for (const e of o.entries)
3173
- e.resolvedInput = Qe(e.input);
2030
+ e.resolvedInput = Ue(e.input);
3174
2031
  }
3175
2032
  }
3176
- }, cr = "usehead";
3177
- function pr(o) {
2033
+ }, _n = "usehead";
2034
+ function Vn(o) {
3178
2035
  return {
3179
2036
  install(t) {
3180
- lr && (t.config.globalProperties.$unhead = o, t.config.globalProperties.$head = o, t.provide(cr, o));
2037
+ yn && (t.config.globalProperties.$unhead = o, t.config.globalProperties.$head = o, t.provide(_n, o));
3181
2038
  }
3182
2039
  }.install;
3183
2040
  }
3184
- function hr(o = {}) {
3185
- o.domDelayFn = o.domDelayFn || ((t) => St(() => setTimeout(() => t(), 0)));
3186
- const e = /* @__PURE__ */ sr(o);
3187
- return e.use(dr), e.install = pr(e), e;
2041
+ function Tn(o = {}) {
2042
+ o.domDelayFn = o.domDelayFn || ((t) => zt(() => setTimeout(() => t(), 0)));
2043
+ const e = /* @__PURE__ */ gn(o);
2044
+ return e.use(kn), e.install = Vn(e), e;
3188
2045
  }
3189
- const fr = To(), mr = hr(), gr = $t();
3190
- class vr extends HTMLElement {
2046
+ const $n = Zt(), wn = Tn(), Cn = xt();
2047
+ class Hn extends HTMLElement {
3191
2048
  vueApp;
3192
2049
  constructor() {
3193
2050
  super();
@@ -3196,25 +2053,25 @@ class vr extends HTMLElement {
3196
2053
  this.vueApp.unmount();
3197
2054
  }
3198
2055
  connectedCallback() {
3199
- const e = typeof ve == "function" ? ve.options : ve;
2056
+ const e = typeof me == "function" ? me.options : me;
3200
2057
  let t = Array.isArray(e.props) ? e.props : Object.keys(e.props || {});
3201
- const n = (l) => l.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (u, f) => (f ? "-" : "") + u.toLowerCase()), p = (l) => l.replace(/-./g, (u) => u[1].toUpperCase()), s = {};
2058
+ const n = (d) => d.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (s, u) => (u ? "-" : "") + s.toLowerCase()), a = (d) => d.replace(/-./g, (s) => s[1].toUpperCase()), i = {};
3202
2059
  t = t.map(n);
3203
- const h = {};
3204
- for (const l of this.attributes) {
3205
- const f = l.name.split(".");
3206
- f.length > 1 && (h[f[0]] || (h[f[0]] = {}), h[f[0]][p(f[1])] = l.value);
2060
+ const c = {};
2061
+ for (const d of this.attributes) {
2062
+ const u = d.name.split(".");
2063
+ u.length > 1 && (c[u[0]] || (c[u[0]] = {}), c[u[0]][a(u[1])] = d.value);
3207
2064
  }
3208
- for (const l of t) {
3209
- let u = this.attributes.getNamedItem(l)?.value;
3210
- h.hasOwnProperty(l) && (u = h[l]), s[l] = u;
2065
+ for (const d of t) {
2066
+ let s = this.attributes.getNamedItem(d)?.value;
2067
+ c.hasOwnProperty(d) && (s = c[d]), i[d] = s;
3211
2068
  }
3212
- this.vueApp = Co(ve, s), this.vueApp.provide("emitter", gr), this.vueApp.use(mr), this.vueApp.use(fr), this.vueApp.use(Ot), this.vueApp.use(Io), this.vueApp.use(Do), this.vueApp.use($o, { bootstrap: !0 });
3213
- const d = document.createElement("div");
3214
- this.vueApp.mount(d), this.appendChild(d.children[0]);
2069
+ this.vueApp = Yt(me, i), this.vueApp.provide("emitter", Cn), this.vueApp.use(wn), this.vueApp.use($n), this.vueApp.use(ao), this.vueApp.use(Qt), this.vueApp.use(io), this.vueApp.use(Xt, { bootstrap: !0 });
2070
+ const p = document.createElement("div");
2071
+ this.vueApp.mount(p), this.appendChild(p.children[0]);
3215
2072
  }
3216
2073
  }
3217
- window.customElements.define("konnectio-hotel", vr);
2074
+ window.customElements.define("konnectio-hotel", Hn);
3218
2075
  export {
3219
- vr as default
2076
+ Hn as default
3220
2077
  };