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