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