@konnectio/core 4.0.56-rc7 → 4.0.56-rc8
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-i2xWkFyi.js → ActionField-na8McB-H.js} +1 -1
- package/dist/ActionField-na8McB-H.js.br +0 -0
- package/dist/{AvailabilitySkeleton-PWA_yfC-.js → AvailabilitySkeleton-1_yLVsq6.js} +4 -4
- package/dist/AvailabilitySkeleton-1_yLVsq6.js.br +0 -0
- package/dist/{CheckoutWindow-k3-Mh7Mp.js → CheckoutWindow-r6ch1iOr.js} +1 -1
- package/dist/CheckoutWindow-r6ch1iOr.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-Lzoa_ZgT.js → DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js} +1 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js.br +0 -0
- package/dist/{Field-f9KUVLIW.js → Field-S_yxW5IQ.js} +2 -2
- package/dist/Field-S_yxW5IQ.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-1RNEqBhG.js → SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js} +8 -8
- package/dist/SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js.br +0 -0
- package/dist/{ThankYou-cAeMnWCk.js → ThankYou-ekf_1AWY.js} +4 -4
- package/dist/ThankYou-ekf_1AWY.js.br +0 -0
- package/dist/{_-SqGSx3KP.js → _-vErl-x3v.js} +1 -1
- package/dist/availability.js +101 -101
- package/dist/availability.js.br +0 -0
- package/dist/{event-WJGagPbM.js → event-iDLUEMAV.js} +7 -7
- package/dist/event-iDLUEMAV.js.br +0 -0
- package/dist/event.js +7 -7
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +2 -2
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +217 -207
- package/dist/gift-card.js.br +0 -0
- package/dist/{hotel-z4fa3tEa.js → hotel-4O89o7V2.js} +888 -878
- package/dist/hotel-4O89o7V2.js.br +0 -0
- package/dist/hotel.js +9 -9
- package/dist/polyfill.js +93 -93
- package/dist/polyfill.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-i2xWkFyi.js.br +0 -0
- package/dist/AvailabilitySkeleton-PWA_yfC-.js.br +0 -0
- package/dist/CheckoutWindow-k3-Mh7Mp.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-Lzoa_ZgT.js.br +0 -0
- package/dist/Field-f9KUVLIW.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-1RNEqBhG.js.br +0 -0
- package/dist/ThankYou-cAeMnWCk.js.br +0 -0
- 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/event-WJGagPbM.js.br +0 -0
- package/dist/hotel-z4fa3tEa.js.br +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { k as
|
|
2
|
-
import { R as So, B as
|
|
3
|
-
import { A as Ho, H as Oo } from "./AvailabilitySkeleton-
|
|
4
|
-
import { _ as
|
|
5
|
-
import { C as Fe, P as
|
|
6
|
-
import { E as Y } from "./_-
|
|
7
|
-
import { c as Tt, g as
|
|
8
|
-
const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */
|
|
1
|
+
import { k as G, B as ne, aE as co, s as K, c as he, W as gt, X as ie, o as E, m as R, a0 as po, z as a, w, ac as Le, x as y, F as V, K as te, a2 as Xe, aF as ho, l as I, a6 as z, $ as B, n as x, a8 as We, aG as ue, p as C, H as Q, J as oe, f as U, y as Ee, P as vt, Q as yt, _ as J, r as ce, aH as bt, Z as qe, Y as be, A as kt, C as le, aI as fo, a5 as mo, q as ke, I as _t, v as Ze, T as ee, aJ as go, N as vo, D as yo, a9 as bo, L as et, G as F, M as ko, ay as Et, aA as _o, aK as Eo, R as To, U as Co, V as Io, ab as $o } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
|
|
2
|
+
import { R as So, B as je, a as Vo, S as Lo, M as Po, T as xo, V as wo } from "./ThankYou-ekf_1AWY.js";
|
|
3
|
+
import { A as Ho, H as Oo } from "./AvailabilitySkeleton-1_yLVsq6.js";
|
|
4
|
+
import { _ as Ao } from "./DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js";
|
|
5
|
+
import { C as Fe, P as Do, a as Mo } from "./CheckoutWindow-r6ch1iOr.js";
|
|
6
|
+
import { E as Y } from "./_-vErl-x3v.js";
|
|
7
|
+
import { c as Tt, g as Ct } from "./_commonjsHelpers-2ufMB8rV.js";
|
|
8
|
+
const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */ G({
|
|
9
9
|
__name: "HotelReservationForm",
|
|
10
10
|
props: {
|
|
11
11
|
showGiftCard: { type: Boolean, default: !1 },
|
|
@@ -14,27 +14,27 @@ const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
14
14
|
setup(o) {
|
|
15
15
|
const { t: e } = ne(), t = co(), {
|
|
16
16
|
hideArrivalDepartureInputs: n,
|
|
17
|
-
disableArrivalUserSelection:
|
|
18
|
-
disableDepartureUserSelection:
|
|
17
|
+
disableArrivalUserSelection: p,
|
|
18
|
+
disableDepartureUserSelection: r,
|
|
19
19
|
arrivalDefault: h,
|
|
20
20
|
departureDefault: c,
|
|
21
|
-
currency:
|
|
21
|
+
currency: l
|
|
22
22
|
} = K(he()), {
|
|
23
|
-
arrivalDate:
|
|
23
|
+
arrivalDate: u,
|
|
24
24
|
departureDate: f
|
|
25
25
|
} = K(gt()), {
|
|
26
26
|
arrivalTime: g,
|
|
27
27
|
departureTime: _,
|
|
28
|
-
roomDisplay:
|
|
28
|
+
roomDisplay: d,
|
|
29
29
|
templateID: b,
|
|
30
30
|
totalPrice: k,
|
|
31
31
|
areListingsLoading: m,
|
|
32
32
|
getSelectedPackageRoom: i,
|
|
33
|
-
selectedPackage:
|
|
33
|
+
selectedPackage: s,
|
|
34
34
|
discountVouchers: v
|
|
35
35
|
} = K(ie()), { removeRoom: T } = ie();
|
|
36
36
|
function $(L) {
|
|
37
|
-
return L.reduce((
|
|
37
|
+
return L.reduce((A, { totalPrice: D }) => A + D, 0);
|
|
38
38
|
}
|
|
39
39
|
return (L, H) => (E(), R(So, {
|
|
40
40
|
"total-price": a(k),
|
|
@@ -49,46 +49,46 @@ const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
49
49
|
"reservation-summary": w(() => [
|
|
50
50
|
y("li", null, [
|
|
51
51
|
y("span", null, V(a(e)("booking.reservation.arrival")), 1),
|
|
52
|
-
y("b", null, V(a(n) ? a(te)(a(
|
|
52
|
+
y("b", null, V(a(n) ? a(te)(a(u)) : `${a(te)(a(u))}, ${a(p) ? a(h) : a(g)}`), 1)
|
|
53
53
|
]),
|
|
54
54
|
y("li", null, [
|
|
55
55
|
y("span", null, V(a(e)("booking.reservation.departure")), 1),
|
|
56
|
-
y("b", null, V(a(n) ? a(te)(a(f)) : `${a(te)(a(f))}, ${a(
|
|
56
|
+
y("b", null, V(a(n) ? a(te)(a(f)) : `${a(te)(a(f))}, ${a(r) ? a(c) : a(_)}`), 1)
|
|
57
57
|
]),
|
|
58
58
|
y("li", null, [
|
|
59
59
|
y("span", null, V(a(e)("booking.reservation.nights")), 1),
|
|
60
|
-
y("b", null, V(a(Xe)(a(
|
|
60
|
+
y("b", null, V(a(Xe)(a(u), a(f))) + " " + V(a(ho)(a(Xe)(a(u), a(f)) === 1 ? a(e)("booking.reservation.night") : a(e)("booking.reservation.nights"))), 1)
|
|
61
61
|
]),
|
|
62
|
-
a(v) ? (E(!0),
|
|
63
|
-
key:
|
|
62
|
+
a(v) ? (E(!0), I(B, { key: 0 }, z(a(v), (A) => (E(), I("li", {
|
|
63
|
+
key: A.id
|
|
64
64
|
}, [
|
|
65
|
-
y("span", null, V(`${a(e)("general.discountCode")} (${
|
|
66
|
-
y("b", null, V(
|
|
65
|
+
y("span", null, V(`${a(e)("general.discountCode")} (${A.value})`), 1),
|
|
66
|
+
y("b", null, V(A.key), 1)
|
|
67
67
|
]))), 128)) : x("", !0)
|
|
68
68
|
]),
|
|
69
69
|
"price-summary": w(() => [
|
|
70
|
-
isNaN(a(b)) && a(
|
|
71
|
-
roomGroupID:
|
|
72
|
-
title:
|
|
70
|
+
isNaN(a(b)) && a(d).length > 0 ? (E(!0), I(B, { key: 0 }, z(a(d), ({
|
|
71
|
+
roomGroupID: A,
|
|
72
|
+
title: D,
|
|
73
73
|
variants: W
|
|
74
|
-
}) => (E(),
|
|
74
|
+
}) => (E(), I("div", { key: A }, [
|
|
75
75
|
y("h6", null, [
|
|
76
|
-
y("span", null, V(
|
|
76
|
+
y("span", null, V(D), 1)
|
|
77
77
|
]),
|
|
78
|
-
(E(!0),
|
|
79
|
-
(E(!0),
|
|
78
|
+
(E(!0), I(B, null, z(W, (X, re) => (E(), I("div", { key: re }, [
|
|
79
|
+
(E(!0), I(B, null, z(X.rooms, (q, Te) => (E(), I("ul", { key: Te }, [
|
|
80
80
|
y("li", null, [
|
|
81
81
|
y("span", null, [
|
|
82
82
|
y("span", null, [
|
|
83
83
|
We(V(a(ue)(X.name)) + " ( ", 1),
|
|
84
|
-
|
|
84
|
+
C(Q, {
|
|
85
85
|
icon: "male",
|
|
86
86
|
type: "fas",
|
|
87
87
|
color: "font"
|
|
88
88
|
}),
|
|
89
89
|
y("span", null, V(q.adultsCount), 1),
|
|
90
|
-
q.childrenCount > 0 ? (E(),
|
|
91
|
-
|
|
90
|
+
q.childrenCount > 0 ? (E(), I(B, { key: 0 }, [
|
|
91
|
+
C(Q, {
|
|
92
92
|
icon: "child",
|
|
93
93
|
type: "fas",
|
|
94
94
|
color: "font"
|
|
@@ -99,20 +99,20 @@ const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
99
99
|
])
|
|
100
100
|
]),
|
|
101
101
|
y("b", null, [
|
|
102
|
-
y("span", null, V(a(oe)(q.totalPrice, a(
|
|
102
|
+
y("span", null, V(a(oe)(q.totalPrice, a(l))), 1),
|
|
103
103
|
x("", !0)
|
|
104
104
|
])
|
|
105
105
|
]),
|
|
106
|
-
$(q.roomAddons) > 0 ? (E(),
|
|
106
|
+
$(q.roomAddons) > 0 ? (E(), I("li", Ro, [
|
|
107
107
|
y("span", null, V(a(e)("booking.reservation.addons")), 1),
|
|
108
|
-
y("b", null, V(a(oe)($(q.roomAddons), a(
|
|
108
|
+
y("b", null, V(a(oe)($(q.roomAddons), a(l))), 1)
|
|
109
109
|
])) : x("", !0)
|
|
110
110
|
]))), 128))
|
|
111
111
|
]))), 128))
|
|
112
112
|
]))), 128)) : x("", !0),
|
|
113
|
-
a(i) && a(
|
|
113
|
+
a(i) && a(s) ? (E(), I("div", Bo, [
|
|
114
114
|
y("h6", null, [
|
|
115
|
-
y("span", null, V(a(ue)(a(
|
|
115
|
+
y("span", null, V(a(ue)(a(s).name)), 1)
|
|
116
116
|
]),
|
|
117
117
|
y("div", null, [
|
|
118
118
|
y("ul", null, [
|
|
@@ -121,7 +121,7 @@ const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
121
121
|
y("span", null, V(a(ue)(a(i).title)), 1)
|
|
122
122
|
]),
|
|
123
123
|
y("b", null, [
|
|
124
|
-
y("span", null, V(a(oe)(a(i).extraPrice, a(
|
|
124
|
+
y("span", null, V(a(oe)(a(i).extraPrice, a(l))), 1)
|
|
125
125
|
])
|
|
126
126
|
])
|
|
127
127
|
])
|
|
@@ -142,7 +142,7 @@ const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
142
142
|
} : void 0
|
|
143
143
|
]), 1032, ["total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
|
|
144
144
|
}
|
|
145
|
-
}), zo = (o) => (vt("data-v-69fe83d8"), o = o(), yt(), o), Wo = { class: "konnectio-room-config-option" }, Fo = { key: 0 }, No = { class: "konnectio-selected-room-config" }, Uo = { class: "konnectio-selected-room-config-people" }, qo = { key: 0 },
|
|
145
|
+
}), zo = (o) => (vt("data-v-69fe83d8"), o = o(), yt(), o), Wo = { class: "konnectio-room-config-option" }, Fo = { key: 0 }, No = { class: "konnectio-selected-room-config" }, Uo = { class: "konnectio-selected-room-config-people" }, qo = { key: 0 }, jo = { class: "konnectio-selected-room-config-price" }, Go = /* @__PURE__ */ zo(() => /* @__PURE__ */ y("span", null, null, -1)), Yo = /* @__PURE__ */ G({
|
|
146
146
|
__name: "RoomConfigField",
|
|
147
147
|
props: {
|
|
148
148
|
modelValue: {},
|
|
@@ -153,38 +153,38 @@ const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
153
153
|
},
|
|
154
154
|
emits: ["update:modelValue"],
|
|
155
155
|
setup(o, { emit: e }) {
|
|
156
|
-
const { t } = ne(), { currency: n } = K(he()),
|
|
157
|
-
function h(
|
|
158
|
-
|
|
156
|
+
const { t } = ne(), { currency: n } = K(he()), p = e, r = o;
|
|
157
|
+
function h(l) {
|
|
158
|
+
p("update:modelValue", l);
|
|
159
159
|
}
|
|
160
160
|
const c = U({
|
|
161
|
-
get: () =>
|
|
162
|
-
set: (
|
|
161
|
+
get: () => r.modelValue,
|
|
162
|
+
set: (l) => h(l)
|
|
163
163
|
});
|
|
164
|
-
return (
|
|
164
|
+
return (l, u) => (E(), R(Ee, {
|
|
165
165
|
modelValue: c.value,
|
|
166
|
-
"onUpdate:modelValue":
|
|
167
|
-
label:
|
|
166
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => c.value = f),
|
|
167
|
+
label: l.label,
|
|
168
168
|
placeholder: "Select guest configuration",
|
|
169
169
|
labelKey: "label",
|
|
170
170
|
valueKey: "value",
|
|
171
171
|
"icon-placement": "label",
|
|
172
|
-
options:
|
|
173
|
-
readonly:
|
|
174
|
-
required:
|
|
172
|
+
options: l.options,
|
|
173
|
+
readonly: l.readonly,
|
|
174
|
+
required: l.required,
|
|
175
175
|
searchable: !1
|
|
176
176
|
}, {
|
|
177
177
|
option: w(({ data: f }) => [
|
|
178
178
|
y("span", Wo, [
|
|
179
179
|
y("div", null, [
|
|
180
|
-
|
|
180
|
+
C(Q, {
|
|
181
181
|
icon: "male",
|
|
182
182
|
type: "fas",
|
|
183
183
|
color: "font"
|
|
184
184
|
}),
|
|
185
185
|
y("span", null, V(`${f.adults}`), 1),
|
|
186
|
-
f.children > 0 ? (E(),
|
|
187
|
-
|
|
186
|
+
f.children > 0 ? (E(), I("span", Fo, [
|
|
187
|
+
C(Q, {
|
|
188
188
|
icon: "child",
|
|
189
189
|
type: "fas",
|
|
190
190
|
color: "font"
|
|
@@ -202,13 +202,13 @@ const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
202
202
|
x("", !0),
|
|
203
203
|
y("span", null, V(`${f.adults} ${f.adults === 1 ? a(t)("general.adult") : a(t)("general.adults")}`), 1)
|
|
204
204
|
]),
|
|
205
|
-
f.children > 0 ? (E(),
|
|
205
|
+
f.children > 0 ? (E(), I("div", qo, [
|
|
206
206
|
x("", !0),
|
|
207
207
|
y("span", null, V(`& ${f.children} ${f.children === 1 ? a(t)("general.child") : a(t)("general.children")}`), 1)
|
|
208
208
|
])) : x("", !0)
|
|
209
209
|
]),
|
|
210
|
-
y("div",
|
|
211
|
-
|
|
210
|
+
y("div", jo, [
|
|
211
|
+
Go,
|
|
212
212
|
We(" " + V(`(${a(oe)(f.price, a(n))})`), 1)
|
|
213
213
|
])
|
|
214
214
|
])
|
|
@@ -217,7 +217,7 @@ const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
217
217
|
}, 8, ["modelValue", "label", "options", "readonly", "required"]));
|
|
218
218
|
}
|
|
219
219
|
}), Ko = /* @__PURE__ */ J(Yo, [["__scopeId", "data-v-69fe83d8"]]), Qo = { class: "konnectio-availability-listing-selection" }, Jo = { key: 1 }, Xo = { class: "fresh-booking-listing-config-body" }, Zo = { class: "fresh-booking-listing-units-body" };
|
|
220
|
-
const en = /* @__PURE__ */
|
|
220
|
+
const en = /* @__PURE__ */ G({
|
|
221
221
|
__name: "Hotel",
|
|
222
222
|
props: {
|
|
223
223
|
room: {},
|
|
@@ -225,20 +225,20 @@ const en = /* @__PURE__ */ j({
|
|
|
225
225
|
},
|
|
226
226
|
setup(o) {
|
|
227
227
|
const { t: e } = ne(), t = o, n = ce([]);
|
|
228
|
-
function
|
|
229
|
-
n.value[
|
|
228
|
+
function p(s) {
|
|
229
|
+
n.value[s].config.push({
|
|
230
230
|
id: NaN,
|
|
231
231
|
units: 0,
|
|
232
232
|
addons: []
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
const
|
|
236
|
-
label:
|
|
237
|
-
value:
|
|
238
|
-
}))), { hideAvailableRoomAmount: h } = K(he()), { roomSelect: c } = K(ie()), { addToCart:
|
|
239
|
-
(
|
|
235
|
+
const r = U(() => t.room.rates.map((s) => ({
|
|
236
|
+
label: s.name,
|
|
237
|
+
value: s.id
|
|
238
|
+
}))), { hideAvailableRoomAmount: h } = K(he()), { roomSelect: c } = K(ie()), { addToCart: l, removeFromCart: u } = bt(), f = (s, v) => t.room.rates.find((T) => T.id === s)?.occupantRates.find((T) => T.index === v), g = U(() => t.room.rates.reduce(
|
|
239
|
+
(s, v) => s < v.rackRate ? s : v.rackRate,
|
|
240
240
|
1 / 0
|
|
241
|
-
)), _ = U(() => t.room.rates.every((
|
|
241
|
+
)), _ = U(() => t.room.rates.every((s) => s.isBreakfastIncluded === !0)), d = (s, v) => f(s, v) ? f(s, v)?.rooms : null, b = (s) => t.room.rates.length > 0 ? t.room.rates.find((v) => v.id === s)?.occupantRates.map((v) => ({
|
|
242
242
|
value: v.index,
|
|
243
243
|
price: v.totalPrice,
|
|
244
244
|
adults: v.adultsCount,
|
|
@@ -266,15 +266,15 @@ const en = /* @__PURE__ */ j({
|
|
|
266
266
|
m();
|
|
267
267
|
});
|
|
268
268
|
const i = U(() => JSON.parse(JSON.stringify(n.value)));
|
|
269
|
-
return be(i, (
|
|
270
|
-
v.length > 0 &&
|
|
269
|
+
return be(i, (s, v) => {
|
|
270
|
+
v.length > 0 && s.forEach((T, $) => {
|
|
271
271
|
T.config.forEach((L, H) => {
|
|
272
|
-
const
|
|
273
|
-
|
|
272
|
+
const A = L.units, D = v[$].config[H].units;
|
|
273
|
+
A !== D && (A > D ? (n.value[$].config[H].addons.push({}), l({
|
|
274
274
|
id: t.room.id,
|
|
275
275
|
name: t.room.title,
|
|
276
276
|
value: t.room.rates[$].rackRate
|
|
277
|
-
})) : (n.value[$].config[H].addons.pop(),
|
|
277
|
+
})) : (n.value[$].config[H].addons.pop(), u({
|
|
278
278
|
id: t.room.id,
|
|
279
279
|
name: t.room.title,
|
|
280
280
|
value: t.room.rates[$].rackRate
|
|
@@ -283,19 +283,19 @@ const en = /* @__PURE__ */ j({
|
|
|
283
283
|
});
|
|
284
284
|
}, { deep: !0 }), be(n, () => {
|
|
285
285
|
c.value[t.room.id] = n.value;
|
|
286
|
-
}, { deep: !0 }), (
|
|
287
|
-
"listing-id":
|
|
288
|
-
gallery:
|
|
289
|
-
name:
|
|
290
|
-
description:
|
|
291
|
-
layout:
|
|
292
|
-
facilities:
|
|
286
|
+
}, { deep: !0 }), (s, v) => (E(), R(je, {
|
|
287
|
+
"listing-id": s.room.id,
|
|
288
|
+
gallery: s.room.images,
|
|
289
|
+
name: s.room.title,
|
|
290
|
+
description: s.room.description,
|
|
291
|
+
layout: s.layout,
|
|
292
|
+
facilities: s.room.facilities,
|
|
293
293
|
"prices-from": g.value,
|
|
294
294
|
"includes-breakfast": _.value
|
|
295
295
|
}, {
|
|
296
296
|
action: w(() => [
|
|
297
297
|
y("div", Qo, [
|
|
298
|
-
(E(!0),
|
|
298
|
+
(E(!0), I(B, null, z(n.value, (T, $) => (E(), I("div", {
|
|
299
299
|
key: T.id,
|
|
300
300
|
class: "freshbooking-hotel-room"
|
|
301
301
|
}, [
|
|
@@ -305,25 +305,25 @@ const en = /* @__PURE__ */ j({
|
|
|
305
305
|
"onUpdate:modelValue": (L) => T.id = L,
|
|
306
306
|
label: a(e)("hotel.roomVariant"),
|
|
307
307
|
placeholder: a(e)("hotel.chooseARoomVariant"),
|
|
308
|
-
options:
|
|
308
|
+
options: r.value,
|
|
309
309
|
searchable: !1
|
|
310
310
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : x("", !0),
|
|
311
|
-
T.id ? (E(),
|
|
312
|
-
(E(!0),
|
|
311
|
+
T.id ? (E(), I("div", Jo, [
|
|
312
|
+
(E(!0), I(B, null, z(s.room.rates, ({
|
|
313
313
|
id: L,
|
|
314
314
|
maximumOccupants: H
|
|
315
|
-
}) => (E(),
|
|
315
|
+
}) => (E(), I("div", {
|
|
316
316
|
key: L,
|
|
317
317
|
class: "booking-availability-listing-action-selective-i"
|
|
318
318
|
}, [
|
|
319
|
-
T.id === L ? (E(!0),
|
|
320
|
-
key:
|
|
319
|
+
T.id === L ? (E(!0), I(B, { key: 0 }, z(T.config, (A, D) => (E(), I("div", {
|
|
320
|
+
key: D,
|
|
321
321
|
class: "booking-availability-listing-action-selective"
|
|
322
322
|
}, [
|
|
323
323
|
y("ul", Xo, [
|
|
324
|
-
|
|
325
|
-
modelValue:
|
|
326
|
-
"onUpdate:modelValue": (W) =>
|
|
324
|
+
C(Ko, {
|
|
325
|
+
modelValue: A.id,
|
|
326
|
+
"onUpdate:modelValue": (W) => A.id = W,
|
|
327
327
|
icon: "male",
|
|
328
328
|
"icon-type": "fas",
|
|
329
329
|
label: a(e)("general.guests"),
|
|
@@ -333,16 +333,16 @@ const en = /* @__PURE__ */ j({
|
|
|
333
333
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
|
|
334
334
|
]),
|
|
335
335
|
y("ul", Zo, [
|
|
336
|
-
|
|
337
|
-
modelValue:
|
|
338
|
-
"onUpdate:modelValue": (W) =>
|
|
339
|
-
description: a(h) ? void 0 : `${a(e)("booking.availability.availableUnits")}: ${
|
|
336
|
+
C(kt, {
|
|
337
|
+
modelValue: A.units,
|
|
338
|
+
"onUpdate:modelValue": (W) => A.units = W,
|
|
339
|
+
description: a(h) ? void 0 : `${a(e)("booking.availability.availableUnits")}: ${d(T.id, A.id)}`,
|
|
340
340
|
icon: "house",
|
|
341
341
|
"icon-type": "fas",
|
|
342
342
|
"icon-placement": "label",
|
|
343
343
|
label: a(e)("booking.availability.units"),
|
|
344
344
|
minValue: 0,
|
|
345
|
-
"max-value":
|
|
345
|
+
"max-value": d(L, A.id) || 1 / 0
|
|
346
346
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
|
|
347
347
|
]),
|
|
348
348
|
x("", !0)
|
|
@@ -355,7 +355,7 @@ const en = /* @__PURE__ */ j({
|
|
|
355
355
|
_: 1
|
|
356
356
|
}, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
|
|
357
357
|
}
|
|
358
|
-
}), tn = /* @__PURE__ */ J(en, [["__scopeId", "data-v-9ea89f13"]]), on = { class: "konnectio-template-side-panel" }, nn = { class: "konnectio-template-side-panel-listings" }, rn = /* @__PURE__ */
|
|
358
|
+
}), tn = /* @__PURE__ */ J(en, [["__scopeId", "data-v-9ea89f13"]]), on = { class: "konnectio-template-side-panel" }, nn = { class: "konnectio-template-side-panel-listings" }, rn = /* @__PURE__ */ G({
|
|
359
359
|
__name: "Template",
|
|
360
360
|
props: {
|
|
361
361
|
title: {},
|
|
@@ -364,39 +364,39 @@ const en = /* @__PURE__ */ j({
|
|
|
364
364
|
callback: { type: Function }
|
|
365
365
|
},
|
|
366
366
|
setup(o) {
|
|
367
|
-
const { t: e } = ne(), { templateID: t, roomGroupID: n } = K(ie()), { currency:
|
|
368
|
-
function c(
|
|
369
|
-
t.value = h.templateId, n.value =
|
|
367
|
+
const { t: e } = ne(), { templateID: t, roomGroupID: n } = K(ie()), { currency: p } = K(he()), { clearRoomSelection: r } = ie(), h = o;
|
|
368
|
+
function c(l) {
|
|
369
|
+
t.value = h.templateId, n.value = l, r(), h.callback(2);
|
|
370
370
|
}
|
|
371
|
-
return (
|
|
372
|
-
title:
|
|
371
|
+
return (l, u) => (E(), R(Vo, {
|
|
372
|
+
title: l.title,
|
|
373
373
|
subtitle: a(e)("booking.availability.selectATemplateRoom")
|
|
374
374
|
}, {
|
|
375
375
|
default: w(() => [
|
|
376
376
|
y("div", on, [
|
|
377
377
|
y("div", nn, [
|
|
378
|
-
(E(!0),
|
|
378
|
+
(E(!0), I(B, null, z(l.roomGroups, ({
|
|
379
379
|
id: f,
|
|
380
380
|
title: g,
|
|
381
381
|
description: _,
|
|
382
|
-
images:
|
|
382
|
+
images: d,
|
|
383
383
|
facilities: b,
|
|
384
384
|
extraPrice: k
|
|
385
|
-
}) => (E(), R(
|
|
385
|
+
}) => (E(), R(je, {
|
|
386
386
|
key: f,
|
|
387
387
|
"listing-id": f,
|
|
388
388
|
name: g,
|
|
389
389
|
description: _,
|
|
390
390
|
facilities: b,
|
|
391
|
-
gallery:
|
|
391
|
+
gallery: d,
|
|
392
392
|
"includes-breakfast": !1,
|
|
393
393
|
"hide-info-button": !0
|
|
394
394
|
}, {
|
|
395
395
|
action: w(() => [
|
|
396
396
|
y("div", null, [
|
|
397
|
-
|
|
397
|
+
C(le, {
|
|
398
398
|
onClickEvent: (m) => c(f),
|
|
399
|
-
label: `${a(e)("booking.availability.selectThisRoom")} (${a(oe)(k, a(
|
|
399
|
+
label: `${a(e)("booking.availability.selectThisRoom")} (${a(oe)(k, a(p))})`,
|
|
400
400
|
"full-width": ""
|
|
401
401
|
}, null, 8, ["onClickEvent", "label"])
|
|
402
402
|
])
|
|
@@ -409,7 +409,7 @@ const en = /* @__PURE__ */ j({
|
|
|
409
409
|
_: 1
|
|
410
410
|
}, 8, ["title", "subtitle"]));
|
|
411
411
|
}
|
|
412
|
-
}), sn = /* @__PURE__ */ J(rn, [["__scopeId", "data-v-4c035ea3"]]), an = ["innerHTML"], ln = /* @__PURE__ */
|
|
412
|
+
}), sn = /* @__PURE__ */ J(rn, [["__scopeId", "data-v-4c035ea3"]]), an = ["innerHTML"], ln = /* @__PURE__ */ G({
|
|
413
413
|
__name: "Template",
|
|
414
414
|
props: {
|
|
415
415
|
id: {},
|
|
@@ -422,39 +422,39 @@ const en = /* @__PURE__ */ j({
|
|
|
422
422
|
},
|
|
423
423
|
setup(o) {
|
|
424
424
|
const { t: e } = ne(), t = o, n = U(() => t.roomGroups.reduce(
|
|
425
|
-
(
|
|
425
|
+
(l, u) => l < u.extraPrice ? l : u.extraPrice,
|
|
426
426
|
1 / 0
|
|
427
|
-
)),
|
|
427
|
+
)), p = U(() => [{
|
|
428
428
|
large: t.image.url,
|
|
429
429
|
medium: t.image.url,
|
|
430
430
|
thumb: t.image.url,
|
|
431
431
|
url: t.image.url
|
|
432
|
-
}]),
|
|
432
|
+
}]), r = ce(!1);
|
|
433
433
|
function h() {
|
|
434
|
-
|
|
434
|
+
r.value = !0;
|
|
435
435
|
}
|
|
436
|
-
function c(
|
|
437
|
-
t.callback(
|
|
436
|
+
function c(l) {
|
|
437
|
+
t.callback(l), r.value = !1;
|
|
438
438
|
}
|
|
439
|
-
return (
|
|
440
|
-
"listing-id":
|
|
441
|
-
name:
|
|
442
|
-
description:
|
|
443
|
-
gallery:
|
|
439
|
+
return (l, u) => (E(), R(je, {
|
|
440
|
+
"listing-id": l.id,
|
|
441
|
+
name: l.name,
|
|
442
|
+
description: l.description,
|
|
443
|
+
gallery: p.value,
|
|
444
444
|
layout: a(mo).Template,
|
|
445
445
|
"includes-breakfast": !1,
|
|
446
446
|
"hide-info-button": !1,
|
|
447
447
|
"prices-from": n.value
|
|
448
448
|
}, {
|
|
449
449
|
description: w(() => [
|
|
450
|
-
|
|
450
|
+
l.description ? (E(), I("p", {
|
|
451
451
|
key: 0,
|
|
452
|
-
innerHTML: a(fo)(
|
|
452
|
+
innerHTML: a(fo)(l.description)
|
|
453
453
|
}, null, 8, an)) : x("", !0)
|
|
454
454
|
]),
|
|
455
455
|
action: w(() => [
|
|
456
456
|
y("div", null, [
|
|
457
|
-
|
|
457
|
+
C(le, {
|
|
458
458
|
onClickEvent: h,
|
|
459
459
|
label: a(e)("booking.availability.selectPackage"),
|
|
460
460
|
"full-width": ""
|
|
@@ -462,19 +462,19 @@ const en = /* @__PURE__ */ j({
|
|
|
462
462
|
])
|
|
463
463
|
]),
|
|
464
464
|
default: w(() => [
|
|
465
|
-
|
|
466
|
-
modelValue:
|
|
467
|
-
"onUpdate:modelValue":
|
|
468
|
-
title:
|
|
469
|
-
"template-id":
|
|
470
|
-
roomGroups:
|
|
465
|
+
C(sn, {
|
|
466
|
+
modelValue: r.value,
|
|
467
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => r.value = f),
|
|
468
|
+
title: l.name,
|
|
469
|
+
"template-id": l.id,
|
|
470
|
+
roomGroups: l.roomGroups,
|
|
471
471
|
callback: c
|
|
472
472
|
}, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
|
|
473
473
|
]),
|
|
474
474
|
_: 1
|
|
475
475
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
|
|
476
476
|
}
|
|
477
|
-
}), un = /* @__PURE__ */ J(ln, [["__scopeId", "data-v-edc2f058"]]), tt = /* @__PURE__ */
|
|
477
|
+
}), un = /* @__PURE__ */ J(ln, [["__scopeId", "data-v-edc2f058"]]), tt = /* @__PURE__ */ G({
|
|
478
478
|
__name: "TimeField",
|
|
479
479
|
props: {
|
|
480
480
|
modelValue: {},
|
|
@@ -500,15 +500,15 @@ const en = /* @__PURE__ */ j({
|
|
|
500
500
|
emits: ["update:modelValue"],
|
|
501
501
|
setup(o, { emit: e }) {
|
|
502
502
|
const t = e, n = o;
|
|
503
|
-
function
|
|
503
|
+
function p(h) {
|
|
504
504
|
t("update:modelValue", h);
|
|
505
505
|
}
|
|
506
|
-
const
|
|
507
|
-
return be(
|
|
508
|
-
|
|
509
|
-
}), (h, c) => (E(), R(
|
|
510
|
-
modelValue:
|
|
511
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
506
|
+
const r = ce(n.modelValue);
|
|
507
|
+
return be(r, (h) => {
|
|
508
|
+
p(h);
|
|
509
|
+
}), (h, c) => (E(), R(Ao, {
|
|
510
|
+
modelValue: r.value,
|
|
511
|
+
"onUpdate:modelValue": c[0] || (c[0] = (l) => r.value = l),
|
|
512
512
|
type: "time",
|
|
513
513
|
label: h.label,
|
|
514
514
|
id: h.id,
|
|
@@ -521,7 +521,7 @@ const en = /* @__PURE__ */ j({
|
|
|
521
521
|
readonly: h.readonly
|
|
522
522
|
}, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
|
|
523
523
|
}
|
|
524
|
-
}), dn = { style: { display: "flex", "align-items": "baseline" } }, cn = /* @__PURE__ */
|
|
524
|
+
}), dn = { style: { display: "flex", "align-items": "baseline" } }, cn = /* @__PURE__ */ G({
|
|
525
525
|
__name: "CountryField",
|
|
526
526
|
props: {
|
|
527
527
|
modelValue: {},
|
|
@@ -533,17 +533,17 @@ const en = /* @__PURE__ */ j({
|
|
|
533
533
|
},
|
|
534
534
|
emits: ["update:modelValue"],
|
|
535
535
|
setup(o, { emit: e }) {
|
|
536
|
-
const { t } = ne(), n = e,
|
|
537
|
-
function
|
|
536
|
+
const { t } = ne(), n = e, p = o;
|
|
537
|
+
function r(c) {
|
|
538
538
|
n("update:modelValue", c);
|
|
539
539
|
}
|
|
540
540
|
const h = U({
|
|
541
|
-
get: () =>
|
|
542
|
-
set: (c) =>
|
|
541
|
+
get: () => p.modelValue,
|
|
542
|
+
set: (c) => r(c)
|
|
543
543
|
});
|
|
544
|
-
return (c,
|
|
544
|
+
return (c, l) => (E(), R(Ee, {
|
|
545
545
|
modelValue: h.value,
|
|
546
|
-
"onUpdate:modelValue":
|
|
546
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => h.value = u),
|
|
547
547
|
label: c.label,
|
|
548
548
|
placeholder: a(t)("booking.reservation.countryPlaceholder"),
|
|
549
549
|
labelKey: "name",
|
|
@@ -551,24 +551,24 @@ const en = /* @__PURE__ */ j({
|
|
|
551
551
|
options: c.options,
|
|
552
552
|
required: c.required
|
|
553
553
|
}, {
|
|
554
|
-
option: w(({ data:
|
|
554
|
+
option: w(({ data: u }) => [
|
|
555
555
|
y("i", {
|
|
556
|
-
class: ke(["konnectio-flag-icon",
|
|
556
|
+
class: ke(["konnectio-flag-icon", u.iso])
|
|
557
557
|
}, null, 2),
|
|
558
|
-
y("span", null, V(
|
|
558
|
+
y("span", null, V(u.name), 1)
|
|
559
559
|
]),
|
|
560
|
-
"selected-option": w(({ data:
|
|
560
|
+
"selected-option": w(({ data: u }) => [
|
|
561
561
|
y("div", dn, [
|
|
562
562
|
y("i", {
|
|
563
|
-
class: ke(["konnectio-flag-icon",
|
|
563
|
+
class: ke(["konnectio-flag-icon", u.iso])
|
|
564
564
|
}, null, 2),
|
|
565
|
-
y("span", null, V(
|
|
565
|
+
y("span", null, V(u.name), 1)
|
|
566
566
|
])
|
|
567
567
|
]),
|
|
568
568
|
_: 1
|
|
569
569
|
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
570
570
|
}
|
|
571
|
-
}), pn = /* @__PURE__ */ J(cn, [["__scopeId", "data-v-1462612d"]]), hn = { class: "konnectio-radio-checkboxes" }, fn = /* @__PURE__ */
|
|
571
|
+
}), pn = /* @__PURE__ */ J(cn, [["__scopeId", "data-v-1462612d"]]), hn = { class: "konnectio-radio-checkboxes" }, fn = /* @__PURE__ */ G({
|
|
572
572
|
__name: "CheckboxField",
|
|
573
573
|
props: {
|
|
574
574
|
modelValue: {},
|
|
@@ -579,12 +579,12 @@ const en = /* @__PURE__ */ j({
|
|
|
579
579
|
emits: ["update:modelValue"],
|
|
580
580
|
setup(o, { emit: e }) {
|
|
581
581
|
const t = e, n = o;
|
|
582
|
-
function
|
|
582
|
+
function p(h) {
|
|
583
583
|
t("update:modelValue", h);
|
|
584
584
|
}
|
|
585
|
-
const
|
|
585
|
+
const r = U({
|
|
586
586
|
get: () => n.modelValue,
|
|
587
|
-
set: (h) =>
|
|
587
|
+
set: (h) => p(h)
|
|
588
588
|
});
|
|
589
589
|
return (h, c) => (E(), R(_t, {
|
|
590
590
|
label: h.label,
|
|
@@ -592,14 +592,14 @@ const en = /* @__PURE__ */ j({
|
|
|
592
592
|
}, {
|
|
593
593
|
default: w(() => [
|
|
594
594
|
y("ul", hn, [
|
|
595
|
-
(E(!0),
|
|
596
|
-
|
|
597
|
-
modelValue:
|
|
598
|
-
"onUpdate:modelValue": c[0] || (c[0] = (g) =>
|
|
599
|
-
label:
|
|
595
|
+
(E(!0), I(B, null, z(h.checkboxes, ({ label: l, value: u }, f) => (E(), I("li", { key: f }, [
|
|
596
|
+
C(Fe, {
|
|
597
|
+
modelValue: r.value,
|
|
598
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => r.value = g),
|
|
599
|
+
label: l,
|
|
600
600
|
name: h.name,
|
|
601
601
|
type: "radio",
|
|
602
|
-
val:
|
|
602
|
+
val: u
|
|
603
603
|
}, null, 8, ["modelValue", "label", "name", "val"])
|
|
604
604
|
]))), 128))
|
|
605
605
|
])
|
|
@@ -607,7 +607,7 @@ const en = /* @__PURE__ */ j({
|
|
|
607
607
|
_: 1
|
|
608
608
|
}, 8, ["label"]));
|
|
609
609
|
}
|
|
610
|
-
}), mn = /* @__PURE__ */ J(fn, [["__scopeId", "data-v-7185c7da"]]), gn = /* @__PURE__ */
|
|
610
|
+
}), mn = /* @__PURE__ */ J(fn, [["__scopeId", "data-v-7185c7da"]]), gn = /* @__PURE__ */ G({
|
|
611
611
|
__name: "NameField",
|
|
612
612
|
props: {
|
|
613
613
|
modelValue: {},
|
|
@@ -629,99 +629,99 @@ const en = /* @__PURE__ */ j({
|
|
|
629
629
|
},
|
|
630
630
|
emits: ["update:modelValue", "update:title"],
|
|
631
631
|
setup(o, { emit: e }) {
|
|
632
|
-
const t = o, n = e,
|
|
632
|
+
const t = o, n = e, p = t.id || Ze(), r = ce(""), h = ce(2);
|
|
633
633
|
function c() {
|
|
634
|
-
n("update:modelValue",
|
|
634
|
+
n("update:modelValue", r.value);
|
|
635
635
|
}
|
|
636
|
-
be(h, (
|
|
637
|
-
n("update:title",
|
|
636
|
+
be(h, (u) => {
|
|
637
|
+
n("update:title", u);
|
|
638
638
|
});
|
|
639
|
-
const { t:
|
|
639
|
+
const { t: l } = ne();
|
|
640
640
|
return qe(() => {
|
|
641
|
-
t.modelValue && (
|
|
642
|
-
}), (
|
|
643
|
-
label:
|
|
644
|
-
id: a(
|
|
645
|
-
required:
|
|
641
|
+
t.modelValue && (r.value = t.modelValue), t.title && (h.value = t.title);
|
|
642
|
+
}), (u, f) => (E(), R(_t, {
|
|
643
|
+
label: u.label,
|
|
644
|
+
id: a(p),
|
|
645
|
+
required: u.required,
|
|
646
646
|
type: "fresh-booking-name-field",
|
|
647
|
-
readonly:
|
|
648
|
-
limit:
|
|
647
|
+
readonly: u.readonly,
|
|
648
|
+
limit: u.limit
|
|
649
649
|
}, {
|
|
650
650
|
default: w(() => [
|
|
651
651
|
y("div", {
|
|
652
652
|
class: ke([
|
|
653
653
|
"fresh-booking-name-input",
|
|
654
|
-
{ "no-title":
|
|
654
|
+
{ "no-title": u.excludeTitle }
|
|
655
655
|
])
|
|
656
656
|
}, [
|
|
657
|
-
|
|
657
|
+
u.excludeTitle ? x("", !0) : (E(), R(Ee, {
|
|
658
658
|
key: 0,
|
|
659
659
|
modelValue: h.value,
|
|
660
660
|
"onUpdate:modelValue": f[0] || (f[0] = (g) => h.value = g),
|
|
661
661
|
id: a(Ze)(),
|
|
662
|
-
icon:
|
|
663
|
-
"icon-color":
|
|
664
|
-
"icon-type":
|
|
662
|
+
icon: u.icon,
|
|
663
|
+
"icon-color": u.iconColor,
|
|
664
|
+
"icon-type": u.iconType,
|
|
665
665
|
options: [
|
|
666
666
|
{
|
|
667
|
-
label: a(
|
|
667
|
+
label: a(l)("booking.reservation.noNameTitle"),
|
|
668
668
|
value: 1
|
|
669
669
|
},
|
|
670
670
|
{
|
|
671
|
-
label: a(
|
|
671
|
+
label: a(l)("booking.reservation.nameTitleMr"),
|
|
672
672
|
value: 2
|
|
673
673
|
},
|
|
674
674
|
{
|
|
675
|
-
label: a(
|
|
675
|
+
label: a(l)("booking.reservation.nameTitleMs"),
|
|
676
676
|
value: 3
|
|
677
677
|
},
|
|
678
678
|
{
|
|
679
|
-
label: a(
|
|
679
|
+
label: a(l)("booking.reservation.nameTitleMrs"),
|
|
680
680
|
value: 4
|
|
681
681
|
},
|
|
682
682
|
{
|
|
683
|
-
label: a(
|
|
683
|
+
label: a(l)("booking.reservation.nameTitleDr"),
|
|
684
684
|
value: 5
|
|
685
685
|
}
|
|
686
686
|
],
|
|
687
|
-
readonly:
|
|
687
|
+
readonly: u.readonly,
|
|
688
688
|
"hide-button": "",
|
|
689
|
-
"input-style":
|
|
689
|
+
"input-style": u.inputStyle,
|
|
690
690
|
searchable: !1
|
|
691
691
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
|
|
692
|
-
|
|
693
|
-
modelValue:
|
|
694
|
-
"onUpdate:modelValue": f[1] || (f[1] = (g) =>
|
|
692
|
+
C(ee, {
|
|
693
|
+
modelValue: r.value,
|
|
694
|
+
"onUpdate:modelValue": f[1] || (f[1] = (g) => r.value = g),
|
|
695
695
|
type: "text",
|
|
696
696
|
name: "name",
|
|
697
697
|
autocomplete: "name",
|
|
698
|
-
id: a(
|
|
699
|
-
icon:
|
|
700
|
-
"icon-color":
|
|
701
|
-
"icon-type":
|
|
702
|
-
placeholder:
|
|
703
|
-
required:
|
|
704
|
-
readonly:
|
|
705
|
-
limit:
|
|
698
|
+
id: a(p),
|
|
699
|
+
icon: u.excludeTitle ? u.icon : void 0,
|
|
700
|
+
"icon-color": u.iconColor,
|
|
701
|
+
"icon-type": u.iconType,
|
|
702
|
+
placeholder: u.placeholder,
|
|
703
|
+
required: u.required,
|
|
704
|
+
readonly: u.readonly,
|
|
705
|
+
limit: u.limit,
|
|
706
706
|
onInput: f[2] || (f[2] = (g) => c()),
|
|
707
|
-
"input-style":
|
|
707
|
+
"input-style": u.inputStyle
|
|
708
708
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
|
|
709
709
|
], 2)
|
|
710
710
|
]),
|
|
711
711
|
_: 1
|
|
712
712
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
713
713
|
}
|
|
714
|
-
}), vn = /* @__PURE__ */ J(gn, [["__scopeId", "data-v-78b0b319"]]), yn = { class: "hotel-listing" }, bn = { class: "hotel-listing-content-gallery" }, kn = { class: "hotel-listing-content-thumbs" }, _n = { class: "hotel-listing-content" }, En = { class: "hotel-listing-content-header" }, Tn = { class: "hotel-listing-content-title" },
|
|
714
|
+
}), vn = /* @__PURE__ */ J(gn, [["__scopeId", "data-v-78b0b319"]]), yn = { class: "hotel-listing" }, bn = { class: "hotel-listing-content-gallery" }, kn = { class: "hotel-listing-content-thumbs" }, _n = { class: "hotel-listing-content" }, En = { class: "hotel-listing-content-header" }, Tn = { class: "hotel-listing-content-title" }, Cn = { class: "hotel-listing-content-body" }, In = { class: "hotel-listing-content-facilities" }, $n = /* @__PURE__ */ G({
|
|
715
715
|
__name: "Listing",
|
|
716
716
|
setup(o) {
|
|
717
|
-
return (e, t) => (E(),
|
|
717
|
+
return (e, t) => (E(), I("div", yn, [
|
|
718
718
|
y("div", bn, [
|
|
719
|
-
|
|
719
|
+
C(Y, {
|
|
720
720
|
width: "280px",
|
|
721
721
|
height: "153px"
|
|
722
722
|
}),
|
|
723
723
|
y("div", kn, [
|
|
724
|
-
(E(),
|
|
724
|
+
(E(), I(B, null, z(3, (n) => C(Y, {
|
|
725
725
|
key: n,
|
|
726
726
|
width: "84px",
|
|
727
727
|
height: "44px"
|
|
@@ -731,33 +731,33 @@ const en = /* @__PURE__ */ j({
|
|
|
731
731
|
y("div", _n, [
|
|
732
732
|
y("div", En, [
|
|
733
733
|
y("div", Tn, [
|
|
734
|
-
|
|
734
|
+
C(Y, {
|
|
735
735
|
height: "30px",
|
|
736
736
|
width: "60%"
|
|
737
737
|
}),
|
|
738
|
-
|
|
738
|
+
C(Y, {
|
|
739
739
|
height: "30px",
|
|
740
740
|
width: "30px",
|
|
741
741
|
"border-radius": "100%"
|
|
742
742
|
})
|
|
743
743
|
]),
|
|
744
|
-
|
|
744
|
+
C(Y, {
|
|
745
745
|
height: "15px",
|
|
746
746
|
width: "25%"
|
|
747
747
|
})
|
|
748
748
|
]),
|
|
749
|
-
y("div",
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
749
|
+
y("div", Cn, [
|
|
750
|
+
C(Y, { height: "15px" }),
|
|
751
|
+
C(Y, { height: "15px" }),
|
|
752
|
+
C(Y, { height: "15px" }),
|
|
753
|
+
C(Y, { height: "15px" }),
|
|
754
|
+
C(Y, {
|
|
755
755
|
height: "15px",
|
|
756
756
|
width: "90%"
|
|
757
757
|
})
|
|
758
758
|
]),
|
|
759
|
-
y("div",
|
|
760
|
-
(E(),
|
|
759
|
+
y("div", In, [
|
|
760
|
+
(E(), I(B, null, z(5, (n) => C(Y, {
|
|
761
761
|
key: n,
|
|
762
762
|
height: "25px",
|
|
763
763
|
width: "25px",
|
|
@@ -767,23 +767,23 @@ const en = /* @__PURE__ */ j({
|
|
|
767
767
|
])
|
|
768
768
|
]));
|
|
769
769
|
}
|
|
770
|
-
}), de = /* @__PURE__ */ J($n, [["__scopeId", "data-v-c7574b59"]]), Sn = { class: "hotel-skeleton" }, Vn = { class: "hotel-skeleton-content" }, Ln = { class: "hotel-skeleton-sidebar" }, Pn = /* @__PURE__ */
|
|
770
|
+
}), de = /* @__PURE__ */ J($n, [["__scopeId", "data-v-c7574b59"]]), Sn = { class: "hotel-skeleton" }, Vn = { class: "hotel-skeleton-content" }, Ln = { class: "hotel-skeleton-sidebar" }, Pn = /* @__PURE__ */ G({
|
|
771
771
|
__name: "HotelSkeleton",
|
|
772
772
|
setup(o) {
|
|
773
|
-
return (e, t) => (E(),
|
|
773
|
+
return (e, t) => (E(), I("div", Sn, [
|
|
774
774
|
y("div", Vn, [
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
775
|
+
C(Ho, { hotel: "" }),
|
|
776
|
+
C(de),
|
|
777
|
+
C(de),
|
|
778
|
+
C(de)
|
|
779
779
|
]),
|
|
780
780
|
y("div", Ln, [
|
|
781
|
-
|
|
781
|
+
C(Lo)
|
|
782
782
|
])
|
|
783
783
|
]));
|
|
784
784
|
}
|
|
785
785
|
}), xn = /* @__PURE__ */ J(Pn, [["__scopeId", "data-v-49e83cbb"]]), wn = (o) => (vt("data-v-fd9b6d4f"), o = o(), yt(), o), Hn = { id: "booking-availability-container" }, On = { id: "booking-availability-controls" };
|
|
786
|
-
const
|
|
786
|
+
const An = { key: 1 }, Dn = { key: 0 }, Mn = {
|
|
787
787
|
key: 0,
|
|
788
788
|
id: "booking-availability-packages"
|
|
789
789
|
}, Rn = {
|
|
@@ -802,7 +802,7 @@ const Dn = { key: 1 }, An = { key: 0 }, Mn = {
|
|
|
802
802
|
}, qn = {
|
|
803
803
|
key: 2,
|
|
804
804
|
id: "reservation-availability-next-dates"
|
|
805
|
-
},
|
|
805
|
+
}, jn = { class: "konnectio-hotel-availability-title" }, Gn = { class: "reservation-special-offers-grid" }, Yn = ["title"];
|
|
806
806
|
const Kn = {
|
|
807
807
|
key: 2,
|
|
808
808
|
class: "konnectio-listing-loading"
|
|
@@ -810,7 +810,7 @@ const Kn = {
|
|
|
810
810
|
key: 0,
|
|
811
811
|
id: "konnectio-hotel-addons"
|
|
812
812
|
};
|
|
813
|
-
const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei = /* @__PURE__ */ wn(() => /* @__PURE__ */ y("br", null, null, -1)), ti = ["onClick"], oi = { class: "fresh-booking-panel" }, ni = { key: 0 }, ii = { key: 1 }, ri = { class: "fresh-booking-split-inputs" }, si = ["onClick"], ai = /* @__PURE__ */
|
|
813
|
+
const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei = /* @__PURE__ */ wn(() => /* @__PURE__ */ y("br", null, null, -1)), ti = ["onClick"], oi = { class: "fresh-booking-panel" }, ni = { key: 0 }, ii = { key: 1 }, ri = { class: "fresh-booking-split-inputs" }, si = ["onClick"], ai = /* @__PURE__ */ G({
|
|
814
814
|
name: "HotelLayout",
|
|
815
815
|
__name: "Hotel",
|
|
816
816
|
props: {
|
|
@@ -823,28 +823,28 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
823
823
|
const { t: e } = ne(), {
|
|
824
824
|
templateID: t,
|
|
825
825
|
countries: n,
|
|
826
|
-
areListingsLoading:
|
|
827
|
-
isPaymentLoading:
|
|
826
|
+
areListingsLoading: p,
|
|
827
|
+
isPaymentLoading: r,
|
|
828
828
|
isReservationFormFilled: h,
|
|
829
829
|
travelingFor: c,
|
|
830
|
-
arrivalTime:
|
|
831
|
-
departureTime:
|
|
830
|
+
arrivalTime: l,
|
|
831
|
+
departureTime: u,
|
|
832
832
|
name: f,
|
|
833
833
|
nameTitle: g,
|
|
834
834
|
email: _,
|
|
835
|
-
phone:
|
|
835
|
+
phone: d,
|
|
836
836
|
firmName: b,
|
|
837
837
|
postal: k,
|
|
838
838
|
city: m,
|
|
839
839
|
address: i,
|
|
840
|
-
country:
|
|
840
|
+
country: s,
|
|
841
841
|
remark: v,
|
|
842
842
|
allergies: T,
|
|
843
843
|
newsMails: $,
|
|
844
844
|
roomSelect: L,
|
|
845
845
|
roomDisplay: H,
|
|
846
|
-
hasValidRoomSelection:
|
|
847
|
-
availabilityData:
|
|
846
|
+
hasValidRoomSelection: A,
|
|
847
|
+
availabilityData: D,
|
|
848
848
|
selectionHasNoAddons: W
|
|
849
849
|
} = K(ie()), {
|
|
850
850
|
arrivalDate: X,
|
|
@@ -853,21 +853,21 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
853
853
|
currency: q,
|
|
854
854
|
disableNewsletterSignup: Te,
|
|
855
855
|
arrivalEarliest: Qe,
|
|
856
|
-
arrivalLatest:
|
|
857
|
-
departureEarliest:
|
|
856
|
+
arrivalLatest: At,
|
|
857
|
+
departureEarliest: Dt,
|
|
858
858
|
departureLatest: Mt,
|
|
859
859
|
enableTracking: Rt,
|
|
860
860
|
arrivalDefault: Bt,
|
|
861
861
|
departureDefault: zt,
|
|
862
862
|
hideArrivalDepartureInputs: Wt,
|
|
863
|
-
disableArrivalUserSelection:
|
|
863
|
+
disableArrivalUserSelection: Ce,
|
|
864
864
|
disableNamePrefix: Ft,
|
|
865
|
-
disableDepartureUserSelection:
|
|
865
|
+
disableDepartureUserSelection: Ie,
|
|
866
866
|
disableTravelingFor: Nt,
|
|
867
867
|
disableTravelingForBleasure: Ut,
|
|
868
868
|
disableCompanyField: qt,
|
|
869
|
-
hasPaymentGateway:
|
|
870
|
-
} = K(he()), { beginCheckout:
|
|
869
|
+
hasPaymentGateway: jt
|
|
870
|
+
} = K(he()), { beginCheckout: Gt } = bt(), {
|
|
871
871
|
initialize: Yt,
|
|
872
872
|
resetTemplate: Kt,
|
|
873
873
|
resetDiscountVoucher: Qt,
|
|
@@ -888,22 +888,22 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
888
888
|
value: "Bleasure"
|
|
889
889
|
}), O;
|
|
890
890
|
}), eo = U(() => {
|
|
891
|
-
const O =
|
|
892
|
-
O.forEach((
|
|
893
|
-
|
|
891
|
+
const O = D.value.roomGroups.slice();
|
|
892
|
+
O.forEach((j) => {
|
|
893
|
+
j.pricesFrom = j.rates.reduce(
|
|
894
894
|
(M, S) => M < S.rackRate ? M : S.rackRate,
|
|
895
895
|
1 / 0
|
|
896
896
|
);
|
|
897
897
|
});
|
|
898
|
-
function P(
|
|
899
|
-
return Xt.value === !0 ?
|
|
898
|
+
function P(j, M) {
|
|
899
|
+
return Xt.value === !0 ? j.pricesFrom > M.pricesFrom ? -1 : 1 : j.pricesFrom > M.pricesFrom ? 1 : -1;
|
|
900
900
|
}
|
|
901
901
|
return O.sort(P);
|
|
902
902
|
}), to = U(() => [[
|
|
903
903
|
parseInt(Qe.value.split(":")[0]),
|
|
904
|
-
parseInt(
|
|
904
|
+
parseInt(At.value.split(":")[0])
|
|
905
905
|
]]), oo = U(() => [[
|
|
906
|
-
parseInt(
|
|
906
|
+
parseInt(Dt.value.split(":")[0]),
|
|
907
907
|
parseInt(Mt.value.split(":")[0])
|
|
908
908
|
]]);
|
|
909
909
|
function Je(O) {
|
|
@@ -916,10 +916,10 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
916
916
|
await Jt(O);
|
|
917
917
|
}
|
|
918
918
|
function ro(O) {
|
|
919
|
-
Rt.value &&
|
|
919
|
+
Rt.value && Gt(), W.value ? O(2) : O();
|
|
920
920
|
}
|
|
921
921
|
function so() {
|
|
922
|
-
|
|
922
|
+
l.value === "" && (l.value = Bt.value), u.value === "" && (u.value = zt.value);
|
|
923
923
|
}
|
|
924
924
|
return qe(() => {
|
|
925
925
|
Yt(), so();
|
|
@@ -927,33 +927,33 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
927
927
|
default: w(() => [
|
|
928
928
|
(E(), R(yo, null, {
|
|
929
929
|
default: w(() => [
|
|
930
|
-
|
|
930
|
+
C(ko, {
|
|
931
931
|
id: "fresh-booking-hotel-module",
|
|
932
932
|
"access-token": O.accessToken,
|
|
933
933
|
type: "hotel"
|
|
934
934
|
}, {
|
|
935
935
|
default: w(() => [
|
|
936
|
-
|
|
936
|
+
C(Po, {
|
|
937
937
|
layout: O.headerLayout,
|
|
938
938
|
onReset: a(Kt)
|
|
939
939
|
}, {
|
|
940
|
-
availability: w(({ next:
|
|
941
|
-
|
|
940
|
+
availability: w(({ next: j }) => [
|
|
941
|
+
C(Pe, null, {
|
|
942
942
|
form: w(() => [
|
|
943
943
|
y("div", Hn, [
|
|
944
944
|
y("div", On, [
|
|
945
|
-
|
|
945
|
+
C(Oo, { booking: !0 })
|
|
946
946
|
]),
|
|
947
947
|
x("", !0),
|
|
948
|
-
a(
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
])) : (E(),
|
|
953
|
-
a(
|
|
954
|
-
a(
|
|
955
|
-
O.onlyShow !== "packages" ? (E(),
|
|
956
|
-
|
|
948
|
+
a(p) ? (E(), I("div", Kn, [
|
|
949
|
+
C(de),
|
|
950
|
+
C(de),
|
|
951
|
+
C(de)
|
|
952
|
+
])) : (E(), I("div", An, [
|
|
953
|
+
a(D).roomGroups.length > 0 || a(D).templates.length > 0 ? (E(), I("div", Dn, [
|
|
954
|
+
a(D).templates.length > 0 && O.onlyShow !== "rooms" ? (E(), I("div", Mn, [
|
|
955
|
+
O.onlyShow !== "packages" ? (E(), I("h2", Rn, [
|
|
956
|
+
C(Q, {
|
|
957
957
|
icon: "box",
|
|
958
958
|
type: "fal",
|
|
959
959
|
color: "header"
|
|
@@ -961,7 +961,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
961
961
|
y("span", null, V(a(e)("booking.availability.packagesTitle")), 1)
|
|
962
962
|
])) : x("", !0),
|
|
963
963
|
y("ul", Bn, [
|
|
964
|
-
(E(!0),
|
|
964
|
+
(E(!0), I(B, null, z(a(D).templates, ({
|
|
965
965
|
id: M,
|
|
966
966
|
name: S,
|
|
967
967
|
templateRoomGroups: se,
|
|
@@ -976,13 +976,13 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
976
976
|
image: ae,
|
|
977
977
|
weekendFee: $e,
|
|
978
978
|
"room-groups": se,
|
|
979
|
-
callback:
|
|
979
|
+
callback: j
|
|
980
980
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback"]))), 128))
|
|
981
981
|
])
|
|
982
982
|
])) : x("", !0),
|
|
983
|
-
a(
|
|
984
|
-
a(
|
|
985
|
-
|
|
983
|
+
a(D).roomGroups.length > 0 && O.onlyShow !== "packages" ? (E(), I("div", zn, [
|
|
984
|
+
a(D).templates.length > 0 && O.onlyShow !== "rooms" ? (E(), I("h2", Wn, [
|
|
985
|
+
C(Q, {
|
|
986
986
|
icon: "house",
|
|
987
987
|
type: "fal",
|
|
988
988
|
color: "header"
|
|
@@ -990,28 +990,28 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
990
990
|
y("span", null, V(a(e)("booking.availability.roomsTitle")), 1)
|
|
991
991
|
])) : x("", !0),
|
|
992
992
|
y("ul", Fn, [
|
|
993
|
-
(E(!0),
|
|
993
|
+
(E(!0), I(B, null, z(eo.value, (M, S) => (E(), R(tn, {
|
|
994
994
|
room: M,
|
|
995
995
|
key: S
|
|
996
996
|
}, null, 8, ["room"]))), 128))
|
|
997
997
|
])
|
|
998
998
|
])) : x("", !0),
|
|
999
|
-
(a(
|
|
999
|
+
(a(D).templates.length === 0 && O.onlyShow !== "rooms" || a(D).roomGroups.length === 0 && O.onlyShow !== "packages") && (O.onlyShow === "rooms" || O.onlyShow === "packages") ? (E(), I("div", Nn, [
|
|
1000
1000
|
y("span", null, V(a(e)("booking.availability.nothingAvailable")), 1)
|
|
1001
1001
|
])) : x("", !0)
|
|
1002
|
-
])) : a(
|
|
1002
|
+
])) : a(D).nextAvailableDates.length === 0 ? (E(), I("div", Un, [
|
|
1003
1003
|
y("span", null, V(a(e)("booking.availability.nothingAvailable")), 1)
|
|
1004
|
-
])) : (E(),
|
|
1005
|
-
y("h2",
|
|
1006
|
-
|
|
1004
|
+
])) : (E(), I("div", qn, [
|
|
1005
|
+
y("h2", jn, [
|
|
1006
|
+
C(Q, {
|
|
1007
1007
|
icon: "calendar-circle-exclamation",
|
|
1008
1008
|
type: "fal",
|
|
1009
1009
|
color: "header"
|
|
1010
1010
|
}),
|
|
1011
1011
|
y("span", null, V(a(e)("booking.availability.nextAvailableDates")), 1)
|
|
1012
1012
|
]),
|
|
1013
|
-
y("ul",
|
|
1014
|
-
(E(!0),
|
|
1013
|
+
y("ul", Gn, [
|
|
1014
|
+
(E(!0), I(B, null, z(a(D).nextAvailableDates, (M, S) => (E(), I("li", { key: S }, [
|
|
1015
1015
|
y("h3", {
|
|
1016
1016
|
title: `${a(te)(M.fromDate)} - ${a(te)(M.toDate)}`
|
|
1017
1017
|
}, [
|
|
@@ -1020,7 +1020,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1020
1020
|
y("ul", null, [
|
|
1021
1021
|
x("", !0),
|
|
1022
1022
|
y("li", null, [
|
|
1023
|
-
|
|
1023
|
+
C(Q, {
|
|
1024
1024
|
icon: "money-bill",
|
|
1025
1025
|
type: "fal",
|
|
1026
1026
|
color: "header"
|
|
@@ -1028,7 +1028,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1028
1028
|
y("span", null, V(a(e)("booking.availability.pricesFrom")) + ": " + V(a(oe)(M.priceStartFrom, a(q))), 1)
|
|
1029
1029
|
])
|
|
1030
1030
|
]),
|
|
1031
|
-
|
|
1031
|
+
C(le, {
|
|
1032
1032
|
label: a(e)("booking.availability.selectDates"),
|
|
1033
1033
|
"full-width": "",
|
|
1034
1034
|
onClickEvent: (se) => no(M.fromDate, M.toDate)
|
|
@@ -1040,36 +1040,36 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1040
1040
|
])
|
|
1041
1041
|
]),
|
|
1042
1042
|
navigation: w(() => [
|
|
1043
|
-
|
|
1043
|
+
C(le, {
|
|
1044
1044
|
label: a(W) ? a(e)("booking.availability.nextButton") : a(e)("general.chooseAddons"),
|
|
1045
|
-
disabled: !a(
|
|
1045
|
+
disabled: !a(A),
|
|
1046
1046
|
"is-loading": !1,
|
|
1047
1047
|
"full-width": "",
|
|
1048
|
-
onClickEvent: (M) => ro(
|
|
1048
|
+
onClickEvent: (M) => ro(j)
|
|
1049
1049
|
}, null, 8, ["label", "disabled", "onClickEvent"])
|
|
1050
1050
|
]),
|
|
1051
1051
|
_: 2
|
|
1052
1052
|
}, 1024)
|
|
1053
1053
|
]),
|
|
1054
|
-
addons: w(({ next:
|
|
1055
|
-
|
|
1054
|
+
addons: w(({ next: j, prev: M }) => [
|
|
1055
|
+
C(Pe, null, {
|
|
1056
1056
|
form: w(() => [
|
|
1057
1057
|
y("form", Qn, [
|
|
1058
1058
|
y("h2", null, [
|
|
1059
1059
|
y("span", null, V(a(e)("booking.reservation.addons")), 1)
|
|
1060
1060
|
]),
|
|
1061
1061
|
y("div", null, [
|
|
1062
|
-
isNaN(a(t)) ? (E(),
|
|
1063
|
-
(E(!0),
|
|
1062
|
+
isNaN(a(t)) ? (E(), I("div", Jn, [
|
|
1063
|
+
(E(!0), I(B, null, z(a(H), (S) => (E(), I("ul", {
|
|
1064
1064
|
key: S.roomGroupID
|
|
1065
1065
|
}, [
|
|
1066
|
-
(E(!0),
|
|
1066
|
+
(E(!0), I(B, null, z(S.variants, (se, ae) => (E(), I("li", {
|
|
1067
1067
|
key: se.ratePlanID
|
|
1068
1068
|
}, [
|
|
1069
1069
|
y("h4", null, [
|
|
1070
1070
|
y("span", null, V(a(ue)(S.title)), 1)
|
|
1071
1071
|
]),
|
|
1072
|
-
(E(!0),
|
|
1072
|
+
(E(!0), I(B, null, z(se.rooms, (N, $e) => (E(), I("table", {
|
|
1073
1073
|
key: $e,
|
|
1074
1074
|
class: "fresh-booking-table"
|
|
1075
1075
|
}, [
|
|
@@ -1081,7 +1081,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1081
1081
|
x("", !0),
|
|
1082
1082
|
y("th", Xn, [
|
|
1083
1083
|
y("b", null, [
|
|
1084
|
-
|
|
1084
|
+
C(Q, {
|
|
1085
1085
|
icon: "male",
|
|
1086
1086
|
type: "fas",
|
|
1087
1087
|
color: "font"
|
|
@@ -1093,19 +1093,19 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1093
1093
|
type: "fas",
|
|
1094
1094
|
color: "font"
|
|
1095
1095
|
})) : x("", !0),
|
|
1096
|
-
N.childrenCount > 0 ? (E(),
|
|
1096
|
+
N.childrenCount > 0 ? (E(), I("span", Zn, V(N.childrenCount), 1)) : x("", !0)
|
|
1097
1097
|
])
|
|
1098
1098
|
])
|
|
1099
1099
|
])
|
|
1100
1100
|
]),
|
|
1101
1101
|
y("tbody", null, [
|
|
1102
|
-
(E(!0),
|
|
1102
|
+
(E(!0), I(B, null, z(S.addons, ({
|
|
1103
1103
|
quantityStrategy: Se,
|
|
1104
1104
|
maximumNumber: ao,
|
|
1105
1105
|
id: pe,
|
|
1106
1106
|
name: lo,
|
|
1107
1107
|
price: uo
|
|
1108
|
-
}) => (E(),
|
|
1108
|
+
}) => (E(), I("tr", { key: pe }, [
|
|
1109
1109
|
y("td", null, [
|
|
1110
1110
|
y("b", null, V(a(ue)(lo)), 1),
|
|
1111
1111
|
ei,
|
|
@@ -1136,10 +1136,10 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1136
1136
|
])
|
|
1137
1137
|
]),
|
|
1138
1138
|
navigation: w(() => [
|
|
1139
|
-
|
|
1139
|
+
C(le, {
|
|
1140
1140
|
label: a(e)("general.startReservation"),
|
|
1141
1141
|
"full-width": "",
|
|
1142
|
-
onClickEvent:
|
|
1142
|
+
onClickEvent: j
|
|
1143
1143
|
}, null, 8, ["label", "onClickEvent"]),
|
|
1144
1144
|
y("button", {
|
|
1145
1145
|
class: "konnectio-abort-reservation link",
|
|
@@ -1151,8 +1151,8 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1151
1151
|
_: 2
|
|
1152
1152
|
}, 1024)
|
|
1153
1153
|
]),
|
|
1154
|
-
reservation: w(({ next:
|
|
1155
|
-
|
|
1154
|
+
reservation: w(({ next: j, prev: M }) => [
|
|
1155
|
+
C(Pe, {
|
|
1156
1156
|
"show-terms-notice": !0,
|
|
1157
1157
|
"show-gift-card": !0
|
|
1158
1158
|
}, {
|
|
@@ -1161,24 +1161,24 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1161
1161
|
y("h2", null, [
|
|
1162
1162
|
y("span", null, V(a(e)("booking.reservation.detailsTitle")), 1)
|
|
1163
1163
|
]),
|
|
1164
|
-
!a(Wt) && !(a(
|
|
1164
|
+
!a(Wt) && !(a(Ce) && a(Ie)) ? (E(), I("ul", {
|
|
1165
1165
|
key: 0,
|
|
1166
|
-
class: ke({ "fresh-booking-split-inputs": !a(
|
|
1166
|
+
class: ke({ "fresh-booking-split-inputs": !a(Ce) && !a(Ie) })
|
|
1167
1167
|
}, [
|
|
1168
|
-
a(
|
|
1169
|
-
|
|
1170
|
-
modelValue: a(
|
|
1171
|
-
"onUpdate:modelValue": P[1] || (P[1] = (S) => F(
|
|
1168
|
+
a(Ce) ? x("", !0) : (E(), I("li", ni, [
|
|
1169
|
+
C(tt, {
|
|
1170
|
+
modelValue: a(l),
|
|
1171
|
+
"onUpdate:modelValue": P[1] || (P[1] = (S) => F(l) ? l.value = S : null),
|
|
1172
1172
|
label: a(e)("booking.reservation.arrivalTime"),
|
|
1173
1173
|
icon: "hourglass-start",
|
|
1174
1174
|
"hour-range": to.value,
|
|
1175
1175
|
required: ""
|
|
1176
1176
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1177
1177
|
])),
|
|
1178
|
-
a(
|
|
1179
|
-
|
|
1180
|
-
modelValue: a(
|
|
1181
|
-
"onUpdate:modelValue": P[2] || (P[2] = (S) => F(
|
|
1178
|
+
a(Ie) ? x("", !0) : (E(), I("li", ii, [
|
|
1179
|
+
C(tt, {
|
|
1180
|
+
modelValue: a(u),
|
|
1181
|
+
"onUpdate:modelValue": P[2] || (P[2] = (S) => F(u) ? u.value = S : null),
|
|
1182
1182
|
label: a(e)("booking.reservation.departureTime"),
|
|
1183
1183
|
icon: "hourglass-end",
|
|
1184
1184
|
"hour-range": oo.value,
|
|
@@ -1186,7 +1186,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1186
1186
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1187
1187
|
]))
|
|
1188
1188
|
], 2)) : x("", !0),
|
|
1189
|
-
|
|
1189
|
+
C(vn, {
|
|
1190
1190
|
modelValue: a(f),
|
|
1191
1191
|
"onUpdate:modelValue": P[3] || (P[3] = (S) => F(f) ? f.value = S : null),
|
|
1192
1192
|
title: a(g),
|
|
@@ -1197,7 +1197,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1197
1197
|
placeholder: a(e)("booking.reservation.namePlaceholder"),
|
|
1198
1198
|
required: ""
|
|
1199
1199
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1200
|
-
|
|
1200
|
+
C(ee, {
|
|
1201
1201
|
modelValue: a(_),
|
|
1202
1202
|
"onUpdate:modelValue": P[5] || (P[5] = (S) => F(_) ? _.value = S : null),
|
|
1203
1203
|
type: "email",
|
|
@@ -1227,23 +1227,23 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1227
1227
|
icon: "id-card",
|
|
1228
1228
|
placeholder: a(e)("booking.reservation.companyNamePlaceholder")
|
|
1229
1229
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1230
|
-
|
|
1231
|
-
modelValue: a(
|
|
1232
|
-
"onUpdate:modelValue": P[8] || (P[8] = (S) => F(
|
|
1230
|
+
C(Do, {
|
|
1231
|
+
modelValue: a(d),
|
|
1232
|
+
"onUpdate:modelValue": P[8] || (P[8] = (S) => F(d) ? d.value = S : null),
|
|
1233
1233
|
icon: "phone-office",
|
|
1234
1234
|
label: a(e)("booking.reservation.phone"),
|
|
1235
1235
|
placeholder: a(e)("booking.reservation.phonePlaceholder"),
|
|
1236
1236
|
required: ""
|
|
1237
1237
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1238
|
-
|
|
1239
|
-
modelValue: a(
|
|
1240
|
-
"onUpdate:modelValue": P[9] || (P[9] = (S) => F(
|
|
1238
|
+
C(pn, {
|
|
1239
|
+
modelValue: a(s),
|
|
1240
|
+
"onUpdate:modelValue": P[9] || (P[9] = (S) => F(s) ? s.value = S : null),
|
|
1241
1241
|
label: a(e)("booking.reservation.country"),
|
|
1242
1242
|
placeholder: a(e)("booking.reservation.countryPlaceholder"),
|
|
1243
1243
|
options: a(n),
|
|
1244
1244
|
required: ""
|
|
1245
1245
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1246
|
-
|
|
1246
|
+
C(ee, {
|
|
1247
1247
|
modelValue: a(i),
|
|
1248
1248
|
"onUpdate:modelValue": P[10] || (P[10] = (S) => F(i) ? i.value = S : null),
|
|
1249
1249
|
type: "textarea",
|
|
@@ -1256,7 +1256,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1256
1256
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1257
1257
|
y("ul", ri, [
|
|
1258
1258
|
y("li", null, [
|
|
1259
|
-
|
|
1259
|
+
C(ee, {
|
|
1260
1260
|
modelValue: a(k),
|
|
1261
1261
|
"onUpdate:modelValue": P[11] || (P[11] = (S) => F(k) ? k.value = S : null),
|
|
1262
1262
|
type: "text",
|
|
@@ -1269,7 +1269,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1269
1269
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1270
1270
|
]),
|
|
1271
1271
|
y("li", null, [
|
|
1272
|
-
|
|
1272
|
+
C(ee, {
|
|
1273
1273
|
modelValue: a(m),
|
|
1274
1274
|
"onUpdate:modelValue": P[12] || (P[12] = (S) => F(m) ? m.value = S : null),
|
|
1275
1275
|
type: "text",
|
|
@@ -1282,7 +1282,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1282
1282
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1283
1283
|
])
|
|
1284
1284
|
]),
|
|
1285
|
-
|
|
1285
|
+
C(ee, {
|
|
1286
1286
|
modelValue: a(v),
|
|
1287
1287
|
"onUpdate:modelValue": P[13] || (P[13] = (S) => F(v) ? v.value = S : null),
|
|
1288
1288
|
type: "textarea",
|
|
@@ -1290,7 +1290,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1290
1290
|
icon: "info-circle",
|
|
1291
1291
|
placeholder: a(e)("booking.reservation.remarkPlaceholder")
|
|
1292
1292
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1293
|
-
|
|
1293
|
+
C(ee, {
|
|
1294
1294
|
modelValue: a(T),
|
|
1295
1295
|
"onUpdate:modelValue": P[14] || (P[14] = (S) => F(T) ? T.value = S : null),
|
|
1296
1296
|
type: "textarea",
|
|
@@ -1310,12 +1310,12 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1310
1310
|
]),
|
|
1311
1311
|
navigation: w(() => [
|
|
1312
1312
|
y("div", null, [
|
|
1313
|
-
|
|
1314
|
-
label: a(
|
|
1313
|
+
C(le, {
|
|
1314
|
+
label: a(jt) ? a(e)("booking.reservation.nextButton") : a(e)("general.confirmReservation"),
|
|
1315
1315
|
disabled: !a(h),
|
|
1316
|
-
"is-loading": a(
|
|
1316
|
+
"is-loading": a(r),
|
|
1317
1317
|
"full-width": "",
|
|
1318
|
-
onClickEvent: (S) => io(
|
|
1318
|
+
onClickEvent: (S) => io(j)
|
|
1319
1319
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
1320
1320
|
y("button", {
|
|
1321
1321
|
class: "konnectio-abort-reservation link",
|
|
@@ -1329,10 +1329,10 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1329
1329
|
}, 1024)
|
|
1330
1330
|
]),
|
|
1331
1331
|
payment: w(() => [
|
|
1332
|
-
|
|
1332
|
+
C(Mo)
|
|
1333
1333
|
]),
|
|
1334
1334
|
confirmation: w(() => [
|
|
1335
|
-
|
|
1335
|
+
C(xo, {
|
|
1336
1336
|
message: a(e)("booking.confirmation.thankYou")
|
|
1337
1337
|
}, null, 8, ["message"])
|
|
1338
1338
|
]),
|
|
@@ -1343,7 +1343,7 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1343
1343
|
}, 8, ["access-token"])
|
|
1344
1344
|
]),
|
|
1345
1345
|
fallback: w(() => [
|
|
1346
|
-
|
|
1346
|
+
C(xn)
|
|
1347
1347
|
]),
|
|
1348
1348
|
_: 1
|
|
1349
1349
|
}))
|
|
@@ -1352,8 +1352,8 @@ const Xn = { class: "fresh-booking-event-addons-price" }, Zn = { key: 1 }, ei =
|
|
|
1352
1352
|
}, 8, ["styling"]));
|
|
1353
1353
|
}
|
|
1354
1354
|
}), fe = /* @__PURE__ */ J(ai, [["__scopeId", "data-v-fd9b6d4f"]]);
|
|
1355
|
-
var
|
|
1356
|
-
function
|
|
1355
|
+
var It = { exports: {} }, xe = { exports: {} }, we = { exports: {} }, ot;
|
|
1356
|
+
function Ge() {
|
|
1357
1357
|
return ot || (ot = 1, function(o) {
|
|
1358
1358
|
(function(e, t) {
|
|
1359
1359
|
o.exports ? o.exports = t() : e.EvEmitter = t();
|
|
@@ -1361,30 +1361,30 @@ function je() {
|
|
|
1361
1361
|
function e() {
|
|
1362
1362
|
}
|
|
1363
1363
|
var t = e.prototype;
|
|
1364
|
-
return t.on = function(n,
|
|
1365
|
-
if (!(!n || !
|
|
1366
|
-
var
|
|
1367
|
-
return h.indexOf(
|
|
1364
|
+
return t.on = function(n, p) {
|
|
1365
|
+
if (!(!n || !p)) {
|
|
1366
|
+
var r = this._events = this._events || {}, h = r[n] = r[n] || [];
|
|
1367
|
+
return h.indexOf(p) == -1 && h.push(p), this;
|
|
1368
1368
|
}
|
|
1369
|
-
}, t.once = function(n,
|
|
1370
|
-
if (!(!n || !
|
|
1371
|
-
this.on(n,
|
|
1372
|
-
var
|
|
1373
|
-
return h[
|
|
1369
|
+
}, t.once = function(n, p) {
|
|
1370
|
+
if (!(!n || !p)) {
|
|
1371
|
+
this.on(n, p);
|
|
1372
|
+
var r = this._onceEvents = this._onceEvents || {}, h = r[n] = r[n] || {};
|
|
1373
|
+
return h[p] = !0, this;
|
|
1374
1374
|
}
|
|
1375
|
-
}, t.off = function(n,
|
|
1376
|
-
var
|
|
1377
|
-
if (!(!
|
|
1378
|
-
var h =
|
|
1379
|
-
return h != -1 &&
|
|
1375
|
+
}, t.off = function(n, p) {
|
|
1376
|
+
var r = this._events && this._events[n];
|
|
1377
|
+
if (!(!r || !r.length)) {
|
|
1378
|
+
var h = r.indexOf(p);
|
|
1379
|
+
return h != -1 && r.splice(h, 1), this;
|
|
1380
1380
|
}
|
|
1381
|
-
}, t.emitEvent = function(n,
|
|
1382
|
-
var
|
|
1383
|
-
if (!(!
|
|
1384
|
-
|
|
1385
|
-
for (var h = this._onceEvents && this._onceEvents[n], c = 0; c <
|
|
1386
|
-
var
|
|
1387
|
-
|
|
1381
|
+
}, t.emitEvent = function(n, p) {
|
|
1382
|
+
var r = this._events && this._events[n];
|
|
1383
|
+
if (!(!r || !r.length)) {
|
|
1384
|
+
r = r.slice(0), p = p || [];
|
|
1385
|
+
for (var h = this._onceEvents && this._onceEvents[n], c = 0; c < r.length; c++) {
|
|
1386
|
+
var l = r[c], u = h && h[l];
|
|
1387
|
+
u && (this.off(n, l), delete h[l]), l.apply(this, p);
|
|
1388
1388
|
}
|
|
1389
1389
|
return this;
|
|
1390
1390
|
}
|
|
@@ -1406,15 +1406,15 @@ function Ye() {
|
|
|
1406
1406
|
(function(e, t) {
|
|
1407
1407
|
o.exports ? o.exports = t() : e.getSize = t();
|
|
1408
1408
|
})(window, function() {
|
|
1409
|
-
function t(
|
|
1410
|
-
var b = parseFloat(
|
|
1409
|
+
function t(d) {
|
|
1410
|
+
var b = parseFloat(d), k = d.indexOf("%") == -1 && !isNaN(b);
|
|
1411
1411
|
return k && b;
|
|
1412
1412
|
}
|
|
1413
1413
|
function n() {
|
|
1414
1414
|
}
|
|
1415
|
-
var
|
|
1416
|
-
console.error(
|
|
1417
|
-
},
|
|
1415
|
+
var p = typeof console > "u" ? n : function(d) {
|
|
1416
|
+
console.error(d);
|
|
1417
|
+
}, r = [
|
|
1418
1418
|
"paddingLeft",
|
|
1419
1419
|
"paddingRight",
|
|
1420
1420
|
"paddingTop",
|
|
@@ -1427,9 +1427,9 @@ function Ye() {
|
|
|
1427
1427
|
"borderRightWidth",
|
|
1428
1428
|
"borderTopWidth",
|
|
1429
1429
|
"borderBottomWidth"
|
|
1430
|
-
], h =
|
|
1430
|
+
], h = r.length;
|
|
1431
1431
|
function c() {
|
|
1432
|
-
for (var
|
|
1432
|
+
for (var d = {
|
|
1433
1433
|
width: 0,
|
|
1434
1434
|
height: 0,
|
|
1435
1435
|
innerWidth: 0,
|
|
@@ -1437,51 +1437,51 @@ function Ye() {
|
|
|
1437
1437
|
outerWidth: 0,
|
|
1438
1438
|
outerHeight: 0
|
|
1439
1439
|
}, b = 0; b < h; b++) {
|
|
1440
|
-
var k =
|
|
1441
|
-
|
|
1440
|
+
var k = r[b];
|
|
1441
|
+
d[k] = 0;
|
|
1442
1442
|
}
|
|
1443
|
-
return
|
|
1443
|
+
return d;
|
|
1444
1444
|
}
|
|
1445
|
-
function d
|
|
1446
|
-
var b = getComputedStyle(
|
|
1447
|
-
return b ||
|
|
1445
|
+
function l(d) {
|
|
1446
|
+
var b = getComputedStyle(d);
|
|
1447
|
+
return b || p("Style returned " + b + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), b;
|
|
1448
1448
|
}
|
|
1449
|
-
var
|
|
1449
|
+
var u = !1, f;
|
|
1450
1450
|
function g() {
|
|
1451
|
-
if (!
|
|
1452
|
-
|
|
1453
|
-
var
|
|
1454
|
-
|
|
1451
|
+
if (!u) {
|
|
1452
|
+
u = !0;
|
|
1453
|
+
var d = document.createElement("div");
|
|
1454
|
+
d.style.width = "200px", d.style.padding = "1px 2px 3px 4px", d.style.borderStyle = "solid", d.style.borderWidth = "1px 2px 3px 4px", d.style.boxSizing = "border-box";
|
|
1455
1455
|
var b = document.body || document.documentElement;
|
|
1456
|
-
b.appendChild(
|
|
1457
|
-
var k = d
|
|
1458
|
-
f = Math.round(t(k.width)) == 200, _.isBoxSizeOuter = f, b.removeChild(
|
|
1456
|
+
b.appendChild(d);
|
|
1457
|
+
var k = l(d);
|
|
1458
|
+
f = Math.round(t(k.width)) == 200, _.isBoxSizeOuter = f, b.removeChild(d);
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
|
-
function _(
|
|
1462
|
-
if (g(), typeof
|
|
1463
|
-
var b = d
|
|
1461
|
+
function _(d) {
|
|
1462
|
+
if (g(), typeof d == "string" && (d = document.querySelector(d)), !(!d || typeof d != "object" || !d.nodeType)) {
|
|
1463
|
+
var b = l(d);
|
|
1464
1464
|
if (b.display == "none")
|
|
1465
1465
|
return c();
|
|
1466
1466
|
var k = {};
|
|
1467
|
-
k.width =
|
|
1467
|
+
k.width = d.offsetWidth, k.height = d.offsetHeight;
|
|
1468
1468
|
for (var m = k.isBorderBox = b.boxSizing == "border-box", i = 0; i < h; i++) {
|
|
1469
|
-
var
|
|
1470
|
-
k[
|
|
1469
|
+
var s = r[i], v = b[s], T = parseFloat(v);
|
|
1470
|
+
k[s] = isNaN(T) ? 0 : T;
|
|
1471
1471
|
}
|
|
1472
|
-
var $ = k.paddingLeft + k.paddingRight, L = k.paddingTop + k.paddingBottom, H = k.marginLeft + k.marginRight,
|
|
1472
|
+
var $ = k.paddingLeft + k.paddingRight, L = k.paddingTop + k.paddingBottom, H = k.marginLeft + k.marginRight, A = k.marginTop + k.marginBottom, D = k.borderLeftWidth + k.borderRightWidth, W = k.borderTopWidth + k.borderBottomWidth, X = m && f, re = t(b.width);
|
|
1473
1473
|
re !== !1 && (k.width = re + // add padding and border unless it's already including it
|
|
1474
|
-
(X ? 0 : $ +
|
|
1474
|
+
(X ? 0 : $ + D));
|
|
1475
1475
|
var q = t(b.height);
|
|
1476
1476
|
return q !== !1 && (k.height = q + // add padding and border unless it's already including it
|
|
1477
|
-
(X ? 0 : L + W)), k.innerWidth = k.width - ($ +
|
|
1477
|
+
(X ? 0 : L + W)), k.innerWidth = k.width - ($ + D), k.innerHeight = k.height - (L + W), k.outerWidth = k.width + H, k.outerHeight = k.height + A, k;
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
return _;
|
|
1481
1481
|
});
|
|
1482
1482
|
}(He)), He.exports;
|
|
1483
1483
|
}
|
|
1484
|
-
var Oe = { exports: {} },
|
|
1484
|
+
var Oe = { exports: {} }, Ae = { exports: {} }, it;
|
|
1485
1485
|
function li() {
|
|
1486
1486
|
return it || (it = 1, function(o) {
|
|
1487
1487
|
(function(e, t) {
|
|
@@ -1493,17 +1493,17 @@ function li() {
|
|
|
1493
1493
|
return "matches";
|
|
1494
1494
|
if (n.matchesSelector)
|
|
1495
1495
|
return "matchesSelector";
|
|
1496
|
-
for (var
|
|
1497
|
-
var h =
|
|
1496
|
+
for (var p = ["webkit", "moz", "ms", "o"], r = 0; r < p.length; r++) {
|
|
1497
|
+
var h = p[r], c = h + "MatchesSelector";
|
|
1498
1498
|
if (n[c])
|
|
1499
1499
|
return c;
|
|
1500
1500
|
}
|
|
1501
1501
|
}();
|
|
1502
|
-
return function(
|
|
1503
|
-
return
|
|
1502
|
+
return function(p, r) {
|
|
1503
|
+
return p[t](r);
|
|
1504
1504
|
};
|
|
1505
1505
|
});
|
|
1506
|
-
}(
|
|
1506
|
+
}(Ae)), Ae.exports;
|
|
1507
1507
|
}
|
|
1508
1508
|
var rt;
|
|
1509
1509
|
function ui() {
|
|
@@ -1517,108 +1517,108 @@ function ui() {
|
|
|
1517
1517
|
e.matchesSelector
|
|
1518
1518
|
);
|
|
1519
1519
|
})(window, function(t, n) {
|
|
1520
|
-
var
|
|
1521
|
-
|
|
1522
|
-
for (var
|
|
1523
|
-
c[
|
|
1520
|
+
var p = {};
|
|
1521
|
+
p.extend = function(c, l) {
|
|
1522
|
+
for (var u in l)
|
|
1523
|
+
c[u] = l[u];
|
|
1524
1524
|
return c;
|
|
1525
|
-
},
|
|
1526
|
-
return (c %
|
|
1525
|
+
}, p.modulo = function(c, l) {
|
|
1526
|
+
return (c % l + l) % l;
|
|
1527
1527
|
};
|
|
1528
|
-
var
|
|
1529
|
-
|
|
1528
|
+
var r = Array.prototype.slice;
|
|
1529
|
+
p.makeArray = function(c) {
|
|
1530
1530
|
if (Array.isArray(c))
|
|
1531
1531
|
return c;
|
|
1532
1532
|
if (c == null)
|
|
1533
1533
|
return [];
|
|
1534
|
-
var
|
|
1535
|
-
return
|
|
1536
|
-
},
|
|
1537
|
-
var
|
|
1538
|
-
|
|
1539
|
-
},
|
|
1534
|
+
var l = typeof c == "object" && typeof c.length == "number";
|
|
1535
|
+
return l ? r.call(c) : [c];
|
|
1536
|
+
}, p.removeFrom = function(c, l) {
|
|
1537
|
+
var u = c.indexOf(l);
|
|
1538
|
+
u != -1 && c.splice(u, 1);
|
|
1539
|
+
}, p.getParent = function(c, l) {
|
|
1540
1540
|
for (; c.parentNode && c != document.body; )
|
|
1541
|
-
if (c = c.parentNode, n(c,
|
|
1541
|
+
if (c = c.parentNode, n(c, l))
|
|
1542
1542
|
return c;
|
|
1543
|
-
},
|
|
1543
|
+
}, p.getQueryElement = function(c) {
|
|
1544
1544
|
return typeof c == "string" ? document.querySelector(c) : c;
|
|
1545
|
-
},
|
|
1546
|
-
var
|
|
1547
|
-
this[
|
|
1548
|
-
},
|
|
1549
|
-
c =
|
|
1550
|
-
var
|
|
1545
|
+
}, p.handleEvent = function(c) {
|
|
1546
|
+
var l = "on" + c.type;
|
|
1547
|
+
this[l] && this[l](c);
|
|
1548
|
+
}, p.filterFindElements = function(c, l) {
|
|
1549
|
+
c = p.makeArray(c);
|
|
1550
|
+
var u = [];
|
|
1551
1551
|
return c.forEach(function(f) {
|
|
1552
1552
|
if (f instanceof HTMLElement) {
|
|
1553
|
-
if (!
|
|
1554
|
-
|
|
1553
|
+
if (!l) {
|
|
1554
|
+
u.push(f);
|
|
1555
1555
|
return;
|
|
1556
1556
|
}
|
|
1557
|
-
n(f,
|
|
1558
|
-
for (var g = f.querySelectorAll(
|
|
1559
|
-
|
|
1557
|
+
n(f, l) && u.push(f);
|
|
1558
|
+
for (var g = f.querySelectorAll(l), _ = 0; _ < g.length; _++)
|
|
1559
|
+
u.push(g[_]);
|
|
1560
1560
|
}
|
|
1561
|
-
}),
|
|
1562
|
-
},
|
|
1563
|
-
|
|
1564
|
-
var f = c.prototype[
|
|
1565
|
-
c.prototype[
|
|
1561
|
+
}), u;
|
|
1562
|
+
}, p.debounceMethod = function(c, l, u) {
|
|
1563
|
+
u = u || 100;
|
|
1564
|
+
var f = c.prototype[l], g = l + "Timeout";
|
|
1565
|
+
c.prototype[l] = function() {
|
|
1566
1566
|
var _ = this[g];
|
|
1567
1567
|
clearTimeout(_);
|
|
1568
|
-
var
|
|
1568
|
+
var d = arguments, b = this;
|
|
1569
1569
|
this[g] = setTimeout(function() {
|
|
1570
|
-
f.apply(b,
|
|
1571
|
-
},
|
|
1570
|
+
f.apply(b, d), delete b[g];
|
|
1571
|
+
}, u);
|
|
1572
1572
|
};
|
|
1573
|
-
},
|
|
1574
|
-
var
|
|
1575
|
-
|
|
1576
|
-
},
|
|
1577
|
-
return c.replace(/(.)([A-Z])/g, function(
|
|
1578
|
-
return
|
|
1573
|
+
}, p.docReady = function(c) {
|
|
1574
|
+
var l = document.readyState;
|
|
1575
|
+
l == "complete" || l == "interactive" ? setTimeout(c) : document.addEventListener("DOMContentLoaded", c);
|
|
1576
|
+
}, p.toDashed = function(c) {
|
|
1577
|
+
return c.replace(/(.)([A-Z])/g, function(l, u, f) {
|
|
1578
|
+
return u + "-" + f;
|
|
1579
1579
|
}).toLowerCase();
|
|
1580
1580
|
};
|
|
1581
1581
|
var h = t.console;
|
|
1582
|
-
return
|
|
1583
|
-
|
|
1584
|
-
var
|
|
1585
|
-
|
|
1586
|
-
var i = m.getAttribute(f) || m.getAttribute(b),
|
|
1582
|
+
return p.htmlInit = function(c, l) {
|
|
1583
|
+
p.docReady(function() {
|
|
1584
|
+
var u = p.toDashed(l), f = "data-" + u, g = document.querySelectorAll("[" + f + "]"), _ = document.querySelectorAll(".js-" + u), d = p.makeArray(g).concat(p.makeArray(_)), b = f + "-options", k = t.jQuery;
|
|
1585
|
+
d.forEach(function(m) {
|
|
1586
|
+
var i = m.getAttribute(f) || m.getAttribute(b), s;
|
|
1587
1587
|
try {
|
|
1588
|
-
|
|
1588
|
+
s = i && JSON.parse(i);
|
|
1589
1589
|
} catch (T) {
|
|
1590
1590
|
h && h.error("Error parsing " + f + " on " + m.className + ": " + T);
|
|
1591
1591
|
return;
|
|
1592
1592
|
}
|
|
1593
|
-
var v = new c(m,
|
|
1594
|
-
k && k.data(m,
|
|
1593
|
+
var v = new c(m, s);
|
|
1594
|
+
k && k.data(m, l, v);
|
|
1595
1595
|
});
|
|
1596
1596
|
});
|
|
1597
|
-
},
|
|
1597
|
+
}, p;
|
|
1598
1598
|
});
|
|
1599
1599
|
}(Oe)), Oe.exports;
|
|
1600
1600
|
}
|
|
1601
|
-
var
|
|
1601
|
+
var De = { exports: {} }, st;
|
|
1602
1602
|
function di() {
|
|
1603
1603
|
return st || (st = 1, function(o) {
|
|
1604
1604
|
(function(e, t) {
|
|
1605
1605
|
o.exports ? o.exports = t(
|
|
1606
|
-
|
|
1606
|
+
Ge(),
|
|
1607
1607
|
Ye()
|
|
1608
1608
|
) : (e.Outlayer = {}, e.Outlayer.Item = t(
|
|
1609
1609
|
e.EvEmitter,
|
|
1610
1610
|
e.getSize
|
|
1611
1611
|
));
|
|
1612
1612
|
})(window, function(t, n) {
|
|
1613
|
-
function
|
|
1613
|
+
function p(m) {
|
|
1614
1614
|
for (var i in m)
|
|
1615
1615
|
return !1;
|
|
1616
1616
|
return i = null, !0;
|
|
1617
1617
|
}
|
|
1618
|
-
var
|
|
1618
|
+
var r = document.documentElement.style, h = typeof r.transition == "string" ? "transition" : "WebkitTransition", c = typeof r.transform == "string" ? "transform" : "WebkitTransform", l = {
|
|
1619
1619
|
WebkitTransition: "webkitTransitionEnd",
|
|
1620
1620
|
transition: "transitionend"
|
|
1621
|
-
}[h],
|
|
1621
|
+
}[h], u = {
|
|
1622
1622
|
transform: c,
|
|
1623
1623
|
transition: h,
|
|
1624
1624
|
transitionDuration: h + "Duration",
|
|
@@ -1647,18 +1647,18 @@ function di() {
|
|
|
1647
1647
|
this.size = n(this.element);
|
|
1648
1648
|
}, g.css = function(m) {
|
|
1649
1649
|
var i = this.element.style;
|
|
1650
|
-
for (var
|
|
1651
|
-
var v =
|
|
1652
|
-
i[v] = m[
|
|
1650
|
+
for (var s in m) {
|
|
1651
|
+
var v = u[s] || s;
|
|
1652
|
+
i[v] = m[s];
|
|
1653
1653
|
}
|
|
1654
1654
|
}, g.getPosition = function() {
|
|
1655
|
-
var m = getComputedStyle(this.element), i = this.layout._getOption("originLeft"),
|
|
1656
|
-
v.indexOf("%") != -1 && ($ = $ / 100 * H.width), T.indexOf("%") != -1 && (L = L / 100 * H.height), $ = isNaN($) ? 0 : $, L = isNaN(L) ? 0 : L, $ -= i ? H.paddingLeft : H.paddingRight, L -=
|
|
1655
|
+
var m = getComputedStyle(this.element), i = this.layout._getOption("originLeft"), s = this.layout._getOption("originTop"), v = m[i ? "left" : "right"], T = m[s ? "top" : "bottom"], $ = parseFloat(v), L = parseFloat(T), H = this.layout.size;
|
|
1656
|
+
v.indexOf("%") != -1 && ($ = $ / 100 * H.width), T.indexOf("%") != -1 && (L = L / 100 * H.height), $ = isNaN($) ? 0 : $, L = isNaN(L) ? 0 : L, $ -= i ? H.paddingLeft : H.paddingRight, L -= s ? H.paddingTop : H.paddingBottom, this.position.x = $, this.position.y = L;
|
|
1657
1657
|
}, g.layoutPosition = function() {
|
|
1658
|
-
var m = this.layout.size, i = {},
|
|
1658
|
+
var m = this.layout.size, i = {}, s = this.layout._getOption("originLeft"), v = this.layout._getOption("originTop"), T = s ? "paddingLeft" : "paddingRight", $ = s ? "left" : "right", L = s ? "right" : "left", H = this.position.x + m[T];
|
|
1659
1659
|
i[$] = this.getXValue(H), i[L] = "";
|
|
1660
|
-
var
|
|
1661
|
-
i[
|
|
1660
|
+
var A = v ? "paddingTop" : "paddingBottom", D = v ? "top" : "bottom", W = v ? "bottom" : "top", X = this.position.y + m[A];
|
|
1661
|
+
i[D] = this.getYValue(X), i[W] = "", this.css(i), this.emitEvent("layout", [this]);
|
|
1662
1662
|
}, g.getXValue = function(m) {
|
|
1663
1663
|
var i = this.layout._getOption("horizontal");
|
|
1664
1664
|
return this.layout.options.percentPosition && !i ? m / this.layout.size.width * 100 + "%" : m + "px";
|
|
@@ -1667,12 +1667,12 @@ function di() {
|
|
|
1667
1667
|
return this.layout.options.percentPosition && i ? m / this.layout.size.height * 100 + "%" : m + "px";
|
|
1668
1668
|
}, g._transitionTo = function(m, i) {
|
|
1669
1669
|
this.getPosition();
|
|
1670
|
-
var
|
|
1670
|
+
var s = this.position.x, v = this.position.y, T = m == this.position.x && i == this.position.y;
|
|
1671
1671
|
if (this.setPosition(m, i), T && !this.isTransitioning) {
|
|
1672
1672
|
this.layoutPosition();
|
|
1673
1673
|
return;
|
|
1674
1674
|
}
|
|
1675
|
-
var $ = m -
|
|
1675
|
+
var $ = m - s, L = i - v, H = {};
|
|
1676
1676
|
H.transform = this.getTranslate($, L), this.transition({
|
|
1677
1677
|
to: H,
|
|
1678
1678
|
onTransitionEnd: {
|
|
@@ -1681,8 +1681,8 @@ function di() {
|
|
|
1681
1681
|
isCleaning: !0
|
|
1682
1682
|
});
|
|
1683
1683
|
}, g.getTranslate = function(m, i) {
|
|
1684
|
-
var
|
|
1685
|
-
return m =
|
|
1684
|
+
var s = this.layout._getOption("originLeft"), v = this.layout._getOption("originTop");
|
|
1685
|
+
return m = s ? m : -m, i = v ? i : -i, "translate3d(" + m + "px, " + i + "px, 0)";
|
|
1686
1686
|
}, g.goTo = function(m, i) {
|
|
1687
1687
|
this.setPosition(m, i), this.layoutPosition();
|
|
1688
1688
|
}, g.moveTo = g._transitionTo, g.setPosition = function(m, i) {
|
|
@@ -1697,10 +1697,10 @@ function di() {
|
|
|
1697
1697
|
return;
|
|
1698
1698
|
}
|
|
1699
1699
|
var i = this._transn;
|
|
1700
|
-
for (var
|
|
1701
|
-
i.onEnd[
|
|
1702
|
-
for (
|
|
1703
|
-
i.ingProperties[
|
|
1700
|
+
for (var s in m.onTransitionEnd)
|
|
1701
|
+
i.onEnd[s] = m.onTransitionEnd[s];
|
|
1702
|
+
for (s in m.to)
|
|
1703
|
+
i.ingProperties[s] = !0, m.isCleaning && (i.clean[s] = !0);
|
|
1704
1704
|
m.from && (this.css(m.from), this.element.offsetHeight), this.enableTransition(m.to), this.css(m.to), this.isTransitioning = !0;
|
|
1705
1705
|
};
|
|
1706
1706
|
function _(m) {
|
|
@@ -1708,15 +1708,15 @@ function di() {
|
|
|
1708
1708
|
return "-" + i.toLowerCase();
|
|
1709
1709
|
});
|
|
1710
1710
|
}
|
|
1711
|
-
var
|
|
1711
|
+
var d = "opacity," + _(c);
|
|
1712
1712
|
g.enableTransition = function() {
|
|
1713
1713
|
if (!this.isTransitioning) {
|
|
1714
1714
|
var m = this.layout.options.transitionDuration;
|
|
1715
1715
|
m = typeof m == "number" ? m + "ms" : m, this.css({
|
|
1716
|
-
transitionProperty:
|
|
1716
|
+
transitionProperty: d,
|
|
1717
1717
|
transitionDuration: m,
|
|
1718
1718
|
transitionDelay: this.staggerDelay || 0
|
|
1719
|
-
}), this.element.addEventListener(
|
|
1719
|
+
}), this.element.addEventListener(l, this, !1);
|
|
1720
1720
|
}
|
|
1721
1721
|
}, g.onwebkitTransitionEnd = function(m) {
|
|
1722
1722
|
this.ontransitionend(m);
|
|
@@ -1728,19 +1728,19 @@ function di() {
|
|
|
1728
1728
|
};
|
|
1729
1729
|
g.ontransitionend = function(m) {
|
|
1730
1730
|
if (m.target === this.element) {
|
|
1731
|
-
var i = this._transn,
|
|
1732
|
-
if (delete i.ingProperties[
|
|
1733
|
-
var v = i.onEnd[
|
|
1734
|
-
v.call(this), delete i.onEnd[
|
|
1731
|
+
var i = this._transn, s = b[m.propertyName] || m.propertyName;
|
|
1732
|
+
if (delete i.ingProperties[s], p(i.ingProperties) && this.disableTransition(), s in i.clean && (this.element.style[m.propertyName] = "", delete i.clean[s]), s in i.onEnd) {
|
|
1733
|
+
var v = i.onEnd[s];
|
|
1734
|
+
v.call(this), delete i.onEnd[s];
|
|
1735
1735
|
}
|
|
1736
1736
|
this.emitEvent("transitionEnd", [this]);
|
|
1737
1737
|
}
|
|
1738
1738
|
}, g.disableTransition = function() {
|
|
1739
|
-
this.removeTransitionStyles(), this.element.removeEventListener(
|
|
1739
|
+
this.removeTransitionStyles(), this.element.removeEventListener(l, this, !1), this.isTransitioning = !1;
|
|
1740
1740
|
}, g._removeStyles = function(m) {
|
|
1741
1741
|
var i = {};
|
|
1742
|
-
for (var
|
|
1743
|
-
i[
|
|
1742
|
+
for (var s in m)
|
|
1743
|
+
i[s] = "";
|
|
1744
1744
|
this.css(i);
|
|
1745
1745
|
};
|
|
1746
1746
|
var k = {
|
|
@@ -1764,8 +1764,8 @@ function di() {
|
|
|
1764
1764
|
}), this.hide();
|
|
1765
1765
|
}, g.reveal = function() {
|
|
1766
1766
|
delete this.isHidden, this.css({ display: "" });
|
|
1767
|
-
var m = this.layout.options, i = {},
|
|
1768
|
-
i[
|
|
1767
|
+
var m = this.layout.options, i = {}, s = this.getHideRevealTransitionEndProperty("visibleStyle");
|
|
1768
|
+
i[s] = this.onRevealTransitionEnd, this.transition({
|
|
1769
1769
|
from: m.hiddenStyle,
|
|
1770
1770
|
to: m.visibleStyle,
|
|
1771
1771
|
isCleaning: !0,
|
|
@@ -1777,12 +1777,12 @@ function di() {
|
|
|
1777
1777
|
var i = this.layout.options[m];
|
|
1778
1778
|
if (i.opacity)
|
|
1779
1779
|
return "opacity";
|
|
1780
|
-
for (var
|
|
1781
|
-
return
|
|
1780
|
+
for (var s in i)
|
|
1781
|
+
return s;
|
|
1782
1782
|
}, g.hide = function() {
|
|
1783
1783
|
this.isHidden = !0, this.css({ display: "" });
|
|
1784
|
-
var m = this.layout.options, i = {},
|
|
1785
|
-
i[
|
|
1784
|
+
var m = this.layout.options, i = {}, s = this.getHideRevealTransitionEndProperty("hiddenStyle");
|
|
1785
|
+
i[s] = this.onHideTransitionEnd, this.transition({
|
|
1786
1786
|
from: m.visibleStyle,
|
|
1787
1787
|
to: m.hiddenStyle,
|
|
1788
1788
|
// keep hidden stuff hidden
|
|
@@ -1803,7 +1803,7 @@ function di() {
|
|
|
1803
1803
|
});
|
|
1804
1804
|
}, f;
|
|
1805
1805
|
});
|
|
1806
|
-
}(
|
|
1806
|
+
}(De)), De.exports;
|
|
1807
1807
|
}
|
|
1808
1808
|
/*!
|
|
1809
1809
|
* Outlayer v2.1.1
|
|
@@ -1816,7 +1816,7 @@ function ci() {
|
|
|
1816
1816
|
(function(e, t) {
|
|
1817
1817
|
o.exports ? o.exports = t(
|
|
1818
1818
|
e,
|
|
1819
|
-
|
|
1819
|
+
Ge(),
|
|
1820
1820
|
Ye(),
|
|
1821
1821
|
ui(),
|
|
1822
1822
|
di()
|
|
@@ -1827,16 +1827,16 @@ function ci() {
|
|
|
1827
1827
|
e.fizzyUIUtils,
|
|
1828
1828
|
e.Outlayer.Item
|
|
1829
1829
|
);
|
|
1830
|
-
})(window, function(t, n,
|
|
1831
|
-
var c = t.console,
|
|
1830
|
+
})(window, function(t, n, p, r, h) {
|
|
1831
|
+
var c = t.console, l = t.jQuery, u = function() {
|
|
1832
1832
|
}, f = 0, g = {};
|
|
1833
|
-
function _(i,
|
|
1834
|
-
var v =
|
|
1833
|
+
function _(i, s) {
|
|
1834
|
+
var v = r.getQueryElement(i);
|
|
1835
1835
|
if (!v) {
|
|
1836
1836
|
c && c.error("Bad element for " + this.constructor.namespace + ": " + (v || i));
|
|
1837
1837
|
return;
|
|
1838
1838
|
}
|
|
1839
|
-
this.element = v,
|
|
1839
|
+
this.element = v, l && (this.$element = l(this.element)), this.options = r.extend({}, this.constructor.defaults), this.option(s);
|
|
1840
1840
|
var T = ++f;
|
|
1841
1841
|
this.element.outlayerGUID = T, g[T] = this, this._create();
|
|
1842
1842
|
var $ = this._getOption("initLayout");
|
|
@@ -1862,12 +1862,12 @@ function ci() {
|
|
|
1862
1862
|
transform: "scale(1)"
|
|
1863
1863
|
}
|
|
1864
1864
|
};
|
|
1865
|
-
var
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
},
|
|
1869
|
-
var
|
|
1870
|
-
return
|
|
1865
|
+
var d = _.prototype;
|
|
1866
|
+
r.extend(d, n.prototype), d.option = function(i) {
|
|
1867
|
+
r.extend(this.options, i);
|
|
1868
|
+
}, d._getOption = function(i) {
|
|
1869
|
+
var s = this.constructor.compatOptions[i];
|
|
1870
|
+
return s && this.options[s] !== void 0 ? this.options[s] : this.options[i];
|
|
1871
1871
|
}, _.compatOptions = {
|
|
1872
1872
|
// currentName: oldName
|
|
1873
1873
|
initLayout: "isInitLayout",
|
|
@@ -1877,87 +1877,87 @@ function ci() {
|
|
|
1877
1877
|
originTop: "isOriginTop",
|
|
1878
1878
|
resize: "isResizeBound",
|
|
1879
1879
|
resizeContainer: "isResizingContainer"
|
|
1880
|
-
},
|
|
1881
|
-
this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp),
|
|
1880
|
+
}, d._create = function() {
|
|
1881
|
+
this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), r.extend(this.element.style, this.options.containerStyle);
|
|
1882
1882
|
var i = this._getOption("resize");
|
|
1883
1883
|
i && this.bindResize();
|
|
1884
|
-
},
|
|
1884
|
+
}, d.reloadItems = function() {
|
|
1885
1885
|
this.items = this._itemize(this.element.children);
|
|
1886
|
-
},
|
|
1887
|
-
for (var
|
|
1888
|
-
var L =
|
|
1886
|
+
}, d._itemize = function(i) {
|
|
1887
|
+
for (var s = this._filterFindItemElements(i), v = this.constructor.Item, T = [], $ = 0; $ < s.length; $++) {
|
|
1888
|
+
var L = s[$], H = new v(L, this);
|
|
1889
1889
|
T.push(H);
|
|
1890
1890
|
}
|
|
1891
1891
|
return T;
|
|
1892
|
-
},
|
|
1893
|
-
return
|
|
1894
|
-
},
|
|
1892
|
+
}, d._filterFindItemElements = function(i) {
|
|
1893
|
+
return r.filterFindElements(i, this.options.itemSelector);
|
|
1894
|
+
}, d.getItemElements = function() {
|
|
1895
1895
|
return this.items.map(function(i) {
|
|
1896
1896
|
return i.element;
|
|
1897
1897
|
});
|
|
1898
|
-
},
|
|
1898
|
+
}, d.layout = function() {
|
|
1899
1899
|
this._resetLayout(), this._manageStamps();
|
|
1900
|
-
var i = this._getOption("layoutInstant"),
|
|
1901
|
-
this.layoutItems(this.items,
|
|
1902
|
-
},
|
|
1900
|
+
var i = this._getOption("layoutInstant"), s = i !== void 0 ? i : !this._isLayoutInited;
|
|
1901
|
+
this.layoutItems(this.items, s), this._isLayoutInited = !0;
|
|
1902
|
+
}, d._init = d.layout, d._resetLayout = function() {
|
|
1903
1903
|
this.getSize();
|
|
1904
|
-
},
|
|
1905
|
-
this.size =
|
|
1906
|
-
},
|
|
1904
|
+
}, d.getSize = function() {
|
|
1905
|
+
this.size = p(this.element);
|
|
1906
|
+
}, d._getMeasurement = function(i, s) {
|
|
1907
1907
|
var v = this.options[i], T;
|
|
1908
|
-
v ? (typeof v == "string" ? T = this.element.querySelector(v) : v instanceof HTMLElement && (T = v), this[i] = T ?
|
|
1909
|
-
},
|
|
1910
|
-
i = this._getItemsForLayout(i), this._layoutItems(i,
|
|
1911
|
-
},
|
|
1912
|
-
return i.filter(function(
|
|
1913
|
-
return !
|
|
1908
|
+
v ? (typeof v == "string" ? T = this.element.querySelector(v) : v instanceof HTMLElement && (T = v), this[i] = T ? p(T)[s] : v) : this[i] = 0;
|
|
1909
|
+
}, d.layoutItems = function(i, s) {
|
|
1910
|
+
i = this._getItemsForLayout(i), this._layoutItems(i, s), this._postLayout();
|
|
1911
|
+
}, d._getItemsForLayout = function(i) {
|
|
1912
|
+
return i.filter(function(s) {
|
|
1913
|
+
return !s.isIgnored;
|
|
1914
1914
|
});
|
|
1915
|
-
},
|
|
1915
|
+
}, d._layoutItems = function(i, s) {
|
|
1916
1916
|
if (this._emitCompleteOnItems("layout", i), !(!i || !i.length)) {
|
|
1917
1917
|
var v = [];
|
|
1918
1918
|
i.forEach(function(T) {
|
|
1919
1919
|
var $ = this._getItemLayoutPosition(T);
|
|
1920
|
-
$.item = T, $.isInstant =
|
|
1920
|
+
$.item = T, $.isInstant = s || T.isLayoutInstant, v.push($);
|
|
1921
1921
|
}, this), this._processLayoutQueue(v);
|
|
1922
1922
|
}
|
|
1923
|
-
},
|
|
1923
|
+
}, d._getItemLayoutPosition = function() {
|
|
1924
1924
|
return {
|
|
1925
1925
|
x: 0,
|
|
1926
1926
|
y: 0
|
|
1927
1927
|
};
|
|
1928
|
-
},
|
|
1929
|
-
this.updateStagger(), i.forEach(function(
|
|
1930
|
-
this._positionItem(
|
|
1928
|
+
}, d._processLayoutQueue = function(i) {
|
|
1929
|
+
this.updateStagger(), i.forEach(function(s, v) {
|
|
1930
|
+
this._positionItem(s.item, s.x, s.y, s.isInstant, v);
|
|
1931
1931
|
}, this);
|
|
1932
|
-
},
|
|
1932
|
+
}, d.updateStagger = function() {
|
|
1933
1933
|
var i = this.options.stagger;
|
|
1934
1934
|
if (i == null) {
|
|
1935
1935
|
this.stagger = 0;
|
|
1936
1936
|
return;
|
|
1937
1937
|
}
|
|
1938
1938
|
return this.stagger = m(i), this.stagger;
|
|
1939
|
-
},
|
|
1940
|
-
T ? i.goTo(
|
|
1941
|
-
},
|
|
1939
|
+
}, d._positionItem = function(i, s, v, T, $) {
|
|
1940
|
+
T ? i.goTo(s, v) : (i.stagger($ * this.stagger), i.moveTo(s, v));
|
|
1941
|
+
}, d._postLayout = function() {
|
|
1942
1942
|
this.resizeContainer();
|
|
1943
|
-
},
|
|
1943
|
+
}, d.resizeContainer = function() {
|
|
1944
1944
|
var i = this._getOption("resizeContainer");
|
|
1945
1945
|
if (i) {
|
|
1946
|
-
var
|
|
1947
|
-
|
|
1946
|
+
var s = this._getContainerSize();
|
|
1947
|
+
s && (this._setContainerMeasure(s.width, !0), this._setContainerMeasure(s.height, !1));
|
|
1948
1948
|
}
|
|
1949
|
-
},
|
|
1949
|
+
}, d._getContainerSize = u, d._setContainerMeasure = function(i, s) {
|
|
1950
1950
|
if (i !== void 0) {
|
|
1951
1951
|
var v = this.size;
|
|
1952
|
-
v.isBorderBox && (i +=
|
|
1952
|
+
v.isBorderBox && (i += s ? v.paddingLeft + v.paddingRight + v.borderLeftWidth + v.borderRightWidth : v.paddingBottom + v.paddingTop + v.borderTopWidth + v.borderBottomWidth), i = Math.max(i, 0), this.element.style[s ? "width" : "height"] = i + "px";
|
|
1953
1953
|
}
|
|
1954
|
-
},
|
|
1954
|
+
}, d._emitCompleteOnItems = function(i, s) {
|
|
1955
1955
|
var v = this;
|
|
1956
1956
|
function T() {
|
|
1957
|
-
v.dispatchEvent(i + "Complete", null, [
|
|
1957
|
+
v.dispatchEvent(i + "Complete", null, [s]);
|
|
1958
1958
|
}
|
|
1959
|
-
var $ =
|
|
1960
|
-
if (!
|
|
1959
|
+
var $ = s.length;
|
|
1960
|
+
if (!s || !$) {
|
|
1961
1961
|
T();
|
|
1962
1962
|
return;
|
|
1963
1963
|
}
|
|
@@ -1965,131 +1965,131 @@ function ci() {
|
|
|
1965
1965
|
function H() {
|
|
1966
1966
|
L++, L == $ && T();
|
|
1967
1967
|
}
|
|
1968
|
-
|
|
1969
|
-
|
|
1968
|
+
s.forEach(function(A) {
|
|
1969
|
+
A.once(i, H);
|
|
1970
1970
|
});
|
|
1971
|
-
},
|
|
1972
|
-
var T =
|
|
1973
|
-
if (this.emitEvent(i, T),
|
|
1974
|
-
if (this.$element = this.$element ||
|
|
1975
|
-
var $ =
|
|
1971
|
+
}, d.dispatchEvent = function(i, s, v) {
|
|
1972
|
+
var T = s ? [s].concat(v) : v;
|
|
1973
|
+
if (this.emitEvent(i, T), l)
|
|
1974
|
+
if (this.$element = this.$element || l(this.element), s) {
|
|
1975
|
+
var $ = l.Event(s);
|
|
1976
1976
|
$.type = i, this.$element.trigger($, v);
|
|
1977
1977
|
} else
|
|
1978
1978
|
this.$element.trigger(i, v);
|
|
1979
|
-
},
|
|
1980
|
-
var
|
|
1981
|
-
|
|
1982
|
-
},
|
|
1983
|
-
var
|
|
1984
|
-
|
|
1985
|
-
},
|
|
1979
|
+
}, d.ignore = function(i) {
|
|
1980
|
+
var s = this.getItem(i);
|
|
1981
|
+
s && (s.isIgnored = !0);
|
|
1982
|
+
}, d.unignore = function(i) {
|
|
1983
|
+
var s = this.getItem(i);
|
|
1984
|
+
s && delete s.isIgnored;
|
|
1985
|
+
}, d.stamp = function(i) {
|
|
1986
1986
|
i = this._find(i), i && (this.stamps = this.stamps.concat(i), i.forEach(this.ignore, this));
|
|
1987
|
-
},
|
|
1988
|
-
i = this._find(i), i && i.forEach(function(
|
|
1989
|
-
|
|
1987
|
+
}, d.unstamp = function(i) {
|
|
1988
|
+
i = this._find(i), i && i.forEach(function(s) {
|
|
1989
|
+
r.removeFrom(this.stamps, s), this.unignore(s);
|
|
1990
1990
|
}, this);
|
|
1991
|
-
},
|
|
1991
|
+
}, d._find = function(i) {
|
|
1992
1992
|
if (i)
|
|
1993
|
-
return typeof i == "string" && (i = this.element.querySelectorAll(i)), i =
|
|
1994
|
-
},
|
|
1993
|
+
return typeof i == "string" && (i = this.element.querySelectorAll(i)), i = r.makeArray(i), i;
|
|
1994
|
+
}, d._manageStamps = function() {
|
|
1995
1995
|
!this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
|
|
1996
|
-
},
|
|
1997
|
-
var i = this.element.getBoundingClientRect(),
|
|
1996
|
+
}, d._getBoundingRect = function() {
|
|
1997
|
+
var i = this.element.getBoundingClientRect(), s = this.size;
|
|
1998
1998
|
this._boundingRect = {
|
|
1999
|
-
left: i.left +
|
|
2000
|
-
top: i.top +
|
|
2001
|
-
right: i.right - (
|
|
2002
|
-
bottom: i.bottom - (
|
|
1999
|
+
left: i.left + s.paddingLeft + s.borderLeftWidth,
|
|
2000
|
+
top: i.top + s.paddingTop + s.borderTopWidth,
|
|
2001
|
+
right: i.right - (s.paddingRight + s.borderRightWidth),
|
|
2002
|
+
bottom: i.bottom - (s.paddingBottom + s.borderBottomWidth)
|
|
2003
2003
|
};
|
|
2004
|
-
},
|
|
2005
|
-
var
|
|
2006
|
-
left:
|
|
2007
|
-
top:
|
|
2008
|
-
right: v.right -
|
|
2009
|
-
bottom: v.bottom -
|
|
2004
|
+
}, d._manageStamp = u, d._getElementOffset = function(i) {
|
|
2005
|
+
var s = i.getBoundingClientRect(), v = this._boundingRect, T = p(i), $ = {
|
|
2006
|
+
left: s.left - v.left - T.marginLeft,
|
|
2007
|
+
top: s.top - v.top - T.marginTop,
|
|
2008
|
+
right: v.right - s.right - T.marginRight,
|
|
2009
|
+
bottom: v.bottom - s.bottom - T.marginBottom
|
|
2010
2010
|
};
|
|
2011
2011
|
return $;
|
|
2012
|
-
},
|
|
2012
|
+
}, d.handleEvent = r.handleEvent, d.bindResize = function() {
|
|
2013
2013
|
t.addEventListener("resize", this), this.isResizeBound = !0;
|
|
2014
|
-
},
|
|
2014
|
+
}, d.unbindResize = function() {
|
|
2015
2015
|
t.removeEventListener("resize", this), this.isResizeBound = !1;
|
|
2016
|
-
},
|
|
2016
|
+
}, d.onresize = function() {
|
|
2017
2017
|
this.resize();
|
|
2018
|
-
},
|
|
2018
|
+
}, r.debounceMethod(_, "onresize", 100), d.resize = function() {
|
|
2019
2019
|
!this.isResizeBound || !this.needsResizeLayout() || this.layout();
|
|
2020
|
-
},
|
|
2021
|
-
var i =
|
|
2022
|
-
return
|
|
2023
|
-
},
|
|
2024
|
-
var
|
|
2025
|
-
return
|
|
2026
|
-
},
|
|
2027
|
-
var
|
|
2028
|
-
|
|
2029
|
-
},
|
|
2030
|
-
var
|
|
2031
|
-
if (
|
|
2020
|
+
}, d.needsResizeLayout = function() {
|
|
2021
|
+
var i = p(this.element), s = this.size && i;
|
|
2022
|
+
return s && i.innerWidth !== this.size.innerWidth;
|
|
2023
|
+
}, d.addItems = function(i) {
|
|
2024
|
+
var s = this._itemize(i);
|
|
2025
|
+
return s.length && (this.items = this.items.concat(s)), s;
|
|
2026
|
+
}, d.appended = function(i) {
|
|
2027
|
+
var s = this.addItems(i);
|
|
2028
|
+
s.length && (this.layoutItems(s, !0), this.reveal(s));
|
|
2029
|
+
}, d.prepended = function(i) {
|
|
2030
|
+
var s = this._itemize(i);
|
|
2031
|
+
if (s.length) {
|
|
2032
2032
|
var v = this.items.slice(0);
|
|
2033
|
-
this.items =
|
|
2033
|
+
this.items = s.concat(v), this._resetLayout(), this._manageStamps(), this.layoutItems(s, !0), this.reveal(s), this.layoutItems(v);
|
|
2034
2034
|
}
|
|
2035
|
-
},
|
|
2035
|
+
}, d.reveal = function(i) {
|
|
2036
2036
|
if (this._emitCompleteOnItems("reveal", i), !(!i || !i.length)) {
|
|
2037
|
-
var
|
|
2037
|
+
var s = this.updateStagger();
|
|
2038
2038
|
i.forEach(function(v, T) {
|
|
2039
|
-
v.stagger(T *
|
|
2039
|
+
v.stagger(T * s), v.reveal();
|
|
2040
2040
|
});
|
|
2041
2041
|
}
|
|
2042
|
-
},
|
|
2042
|
+
}, d.hide = function(i) {
|
|
2043
2043
|
if (this._emitCompleteOnItems("hide", i), !(!i || !i.length)) {
|
|
2044
|
-
var
|
|
2044
|
+
var s = this.updateStagger();
|
|
2045
2045
|
i.forEach(function(v, T) {
|
|
2046
|
-
v.stagger(T *
|
|
2046
|
+
v.stagger(T * s), v.hide();
|
|
2047
2047
|
});
|
|
2048
2048
|
}
|
|
2049
|
-
},
|
|
2050
|
-
var
|
|
2051
|
-
this.reveal(
|
|
2052
|
-
},
|
|
2053
|
-
var
|
|
2054
|
-
this.hide(
|
|
2055
|
-
},
|
|
2056
|
-
for (var
|
|
2057
|
-
var v = this.items[
|
|
2049
|
+
}, d.revealItemElements = function(i) {
|
|
2050
|
+
var s = this.getItems(i);
|
|
2051
|
+
this.reveal(s);
|
|
2052
|
+
}, d.hideItemElements = function(i) {
|
|
2053
|
+
var s = this.getItems(i);
|
|
2054
|
+
this.hide(s);
|
|
2055
|
+
}, d.getItem = function(i) {
|
|
2056
|
+
for (var s = 0; s < this.items.length; s++) {
|
|
2057
|
+
var v = this.items[s];
|
|
2058
2058
|
if (v.element == i)
|
|
2059
2059
|
return v;
|
|
2060
2060
|
}
|
|
2061
|
-
},
|
|
2062
|
-
i =
|
|
2063
|
-
var
|
|
2061
|
+
}, d.getItems = function(i) {
|
|
2062
|
+
i = r.makeArray(i);
|
|
2063
|
+
var s = [];
|
|
2064
2064
|
return i.forEach(function(v) {
|
|
2065
2065
|
var T = this.getItem(v);
|
|
2066
|
-
T &&
|
|
2067
|
-
}, this),
|
|
2068
|
-
},
|
|
2069
|
-
var
|
|
2070
|
-
this._emitCompleteOnItems("remove",
|
|
2071
|
-
v.remove(),
|
|
2066
|
+
T && s.push(T);
|
|
2067
|
+
}, this), s;
|
|
2068
|
+
}, d.remove = function(i) {
|
|
2069
|
+
var s = this.getItems(i);
|
|
2070
|
+
this._emitCompleteOnItems("remove", s), !(!s || !s.length) && s.forEach(function(v) {
|
|
2071
|
+
v.remove(), r.removeFrom(this.items, v);
|
|
2072
2072
|
}, this);
|
|
2073
|
-
},
|
|
2073
|
+
}, d.destroy = function() {
|
|
2074
2074
|
var i = this.element.style;
|
|
2075
2075
|
i.height = "", i.position = "", i.width = "", this.items.forEach(function(v) {
|
|
2076
2076
|
v.destroy();
|
|
2077
2077
|
}), this.unbindResize();
|
|
2078
|
-
var
|
|
2079
|
-
delete g[
|
|
2078
|
+
var s = this.element.outlayerGUID;
|
|
2079
|
+
delete g[s], delete this.element.outlayerGUID, l && l.removeData(this.element, this.constructor.namespace);
|
|
2080
2080
|
}, _.data = function(i) {
|
|
2081
|
-
i =
|
|
2082
|
-
var
|
|
2083
|
-
return
|
|
2084
|
-
}, _.create = function(i,
|
|
2081
|
+
i = r.getQueryElement(i);
|
|
2082
|
+
var s = i && i.outlayerGUID;
|
|
2083
|
+
return s && g[s];
|
|
2084
|
+
}, _.create = function(i, s) {
|
|
2085
2085
|
var v = b(_);
|
|
2086
|
-
return v.defaults =
|
|
2086
|
+
return v.defaults = r.extend({}, _.defaults), r.extend(v.defaults, s), v.compatOptions = r.extend({}, _.compatOptions), v.namespace = i, v.data = _.data, v.Item = b(h), r.htmlInit(v, i), l && l.bridget && l.bridget(i, v), v;
|
|
2087
2087
|
};
|
|
2088
2088
|
function b(i) {
|
|
2089
|
-
function
|
|
2089
|
+
function s() {
|
|
2090
2090
|
i.apply(this, arguments);
|
|
2091
2091
|
}
|
|
2092
|
-
return
|
|
2092
|
+
return s.prototype = Object.create(i.prototype), s.prototype.constructor = s, s;
|
|
2093
2093
|
}
|
|
2094
2094
|
var k = {
|
|
2095
2095
|
ms: 1,
|
|
@@ -2098,7 +2098,7 @@ function ci() {
|
|
|
2098
2098
|
function m(i) {
|
|
2099
2099
|
if (typeof i == "number")
|
|
2100
2100
|
return i;
|
|
2101
|
-
var
|
|
2101
|
+
var s = i.match(/(^\d*\.?\d*)(\w*)/), v = s && s[1], T = s && s[2];
|
|
2102
2102
|
if (!v.length)
|
|
2103
2103
|
return 0;
|
|
2104
2104
|
v = parseFloat(v);
|
|
@@ -2126,85 +2126,85 @@ function ci() {
|
|
|
2126
2126
|
e.getSize
|
|
2127
2127
|
);
|
|
2128
2128
|
})(window, function(t, n) {
|
|
2129
|
-
var
|
|
2130
|
-
|
|
2131
|
-
var
|
|
2132
|
-
return
|
|
2129
|
+
var p = t.create("masonry");
|
|
2130
|
+
p.compatOptions.fitWidth = "isFitWidth";
|
|
2131
|
+
var r = p.prototype;
|
|
2132
|
+
return r._resetLayout = function() {
|
|
2133
2133
|
this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];
|
|
2134
2134
|
for (var h = 0; h < this.cols; h++)
|
|
2135
2135
|
this.colYs.push(0);
|
|
2136
2136
|
this.maxY = 0, this.horizontalColIndex = 0;
|
|
2137
|
-
},
|
|
2137
|
+
}, r.measureColumns = function() {
|
|
2138
2138
|
if (this.getContainerWidth(), !this.columnWidth) {
|
|
2139
2139
|
var h = this.items[0], c = h && h.element;
|
|
2140
2140
|
this.columnWidth = c && n(c).outerWidth || // if first elem has no width, default to size of container
|
|
2141
2141
|
this.containerWidth;
|
|
2142
2142
|
}
|
|
2143
|
-
var
|
|
2143
|
+
var l = this.columnWidth += this.gutter, u = this.containerWidth + this.gutter, f = u / l, g = l - u % l, _ = g && g < 1 ? "round" : "floor";
|
|
2144
2144
|
f = Math[_](f), this.cols = Math.max(f, 1);
|
|
2145
|
-
},
|
|
2146
|
-
var h = this._getOption("fitWidth"), c = h ? this.element.parentNode : this.element,
|
|
2147
|
-
this.containerWidth =
|
|
2148
|
-
},
|
|
2145
|
+
}, r.getContainerWidth = function() {
|
|
2146
|
+
var h = this._getOption("fitWidth"), c = h ? this.element.parentNode : this.element, l = n(c);
|
|
2147
|
+
this.containerWidth = l && l.innerWidth;
|
|
2148
|
+
}, r._getItemLayoutPosition = function(h) {
|
|
2149
2149
|
h.getSize();
|
|
2150
|
-
var c = h.size.outerWidth % this.columnWidth,
|
|
2151
|
-
|
|
2152
|
-
for (var f = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", g = this[f](
|
|
2150
|
+
var c = h.size.outerWidth % this.columnWidth, l = c && c < 1 ? "round" : "ceil", u = Math[l](h.size.outerWidth / this.columnWidth);
|
|
2151
|
+
u = Math.min(u, this.cols);
|
|
2152
|
+
for (var f = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", g = this[f](u, h), _ = {
|
|
2153
2153
|
x: this.columnWidth * g.col,
|
|
2154
2154
|
y: g.y
|
|
2155
|
-
},
|
|
2156
|
-
this.colYs[k] =
|
|
2155
|
+
}, d = g.y + h.size.outerHeight, b = u + g.col, k = g.col; k < b; k++)
|
|
2156
|
+
this.colYs[k] = d;
|
|
2157
2157
|
return _;
|
|
2158
|
-
},
|
|
2159
|
-
var c = this._getTopColGroup(h),
|
|
2158
|
+
}, r._getTopColPosition = function(h) {
|
|
2159
|
+
var c = this._getTopColGroup(h), l = Math.min.apply(Math, c);
|
|
2160
2160
|
return {
|
|
2161
|
-
col: c.indexOf(
|
|
2162
|
-
y:
|
|
2161
|
+
col: c.indexOf(l),
|
|
2162
|
+
y: l
|
|
2163
2163
|
};
|
|
2164
|
-
},
|
|
2164
|
+
}, r._getTopColGroup = function(h) {
|
|
2165
2165
|
if (h < 2)
|
|
2166
2166
|
return this.colYs;
|
|
2167
|
-
for (var c = [],
|
|
2168
|
-
c[
|
|
2167
|
+
for (var c = [], l = this.cols + 1 - h, u = 0; u < l; u++)
|
|
2168
|
+
c[u] = this._getColGroupY(u, h);
|
|
2169
2169
|
return c;
|
|
2170
|
-
},
|
|
2170
|
+
}, r._getColGroupY = function(h, c) {
|
|
2171
2171
|
if (c < 2)
|
|
2172
2172
|
return this.colYs[h];
|
|
2173
|
-
var
|
|
2174
|
-
return Math.max.apply(Math,
|
|
2175
|
-
},
|
|
2176
|
-
var
|
|
2177
|
-
|
|
2173
|
+
var l = this.colYs.slice(h, h + c);
|
|
2174
|
+
return Math.max.apply(Math, l);
|
|
2175
|
+
}, r._getHorizontalColPosition = function(h, c) {
|
|
2176
|
+
var l = this.horizontalColIndex % this.cols, u = h > 1 && l + h > this.cols;
|
|
2177
|
+
l = u ? 0 : l;
|
|
2178
2178
|
var f = c.size.outerWidth && c.size.outerHeight;
|
|
2179
|
-
return this.horizontalColIndex = f ?
|
|
2180
|
-
col:
|
|
2181
|
-
y: this._getColGroupY(
|
|
2179
|
+
return this.horizontalColIndex = f ? l + h : this.horizontalColIndex, {
|
|
2180
|
+
col: l,
|
|
2181
|
+
y: this._getColGroupY(l, h)
|
|
2182
2182
|
};
|
|
2183
|
-
},
|
|
2184
|
-
var c = n(h),
|
|
2183
|
+
}, r._manageStamp = function(h) {
|
|
2184
|
+
var c = n(h), l = this._getElementOffset(h), u = this._getOption("originLeft"), f = u ? l.left : l.right, g = f + c.outerWidth, _ = Math.floor(f / this.columnWidth);
|
|
2185
2185
|
_ = Math.max(0, _);
|
|
2186
|
-
var
|
|
2187
|
-
|
|
2188
|
-
for (var b = this._getOption("originTop"), k = (b ?
|
|
2186
|
+
var d = Math.floor(g / this.columnWidth);
|
|
2187
|
+
d -= g % this.columnWidth ? 0 : 1, d = Math.min(this.cols - 1, d);
|
|
2188
|
+
for (var b = this._getOption("originTop"), k = (b ? l.top : l.bottom) + c.outerHeight, m = _; m <= d; m++)
|
|
2189
2189
|
this.colYs[m] = Math.max(k, this.colYs[m]);
|
|
2190
|
-
},
|
|
2190
|
+
}, r._getContainerSize = function() {
|
|
2191
2191
|
this.maxY = Math.max.apply(Math, this.colYs);
|
|
2192
2192
|
var h = {
|
|
2193
2193
|
height: this.maxY
|
|
2194
2194
|
};
|
|
2195
2195
|
return this._getOption("fitWidth") && (h.width = this._getContainerFitWidth()), h;
|
|
2196
|
-
},
|
|
2196
|
+
}, r._getContainerFitWidth = function() {
|
|
2197
2197
|
for (var h = 0, c = this.cols; --c && this.colYs[c] === 0; )
|
|
2198
2198
|
h++;
|
|
2199
2199
|
return (this.cols - h) * this.columnWidth - this.gutter;
|
|
2200
|
-
},
|
|
2200
|
+
}, r.needsResizeLayout = function() {
|
|
2201
2201
|
var h = this.containerWidth;
|
|
2202
2202
|
return this.getContainerWidth(), h != this.containerWidth;
|
|
2203
|
-
},
|
|
2203
|
+
}, p;
|
|
2204
2204
|
});
|
|
2205
|
-
})(
|
|
2206
|
-
var pi =
|
|
2207
|
-
const lt = /* @__PURE__ */
|
|
2205
|
+
})(It);
|
|
2206
|
+
var pi = It.exports;
|
|
2207
|
+
const lt = /* @__PURE__ */ Ct(pi);
|
|
2208
2208
|
var $t = { exports: {} };
|
|
2209
2209
|
/*!
|
|
2210
2210
|
* imagesLoaded v4.1.4
|
|
@@ -2215,7 +2215,7 @@ var $t = { exports: {} };
|
|
|
2215
2215
|
(function(e, t) {
|
|
2216
2216
|
o.exports ? o.exports = t(
|
|
2217
2217
|
e,
|
|
2218
|
-
|
|
2218
|
+
Ge()
|
|
2219
2219
|
) : e.imagesLoaded = t(
|
|
2220
2220
|
e,
|
|
2221
2221
|
e.EvEmitter
|
|
@@ -2224,43 +2224,43 @@ var $t = { exports: {} };
|
|
|
2224
2224
|
typeof window < "u" ? window : Tt,
|
|
2225
2225
|
// -------------------------- factory -------------------------- //
|
|
2226
2226
|
function(t, n) {
|
|
2227
|
-
var
|
|
2228
|
-
function h(
|
|
2227
|
+
var p = t.jQuery, r = t.console;
|
|
2228
|
+
function h(d, b) {
|
|
2229
2229
|
for (var k in b)
|
|
2230
|
-
|
|
2231
|
-
return
|
|
2230
|
+
d[k] = b[k];
|
|
2231
|
+
return d;
|
|
2232
2232
|
}
|
|
2233
2233
|
var c = Array.prototype.slice;
|
|
2234
|
-
function d
|
|
2235
|
-
if (Array.isArray(
|
|
2236
|
-
return
|
|
2237
|
-
var b = typeof
|
|
2238
|
-
return b ? c.call(
|
|
2234
|
+
function l(d) {
|
|
2235
|
+
if (Array.isArray(d))
|
|
2236
|
+
return d;
|
|
2237
|
+
var b = typeof d == "object" && typeof d.length == "number";
|
|
2238
|
+
return b ? c.call(d) : [d];
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2241
|
-
if (!(this instanceof
|
|
2242
|
-
return new
|
|
2243
|
-
var m =
|
|
2244
|
-
if (typeof
|
|
2245
|
-
|
|
2240
|
+
function u(d, b, k) {
|
|
2241
|
+
if (!(this instanceof u))
|
|
2242
|
+
return new u(d, b, k);
|
|
2243
|
+
var m = d;
|
|
2244
|
+
if (typeof d == "string" && (m = document.querySelectorAll(d)), !m) {
|
|
2245
|
+
r.error("Bad element for imagesLoaded " + (m || d));
|
|
2246
2246
|
return;
|
|
2247
2247
|
}
|
|
2248
|
-
this.elements =
|
|
2248
|
+
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));
|
|
2249
2249
|
}
|
|
2250
|
-
|
|
2250
|
+
u.prototype = Object.create(n.prototype), u.prototype.options = {}, u.prototype.getImages = function() {
|
|
2251
2251
|
this.images = [], this.elements.forEach(this.addElementImages, this);
|
|
2252
|
-
},
|
|
2253
|
-
|
|
2254
|
-
var b =
|
|
2252
|
+
}, u.prototype.addElementImages = function(d) {
|
|
2253
|
+
d.nodeName == "IMG" && this.addImage(d), this.options.background === !0 && this.addElementBackgroundImages(d);
|
|
2254
|
+
var b = d.nodeType;
|
|
2255
2255
|
if (!(!b || !f[b])) {
|
|
2256
|
-
for (var k =
|
|
2256
|
+
for (var k = d.querySelectorAll("img"), m = 0; m < k.length; m++) {
|
|
2257
2257
|
var i = k[m];
|
|
2258
2258
|
this.addImage(i);
|
|
2259
2259
|
}
|
|
2260
2260
|
if (typeof this.options.background == "string") {
|
|
2261
|
-
var
|
|
2262
|
-
for (m = 0; m <
|
|
2263
|
-
var v =
|
|
2261
|
+
var s = d.querySelectorAll(this.options.background);
|
|
2262
|
+
for (m = 0; m < s.length; m++) {
|
|
2263
|
+
var v = s[m];
|
|
2264
2264
|
this.addElementBackgroundImages(v);
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
@@ -2271,59 +2271,59 @@ var $t = { exports: {} };
|
|
|
2271
2271
|
9: !0,
|
|
2272
2272
|
11: !0
|
|
2273
2273
|
};
|
|
2274
|
-
|
|
2275
|
-
var b = getComputedStyle(
|
|
2274
|
+
u.prototype.addElementBackgroundImages = function(d) {
|
|
2275
|
+
var b = getComputedStyle(d);
|
|
2276
2276
|
if (b)
|
|
2277
2277
|
for (var k = /url\((['"])?(.*?)\1\)/gi, m = k.exec(b.backgroundImage); m !== null; ) {
|
|
2278
2278
|
var i = m && m[2];
|
|
2279
|
-
i && this.addBackground(i,
|
|
2279
|
+
i && this.addBackground(i, d), m = k.exec(b.backgroundImage);
|
|
2280
2280
|
}
|
|
2281
|
-
},
|
|
2282
|
-
var b = new g(
|
|
2281
|
+
}, u.prototype.addImage = function(d) {
|
|
2282
|
+
var b = new g(d);
|
|
2283
2283
|
this.images.push(b);
|
|
2284
|
-
},
|
|
2285
|
-
var k = new _(
|
|
2284
|
+
}, u.prototype.addBackground = function(d, b) {
|
|
2285
|
+
var k = new _(d, b);
|
|
2286
2286
|
this.images.push(k);
|
|
2287
|
-
},
|
|
2288
|
-
var
|
|
2287
|
+
}, u.prototype.check = function() {
|
|
2288
|
+
var d = this;
|
|
2289
2289
|
if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
|
|
2290
2290
|
this.complete();
|
|
2291
2291
|
return;
|
|
2292
2292
|
}
|
|
2293
2293
|
function b(k, m, i) {
|
|
2294
2294
|
setTimeout(function() {
|
|
2295
|
-
|
|
2295
|
+
d.progress(k, m, i);
|
|
2296
2296
|
});
|
|
2297
2297
|
}
|
|
2298
2298
|
this.images.forEach(function(k) {
|
|
2299
2299
|
k.once("progress", b), k.check();
|
|
2300
2300
|
});
|
|
2301
|
-
},
|
|
2302
|
-
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !
|
|
2303
|
-
},
|
|
2304
|
-
var
|
|
2305
|
-
if (this.isComplete = !0, this.emitEvent(
|
|
2301
|
+
}, u.prototype.progress = function(d, b, k) {
|
|
2302
|
+
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !d.isLoaded, this.emitEvent("progress", [this, d, b]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, d), this.progressedCount == this.images.length && this.complete(), this.options.debug && r && r.log("progress: " + k, d, b);
|
|
2303
|
+
}, u.prototype.complete = function() {
|
|
2304
|
+
var d = this.hasAnyBroken ? "fail" : "done";
|
|
2305
|
+
if (this.isComplete = !0, this.emitEvent(d, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
|
|
2306
2306
|
var b = this.hasAnyBroken ? "reject" : "resolve";
|
|
2307
2307
|
this.jqDeferred[b](this);
|
|
2308
2308
|
}
|
|
2309
2309
|
};
|
|
2310
|
-
function g(
|
|
2311
|
-
this.img =
|
|
2310
|
+
function g(d) {
|
|
2311
|
+
this.img = d;
|
|
2312
2312
|
}
|
|
2313
2313
|
g.prototype = Object.create(n.prototype), g.prototype.check = function() {
|
|
2314
|
-
var
|
|
2315
|
-
if (
|
|
2314
|
+
var d = this.getIsImageComplete();
|
|
2315
|
+
if (d) {
|
|
2316
2316
|
this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
|
|
2317
2317
|
return;
|
|
2318
2318
|
}
|
|
2319
2319
|
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;
|
|
2320
2320
|
}, g.prototype.getIsImageComplete = function() {
|
|
2321
2321
|
return this.img.complete && this.img.naturalWidth;
|
|
2322
|
-
}, g.prototype.confirm = function(
|
|
2323
|
-
this.isLoaded =
|
|
2324
|
-
}, g.prototype.handleEvent = function(
|
|
2325
|
-
var b = "on" +
|
|
2326
|
-
this[b] && this[b](
|
|
2322
|
+
}, g.prototype.confirm = function(d, b) {
|
|
2323
|
+
this.isLoaded = d, this.emitEvent("progress", [this, this.img, b]);
|
|
2324
|
+
}, g.prototype.handleEvent = function(d) {
|
|
2325
|
+
var b = "on" + d.type;
|
|
2326
|
+
this[b] && this[b](d);
|
|
2327
2327
|
}, g.prototype.onload = function() {
|
|
2328
2328
|
this.confirm(!0, "onload"), this.unbindEvents();
|
|
2329
2329
|
}, g.prototype.onerror = function() {
|
|
@@ -2331,28 +2331,28 @@ var $t = { exports: {} };
|
|
|
2331
2331
|
}, g.prototype.unbindEvents = function() {
|
|
2332
2332
|
this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
2333
2333
|
};
|
|
2334
|
-
function _(
|
|
2335
|
-
this.url =
|
|
2334
|
+
function _(d, b) {
|
|
2335
|
+
this.url = d, this.element = b, this.img = new Image();
|
|
2336
2336
|
}
|
|
2337
2337
|
return _.prototype = Object.create(g.prototype), _.prototype.check = function() {
|
|
2338
2338
|
this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
|
|
2339
|
-
var
|
|
2340
|
-
|
|
2339
|
+
var d = this.getIsImageComplete();
|
|
2340
|
+
d && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
|
|
2341
2341
|
}, _.prototype.unbindEvents = function() {
|
|
2342
2342
|
this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
2343
|
-
}, _.prototype.confirm = function(
|
|
2344
|
-
this.isLoaded =
|
|
2345
|
-
},
|
|
2346
|
-
|
|
2347
|
-
var m = new
|
|
2348
|
-
return m.jqDeferred.promise(
|
|
2343
|
+
}, _.prototype.confirm = function(d, b) {
|
|
2344
|
+
this.isLoaded = d, this.emitEvent("progress", [this, this.element, b]);
|
|
2345
|
+
}, u.makeJQueryPlugin = function(d) {
|
|
2346
|
+
d = d || t.jQuery, d && (p = d, p.fn.imagesLoaded = function(b, k) {
|
|
2347
|
+
var m = new u(this, b, k);
|
|
2348
|
+
return m.jqDeferred.promise(p(this));
|
|
2349
2349
|
});
|
|
2350
|
-
},
|
|
2350
|
+
}, u.makeJQueryPlugin(), u;
|
|
2351
2351
|
}
|
|
2352
2352
|
);
|
|
2353
2353
|
})($t);
|
|
2354
2354
|
var hi = $t.exports;
|
|
2355
|
-
const fi = /* @__PURE__ */
|
|
2355
|
+
const fi = /* @__PURE__ */ Ct(hi);
|
|
2356
2356
|
function mi(o) {
|
|
2357
2357
|
return { all: o = o || /* @__PURE__ */ new Map(), on: function(e, t) {
|
|
2358
2358
|
var n = o.get(e);
|
|
@@ -2362,10 +2362,10 @@ function mi(o) {
|
|
|
2362
2362
|
n && (t ? n.splice(n.indexOf(t) >>> 0, 1) : o.set(e, []));
|
|
2363
2363
|
}, emit: function(e, t) {
|
|
2364
2364
|
var n = o.get(e);
|
|
2365
|
-
n && n.slice().map(function(
|
|
2366
|
-
|
|
2367
|
-
}), (n = o.get("*")) && n.slice().map(function(
|
|
2368
|
-
|
|
2365
|
+
n && n.slice().map(function(p) {
|
|
2366
|
+
p(t);
|
|
2367
|
+
}), (n = o.get("*")) && n.slice().map(function(p) {
|
|
2368
|
+
p(e, t);
|
|
2369
2369
|
});
|
|
2370
2370
|
} };
|
|
2371
2371
|
}
|
|
@@ -2393,63 +2393,63 @@ const me = {
|
|
|
2393
2393
|
}), e;
|
|
2394
2394
|
}, St = {};
|
|
2395
2395
|
St.install = function(o, e) {
|
|
2396
|
-
const t = mi(), n = "VueMasonry",
|
|
2397
|
-
|
|
2396
|
+
const t = mi(), n = "VueMasonry", p = o;
|
|
2397
|
+
p.directive("masonry", {
|
|
2398
2398
|
props: ["transitionDuration", " itemSelector", "destroyDelay"],
|
|
2399
|
-
mounted: function(
|
|
2399
|
+
mounted: function(r, h) {
|
|
2400
2400
|
if (!lt)
|
|
2401
2401
|
throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
|
|
2402
|
-
const c = yi(
|
|
2403
|
-
|
|
2402
|
+
const c = yi(r.attributes), l = new lt(r, c), u = h.value || n, f = c.destroyDelay ? parseInt(c.destroyDelay, 10) : void 0, g = function() {
|
|
2403
|
+
l.reloadItems(), l.layout();
|
|
2404
2404
|
};
|
|
2405
2405
|
Et(() => {
|
|
2406
2406
|
g();
|
|
2407
2407
|
});
|
|
2408
2408
|
const _ = function(b) {
|
|
2409
2409
|
g();
|
|
2410
|
-
},
|
|
2411
|
-
t.off(`${ge}__${
|
|
2410
|
+
}, d = function(b) {
|
|
2411
|
+
t.off(`${ge}__${u}`, _), t.off(`${Me}__${u}`, _), t.off(`${Re}__${u}`, _), t.off(`${Be}__${u}`, d);
|
|
2412
2412
|
const k = f && !Number.isNaN(f) ? f : 0;
|
|
2413
2413
|
setTimeout(function() {
|
|
2414
|
-
|
|
2414
|
+
l.destroy();
|
|
2415
2415
|
}, k);
|
|
2416
2416
|
};
|
|
2417
|
-
t.on(`${ge}__${
|
|
2417
|
+
t.on(`${ge}__${u}`, _), t.on(`${Me}__${u}`, _), t.on(`${Re}__${u}`, _), t.on(`${Be}__${u}`, d);
|
|
2418
2418
|
},
|
|
2419
|
-
unbind: function(
|
|
2419
|
+
unbind: function(r, h) {
|
|
2420
2420
|
const c = h.value || n;
|
|
2421
2421
|
t.emit(`${Be}__${c}`);
|
|
2422
2422
|
}
|
|
2423
|
-
}),
|
|
2424
|
-
mounted: function(
|
|
2423
|
+
}), p.directive("masonryTile", {
|
|
2424
|
+
mounted: function(r, h) {
|
|
2425
2425
|
const c = h.value || n;
|
|
2426
2426
|
t.emit(`${ge}__${c}`, {
|
|
2427
|
-
element:
|
|
2428
|
-
}), new fi(
|
|
2427
|
+
element: r
|
|
2428
|
+
}), new fi(r, function() {
|
|
2429
2429
|
t.emit(`${Re}__${c}`, {
|
|
2430
|
-
element:
|
|
2430
|
+
element: r
|
|
2431
2431
|
});
|
|
2432
2432
|
});
|
|
2433
2433
|
},
|
|
2434
|
-
unbind: function(
|
|
2434
|
+
unbind: function(r, h) {
|
|
2435
2435
|
const c = h.value || n;
|
|
2436
2436
|
t.emit(`${Me}__${c}`, {
|
|
2437
|
-
element:
|
|
2437
|
+
element: r
|
|
2438
2438
|
});
|
|
2439
2439
|
}
|
|
2440
2440
|
});
|
|
2441
2441
|
{
|
|
2442
|
-
const
|
|
2442
|
+
const r = function(h) {
|
|
2443
2443
|
const c = h || n;
|
|
2444
2444
|
t.emit(`${ge}__${c}`);
|
|
2445
2445
|
};
|
|
2446
|
-
o.config.globalProperties.$redrawVueMasonry =
|
|
2446
|
+
o.config.globalProperties.$redrawVueMasonry = r, o.provide("redrawVueMasonry", r);
|
|
2447
2447
|
}
|
|
2448
2448
|
};
|
|
2449
2449
|
function Ne(o, e = {}, t) {
|
|
2450
2450
|
for (const n in o) {
|
|
2451
|
-
const
|
|
2452
|
-
typeof
|
|
2451
|
+
const p = o[n], r = t ? `${t}:${n}` : n;
|
|
2452
|
+
typeof p == "object" && p !== null ? Ne(p, e, r) : typeof p == "function" && (e[r] = p);
|
|
2453
2453
|
}
|
|
2454
2454
|
return e;
|
|
2455
2455
|
}
|
|
@@ -2457,13 +2457,13 @@ const bi = { run: (o) => o() }, ki = () => bi, Vt = typeof console.createTask <
|
|
|
2457
2457
|
function _i(o, e) {
|
|
2458
2458
|
const t = e.shift(), n = Vt(t);
|
|
2459
2459
|
return o.reduce(
|
|
2460
|
-
(
|
|
2460
|
+
(p, r) => p.then(() => n.run(() => r(...e))),
|
|
2461
2461
|
Promise.resolve()
|
|
2462
2462
|
);
|
|
2463
2463
|
}
|
|
2464
2464
|
function Ei(o, e) {
|
|
2465
2465
|
const t = e.shift(), n = Vt(t);
|
|
2466
|
-
return Promise.all(o.map((
|
|
2466
|
+
return Promise.all(o.map((p) => n.run(() => p(...e))));
|
|
2467
2467
|
}
|
|
2468
2468
|
function ze(o, e) {
|
|
2469
2469
|
for (const t of [...o])
|
|
@@ -2477,13 +2477,13 @@ class Ti {
|
|
|
2477
2477
|
if (!e || typeof t != "function")
|
|
2478
2478
|
return () => {
|
|
2479
2479
|
};
|
|
2480
|
-
const
|
|
2481
|
-
let
|
|
2480
|
+
const p = e;
|
|
2481
|
+
let r;
|
|
2482
2482
|
for (; this._deprecatedHooks[e]; )
|
|
2483
|
-
|
|
2484
|
-
if (
|
|
2485
|
-
let h =
|
|
2486
|
-
h || (h = `${
|
|
2483
|
+
r = this._deprecatedHooks[e], e = r.to;
|
|
2484
|
+
if (r && !n.allowDeprecated) {
|
|
2485
|
+
let h = r.message;
|
|
2486
|
+
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));
|
|
2487
2487
|
}
|
|
2488
2488
|
if (!t.name)
|
|
2489
2489
|
try {
|
|
@@ -2498,8 +2498,8 @@ class Ti {
|
|
|
2498
2498
|
};
|
|
2499
2499
|
}
|
|
2500
2500
|
hookOnce(e, t) {
|
|
2501
|
-
let n,
|
|
2502
|
-
return n = this.hook(e,
|
|
2501
|
+
let n, p = (...r) => (typeof n == "function" && n(), n = void 0, p = void 0, t(...r));
|
|
2502
|
+
return n = this.hook(e, p), n;
|
|
2503
2503
|
}
|
|
2504
2504
|
removeHook(e, t) {
|
|
2505
2505
|
if (this._hooks[e]) {
|
|
@@ -2511,8 +2511,8 @@ class Ti {
|
|
|
2511
2511
|
this._deprecatedHooks[e] = typeof t == "string" ? { to: t } : t;
|
|
2512
2512
|
const n = this._hooks[e] || [];
|
|
2513
2513
|
delete this._hooks[e];
|
|
2514
|
-
for (const
|
|
2515
|
-
this.hook(e,
|
|
2514
|
+
for (const p of n)
|
|
2515
|
+
this.hook(e, p);
|
|
2516
2516
|
}
|
|
2517
2517
|
deprecateHooks(e) {
|
|
2518
2518
|
Object.assign(this._deprecatedHooks, e);
|
|
@@ -2521,11 +2521,11 @@ class Ti {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
addHooks(e) {
|
|
2523
2523
|
const t = Ne(e), n = Object.keys(t).map(
|
|
2524
|
-
(
|
|
2524
|
+
(p) => this.hook(p, t[p])
|
|
2525
2525
|
);
|
|
2526
2526
|
return () => {
|
|
2527
|
-
for (const
|
|
2528
|
-
|
|
2527
|
+
for (const p of n.splice(0, n.length))
|
|
2528
|
+
p();
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
2531
|
removeHooks(e) {
|
|
@@ -2544,15 +2544,15 @@ class Ti {
|
|
|
2544
2544
|
return t.unshift(e), this.callHookWith(Ei, e, ...t);
|
|
2545
2545
|
}
|
|
2546
2546
|
callHookWith(e, t, ...n) {
|
|
2547
|
-
const
|
|
2548
|
-
this._before && ze(this._before,
|
|
2549
|
-
const
|
|
2547
|
+
const p = this._before || this._after ? { name: t, args: n, context: {} } : void 0;
|
|
2548
|
+
this._before && ze(this._before, p);
|
|
2549
|
+
const r = e(
|
|
2550
2550
|
t in this._hooks ? [...this._hooks[t]] : [],
|
|
2551
2551
|
n
|
|
2552
2552
|
);
|
|
2553
|
-
return
|
|
2554
|
-
this._after &&
|
|
2555
|
-
}) : (this._after &&
|
|
2553
|
+
return r instanceof Promise ? r.finally(() => {
|
|
2554
|
+
this._after && p && ze(this._after, p);
|
|
2555
|
+
}) : (this._after && p && ze(this._after, p), r);
|
|
2556
2556
|
}
|
|
2557
2557
|
beforeEach(e) {
|
|
2558
2558
|
return this._before = this._before || [], this._before.push(e), () => {
|
|
@@ -2571,10 +2571,10 @@ class Ti {
|
|
|
2571
2571
|
};
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2574
|
+
function Ci() {
|
|
2575
2575
|
return new Ti();
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function Ii(o) {
|
|
2578
2578
|
return Array.isArray(o) ? o : [o];
|
|
2579
2579
|
}
|
|
2580
2580
|
const $i = ["title", "titleTemplate", "script", "style", "noscript"], ve = [
|
|
@@ -2614,12 +2614,12 @@ function Pt(o, e) {
|
|
|
2614
2614
|
return "canonical";
|
|
2615
2615
|
if (t.charset)
|
|
2616
2616
|
return "charset";
|
|
2617
|
-
const
|
|
2618
|
-
n === "meta" &&
|
|
2619
|
-
for (const
|
|
2620
|
-
if (typeof t[
|
|
2621
|
-
const h = String(t[
|
|
2622
|
-
return e && !e(h) ? !1 : `${n}:${
|
|
2617
|
+
const p = ["id"];
|
|
2618
|
+
n === "meta" && p.push("name", "property", "http-equiv");
|
|
2619
|
+
for (const r of p)
|
|
2620
|
+
if (typeof t[r] < "u") {
|
|
2621
|
+
const h = String(t[r]);
|
|
2622
|
+
return e && !e(h) ? !1 : `${n}:${r}:${h}`;
|
|
2623
2623
|
}
|
|
2624
2624
|
return !1;
|
|
2625
2625
|
}
|
|
@@ -2636,10 +2636,10 @@ async function Pi(o, e, t) {
|
|
|
2636
2636
|
["templateParams", "titleTemplate"].includes(o)
|
|
2637
2637
|
)
|
|
2638
2638
|
};
|
|
2639
|
-
return Lt.forEach((
|
|
2640
|
-
const
|
|
2641
|
-
typeof
|
|
2642
|
-
}), 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((
|
|
2639
|
+
return Lt.forEach((p) => {
|
|
2640
|
+
const r = typeof n.props[p] < "u" ? n.props[p] : t[p];
|
|
2641
|
+
typeof r < "u" && ((!["innerHTML", "textContent", "children"].includes(p) || $i.includes(n.tag)) && (n[p === "children" ? "innerHTML" : p] = r), delete n.props[p]);
|
|
2642
|
+
}), 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;
|
|
2643
2643
|
}
|
|
2644
2644
|
function xi(o) {
|
|
2645
2645
|
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(" ");
|
|
@@ -2651,8 +2651,8 @@ async function xt(o, e) {
|
|
|
2651
2651
|
continue;
|
|
2652
2652
|
}
|
|
2653
2653
|
if (o[t] instanceof Promise && (o[t] = await o[t]), !e && !Lt.includes(t)) {
|
|
2654
|
-
const n = String(o[t]),
|
|
2655
|
-
n === "true" || n === "" ? o[t] =
|
|
2654
|
+
const n = String(o[t]), p = t.startsWith("data-");
|
|
2655
|
+
n === "true" || n === "" ? o[t] = p ? "true" : !0 : o[t] || (p && n === "false" ? o[t] = "false" : delete o[t]);
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
2658
|
return o;
|
|
@@ -2661,8 +2661,8 @@ const wi = 10;
|
|
|
2661
2661
|
async function Hi(o) {
|
|
2662
2662
|
const e = [];
|
|
2663
2663
|
return Object.entries(o.resolvedInput).filter(([t, n]) => typeof n < "u" && Si.includes(t)).forEach(([t, n]) => {
|
|
2664
|
-
const
|
|
2665
|
-
e.push(...
|
|
2664
|
+
const p = Ii(n);
|
|
2665
|
+
e.push(...p.map((r) => Pi(t, r, o)).flat());
|
|
2666
2666
|
}), (await Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e = o._i, o.mode && (t._m = o.mode), t._p = (o._i << wi) + n, t));
|
|
2667
2667
|
}
|
|
2668
2668
|
const ct = {
|
|
@@ -2686,19 +2686,19 @@ function ye(o, e, t) {
|
|
|
2686
2686
|
return o;
|
|
2687
2687
|
function n(h) {
|
|
2688
2688
|
let c;
|
|
2689
|
-
return ["s", "pageTitle"].includes(h) ? c = e.pageTitle : h.includes(".") ? c = h.split(".").reduce((
|
|
2689
|
+
return ["s", "pageTitle"].includes(h) ? c = e.pageTitle : h.includes(".") ? c = h.split(".").reduce((l, u) => l && l[u] || void 0, e) : c = e[h], typeof c < "u" ? (c || "").replace(/"/g, '\\"') : !1;
|
|
2690
2690
|
}
|
|
2691
|
-
let
|
|
2691
|
+
let p = o;
|
|
2692
2692
|
try {
|
|
2693
|
-
|
|
2693
|
+
p = decodeURI(o);
|
|
2694
2694
|
} catch {
|
|
2695
2695
|
}
|
|
2696
|
-
return (
|
|
2696
|
+
return (p.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((h) => {
|
|
2697
2697
|
const c = n(h.slice(1));
|
|
2698
|
-
typeof c == "string" && (o = o.replace(new RegExp(`\\${h}(\\W|$)`, "g"), (
|
|
2698
|
+
typeof c == "string" && (o = o.replace(new RegExp(`\\${h}(\\W|$)`, "g"), (l, u) => `${c}${u}`).trim());
|
|
2699
2699
|
}), o.includes(Z) && (o.endsWith(Z) && (o = o.slice(0, -Z.length).trim()), o.startsWith(Z) && (o = o.slice(Z.length).trim()), o = o.replace(new RegExp(`\\${Z}\\s*\\${Z}`, "g"), Z), o = ye(o, { separator: t }, t)), o;
|
|
2700
2700
|
}
|
|
2701
|
-
async function
|
|
2701
|
+
async function Ai(o) {
|
|
2702
2702
|
const e = {
|
|
2703
2703
|
tag: o.tagName.toLowerCase(),
|
|
2704
2704
|
props: await xt(
|
|
@@ -2708,76 +2708,76 @@ async function Di(o) {
|
|
|
2708
2708
|
};
|
|
2709
2709
|
return e._d = Pt(e), e;
|
|
2710
2710
|
}
|
|
2711
|
-
async function
|
|
2711
|
+
async function Di(o, e = {}) {
|
|
2712
2712
|
const t = e.document || o.resolvedOptions.document;
|
|
2713
2713
|
if (!t)
|
|
2714
2714
|
return;
|
|
2715
2715
|
const n = { shouldRender: o.dirty, tags: [] };
|
|
2716
2716
|
if (await o.hooks.callHook("dom:beforeRender", n), !n.shouldRender)
|
|
2717
2717
|
return;
|
|
2718
|
-
const
|
|
2718
|
+
const p = (await o.resolveTags()).map((f) => ({
|
|
2719
2719
|
tag: f,
|
|
2720
2720
|
id: ve.includes(f.tag) ? ut(f) : f.tag,
|
|
2721
2721
|
shouldRender: !0
|
|
2722
2722
|
}));
|
|
2723
|
-
let
|
|
2724
|
-
if (!
|
|
2725
|
-
|
|
2723
|
+
let r = o._dom;
|
|
2724
|
+
if (!r) {
|
|
2725
|
+
r = {
|
|
2726
2726
|
elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
|
|
2727
2727
|
};
|
|
2728
2728
|
for (const f of ["body", "head"]) {
|
|
2729
2729
|
const g = t?.[f]?.children;
|
|
2730
|
-
for (const _ of [...g].filter((
|
|
2731
|
-
|
|
2730
|
+
for (const _ of [...g].filter((d) => ve.includes(d.tagName.toLowerCase())))
|
|
2731
|
+
r.elMap[_.getAttribute("data-hid") || ut(await Ai(_))] = _;
|
|
2732
2732
|
}
|
|
2733
2733
|
}
|
|
2734
|
-
|
|
2734
|
+
r.pendingSideEffects = { ...r.sideEffects || {} }, r.sideEffects = {};
|
|
2735
2735
|
function h(f, g, _) {
|
|
2736
|
-
const
|
|
2737
|
-
|
|
2736
|
+
const d = `${f}:${g}`;
|
|
2737
|
+
r.sideEffects[d] = _, delete r.pendingSideEffects[d];
|
|
2738
2738
|
}
|
|
2739
2739
|
function c({ id: f, $el: g, tag: _ }) {
|
|
2740
|
-
const
|
|
2741
|
-
|
|
2740
|
+
const d = _.tag.endsWith("Attrs");
|
|
2741
|
+
r.elMap[f] = g, d || (["textContent", "innerHTML"].forEach((b) => {
|
|
2742
2742
|
_[b] && _[b] !== g[b] && (g[b] = _[b]);
|
|
2743
2743
|
}), h(f, "el", () => {
|
|
2744
|
-
|
|
2744
|
+
r.elMap[f].remove(), delete r.elMap[f];
|
|
2745
2745
|
})), Object.entries(_.props).forEach(([b, k]) => {
|
|
2746
2746
|
const m = `attr:${b}`;
|
|
2747
2747
|
if (b === "class")
|
|
2748
2748
|
for (const i of (k || "").split(" ").filter(Boolean))
|
|
2749
|
-
|
|
2749
|
+
d && h(f, `${m}:${i}`, () => g.classList.remove(i)), !g.classList.contains(i) && g.classList.add(i);
|
|
2750
2750
|
else
|
|
2751
|
-
g.getAttribute(b) !== k && g.setAttribute(b, k === !0 ? "" : String(k)),
|
|
2751
|
+
g.getAttribute(b) !== k && g.setAttribute(b, k === !0 ? "" : String(k)), d && h(f, m, () => g.removeAttribute(b));
|
|
2752
2752
|
});
|
|
2753
2753
|
}
|
|
2754
|
-
const
|
|
2754
|
+
const l = [], u = {
|
|
2755
2755
|
bodyClose: void 0,
|
|
2756
2756
|
bodyOpen: void 0,
|
|
2757
2757
|
head: void 0
|
|
2758
2758
|
};
|
|
2759
|
-
for (const f of
|
|
2760
|
-
const { tag: g, shouldRender: _, id:
|
|
2759
|
+
for (const f of p) {
|
|
2760
|
+
const { tag: g, shouldRender: _, id: d } = f;
|
|
2761
2761
|
if (_) {
|
|
2762
2762
|
if (g.tag === "title") {
|
|
2763
2763
|
t.title = g.textContent;
|
|
2764
2764
|
continue;
|
|
2765
2765
|
}
|
|
2766
|
-
f.$el = f.$el ||
|
|
2766
|
+
f.$el = f.$el || r.elMap[d], f.$el ? c(f) : ve.includes(g.tag) && l.push(f);
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
|
-
for (const f of
|
|
2769
|
+
for (const f of l) {
|
|
2770
2770
|
const g = f.tag.tagPosition || "head";
|
|
2771
|
-
f.$el = t.createElement(f.tag.tag), c(f),
|
|
2771
|
+
f.$el = t.createElement(f.tag.tag), c(f), u[g] = u[g] || t.createDocumentFragment(), u[g].appendChild(f.$el);
|
|
2772
2772
|
}
|
|
2773
|
-
for (const f of
|
|
2773
|
+
for (const f of p)
|
|
2774
2774
|
await o.hooks.callHook("dom:renderTag", f, t, h);
|
|
2775
|
-
|
|
2775
|
+
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 });
|
|
2776
2776
|
}
|
|
2777
2777
|
async function Mi(o, e = {}) {
|
|
2778
2778
|
const t = e.delayFn || ((n) => setTimeout(n, 10));
|
|
2779
2779
|
return o._domUpdatePromise = o._domUpdatePromise || new Promise((n) => t(async () => {
|
|
2780
|
-
await
|
|
2780
|
+
await Di(o, e), delete o._domUpdatePromise, n();
|
|
2781
2781
|
}));
|
|
2782
2782
|
}
|
|
2783
2783
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2806,35 +2806,35 @@ const Bi = ["templateParams", "htmlAttrs", "bodyAttrs"], zi = {
|
|
|
2806
2806
|
"tags:resolve": function(o) {
|
|
2807
2807
|
const e = {};
|
|
2808
2808
|
o.tags.forEach((n) => {
|
|
2809
|
-
const
|
|
2810
|
-
if (
|
|
2809
|
+
const p = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p, r = e[p];
|
|
2810
|
+
if (r) {
|
|
2811
2811
|
let c = n?.tagDuplicateStrategy;
|
|
2812
2812
|
if (!c && Bi.includes(n.tag) && (c = "merge"), c === "merge") {
|
|
2813
|
-
const
|
|
2814
|
-
["class", "style"].forEach((
|
|
2815
|
-
|
|
2816
|
-
}), e[
|
|
2817
|
-
...
|
|
2813
|
+
const l = r.props;
|
|
2814
|
+
["class", "style"].forEach((u) => {
|
|
2815
|
+
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]);
|
|
2816
|
+
}), e[p].props = {
|
|
2817
|
+
...l,
|
|
2818
2818
|
...n.props
|
|
2819
2819
|
};
|
|
2820
2820
|
return;
|
|
2821
|
-
} else if (n._e ===
|
|
2822
|
-
|
|
2821
|
+
} else if (n._e === r._e) {
|
|
2822
|
+
r._duped = r._duped || [], n._d = `${r._d}:${r._duped.length + 1}`, r._duped.push(n);
|
|
2823
2823
|
return;
|
|
2824
|
-
} else if (_e(n) > _e(
|
|
2824
|
+
} else if (_e(n) > _e(r))
|
|
2825
2825
|
return;
|
|
2826
2826
|
}
|
|
2827
2827
|
const h = Object.keys(n.props).length + (n.innerHTML ? 1 : 0) + (n.textContent ? 1 : 0);
|
|
2828
2828
|
if (ve.includes(n.tag) && h === 0) {
|
|
2829
|
-
delete e[
|
|
2829
|
+
delete e[p];
|
|
2830
2830
|
return;
|
|
2831
2831
|
}
|
|
2832
|
-
e[
|
|
2832
|
+
e[p] = n;
|
|
2833
2833
|
});
|
|
2834
2834
|
const t = [];
|
|
2835
2835
|
Object.values(e).forEach((n) => {
|
|
2836
|
-
const
|
|
2837
|
-
delete n._duped, t.push(n),
|
|
2836
|
+
const p = n._duped;
|
|
2837
|
+
delete n._duped, t.push(n), p && t.push(...p);
|
|
2838
2838
|
}), o.tags = t, o.tags = o.tags.filter((n) => !(n.tag === "meta" && (n.props.name || n.props.property) && !n.props.content));
|
|
2839
2839
|
}
|
|
2840
2840
|
}
|
|
@@ -2855,8 +2855,8 @@ const Bi = ["templateParams", "htmlAttrs", "bodyAttrs"], zi = {
|
|
|
2855
2855
|
}, Fi = ["script", "link", "bodyAttrs"];
|
|
2856
2856
|
function Ni(o) {
|
|
2857
2857
|
const e = {}, t = {};
|
|
2858
|
-
return Object.entries(o.props).forEach(([n,
|
|
2859
|
-
n.startsWith("on") && typeof
|
|
2858
|
+
return Object.entries(o.props).forEach(([n, p]) => {
|
|
2859
|
+
n.startsWith("on") && typeof p == "function" ? (wt.includes(n) && (e[n] = `this.dataset.${n} = true`), t[n] = p) : e[n] = p;
|
|
2860
2860
|
}), { props: e, eventHandlers: t };
|
|
2861
2861
|
}
|
|
2862
2862
|
const Ui = (o) => ({
|
|
@@ -2864,50 +2864,50 @@ const Ui = (o) => ({
|
|
|
2864
2864
|
"tags:resolve": function(e) {
|
|
2865
2865
|
for (const t of e.tags)
|
|
2866
2866
|
if (Fi.includes(t.tag)) {
|
|
2867
|
-
const { props: n, eventHandlers:
|
|
2868
|
-
t.props = n, Object.keys(
|
|
2867
|
+
const { props: n, eventHandlers: p } = Ni(t);
|
|
2868
|
+
t.props = n, Object.keys(p).length && ((t.props.src || t.props.href) && (t.key = t.key || Ke(t.props.src || t.props.href)), t._eventHandlers = p);
|
|
2869
2869
|
}
|
|
2870
2870
|
},
|
|
2871
2871
|
"dom:renderTag": function(e, t, n) {
|
|
2872
2872
|
if (!e.tag._eventHandlers)
|
|
2873
2873
|
return;
|
|
2874
|
-
const
|
|
2875
|
-
Object.entries(e.tag._eventHandlers).forEach(([
|
|
2876
|
-
const c = `${e.tag._d || e.tag._p}:${
|
|
2874
|
+
const p = e.tag.tag === "bodyAttrs" ? t.defaultView : e.$el;
|
|
2875
|
+
Object.entries(e.tag._eventHandlers).forEach(([r, h]) => {
|
|
2876
|
+
const c = `${e.tag._d || e.tag._p}:${r}`, l = r.slice(2).toLowerCase(), u = `data-h-${l}`;
|
|
2877
2877
|
if (n(e.id, c, () => {
|
|
2878
|
-
}), e.$el.hasAttribute(
|
|
2878
|
+
}), e.$el.hasAttribute(u))
|
|
2879
2879
|
return;
|
|
2880
|
-
e.$el.setAttribute(
|
|
2880
|
+
e.$el.setAttribute(u, "");
|
|
2881
2881
|
let f;
|
|
2882
2882
|
const g = (_) => {
|
|
2883
2883
|
h(_), f?.disconnect();
|
|
2884
2884
|
};
|
|
2885
|
-
|
|
2886
|
-
_.some((b) => b.attributeName === `data-${
|
|
2885
|
+
r in e.$el.dataset ? g(new Event(r.replace("on", ""))) : wt.includes(r) && typeof MutationObserver < "u" ? (f = new MutationObserver((_) => {
|
|
2886
|
+
_.some((b) => b.attributeName === `data-${r}`) && (g(new Event(r.replace("on", ""))), f?.disconnect());
|
|
2887
2887
|
}), f.observe(e.$el, {
|
|
2888
2888
|
attributes: !0
|
|
2889
|
-
})) :
|
|
2890
|
-
f?.disconnect(),
|
|
2889
|
+
})) : p.addEventListener(l, g), n(e.id, c, () => {
|
|
2890
|
+
f?.disconnect(), p.removeEventListener(l, g), e.$el.removeAttribute(u);
|
|
2891
2891
|
});
|
|
2892
2892
|
});
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
2895
|
-
}), qi = ["link", "style", "script", "noscript"],
|
|
2895
|
+
}), qi = ["link", "style", "script", "noscript"], ji = {
|
|
2896
2896
|
hooks: {
|
|
2897
2897
|
"tag:normalise": ({ tag: o }) => {
|
|
2898
2898
|
o.key && qi.includes(o.tag) && (o.props["data-hid"] = o._h = Ke(o.key));
|
|
2899
2899
|
}
|
|
2900
2900
|
}
|
|
2901
|
-
},
|
|
2901
|
+
}, Gi = {
|
|
2902
2902
|
hooks: {
|
|
2903
2903
|
"tags:resolve": (o) => {
|
|
2904
2904
|
const e = (t) => o.tags.find((n) => n._d === t)?._p;
|
|
2905
2905
|
for (const { prefix: t, offset: n } of Oi)
|
|
2906
|
-
for (const
|
|
2907
|
-
const
|
|
2908
|
-
|
|
2906
|
+
for (const p of o.tags.filter((r) => typeof r.tagPriority == "string" && r.tagPriority.startsWith(t))) {
|
|
2907
|
+
const r = e(
|
|
2908
|
+
p.tagPriority.replace(t, "")
|
|
2909
2909
|
);
|
|
2910
|
-
typeof
|
|
2910
|
+
typeof r < "u" && (p._p = r + n);
|
|
2911
2911
|
}
|
|
2912
2912
|
o.tags.sort((t, n) => t._p - n._p).sort((t, n) => _e(t) - _e(n));
|
|
2913
2913
|
}
|
|
@@ -2919,34 +2919,34 @@ const Ui = (o) => ({
|
|
|
2919
2919
|
}, Ki = (o) => ({
|
|
2920
2920
|
hooks: {
|
|
2921
2921
|
"tags:resolve": (e) => {
|
|
2922
|
-
const { tags: t } = e, n = t.find((c) => c.tag === "title")?.textContent,
|
|
2923
|
-
delete
|
|
2924
|
-
for (const c of t.filter((
|
|
2925
|
-
const
|
|
2926
|
-
|
|
2927
|
-
typeof c[
|
|
2922
|
+
const { tags: t } = e, n = t.find((c) => c.tag === "title")?.textContent, p = t.findIndex((c) => c.tag === "templateParams"), r = p !== -1 ? t[p].props : {}, h = r.separator || "|";
|
|
2923
|
+
delete r.separator, r.pageTitle = ye(r.pageTitle || n || "", r, h);
|
|
2924
|
+
for (const c of t.filter((l) => l.processTemplateParams !== !1)) {
|
|
2925
|
+
const l = Yi[c.tag];
|
|
2926
|
+
l && typeof c.props[l] == "string" ? c.props[l] = ye(c.props[l], r, h) : (c.processTemplateParams === !0 || ["titleTemplate", "title"].includes(c.tag)) && ["innerHTML", "textContent"].forEach((u) => {
|
|
2927
|
+
typeof c[u] == "string" && (c[u] = ye(c[u], r, h));
|
|
2928
2928
|
});
|
|
2929
2929
|
}
|
|
2930
|
-
o._templateParams =
|
|
2930
|
+
o._templateParams = r, o._separator = h, e.tags = t.filter((c) => c.tag !== "templateParams");
|
|
2931
2931
|
}
|
|
2932
2932
|
}
|
|
2933
2933
|
}), Qi = {
|
|
2934
2934
|
hooks: {
|
|
2935
2935
|
"tags:resolve": (o) => {
|
|
2936
2936
|
const { tags: e } = o;
|
|
2937
|
-
let t = e.findIndex((
|
|
2938
|
-
const n = e.findIndex((
|
|
2937
|
+
let t = e.findIndex((p) => p.tag === "titleTemplate");
|
|
2938
|
+
const n = e.findIndex((p) => p.tag === "title");
|
|
2939
2939
|
if (n !== -1 && t !== -1) {
|
|
2940
|
-
const
|
|
2940
|
+
const p = dt(
|
|
2941
2941
|
e[t].textContent,
|
|
2942
2942
|
e[n].textContent
|
|
2943
2943
|
);
|
|
2944
|
-
|
|
2944
|
+
p !== null ? e[n].textContent = p || e[n].textContent : delete e[n];
|
|
2945
2945
|
} else if (t !== -1) {
|
|
2946
|
-
const
|
|
2946
|
+
const p = dt(
|
|
2947
2947
|
e[t].textContent
|
|
2948
2948
|
);
|
|
2949
|
-
|
|
2949
|
+
p !== null && (e[t].textContent = p, e[t].tag = "title", t = -1);
|
|
2950
2950
|
}
|
|
2951
2951
|
t !== -1 && delete e[t], o.tags = e.filter(Boolean);
|
|
2952
2952
|
}
|
|
@@ -2969,53 +2969,53 @@ function ht(o, e) {
|
|
|
2969
2969
|
return !o || o === "server" && e || o === "client" && !e;
|
|
2970
2970
|
}
|
|
2971
2971
|
function Zi(o = {}) {
|
|
2972
|
-
const e =
|
|
2972
|
+
const e = Ci();
|
|
2973
2973
|
e.addHooks(o.hooks || {}), o.document = o.document || (Li ? document : void 0);
|
|
2974
2974
|
const t = !o.document, n = () => {
|
|
2975
2975
|
c.dirty = !0, e.callHook("entries:updated", c);
|
|
2976
2976
|
};
|
|
2977
|
-
let
|
|
2977
|
+
let p = 0, r = [];
|
|
2978
2978
|
const h = [], c = {
|
|
2979
2979
|
plugins: h,
|
|
2980
2980
|
dirty: !1,
|
|
2981
2981
|
resolvedOptions: o,
|
|
2982
2982
|
hooks: e,
|
|
2983
2983
|
headEntries() {
|
|
2984
|
-
return
|
|
2984
|
+
return r;
|
|
2985
2985
|
},
|
|
2986
|
-
use(
|
|
2987
|
-
const
|
|
2988
|
-
(!
|
|
2986
|
+
use(l) {
|
|
2987
|
+
const u = typeof l == "function" ? l(c) : l;
|
|
2988
|
+
(!u.key || !h.some((f) => f.key === u.key)) && (h.push(u), ht(u.mode, t) && e.addHooks(u.hooks || {}));
|
|
2989
2989
|
},
|
|
2990
|
-
push(
|
|
2991
|
-
delete
|
|
2990
|
+
push(l, u) {
|
|
2991
|
+
delete u?.head;
|
|
2992
2992
|
const f = {
|
|
2993
|
-
_i:
|
|
2994
|
-
input:
|
|
2995
|
-
...
|
|
2993
|
+
_i: p++,
|
|
2994
|
+
input: l,
|
|
2995
|
+
...u
|
|
2996
2996
|
};
|
|
2997
|
-
return ht(f.mode, t) && (
|
|
2997
|
+
return ht(f.mode, t) && (r.push(f), n()), {
|
|
2998
2998
|
dispose() {
|
|
2999
|
-
|
|
2999
|
+
r = r.filter((g) => g._i !== f._i), e.callHook("entries:updated", c), n();
|
|
3000
3000
|
},
|
|
3001
3001
|
// a patch is the same as creating a new entry, just a nice DX
|
|
3002
3002
|
patch(g) {
|
|
3003
|
-
|
|
3003
|
+
r = r.map((_) => (_._i === f._i && (_.input = f.input = g), _)), n();
|
|
3004
3004
|
}
|
|
3005
3005
|
};
|
|
3006
3006
|
},
|
|
3007
3007
|
async resolveTags() {
|
|
3008
|
-
const
|
|
3009
|
-
await e.callHook("entries:resolve",
|
|
3010
|
-
for (const
|
|
3011
|
-
const f =
|
|
3012
|
-
if (
|
|
3013
|
-
for (const g of await Hi(
|
|
3014
|
-
const _ = { tag: g, entry:
|
|
3015
|
-
await e.callHook("tag:normalise", _),
|
|
3008
|
+
const l = { tags: [], entries: [...r] };
|
|
3009
|
+
await e.callHook("entries:resolve", l);
|
|
3010
|
+
for (const u of l.entries) {
|
|
3011
|
+
const f = u.resolvedInput || u.input;
|
|
3012
|
+
if (u.resolvedInput = await (u.transform ? u.transform(f) : f), u.resolvedInput)
|
|
3013
|
+
for (const g of await Hi(u)) {
|
|
3014
|
+
const _ = { tag: g, entry: u, resolvedOptions: c.resolvedOptions };
|
|
3015
|
+
await e.callHook("tag:normalise", _), l.tags.push(_.tag);
|
|
3016
3016
|
}
|
|
3017
3017
|
}
|
|
3018
|
-
return await e.callHook("tags:beforeResolve",
|
|
3018
|
+
return await e.callHook("tags:beforeResolve", l), await e.callHook("tags:resolve", l), await e.callHook("tags:afterResolve", l), l.tags;
|
|
3019
3019
|
},
|
|
3020
3020
|
ssr: t
|
|
3021
3021
|
};
|
|
@@ -3023,13 +3023,13 @@ function Zi(o = {}) {
|
|
|
3023
3023
|
zi,
|
|
3024
3024
|
Wi,
|
|
3025
3025
|
Ui,
|
|
3026
|
-
Gi,
|
|
3027
3026
|
ji,
|
|
3027
|
+
Gi,
|
|
3028
3028
|
Ki,
|
|
3029
3029
|
Qi,
|
|
3030
3030
|
Ji,
|
|
3031
3031
|
...o?.plugins || []
|
|
3032
|
-
].forEach((
|
|
3032
|
+
].forEach((l) => c.use(l)), c.hooks.callHook("init", c), c;
|
|
3033
3033
|
}
|
|
3034
3034
|
function er() {
|
|
3035
3035
|
return Ht;
|
|
@@ -3043,7 +3043,7 @@ function Ue(o, e = "") {
|
|
|
3043
3043
|
return o;
|
|
3044
3044
|
const t = or(o);
|
|
3045
3045
|
return !o || !t ? t : Array.isArray(t) ? t.map((n) => Ue(n, e)) : typeof t == "object" ? Object.fromEntries(
|
|
3046
|
-
Object.entries(t).map(([n,
|
|
3046
|
+
Object.entries(t).map(([n, p]) => n === "titleTemplate" || n.startsWith("on") ? [n, a(p)] : [n, Ue(p, n)])
|
|
3047
3047
|
) : t;
|
|
3048
3048
|
}
|
|
3049
3049
|
const nr = {
|
|
@@ -3079,17 +3079,27 @@ class lr extends HTMLElement {
|
|
|
3079
3079
|
super();
|
|
3080
3080
|
}
|
|
3081
3081
|
connectedCallback() {
|
|
3082
|
-
const e = typeof fe == "function" ? fe.options : fe
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3082
|
+
const e = typeof fe == "function" ? fe.options : fe;
|
|
3083
|
+
let t = Array.isArray(e.props) ? e.props : Object.keys(e.props || {});
|
|
3084
|
+
console.log(e);
|
|
3085
|
+
const n = (l) => l.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (u, f) => (f ? "-" : "") + u.toLowerCase()), p = {};
|
|
3086
|
+
t = t.map(n);
|
|
3087
|
+
const r = {};
|
|
3088
|
+
for (const l of this.attributes) {
|
|
3089
|
+
const u = l.name, f = u.split(".");
|
|
3090
|
+
console.log(u, f.length), f.length > 1 && (r[f[0]] || (r[f[0]] = {}), r[f[0]][f[1]] = l.value);
|
|
3091
|
+
}
|
|
3092
|
+
console.log(r);
|
|
3093
|
+
for (const l of t) {
|
|
3094
|
+
let u = this.attributes.getNamedItem(l)?.value;
|
|
3095
|
+
if (r.hasOwnProperty(l) && (u = r[l]), !u)
|
|
3086
3096
|
break;
|
|
3087
|
-
|
|
3097
|
+
p[l] = u;
|
|
3088
3098
|
}
|
|
3089
|
-
const
|
|
3090
|
-
|
|
3091
|
-
const
|
|
3092
|
-
|
|
3099
|
+
const h = Co(fe, p);
|
|
3100
|
+
h.use(ar), h.use(sr), h.use(St), h.use(Io), h.use(wo), h.use($o, { bootstrap: !0 });
|
|
3101
|
+
const c = document.createElement("div");
|
|
3102
|
+
h.mount(c), this.appendChild(c.children[0]);
|
|
3093
3103
|
}
|
|
3094
3104
|
}
|
|
3095
3105
|
window.customElements.define("konnectio-hotel", lr);
|