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