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