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