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