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