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