@konnectio/core 4.0.7 → 4.0.9
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-b87d2fd7.cjs +1 -0
- package/dist/{ActionField-5ecfc9dc.js → ActionField-f3d5b218.js} +4 -4
- package/dist/ActionField-f3d5b218.js.br +0 -0
- package/dist/AvailabilitySkeleton-019ec202.js +150 -0
- package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
- package/dist/AvailabilitySkeleton-e288f5be.cjs +1 -0
- package/dist/Field-21bb32d7.cjs +1 -0
- package/dist/Field-6bfeedce.js +59 -0
- package/dist/Field-6bfeedce.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_style_index_0_lang-ab747739.js → SelectField.vue_vue_type_style_index_0_lang-701aecad.js} +7743 -6953
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +797 -0
- package/dist/TextField-99e69631.cjs +54 -0
- package/dist/TextField-b8f4462a.js +9343 -0
- package/dist/TextField-b8f4462a.js.br +0 -0
- package/dist/ThankYou-add684c1.cjs +66 -0
- package/dist/ThankYou-edbf753b.js +14279 -0
- package/dist/ThankYou-edbf753b.js.br +0 -0
- package/dist/{_commonjsHelpers-aeeeeb92.js → _commonjsHelpers-c5d32002.js} +2 -2
- package/dist/{applyGiftCard-d9ab3dcf.cjs → applyGiftCard-c21f13ac.cjs} +1 -1
- package/dist/{applyGiftCard-c5e4aaad.js → applyGiftCard-dea77ba6.js} +7 -7
- package/dist/applyGiftCard-dea77ba6.js.br +0 -0
- package/dist/availability.cjs +2 -0
- package/dist/availability.js +236 -0
- package/dist/availability.js.br +0 -0
- package/dist/components/ErrorMessage.vue.d.ts +5 -0
- package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
- package/dist/components/Icon.vue.d.ts +1 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationFormTest.vue.d.ts +5 -0
- package/dist/components/forms/ReservationFormTest.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Test.vue.d.ts +1 -1
- package/dist/components/side-panels/Base.vue.d.ts +1 -1
- package/dist/components/side-panels/Hotel.vue.d.ts +3 -2
- package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/Field.vue.d.ts +5 -0
- package/dist/components/skeletons/Field.vue.d.ts.map +1 -0
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/Listing.vue.d.ts +5 -0
- package/dist/components/skeletons/Listing.vue.d.ts.map +1 -0
- package/dist/components/skeletons/_.vue.d.ts +5 -0
- package/dist/components/skeletons/_.vue.d.ts.map +1 -0
- package/dist/entries/availability.d.ts +3 -2
- package/dist/entries/gift-card.d.ts +1 -2
- package/dist/entries/hotel.d.ts +0 -2
- package/dist/event-2c6a2138.cjs +1 -0
- package/dist/{event-a70cffeb.js → event-a9067cf5.js} +91 -91
- package/dist/event-a9067cf5.js.br +0 -0
- package/dist/event.cjs +2 -0
- package/dist/event.js +867 -0
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -0
- package/dist/{gift-card-validation.es.js → gift-card-validation.js} +42 -42
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -0
- package/dist/gift-card.d.ts +0 -2
- package/dist/gift-card.js +590 -0
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +19 -0
- package/dist/hotel.d.ts +0 -2
- package/dist/hotel.js +2981 -0
- package/dist/hotel.js.br +0 -0
- package/dist/{index-00262c16.js → index-d080b5a0.js} +5 -7
- package/dist/index-d080b5a0.js.br +0 -0
- package/dist/index-ec04c269.cjs +1 -0
- package/dist/layouts/Availability.vue.d.ts +42 -217
- package/dist/layouts/GiftCard.vue.d.ts +130 -99
- package/dist/layouts/Hotel.vue.d.ts +162 -57
- package/dist/{payment-fbffaa6d.cjs → payment-95b2392a.cjs} +2 -2
- package/dist/{payment-9e219e9b.js → payment-cce506b8.js} +930 -929
- package/dist/payment-cce506b8.js.br +0 -0
- package/dist/polyfill.cjs +4 -0
- package/dist/polyfill.js +6815 -0
- package/dist/polyfill.js.br +0 -0
- package/dist/store/availability.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +11 -21
- package/dist/ActionField-5ecfc9dc.js.br +0 -0
- package/dist/ActionField-ae9b1adf.cjs +0 -1
- package/dist/HotelAvailabilityForm-0cd1abda.cjs +0 -1
- package/dist/HotelAvailabilityForm-a7b6f17e.js +0 -97
- package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +0 -793
- package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-05b8ec39.js +0 -376
- package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js +0 -10107
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs +0 -56
- package/dist/ThankYou-1866d8db.js +0 -8547
- package/dist/ThankYou-1866d8db.js.br +0 -0
- package/dist/ThankYou-5741bcb6.cjs +0 -15
- package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
- package/dist/availability.cjs.js +0 -1
- package/dist/availability.cjs.js.br +0 -0
- package/dist/availability.es.js +0 -183
- package/dist/availability.es.js.br +0 -0
- package/dist/components/LoadingBlock.vue.d.ts +0 -4
- package/dist/components/LoadingBlock.vue.d.ts.map +0 -1
- package/dist/event-39706438.cjs +0 -1
- package/dist/event-a70cffeb.js.br +0 -0
- package/dist/event.cjs.js +0 -1
- package/dist/event.cjs.js.br +0 -0
- package/dist/event.es.js +0 -645
- package/dist/event.es.js.br +0 -0
- package/dist/gift-card-validation.cjs.js +0 -1
- package/dist/gift-card-validation.cjs.js.br +0 -0
- package/dist/gift-card-validation.es.js.br +0 -0
- package/dist/gift-card.cjs.js +0 -1
- package/dist/gift-card.cjs.js.br +0 -0
- package/dist/gift-card.es.js +0 -584
- package/dist/gift-card.es.js.br +0 -0
- package/dist/hotel.cjs.js +0 -19
- package/dist/hotel.cjs.js.br +0 -0
- package/dist/hotel.es.js +0 -2394
- package/dist/hotel.es.js.br +0 -0
- package/dist/index-00262c16.js.br +0 -0
- package/dist/index-58f3b0cc.cjs +0 -1
- package/dist/payment-9e219e9b.js.br +0 -0
- package/dist/polyfill.cjs.js +0 -4
- package/dist/polyfill.cjs.js.br +0 -0
- package/dist/polyfill.es.js +0 -6764
- package/dist/polyfill.es.js.br +0 -0
- /package/dist/{navigation.cjs.js → navigation.cjs} +0 -0
- /package/dist/{navigation.es.js → navigation.js} +0 -0
package/dist/hotel.es.js
DELETED
|
@@ -1,2394 +0,0 @@
|
|
|
1
|
-
import { d as Gt, s as oe, a as Ae, h as Z, c as G, k as b, l as W, w as N, x as c, m as B, D as M, B as S, v as T, y as D, a8 as Ie, a9 as ie, Y as A, Z as U, _ as ce, q as Te, r as ne, o as qe, t as Ue, n as t, F as K, A as de, j as Je, I as Yt, u as jt, as as Qt, at as Ze, C as _e, X as Xt, G as Q, a0 as ke, H as Kt, ab as Jt, $ as et, z as F, R as Zt, U as tt, au as eo, J as to, K as oo, e as io, L as no, M as ro, ad as ao, P as so, N as lo, Q as uo } from "./NumberField.vue_vue_type_style_index_0_lang-ab747739.js";
|
|
2
|
-
import { s as co, e as ot, C as ue, P as ho, S as po, i as fo } from "./index-00262c16.js";
|
|
3
|
-
import { _ as mo, u as we, G as go, B as vo, M as yo, R as bo, C as _o, T as ko, W as Eo, z as Co, V as Io, x as To } from "./ThankYou-1866d8db.js";
|
|
4
|
-
import { u as So } from "./ReCaptchaVuePlugin-05b8ec39.js";
|
|
5
|
-
import { _ as Vo, a as xo } from "./payment-9e219e9b.js";
|
|
6
|
-
import { H as zo } from "./HotelAvailabilityForm-a7b6f17e.js";
|
|
7
|
-
import { _ as Bo } from "./applyGiftCard-c5e4aaad.js";
|
|
8
|
-
import { _ as Se, T as J } from "./SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js";
|
|
9
|
-
import { c as ct, a as ht } from "./_commonjsHelpers-aeeeeb92.js";
|
|
10
|
-
import "./ActionField-5ecfc9dc.js";
|
|
11
|
-
const Lo = Gt("tracking", () => {
|
|
12
|
-
const {
|
|
13
|
-
enableTracking: _,
|
|
14
|
-
googleApiKey: l
|
|
15
|
-
} = oe(Ae());
|
|
16
|
-
function n() {
|
|
17
|
-
console.log("Tracking"), console.log(l), co({
|
|
18
|
-
config: {
|
|
19
|
-
id: l.value,
|
|
20
|
-
params: {
|
|
21
|
-
send_page_view: !1
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
enabled: _.value
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function v({ id: r, name: f, value: k, label: y, category: C = "general" }) {
|
|
28
|
-
return {
|
|
29
|
-
items: [{
|
|
30
|
-
id: r,
|
|
31
|
-
name: f
|
|
32
|
-
}],
|
|
33
|
-
event_label: y,
|
|
34
|
-
event_category: C,
|
|
35
|
-
value: k
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function p(r, f) {
|
|
39
|
-
ot(r, v(f));
|
|
40
|
-
}
|
|
41
|
-
function u(r) {
|
|
42
|
-
p("add_to_cart", {
|
|
43
|
-
...r,
|
|
44
|
-
label: "Added to cart",
|
|
45
|
-
category: "ecommerce"
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function d(r) {
|
|
49
|
-
p("remove_from_cart", {
|
|
50
|
-
...r,
|
|
51
|
-
label: "Removed to cart",
|
|
52
|
-
category: "ecommerce"
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function a(r) {
|
|
56
|
-
ot("view_item", {
|
|
57
|
-
items: [{
|
|
58
|
-
name: r
|
|
59
|
-
//: getRoomName(props.listingId)
|
|
60
|
-
}]
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
setup: n,
|
|
65
|
-
viewItem: a,
|
|
66
|
-
addToCart: u,
|
|
67
|
-
removeFromCart: d
|
|
68
|
-
};
|
|
69
|
-
}), $o = { style: { display: "flex", "align-items": "baseline" } }, Ro = { key: 0 }, Po = { style: { display: "flex", "align-items": "baseline" } }, Do = { key: 0 }, Oo = /* @__PURE__ */ Z({
|
|
70
|
-
__name: "RoomConfigField",
|
|
71
|
-
props: {
|
|
72
|
-
modelValue: {},
|
|
73
|
-
options: {},
|
|
74
|
-
required: { type: Boolean, default: !1 },
|
|
75
|
-
readonly: { type: Boolean, default: !1 },
|
|
76
|
-
label: {}
|
|
77
|
-
},
|
|
78
|
-
emits: ["update:modelValue"],
|
|
79
|
-
setup(_, { emit: l }) {
|
|
80
|
-
const n = _;
|
|
81
|
-
function v(u) {
|
|
82
|
-
l("update:modelValue", u);
|
|
83
|
-
}
|
|
84
|
-
const p = G({
|
|
85
|
-
get: () => n.modelValue,
|
|
86
|
-
set: (u) => v(u)
|
|
87
|
-
});
|
|
88
|
-
return (u, d) => (b(), W(Se, {
|
|
89
|
-
modelValue: p.value,
|
|
90
|
-
"onUpdate:modelValue": d[0] || (d[0] = (a) => p.value = a),
|
|
91
|
-
label: u.label,
|
|
92
|
-
placeholder: "Select guest configuration",
|
|
93
|
-
labelKey: "label",
|
|
94
|
-
valueKey: "value",
|
|
95
|
-
options: u.options,
|
|
96
|
-
required: u.required
|
|
97
|
-
}, {
|
|
98
|
-
option: N(({ data: a }) => [
|
|
99
|
-
c("div", $o, [
|
|
100
|
-
c("div", null, [
|
|
101
|
-
B(M, {
|
|
102
|
-
icon: "male",
|
|
103
|
-
type: "fas"
|
|
104
|
-
}),
|
|
105
|
-
c("span", null, S(`${a.adults}`), 1)
|
|
106
|
-
]),
|
|
107
|
-
a.children > 0 ? (b(), T("div", Ro, [
|
|
108
|
-
B(M, {
|
|
109
|
-
icon: "child",
|
|
110
|
-
type: "fas"
|
|
111
|
-
}),
|
|
112
|
-
c("span", null, S(`${a.children}`), 1)
|
|
113
|
-
])) : D("", !0),
|
|
114
|
-
c("div", null, S(`(${a.price})`), 1)
|
|
115
|
-
])
|
|
116
|
-
]),
|
|
117
|
-
"selected-option": N(({ data: a }) => [
|
|
118
|
-
c("div", Po, [
|
|
119
|
-
c("div", null, [
|
|
120
|
-
B(M, {
|
|
121
|
-
icon: "male",
|
|
122
|
-
type: "fas"
|
|
123
|
-
}),
|
|
124
|
-
c("span", null, S(`${a.adults}`), 1)
|
|
125
|
-
]),
|
|
126
|
-
a.children > 0 ? (b(), T("div", Do, [
|
|
127
|
-
B(M, {
|
|
128
|
-
icon: "child",
|
|
129
|
-
type: "fas"
|
|
130
|
-
}),
|
|
131
|
-
c("span", null, S(`${a.children}`), 1)
|
|
132
|
-
])) : D("", !0)
|
|
133
|
-
])
|
|
134
|
-
]),
|
|
135
|
-
_: 1
|
|
136
|
-
}, 8, ["modelValue", "label", "options", "required"]));
|
|
137
|
-
}
|
|
138
|
-
}), Wo = {
|
|
139
|
-
key: 0,
|
|
140
|
-
class: "fresh-booking-modal-facilities"
|
|
141
|
-
}, Fo = {
|
|
142
|
-
class: "fresh-booking-modal-facilities-masonry",
|
|
143
|
-
"transition-duration": "0s",
|
|
144
|
-
"destroy-delay": 0,
|
|
145
|
-
"percent-position": !0,
|
|
146
|
-
"column-width": ".grid-sizer",
|
|
147
|
-
"item-selector": ".fresh-booking-modal-facility"
|
|
148
|
-
}, No = { class: "grid-sizer" }, Mo = /* @__PURE__ */ Z({
|
|
149
|
-
__name: "Info",
|
|
150
|
-
props: {
|
|
151
|
-
title: {},
|
|
152
|
-
description: {},
|
|
153
|
-
facilities: {},
|
|
154
|
-
styling: {}
|
|
155
|
-
},
|
|
156
|
-
setup(_) {
|
|
157
|
-
return (l, n) => {
|
|
158
|
-
const v = Ie("masonry-tile"), p = Ie("masonry");
|
|
159
|
-
return b(), W(mo, {
|
|
160
|
-
title: l.title,
|
|
161
|
-
description: l.description,
|
|
162
|
-
styling: l.styling
|
|
163
|
-
}, {
|
|
164
|
-
default: N(() => [
|
|
165
|
-
l.facilities && l.facilities.length !== 0 ? (b(), T("div", Wo, [
|
|
166
|
-
ie((b(), T("ul", Fo, [
|
|
167
|
-
ie(c("div", No, null, 512), [
|
|
168
|
-
[v]
|
|
169
|
-
]),
|
|
170
|
-
(b(!0), T(A, null, U(l.facilities, ({ name: u, subFacilities: d }, a) => ie((b(), T("li", {
|
|
171
|
-
key: a,
|
|
172
|
-
class: "fresh-booking-modal-facility"
|
|
173
|
-
}, [
|
|
174
|
-
c("h6", null, [
|
|
175
|
-
c("span", null, S(u), 1)
|
|
176
|
-
]),
|
|
177
|
-
c("ul", null, [
|
|
178
|
-
(b(!0), T(A, null, U(d, ({ name: r }, f) => (b(), T("li", { key: f }, S(r), 1))), 128))
|
|
179
|
-
])
|
|
180
|
-
])), [
|
|
181
|
-
[v]
|
|
182
|
-
])), 128))
|
|
183
|
-
])), [
|
|
184
|
-
[p]
|
|
185
|
-
])
|
|
186
|
-
])) : D("", !0)
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
}, 8, ["title", "description", "styling"]);
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
const wo = /* @__PURE__ */ ce(Mo, [["__scopeId", "data-v-569aadce"]]), Ao = { class: "freshbooking-hotel-room" }, qo = {
|
|
194
|
-
key: 0,
|
|
195
|
-
class: "booking-availability-listing-action-selective"
|
|
196
|
-
}, Uo = { class: "fresh-booking-listing-config-header" }, Ho = { class: "fresh-booking-inline-spacing" }, Go = { class: "fresh-booking-inline-spacing" }, Yo = { class: "fresh-booking-listing-units-header" }, jo = { class: "fresh-booking-inline-spacing" }, Qo = {
|
|
197
|
-
key: 0,
|
|
198
|
-
class: "fresh-booking-inline-spacing"
|
|
199
|
-
}, Xo = { class: "fresh-booking-listing-price-header" }, Ko = { class: "fresh-booking-listing-config-body" }, Jo = { class: "fresh-booking-listing-units-body" }, Zo = { class: "fresh-booking-listing-price-body" }, ei = { key: 0 }, ti = { key: 1 }, oi = /* @__PURE__ */ Z({
|
|
200
|
-
__name: "Test",
|
|
201
|
-
props: {
|
|
202
|
-
room: {},
|
|
203
|
-
layout: {},
|
|
204
|
-
styling: {}
|
|
205
|
-
},
|
|
206
|
-
setup(_) {
|
|
207
|
-
const l = _, { t: n } = Te(), { hideAvailableRoomAmount: v, currency: p } = oe(Ae()), { finalSelection: u } = oe(we()), { viewItem: d } = Lo(), a = ne({}), r = ne({}), f = ne(void 0), k = (E) => l.room.rates.find((L) => L.id === E).occupantRates.find(
|
|
208
|
-
(L) => L.index === r.value[L.ratePlanID]
|
|
209
|
-
), y = G(() => l.room.rates.map((E) => ({
|
|
210
|
-
label: E.name,
|
|
211
|
-
value: E.id
|
|
212
|
-
}))), C = G(() => l.room.rates.reduce(
|
|
213
|
-
(E, L) => E < L.rackRate ? E : L.rackRate,
|
|
214
|
-
1 / 0
|
|
215
|
-
)), i = G(() => l.room.rates.every((E) => E.isBreakfastIncluded === !0)), g = (E) => k(E) ? k(E).totalPrice * a.value[k(E).ratePlanID] : null, m = (E) => k(E) ? k(E).rooms : null, s = (E) => l.room.rates.length > 0 ? l.room.rates.find((L) => L.id === E).occupantRates.map((L) => ({
|
|
216
|
-
value: L.index,
|
|
217
|
-
price: L.totalPrice,
|
|
218
|
-
adults: L.adultsCount,
|
|
219
|
-
children: L.childrenCount,
|
|
220
|
-
hasBreakfast: L.hasBreakfast
|
|
221
|
-
})) : [], e = G(() => l.room.rates.length > 1), o = G(() => {
|
|
222
|
-
const E = {};
|
|
223
|
-
for (const L in r.value)
|
|
224
|
-
E[L] = {
|
|
225
|
-
units: a.value[L],
|
|
226
|
-
config: r.value[L],
|
|
227
|
-
addons: {}
|
|
228
|
-
};
|
|
229
|
-
return E;
|
|
230
|
-
}), { open: h, close: I } = go({
|
|
231
|
-
component: wo,
|
|
232
|
-
attrs: {
|
|
233
|
-
title: l.room.title,
|
|
234
|
-
description: l.room.description,
|
|
235
|
-
facilities: l.room.facilities,
|
|
236
|
-
styling: l.styling,
|
|
237
|
-
onConfirm() {
|
|
238
|
-
I();
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
function x() {
|
|
243
|
-
h(), d(l.room.title);
|
|
244
|
-
}
|
|
245
|
-
function R() {
|
|
246
|
-
e.value || (f.value = l.room.rates[0].id, r.value = {
|
|
247
|
-
[f.value]: l.room.rates[0].occupantRateIndex
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
return qe(() => {
|
|
251
|
-
R();
|
|
252
|
-
}), Ue(o, (E, L) => {
|
|
253
|
-
console.log(E, L), u.value[l.room.id] = o;
|
|
254
|
-
}), (E, L) => (b(), W(vo, {
|
|
255
|
-
"listing-id": E.room.id,
|
|
256
|
-
gallery: E.room.images,
|
|
257
|
-
name: E.room.title,
|
|
258
|
-
description: E.room.description,
|
|
259
|
-
layout: E.layout,
|
|
260
|
-
styling: E.styling,
|
|
261
|
-
facilities: E.room.facilities,
|
|
262
|
-
"prices-from": C.value,
|
|
263
|
-
"includes-breakfast": i.value,
|
|
264
|
-
currency: t(p),
|
|
265
|
-
callback: x,
|
|
266
|
-
style: {
|
|
267
|
-
"--inputBackground": "transparent"
|
|
268
|
-
}
|
|
269
|
-
}, {
|
|
270
|
-
action: N(() => [
|
|
271
|
-
c("div", Ao, [
|
|
272
|
-
e.value ? (b(), W(Se, {
|
|
273
|
-
key: 0,
|
|
274
|
-
modelValue: f.value,
|
|
275
|
-
"onUpdate:modelValue": L[0] || (L[0] = (O) => f.value = O),
|
|
276
|
-
label: "Room variant",
|
|
277
|
-
placeholder: "Choose a room variant",
|
|
278
|
-
options: y.value
|
|
279
|
-
}, null, 8, ["modelValue", "options"])) : D("", !0),
|
|
280
|
-
c("div", null, [
|
|
281
|
-
(b(!0), T(A, null, U(E.room.rates, ({
|
|
282
|
-
id: O,
|
|
283
|
-
maximumAdults: q
|
|
284
|
-
}) => (b(), T("div", { key: O }, [
|
|
285
|
-
f.value === O ? (b(), T("div", qo, [
|
|
286
|
-
c("div", Uo, [
|
|
287
|
-
c("b", Ho, [
|
|
288
|
-
c("span", null, S(t(n)("availability.adults")), 1),
|
|
289
|
-
c("span", Go, [
|
|
290
|
-
B(M, {
|
|
291
|
-
icon: "male",
|
|
292
|
-
type: "fas",
|
|
293
|
-
"icon-color": E.styling.headerColor
|
|
294
|
-
}, null, 8, ["icon-color"]),
|
|
295
|
-
c("span", null, S(`Max: ${q}`), 1)
|
|
296
|
-
])
|
|
297
|
-
])
|
|
298
|
-
]),
|
|
299
|
-
c("div", Yo, [
|
|
300
|
-
c("b", jo, [
|
|
301
|
-
c("span", null, S(t(n)("booking.availability.units")), 1),
|
|
302
|
-
t(v) ? D("", !0) : (b(), T("span", Qo, [
|
|
303
|
-
B(M, {
|
|
304
|
-
icon: "house",
|
|
305
|
-
type: "fas",
|
|
306
|
-
"icon-color": E.styling.headerColor
|
|
307
|
-
}, null, 8, ["icon-color"]),
|
|
308
|
-
c("span", null, S(m(O)), 1)
|
|
309
|
-
]))
|
|
310
|
-
])
|
|
311
|
-
]),
|
|
312
|
-
c("div", Xo, [
|
|
313
|
-
c("b", null, S(t(n)("booking.availability.price")), 1)
|
|
314
|
-
]),
|
|
315
|
-
c("ul", Ko, [
|
|
316
|
-
(b(), W(Oo, {
|
|
317
|
-
key: 0,
|
|
318
|
-
modelValue: r.value[O],
|
|
319
|
-
"onUpdate:modelValue": (w) => r.value[O] = w,
|
|
320
|
-
options: s(O)
|
|
321
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "options"]))
|
|
322
|
-
]),
|
|
323
|
-
c("ul", Jo, [
|
|
324
|
-
B(Bo, {
|
|
325
|
-
modelValue: a.value[O],
|
|
326
|
-
"onUpdate:modelValue": (w) => a.value[O] = w,
|
|
327
|
-
minValue: 0
|
|
328
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
329
|
-
]),
|
|
330
|
-
c("ul", Zo, [
|
|
331
|
-
g(O) === null ? (b(), T("span", ei, "-")) : (b(), T("span", ti, S(t(K)(g(O), t(p))), 1))
|
|
332
|
-
])
|
|
333
|
-
])) : D("", !0)
|
|
334
|
-
]))), 128))
|
|
335
|
-
])
|
|
336
|
-
])
|
|
337
|
-
]),
|
|
338
|
-
_: 1
|
|
339
|
-
}, 8, ["listing-id", "gallery", "name", "description", "layout", "styling", "facilities", "prices-from", "includes-breakfast", "currency"]));
|
|
340
|
-
}
|
|
341
|
-
});
|
|
342
|
-
const ii = /* @__PURE__ */ ce(oi, [["__scopeId", "data-v-a3a6f7e2"]]), it = /* @__PURE__ */ Z({
|
|
343
|
-
__name: "TimeField",
|
|
344
|
-
props: {
|
|
345
|
-
modelValue: {},
|
|
346
|
-
label: {},
|
|
347
|
-
id: {},
|
|
348
|
-
name: {},
|
|
349
|
-
placeholder: {},
|
|
350
|
-
icon: {},
|
|
351
|
-
iconColor: {},
|
|
352
|
-
iconType: {},
|
|
353
|
-
primaryColor: {},
|
|
354
|
-
secondaryColor: {},
|
|
355
|
-
weekendColor: {},
|
|
356
|
-
highlightedColor: {},
|
|
357
|
-
required: { type: Boolean },
|
|
358
|
-
readonly: { type: Boolean },
|
|
359
|
-
disabled: { type: Boolean },
|
|
360
|
-
inline: { type: Boolean },
|
|
361
|
-
range: { type: Boolean },
|
|
362
|
-
enableTimePicker: { type: Boolean },
|
|
363
|
-
inputStyle: {}
|
|
364
|
-
},
|
|
365
|
-
emits: ["update:modelValue"],
|
|
366
|
-
setup(_, { emit: l }) {
|
|
367
|
-
const n = _;
|
|
368
|
-
function v(u) {
|
|
369
|
-
l("update:modelValue", u);
|
|
370
|
-
}
|
|
371
|
-
const p = ne(n.modelValue);
|
|
372
|
-
return Ue(p, (u) => {
|
|
373
|
-
v(u);
|
|
374
|
-
}), (u, d) => (b(), W(Vo, {
|
|
375
|
-
modelValue: p.value,
|
|
376
|
-
"onUpdate:modelValue": d[0] || (d[0] = (a) => p.value = a),
|
|
377
|
-
type: "time",
|
|
378
|
-
label: u.label,
|
|
379
|
-
id: u.id,
|
|
380
|
-
name: u.name,
|
|
381
|
-
icon: u.icon,
|
|
382
|
-
"icon-type": u.iconType,
|
|
383
|
-
"icon-color": u.iconColor,
|
|
384
|
-
"auto-apply": !0,
|
|
385
|
-
required: u.required,
|
|
386
|
-
readonly: u.readonly
|
|
387
|
-
}, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
|
|
388
|
-
}
|
|
389
|
-
});
|
|
390
|
-
const ni = { style: { display: "flex", "align-items": "baseline" } }, ri = /* @__PURE__ */ Z({
|
|
391
|
-
__name: "CountryField",
|
|
392
|
-
props: {
|
|
393
|
-
modelValue: {},
|
|
394
|
-
options: {},
|
|
395
|
-
required: { type: Boolean, default: !1 },
|
|
396
|
-
readonly: { type: Boolean, default: !1 },
|
|
397
|
-
label: {},
|
|
398
|
-
placeholder: {}
|
|
399
|
-
},
|
|
400
|
-
emits: ["update:modelValue"],
|
|
401
|
-
setup(_, { emit: l }) {
|
|
402
|
-
const n = _, { t: v } = Te();
|
|
403
|
-
function p(d) {
|
|
404
|
-
l("update:modelValue", d);
|
|
405
|
-
}
|
|
406
|
-
const u = G({
|
|
407
|
-
get: () => n.modelValue,
|
|
408
|
-
set: (d) => p(d)
|
|
409
|
-
});
|
|
410
|
-
return (d, a) => (b(), W(Se, {
|
|
411
|
-
modelValue: u.value,
|
|
412
|
-
"onUpdate:modelValue": a[0] || (a[0] = (r) => u.value = r),
|
|
413
|
-
label: d.label,
|
|
414
|
-
placeholder: t(v)("booking.reservation.countryPlaceholder"),
|
|
415
|
-
labelKey: "name",
|
|
416
|
-
valueKey: "id",
|
|
417
|
-
options: d.options,
|
|
418
|
-
required: d.required
|
|
419
|
-
}, {
|
|
420
|
-
option: N(({ data: r }) => [
|
|
421
|
-
c("i", {
|
|
422
|
-
class: de(["fresh-booking-flag", r.iso])
|
|
423
|
-
}, null, 2),
|
|
424
|
-
c("span", null, S(r.name), 1)
|
|
425
|
-
]),
|
|
426
|
-
"selected-option": N(({ data: r }) => [
|
|
427
|
-
c("div", ni, [
|
|
428
|
-
c("i", {
|
|
429
|
-
class: de(["fresh-booking-flag", r.iso])
|
|
430
|
-
}, null, 2),
|
|
431
|
-
c("span", null, S(r.name), 1)
|
|
432
|
-
])
|
|
433
|
-
]),
|
|
434
|
-
_: 1
|
|
435
|
-
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
const ai = /* @__PURE__ */ ce(ri, [["__scopeId", "data-v-a0f7fe2d"]]), si = /* @__PURE__ */ Z({
|
|
439
|
-
__name: "NameField",
|
|
440
|
-
props: {
|
|
441
|
-
modelValue: {},
|
|
442
|
-
title: {},
|
|
443
|
-
label: {},
|
|
444
|
-
id: {},
|
|
445
|
-
placeholder: {},
|
|
446
|
-
icon: {},
|
|
447
|
-
iconColor: {},
|
|
448
|
-
iconType: { default: "fal" },
|
|
449
|
-
required: { type: Boolean, default: !1 },
|
|
450
|
-
readonly: { type: Boolean, default: !1 },
|
|
451
|
-
type: { default: "text" },
|
|
452
|
-
autocomplete: { type: Boolean, default: !1 },
|
|
453
|
-
disabled: { type: Boolean, default: !1 },
|
|
454
|
-
limit: { default: 1 / 0 },
|
|
455
|
-
inputStyle: {},
|
|
456
|
-
excludeTitle: { type: Boolean, default: !1 }
|
|
457
|
-
},
|
|
458
|
-
emits: ["update:modelValue", "update:title"],
|
|
459
|
-
setup(_, { emit: l }) {
|
|
460
|
-
const n = _, v = n.id || Je(), p = ne(""), u = ne(2);
|
|
461
|
-
function d() {
|
|
462
|
-
l("update:modelValue", p.value);
|
|
463
|
-
}
|
|
464
|
-
Ue(u, (r) => {
|
|
465
|
-
l("update:title", r);
|
|
466
|
-
});
|
|
467
|
-
const { t: a } = Te();
|
|
468
|
-
return qe(() => {
|
|
469
|
-
n.modelValue && (p.value = n.modelValue), n.title && (u.value = n.title);
|
|
470
|
-
}), (r, f) => (b(), W(Yt, {
|
|
471
|
-
label: r.label,
|
|
472
|
-
id: t(v),
|
|
473
|
-
required: r.required,
|
|
474
|
-
type: "fresh-booking-name-field",
|
|
475
|
-
readonly: r.readonly,
|
|
476
|
-
limit: r.limit
|
|
477
|
-
}, {
|
|
478
|
-
default: N(() => [
|
|
479
|
-
c("div", {
|
|
480
|
-
class: de([
|
|
481
|
-
"fresh-booking-name-input",
|
|
482
|
-
{ "no-title": r.excludeTitle }
|
|
483
|
-
])
|
|
484
|
-
}, [
|
|
485
|
-
r.excludeTitle ? D("", !0) : (b(), W(Se, {
|
|
486
|
-
key: 0,
|
|
487
|
-
modelValue: u.value,
|
|
488
|
-
"onUpdate:modelValue": f[0] || (f[0] = (k) => u.value = k),
|
|
489
|
-
id: t(Je)(),
|
|
490
|
-
icon: r.icon,
|
|
491
|
-
"icon-color": r.iconColor,
|
|
492
|
-
"icon-type": r.iconType,
|
|
493
|
-
options: [
|
|
494
|
-
{
|
|
495
|
-
label: t(a)("booking.reservation.noNameTitle"),
|
|
496
|
-
value: 1
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
label: t(a)("booking.reservation.nameTitleMr"),
|
|
500
|
-
value: 2
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
label: t(a)("booking.reservation.nameTitleMs"),
|
|
504
|
-
value: 3
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
label: t(a)("booking.reservation.nameTitleMrs"),
|
|
508
|
-
value: 4
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
label: t(a)("booking.reservation.nameTitleDr"),
|
|
512
|
-
value: 5
|
|
513
|
-
}
|
|
514
|
-
],
|
|
515
|
-
readonly: r.readonly,
|
|
516
|
-
"hide-button": "",
|
|
517
|
-
"input-style": r.inputStyle
|
|
518
|
-
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
|
|
519
|
-
B(J, {
|
|
520
|
-
modelValue: p.value,
|
|
521
|
-
"onUpdate:modelValue": f[1] || (f[1] = (k) => p.value = k),
|
|
522
|
-
type: "text",
|
|
523
|
-
name: "name",
|
|
524
|
-
autocomplete: "name",
|
|
525
|
-
id: t(v),
|
|
526
|
-
icon: r.excludeTitle ? r.icon : void 0,
|
|
527
|
-
"icon-color": r.iconColor,
|
|
528
|
-
"icon-type": r.iconType,
|
|
529
|
-
placeholder: r.placeholder,
|
|
530
|
-
required: r.required,
|
|
531
|
-
readonly: r.readonly,
|
|
532
|
-
limit: r.limit,
|
|
533
|
-
onInput: f[2] || (f[2] = (k) => d()),
|
|
534
|
-
"input-style": r.inputStyle
|
|
535
|
-
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
|
|
536
|
-
], 2)
|
|
537
|
-
]),
|
|
538
|
-
_: 1
|
|
539
|
-
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
const li = /* @__PURE__ */ ce(si, [["__scopeId", "data-v-5599e141"]]), ui = (_) => (no("data-v-c7479672"), _ = _(), ro(), _), di = { id: "booking-availability-container" }, ci = { id: "booking-availability-controls" }, hi = {
|
|
543
|
-
key: 0,
|
|
544
|
-
"sticky-container": ""
|
|
545
|
-
}, pi = { key: 0 }, fi = {
|
|
546
|
-
key: 0,
|
|
547
|
-
id: "booking-availability-packages"
|
|
548
|
-
}, mi = ["title"];
|
|
549
|
-
const gi = ["innerHTML"];
|
|
550
|
-
const vi = {
|
|
551
|
-
key: 1,
|
|
552
|
-
id: "reservation-template-rooms"
|
|
553
|
-
}, yi = ["innerHTML"], bi = { key: 1 }, _i = { key: 0 }, ki = { id: "booking-availability-listings" }, Ei = {
|
|
554
|
-
key: 1,
|
|
555
|
-
id: "booking-availability-no-listings"
|
|
556
|
-
}, Ci = {
|
|
557
|
-
key: 1,
|
|
558
|
-
id: "booking-availability-no-listings"
|
|
559
|
-
}, Ii = {
|
|
560
|
-
key: 2,
|
|
561
|
-
id: "reservation-availability-next-dates"
|
|
562
|
-
}, Ti = { class: "reservation-special-offers-grid" }, Si = ["title"], Vi = {
|
|
563
|
-
class: "booking-module-footer",
|
|
564
|
-
"sticky-side": "bottom"
|
|
565
|
-
}, xi = {
|
|
566
|
-
key: 0,
|
|
567
|
-
class: "booking-module-footer-wrapper"
|
|
568
|
-
}, zi = { class: "fresh-booking-footer-table-split" }, Bi = {
|
|
569
|
-
key: 0,
|
|
570
|
-
class: "fresh-booking-footer-summery"
|
|
571
|
-
}, Li = { class: "fresh-booking-footer-summery-details" }, $i = { class: "fresh-booking-footer-summery-price" }, Ri = ["onClick"], Pi = {
|
|
572
|
-
key: 1,
|
|
573
|
-
class: "booking-module-footer-no-selection"
|
|
574
|
-
}, Di = { class: "booking-module-footer-action" }, Oi = { class: "booking-module-footer-price" }, Wi = {
|
|
575
|
-
key: 1,
|
|
576
|
-
class: "booking-module-footer-wrapper right"
|
|
577
|
-
}, Fi = { key: 0 }, Ni = { key: 1 }, Mi = { class: "fresh-booking-split-inputs" }, wi = { key: 3 }, Ai = { class: "fresh-booking-label" }, qi = { class: "fresh-booking-checkbox-spacing" }, Ui = ["title"], Hi = { key: 1 }, Gi = { class: "booking-reservation-resume-recept-item" }, Yi = { key: 1 }, ji = { class: "fresh-booking-checkbox-spacing" }, Qi = /* @__PURE__ */ ui(() => /* @__PURE__ */ c("span", null, "Loading...", -1)), Xi = /* @__PURE__ */ Z({
|
|
578
|
-
__name: "Hotel",
|
|
579
|
-
props: {
|
|
580
|
-
accessToken: {},
|
|
581
|
-
accentColor: {},
|
|
582
|
-
buttonBackground: {},
|
|
583
|
-
buttonBorder: {},
|
|
584
|
-
buttonBorderRadius: {},
|
|
585
|
-
buttonColor: {},
|
|
586
|
-
buttonFontFamily: {},
|
|
587
|
-
buttonFontSize: {},
|
|
588
|
-
buttonFontWeight: {},
|
|
589
|
-
buttonIconColor: {},
|
|
590
|
-
buttonTextTransform: {},
|
|
591
|
-
dangerColor: {},
|
|
592
|
-
fontColor: {},
|
|
593
|
-
fontFamily: {},
|
|
594
|
-
fontSize: {},
|
|
595
|
-
grayColor: {},
|
|
596
|
-
headerColor: {},
|
|
597
|
-
headerLayout: {},
|
|
598
|
-
hideListingGroupTitles: {},
|
|
599
|
-
inputBackground: {},
|
|
600
|
-
inputBorder: {},
|
|
601
|
-
inputBorderRadius: {},
|
|
602
|
-
inputFontColor: {},
|
|
603
|
-
labelFontWeight: {},
|
|
604
|
-
labelPadding: {},
|
|
605
|
-
layout: {},
|
|
606
|
-
linkColor: {},
|
|
607
|
-
loadingColor: {},
|
|
608
|
-
packagesTitleMaxLines: {},
|
|
609
|
-
panelBackground: {},
|
|
610
|
-
panelBorder: {},
|
|
611
|
-
panelBorderRadius: {},
|
|
612
|
-
panelPadding: {},
|
|
613
|
-
successColor: {}
|
|
614
|
-
},
|
|
615
|
-
setup(_) {
|
|
616
|
-
const l = _, { t: n } = Te(), {
|
|
617
|
-
finalSelection: v,
|
|
618
|
-
templateID: p,
|
|
619
|
-
roomGroupID: u,
|
|
620
|
-
slideshow: d,
|
|
621
|
-
title: a,
|
|
622
|
-
totalPrice: r,
|
|
623
|
-
countries: f,
|
|
624
|
-
isMetaDataAvailable: k,
|
|
625
|
-
isAvailabilityDataAvailable: y,
|
|
626
|
-
isPaymentLoading: C,
|
|
627
|
-
isReservationFormFilled: i,
|
|
628
|
-
selectedPackage: g,
|
|
629
|
-
travelingFor: m,
|
|
630
|
-
arrivalTime: s,
|
|
631
|
-
departureTime: e,
|
|
632
|
-
name: o,
|
|
633
|
-
nameTitle: h,
|
|
634
|
-
email: I,
|
|
635
|
-
phone: x,
|
|
636
|
-
firmName: R,
|
|
637
|
-
postal: E,
|
|
638
|
-
city: L,
|
|
639
|
-
address: O,
|
|
640
|
-
country: q,
|
|
641
|
-
remark: w,
|
|
642
|
-
allergies: ee,
|
|
643
|
-
newsMails: te,
|
|
644
|
-
fetchAddons: Ve,
|
|
645
|
-
//canStartReservation,
|
|
646
|
-
getSelectedPackageRoom: he,
|
|
647
|
-
availabilityData: H
|
|
648
|
-
} = oe(we()), {
|
|
649
|
-
arrivalDate: re,
|
|
650
|
-
departureDate: ae
|
|
651
|
-
} = oe(xo()), {
|
|
652
|
-
currency: j,
|
|
653
|
-
isRecaptchaEnabled: gt,
|
|
654
|
-
disableNewsletterSignup: vt,
|
|
655
|
-
arrivalEarliest: yt,
|
|
656
|
-
arrivalLatest: bt,
|
|
657
|
-
departureEarliest: _t,
|
|
658
|
-
departureLatest: kt,
|
|
659
|
-
enableTracking: Et,
|
|
660
|
-
arrivalDefault: Ye,
|
|
661
|
-
departureDefault: je,
|
|
662
|
-
enablePackages: Ct,
|
|
663
|
-
hideArrivalDepartureInputs: xe,
|
|
664
|
-
disableArrivalUserSelection: pe,
|
|
665
|
-
disableNamePrefix: It,
|
|
666
|
-
disableDepartureUserSelection: fe,
|
|
667
|
-
disableTravelingFor: Tt,
|
|
668
|
-
disableCompanyField: St
|
|
669
|
-
} = oe(Ae()), { display: Vt } = jt(), {
|
|
670
|
-
initialize: xt,
|
|
671
|
-
//resetBookingSelection,
|
|
672
|
-
resetAddonSelection: zt,
|
|
673
|
-
createReservation: Qe,
|
|
674
|
-
//getRoomName,
|
|
675
|
-
getSingleListing: me,
|
|
676
|
-
//calculateRoomPrice,
|
|
677
|
-
removeRoom: Bt
|
|
678
|
-
} = we(), Lt = G(() => [[
|
|
679
|
-
parseInt(yt.value.split(":")[0]),
|
|
680
|
-
parseInt(bt.value.split(":")[0])
|
|
681
|
-
]]), $t = G(() => [[
|
|
682
|
-
parseInt(_t.value.split(":")[0]),
|
|
683
|
-
parseInt(kt.value.split(":")[0])
|
|
684
|
-
]]), Rt = {
|
|
685
|
-
"--accentColor": l.accentColor,
|
|
686
|
-
"--buttonBackground": l.buttonBackground,
|
|
687
|
-
"--buttonBorder": l.buttonBorder,
|
|
688
|
-
"--buttonBorderRadius": l.buttonBorderRadius,
|
|
689
|
-
"--buttonColor": l.buttonColor,
|
|
690
|
-
"--buttonFontFamily": l.buttonFontFamily,
|
|
691
|
-
"--buttonFontSize": l.buttonFontSize,
|
|
692
|
-
"--buttonFontWeight": l.buttonFontWeight,
|
|
693
|
-
"--buttonTextTransform": l.buttonTextTransform,
|
|
694
|
-
"--dangerColor": l.dangerColor,
|
|
695
|
-
"--fontColor": l.fontColor,
|
|
696
|
-
"--fontFamily": l.fontFamily,
|
|
697
|
-
"--fontSize": l.fontSize,
|
|
698
|
-
"--grayColor": l.grayColor,
|
|
699
|
-
"--headerColor": l.headerColor,
|
|
700
|
-
"--inputBackground": l.inputBackground,
|
|
701
|
-
"--inputBorder": l.inputBorder,
|
|
702
|
-
"--inputBorderRadius": l.inputBorderRadius,
|
|
703
|
-
"--inputFontColor": l.inputFontColor,
|
|
704
|
-
"--labelFontWeight": l.labelFontWeight,
|
|
705
|
-
"--labelPadding": l.labelPadding,
|
|
706
|
-
"--linkColor": l.linkColor,
|
|
707
|
-
"--loadingColor": l.loadingColor,
|
|
708
|
-
"--panelBackground": l.panelBackground,
|
|
709
|
-
"--panelBorder": l.panelBorder,
|
|
710
|
-
"--panelBorderRadius": l.panelBorderRadius,
|
|
711
|
-
"--panelPadding": l.panelPadding,
|
|
712
|
-
"--successColor": l.successColor
|
|
713
|
-
}, ze = {
|
|
714
|
-
fontColor: l.fontColor,
|
|
715
|
-
fontFamily: l.fontFamily,
|
|
716
|
-
fontSize: l.fontSize,
|
|
717
|
-
headerColor: l.headerColor,
|
|
718
|
-
panelPadding: l.panelPadding
|
|
719
|
-
};
|
|
720
|
-
function Pt($) {
|
|
721
|
-
p.value = $;
|
|
722
|
-
}
|
|
723
|
-
function Dt() {
|
|
724
|
-
p.value = NaN;
|
|
725
|
-
}
|
|
726
|
-
function Ot($) {
|
|
727
|
-
zt(), $();
|
|
728
|
-
}
|
|
729
|
-
function Wt($, z) {
|
|
730
|
-
re.value = new Date($), ae.value = new Date(z), location.reload();
|
|
731
|
-
}
|
|
732
|
-
async function Ft($) {
|
|
733
|
-
const z = So();
|
|
734
|
-
if (gt && z) {
|
|
735
|
-
await z.recaptchaLoaded();
|
|
736
|
-
const Be = await z.executeRecaptcha("create_reservation");
|
|
737
|
-
(await io.get(`/?rest_route=/freshcase-octopus/v1/recaptcha/${Be}`)).data.success ? await Qe($) : Vt({
|
|
738
|
-
message: n("alert.error.robot"),
|
|
739
|
-
type: "error"
|
|
740
|
-
});
|
|
741
|
-
} else
|
|
742
|
-
await Qe($);
|
|
743
|
-
}
|
|
744
|
-
function Nt($) {
|
|
745
|
-
$();
|
|
746
|
-
}
|
|
747
|
-
function Mt() {
|
|
748
|
-
s.value === "" && (s.value = Ye.value), e.value === "" && (e.value = je.value);
|
|
749
|
-
}
|
|
750
|
-
return qe(() => {
|
|
751
|
-
xt(), Mt();
|
|
752
|
-
}), ($, z) => {
|
|
753
|
-
const Be = Qt("HotelListing"), Le = Ie("snip"), wt = Ie("sticky");
|
|
754
|
-
return b(), W(oo, null, {
|
|
755
|
-
default: N(() => [
|
|
756
|
-
B(to, {
|
|
757
|
-
id: "fresh-booking-hotel-module",
|
|
758
|
-
class: "fresh-booking-app",
|
|
759
|
-
"access-token": $.accessToken,
|
|
760
|
-
type: "hotel",
|
|
761
|
-
style: Rt
|
|
762
|
-
}, {
|
|
763
|
-
default: N(() => [
|
|
764
|
-
t(k) ? (b(), W(yo, {
|
|
765
|
-
key: 0,
|
|
766
|
-
title: t(a),
|
|
767
|
-
slideshow: t(d),
|
|
768
|
-
layout: $.headerLayout
|
|
769
|
-
}, {
|
|
770
|
-
availability: N(({ next: ge }) => [
|
|
771
|
-
c("div", di, [
|
|
772
|
-
c("div", ci, [
|
|
773
|
-
B(zo, { booking: !0 })
|
|
774
|
-
]),
|
|
775
|
-
t(y) ? (b(), T("div", hi, [
|
|
776
|
-
t(H).roomGroups.length > 0 ? (b(), T("div", pi, [
|
|
777
|
-
t(H).templates.length > 0 && t(Ct) ? (b(), T("div", fi, [
|
|
778
|
-
c("h2", null, [
|
|
779
|
-
B(M, {
|
|
780
|
-
icon: "box",
|
|
781
|
-
type: "fal",
|
|
782
|
-
"icon-color": $.headerColor
|
|
783
|
-
}, null, 8, ["icon-color"]),
|
|
784
|
-
c("span", null, S(isNaN(t(p)) ? t(n)("booking.availability.packagesTitle") : t(g)?.name), 1)
|
|
785
|
-
]),
|
|
786
|
-
isNaN(t(p)) ? (b(), T("ul", {
|
|
787
|
-
key: 0,
|
|
788
|
-
class: de([
|
|
789
|
-
"reservation-special-offers-grid",
|
|
790
|
-
{ "full-width": t(H).templates.length === 1 },
|
|
791
|
-
{ "half-width": t(H).templates.length === 2 }
|
|
792
|
-
])
|
|
793
|
-
}, [
|
|
794
|
-
(b(!0), T(A, null, U(t(H).templates, ({
|
|
795
|
-
id: P,
|
|
796
|
-
name: V,
|
|
797
|
-
templateRoomGroups: se,
|
|
798
|
-
imageUrl: le,
|
|
799
|
-
description: X
|
|
800
|
-
}) => (b(), T("li", { key: P }, [
|
|
801
|
-
ie((b(), T("h3", { title: V }, [
|
|
802
|
-
c("span", null, S(V), 1)
|
|
803
|
-
], 8, mi)), [
|
|
804
|
-
[Le, { lines: parseInt($.packagesTitleMaxLines) || 1 }]
|
|
805
|
-
]),
|
|
806
|
-
D("", !0),
|
|
807
|
-
c("p", {
|
|
808
|
-
innerHTML: t(Ze)(X)
|
|
809
|
-
}, null, 8, gi),
|
|
810
|
-
D("", !0),
|
|
811
|
-
B(_e, {
|
|
812
|
-
type: "button",
|
|
813
|
-
label: t(n)("booking.availability.viewOptions"),
|
|
814
|
-
"full-width": "",
|
|
815
|
-
onClickEvent: (ve) => Pt(P)
|
|
816
|
-
}, null, 8, ["label", "onClickEvent"])
|
|
817
|
-
]))), 128))
|
|
818
|
-
], 2)) : t(g) ? (b(), T("div", vi, [
|
|
819
|
-
c("p", {
|
|
820
|
-
innerHTML: t(Ze)(t(g).description)
|
|
821
|
-
}, null, 8, yi),
|
|
822
|
-
c("ul", null, [
|
|
823
|
-
(b(!0), T(A, null, U(t(g).templateRoomGroups, ({ roomGroupID: P }, V) => (b(), W(Be, {
|
|
824
|
-
description: t(me)(P).description,
|
|
825
|
-
name: t(me)(P).name,
|
|
826
|
-
styling: ze,
|
|
827
|
-
layout: t(Xt).Template,
|
|
828
|
-
"listing-id": P,
|
|
829
|
-
"occupant-rates": t(me)(P).occupantRates,
|
|
830
|
-
available: t(me)(P).available,
|
|
831
|
-
trackingEnabled: t(Et),
|
|
832
|
-
key: V,
|
|
833
|
-
onNext: ge
|
|
834
|
-
}, null, 8, ["description", "name", "layout", "listing-id", "occupant-rates", "available", "trackingEnabled", "onNext"]))), 128))
|
|
835
|
-
])
|
|
836
|
-
])) : D("", !0)
|
|
837
|
-
])) : D("", !0),
|
|
838
|
-
isNaN(t(p)) ? (b(), T("div", bi, [
|
|
839
|
-
t(H).roomGroups.length > 0 ? (b(), T("div", _i, [
|
|
840
|
-
c("h2", null, [
|
|
841
|
-
B(M, {
|
|
842
|
-
icon: "house",
|
|
843
|
-
type: "fal",
|
|
844
|
-
"icon-color": $.headerColor
|
|
845
|
-
}, null, 8, ["icon-color"]),
|
|
846
|
-
c("span", null, S(t(n)("booking.availability.roomsTitle")), 1)
|
|
847
|
-
]),
|
|
848
|
-
c("ul", ki, [
|
|
849
|
-
(b(!0), T(A, null, U(t(H).roomGroups, (P, V) => (b(), W(ii, {
|
|
850
|
-
room: P,
|
|
851
|
-
styling: ze,
|
|
852
|
-
layout: $.layout,
|
|
853
|
-
key: V
|
|
854
|
-
}, null, 8, ["room", "layout"]))), 128))
|
|
855
|
-
])
|
|
856
|
-
])) : (b(), T("div", Ei, [
|
|
857
|
-
c("span", null, S(t(n)("booking.availability.nothingAvailable")), 1)
|
|
858
|
-
]))
|
|
859
|
-
])) : D("", !0)
|
|
860
|
-
])) : t(H).nextAvailableDates.length === 0 ? (b(), T("div", Ci, [
|
|
861
|
-
c("span", null, S(t(n)("booking.availability.nothingAvailable")), 1)
|
|
862
|
-
])) : (b(), T("div", Ii, [
|
|
863
|
-
c("h2", null, [
|
|
864
|
-
B(M, {
|
|
865
|
-
icon: "calendar-circle-exclamation",
|
|
866
|
-
type: "fal",
|
|
867
|
-
"icon-color": $.headerColor
|
|
868
|
-
}, null, 8, ["icon-color"]),
|
|
869
|
-
c("span", null, S(t(n)("booking.availability.nextAvailableDates")), 1)
|
|
870
|
-
]),
|
|
871
|
-
c("ul", Ti, [
|
|
872
|
-
(b(!0), T(A, null, U(t(H).nextAvailableDates, (P, V) => (b(), T("li", { key: V }, [
|
|
873
|
-
c("h3", {
|
|
874
|
-
title: `${t(Q)(P.fromDate)} - ${t(Q)(P.toDate)}`
|
|
875
|
-
}, [
|
|
876
|
-
ie((b(), T("span", null, [
|
|
877
|
-
ke(S(`${t(Q)(P.fromDate)} - ${t(Q)(P.toDate)}`), 1)
|
|
878
|
-
])), [
|
|
879
|
-
[Le, { lines: 1 }]
|
|
880
|
-
])
|
|
881
|
-
], 8, Si),
|
|
882
|
-
c("ul", null, [
|
|
883
|
-
c("li", null, [
|
|
884
|
-
B(M, {
|
|
885
|
-
icon: "house",
|
|
886
|
-
type: "fal",
|
|
887
|
-
"icon-color": $.headerColor
|
|
888
|
-
}, null, 8, ["icon-color"]),
|
|
889
|
-
c("span", null, S(t(n)("booking.availability.units")) + ": " + S(P.roomCount), 1)
|
|
890
|
-
]),
|
|
891
|
-
c("li", null, [
|
|
892
|
-
B(M, {
|
|
893
|
-
icon: "money-bill",
|
|
894
|
-
type: "fal",
|
|
895
|
-
"icon-color": $.headerColor
|
|
896
|
-
}, null, 8, ["icon-color"]),
|
|
897
|
-
c("span", null, S(t(n)("booking.availability.pricesFrom")) + ": " + S(t(K)(P.priceStartFrom, t(j))), 1)
|
|
898
|
-
])
|
|
899
|
-
]),
|
|
900
|
-
B(_e, {
|
|
901
|
-
label: t(n)("booking.availability.selectDates"),
|
|
902
|
-
"full-width": "",
|
|
903
|
-
onClickEvent: (se) => Wt(P.fromDate, P.toDate)
|
|
904
|
-
}, null, 8, ["label", "onClickEvent"])
|
|
905
|
-
]))), 128))
|
|
906
|
-
])
|
|
907
|
-
])),
|
|
908
|
-
ie((b(), T("div", Vi, [
|
|
909
|
-
isNaN(t(p)) ? (b(), T("table", xi, [
|
|
910
|
-
c("tbody", null, [
|
|
911
|
-
c("tr", zi, [
|
|
912
|
-
c("td", null, [
|
|
913
|
-
t(Ve).length > 0 ? (b(), T("ul", Bi, [
|
|
914
|
-
(b(!0), T(A, null, U(t(Ve), ({
|
|
915
|
-
name: P,
|
|
916
|
-
index: V,
|
|
917
|
-
adultsCount: se,
|
|
918
|
-
childrenCount: le,
|
|
919
|
-
totalPrice: X,
|
|
920
|
-
roomGroupID: ve,
|
|
921
|
-
ratePlanID: ye
|
|
922
|
-
}, be) => (b(), T("li", { key: be }, [
|
|
923
|
-
c("div", Li, [
|
|
924
|
-
c("span", null, S(`${P} (#${V})`), 1),
|
|
925
|
-
c("span", null, [
|
|
926
|
-
ke("( "),
|
|
927
|
-
B(M, {
|
|
928
|
-
icon: "male",
|
|
929
|
-
type: "fas",
|
|
930
|
-
"icon-color": $.headerColor
|
|
931
|
-
}, null, 8, ["icon-color"]),
|
|
932
|
-
c("span", null, S(se), 1),
|
|
933
|
-
ke(") "),
|
|
934
|
-
le > 0 ? (b(), T(A, { key: 0 }, [
|
|
935
|
-
B(M, {
|
|
936
|
-
icon: "child",
|
|
937
|
-
type: "fas",
|
|
938
|
-
"icon-color": $.headerColor
|
|
939
|
-
}, null, 8, ["icon-color"]),
|
|
940
|
-
c("span", null, S(le), 1),
|
|
941
|
-
ke(") ")
|
|
942
|
-
], 64)) : D("", !0)
|
|
943
|
-
])
|
|
944
|
-
]),
|
|
945
|
-
c("div", $i, [
|
|
946
|
-
c("template", null, [
|
|
947
|
-
c("span", null, S(t(K)(X, t(j))), 1)
|
|
948
|
-
]),
|
|
949
|
-
c("span", {
|
|
950
|
-
class: "fresh-booking-footer-summery-remove",
|
|
951
|
-
onClick: Kt((Xe) => t(Bt)(ve, ye), ["prevent"])
|
|
952
|
-
}, [
|
|
953
|
-
B(M, {
|
|
954
|
-
icon: "times",
|
|
955
|
-
type: "fas",
|
|
956
|
-
"icon-color": "#ff0000"
|
|
957
|
-
})
|
|
958
|
-
], 8, Ri)
|
|
959
|
-
])
|
|
960
|
-
]))), 128))
|
|
961
|
-
])) : (b(), T("div", Pi, [
|
|
962
|
-
c("span", null, S(t(n)("booking.availability.nothingSelected")), 1)
|
|
963
|
-
]))
|
|
964
|
-
]),
|
|
965
|
-
c("td", Di, [
|
|
966
|
-
B(_e, {
|
|
967
|
-
label: t(n)("booking.availability.nextButton"),
|
|
968
|
-
styling: "success",
|
|
969
|
-
disabled: !1,
|
|
970
|
-
"full-width": "",
|
|
971
|
-
onClickEvent: (P) => Nt(ge),
|
|
972
|
-
style: Jt({
|
|
973
|
-
background: $.successColor
|
|
974
|
-
})
|
|
975
|
-
}, null, 8, ["label", "onClickEvent", "style"]),
|
|
976
|
-
c("div", Oi, [
|
|
977
|
-
c("b", null, S(t(n)("booking.availability.totalPrice")) + ":", 1),
|
|
978
|
-
c("span", null, S(t(K)(t(r), t(j))), 1)
|
|
979
|
-
])
|
|
980
|
-
])
|
|
981
|
-
])
|
|
982
|
-
])
|
|
983
|
-
])) : (b(), T("div", Wi, [
|
|
984
|
-
B(_e, {
|
|
985
|
-
label: t(n)("booking.reservation.prevButton"),
|
|
986
|
-
secondary: "",
|
|
987
|
-
onClickEvent: z[0] || (z[0] = (P) => Dt())
|
|
988
|
-
}, null, 8, ["label"])
|
|
989
|
-
]))
|
|
990
|
-
])), [
|
|
991
|
-
[wt]
|
|
992
|
-
])
|
|
993
|
-
])) : (b(), W(et, { key: 1 }))
|
|
994
|
-
])
|
|
995
|
-
]),
|
|
996
|
-
reservation: N(({ next: ge, prev: P }) => [
|
|
997
|
-
B(bo, {
|
|
998
|
-
remark: t(w),
|
|
999
|
-
"onUpdate:remark": z[17] || (z[17] = (V) => F(w) ? w.value = V : null),
|
|
1000
|
-
"is-filled": t(i),
|
|
1001
|
-
currency: t(j),
|
|
1002
|
-
"button-icon-color": $.buttonIconColor,
|
|
1003
|
-
"total-price": t(r),
|
|
1004
|
-
"is-loading": t(C),
|
|
1005
|
-
notice: t(n)("hotel.reservationNotice"),
|
|
1006
|
-
styling: ze,
|
|
1007
|
-
onPrev: (V) => Ot(P),
|
|
1008
|
-
onNext: (V) => Ft(ge)
|
|
1009
|
-
}, Zt({
|
|
1010
|
-
form: N(() => [
|
|
1011
|
-
!t(xe) && !(t(pe) && t(fe)) ? (b(), T("ul", {
|
|
1012
|
-
key: 0,
|
|
1013
|
-
class: de({ "fresh-booking-split-inputs": !t(pe) && !t(fe) })
|
|
1014
|
-
}, [
|
|
1015
|
-
t(pe) ? D("", !0) : (b(), T("li", Fi, [
|
|
1016
|
-
B(it, {
|
|
1017
|
-
modelValue: t(s),
|
|
1018
|
-
"onUpdate:modelValue": z[1] || (z[1] = (V) => F(s) ? s.value = V : null),
|
|
1019
|
-
label: t(n)("booking.reservation.arrivalTime"),
|
|
1020
|
-
icon: "hourglass-start",
|
|
1021
|
-
"hour-range": Lt.value,
|
|
1022
|
-
required: ""
|
|
1023
|
-
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1024
|
-
])),
|
|
1025
|
-
t(fe) ? D("", !0) : (b(), T("li", Ni, [
|
|
1026
|
-
B(it, {
|
|
1027
|
-
modelValue: t(e),
|
|
1028
|
-
"onUpdate:modelValue": z[2] || (z[2] = (V) => F(e) ? e.value = V : null),
|
|
1029
|
-
label: t(n)("booking.reservation.departureTime"),
|
|
1030
|
-
icon: "hourglass-end",
|
|
1031
|
-
"hour-range": $t.value,
|
|
1032
|
-
required: ""
|
|
1033
|
-
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1034
|
-
]))
|
|
1035
|
-
], 2)) : D("", !0),
|
|
1036
|
-
B(li, {
|
|
1037
|
-
modelValue: t(o),
|
|
1038
|
-
"onUpdate:modelValue": z[3] || (z[3] = (V) => F(o) ? o.value = V : null),
|
|
1039
|
-
title: t(h),
|
|
1040
|
-
"onUpdate:title": z[4] || (z[4] = (V) => F(h) ? h.value = V : null),
|
|
1041
|
-
"exclude-title": t(It),
|
|
1042
|
-
label: t(n)("booking.reservation.name"),
|
|
1043
|
-
icon: "user-alt",
|
|
1044
|
-
placeholder: t(n)("booking.reservation.namePlaceholder"),
|
|
1045
|
-
required: ""
|
|
1046
|
-
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1047
|
-
B(J, {
|
|
1048
|
-
modelValue: t(I),
|
|
1049
|
-
"onUpdate:modelValue": z[5] || (z[5] = (V) => F(I) ? I.value = V : null),
|
|
1050
|
-
type: "email",
|
|
1051
|
-
name: "email",
|
|
1052
|
-
autocomplete: "email",
|
|
1053
|
-
label: t(n)("booking.reservation.email"),
|
|
1054
|
-
icon: "at",
|
|
1055
|
-
placeholder: t(n)("booking.reservation.emailPlaceholder"),
|
|
1056
|
-
required: ""
|
|
1057
|
-
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1058
|
-
t(vt) ? D("", !0) : (b(), W(ue, {
|
|
1059
|
-
key: 1,
|
|
1060
|
-
modelValue: t(te),
|
|
1061
|
-
"onUpdate:modelValue": z[6] || (z[6] = (V) => F(te) ? te.value = V : null),
|
|
1062
|
-
type: "checkbox",
|
|
1063
|
-
name: "newsletter",
|
|
1064
|
-
label: t(n)("booking.reservation.newsletterSignUp")
|
|
1065
|
-
}, null, 8, ["modelValue", "label"])),
|
|
1066
|
-
t(St) ? D("", !0) : (b(), W(J, {
|
|
1067
|
-
key: 2,
|
|
1068
|
-
modelValue: t(R),
|
|
1069
|
-
"onUpdate:modelValue": z[7] || (z[7] = (V) => F(R) ? R.value = V : null),
|
|
1070
|
-
type: "text",
|
|
1071
|
-
name: "firm",
|
|
1072
|
-
autocomplete: "firm",
|
|
1073
|
-
label: `${t(n)("booking.reservation.companyName")} (${t(n)("booking.reservation.optional")})`,
|
|
1074
|
-
icon: "id-card",
|
|
1075
|
-
placeholder: t(n)("booking.reservation.companyNamePlaceholder")
|
|
1076
|
-
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1077
|
-
B(ho, {
|
|
1078
|
-
modelValue: t(x),
|
|
1079
|
-
"onUpdate:modelValue": z[8] || (z[8] = (V) => F(x) ? x.value = V : null),
|
|
1080
|
-
icon: "phone-office",
|
|
1081
|
-
label: t(n)("booking.reservation.phone"),
|
|
1082
|
-
placeholder: t(n)("booking.reservation.phonePlaceholder"),
|
|
1083
|
-
required: ""
|
|
1084
|
-
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1085
|
-
B(ai, {
|
|
1086
|
-
modelValue: t(q),
|
|
1087
|
-
"onUpdate:modelValue": z[9] || (z[9] = (V) => F(q) ? q.value = V : null),
|
|
1088
|
-
label: t(n)("booking.reservation.country"),
|
|
1089
|
-
placeholder: t(n)("booking.reservation.countryPlaceholder"),
|
|
1090
|
-
options: t(f),
|
|
1091
|
-
required: ""
|
|
1092
|
-
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1093
|
-
B(J, {
|
|
1094
|
-
modelValue: t(O),
|
|
1095
|
-
"onUpdate:modelValue": z[10] || (z[10] = (V) => F(O) ? O.value = V : null),
|
|
1096
|
-
type: "textarea",
|
|
1097
|
-
name: "address",
|
|
1098
|
-
autocomplete: "street-address",
|
|
1099
|
-
label: t(n)("booking.reservation.streetAddress"),
|
|
1100
|
-
icon: "map-marked",
|
|
1101
|
-
placeholder: t(n)("booking.reservation.streetAddressPlaceholder"),
|
|
1102
|
-
required: ""
|
|
1103
|
-
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1104
|
-
c("ul", Mi, [
|
|
1105
|
-
c("li", null, [
|
|
1106
|
-
B(J, {
|
|
1107
|
-
modelValue: t(E),
|
|
1108
|
-
"onUpdate:modelValue": z[11] || (z[11] = (V) => F(E) ? E.value = V : null),
|
|
1109
|
-
type: "number",
|
|
1110
|
-
name: "postal",
|
|
1111
|
-
autocomplete: "postal-code",
|
|
1112
|
-
label: t(n)("booking.reservation.postal"),
|
|
1113
|
-
icon: "mailbox",
|
|
1114
|
-
placeholder: t(n)("booking.reservation.postalPlaceholder"),
|
|
1115
|
-
required: ""
|
|
1116
|
-
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1117
|
-
]),
|
|
1118
|
-
c("li", null, [
|
|
1119
|
-
B(J, {
|
|
1120
|
-
modelValue: t(L),
|
|
1121
|
-
"onUpdate:modelValue": z[12] || (z[12] = (V) => F(L) ? L.value = V : null),
|
|
1122
|
-
type: "text",
|
|
1123
|
-
name: "city",
|
|
1124
|
-
autocomplete: "address-level2",
|
|
1125
|
-
label: t(n)("booking.reservation.city"),
|
|
1126
|
-
icon: "city",
|
|
1127
|
-
placeholder: t(n)("booking.reservation.cityPlaceholder"),
|
|
1128
|
-
required: ""
|
|
1129
|
-
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1130
|
-
])
|
|
1131
|
-
]),
|
|
1132
|
-
B(J, {
|
|
1133
|
-
modelValue: t(ee),
|
|
1134
|
-
"onUpdate:modelValue": z[13] || (z[13] = (V) => F(ee) ? ee.value = V : null),
|
|
1135
|
-
type: "textarea",
|
|
1136
|
-
label: `${t(n)("booking.reservation.allergies")} (${t(n)("booking.reservation.optional")})`,
|
|
1137
|
-
icon: "allergies",
|
|
1138
|
-
placeholder: t(n)("booking.reservation.allergiesPlaceholder")
|
|
1139
|
-
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1140
|
-
t(Tt) ? D("", !0) : (b(), T("div", wi, [
|
|
1141
|
-
c("label", Ai, [
|
|
1142
|
-
c("span", null, S(t(n)("booking.reservation.purposeOfStay")) + " (" + S(t(n)("booking.reservation.optional")) + ")", 1)
|
|
1143
|
-
]),
|
|
1144
|
-
c("ul", qi, [
|
|
1145
|
-
c("li", null, [
|
|
1146
|
-
B(ue, {
|
|
1147
|
-
modelValue: t(m),
|
|
1148
|
-
"onUpdate:modelValue": z[14] || (z[14] = (V) => F(m) ? m.value = V : null),
|
|
1149
|
-
type: "radio",
|
|
1150
|
-
name: "travelingFor",
|
|
1151
|
-
label: t(n)("booking.reservation.business"),
|
|
1152
|
-
val: "Business"
|
|
1153
|
-
}, null, 8, ["modelValue", "label"])
|
|
1154
|
-
]),
|
|
1155
|
-
c("li", null, [
|
|
1156
|
-
B(ue, {
|
|
1157
|
-
modelValue: t(m),
|
|
1158
|
-
"onUpdate:modelValue": z[15] || (z[15] = (V) => F(m) ? m.value = V : null),
|
|
1159
|
-
type: "radio",
|
|
1160
|
-
name: "travelingFor",
|
|
1161
|
-
label: t(n)("booking.reservation.pleasure"),
|
|
1162
|
-
val: "Pleasure"
|
|
1163
|
-
}, null, 8, ["modelValue", "label"])
|
|
1164
|
-
]),
|
|
1165
|
-
c("li", null, [
|
|
1166
|
-
B(ue, {
|
|
1167
|
-
modelValue: t(m),
|
|
1168
|
-
"onUpdate:modelValue": z[16] || (z[16] = (V) => F(m) ? m.value = V : null),
|
|
1169
|
-
type: "radio",
|
|
1170
|
-
name: "travelingFor",
|
|
1171
|
-
label: t(n)("booking.reservation.bleasure"),
|
|
1172
|
-
val: "Bleasure"
|
|
1173
|
-
}, null, 8, ["modelValue", "label"])
|
|
1174
|
-
])
|
|
1175
|
-
])
|
|
1176
|
-
]))
|
|
1177
|
-
]),
|
|
1178
|
-
resume: N(() => [
|
|
1179
|
-
c("li", null, [
|
|
1180
|
-
c("span", null, S(t(n)("booking.reservation.arrival")), 1),
|
|
1181
|
-
c("b", null, S(t(xe) ? t(Q)(t(re)) : `${t(Q)(t(re))}, ${t(pe) ? t(Ye) : t(s)}`), 1)
|
|
1182
|
-
]),
|
|
1183
|
-
c("li", null, [
|
|
1184
|
-
c("span", null, S(t(n)("booking.reservation.departure")), 1),
|
|
1185
|
-
c("b", null, S(t(xe) ? t(Q)(t(ae)) : `${t(Q)(t(ae))}, ${t(fe) ? t(je) : t(e)}`), 1)
|
|
1186
|
-
]),
|
|
1187
|
-
c("li", null, [
|
|
1188
|
-
c("span", null, S(t(n)("booking.reservation.nights")), 1),
|
|
1189
|
-
c("b", null, S(t(tt)(t(re), t(ae))) + " " + S(t(eo)(t(tt)(t(re), t(ae)) === 1 ? t(n)("booking.reservation.night") : t(n)("booking.reservation.nights"))), 1)
|
|
1190
|
-
]),
|
|
1191
|
-
!isNaN(t(p)) && !isNaN(t(u)) && t(he) ? (b(), T(A, { key: 0 }, [
|
|
1192
|
-
c("li", null, [
|
|
1193
|
-
c("span", null, S(t(n)("booking.reservation.roomName")), 1),
|
|
1194
|
-
c("b", {
|
|
1195
|
-
title: t(he).roomGroupName
|
|
1196
|
-
}, S(t(he).roomGroupName), 9, Ui)
|
|
1197
|
-
]),
|
|
1198
|
-
c("li", null, [
|
|
1199
|
-
c("span", null, S(t(n)("booking.availability.basePrice")), 1),
|
|
1200
|
-
c("b", null, S(t(K)(t(he).extraPrice, t(j))), 1)
|
|
1201
|
-
])
|
|
1202
|
-
], 64)) : D("", !0),
|
|
1203
|
-
!isNaN(t(p)) && !isNaN(t(u)) && t(g) ? (b(), T("li", Hi, [
|
|
1204
|
-
c("span", null, S(t(n)("general.weekendFee")), 1),
|
|
1205
|
-
c("b", null, S(t(K)(t(g).weekendFee, t(j))), 1)
|
|
1206
|
-
])) : D("", !0)
|
|
1207
|
-
]),
|
|
1208
|
-
_: 2
|
|
1209
|
-
}, [
|
|
1210
|
-
void 0,
|
|
1211
|
-
isNaN(t(p)) ? {
|
|
1212
|
-
name: "addons",
|
|
1213
|
-
fn: N(() => [
|
|
1214
|
-
(b(!0), T(A, { key: 0 }, U(t(Ve), ({
|
|
1215
|
-
name: V,
|
|
1216
|
-
index: se,
|
|
1217
|
-
adultsCount: le,
|
|
1218
|
-
childrenCount: X,
|
|
1219
|
-
addons: ve,
|
|
1220
|
-
roomGroupID: ye,
|
|
1221
|
-
ratePlanID: be
|
|
1222
|
-
}, Xe) => (b(), T("li", { key: Xe }, [
|
|
1223
|
-
c("div", null, [
|
|
1224
|
-
c("div", Gi, [
|
|
1225
|
-
c("b", null, S(`${V} (#${se})`), 1),
|
|
1226
|
-
c("b", null, [
|
|
1227
|
-
B(M, {
|
|
1228
|
-
icon: "male",
|
|
1229
|
-
type: "fas",
|
|
1230
|
-
"icon-color": $.headerColor
|
|
1231
|
-
}, null, 8, ["icon-color"]),
|
|
1232
|
-
c("span", null, S(le), 1),
|
|
1233
|
-
X > 0 ? (b(), W(M, {
|
|
1234
|
-
key: 0,
|
|
1235
|
-
icon: "child",
|
|
1236
|
-
type: "fas",
|
|
1237
|
-
"icon-color": $.headerColor
|
|
1238
|
-
}, null, 8, ["icon-color"])) : D("", !0),
|
|
1239
|
-
X > 0 ? (b(), T("span", Yi, S(X), 1)) : D("", !0)
|
|
1240
|
-
])
|
|
1241
|
-
]),
|
|
1242
|
-
c("ul", ji, [
|
|
1243
|
-
(b(!0), T(A, null, U(ve, ({
|
|
1244
|
-
name: At,
|
|
1245
|
-
price: qt,
|
|
1246
|
-
id: Ke
|
|
1247
|
-
}, Ut) => (b(), T("li", { key: Ut }, [
|
|
1248
|
-
B(ue, {
|
|
1249
|
-
modelValue: t(v)[ye][be].addons[Ke],
|
|
1250
|
-
"onUpdate:modelValue": (Ht) => t(v)[ye][be].addons[Ke] = Ht,
|
|
1251
|
-
label: At,
|
|
1252
|
-
price: `${t(K)(qt, t(j))} ${t(n)("general.perAdultPerNight")}`
|
|
1253
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "price"])
|
|
1254
|
-
]))), 128))
|
|
1255
|
-
])
|
|
1256
|
-
])
|
|
1257
|
-
]))), 128))
|
|
1258
|
-
]),
|
|
1259
|
-
key: "1"
|
|
1260
|
-
} : void 0
|
|
1261
|
-
]), 1032, ["remark", "is-filled", "currency", "button-icon-color", "total-price", "is-loading", "notice", "onPrev", "onNext"])
|
|
1262
|
-
]),
|
|
1263
|
-
payment: N(() => [
|
|
1264
|
-
B(_o)
|
|
1265
|
-
]),
|
|
1266
|
-
confirmation: N(() => [
|
|
1267
|
-
B(ko, {
|
|
1268
|
-
message: t(n)("booking.confirmation.thankYou"),
|
|
1269
|
-
currency: t(j)
|
|
1270
|
-
}, null, 8, ["message", "currency"])
|
|
1271
|
-
]),
|
|
1272
|
-
_: 1
|
|
1273
|
-
}, 8, ["title", "slideshow", "layout"])) : (b(), W(et, { key: 1 })),
|
|
1274
|
-
B(t(Eo))
|
|
1275
|
-
]),
|
|
1276
|
-
_: 1
|
|
1277
|
-
}, 8, ["access-token"])
|
|
1278
|
-
]),
|
|
1279
|
-
fallback: N(() => [
|
|
1280
|
-
Qi
|
|
1281
|
-
]),
|
|
1282
|
-
_: 1
|
|
1283
|
-
});
|
|
1284
|
-
};
|
|
1285
|
-
}
|
|
1286
|
-
});
|
|
1287
|
-
const Ki = /* @__PURE__ */ ce(Xi, [["__scopeId", "data-v-c7479672"]]);
|
|
1288
|
-
var pt = { exports: {} }, $e = { exports: {} }, Re = { exports: {} }, nt;
|
|
1289
|
-
function He() {
|
|
1290
|
-
return nt || (nt = 1, function(_) {
|
|
1291
|
-
(function(l, n) {
|
|
1292
|
-
_.exports ? _.exports = n() : l.EvEmitter = n();
|
|
1293
|
-
})(typeof window < "u" ? window : ct, function() {
|
|
1294
|
-
function l() {
|
|
1295
|
-
}
|
|
1296
|
-
var n = l.prototype;
|
|
1297
|
-
return n.on = function(v, p) {
|
|
1298
|
-
if (!(!v || !p)) {
|
|
1299
|
-
var u = this._events = this._events || {}, d = u[v] = u[v] || [];
|
|
1300
|
-
return d.indexOf(p) == -1 && d.push(p), this;
|
|
1301
|
-
}
|
|
1302
|
-
}, n.once = function(v, p) {
|
|
1303
|
-
if (!(!v || !p)) {
|
|
1304
|
-
this.on(v, p);
|
|
1305
|
-
var u = this._onceEvents = this._onceEvents || {}, d = u[v] = u[v] || {};
|
|
1306
|
-
return d[p] = !0, this;
|
|
1307
|
-
}
|
|
1308
|
-
}, n.off = function(v, p) {
|
|
1309
|
-
var u = this._events && this._events[v];
|
|
1310
|
-
if (!(!u || !u.length)) {
|
|
1311
|
-
var d = u.indexOf(p);
|
|
1312
|
-
return d != -1 && u.splice(d, 1), this;
|
|
1313
|
-
}
|
|
1314
|
-
}, n.emitEvent = function(v, p) {
|
|
1315
|
-
var u = this._events && this._events[v];
|
|
1316
|
-
if (!(!u || !u.length)) {
|
|
1317
|
-
u = u.slice(0), p = p || [];
|
|
1318
|
-
for (var d = this._onceEvents && this._onceEvents[v], a = 0; a < u.length; a++) {
|
|
1319
|
-
var r = u[a], f = d && d[r];
|
|
1320
|
-
f && (this.off(v, r), delete d[r]), r.apply(this, p);
|
|
1321
|
-
}
|
|
1322
|
-
return this;
|
|
1323
|
-
}
|
|
1324
|
-
}, n.allOff = function() {
|
|
1325
|
-
delete this._events, delete this._onceEvents;
|
|
1326
|
-
}, l;
|
|
1327
|
-
});
|
|
1328
|
-
}(Re)), Re.exports;
|
|
1329
|
-
}
|
|
1330
|
-
var Pe = { exports: {} };
|
|
1331
|
-
/*!
|
|
1332
|
-
* getSize v2.0.3
|
|
1333
|
-
* measure size of elements
|
|
1334
|
-
* MIT license
|
|
1335
|
-
*/
|
|
1336
|
-
var rt;
|
|
1337
|
-
function Ge() {
|
|
1338
|
-
return rt || (rt = 1, function(_) {
|
|
1339
|
-
(function(l, n) {
|
|
1340
|
-
_.exports ? _.exports = n() : l.getSize = n();
|
|
1341
|
-
})(window, function() {
|
|
1342
|
-
function n(i) {
|
|
1343
|
-
var g = parseFloat(i), m = i.indexOf("%") == -1 && !isNaN(g);
|
|
1344
|
-
return m && g;
|
|
1345
|
-
}
|
|
1346
|
-
function v() {
|
|
1347
|
-
}
|
|
1348
|
-
var p = typeof console > "u" ? v : function(i) {
|
|
1349
|
-
console.error(i);
|
|
1350
|
-
}, u = [
|
|
1351
|
-
"paddingLeft",
|
|
1352
|
-
"paddingRight",
|
|
1353
|
-
"paddingTop",
|
|
1354
|
-
"paddingBottom",
|
|
1355
|
-
"marginLeft",
|
|
1356
|
-
"marginRight",
|
|
1357
|
-
"marginTop",
|
|
1358
|
-
"marginBottom",
|
|
1359
|
-
"borderLeftWidth",
|
|
1360
|
-
"borderRightWidth",
|
|
1361
|
-
"borderTopWidth",
|
|
1362
|
-
"borderBottomWidth"
|
|
1363
|
-
], d = u.length;
|
|
1364
|
-
function a() {
|
|
1365
|
-
for (var i = {
|
|
1366
|
-
width: 0,
|
|
1367
|
-
height: 0,
|
|
1368
|
-
innerWidth: 0,
|
|
1369
|
-
innerHeight: 0,
|
|
1370
|
-
outerWidth: 0,
|
|
1371
|
-
outerHeight: 0
|
|
1372
|
-
}, g = 0; g < d; g++) {
|
|
1373
|
-
var m = u[g];
|
|
1374
|
-
i[m] = 0;
|
|
1375
|
-
}
|
|
1376
|
-
return i;
|
|
1377
|
-
}
|
|
1378
|
-
function r(i) {
|
|
1379
|
-
var g = getComputedStyle(i);
|
|
1380
|
-
return g || p("Style returned " + g + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), g;
|
|
1381
|
-
}
|
|
1382
|
-
var f = !1, k;
|
|
1383
|
-
function y() {
|
|
1384
|
-
if (!f) {
|
|
1385
|
-
f = !0;
|
|
1386
|
-
var i = document.createElement("div");
|
|
1387
|
-
i.style.width = "200px", i.style.padding = "1px 2px 3px 4px", i.style.borderStyle = "solid", i.style.borderWidth = "1px 2px 3px 4px", i.style.boxSizing = "border-box";
|
|
1388
|
-
var g = document.body || document.documentElement;
|
|
1389
|
-
g.appendChild(i);
|
|
1390
|
-
var m = r(i);
|
|
1391
|
-
k = Math.round(n(m.width)) == 200, C.isBoxSizeOuter = k, g.removeChild(i);
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
function C(i) {
|
|
1395
|
-
if (y(), typeof i == "string" && (i = document.querySelector(i)), !(!i || typeof i != "object" || !i.nodeType)) {
|
|
1396
|
-
var g = r(i);
|
|
1397
|
-
if (g.display == "none")
|
|
1398
|
-
return a();
|
|
1399
|
-
var m = {};
|
|
1400
|
-
m.width = i.offsetWidth, m.height = i.offsetHeight;
|
|
1401
|
-
for (var s = m.isBorderBox = g.boxSizing == "border-box", e = 0; e < d; e++) {
|
|
1402
|
-
var o = u[e], h = g[o], I = parseFloat(h);
|
|
1403
|
-
m[o] = isNaN(I) ? 0 : I;
|
|
1404
|
-
}
|
|
1405
|
-
var x = m.paddingLeft + m.paddingRight, R = m.paddingTop + m.paddingBottom, E = m.marginLeft + m.marginRight, L = m.marginTop + m.marginBottom, O = m.borderLeftWidth + m.borderRightWidth, q = m.borderTopWidth + m.borderBottomWidth, w = s && k, ee = n(g.width);
|
|
1406
|
-
ee !== !1 && (m.width = ee + // add padding and border unless it's already including it
|
|
1407
|
-
(w ? 0 : x + O));
|
|
1408
|
-
var te = n(g.height);
|
|
1409
|
-
return te !== !1 && (m.height = te + // add padding and border unless it's already including it
|
|
1410
|
-
(w ? 0 : R + q)), m.innerWidth = m.width - (x + O), m.innerHeight = m.height - (R + q), m.outerWidth = m.width + E, m.outerHeight = m.height + L, m;
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
return C;
|
|
1414
|
-
});
|
|
1415
|
-
}(Pe)), Pe.exports;
|
|
1416
|
-
}
|
|
1417
|
-
var De = { exports: {} }, Oe = { exports: {} }, at;
|
|
1418
|
-
function Ji() {
|
|
1419
|
-
return at || (at = 1, function(_) {
|
|
1420
|
-
(function(l, n) {
|
|
1421
|
-
_.exports ? _.exports = n() : l.matchesSelector = n();
|
|
1422
|
-
})(window, function() {
|
|
1423
|
-
var n = function() {
|
|
1424
|
-
var v = window.Element.prototype;
|
|
1425
|
-
if (v.matches)
|
|
1426
|
-
return "matches";
|
|
1427
|
-
if (v.matchesSelector)
|
|
1428
|
-
return "matchesSelector";
|
|
1429
|
-
for (var p = ["webkit", "moz", "ms", "o"], u = 0; u < p.length; u++) {
|
|
1430
|
-
var d = p[u], a = d + "MatchesSelector";
|
|
1431
|
-
if (v[a])
|
|
1432
|
-
return a;
|
|
1433
|
-
}
|
|
1434
|
-
}();
|
|
1435
|
-
return function(p, u) {
|
|
1436
|
-
return p[n](u);
|
|
1437
|
-
};
|
|
1438
|
-
});
|
|
1439
|
-
}(Oe)), Oe.exports;
|
|
1440
|
-
}
|
|
1441
|
-
var st;
|
|
1442
|
-
function Zi() {
|
|
1443
|
-
return st || (st = 1, function(_) {
|
|
1444
|
-
(function(l, n) {
|
|
1445
|
-
_.exports ? _.exports = n(
|
|
1446
|
-
l,
|
|
1447
|
-
Ji()
|
|
1448
|
-
) : l.fizzyUIUtils = n(
|
|
1449
|
-
l,
|
|
1450
|
-
l.matchesSelector
|
|
1451
|
-
);
|
|
1452
|
-
})(window, function(n, v) {
|
|
1453
|
-
var p = {};
|
|
1454
|
-
p.extend = function(a, r) {
|
|
1455
|
-
for (var f in r)
|
|
1456
|
-
a[f] = r[f];
|
|
1457
|
-
return a;
|
|
1458
|
-
}, p.modulo = function(a, r) {
|
|
1459
|
-
return (a % r + r) % r;
|
|
1460
|
-
};
|
|
1461
|
-
var u = Array.prototype.slice;
|
|
1462
|
-
p.makeArray = function(a) {
|
|
1463
|
-
if (Array.isArray(a))
|
|
1464
|
-
return a;
|
|
1465
|
-
if (a == null)
|
|
1466
|
-
return [];
|
|
1467
|
-
var r = typeof a == "object" && typeof a.length == "number";
|
|
1468
|
-
return r ? u.call(a) : [a];
|
|
1469
|
-
}, p.removeFrom = function(a, r) {
|
|
1470
|
-
var f = a.indexOf(r);
|
|
1471
|
-
f != -1 && a.splice(f, 1);
|
|
1472
|
-
}, p.getParent = function(a, r) {
|
|
1473
|
-
for (; a.parentNode && a != document.body; )
|
|
1474
|
-
if (a = a.parentNode, v(a, r))
|
|
1475
|
-
return a;
|
|
1476
|
-
}, p.getQueryElement = function(a) {
|
|
1477
|
-
return typeof a == "string" ? document.querySelector(a) : a;
|
|
1478
|
-
}, p.handleEvent = function(a) {
|
|
1479
|
-
var r = "on" + a.type;
|
|
1480
|
-
this[r] && this[r](a);
|
|
1481
|
-
}, p.filterFindElements = function(a, r) {
|
|
1482
|
-
a = p.makeArray(a);
|
|
1483
|
-
var f = [];
|
|
1484
|
-
return a.forEach(function(k) {
|
|
1485
|
-
if (k instanceof HTMLElement) {
|
|
1486
|
-
if (!r) {
|
|
1487
|
-
f.push(k);
|
|
1488
|
-
return;
|
|
1489
|
-
}
|
|
1490
|
-
v(k, r) && f.push(k);
|
|
1491
|
-
for (var y = k.querySelectorAll(r), C = 0; C < y.length; C++)
|
|
1492
|
-
f.push(y[C]);
|
|
1493
|
-
}
|
|
1494
|
-
}), f;
|
|
1495
|
-
}, p.debounceMethod = function(a, r, f) {
|
|
1496
|
-
f = f || 100;
|
|
1497
|
-
var k = a.prototype[r], y = r + "Timeout";
|
|
1498
|
-
a.prototype[r] = function() {
|
|
1499
|
-
var C = this[y];
|
|
1500
|
-
clearTimeout(C);
|
|
1501
|
-
var i = arguments, g = this;
|
|
1502
|
-
this[y] = setTimeout(function() {
|
|
1503
|
-
k.apply(g, i), delete g[y];
|
|
1504
|
-
}, f);
|
|
1505
|
-
};
|
|
1506
|
-
}, p.docReady = function(a) {
|
|
1507
|
-
var r = document.readyState;
|
|
1508
|
-
r == "complete" || r == "interactive" ? setTimeout(a) : document.addEventListener("DOMContentLoaded", a);
|
|
1509
|
-
}, p.toDashed = function(a) {
|
|
1510
|
-
return a.replace(/(.)([A-Z])/g, function(r, f, k) {
|
|
1511
|
-
return f + "-" + k;
|
|
1512
|
-
}).toLowerCase();
|
|
1513
|
-
};
|
|
1514
|
-
var d = n.console;
|
|
1515
|
-
return p.htmlInit = function(a, r) {
|
|
1516
|
-
p.docReady(function() {
|
|
1517
|
-
var f = p.toDashed(r), k = "data-" + f, y = document.querySelectorAll("[" + k + "]"), C = document.querySelectorAll(".js-" + f), i = p.makeArray(y).concat(p.makeArray(C)), g = k + "-options", m = n.jQuery;
|
|
1518
|
-
i.forEach(function(s) {
|
|
1519
|
-
var e = s.getAttribute(k) || s.getAttribute(g), o;
|
|
1520
|
-
try {
|
|
1521
|
-
o = e && JSON.parse(e);
|
|
1522
|
-
} catch (I) {
|
|
1523
|
-
d && d.error("Error parsing " + k + " on " + s.className + ": " + I);
|
|
1524
|
-
return;
|
|
1525
|
-
}
|
|
1526
|
-
var h = new a(s, o);
|
|
1527
|
-
m && m.data(s, r, h);
|
|
1528
|
-
});
|
|
1529
|
-
});
|
|
1530
|
-
}, p;
|
|
1531
|
-
});
|
|
1532
|
-
}(De)), De.exports;
|
|
1533
|
-
}
|
|
1534
|
-
var We = { exports: {} }, lt;
|
|
1535
|
-
function en() {
|
|
1536
|
-
return lt || (lt = 1, function(_) {
|
|
1537
|
-
(function(l, n) {
|
|
1538
|
-
_.exports ? _.exports = n(
|
|
1539
|
-
He(),
|
|
1540
|
-
Ge()
|
|
1541
|
-
) : (l.Outlayer = {}, l.Outlayer.Item = n(
|
|
1542
|
-
l.EvEmitter,
|
|
1543
|
-
l.getSize
|
|
1544
|
-
));
|
|
1545
|
-
})(window, function(n, v) {
|
|
1546
|
-
function p(s) {
|
|
1547
|
-
for (var e in s)
|
|
1548
|
-
return !1;
|
|
1549
|
-
return e = null, !0;
|
|
1550
|
-
}
|
|
1551
|
-
var u = document.documentElement.style, d = typeof u.transition == "string" ? "transition" : "WebkitTransition", a = typeof u.transform == "string" ? "transform" : "WebkitTransform", r = {
|
|
1552
|
-
WebkitTransition: "webkitTransitionEnd",
|
|
1553
|
-
transition: "transitionend"
|
|
1554
|
-
}[d], f = {
|
|
1555
|
-
transform: a,
|
|
1556
|
-
transition: d,
|
|
1557
|
-
transitionDuration: d + "Duration",
|
|
1558
|
-
transitionProperty: d + "Property",
|
|
1559
|
-
transitionDelay: d + "Delay"
|
|
1560
|
-
};
|
|
1561
|
-
function k(s, e) {
|
|
1562
|
-
s && (this.element = s, this.layout = e, this.position = {
|
|
1563
|
-
x: 0,
|
|
1564
|
-
y: 0
|
|
1565
|
-
}, this._create());
|
|
1566
|
-
}
|
|
1567
|
-
var y = k.prototype = Object.create(n.prototype);
|
|
1568
|
-
y.constructor = k, y._create = function() {
|
|
1569
|
-
this._transn = {
|
|
1570
|
-
ingProperties: {},
|
|
1571
|
-
clean: {},
|
|
1572
|
-
onEnd: {}
|
|
1573
|
-
}, this.css({
|
|
1574
|
-
position: "absolute"
|
|
1575
|
-
});
|
|
1576
|
-
}, y.handleEvent = function(s) {
|
|
1577
|
-
var e = "on" + s.type;
|
|
1578
|
-
this[e] && this[e](s);
|
|
1579
|
-
}, y.getSize = function() {
|
|
1580
|
-
this.size = v(this.element);
|
|
1581
|
-
}, y.css = function(s) {
|
|
1582
|
-
var e = this.element.style;
|
|
1583
|
-
for (var o in s) {
|
|
1584
|
-
var h = f[o] || o;
|
|
1585
|
-
e[h] = s[o];
|
|
1586
|
-
}
|
|
1587
|
-
}, y.getPosition = function() {
|
|
1588
|
-
var s = getComputedStyle(this.element), e = this.layout._getOption("originLeft"), o = this.layout._getOption("originTop"), h = s[e ? "left" : "right"], I = s[o ? "top" : "bottom"], x = parseFloat(h), R = parseFloat(I), E = this.layout.size;
|
|
1589
|
-
h.indexOf("%") != -1 && (x = x / 100 * E.width), I.indexOf("%") != -1 && (R = R / 100 * E.height), x = isNaN(x) ? 0 : x, R = isNaN(R) ? 0 : R, x -= e ? E.paddingLeft : E.paddingRight, R -= o ? E.paddingTop : E.paddingBottom, this.position.x = x, this.position.y = R;
|
|
1590
|
-
}, y.layoutPosition = function() {
|
|
1591
|
-
var s = this.layout.size, e = {}, o = this.layout._getOption("originLeft"), h = this.layout._getOption("originTop"), I = o ? "paddingLeft" : "paddingRight", x = o ? "left" : "right", R = o ? "right" : "left", E = this.position.x + s[I];
|
|
1592
|
-
e[x] = this.getXValue(E), e[R] = "";
|
|
1593
|
-
var L = h ? "paddingTop" : "paddingBottom", O = h ? "top" : "bottom", q = h ? "bottom" : "top", w = this.position.y + s[L];
|
|
1594
|
-
e[O] = this.getYValue(w), e[q] = "", this.css(e), this.emitEvent("layout", [this]);
|
|
1595
|
-
}, y.getXValue = function(s) {
|
|
1596
|
-
var e = this.layout._getOption("horizontal");
|
|
1597
|
-
return this.layout.options.percentPosition && !e ? s / this.layout.size.width * 100 + "%" : s + "px";
|
|
1598
|
-
}, y.getYValue = function(s) {
|
|
1599
|
-
var e = this.layout._getOption("horizontal");
|
|
1600
|
-
return this.layout.options.percentPosition && e ? s / this.layout.size.height * 100 + "%" : s + "px";
|
|
1601
|
-
}, y._transitionTo = function(s, e) {
|
|
1602
|
-
this.getPosition();
|
|
1603
|
-
var o = this.position.x, h = this.position.y, I = s == this.position.x && e == this.position.y;
|
|
1604
|
-
if (this.setPosition(s, e), I && !this.isTransitioning) {
|
|
1605
|
-
this.layoutPosition();
|
|
1606
|
-
return;
|
|
1607
|
-
}
|
|
1608
|
-
var x = s - o, R = e - h, E = {};
|
|
1609
|
-
E.transform = this.getTranslate(x, R), this.transition({
|
|
1610
|
-
to: E,
|
|
1611
|
-
onTransitionEnd: {
|
|
1612
|
-
transform: this.layoutPosition
|
|
1613
|
-
},
|
|
1614
|
-
isCleaning: !0
|
|
1615
|
-
});
|
|
1616
|
-
}, y.getTranslate = function(s, e) {
|
|
1617
|
-
var o = this.layout._getOption("originLeft"), h = this.layout._getOption("originTop");
|
|
1618
|
-
return s = o ? s : -s, e = h ? e : -e, "translate3d(" + s + "px, " + e + "px, 0)";
|
|
1619
|
-
}, y.goTo = function(s, e) {
|
|
1620
|
-
this.setPosition(s, e), this.layoutPosition();
|
|
1621
|
-
}, y.moveTo = y._transitionTo, y.setPosition = function(s, e) {
|
|
1622
|
-
this.position.x = parseFloat(s), this.position.y = parseFloat(e);
|
|
1623
|
-
}, y._nonTransition = function(s) {
|
|
1624
|
-
this.css(s.to), s.isCleaning && this._removeStyles(s.to);
|
|
1625
|
-
for (var e in s.onTransitionEnd)
|
|
1626
|
-
s.onTransitionEnd[e].call(this);
|
|
1627
|
-
}, y.transition = function(s) {
|
|
1628
|
-
if (!parseFloat(this.layout.options.transitionDuration)) {
|
|
1629
|
-
this._nonTransition(s);
|
|
1630
|
-
return;
|
|
1631
|
-
}
|
|
1632
|
-
var e = this._transn;
|
|
1633
|
-
for (var o in s.onTransitionEnd)
|
|
1634
|
-
e.onEnd[o] = s.onTransitionEnd[o];
|
|
1635
|
-
for (o in s.to)
|
|
1636
|
-
e.ingProperties[o] = !0, s.isCleaning && (e.clean[o] = !0);
|
|
1637
|
-
s.from && (this.css(s.from), this.element.offsetHeight), this.enableTransition(s.to), this.css(s.to), this.isTransitioning = !0;
|
|
1638
|
-
};
|
|
1639
|
-
function C(s) {
|
|
1640
|
-
return s.replace(/([A-Z])/g, function(e) {
|
|
1641
|
-
return "-" + e.toLowerCase();
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
var i = "opacity," + C(a);
|
|
1645
|
-
y.enableTransition = function() {
|
|
1646
|
-
if (!this.isTransitioning) {
|
|
1647
|
-
var s = this.layout.options.transitionDuration;
|
|
1648
|
-
s = typeof s == "number" ? s + "ms" : s, this.css({
|
|
1649
|
-
transitionProperty: i,
|
|
1650
|
-
transitionDuration: s,
|
|
1651
|
-
transitionDelay: this.staggerDelay || 0
|
|
1652
|
-
}), this.element.addEventListener(r, this, !1);
|
|
1653
|
-
}
|
|
1654
|
-
}, y.onwebkitTransitionEnd = function(s) {
|
|
1655
|
-
this.ontransitionend(s);
|
|
1656
|
-
}, y.onotransitionend = function(s) {
|
|
1657
|
-
this.ontransitionend(s);
|
|
1658
|
-
};
|
|
1659
|
-
var g = {
|
|
1660
|
-
"-webkit-transform": "transform"
|
|
1661
|
-
};
|
|
1662
|
-
y.ontransitionend = function(s) {
|
|
1663
|
-
if (s.target === this.element) {
|
|
1664
|
-
var e = this._transn, o = g[s.propertyName] || s.propertyName;
|
|
1665
|
-
if (delete e.ingProperties[o], p(e.ingProperties) && this.disableTransition(), o in e.clean && (this.element.style[s.propertyName] = "", delete e.clean[o]), o in e.onEnd) {
|
|
1666
|
-
var h = e.onEnd[o];
|
|
1667
|
-
h.call(this), delete e.onEnd[o];
|
|
1668
|
-
}
|
|
1669
|
-
this.emitEvent("transitionEnd", [this]);
|
|
1670
|
-
}
|
|
1671
|
-
}, y.disableTransition = function() {
|
|
1672
|
-
this.removeTransitionStyles(), this.element.removeEventListener(r, this, !1), this.isTransitioning = !1;
|
|
1673
|
-
}, y._removeStyles = function(s) {
|
|
1674
|
-
var e = {};
|
|
1675
|
-
for (var o in s)
|
|
1676
|
-
e[o] = "";
|
|
1677
|
-
this.css(e);
|
|
1678
|
-
};
|
|
1679
|
-
var m = {
|
|
1680
|
-
transitionProperty: "",
|
|
1681
|
-
transitionDuration: "",
|
|
1682
|
-
transitionDelay: ""
|
|
1683
|
-
};
|
|
1684
|
-
return y.removeTransitionStyles = function() {
|
|
1685
|
-
this.css(m);
|
|
1686
|
-
}, y.stagger = function(s) {
|
|
1687
|
-
s = isNaN(s) ? 0 : s, this.staggerDelay = s + "ms";
|
|
1688
|
-
}, y.removeElem = function() {
|
|
1689
|
-
this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
|
|
1690
|
-
}, y.remove = function() {
|
|
1691
|
-
if (!d || !parseFloat(this.layout.options.transitionDuration)) {
|
|
1692
|
-
this.removeElem();
|
|
1693
|
-
return;
|
|
1694
|
-
}
|
|
1695
|
-
this.once("transitionEnd", function() {
|
|
1696
|
-
this.removeElem();
|
|
1697
|
-
}), this.hide();
|
|
1698
|
-
}, y.reveal = function() {
|
|
1699
|
-
delete this.isHidden, this.css({ display: "" });
|
|
1700
|
-
var s = this.layout.options, e = {}, o = this.getHideRevealTransitionEndProperty("visibleStyle");
|
|
1701
|
-
e[o] = this.onRevealTransitionEnd, this.transition({
|
|
1702
|
-
from: s.hiddenStyle,
|
|
1703
|
-
to: s.visibleStyle,
|
|
1704
|
-
isCleaning: !0,
|
|
1705
|
-
onTransitionEnd: e
|
|
1706
|
-
});
|
|
1707
|
-
}, y.onRevealTransitionEnd = function() {
|
|
1708
|
-
this.isHidden || this.emitEvent("reveal");
|
|
1709
|
-
}, y.getHideRevealTransitionEndProperty = function(s) {
|
|
1710
|
-
var e = this.layout.options[s];
|
|
1711
|
-
if (e.opacity)
|
|
1712
|
-
return "opacity";
|
|
1713
|
-
for (var o in e)
|
|
1714
|
-
return o;
|
|
1715
|
-
}, y.hide = function() {
|
|
1716
|
-
this.isHidden = !0, this.css({ display: "" });
|
|
1717
|
-
var s = this.layout.options, e = {}, o = this.getHideRevealTransitionEndProperty("hiddenStyle");
|
|
1718
|
-
e[o] = this.onHideTransitionEnd, this.transition({
|
|
1719
|
-
from: s.visibleStyle,
|
|
1720
|
-
to: s.hiddenStyle,
|
|
1721
|
-
// keep hidden stuff hidden
|
|
1722
|
-
isCleaning: !0,
|
|
1723
|
-
onTransitionEnd: e
|
|
1724
|
-
});
|
|
1725
|
-
}, y.onHideTransitionEnd = function() {
|
|
1726
|
-
this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide"));
|
|
1727
|
-
}, y.destroy = function() {
|
|
1728
|
-
this.css({
|
|
1729
|
-
position: "",
|
|
1730
|
-
left: "",
|
|
1731
|
-
right: "",
|
|
1732
|
-
top: "",
|
|
1733
|
-
bottom: "",
|
|
1734
|
-
transition: "",
|
|
1735
|
-
transform: ""
|
|
1736
|
-
});
|
|
1737
|
-
}, k;
|
|
1738
|
-
});
|
|
1739
|
-
}(We)), We.exports;
|
|
1740
|
-
}
|
|
1741
|
-
/*!
|
|
1742
|
-
* Outlayer v2.1.1
|
|
1743
|
-
* the brains and guts of a layout library
|
|
1744
|
-
* MIT license
|
|
1745
|
-
*/
|
|
1746
|
-
var ut;
|
|
1747
|
-
function tn() {
|
|
1748
|
-
return ut || (ut = 1, function(_) {
|
|
1749
|
-
(function(l, n) {
|
|
1750
|
-
_.exports ? _.exports = n(
|
|
1751
|
-
l,
|
|
1752
|
-
He(),
|
|
1753
|
-
Ge(),
|
|
1754
|
-
Zi(),
|
|
1755
|
-
en()
|
|
1756
|
-
) : l.Outlayer = n(
|
|
1757
|
-
l,
|
|
1758
|
-
l.EvEmitter,
|
|
1759
|
-
l.getSize,
|
|
1760
|
-
l.fizzyUIUtils,
|
|
1761
|
-
l.Outlayer.Item
|
|
1762
|
-
);
|
|
1763
|
-
})(window, function(n, v, p, u, d) {
|
|
1764
|
-
var a = n.console, r = n.jQuery, f = function() {
|
|
1765
|
-
}, k = 0, y = {};
|
|
1766
|
-
function C(e, o) {
|
|
1767
|
-
var h = u.getQueryElement(e);
|
|
1768
|
-
if (!h) {
|
|
1769
|
-
a && a.error("Bad element for " + this.constructor.namespace + ": " + (h || e));
|
|
1770
|
-
return;
|
|
1771
|
-
}
|
|
1772
|
-
this.element = h, r && (this.$element = r(this.element)), this.options = u.extend({}, this.constructor.defaults), this.option(o);
|
|
1773
|
-
var I = ++k;
|
|
1774
|
-
this.element.outlayerGUID = I, y[I] = this, this._create();
|
|
1775
|
-
var x = this._getOption("initLayout");
|
|
1776
|
-
x && this.layout();
|
|
1777
|
-
}
|
|
1778
|
-
C.namespace = "outlayer", C.Item = d, C.defaults = {
|
|
1779
|
-
containerStyle: {
|
|
1780
|
-
position: "relative"
|
|
1781
|
-
},
|
|
1782
|
-
initLayout: !0,
|
|
1783
|
-
originLeft: !0,
|
|
1784
|
-
originTop: !0,
|
|
1785
|
-
resize: !0,
|
|
1786
|
-
resizeContainer: !0,
|
|
1787
|
-
// item options
|
|
1788
|
-
transitionDuration: "0.4s",
|
|
1789
|
-
hiddenStyle: {
|
|
1790
|
-
opacity: 0,
|
|
1791
|
-
transform: "scale(0.001)"
|
|
1792
|
-
},
|
|
1793
|
-
visibleStyle: {
|
|
1794
|
-
opacity: 1,
|
|
1795
|
-
transform: "scale(1)"
|
|
1796
|
-
}
|
|
1797
|
-
};
|
|
1798
|
-
var i = C.prototype;
|
|
1799
|
-
u.extend(i, v.prototype), i.option = function(e) {
|
|
1800
|
-
u.extend(this.options, e);
|
|
1801
|
-
}, i._getOption = function(e) {
|
|
1802
|
-
var o = this.constructor.compatOptions[e];
|
|
1803
|
-
return o && this.options[o] !== void 0 ? this.options[o] : this.options[e];
|
|
1804
|
-
}, C.compatOptions = {
|
|
1805
|
-
// currentName: oldName
|
|
1806
|
-
initLayout: "isInitLayout",
|
|
1807
|
-
horizontal: "isHorizontal",
|
|
1808
|
-
layoutInstant: "isLayoutInstant",
|
|
1809
|
-
originLeft: "isOriginLeft",
|
|
1810
|
-
originTop: "isOriginTop",
|
|
1811
|
-
resize: "isResizeBound",
|
|
1812
|
-
resizeContainer: "isResizingContainer"
|
|
1813
|
-
}, i._create = function() {
|
|
1814
|
-
this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), u.extend(this.element.style, this.options.containerStyle);
|
|
1815
|
-
var e = this._getOption("resize");
|
|
1816
|
-
e && this.bindResize();
|
|
1817
|
-
}, i.reloadItems = function() {
|
|
1818
|
-
this.items = this._itemize(this.element.children);
|
|
1819
|
-
}, i._itemize = function(e) {
|
|
1820
|
-
for (var o = this._filterFindItemElements(e), h = this.constructor.Item, I = [], x = 0; x < o.length; x++) {
|
|
1821
|
-
var R = o[x], E = new h(R, this);
|
|
1822
|
-
I.push(E);
|
|
1823
|
-
}
|
|
1824
|
-
return I;
|
|
1825
|
-
}, i._filterFindItemElements = function(e) {
|
|
1826
|
-
return u.filterFindElements(e, this.options.itemSelector);
|
|
1827
|
-
}, i.getItemElements = function() {
|
|
1828
|
-
return this.items.map(function(e) {
|
|
1829
|
-
return e.element;
|
|
1830
|
-
});
|
|
1831
|
-
}, i.layout = function() {
|
|
1832
|
-
this._resetLayout(), this._manageStamps();
|
|
1833
|
-
var e = this._getOption("layoutInstant"), o = e !== void 0 ? e : !this._isLayoutInited;
|
|
1834
|
-
this.layoutItems(this.items, o), this._isLayoutInited = !0;
|
|
1835
|
-
}, i._init = i.layout, i._resetLayout = function() {
|
|
1836
|
-
this.getSize();
|
|
1837
|
-
}, i.getSize = function() {
|
|
1838
|
-
this.size = p(this.element);
|
|
1839
|
-
}, i._getMeasurement = function(e, o) {
|
|
1840
|
-
var h = this.options[e], I;
|
|
1841
|
-
h ? (typeof h == "string" ? I = this.element.querySelector(h) : h instanceof HTMLElement && (I = h), this[e] = I ? p(I)[o] : h) : this[e] = 0;
|
|
1842
|
-
}, i.layoutItems = function(e, o) {
|
|
1843
|
-
e = this._getItemsForLayout(e), this._layoutItems(e, o), this._postLayout();
|
|
1844
|
-
}, i._getItemsForLayout = function(e) {
|
|
1845
|
-
return e.filter(function(o) {
|
|
1846
|
-
return !o.isIgnored;
|
|
1847
|
-
});
|
|
1848
|
-
}, i._layoutItems = function(e, o) {
|
|
1849
|
-
if (this._emitCompleteOnItems("layout", e), !(!e || !e.length)) {
|
|
1850
|
-
var h = [];
|
|
1851
|
-
e.forEach(function(I) {
|
|
1852
|
-
var x = this._getItemLayoutPosition(I);
|
|
1853
|
-
x.item = I, x.isInstant = o || I.isLayoutInstant, h.push(x);
|
|
1854
|
-
}, this), this._processLayoutQueue(h);
|
|
1855
|
-
}
|
|
1856
|
-
}, i._getItemLayoutPosition = function() {
|
|
1857
|
-
return {
|
|
1858
|
-
x: 0,
|
|
1859
|
-
y: 0
|
|
1860
|
-
};
|
|
1861
|
-
}, i._processLayoutQueue = function(e) {
|
|
1862
|
-
this.updateStagger(), e.forEach(function(o, h) {
|
|
1863
|
-
this._positionItem(o.item, o.x, o.y, o.isInstant, h);
|
|
1864
|
-
}, this);
|
|
1865
|
-
}, i.updateStagger = function() {
|
|
1866
|
-
var e = this.options.stagger;
|
|
1867
|
-
if (e == null) {
|
|
1868
|
-
this.stagger = 0;
|
|
1869
|
-
return;
|
|
1870
|
-
}
|
|
1871
|
-
return this.stagger = s(e), this.stagger;
|
|
1872
|
-
}, i._positionItem = function(e, o, h, I, x) {
|
|
1873
|
-
I ? e.goTo(o, h) : (e.stagger(x * this.stagger), e.moveTo(o, h));
|
|
1874
|
-
}, i._postLayout = function() {
|
|
1875
|
-
this.resizeContainer();
|
|
1876
|
-
}, i.resizeContainer = function() {
|
|
1877
|
-
var e = this._getOption("resizeContainer");
|
|
1878
|
-
if (e) {
|
|
1879
|
-
var o = this._getContainerSize();
|
|
1880
|
-
o && (this._setContainerMeasure(o.width, !0), this._setContainerMeasure(o.height, !1));
|
|
1881
|
-
}
|
|
1882
|
-
}, i._getContainerSize = f, i._setContainerMeasure = function(e, o) {
|
|
1883
|
-
if (e !== void 0) {
|
|
1884
|
-
var h = this.size;
|
|
1885
|
-
h.isBorderBox && (e += o ? h.paddingLeft + h.paddingRight + h.borderLeftWidth + h.borderRightWidth : h.paddingBottom + h.paddingTop + h.borderTopWidth + h.borderBottomWidth), e = Math.max(e, 0), this.element.style[o ? "width" : "height"] = e + "px";
|
|
1886
|
-
}
|
|
1887
|
-
}, i._emitCompleteOnItems = function(e, o) {
|
|
1888
|
-
var h = this;
|
|
1889
|
-
function I() {
|
|
1890
|
-
h.dispatchEvent(e + "Complete", null, [o]);
|
|
1891
|
-
}
|
|
1892
|
-
var x = o.length;
|
|
1893
|
-
if (!o || !x) {
|
|
1894
|
-
I();
|
|
1895
|
-
return;
|
|
1896
|
-
}
|
|
1897
|
-
var R = 0;
|
|
1898
|
-
function E() {
|
|
1899
|
-
R++, R == x && I();
|
|
1900
|
-
}
|
|
1901
|
-
o.forEach(function(L) {
|
|
1902
|
-
L.once(e, E);
|
|
1903
|
-
});
|
|
1904
|
-
}, i.dispatchEvent = function(e, o, h) {
|
|
1905
|
-
var I = o ? [o].concat(h) : h;
|
|
1906
|
-
if (this.emitEvent(e, I), r)
|
|
1907
|
-
if (this.$element = this.$element || r(this.element), o) {
|
|
1908
|
-
var x = r.Event(o);
|
|
1909
|
-
x.type = e, this.$element.trigger(x, h);
|
|
1910
|
-
} else
|
|
1911
|
-
this.$element.trigger(e, h);
|
|
1912
|
-
}, i.ignore = function(e) {
|
|
1913
|
-
var o = this.getItem(e);
|
|
1914
|
-
o && (o.isIgnored = !0);
|
|
1915
|
-
}, i.unignore = function(e) {
|
|
1916
|
-
var o = this.getItem(e);
|
|
1917
|
-
o && delete o.isIgnored;
|
|
1918
|
-
}, i.stamp = function(e) {
|
|
1919
|
-
e = this._find(e), e && (this.stamps = this.stamps.concat(e), e.forEach(this.ignore, this));
|
|
1920
|
-
}, i.unstamp = function(e) {
|
|
1921
|
-
e = this._find(e), e && e.forEach(function(o) {
|
|
1922
|
-
u.removeFrom(this.stamps, o), this.unignore(o);
|
|
1923
|
-
}, this);
|
|
1924
|
-
}, i._find = function(e) {
|
|
1925
|
-
if (e)
|
|
1926
|
-
return typeof e == "string" && (e = this.element.querySelectorAll(e)), e = u.makeArray(e), e;
|
|
1927
|
-
}, i._manageStamps = function() {
|
|
1928
|
-
!this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
|
|
1929
|
-
}, i._getBoundingRect = function() {
|
|
1930
|
-
var e = this.element.getBoundingClientRect(), o = this.size;
|
|
1931
|
-
this._boundingRect = {
|
|
1932
|
-
left: e.left + o.paddingLeft + o.borderLeftWidth,
|
|
1933
|
-
top: e.top + o.paddingTop + o.borderTopWidth,
|
|
1934
|
-
right: e.right - (o.paddingRight + o.borderRightWidth),
|
|
1935
|
-
bottom: e.bottom - (o.paddingBottom + o.borderBottomWidth)
|
|
1936
|
-
};
|
|
1937
|
-
}, i._manageStamp = f, i._getElementOffset = function(e) {
|
|
1938
|
-
var o = e.getBoundingClientRect(), h = this._boundingRect, I = p(e), x = {
|
|
1939
|
-
left: o.left - h.left - I.marginLeft,
|
|
1940
|
-
top: o.top - h.top - I.marginTop,
|
|
1941
|
-
right: h.right - o.right - I.marginRight,
|
|
1942
|
-
bottom: h.bottom - o.bottom - I.marginBottom
|
|
1943
|
-
};
|
|
1944
|
-
return x;
|
|
1945
|
-
}, i.handleEvent = u.handleEvent, i.bindResize = function() {
|
|
1946
|
-
n.addEventListener("resize", this), this.isResizeBound = !0;
|
|
1947
|
-
}, i.unbindResize = function() {
|
|
1948
|
-
n.removeEventListener("resize", this), this.isResizeBound = !1;
|
|
1949
|
-
}, i.onresize = function() {
|
|
1950
|
-
this.resize();
|
|
1951
|
-
}, u.debounceMethod(C, "onresize", 100), i.resize = function() {
|
|
1952
|
-
!this.isResizeBound || !this.needsResizeLayout() || this.layout();
|
|
1953
|
-
}, i.needsResizeLayout = function() {
|
|
1954
|
-
var e = p(this.element), o = this.size && e;
|
|
1955
|
-
return o && e.innerWidth !== this.size.innerWidth;
|
|
1956
|
-
}, i.addItems = function(e) {
|
|
1957
|
-
var o = this._itemize(e);
|
|
1958
|
-
return o.length && (this.items = this.items.concat(o)), o;
|
|
1959
|
-
}, i.appended = function(e) {
|
|
1960
|
-
var o = this.addItems(e);
|
|
1961
|
-
o.length && (this.layoutItems(o, !0), this.reveal(o));
|
|
1962
|
-
}, i.prepended = function(e) {
|
|
1963
|
-
var o = this._itemize(e);
|
|
1964
|
-
if (o.length) {
|
|
1965
|
-
var h = this.items.slice(0);
|
|
1966
|
-
this.items = o.concat(h), this._resetLayout(), this._manageStamps(), this.layoutItems(o, !0), this.reveal(o), this.layoutItems(h);
|
|
1967
|
-
}
|
|
1968
|
-
}, i.reveal = function(e) {
|
|
1969
|
-
if (this._emitCompleteOnItems("reveal", e), !(!e || !e.length)) {
|
|
1970
|
-
var o = this.updateStagger();
|
|
1971
|
-
e.forEach(function(h, I) {
|
|
1972
|
-
h.stagger(I * o), h.reveal();
|
|
1973
|
-
});
|
|
1974
|
-
}
|
|
1975
|
-
}, i.hide = function(e) {
|
|
1976
|
-
if (this._emitCompleteOnItems("hide", e), !(!e || !e.length)) {
|
|
1977
|
-
var o = this.updateStagger();
|
|
1978
|
-
e.forEach(function(h, I) {
|
|
1979
|
-
h.stagger(I * o), h.hide();
|
|
1980
|
-
});
|
|
1981
|
-
}
|
|
1982
|
-
}, i.revealItemElements = function(e) {
|
|
1983
|
-
var o = this.getItems(e);
|
|
1984
|
-
this.reveal(o);
|
|
1985
|
-
}, i.hideItemElements = function(e) {
|
|
1986
|
-
var o = this.getItems(e);
|
|
1987
|
-
this.hide(o);
|
|
1988
|
-
}, i.getItem = function(e) {
|
|
1989
|
-
for (var o = 0; o < this.items.length; o++) {
|
|
1990
|
-
var h = this.items[o];
|
|
1991
|
-
if (h.element == e)
|
|
1992
|
-
return h;
|
|
1993
|
-
}
|
|
1994
|
-
}, i.getItems = function(e) {
|
|
1995
|
-
e = u.makeArray(e);
|
|
1996
|
-
var o = [];
|
|
1997
|
-
return e.forEach(function(h) {
|
|
1998
|
-
var I = this.getItem(h);
|
|
1999
|
-
I && o.push(I);
|
|
2000
|
-
}, this), o;
|
|
2001
|
-
}, i.remove = function(e) {
|
|
2002
|
-
var o = this.getItems(e);
|
|
2003
|
-
this._emitCompleteOnItems("remove", o), !(!o || !o.length) && o.forEach(function(h) {
|
|
2004
|
-
h.remove(), u.removeFrom(this.items, h);
|
|
2005
|
-
}, this);
|
|
2006
|
-
}, i.destroy = function() {
|
|
2007
|
-
var e = this.element.style;
|
|
2008
|
-
e.height = "", e.position = "", e.width = "", this.items.forEach(function(h) {
|
|
2009
|
-
h.destroy();
|
|
2010
|
-
}), this.unbindResize();
|
|
2011
|
-
var o = this.element.outlayerGUID;
|
|
2012
|
-
delete y[o], delete this.element.outlayerGUID, r && r.removeData(this.element, this.constructor.namespace);
|
|
2013
|
-
}, C.data = function(e) {
|
|
2014
|
-
e = u.getQueryElement(e);
|
|
2015
|
-
var o = e && e.outlayerGUID;
|
|
2016
|
-
return o && y[o];
|
|
2017
|
-
}, C.create = function(e, o) {
|
|
2018
|
-
var h = g(C);
|
|
2019
|
-
return h.defaults = u.extend({}, C.defaults), u.extend(h.defaults, o), h.compatOptions = u.extend({}, C.compatOptions), h.namespace = e, h.data = C.data, h.Item = g(d), u.htmlInit(h, e), r && r.bridget && r.bridget(e, h), h;
|
|
2020
|
-
};
|
|
2021
|
-
function g(e) {
|
|
2022
|
-
function o() {
|
|
2023
|
-
e.apply(this, arguments);
|
|
2024
|
-
}
|
|
2025
|
-
return o.prototype = Object.create(e.prototype), o.prototype.constructor = o, o;
|
|
2026
|
-
}
|
|
2027
|
-
var m = {
|
|
2028
|
-
ms: 1,
|
|
2029
|
-
s: 1e3
|
|
2030
|
-
};
|
|
2031
|
-
function s(e) {
|
|
2032
|
-
if (typeof e == "number")
|
|
2033
|
-
return e;
|
|
2034
|
-
var o = e.match(/(^\d*\.?\d*)(\w*)/), h = o && o[1], I = o && o[2];
|
|
2035
|
-
if (!h.length)
|
|
2036
|
-
return 0;
|
|
2037
|
-
h = parseFloat(h);
|
|
2038
|
-
var x = m[I] || 1;
|
|
2039
|
-
return h * x;
|
|
2040
|
-
}
|
|
2041
|
-
return C.Item = d, C;
|
|
2042
|
-
});
|
|
2043
|
-
}($e)), $e.exports;
|
|
2044
|
-
}
|
|
2045
|
-
/*!
|
|
2046
|
-
* Masonry v4.2.2
|
|
2047
|
-
* Cascading grid layout library
|
|
2048
|
-
* https://masonry.desandro.com
|
|
2049
|
-
* MIT License
|
|
2050
|
-
* by David DeSandro
|
|
2051
|
-
*/
|
|
2052
|
-
(function(_) {
|
|
2053
|
-
(function(l, n) {
|
|
2054
|
-
_.exports ? _.exports = n(
|
|
2055
|
-
tn(),
|
|
2056
|
-
Ge()
|
|
2057
|
-
) : l.Masonry = n(
|
|
2058
|
-
l.Outlayer,
|
|
2059
|
-
l.getSize
|
|
2060
|
-
);
|
|
2061
|
-
})(window, function(n, v) {
|
|
2062
|
-
var p = n.create("masonry");
|
|
2063
|
-
p.compatOptions.fitWidth = "isFitWidth";
|
|
2064
|
-
var u = p.prototype;
|
|
2065
|
-
return u._resetLayout = function() {
|
|
2066
|
-
this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];
|
|
2067
|
-
for (var d = 0; d < this.cols; d++)
|
|
2068
|
-
this.colYs.push(0);
|
|
2069
|
-
this.maxY = 0, this.horizontalColIndex = 0;
|
|
2070
|
-
}, u.measureColumns = function() {
|
|
2071
|
-
if (this.getContainerWidth(), !this.columnWidth) {
|
|
2072
|
-
var d = this.items[0], a = d && d.element;
|
|
2073
|
-
this.columnWidth = a && v(a).outerWidth || // if first elem has no width, default to size of container
|
|
2074
|
-
this.containerWidth;
|
|
2075
|
-
}
|
|
2076
|
-
var r = this.columnWidth += this.gutter, f = this.containerWidth + this.gutter, k = f / r, y = r - f % r, C = y && y < 1 ? "round" : "floor";
|
|
2077
|
-
k = Math[C](k), this.cols = Math.max(k, 1);
|
|
2078
|
-
}, u.getContainerWidth = function() {
|
|
2079
|
-
var d = this._getOption("fitWidth"), a = d ? this.element.parentNode : this.element, r = v(a);
|
|
2080
|
-
this.containerWidth = r && r.innerWidth;
|
|
2081
|
-
}, u._getItemLayoutPosition = function(d) {
|
|
2082
|
-
d.getSize();
|
|
2083
|
-
var a = d.size.outerWidth % this.columnWidth, r = a && a < 1 ? "round" : "ceil", f = Math[r](d.size.outerWidth / this.columnWidth);
|
|
2084
|
-
f = Math.min(f, this.cols);
|
|
2085
|
-
for (var k = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", y = this[k](f, d), C = {
|
|
2086
|
-
x: this.columnWidth * y.col,
|
|
2087
|
-
y: y.y
|
|
2088
|
-
}, i = y.y + d.size.outerHeight, g = f + y.col, m = y.col; m < g; m++)
|
|
2089
|
-
this.colYs[m] = i;
|
|
2090
|
-
return C;
|
|
2091
|
-
}, u._getTopColPosition = function(d) {
|
|
2092
|
-
var a = this._getTopColGroup(d), r = Math.min.apply(Math, a);
|
|
2093
|
-
return {
|
|
2094
|
-
col: a.indexOf(r),
|
|
2095
|
-
y: r
|
|
2096
|
-
};
|
|
2097
|
-
}, u._getTopColGroup = function(d) {
|
|
2098
|
-
if (d < 2)
|
|
2099
|
-
return this.colYs;
|
|
2100
|
-
for (var a = [], r = this.cols + 1 - d, f = 0; f < r; f++)
|
|
2101
|
-
a[f] = this._getColGroupY(f, d);
|
|
2102
|
-
return a;
|
|
2103
|
-
}, u._getColGroupY = function(d, a) {
|
|
2104
|
-
if (a < 2)
|
|
2105
|
-
return this.colYs[d];
|
|
2106
|
-
var r = this.colYs.slice(d, d + a);
|
|
2107
|
-
return Math.max.apply(Math, r);
|
|
2108
|
-
}, u._getHorizontalColPosition = function(d, a) {
|
|
2109
|
-
var r = this.horizontalColIndex % this.cols, f = d > 1 && r + d > this.cols;
|
|
2110
|
-
r = f ? 0 : r;
|
|
2111
|
-
var k = a.size.outerWidth && a.size.outerHeight;
|
|
2112
|
-
return this.horizontalColIndex = k ? r + d : this.horizontalColIndex, {
|
|
2113
|
-
col: r,
|
|
2114
|
-
y: this._getColGroupY(r, d)
|
|
2115
|
-
};
|
|
2116
|
-
}, u._manageStamp = function(d) {
|
|
2117
|
-
var a = v(d), r = this._getElementOffset(d), f = this._getOption("originLeft"), k = f ? r.left : r.right, y = k + a.outerWidth, C = Math.floor(k / this.columnWidth);
|
|
2118
|
-
C = Math.max(0, C);
|
|
2119
|
-
var i = Math.floor(y / this.columnWidth);
|
|
2120
|
-
i -= y % this.columnWidth ? 0 : 1, i = Math.min(this.cols - 1, i);
|
|
2121
|
-
for (var g = this._getOption("originTop"), m = (g ? r.top : r.bottom) + a.outerHeight, s = C; s <= i; s++)
|
|
2122
|
-
this.colYs[s] = Math.max(m, this.colYs[s]);
|
|
2123
|
-
}, u._getContainerSize = function() {
|
|
2124
|
-
this.maxY = Math.max.apply(Math, this.colYs);
|
|
2125
|
-
var d = {
|
|
2126
|
-
height: this.maxY
|
|
2127
|
-
};
|
|
2128
|
-
return this._getOption("fitWidth") && (d.width = this._getContainerFitWidth()), d;
|
|
2129
|
-
}, u._getContainerFitWidth = function() {
|
|
2130
|
-
for (var d = 0, a = this.cols; --a && this.colYs[a] === 0; )
|
|
2131
|
-
d++;
|
|
2132
|
-
return (this.cols - d) * this.columnWidth - this.gutter;
|
|
2133
|
-
}, u.needsResizeLayout = function() {
|
|
2134
|
-
var d = this.containerWidth;
|
|
2135
|
-
return this.getContainerWidth(), d != this.containerWidth;
|
|
2136
|
-
}, p;
|
|
2137
|
-
});
|
|
2138
|
-
})(pt);
|
|
2139
|
-
var on = pt.exports;
|
|
2140
|
-
const dt = /* @__PURE__ */ ht(on);
|
|
2141
|
-
var ft = { exports: {} };
|
|
2142
|
-
/*!
|
|
2143
|
-
* imagesLoaded v4.1.4
|
|
2144
|
-
* JavaScript is all like "You images are done yet or what?"
|
|
2145
|
-
* MIT License
|
|
2146
|
-
*/
|
|
2147
|
-
(function(_) {
|
|
2148
|
-
(function(l, n) {
|
|
2149
|
-
_.exports ? _.exports = n(
|
|
2150
|
-
l,
|
|
2151
|
-
He()
|
|
2152
|
-
) : l.imagesLoaded = n(
|
|
2153
|
-
l,
|
|
2154
|
-
l.EvEmitter
|
|
2155
|
-
);
|
|
2156
|
-
})(
|
|
2157
|
-
typeof window < "u" ? window : ct,
|
|
2158
|
-
// -------------------------- factory -------------------------- //
|
|
2159
|
-
function(n, v) {
|
|
2160
|
-
var p = n.jQuery, u = n.console;
|
|
2161
|
-
function d(i, g) {
|
|
2162
|
-
for (var m in g)
|
|
2163
|
-
i[m] = g[m];
|
|
2164
|
-
return i;
|
|
2165
|
-
}
|
|
2166
|
-
var a = Array.prototype.slice;
|
|
2167
|
-
function r(i) {
|
|
2168
|
-
if (Array.isArray(i))
|
|
2169
|
-
return i;
|
|
2170
|
-
var g = typeof i == "object" && typeof i.length == "number";
|
|
2171
|
-
return g ? a.call(i) : [i];
|
|
2172
|
-
}
|
|
2173
|
-
function f(i, g, m) {
|
|
2174
|
-
if (!(this instanceof f))
|
|
2175
|
-
return new f(i, g, m);
|
|
2176
|
-
var s = i;
|
|
2177
|
-
if (typeof i == "string" && (s = document.querySelectorAll(i)), !s) {
|
|
2178
|
-
u.error("Bad element for imagesLoaded " + (s || i));
|
|
2179
|
-
return;
|
|
2180
|
-
}
|
|
2181
|
-
this.elements = r(s), this.options = d({}, this.options), typeof g == "function" ? m = g : d(this.options, g), m && this.on("always", m), this.getImages(), p && (this.jqDeferred = new p.Deferred()), setTimeout(this.check.bind(this));
|
|
2182
|
-
}
|
|
2183
|
-
f.prototype = Object.create(v.prototype), f.prototype.options = {}, f.prototype.getImages = function() {
|
|
2184
|
-
this.images = [], this.elements.forEach(this.addElementImages, this);
|
|
2185
|
-
}, f.prototype.addElementImages = function(i) {
|
|
2186
|
-
i.nodeName == "IMG" && this.addImage(i), this.options.background === !0 && this.addElementBackgroundImages(i);
|
|
2187
|
-
var g = i.nodeType;
|
|
2188
|
-
if (!(!g || !k[g])) {
|
|
2189
|
-
for (var m = i.querySelectorAll("img"), s = 0; s < m.length; s++) {
|
|
2190
|
-
var e = m[s];
|
|
2191
|
-
this.addImage(e);
|
|
2192
|
-
}
|
|
2193
|
-
if (typeof this.options.background == "string") {
|
|
2194
|
-
var o = i.querySelectorAll(this.options.background);
|
|
2195
|
-
for (s = 0; s < o.length; s++) {
|
|
2196
|
-
var h = o[s];
|
|
2197
|
-
this.addElementBackgroundImages(h);
|
|
2198
|
-
}
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
};
|
|
2202
|
-
var k = {
|
|
2203
|
-
1: !0,
|
|
2204
|
-
9: !0,
|
|
2205
|
-
11: !0
|
|
2206
|
-
};
|
|
2207
|
-
f.prototype.addElementBackgroundImages = function(i) {
|
|
2208
|
-
var g = getComputedStyle(i);
|
|
2209
|
-
if (g)
|
|
2210
|
-
for (var m = /url\((['"])?(.*?)\1\)/gi, s = m.exec(g.backgroundImage); s !== null; ) {
|
|
2211
|
-
var e = s && s[2];
|
|
2212
|
-
e && this.addBackground(e, i), s = m.exec(g.backgroundImage);
|
|
2213
|
-
}
|
|
2214
|
-
}, f.prototype.addImage = function(i) {
|
|
2215
|
-
var g = new y(i);
|
|
2216
|
-
this.images.push(g);
|
|
2217
|
-
}, f.prototype.addBackground = function(i, g) {
|
|
2218
|
-
var m = new C(i, g);
|
|
2219
|
-
this.images.push(m);
|
|
2220
|
-
}, f.prototype.check = function() {
|
|
2221
|
-
var i = this;
|
|
2222
|
-
if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
|
|
2223
|
-
this.complete();
|
|
2224
|
-
return;
|
|
2225
|
-
}
|
|
2226
|
-
function g(m, s, e) {
|
|
2227
|
-
setTimeout(function() {
|
|
2228
|
-
i.progress(m, s, e);
|
|
2229
|
-
});
|
|
2230
|
-
}
|
|
2231
|
-
this.images.forEach(function(m) {
|
|
2232
|
-
m.once("progress", g), m.check();
|
|
2233
|
-
});
|
|
2234
|
-
}, f.prototype.progress = function(i, g, m) {
|
|
2235
|
-
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !i.isLoaded, this.emitEvent("progress", [this, i, g]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, i), this.progressedCount == this.images.length && this.complete(), this.options.debug && u && u.log("progress: " + m, i, g);
|
|
2236
|
-
}, f.prototype.complete = function() {
|
|
2237
|
-
var i = this.hasAnyBroken ? "fail" : "done";
|
|
2238
|
-
if (this.isComplete = !0, this.emitEvent(i, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
|
|
2239
|
-
var g = this.hasAnyBroken ? "reject" : "resolve";
|
|
2240
|
-
this.jqDeferred[g](this);
|
|
2241
|
-
}
|
|
2242
|
-
};
|
|
2243
|
-
function y(i) {
|
|
2244
|
-
this.img = i;
|
|
2245
|
-
}
|
|
2246
|
-
y.prototype = Object.create(v.prototype), y.prototype.check = function() {
|
|
2247
|
-
var i = this.getIsImageComplete();
|
|
2248
|
-
if (i) {
|
|
2249
|
-
this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
|
|
2250
|
-
return;
|
|
2251
|
-
}
|
|
2252
|
-
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;
|
|
2253
|
-
}, y.prototype.getIsImageComplete = function() {
|
|
2254
|
-
return this.img.complete && this.img.naturalWidth;
|
|
2255
|
-
}, y.prototype.confirm = function(i, g) {
|
|
2256
|
-
this.isLoaded = i, this.emitEvent("progress", [this, this.img, g]);
|
|
2257
|
-
}, y.prototype.handleEvent = function(i) {
|
|
2258
|
-
var g = "on" + i.type;
|
|
2259
|
-
this[g] && this[g](i);
|
|
2260
|
-
}, y.prototype.onload = function() {
|
|
2261
|
-
this.confirm(!0, "onload"), this.unbindEvents();
|
|
2262
|
-
}, y.prototype.onerror = function() {
|
|
2263
|
-
this.confirm(!1, "onerror"), this.unbindEvents();
|
|
2264
|
-
}, y.prototype.unbindEvents = function() {
|
|
2265
|
-
this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
2266
|
-
};
|
|
2267
|
-
function C(i, g) {
|
|
2268
|
-
this.url = i, this.element = g, this.img = new Image();
|
|
2269
|
-
}
|
|
2270
|
-
return C.prototype = Object.create(y.prototype), C.prototype.check = function() {
|
|
2271
|
-
this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
|
|
2272
|
-
var i = this.getIsImageComplete();
|
|
2273
|
-
i && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
|
|
2274
|
-
}, C.prototype.unbindEvents = function() {
|
|
2275
|
-
this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
2276
|
-
}, C.prototype.confirm = function(i, g) {
|
|
2277
|
-
this.isLoaded = i, this.emitEvent("progress", [this, this.element, g]);
|
|
2278
|
-
}, f.makeJQueryPlugin = function(i) {
|
|
2279
|
-
i = i || n.jQuery, i && (p = i, p.fn.imagesLoaded = function(g, m) {
|
|
2280
|
-
var s = new f(this, g, m);
|
|
2281
|
-
return s.jqDeferred.promise(p(this));
|
|
2282
|
-
});
|
|
2283
|
-
}, f.makeJQueryPlugin(), f;
|
|
2284
|
-
}
|
|
2285
|
-
);
|
|
2286
|
-
})(ft);
|
|
2287
|
-
var nn = ft.exports;
|
|
2288
|
-
const rn = /* @__PURE__ */ ht(nn);
|
|
2289
|
-
function an(_) {
|
|
2290
|
-
return { all: _ = _ || /* @__PURE__ */ new Map(), on: function(l, n) {
|
|
2291
|
-
var v = _.get(l);
|
|
2292
|
-
v ? v.push(n) : _.set(l, [n]);
|
|
2293
|
-
}, off: function(l, n) {
|
|
2294
|
-
var v = _.get(l);
|
|
2295
|
-
v && (n ? v.splice(v.indexOf(n) >>> 0, 1) : _.set(l, []));
|
|
2296
|
-
}, emit: function(l, n) {
|
|
2297
|
-
var v = _.get(l);
|
|
2298
|
-
v && v.slice().map(function(p) {
|
|
2299
|
-
p(n);
|
|
2300
|
-
}), (v = _.get("*")) && v.slice().map(function(p) {
|
|
2301
|
-
p(l, n);
|
|
2302
|
-
});
|
|
2303
|
-
} };
|
|
2304
|
-
}
|
|
2305
|
-
const Ee = {
|
|
2306
|
-
"column-width": "columnWidth",
|
|
2307
|
-
"transition-duration": "transitionDuration",
|
|
2308
|
-
"item-selector": "itemSelector",
|
|
2309
|
-
"origin-left": "originLeft",
|
|
2310
|
-
"origin-top": "originTop",
|
|
2311
|
-
"fit-width": "fitWidth",
|
|
2312
|
-
stamp: "stamp",
|
|
2313
|
-
gutter: "gutter",
|
|
2314
|
-
"percent-position": "percentPosition",
|
|
2315
|
-
"horizontal-order": "horizontalOrder",
|
|
2316
|
-
stagger: "stagger",
|
|
2317
|
-
"destroy-delay": "destroyDelay"
|
|
2318
|
-
}, Ce = "vuemasonry.itemAdded", Fe = "vuemasonry.itemRemoved", Ne = "vuemasonry.imageLoaded", Me = "vuemasonry.destroy", sn = function(_) {
|
|
2319
|
-
return (_ + "").toLowerCase() === "true";
|
|
2320
|
-
}, ln = function(_) {
|
|
2321
|
-
return isNaN(_) ? _ : parseInt(_);
|
|
2322
|
-
}, un = function(_) {
|
|
2323
|
-
const l = {};
|
|
2324
|
-
return Array.prototype.slice.call(_).forEach(function(v) {
|
|
2325
|
-
Object.keys(Ee).indexOf(v.name) > -1 && (v.name.indexOf("origin") > -1 ? l[Ee[v.name]] = sn(v.value) : v.name === "column-width" || v.name === "gutter" ? l[Ee[v.name]] = ln(v.value) : l[Ee[v.name]] = v.value);
|
|
2326
|
-
}), l;
|
|
2327
|
-
}, mt = {};
|
|
2328
|
-
mt.install = function(_, l) {
|
|
2329
|
-
const n = an(), v = "VueMasonry", p = _;
|
|
2330
|
-
p.directive("masonry", {
|
|
2331
|
-
props: ["transitionDuration", " itemSelector", "destroyDelay"],
|
|
2332
|
-
mounted: function(u, d) {
|
|
2333
|
-
if (!dt)
|
|
2334
|
-
throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
|
|
2335
|
-
const a = un(u.attributes), r = new dt(u, a), f = d.value || v, k = a.destroyDelay ? parseInt(a.destroyDelay, 10) : void 0, y = function() {
|
|
2336
|
-
r.reloadItems(), r.layout();
|
|
2337
|
-
};
|
|
2338
|
-
ao(() => {
|
|
2339
|
-
y();
|
|
2340
|
-
});
|
|
2341
|
-
const C = function(g) {
|
|
2342
|
-
y();
|
|
2343
|
-
}, i = function(g) {
|
|
2344
|
-
n["off"](`${Ce}__${f}`, C), n["off"](`${Fe}__${f}`, C), n["off"](`${Ne}__${f}`, C), n["off"](`${Me}__${f}`, i);
|
|
2345
|
-
const m = k && !Number.isNaN(k) ? k : 0;
|
|
2346
|
-
setTimeout(function() {
|
|
2347
|
-
r.destroy();
|
|
2348
|
-
}, m);
|
|
2349
|
-
};
|
|
2350
|
-
n["on"](`${Ce}__${f}`, C), n["on"](`${Fe}__${f}`, C), n["on"](`${Ne}__${f}`, C), n["on"](`${Me}__${f}`, i);
|
|
2351
|
-
},
|
|
2352
|
-
unbind: function(u, d) {
|
|
2353
|
-
const a = d.value || v;
|
|
2354
|
-
n["emit"](`${Me}__${a}`);
|
|
2355
|
-
}
|
|
2356
|
-
}), p.directive("masonryTile", {
|
|
2357
|
-
mounted: function(u, d) {
|
|
2358
|
-
const a = d.value || v;
|
|
2359
|
-
n["emit"](`${Ce}__${a}`, {
|
|
2360
|
-
element: u
|
|
2361
|
-
}), new rn(u, function() {
|
|
2362
|
-
n["emit"](`${Ne}__${a}`, {
|
|
2363
|
-
element: u
|
|
2364
|
-
});
|
|
2365
|
-
});
|
|
2366
|
-
},
|
|
2367
|
-
unbind: function(u, d) {
|
|
2368
|
-
const a = d.value || v;
|
|
2369
|
-
n["emit"](`${Fe}__${a}`, {
|
|
2370
|
-
element: u
|
|
2371
|
-
});
|
|
2372
|
-
}
|
|
2373
|
-
});
|
|
2374
|
-
{
|
|
2375
|
-
const u = function(d) {
|
|
2376
|
-
const a = d || v;
|
|
2377
|
-
n["emit"](`${Ce}__${a}`);
|
|
2378
|
-
};
|
|
2379
|
-
_.config.globalProperties.$redrawVueMasonry = u, _.provide("redrawVueMasonry", u);
|
|
2380
|
-
}
|
|
2381
|
-
};
|
|
2382
|
-
const dn = so(), cn = Co(), Y = lo({ components: { Hotel: Ki } });
|
|
2383
|
-
Y.use(dn);
|
|
2384
|
-
Y.use(cn);
|
|
2385
|
-
Y.use(mt);
|
|
2386
|
-
Y.use(po);
|
|
2387
|
-
Y.use(Io);
|
|
2388
|
-
Y.use(uo);
|
|
2389
|
-
Y.use(To);
|
|
2390
|
-
Y.use(fo, { bootstrap: !1 });
|
|
2391
|
-
Y.mount("#fresh-booking-hotel-app");
|
|
2392
|
-
export {
|
|
2393
|
-
Y as default
|
|
2394
|
-
};
|