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