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