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