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