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