@konnectio/core 4.0.56-rc15 → 4.0.56-rc17

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