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