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