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