@konnectio/core 4.0.56-rc11 → 4.0.56-rc13
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-BCGIGizy.js → ActionField-G62UF21r.js} +1 -1
- package/dist/ActionField-G62UF21r.js.br +0 -0
- package/dist/{AvailabilitySkeleton-d30Akjrq.js → AvailabilitySkeleton-tqSi5vyB.js} +4 -4
- package/dist/AvailabilitySkeleton-tqSi5vyB.js.br +0 -0
- package/dist/{CheckoutWindow-Er5Fh6JL.js → CheckoutWindow-UxtOqUd7.js} +32 -32
- package/dist/CheckoutWindow-UxtOqUd7.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-uh-8PtWD.js → DateField.vue_vue_type_style_index_0_lang-6SUJIqhT.js} +1 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-6SUJIqhT.js.br +0 -0
- package/dist/{Field-yVjo13cY.js → Field-yoYCuzcb.js} +2 -2
- package/dist/Field-yoYCuzcb.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js → SelectField.vue_vue_type_style_index_0_lang--ARrh9rv.js} +9 -9
- package/dist/SelectField.vue_vue_type_style_index_0_lang--ARrh9rv.js.br +0 -0
- package/dist/{ThankYou-HHVwQVzN.js → ThankYou-RDRdoNH4.js} +5 -5
- package/dist/ThankYou-RDRdoNH4.js.br +0 -0
- package/dist/{_-3f6HQpXv.js → _-7jA-u2Qn.js} +1 -1
- package/dist/availability.js +97 -87
- package/dist/availability.js.br +0 -0
- package/dist/{event-ZitNye5j.js → event-8kXgxJW7.js} +7 -7
- package/dist/event-8kXgxJW7.js.br +0 -0
- package/dist/event.js +7 -7
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +2 -2
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +5 -5
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +732 -732
- package/dist/hotel.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-BCGIGizy.js.br +0 -0
- package/dist/AvailabilitySkeleton-d30Akjrq.js.br +0 -0
- package/dist/CheckoutWindow-Er5Fh6JL.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-uh-8PtWD.js.br +0 -0
- package/dist/Field-yVjo13cY.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js.br +0 -0
- package/dist/ThankYou-HHVwQVzN.js.br +0 -0
- package/dist/event-ZitNye5j.js.br +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { k as j, B as ne, am as so, s as K, c as he, W as ft, X as ie, o as E, m as R, a0 as ao, z as
|
|
2
|
-
import { R as Eo, B as Ge, a as To, S as Co, M as Io, T as $o, V as So } from "./ThankYou-
|
|
3
|
-
import { A as Vo, H as Lo } from "./AvailabilitySkeleton-
|
|
4
|
-
import { _ as Po } from "./DateField.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { C as Ne, P as xo, a as wo } from "./CheckoutWindow-
|
|
6
|
-
import { E as Y } from "./_-
|
|
1
|
+
import { k as j, B as ne, am as so, s as K, c as he, W as ft, X as ie, o as E, m as R, a0 as ao, z as l, w, ac as Le, x as y, F as V, K as te, a2 as Xe, an as lo, l as I, a6 as z, $ as B, n as x, a8 as We, ao as ue, p as C, H as Q, J as oe, f as q, y as Ee, P as mt, Q as gt, _ as J, r as ce, ap as vt, Z as Ue, Y as be, A as yt, C as le, aq as uo, a5 as co, q as ke, I as bt, v as Ze, T as ee, ar as po, N as ho, D as fo, a9 as mo, L as et, G as N, M as go, as as kt, at as vo, R as yo, U as bo, V as ko, ab as _o } from "./SelectField.vue_vue_type_style_index_0_lang--ARrh9rv.js";
|
|
2
|
+
import { R as Eo, B as Ge, a as To, S as Co, M as Io, T as $o, V as So } from "./ThankYou-RDRdoNH4.js";
|
|
3
|
+
import { A as Vo, H as Lo } from "./AvailabilitySkeleton-tqSi5vyB.js";
|
|
4
|
+
import { _ as Po } from "./DateField.vue_vue_type_style_index_0_lang-6SUJIqhT.js";
|
|
5
|
+
import { C as Ne, P as xo, a as wo } from "./CheckoutWindow-UxtOqUd7.js";
|
|
6
|
+
import { E as Y } from "./_-7jA-u2Qn.js";
|
|
7
7
|
import { c as _t, g as Et } from "./_commonjsHelpers-2ufMB8rV.js";
|
|
8
|
-
import "./ActionField-
|
|
9
|
-
import "./Field-
|
|
10
|
-
const Oo = { key: 0 },
|
|
8
|
+
import "./ActionField-G62UF21r.js";
|
|
9
|
+
import "./Field-yoYCuzcb.js";
|
|
10
|
+
const Oo = { key: 0 }, Ao = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
11
11
|
__name: "HotelReservationForm",
|
|
12
12
|
props: {
|
|
13
13
|
showGiftCard: { type: Boolean, default: !1 },
|
|
@@ -19,61 +19,61 @@ const Oo = { key: 0 }, Ho = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
19
19
|
disableArrivalUserSelection: p,
|
|
20
20
|
disableDepartureUserSelection: s,
|
|
21
21
|
arrivalDefault: h,
|
|
22
|
-
departureDefault:
|
|
23
|
-
currency:
|
|
22
|
+
departureDefault: c,
|
|
23
|
+
currency: a
|
|
24
24
|
} = K(he()), {
|
|
25
|
-
arrivalDate:
|
|
25
|
+
arrivalDate: u,
|
|
26
26
|
departureDate: f
|
|
27
27
|
} = K(ft()), {
|
|
28
|
-
arrivalTime:
|
|
28
|
+
arrivalTime: g,
|
|
29
29
|
departureTime: _,
|
|
30
|
-
roomDisplay:
|
|
30
|
+
roomDisplay: d,
|
|
31
31
|
templateID: b,
|
|
32
32
|
totalPrice: k,
|
|
33
|
-
areListingsLoading:
|
|
33
|
+
areListingsLoading: m,
|
|
34
34
|
getSelectedPackageRoom: i,
|
|
35
35
|
selectedPackage: r,
|
|
36
36
|
discountVouchers: v
|
|
37
37
|
} = K(ie()), { removeRoom: T } = ie();
|
|
38
38
|
function $(L) {
|
|
39
|
-
return L.reduce((
|
|
39
|
+
return L.reduce((H, { totalPrice: D }) => H + D, 0);
|
|
40
40
|
}
|
|
41
41
|
return (L, O) => (E(), R(Eo, {
|
|
42
|
-
"total-price":
|
|
42
|
+
"total-price": l(k),
|
|
43
43
|
"show-gift-card": L.showGiftCard,
|
|
44
44
|
"show-terms-notice": L.showTermsNotice,
|
|
45
|
-
"is-sidebar-loading":
|
|
46
|
-
notice:
|
|
45
|
+
"is-sidebar-loading": l(m),
|
|
46
|
+
notice: l(e)("hotel.reservationNotice")
|
|
47
47
|
}, ao({
|
|
48
48
|
form: w(() => [
|
|
49
49
|
Le(L.$slots, "form")
|
|
50
50
|
]),
|
|
51
51
|
"reservation-summary": w(() => [
|
|
52
52
|
y("li", null, [
|
|
53
|
-
y("span", null, V(
|
|
54
|
-
y("b", null, V(
|
|
53
|
+
y("span", null, V(l(e)("booking.reservation.arrival")), 1),
|
|
54
|
+
y("b", null, V(l(n) ? l(te)(l(u)) : `${l(te)(l(u))}, ${l(p) ? l(h) : l(g)}`), 1)
|
|
55
55
|
]),
|
|
56
56
|
y("li", null, [
|
|
57
|
-
y("span", null, V(
|
|
58
|
-
y("b", null, V(
|
|
57
|
+
y("span", null, V(l(e)("booking.reservation.departure")), 1),
|
|
58
|
+
y("b", null, V(l(n) ? l(te)(l(f)) : `${l(te)(l(f))}, ${l(s) ? l(c) : l(_)}`), 1)
|
|
59
59
|
]),
|
|
60
60
|
y("li", null, [
|
|
61
|
-
y("span", null, V(
|
|
62
|
-
y("b", null, V(
|
|
61
|
+
y("span", null, V(l(e)("booking.reservation.nights")), 1),
|
|
62
|
+
y("b", null, V(l(Xe)(l(u), l(f))) + " " + V(l(lo)(l(Xe)(l(u), l(f)) === 1 ? l(e)("booking.reservation.night") : l(e)("booking.reservation.nights"))), 1)
|
|
63
63
|
]),
|
|
64
|
-
|
|
65
|
-
key:
|
|
64
|
+
l(v) ? (E(!0), I(B, { key: 0 }, z(l(v), (H) => (E(), I("li", {
|
|
65
|
+
key: H.id
|
|
66
66
|
}, [
|
|
67
|
-
y("span", null, V(`${
|
|
68
|
-
y("b", null, V(
|
|
67
|
+
y("span", null, V(`${l(e)("general.discountCode")} (${H.value})`), 1),
|
|
68
|
+
y("b", null, V(H.key), 1)
|
|
69
69
|
]))), 128)) : x("", !0)
|
|
70
70
|
]),
|
|
71
71
|
"price-summary": w(() => [
|
|
72
|
-
isNaN(
|
|
73
|
-
roomGroupID:
|
|
72
|
+
isNaN(l(b)) && l(d).length > 0 ? (E(!0), I(B, { key: 0 }, z(l(d), ({
|
|
73
|
+
roomGroupID: H,
|
|
74
74
|
title: D,
|
|
75
75
|
variants: W
|
|
76
|
-
}) => (E(), I("div", { key:
|
|
76
|
+
}) => (E(), I("div", { key: H }, [
|
|
77
77
|
y("h6", null, [
|
|
78
78
|
y("span", null, V(D), 1)
|
|
79
79
|
]),
|
|
@@ -82,7 +82,7 @@ const Oo = { key: 0 }, Ho = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
82
82
|
y("li", null, [
|
|
83
83
|
y("span", null, [
|
|
84
84
|
y("span", null, [
|
|
85
|
-
We(V(
|
|
85
|
+
We(V(l(ue)(X.name)) + " ( ", 1),
|
|
86
86
|
C(Q, {
|
|
87
87
|
icon: "male",
|
|
88
88
|
type: "fas",
|
|
@@ -101,29 +101,29 @@ const Oo = { key: 0 }, Ho = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
101
101
|
])
|
|
102
102
|
]),
|
|
103
103
|
y("b", null, [
|
|
104
|
-
y("span", null, V(
|
|
104
|
+
y("span", null, V(l(oe)(U.totalPrice, l(a))), 1),
|
|
105
105
|
x("", !0)
|
|
106
106
|
])
|
|
107
107
|
]),
|
|
108
108
|
$(U.roomAddons) > 0 ? (E(), I("li", Oo, [
|
|
109
|
-
y("span", null, V(
|
|
110
|
-
y("b", null, V(
|
|
109
|
+
y("span", null, V(l(e)("booking.reservation.addons")), 1),
|
|
110
|
+
y("b", null, V(l(oe)($(U.roomAddons), l(a))), 1)
|
|
111
111
|
])) : x("", !0)
|
|
112
112
|
]))), 128))
|
|
113
113
|
]))), 128))
|
|
114
114
|
]))), 128)) : x("", !0),
|
|
115
|
-
|
|
115
|
+
l(i) && l(r) ? (E(), I("div", Ao, [
|
|
116
116
|
y("h6", null, [
|
|
117
|
-
y("span", null, V(
|
|
117
|
+
y("span", null, V(l(ue)(l(r).name)), 1)
|
|
118
118
|
]),
|
|
119
119
|
y("div", null, [
|
|
120
120
|
y("ul", null, [
|
|
121
121
|
y("li", null, [
|
|
122
122
|
y("span", null, [
|
|
123
|
-
y("span", null, V(
|
|
123
|
+
y("span", null, V(l(ue)(l(i).title)), 1)
|
|
124
124
|
]),
|
|
125
125
|
y("b", null, [
|
|
126
|
-
y("span", null, V(
|
|
126
|
+
y("span", null, V(l(oe)(l(i).extraPrice, l(a))), 1)
|
|
127
127
|
])
|
|
128
128
|
])
|
|
129
129
|
])
|
|
@@ -135,7 +135,7 @@ const Oo = { key: 0 }, Ho = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
135
135
|
]),
|
|
136
136
|
_: 2
|
|
137
137
|
}, [
|
|
138
|
-
|
|
138
|
+
l(t).addons ? {
|
|
139
139
|
name: "addons",
|
|
140
140
|
fn: w(() => [
|
|
141
141
|
Le(L.$slots, "addons")
|
|
@@ -144,7 +144,7 @@ const Oo = { key: 0 }, Ho = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
144
144
|
} : void 0
|
|
145
145
|
]), 1032, ["total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
|
|
146
146
|
}
|
|
147
|
-
}),
|
|
147
|
+
}), Ho = (o) => (mt("data-v-69fe83d8"), o = o(), gt(), o), Do = { class: "konnectio-room-config-option" }, Mo = { key: 0 }, Ro = { class: "konnectio-selected-room-config" }, Bo = { class: "konnectio-selected-room-config-people" }, zo = { key: 0 }, Wo = { class: "konnectio-selected-room-config-price" }, No = /* @__PURE__ */ Ho(() => /* @__PURE__ */ y("span", null, null, -1)), Fo = /* @__PURE__ */ j({
|
|
148
148
|
__name: "RoomConfigField",
|
|
149
149
|
props: {
|
|
150
150
|
modelValue: {},
|
|
@@ -156,24 +156,24 @@ const Oo = { key: 0 }, Ho = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
156
156
|
emits: ["update:modelValue"],
|
|
157
157
|
setup(o, { emit: e }) {
|
|
158
158
|
const { t } = ne(), { currency: n } = K(he()), p = e, s = o;
|
|
159
|
-
function h(
|
|
160
|
-
p("update:modelValue",
|
|
159
|
+
function h(a) {
|
|
160
|
+
p("update:modelValue", a);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const c = q({
|
|
163
163
|
get: () => s.modelValue,
|
|
164
|
-
set: (
|
|
164
|
+
set: (a) => h(a)
|
|
165
165
|
});
|
|
166
|
-
return (
|
|
167
|
-
modelValue:
|
|
168
|
-
"onUpdate:modelValue":
|
|
169
|
-
label:
|
|
166
|
+
return (a, u) => (E(), R(Ee, {
|
|
167
|
+
modelValue: c.value,
|
|
168
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => c.value = f),
|
|
169
|
+
label: a.label,
|
|
170
170
|
placeholder: "Select guest configuration",
|
|
171
171
|
labelKey: "label",
|
|
172
172
|
valueKey: "value",
|
|
173
173
|
"icon-placement": "label",
|
|
174
|
-
options:
|
|
175
|
-
readonly:
|
|
176
|
-
required:
|
|
174
|
+
options: a.options,
|
|
175
|
+
readonly: a.readonly,
|
|
176
|
+
required: a.required,
|
|
177
177
|
searchable: !1
|
|
178
178
|
}, {
|
|
179
179
|
option: w(({ data: f }) => [
|
|
@@ -194,7 +194,7 @@ const Oo = { key: 0 }, Ho = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
194
194
|
y("span", null, V(`${f.children}`), 1)
|
|
195
195
|
])) : x("", !0)
|
|
196
196
|
]),
|
|
197
|
-
y("span", null, V(`(${
|
|
197
|
+
y("span", null, V(`(${l(oe)(f.price, l(n))})`), 1)
|
|
198
198
|
])
|
|
199
199
|
]),
|
|
200
200
|
"selected-option": w(({ data: f }) => [
|
|
@@ -202,16 +202,16 @@ const Oo = { key: 0 }, Ho = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
202
202
|
y("div", Bo, [
|
|
203
203
|
y("div", null, [
|
|
204
204
|
x("", !0),
|
|
205
|
-
y("span", null, V(`${f.adults} ${f.adults === 1 ?
|
|
205
|
+
y("span", null, V(`${f.adults} ${f.adults === 1 ? l(t)("general.adult") : l(t)("general.adults")}`), 1)
|
|
206
206
|
]),
|
|
207
207
|
f.children > 0 ? (E(), I("div", zo, [
|
|
208
208
|
x("", !0),
|
|
209
|
-
y("span", null, V(`& ${f.children} ${f.children === 1 ?
|
|
209
|
+
y("span", null, V(`& ${f.children} ${f.children === 1 ? l(t)("general.child") : l(t)("general.children")}`), 1)
|
|
210
210
|
])) : x("", !0)
|
|
211
211
|
]),
|
|
212
212
|
y("div", Wo, [
|
|
213
213
|
No,
|
|
214
|
-
We(" " + V(`(${
|
|
214
|
+
We(" " + V(`(${l(oe)(f.price, l(n))})`), 1)
|
|
215
215
|
])
|
|
216
216
|
])
|
|
217
217
|
]),
|
|
@@ -237,17 +237,17 @@ const Ko = /* @__PURE__ */ j({
|
|
|
237
237
|
const s = q(() => t.room.rates.map((r) => ({
|
|
238
238
|
label: r.name,
|
|
239
239
|
value: r.id
|
|
240
|
-
}))), { hideAvailableRoomAmount: h } = K(he()), { roomSelect:
|
|
240
|
+
}))), { hideAvailableRoomAmount: h } = K(he()), { roomSelect: c } = K(ie()), { addToCart: a, removeFromCart: u } = vt(), f = (r, v) => t.room.rates.find((T) => T.id === r)?.occupantRates.find((T) => T.index === v), g = q(() => t.room.rates.reduce(
|
|
241
241
|
(r, v) => r < v.rackRate ? r : v.rackRate,
|
|
242
242
|
1 / 0
|
|
243
|
-
)), _ = q(() => t.room.rates.every((r) => r.isBreakfastIncluded === !0)),
|
|
243
|
+
)), _ = q(() => t.room.rates.every((r) => r.isBreakfastIncluded === !0)), d = (r, v) => f(r, v) ? f(r, v)?.rooms : null, b = (r) => t.room.rates.length > 0 ? t.room.rates.find((v) => v.id === r)?.occupantRates.map((v) => ({
|
|
244
244
|
value: v.index,
|
|
245
245
|
price: v.totalPrice,
|
|
246
246
|
adults: v.adultsCount,
|
|
247
247
|
children: v.childrenCount,
|
|
248
248
|
hasBreakfast: v.hasBreakfast
|
|
249
249
|
})) || [] : [], k = q(() => t.room.rates.length > 1);
|
|
250
|
-
function
|
|
250
|
+
function m() {
|
|
251
251
|
k.value ? n.value.push({
|
|
252
252
|
id: void 0,
|
|
253
253
|
config: [{
|
|
@@ -265,18 +265,18 @@ const Ko = /* @__PURE__ */ j({
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
Ue(() => {
|
|
268
|
-
|
|
268
|
+
m();
|
|
269
269
|
});
|
|
270
270
|
const i = q(() => JSON.parse(JSON.stringify(n.value)));
|
|
271
271
|
return be(i, (r, v) => {
|
|
272
272
|
v.length > 0 && r.forEach((T, $) => {
|
|
273
273
|
T.config.forEach((L, O) => {
|
|
274
|
-
const
|
|
275
|
-
|
|
274
|
+
const H = L.units, D = v[$].config[O].units;
|
|
275
|
+
H !== D && (H > D ? (n.value[$].config[O].addons.push({}), a({
|
|
276
276
|
id: t.room.id,
|
|
277
277
|
name: t.room.title,
|
|
278
278
|
value: t.room.rates[$].rackRate
|
|
279
|
-
})) : (n.value[$].config[O].addons.pop(),
|
|
279
|
+
})) : (n.value[$].config[O].addons.pop(), u({
|
|
280
280
|
id: t.room.id,
|
|
281
281
|
name: t.room.title,
|
|
282
282
|
value: t.room.rates[$].rackRate
|
|
@@ -284,7 +284,7 @@ const Ko = /* @__PURE__ */ j({
|
|
|
284
284
|
});
|
|
285
285
|
});
|
|
286
286
|
}, { deep: !0 }), be(n, () => {
|
|
287
|
-
|
|
287
|
+
c.value[t.room.id] = n.value;
|
|
288
288
|
}, { deep: !0 }), (r, v) => (E(), R(Ge, {
|
|
289
289
|
"listing-id": r.room.id,
|
|
290
290
|
gallery: r.room.images,
|
|
@@ -292,7 +292,7 @@ const Ko = /* @__PURE__ */ j({
|
|
|
292
292
|
description: r.room.description,
|
|
293
293
|
layout: r.layout,
|
|
294
294
|
facilities: r.room.facilities,
|
|
295
|
-
"prices-from":
|
|
295
|
+
"prices-from": g.value,
|
|
296
296
|
"includes-breakfast": _.value
|
|
297
297
|
}, {
|
|
298
298
|
action: w(() => [
|
|
@@ -305,8 +305,8 @@ const Ko = /* @__PURE__ */ j({
|
|
|
305
305
|
key: 0,
|
|
306
306
|
modelValue: T.id,
|
|
307
307
|
"onUpdate:modelValue": (L) => T.id = L,
|
|
308
|
-
label:
|
|
309
|
-
placeholder:
|
|
308
|
+
label: l(e)("hotel.roomVariant"),
|
|
309
|
+
placeholder: l(e)("hotel.chooseARoomVariant"),
|
|
310
310
|
options: s.value,
|
|
311
311
|
searchable: !1
|
|
312
312
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : x("", !0),
|
|
@@ -318,33 +318,33 @@ const Ko = /* @__PURE__ */ j({
|
|
|
318
318
|
key: L,
|
|
319
319
|
class: "booking-availability-listing-action-selective-i"
|
|
320
320
|
}, [
|
|
321
|
-
T.id === L ? (E(!0), I(B, { key: 0 }, z(T.config, (
|
|
321
|
+
T.id === L ? (E(!0), I(B, { key: 0 }, z(T.config, (H, D) => (E(), I("div", {
|
|
322
322
|
key: D,
|
|
323
323
|
class: "booking-availability-listing-action-selective"
|
|
324
324
|
}, [
|
|
325
325
|
y("ul", jo, [
|
|
326
326
|
C(qo, {
|
|
327
|
-
modelValue:
|
|
328
|
-
"onUpdate:modelValue": (W) =>
|
|
327
|
+
modelValue: H.id,
|
|
328
|
+
"onUpdate:modelValue": (W) => H.id = W,
|
|
329
329
|
icon: "male",
|
|
330
330
|
"icon-type": "fas",
|
|
331
|
-
label:
|
|
332
|
-
description: `${
|
|
331
|
+
label: l(e)("general.guests"),
|
|
332
|
+
description: `${l(e)("general.maximumGuests")}: ${O}`,
|
|
333
333
|
options: b(L),
|
|
334
334
|
readonly: !(b(L).length > 1)
|
|
335
335
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
|
|
336
336
|
]),
|
|
337
337
|
y("ul", Yo, [
|
|
338
338
|
C(yt, {
|
|
339
|
-
modelValue:
|
|
340
|
-
"onUpdate:modelValue": (W) =>
|
|
341
|
-
description:
|
|
339
|
+
modelValue: H.units,
|
|
340
|
+
"onUpdate:modelValue": (W) => H.units = W,
|
|
341
|
+
description: l(h) ? void 0 : `${l(e)("booking.availability.availableUnits")}: ${d(T.id, H.id)}`,
|
|
342
342
|
icon: "house",
|
|
343
343
|
"icon-type": "fas",
|
|
344
344
|
"icon-placement": "label",
|
|
345
|
-
label:
|
|
345
|
+
label: l(e)("booking.availability.units"),
|
|
346
346
|
minValue: 0,
|
|
347
|
-
"max-value":
|
|
347
|
+
"max-value": d(L, H.id) || 1 / 0
|
|
348
348
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
|
|
349
349
|
]),
|
|
350
350
|
x("", !0)
|
|
@@ -367,38 +367,38 @@ const Ko = /* @__PURE__ */ j({
|
|
|
367
367
|
},
|
|
368
368
|
setup(o) {
|
|
369
369
|
const { t: e } = ne(), { templateID: t, roomGroupID: n } = K(ie()), { currency: p } = K(he()), { clearRoomSelection: s } = ie(), h = o;
|
|
370
|
-
function
|
|
371
|
-
t.value = h.templateId, n.value =
|
|
370
|
+
function c(a) {
|
|
371
|
+
t.value = h.templateId, n.value = a, s(), h.callback(2);
|
|
372
372
|
}
|
|
373
|
-
return (
|
|
374
|
-
title:
|
|
375
|
-
subtitle:
|
|
373
|
+
return (a, u) => (E(), R(To, {
|
|
374
|
+
title: a.title,
|
|
375
|
+
subtitle: l(e)("booking.availability.selectATemplateRoom")
|
|
376
376
|
}, {
|
|
377
377
|
default: w(() => [
|
|
378
378
|
y("div", Jo, [
|
|
379
379
|
y("div", Xo, [
|
|
380
|
-
(E(!0), I(B, null, z(
|
|
380
|
+
(E(!0), I(B, null, z(a.roomGroups, ({
|
|
381
381
|
id: f,
|
|
382
|
-
title:
|
|
382
|
+
title: g,
|
|
383
383
|
description: _,
|
|
384
|
-
images:
|
|
384
|
+
images: d,
|
|
385
385
|
facilities: b,
|
|
386
386
|
extraPrice: k
|
|
387
387
|
}) => (E(), R(Ge, {
|
|
388
388
|
key: f,
|
|
389
389
|
"listing-id": f,
|
|
390
|
-
name:
|
|
390
|
+
name: g,
|
|
391
391
|
description: _,
|
|
392
392
|
facilities: b,
|
|
393
|
-
gallery:
|
|
393
|
+
gallery: d,
|
|
394
394
|
"includes-breakfast": !1,
|
|
395
395
|
"hide-info-button": !0
|
|
396
396
|
}, {
|
|
397
397
|
action: w(() => [
|
|
398
398
|
y("div", null, [
|
|
399
399
|
C(le, {
|
|
400
|
-
onClickEvent: (
|
|
401
|
-
label: `${
|
|
400
|
+
onClickEvent: (m) => c(f),
|
|
401
|
+
label: `${l(e)("booking.availability.selectThisRoom")} (${l(oe)(k, l(p))})`,
|
|
402
402
|
"full-width": ""
|
|
403
403
|
}, null, 8, ["onClickEvent", "label"])
|
|
404
404
|
])
|
|
@@ -424,7 +424,7 @@ const Ko = /* @__PURE__ */ j({
|
|
|
424
424
|
},
|
|
425
425
|
setup(o) {
|
|
426
426
|
const { t: e } = ne(), t = o, n = q(() => t.roomGroups.reduce(
|
|
427
|
-
(
|
|
427
|
+
(a, u) => a < u.extraPrice ? a : u.extraPrice,
|
|
428
428
|
1 / 0
|
|
429
429
|
)), p = q(() => [{
|
|
430
430
|
large: t.image.url,
|
|
@@ -435,30 +435,30 @@ const Ko = /* @__PURE__ */ j({
|
|
|
435
435
|
function h() {
|
|
436
436
|
s.value = !0;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
t.callback(
|
|
438
|
+
function c(a) {
|
|
439
|
+
t.callback(a), s.value = !1;
|
|
440
440
|
}
|
|
441
|
-
return (
|
|
442
|
-
"listing-id":
|
|
443
|
-
name:
|
|
444
|
-
description:
|
|
441
|
+
return (a, u) => (E(), R(Ge, {
|
|
442
|
+
"listing-id": a.id,
|
|
443
|
+
name: a.name,
|
|
444
|
+
description: a.description,
|
|
445
445
|
gallery: p.value,
|
|
446
|
-
layout:
|
|
446
|
+
layout: l(co).Template,
|
|
447
447
|
"includes-breakfast": !1,
|
|
448
448
|
"hide-info-button": !1,
|
|
449
449
|
"prices-from": n.value
|
|
450
450
|
}, {
|
|
451
451
|
description: w(() => [
|
|
452
|
-
|
|
452
|
+
a.description ? (E(), I("p", {
|
|
453
453
|
key: 0,
|
|
454
|
-
innerHTML:
|
|
454
|
+
innerHTML: l(uo)(a.description)
|
|
455
455
|
}, null, 8, tn)) : x("", !0)
|
|
456
456
|
]),
|
|
457
457
|
action: w(() => [
|
|
458
458
|
y("div", null, [
|
|
459
459
|
C(le, {
|
|
460
460
|
onClickEvent: h,
|
|
461
|
-
label:
|
|
461
|
+
label: l(e)("booking.availability.selectPackage"),
|
|
462
462
|
"full-width": ""
|
|
463
463
|
}, null, 8, ["label"])
|
|
464
464
|
])
|
|
@@ -466,11 +466,11 @@ const Ko = /* @__PURE__ */ j({
|
|
|
466
466
|
default: w(() => [
|
|
467
467
|
C(en, {
|
|
468
468
|
modelValue: s.value,
|
|
469
|
-
"onUpdate:modelValue":
|
|
470
|
-
title:
|
|
471
|
-
"template-id":
|
|
472
|
-
roomGroups:
|
|
473
|
-
callback:
|
|
469
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => s.value = f),
|
|
470
|
+
title: a.name,
|
|
471
|
+
"template-id": a.id,
|
|
472
|
+
roomGroups: a.roomGroups,
|
|
473
|
+
callback: c
|
|
474
474
|
}, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
|
|
475
475
|
]),
|
|
476
476
|
_: 1
|
|
@@ -508,9 +508,9 @@ const Ko = /* @__PURE__ */ j({
|
|
|
508
508
|
const s = ce(n.modelValue);
|
|
509
509
|
return be(s, (h) => {
|
|
510
510
|
p(h);
|
|
511
|
-
}), (h,
|
|
511
|
+
}), (h, c) => (E(), R(Po, {
|
|
512
512
|
modelValue: s.value,
|
|
513
|
-
"onUpdate:modelValue":
|
|
513
|
+
"onUpdate:modelValue": c[0] || (c[0] = (a) => s.value = a),
|
|
514
514
|
type: "time",
|
|
515
515
|
label: h.label,
|
|
516
516
|
id: h.id,
|
|
@@ -536,35 +536,35 @@ const Ko = /* @__PURE__ */ j({
|
|
|
536
536
|
emits: ["update:modelValue"],
|
|
537
537
|
setup(o, { emit: e }) {
|
|
538
538
|
const { t } = ne(), n = e, p = o;
|
|
539
|
-
function s(
|
|
540
|
-
n("update:modelValue",
|
|
539
|
+
function s(c) {
|
|
540
|
+
n("update:modelValue", c);
|
|
541
541
|
}
|
|
542
542
|
const h = q({
|
|
543
543
|
get: () => p.modelValue,
|
|
544
|
-
set: (
|
|
544
|
+
set: (c) => s(c)
|
|
545
545
|
});
|
|
546
|
-
return (
|
|
546
|
+
return (c, a) => (E(), R(Ee, {
|
|
547
547
|
modelValue: h.value,
|
|
548
|
-
"onUpdate:modelValue":
|
|
549
|
-
label:
|
|
550
|
-
placeholder:
|
|
548
|
+
"onUpdate:modelValue": a[0] || (a[0] = (u) => h.value = u),
|
|
549
|
+
label: c.label,
|
|
550
|
+
placeholder: l(t)("booking.reservation.countryPlaceholder"),
|
|
551
551
|
labelKey: "name",
|
|
552
552
|
valueKey: "id",
|
|
553
|
-
options:
|
|
554
|
-
required:
|
|
553
|
+
options: c.options,
|
|
554
|
+
required: c.required
|
|
555
555
|
}, {
|
|
556
|
-
option: w(({ data:
|
|
556
|
+
option: w(({ data: u }) => [
|
|
557
557
|
y("i", {
|
|
558
|
-
class: ke(["konnectio-flag-icon",
|
|
558
|
+
class: ke(["konnectio-flag-icon", u.iso])
|
|
559
559
|
}, null, 2),
|
|
560
|
-
y("span", null, V(
|
|
560
|
+
y("span", null, V(u.name), 1)
|
|
561
561
|
]),
|
|
562
|
-
"selected-option": w(({ data:
|
|
562
|
+
"selected-option": w(({ data: u }) => [
|
|
563
563
|
y("div", rn, [
|
|
564
564
|
y("i", {
|
|
565
|
-
class: ke(["konnectio-flag-icon",
|
|
565
|
+
class: ke(["konnectio-flag-icon", u.iso])
|
|
566
566
|
}, null, 2),
|
|
567
|
-
y("span", null, V(
|
|
567
|
+
y("span", null, V(u.name), 1)
|
|
568
568
|
])
|
|
569
569
|
]),
|
|
570
570
|
_: 1
|
|
@@ -588,20 +588,20 @@ const Ko = /* @__PURE__ */ j({
|
|
|
588
588
|
get: () => n.modelValue,
|
|
589
589
|
set: (h) => p(h)
|
|
590
590
|
});
|
|
591
|
-
return (h,
|
|
591
|
+
return (h, c) => (E(), R(bt, {
|
|
592
592
|
label: h.label,
|
|
593
593
|
type: "multi-radio"
|
|
594
594
|
}, {
|
|
595
595
|
default: w(() => [
|
|
596
596
|
y("ul", ln, [
|
|
597
|
-
(E(!0), I(B, null, z(h.checkboxes, ({ label:
|
|
597
|
+
(E(!0), I(B, null, z(h.checkboxes, ({ label: a, value: u }, f) => (E(), I("li", { key: f }, [
|
|
598
598
|
C(Ne, {
|
|
599
599
|
modelValue: s.value,
|
|
600
|
-
"onUpdate:modelValue":
|
|
601
|
-
label:
|
|
600
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => s.value = g),
|
|
601
|
+
label: a,
|
|
602
602
|
name: h.name,
|
|
603
603
|
type: "radio",
|
|
604
|
-
val:
|
|
604
|
+
val: u
|
|
605
605
|
}, null, 8, ["modelValue", "label", "name", "val"])
|
|
606
606
|
]))), 128))
|
|
607
607
|
])
|
|
@@ -632,81 +632,81 @@ const Ko = /* @__PURE__ */ j({
|
|
|
632
632
|
emits: ["update:modelValue", "update:title"],
|
|
633
633
|
setup(o, { emit: e }) {
|
|
634
634
|
const t = o, n = e, p = t.id || Ze(), s = ce(""), h = ce(2);
|
|
635
|
-
function
|
|
635
|
+
function c() {
|
|
636
636
|
n("update:modelValue", s.value);
|
|
637
637
|
}
|
|
638
|
-
be(h, (
|
|
639
|
-
n("update:title",
|
|
638
|
+
be(h, (u) => {
|
|
639
|
+
n("update:title", u);
|
|
640
640
|
});
|
|
641
|
-
const { t:
|
|
641
|
+
const { t: a } = ne();
|
|
642
642
|
return Ue(() => {
|
|
643
643
|
t.modelValue && (s.value = t.modelValue), t.title && (h.value = t.title);
|
|
644
|
-
}), (
|
|
645
|
-
label:
|
|
646
|
-
id:
|
|
647
|
-
required:
|
|
644
|
+
}), (u, f) => (E(), R(bt, {
|
|
645
|
+
label: u.label,
|
|
646
|
+
id: l(p),
|
|
647
|
+
required: u.required,
|
|
648
648
|
type: "fresh-booking-name-field",
|
|
649
|
-
readonly:
|
|
650
|
-
limit:
|
|
649
|
+
readonly: u.readonly,
|
|
650
|
+
limit: u.limit
|
|
651
651
|
}, {
|
|
652
652
|
default: w(() => [
|
|
653
653
|
y("div", {
|
|
654
654
|
class: ke([
|
|
655
655
|
"fresh-booking-name-input",
|
|
656
|
-
{ "no-title":
|
|
656
|
+
{ "no-title": u.excludeTitle }
|
|
657
657
|
])
|
|
658
658
|
}, [
|
|
659
|
-
|
|
659
|
+
u.excludeTitle ? x("", !0) : (E(), R(Ee, {
|
|
660
660
|
key: 0,
|
|
661
661
|
modelValue: h.value,
|
|
662
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
663
|
-
id:
|
|
664
|
-
icon:
|
|
665
|
-
"icon-color":
|
|
666
|
-
"icon-type":
|
|
662
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => h.value = g),
|
|
663
|
+
id: l(Ze)(),
|
|
664
|
+
icon: u.icon,
|
|
665
|
+
"icon-color": u.iconColor,
|
|
666
|
+
"icon-type": u.iconType,
|
|
667
667
|
options: [
|
|
668
668
|
{
|
|
669
|
-
label: a
|
|
669
|
+
label: l(a)("booking.reservation.noNameTitle"),
|
|
670
670
|
value: 1
|
|
671
671
|
},
|
|
672
672
|
{
|
|
673
|
-
label: a
|
|
673
|
+
label: l(a)("booking.reservation.nameTitleMr"),
|
|
674
674
|
value: 2
|
|
675
675
|
},
|
|
676
676
|
{
|
|
677
|
-
label: a
|
|
677
|
+
label: l(a)("booking.reservation.nameTitleMs"),
|
|
678
678
|
value: 3
|
|
679
679
|
},
|
|
680
680
|
{
|
|
681
|
-
label: a
|
|
681
|
+
label: l(a)("booking.reservation.nameTitleMrs"),
|
|
682
682
|
value: 4
|
|
683
683
|
},
|
|
684
684
|
{
|
|
685
|
-
label: a
|
|
685
|
+
label: l(a)("booking.reservation.nameTitleDr"),
|
|
686
686
|
value: 5
|
|
687
687
|
}
|
|
688
688
|
],
|
|
689
|
-
readonly:
|
|
689
|
+
readonly: u.readonly,
|
|
690
690
|
"hide-button": "",
|
|
691
|
-
"input-style":
|
|
691
|
+
"input-style": u.inputStyle,
|
|
692
692
|
searchable: !1
|
|
693
693
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
|
|
694
694
|
C(ee, {
|
|
695
695
|
modelValue: s.value,
|
|
696
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
696
|
+
"onUpdate:modelValue": f[1] || (f[1] = (g) => s.value = g),
|
|
697
697
|
type: "text",
|
|
698
698
|
name: "name",
|
|
699
699
|
autocomplete: "name",
|
|
700
|
-
id:
|
|
701
|
-
icon:
|
|
702
|
-
"icon-color":
|
|
703
|
-
"icon-type":
|
|
704
|
-
placeholder:
|
|
705
|
-
required:
|
|
706
|
-
readonly:
|
|
707
|
-
limit:
|
|
708
|
-
onInput: f[2] || (f[2] = (
|
|
709
|
-
"input-style":
|
|
700
|
+
id: l(p),
|
|
701
|
+
icon: u.excludeTitle ? u.icon : void 0,
|
|
702
|
+
"icon-color": u.iconColor,
|
|
703
|
+
"icon-type": u.iconType,
|
|
704
|
+
placeholder: u.placeholder,
|
|
705
|
+
required: u.required,
|
|
706
|
+
readonly: u.readonly,
|
|
707
|
+
limit: u.limit,
|
|
708
|
+
onInput: f[2] || (f[2] = (g) => c()),
|
|
709
|
+
"input-style": u.inputStyle
|
|
710
710
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
|
|
711
711
|
], 2)
|
|
712
712
|
]),
|
|
@@ -791,7 +791,7 @@ const Pn = { key: 1 }, xn = { key: 0 }, wn = {
|
|
|
791
791
|
}, On = {
|
|
792
792
|
key: 0,
|
|
793
793
|
class: "konnectio-hotel-availability-title"
|
|
794
|
-
},
|
|
794
|
+
}, An = { id: "booking-availability-packages-wrapper" }, Hn = { key: 1 }, Dn = {
|
|
795
795
|
key: 0,
|
|
796
796
|
class: "konnectio-hotel-availability-title"
|
|
797
797
|
}, Mn = { id: "booking-availability-listings" }, Rn = {
|
|
@@ -828,16 +828,16 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
828
828
|
areListingsLoading: p,
|
|
829
829
|
isPaymentLoading: s,
|
|
830
830
|
isReservationFormFilled: h,
|
|
831
|
-
travelingFor:
|
|
832
|
-
arrivalTime:
|
|
833
|
-
departureTime:
|
|
831
|
+
travelingFor: c,
|
|
832
|
+
arrivalTime: a,
|
|
833
|
+
departureTime: u,
|
|
834
834
|
name: f,
|
|
835
|
-
nameTitle:
|
|
835
|
+
nameTitle: g,
|
|
836
836
|
email: _,
|
|
837
|
-
phone:
|
|
837
|
+
phone: d,
|
|
838
838
|
firmName: b,
|
|
839
839
|
postal: k,
|
|
840
|
-
city:
|
|
840
|
+
city: m,
|
|
841
841
|
address: i,
|
|
842
842
|
country: r,
|
|
843
843
|
remark: v,
|
|
@@ -845,7 +845,7 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
845
845
|
newsMails: $,
|
|
846
846
|
roomSelect: L,
|
|
847
847
|
roomDisplay: O,
|
|
848
|
-
hasValidRoomSelection:
|
|
848
|
+
hasValidRoomSelection: H,
|
|
849
849
|
availabilityData: D,
|
|
850
850
|
selectionHasNoAddons: W
|
|
851
851
|
} = K(ie()), {
|
|
@@ -858,8 +858,8 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
858
858
|
arrivalLatest: xt,
|
|
859
859
|
departureEarliest: wt,
|
|
860
860
|
departureLatest: Ot,
|
|
861
|
-
enableTracking:
|
|
862
|
-
arrivalDefault:
|
|
861
|
+
enableTracking: At,
|
|
862
|
+
arrivalDefault: Ht,
|
|
863
863
|
departureDefault: Dt,
|
|
864
864
|
hideArrivalDepartureInputs: Mt,
|
|
865
865
|
disableArrivalUserSelection: Ce,
|
|
@@ -875,7 +875,7 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
875
875
|
resetDiscountVoucher: Gt,
|
|
876
876
|
createReservation: jt
|
|
877
877
|
} = ie(), Yt = ce(!0), Kt = q(() => {
|
|
878
|
-
const
|
|
878
|
+
const A = [
|
|
879
879
|
{
|
|
880
880
|
label: e("booking.reservation.business"),
|
|
881
881
|
value: "Business"
|
|
@@ -885,13 +885,13 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
885
885
|
value: "Pleasure"
|
|
886
886
|
}
|
|
887
887
|
];
|
|
888
|
-
return zt.value ||
|
|
888
|
+
return zt.value || A.push({
|
|
889
889
|
label: e("booking.reservation.bleasure"),
|
|
890
890
|
value: "Bleasure"
|
|
891
|
-
}),
|
|
891
|
+
}), A;
|
|
892
892
|
}), Qt = q(() => {
|
|
893
|
-
const
|
|
894
|
-
|
|
893
|
+
const A = D.value.roomGroups.slice();
|
|
894
|
+
A.forEach((G) => {
|
|
895
895
|
G.pricesFrom = G.rates.reduce(
|
|
896
896
|
(M, S) => M < S.rackRate ? M : S.rackRate,
|
|
897
897
|
1 / 0
|
|
@@ -900,7 +900,7 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
900
900
|
function P(G, M) {
|
|
901
901
|
return Yt.value === !0 ? G.pricesFrom > M.pricesFrom ? -1 : 1 : G.pricesFrom > M.pricesFrom ? 1 : -1;
|
|
902
902
|
}
|
|
903
|
-
return
|
|
903
|
+
return A.sort(P);
|
|
904
904
|
}), Jt = q(() => [[
|
|
905
905
|
parseInt(Qe.value.split(":")[0]),
|
|
906
906
|
parseInt(xt.value.split(":")[0])
|
|
@@ -908,36 +908,36 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
908
908
|
parseInt(wt.value.split(":")[0]),
|
|
909
909
|
parseInt(Ot.value.split(":")[0])
|
|
910
910
|
]]);
|
|
911
|
-
function Je(
|
|
912
|
-
W.value ?
|
|
911
|
+
function Je(A) {
|
|
912
|
+
W.value ? A(2) : A(), Gt();
|
|
913
913
|
}
|
|
914
|
-
function Zt(
|
|
915
|
-
re.value = new Date(P), X.value = new Date(
|
|
914
|
+
function Zt(A, P) {
|
|
915
|
+
re.value = new Date(P), X.value = new Date(A), location.reload();
|
|
916
916
|
}
|
|
917
|
-
async function eo(
|
|
918
|
-
await jt(
|
|
917
|
+
async function eo(A) {
|
|
918
|
+
await jt(A);
|
|
919
919
|
}
|
|
920
|
-
function to(
|
|
921
|
-
|
|
920
|
+
function to(A) {
|
|
921
|
+
At.value && Ft(), W.value ? A(2) : A();
|
|
922
922
|
}
|
|
923
923
|
function oo() {
|
|
924
|
-
|
|
924
|
+
a.value === "" && (a.value = Ht.value), u.value === "" && (u.value = Dt.value);
|
|
925
925
|
}
|
|
926
926
|
return Ue(() => {
|
|
927
927
|
qt(), oo();
|
|
928
|
-
}), (
|
|
928
|
+
}), (A, P) => (E(), R(ho, { styling: A.styling }, {
|
|
929
929
|
default: w(() => [
|
|
930
930
|
(E(), R(fo, null, {
|
|
931
931
|
default: w(() => [
|
|
932
932
|
C(go, {
|
|
933
933
|
id: "fresh-booking-hotel-module",
|
|
934
|
-
"access-token":
|
|
934
|
+
"access-token": A.accessToken,
|
|
935
935
|
type: "hotel"
|
|
936
936
|
}, {
|
|
937
937
|
default: w(() => [
|
|
938
938
|
C(Io, {
|
|
939
|
-
layout:
|
|
940
|
-
onReset:
|
|
939
|
+
layout: A.headerLayout,
|
|
940
|
+
onReset: l(Ut)
|
|
941
941
|
}, {
|
|
942
942
|
availability: w(({ next: G }) => [
|
|
943
943
|
C(Pe, null, {
|
|
@@ -947,23 +947,23 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
947
947
|
C(Lo, { booking: !0 })
|
|
948
948
|
]),
|
|
949
949
|
x("", !0),
|
|
950
|
-
|
|
950
|
+
l(p) ? (E(), I("div", qn, [
|
|
951
951
|
C(de),
|
|
952
952
|
C(de),
|
|
953
953
|
C(de)
|
|
954
954
|
])) : (E(), I("div", Pn, [
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
955
|
+
l(D).roomGroups.length > 0 || l(D).templates.length > 0 ? (E(), I("div", xn, [
|
|
956
|
+
l(D).templates.length > 0 && A.onlyShow !== "rooms" ? (E(), I("div", wn, [
|
|
957
|
+
A.onlyShow !== "packages" ? (E(), I("h2", On, [
|
|
958
958
|
C(Q, {
|
|
959
959
|
icon: "box",
|
|
960
960
|
type: "fal",
|
|
961
961
|
color: "header"
|
|
962
962
|
}),
|
|
963
|
-
y("span", null, V(
|
|
963
|
+
y("span", null, V(l(e)("booking.availability.packagesTitle")), 1)
|
|
964
964
|
])) : x("", !0),
|
|
965
|
-
y("ul",
|
|
966
|
-
(E(!0), I(B, null, z(
|
|
965
|
+
y("ul", An, [
|
|
966
|
+
(E(!0), I(B, null, z(l(D).templates, ({
|
|
967
967
|
id: M,
|
|
968
968
|
name: S,
|
|
969
969
|
templateRoomGroups: se,
|
|
@@ -982,14 +982,14 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
982
982
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback"]))), 128))
|
|
983
983
|
])
|
|
984
984
|
])) : x("", !0),
|
|
985
|
-
|
|
986
|
-
|
|
985
|
+
l(D).roomGroups.length > 0 && A.onlyShow !== "packages" ? (E(), I("div", Hn, [
|
|
986
|
+
l(D).templates.length > 0 && A.onlyShow !== "rooms" ? (E(), I("h2", Dn, [
|
|
987
987
|
C(Q, {
|
|
988
988
|
icon: "house",
|
|
989
989
|
type: "fal",
|
|
990
990
|
color: "header"
|
|
991
991
|
}),
|
|
992
|
-
y("span", null, V(
|
|
992
|
+
y("span", null, V(l(e)("booking.availability.roomsTitle")), 1)
|
|
993
993
|
])) : x("", !0),
|
|
994
994
|
y("ul", Mn, [
|
|
995
995
|
(E(!0), I(B, null, z(Qt.value, (M, S) => (E(), R(Qo, {
|
|
@@ -998,11 +998,11 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
998
998
|
}, null, 8, ["room"]))), 128))
|
|
999
999
|
])
|
|
1000
1000
|
])) : x("", !0),
|
|
1001
|
-
(
|
|
1002
|
-
y("span", null, V(
|
|
1001
|
+
(l(D).templates.length === 0 && A.onlyShow !== "rooms" || l(D).roomGroups.length === 0 && A.onlyShow !== "packages") && (A.onlyShow === "rooms" || A.onlyShow === "packages") ? (E(), I("div", Rn, [
|
|
1002
|
+
y("span", null, V(l(e)("booking.availability.nothingAvailable")), 1)
|
|
1003
1003
|
])) : x("", !0)
|
|
1004
|
-
])) :
|
|
1005
|
-
y("span", null, V(
|
|
1004
|
+
])) : l(D).nextAvailableDates.length === 0 ? (E(), I("div", Bn, [
|
|
1005
|
+
y("span", null, V(l(e)("booking.availability.nothingAvailable")), 1)
|
|
1006
1006
|
])) : (E(), I("div", zn, [
|
|
1007
1007
|
y("h2", Wn, [
|
|
1008
1008
|
C(Q, {
|
|
@@ -1010,14 +1010,14 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1010
1010
|
type: "fal",
|
|
1011
1011
|
color: "header"
|
|
1012
1012
|
}),
|
|
1013
|
-
y("span", null, V(
|
|
1013
|
+
y("span", null, V(l(e)("booking.availability.nextAvailableDates")), 1)
|
|
1014
1014
|
]),
|
|
1015
1015
|
y("ul", Nn, [
|
|
1016
|
-
(E(!0), I(B, null, z(
|
|
1016
|
+
(E(!0), I(B, null, z(l(D).nextAvailableDates, (M, S) => (E(), I("li", { key: S }, [
|
|
1017
1017
|
y("h3", {
|
|
1018
|
-
title: `${
|
|
1018
|
+
title: `${l(te)(M.fromDate)} - ${l(te)(M.toDate)}`
|
|
1019
1019
|
}, [
|
|
1020
|
-
y("span", null, V(`${
|
|
1020
|
+
y("span", null, V(`${l(te)(M.fromDate)} - ${l(te)(M.toDate)}`), 1)
|
|
1021
1021
|
], 8, Fn),
|
|
1022
1022
|
y("ul", null, [
|
|
1023
1023
|
x("", !0),
|
|
@@ -1027,11 +1027,11 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1027
1027
|
type: "fal",
|
|
1028
1028
|
color: "header"
|
|
1029
1029
|
}),
|
|
1030
|
-
y("span", null, V(
|
|
1030
|
+
y("span", null, V(l(e)("booking.availability.pricesFrom")) + ": " + V(l(oe)(M.priceStartFrom, l(U))), 1)
|
|
1031
1031
|
])
|
|
1032
1032
|
]),
|
|
1033
1033
|
C(le, {
|
|
1034
|
-
label:
|
|
1034
|
+
label: l(e)("booking.availability.selectDates"),
|
|
1035
1035
|
"full-width": "",
|
|
1036
1036
|
onClickEvent: (se) => Zt(M.fromDate, M.toDate)
|
|
1037
1037
|
}, null, 8, ["label", "onClickEvent"])
|
|
@@ -1043,8 +1043,8 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1043
1043
|
]),
|
|
1044
1044
|
navigation: w(() => [
|
|
1045
1045
|
C(le, {
|
|
1046
|
-
label:
|
|
1047
|
-
disabled: !
|
|
1046
|
+
label: l(W) ? l(e)("booking.availability.nextButton") : l(e)("general.chooseAddons"),
|
|
1047
|
+
disabled: !l(H),
|
|
1048
1048
|
"is-loading": !1,
|
|
1049
1049
|
"full-width": "",
|
|
1050
1050
|
onClickEvent: (M) => to(G)
|
|
@@ -1058,18 +1058,18 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1058
1058
|
form: w(() => [
|
|
1059
1059
|
y("form", Un, [
|
|
1060
1060
|
y("h2", null, [
|
|
1061
|
-
y("span", null, V(
|
|
1061
|
+
y("span", null, V(l(e)("booking.reservation.addons")), 1)
|
|
1062
1062
|
]),
|
|
1063
1063
|
y("div", null, [
|
|
1064
|
-
isNaN(
|
|
1065
|
-
(E(!0), I(B, null, z(
|
|
1064
|
+
isNaN(l(t)) ? (E(), I("div", Gn, [
|
|
1065
|
+
(E(!0), I(B, null, z(l(O), (S) => (E(), I("ul", {
|
|
1066
1066
|
key: S.roomGroupID
|
|
1067
1067
|
}, [
|
|
1068
1068
|
(E(!0), I(B, null, z(S.variants, (se, ae) => (E(), I("li", {
|
|
1069
1069
|
key: se.ratePlanID
|
|
1070
1070
|
}, [
|
|
1071
1071
|
y("h4", null, [
|
|
1072
|
-
y("span", null, V(
|
|
1072
|
+
y("span", null, V(l(ue)(S.title)), 1)
|
|
1073
1073
|
]),
|
|
1074
1074
|
(E(!0), I(B, null, z(se.rooms, (F, $e) => (E(), I("table", {
|
|
1075
1075
|
key: $e,
|
|
@@ -1078,7 +1078,7 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1078
1078
|
y("thead", null, [
|
|
1079
1079
|
y("tr", null, [
|
|
1080
1080
|
y("th", null, [
|
|
1081
|
-
y("span", null, V(
|
|
1081
|
+
y("span", null, V(l(ue)(se.name)), 1)
|
|
1082
1082
|
]),
|
|
1083
1083
|
x("", !0),
|
|
1084
1084
|
y("th", jn, [
|
|
@@ -1109,22 +1109,22 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1109
1109
|
price: ro
|
|
1110
1110
|
}) => (E(), I("tr", { key: pe }, [
|
|
1111
1111
|
y("td", null, [
|
|
1112
|
-
y("b", null, V(
|
|
1112
|
+
y("b", null, V(l(ue)(io)), 1),
|
|
1113
1113
|
Kn,
|
|
1114
|
-
y("span", null, V(
|
|
1114
|
+
y("span", null, V(l(oe)(ro, l(U))) + " " + V(l(mo)(Se)), 1)
|
|
1115
1115
|
]),
|
|
1116
1116
|
y("td", null, [
|
|
1117
1117
|
Se === 1 || Se === 12 ? (E(), R(yt, {
|
|
1118
1118
|
key: 0,
|
|
1119
|
-
modelValue:
|
|
1120
|
-
"onUpdate:modelValue": (Ve) =>
|
|
1119
|
+
modelValue: l(L)[S.roomGroupID][ae].config[F.configIdx].addons[F.roomIdx][pe],
|
|
1120
|
+
"onUpdate:modelValue": (Ve) => l(L)[S.roomGroupID][ae].config[F.configIdx].addons[F.roomIdx][pe] = Ve,
|
|
1121
1121
|
small: !0,
|
|
1122
1122
|
"min-value": 0,
|
|
1123
1123
|
"max-value": no || 1 / 0
|
|
1124
1124
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (E(), R(Ne, {
|
|
1125
1125
|
key: 1,
|
|
1126
|
-
modelValue:
|
|
1127
|
-
"onUpdate:modelValue": (Ve) =>
|
|
1126
|
+
modelValue: l(L)[S.roomGroupID][ae].config[F.configIdx].addons[F.roomIdx][pe],
|
|
1127
|
+
"onUpdate:modelValue": (Ve) => l(L)[S.roomGroupID][ae].config[F.configIdx].addons[F.roomIdx][pe] = Ve,
|
|
1128
1128
|
numeric: !0
|
|
1129
1129
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1130
1130
|
])
|
|
@@ -1139,7 +1139,7 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1139
1139
|
]),
|
|
1140
1140
|
navigation: w(() => [
|
|
1141
1141
|
C(le, {
|
|
1142
|
-
label:
|
|
1142
|
+
label: l(e)("general.startReservation"),
|
|
1143
1143
|
"full-width": "",
|
|
1144
1144
|
onClickEvent: G
|
|
1145
1145
|
}, null, 8, ["label", "onClickEvent"]),
|
|
@@ -1147,7 +1147,7 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1147
1147
|
class: "konnectio-abort-reservation link",
|
|
1148
1148
|
onClick: et((S) => Je(M), ["prevent"])
|
|
1149
1149
|
}, [
|
|
1150
|
-
y("span", null, V(
|
|
1150
|
+
y("span", null, V(l(e)("general.goAStepBack")), 1)
|
|
1151
1151
|
], 8, Qn)
|
|
1152
1152
|
]),
|
|
1153
1153
|
_: 2
|
|
@@ -1161,27 +1161,27 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1161
1161
|
form: w(() => [
|
|
1162
1162
|
y("form", Jn, [
|
|
1163
1163
|
y("h2", null, [
|
|
1164
|
-
y("span", null, V(
|
|
1164
|
+
y("span", null, V(l(e)("booking.reservation.detailsTitle")), 1)
|
|
1165
1165
|
]),
|
|
1166
|
-
!
|
|
1166
|
+
!l(Mt) && !(l(Ce) && l(Ie)) ? (E(), I("ul", {
|
|
1167
1167
|
key: 0,
|
|
1168
|
-
class: ke({ "fresh-booking-split-inputs": !
|
|
1168
|
+
class: ke({ "fresh-booking-split-inputs": !l(Ce) && !l(Ie) })
|
|
1169
1169
|
}, [
|
|
1170
|
-
|
|
1170
|
+
l(Ce) ? x("", !0) : (E(), I("li", Xn, [
|
|
1171
1171
|
C(tt, {
|
|
1172
|
-
modelValue: a
|
|
1173
|
-
"onUpdate:modelValue": P[1] || (P[1] = (S) => N(
|
|
1174
|
-
label:
|
|
1172
|
+
modelValue: l(a),
|
|
1173
|
+
"onUpdate:modelValue": P[1] || (P[1] = (S) => N(a) ? a.value = S : null),
|
|
1174
|
+
label: l(e)("booking.reservation.arrivalTime"),
|
|
1175
1175
|
icon: "hourglass-start",
|
|
1176
1176
|
"hour-range": Jt.value,
|
|
1177
1177
|
required: ""
|
|
1178
1178
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1179
1179
|
])),
|
|
1180
|
-
|
|
1180
|
+
l(Ie) ? x("", !0) : (E(), I("li", Zn, [
|
|
1181
1181
|
C(tt, {
|
|
1182
|
-
modelValue:
|
|
1183
|
-
"onUpdate:modelValue": P[2] || (P[2] = (S) => N(
|
|
1184
|
-
label:
|
|
1182
|
+
modelValue: l(u),
|
|
1183
|
+
"onUpdate:modelValue": P[2] || (P[2] = (S) => N(u) ? u.value = S : null),
|
|
1184
|
+
label: l(e)("booking.reservation.departureTime"),
|
|
1185
1185
|
icon: "hourglass-end",
|
|
1186
1186
|
"hour-range": Xt.value,
|
|
1187
1187
|
required: ""
|
|
@@ -1189,122 +1189,122 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1189
1189
|
]))
|
|
1190
1190
|
], 2)) : x("", !0),
|
|
1191
1191
|
C(pn, {
|
|
1192
|
-
modelValue:
|
|
1192
|
+
modelValue: l(f),
|
|
1193
1193
|
"onUpdate:modelValue": P[3] || (P[3] = (S) => N(f) ? f.value = S : null),
|
|
1194
|
-
title:
|
|
1195
|
-
"onUpdate:title": P[4] || (P[4] = (S) => N(
|
|
1196
|
-
"exclude-title":
|
|
1197
|
-
label:
|
|
1194
|
+
title: l(g),
|
|
1195
|
+
"onUpdate:title": P[4] || (P[4] = (S) => N(g) ? g.value = S : null),
|
|
1196
|
+
"exclude-title": l(Rt),
|
|
1197
|
+
label: l(e)("booking.reservation.name"),
|
|
1198
1198
|
icon: "user-alt",
|
|
1199
|
-
placeholder:
|
|
1199
|
+
placeholder: l(e)("booking.reservation.namePlaceholder"),
|
|
1200
1200
|
required: ""
|
|
1201
1201
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1202
1202
|
C(ee, {
|
|
1203
|
-
modelValue:
|
|
1203
|
+
modelValue: l(_),
|
|
1204
1204
|
"onUpdate:modelValue": P[5] || (P[5] = (S) => N(_) ? _.value = S : null),
|
|
1205
1205
|
type: "email",
|
|
1206
1206
|
name: "email",
|
|
1207
1207
|
autocomplete: "email",
|
|
1208
|
-
label:
|
|
1208
|
+
label: l(e)("booking.reservation.email"),
|
|
1209
1209
|
icon: "at",
|
|
1210
|
-
placeholder:
|
|
1210
|
+
placeholder: l(e)("booking.reservation.emailPlaceholder"),
|
|
1211
1211
|
required: ""
|
|
1212
1212
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1213
|
-
|
|
1213
|
+
l(Te) ? x("", !0) : (E(), R(Ne, {
|
|
1214
1214
|
key: 1,
|
|
1215
|
-
modelValue:
|
|
1215
|
+
modelValue: l($),
|
|
1216
1216
|
"onUpdate:modelValue": P[6] || (P[6] = (S) => N($) ? $.value = S : null),
|
|
1217
1217
|
type: "checkbox",
|
|
1218
1218
|
name: "newsletter",
|
|
1219
|
-
label:
|
|
1219
|
+
label: l(e)("booking.reservation.newsletterSignUp")
|
|
1220
1220
|
}, null, 8, ["modelValue", "label"])),
|
|
1221
|
-
|
|
1221
|
+
l(Wt) ? x("", !0) : (E(), R(ee, {
|
|
1222
1222
|
key: 2,
|
|
1223
|
-
modelValue:
|
|
1223
|
+
modelValue: l(b),
|
|
1224
1224
|
"onUpdate:modelValue": P[7] || (P[7] = (S) => N(b) ? b.value = S : null),
|
|
1225
1225
|
type: "text",
|
|
1226
1226
|
name: "firm",
|
|
1227
1227
|
autocomplete: "firm",
|
|
1228
|
-
label: `${
|
|
1228
|
+
label: `${l(e)("booking.reservation.companyName")} (${l(e)("booking.reservation.optional")})`,
|
|
1229
1229
|
icon: "id-card",
|
|
1230
|
-
placeholder:
|
|
1230
|
+
placeholder: l(e)("booking.reservation.companyNamePlaceholder")
|
|
1231
1231
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1232
1232
|
C(xo, {
|
|
1233
|
-
modelValue:
|
|
1234
|
-
"onUpdate:modelValue": P[8] || (P[8] = (S) => N(
|
|
1233
|
+
modelValue: l(d),
|
|
1234
|
+
"onUpdate:modelValue": P[8] || (P[8] = (S) => N(d) ? d.value = S : null),
|
|
1235
1235
|
icon: "phone-office",
|
|
1236
|
-
label:
|
|
1237
|
-
placeholder:
|
|
1236
|
+
label: l(e)("booking.reservation.phone"),
|
|
1237
|
+
placeholder: l(e)("booking.reservation.phonePlaceholder"),
|
|
1238
1238
|
required: ""
|
|
1239
1239
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1240
1240
|
C(an, {
|
|
1241
|
-
modelValue:
|
|
1241
|
+
modelValue: l(r),
|
|
1242
1242
|
"onUpdate:modelValue": P[9] || (P[9] = (S) => N(r) ? r.value = S : null),
|
|
1243
|
-
label:
|
|
1244
|
-
placeholder:
|
|
1245
|
-
options:
|
|
1243
|
+
label: l(e)("booking.reservation.country"),
|
|
1244
|
+
placeholder: l(e)("booking.reservation.countryPlaceholder"),
|
|
1245
|
+
options: l(n),
|
|
1246
1246
|
required: ""
|
|
1247
1247
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1248
1248
|
C(ee, {
|
|
1249
|
-
modelValue:
|
|
1249
|
+
modelValue: l(i),
|
|
1250
1250
|
"onUpdate:modelValue": P[10] || (P[10] = (S) => N(i) ? i.value = S : null),
|
|
1251
1251
|
type: "textarea",
|
|
1252
1252
|
name: "address",
|
|
1253
1253
|
autocomplete: "street-address",
|
|
1254
|
-
label:
|
|
1254
|
+
label: l(e)("booking.reservation.streetAddress"),
|
|
1255
1255
|
icon: "map-marked",
|
|
1256
|
-
placeholder:
|
|
1256
|
+
placeholder: l(e)("booking.reservation.streetAddressPlaceholder"),
|
|
1257
1257
|
required: ""
|
|
1258
1258
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1259
1259
|
y("ul", ei, [
|
|
1260
1260
|
y("li", null, [
|
|
1261
1261
|
C(ee, {
|
|
1262
|
-
modelValue:
|
|
1262
|
+
modelValue: l(k),
|
|
1263
1263
|
"onUpdate:modelValue": P[11] || (P[11] = (S) => N(k) ? k.value = S : null),
|
|
1264
1264
|
type: "text",
|
|
1265
1265
|
name: "postal",
|
|
1266
1266
|
autocomplete: "postal-code",
|
|
1267
|
-
label:
|
|
1267
|
+
label: l(e)("booking.reservation.postal"),
|
|
1268
1268
|
icon: "mailbox",
|
|
1269
|
-
placeholder:
|
|
1269
|
+
placeholder: l(e)("booking.reservation.postalPlaceholder"),
|
|
1270
1270
|
required: ""
|
|
1271
1271
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1272
1272
|
]),
|
|
1273
1273
|
y("li", null, [
|
|
1274
1274
|
C(ee, {
|
|
1275
|
-
modelValue:
|
|
1276
|
-
"onUpdate:modelValue": P[12] || (P[12] = (S) => N(
|
|
1275
|
+
modelValue: l(m),
|
|
1276
|
+
"onUpdate:modelValue": P[12] || (P[12] = (S) => N(m) ? m.value = S : null),
|
|
1277
1277
|
type: "text",
|
|
1278
1278
|
name: "city",
|
|
1279
1279
|
autocomplete: "address-level2",
|
|
1280
|
-
label:
|
|
1280
|
+
label: l(e)("booking.reservation.city"),
|
|
1281
1281
|
icon: "city",
|
|
1282
|
-
placeholder:
|
|
1282
|
+
placeholder: l(e)("booking.reservation.cityPlaceholder"),
|
|
1283
1283
|
required: ""
|
|
1284
1284
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1285
1285
|
])
|
|
1286
1286
|
]),
|
|
1287
1287
|
C(ee, {
|
|
1288
|
-
modelValue:
|
|
1288
|
+
modelValue: l(v),
|
|
1289
1289
|
"onUpdate:modelValue": P[13] || (P[13] = (S) => N(v) ? v.value = S : null),
|
|
1290
1290
|
type: "textarea",
|
|
1291
|
-
label: `${
|
|
1291
|
+
label: `${l(e)("booking.reservation.remark")} (${l(e)("booking.reservation.optional")})`,
|
|
1292
1292
|
icon: "info-circle",
|
|
1293
|
-
placeholder:
|
|
1293
|
+
placeholder: l(e)("booking.reservation.remarkPlaceholder")
|
|
1294
1294
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1295
1295
|
C(ee, {
|
|
1296
|
-
modelValue:
|
|
1296
|
+
modelValue: l(T),
|
|
1297
1297
|
"onUpdate:modelValue": P[14] || (P[14] = (S) => N(T) ? T.value = S : null),
|
|
1298
1298
|
type: "textarea",
|
|
1299
|
-
label: `${
|
|
1299
|
+
label: `${l(e)("booking.reservation.allergies")} (${l(e)("booking.reservation.optional")})`,
|
|
1300
1300
|
icon: "allergies",
|
|
1301
|
-
placeholder:
|
|
1301
|
+
placeholder: l(e)("booking.reservation.allergiesPlaceholder")
|
|
1302
1302
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1303
|
-
|
|
1303
|
+
l(Bt) ? x("", !0) : (E(), R(dn, {
|
|
1304
1304
|
key: 3,
|
|
1305
|
-
modelValue:
|
|
1306
|
-
"onUpdate:modelValue": P[15] || (P[15] = (S) => N(
|
|
1307
|
-
label: `${
|
|
1305
|
+
modelValue: l(c),
|
|
1306
|
+
"onUpdate:modelValue": P[15] || (P[15] = (S) => N(c) ? c.value = S : null),
|
|
1307
|
+
label: `${l(e)("booking.reservation.purposeOfStay")} (${l(e)("booking.reservation.optional")})`,
|
|
1308
1308
|
name: "travelingFor",
|
|
1309
1309
|
checkboxes: Kt.value
|
|
1310
1310
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
@@ -1313,9 +1313,9 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1313
1313
|
navigation: w(() => [
|
|
1314
1314
|
y("div", null, [
|
|
1315
1315
|
C(le, {
|
|
1316
|
-
label:
|
|
1317
|
-
disabled: !
|
|
1318
|
-
"is-loading":
|
|
1316
|
+
label: l(Nt) ? l(e)("booking.reservation.nextButton") : l(e)("general.confirmReservation"),
|
|
1317
|
+
disabled: !l(h),
|
|
1318
|
+
"is-loading": l(s),
|
|
1319
1319
|
"full-width": "",
|
|
1320
1320
|
onClickEvent: (S) => eo(G)
|
|
1321
1321
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
@@ -1323,7 +1323,7 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1323
1323
|
class: "konnectio-abort-reservation link",
|
|
1324
1324
|
onClick: et((S) => Je(M), ["prevent"])
|
|
1325
1325
|
}, [
|
|
1326
|
-
y("span", null, V(
|
|
1326
|
+
y("span", null, V(l(e)("general.goAStepBack")), 1)
|
|
1327
1327
|
], 8, ti)
|
|
1328
1328
|
])
|
|
1329
1329
|
]),
|
|
@@ -1335,7 +1335,7 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1335
1335
|
]),
|
|
1336
1336
|
confirmation: w(() => [
|
|
1337
1337
|
C($o, {
|
|
1338
|
-
message:
|
|
1338
|
+
message: l(e)("booking.confirmation.thankYou")
|
|
1339
1339
|
}, null, 8, ["message"])
|
|
1340
1340
|
]),
|
|
1341
1341
|
_: 1
|
|
@@ -1384,9 +1384,9 @@ function je() {
|
|
|
1384
1384
|
var s = this._events && this._events[n];
|
|
1385
1385
|
if (!(!s || !s.length)) {
|
|
1386
1386
|
s = s.slice(0), p = p || [];
|
|
1387
|
-
for (var h = this._onceEvents && this._onceEvents[n],
|
|
1388
|
-
var
|
|
1389
|
-
|
|
1387
|
+
for (var h = this._onceEvents && this._onceEvents[n], c = 0; c < s.length; c++) {
|
|
1388
|
+
var a = s[c], u = h && h[a];
|
|
1389
|
+
u && (this.off(n, a), delete h[a]), a.apply(this, p);
|
|
1390
1390
|
}
|
|
1391
1391
|
return this;
|
|
1392
1392
|
}
|
|
@@ -1408,14 +1408,14 @@ function Ye() {
|
|
|
1408
1408
|
(function(e, t) {
|
|
1409
1409
|
o.exports ? o.exports = t() : e.getSize = t();
|
|
1410
1410
|
})(window, function() {
|
|
1411
|
-
function t(
|
|
1412
|
-
var b = parseFloat(
|
|
1411
|
+
function t(d) {
|
|
1412
|
+
var b = parseFloat(d), k = d.indexOf("%") == -1 && !isNaN(b);
|
|
1413
1413
|
return k && b;
|
|
1414
1414
|
}
|
|
1415
1415
|
function n() {
|
|
1416
1416
|
}
|
|
1417
|
-
var p = typeof console > "u" ? n : function(
|
|
1418
|
-
console.error(
|
|
1417
|
+
var p = typeof console > "u" ? n : function(d) {
|
|
1418
|
+
console.error(d);
|
|
1419
1419
|
}, s = [
|
|
1420
1420
|
"paddingLeft",
|
|
1421
1421
|
"paddingRight",
|
|
@@ -1430,8 +1430,8 @@ function Ye() {
|
|
|
1430
1430
|
"borderTopWidth",
|
|
1431
1431
|
"borderBottomWidth"
|
|
1432
1432
|
], h = s.length;
|
|
1433
|
-
function
|
|
1434
|
-
for (var
|
|
1433
|
+
function c() {
|
|
1434
|
+
for (var d = {
|
|
1435
1435
|
width: 0,
|
|
1436
1436
|
height: 0,
|
|
1437
1437
|
innerWidth: 0,
|
|
@@ -1440,50 +1440,50 @@ function Ye() {
|
|
|
1440
1440
|
outerHeight: 0
|
|
1441
1441
|
}, b = 0; b < h; b++) {
|
|
1442
1442
|
var k = s[b];
|
|
1443
|
-
|
|
1443
|
+
d[k] = 0;
|
|
1444
1444
|
}
|
|
1445
|
-
return
|
|
1445
|
+
return d;
|
|
1446
1446
|
}
|
|
1447
|
-
function d
|
|
1448
|
-
var b = getComputedStyle(
|
|
1447
|
+
function a(d) {
|
|
1448
|
+
var b = getComputedStyle(d);
|
|
1449
1449
|
return b || p("Style returned " + b + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), b;
|
|
1450
1450
|
}
|
|
1451
|
-
var
|
|
1452
|
-
function
|
|
1453
|
-
if (!
|
|
1454
|
-
|
|
1455
|
-
var
|
|
1456
|
-
|
|
1451
|
+
var u = !1, f;
|
|
1452
|
+
function g() {
|
|
1453
|
+
if (!u) {
|
|
1454
|
+
u = !0;
|
|
1455
|
+
var d = document.createElement("div");
|
|
1456
|
+
d.style.width = "200px", d.style.padding = "1px 2px 3px 4px", d.style.borderStyle = "solid", d.style.borderWidth = "1px 2px 3px 4px", d.style.boxSizing = "border-box";
|
|
1457
1457
|
var b = document.body || document.documentElement;
|
|
1458
|
-
b.appendChild(
|
|
1459
|
-
var k = d
|
|
1460
|
-
f = Math.round(t(k.width)) == 200, _.isBoxSizeOuter = f, b.removeChild(
|
|
1458
|
+
b.appendChild(d);
|
|
1459
|
+
var k = a(d);
|
|
1460
|
+
f = Math.round(t(k.width)) == 200, _.isBoxSizeOuter = f, b.removeChild(d);
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
|
-
function _(
|
|
1464
|
-
if (
|
|
1465
|
-
var b = d
|
|
1463
|
+
function _(d) {
|
|
1464
|
+
if (g(), typeof d == "string" && (d = document.querySelector(d)), !(!d || typeof d != "object" || !d.nodeType)) {
|
|
1465
|
+
var b = a(d);
|
|
1466
1466
|
if (b.display == "none")
|
|
1467
|
-
return
|
|
1467
|
+
return c();
|
|
1468
1468
|
var k = {};
|
|
1469
|
-
k.width =
|
|
1470
|
-
for (var
|
|
1469
|
+
k.width = d.offsetWidth, k.height = d.offsetHeight;
|
|
1470
|
+
for (var m = k.isBorderBox = b.boxSizing == "border-box", i = 0; i < h; i++) {
|
|
1471
1471
|
var r = s[i], v = b[r], T = parseFloat(v);
|
|
1472
1472
|
k[r] = isNaN(T) ? 0 : T;
|
|
1473
1473
|
}
|
|
1474
|
-
var $ = k.paddingLeft + k.paddingRight, L = k.paddingTop + k.paddingBottom, O = k.marginLeft + k.marginRight,
|
|
1474
|
+
var $ = k.paddingLeft + k.paddingRight, L = k.paddingTop + k.paddingBottom, O = k.marginLeft + k.marginRight, H = k.marginTop + k.marginBottom, D = k.borderLeftWidth + k.borderRightWidth, W = k.borderTopWidth + k.borderBottomWidth, X = m && f, re = t(b.width);
|
|
1475
1475
|
re !== !1 && (k.width = re + // add padding and border unless it's already including it
|
|
1476
1476
|
(X ? 0 : $ + D));
|
|
1477
1477
|
var U = t(b.height);
|
|
1478
1478
|
return U !== !1 && (k.height = U + // add padding and border unless it's already including it
|
|
1479
|
-
(X ? 0 : L + W)), k.innerWidth = k.width - ($ + D), k.innerHeight = k.height - (L + W), k.outerWidth = k.width + O, k.outerHeight = k.height +
|
|
1479
|
+
(X ? 0 : L + W)), k.innerWidth = k.width - ($ + D), k.innerHeight = k.height - (L + W), k.outerWidth = k.width + O, k.outerHeight = k.height + H, k;
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
return _;
|
|
1483
1483
|
});
|
|
1484
1484
|
}(Oe)), Oe.exports;
|
|
1485
1485
|
}
|
|
1486
|
-
var
|
|
1486
|
+
var Ae = { exports: {} }, He = { exports: {} }, it;
|
|
1487
1487
|
function ni() {
|
|
1488
1488
|
return it || (it = 1, function(o) {
|
|
1489
1489
|
(function(e, t) {
|
|
@@ -1496,16 +1496,16 @@ function ni() {
|
|
|
1496
1496
|
if (n.matchesSelector)
|
|
1497
1497
|
return "matchesSelector";
|
|
1498
1498
|
for (var p = ["webkit", "moz", "ms", "o"], s = 0; s < p.length; s++) {
|
|
1499
|
-
var h = p[s],
|
|
1500
|
-
if (n[
|
|
1501
|
-
return
|
|
1499
|
+
var h = p[s], c = h + "MatchesSelector";
|
|
1500
|
+
if (n[c])
|
|
1501
|
+
return c;
|
|
1502
1502
|
}
|
|
1503
1503
|
}();
|
|
1504
1504
|
return function(p, s) {
|
|
1505
1505
|
return p[t](s);
|
|
1506
1506
|
};
|
|
1507
1507
|
});
|
|
1508
|
-
}(
|
|
1508
|
+
}(He)), He.exports;
|
|
1509
1509
|
}
|
|
1510
1510
|
var rt;
|
|
1511
1511
|
function ii() {
|
|
@@ -1520,85 +1520,85 @@ function ii() {
|
|
|
1520
1520
|
);
|
|
1521
1521
|
})(window, function(t, n) {
|
|
1522
1522
|
var p = {};
|
|
1523
|
-
p.extend = function(
|
|
1524
|
-
for (var
|
|
1525
|
-
u
|
|
1526
|
-
return
|
|
1527
|
-
}, p.modulo = function(
|
|
1528
|
-
return (
|
|
1523
|
+
p.extend = function(c, a) {
|
|
1524
|
+
for (var u in a)
|
|
1525
|
+
c[u] = a[u];
|
|
1526
|
+
return c;
|
|
1527
|
+
}, p.modulo = function(c, a) {
|
|
1528
|
+
return (c % a + a) % a;
|
|
1529
1529
|
};
|
|
1530
1530
|
var s = Array.prototype.slice;
|
|
1531
|
-
p.makeArray = function(
|
|
1532
|
-
if (Array.isArray(
|
|
1533
|
-
return
|
|
1534
|
-
if (
|
|
1531
|
+
p.makeArray = function(c) {
|
|
1532
|
+
if (Array.isArray(c))
|
|
1533
|
+
return c;
|
|
1534
|
+
if (c == null)
|
|
1535
1535
|
return [];
|
|
1536
|
-
var
|
|
1537
|
-
return
|
|
1538
|
-
}, p.removeFrom = function(
|
|
1539
|
-
var
|
|
1540
|
-
|
|
1541
|
-
}, p.getParent = function(
|
|
1542
|
-
for (;
|
|
1543
|
-
if (
|
|
1544
|
-
return
|
|
1545
|
-
}, p.getQueryElement = function(
|
|
1546
|
-
return typeof
|
|
1547
|
-
}, p.handleEvent = function(
|
|
1548
|
-
var
|
|
1549
|
-
this[
|
|
1550
|
-
}, p.filterFindElements = function(
|
|
1551
|
-
|
|
1552
|
-
var
|
|
1553
|
-
return
|
|
1536
|
+
var a = typeof c == "object" && typeof c.length == "number";
|
|
1537
|
+
return a ? s.call(c) : [c];
|
|
1538
|
+
}, p.removeFrom = function(c, a) {
|
|
1539
|
+
var u = c.indexOf(a);
|
|
1540
|
+
u != -1 && c.splice(u, 1);
|
|
1541
|
+
}, p.getParent = function(c, a) {
|
|
1542
|
+
for (; c.parentNode && c != document.body; )
|
|
1543
|
+
if (c = c.parentNode, n(c, a))
|
|
1544
|
+
return c;
|
|
1545
|
+
}, p.getQueryElement = function(c) {
|
|
1546
|
+
return typeof c == "string" ? document.querySelector(c) : c;
|
|
1547
|
+
}, p.handleEvent = function(c) {
|
|
1548
|
+
var a = "on" + c.type;
|
|
1549
|
+
this[a] && this[a](c);
|
|
1550
|
+
}, p.filterFindElements = function(c, a) {
|
|
1551
|
+
c = p.makeArray(c);
|
|
1552
|
+
var u = [];
|
|
1553
|
+
return c.forEach(function(f) {
|
|
1554
1554
|
if (f instanceof HTMLElement) {
|
|
1555
|
-
if (!
|
|
1556
|
-
|
|
1555
|
+
if (!a) {
|
|
1556
|
+
u.push(f);
|
|
1557
1557
|
return;
|
|
1558
1558
|
}
|
|
1559
|
-
n(f,
|
|
1560
|
-
for (var
|
|
1561
|
-
|
|
1559
|
+
n(f, a) && u.push(f);
|
|
1560
|
+
for (var g = f.querySelectorAll(a), _ = 0; _ < g.length; _++)
|
|
1561
|
+
u.push(g[_]);
|
|
1562
1562
|
}
|
|
1563
|
-
}),
|
|
1564
|
-
}, p.debounceMethod = function(
|
|
1565
|
-
|
|
1566
|
-
var f =
|
|
1567
|
-
|
|
1568
|
-
var _ = this[
|
|
1563
|
+
}), u;
|
|
1564
|
+
}, p.debounceMethod = function(c, a, u) {
|
|
1565
|
+
u = u || 100;
|
|
1566
|
+
var f = c.prototype[a], g = a + "Timeout";
|
|
1567
|
+
c.prototype[a] = function() {
|
|
1568
|
+
var _ = this[g];
|
|
1569
1569
|
clearTimeout(_);
|
|
1570
|
-
var
|
|
1571
|
-
this[
|
|
1572
|
-
f.apply(b,
|
|
1573
|
-
},
|
|
1570
|
+
var d = arguments, b = this;
|
|
1571
|
+
this[g] = setTimeout(function() {
|
|
1572
|
+
f.apply(b, d), delete b[g];
|
|
1573
|
+
}, u);
|
|
1574
1574
|
};
|
|
1575
|
-
}, p.docReady = function(
|
|
1576
|
-
var
|
|
1577
|
-
|
|
1578
|
-
}, p.toDashed = function(
|
|
1579
|
-
return
|
|
1580
|
-
return
|
|
1575
|
+
}, p.docReady = function(c) {
|
|
1576
|
+
var a = document.readyState;
|
|
1577
|
+
a == "complete" || a == "interactive" ? setTimeout(c) : document.addEventListener("DOMContentLoaded", c);
|
|
1578
|
+
}, p.toDashed = function(c) {
|
|
1579
|
+
return c.replace(/(.)([A-Z])/g, function(a, u, f) {
|
|
1580
|
+
return u + "-" + f;
|
|
1581
1581
|
}).toLowerCase();
|
|
1582
1582
|
};
|
|
1583
1583
|
var h = t.console;
|
|
1584
|
-
return p.htmlInit = function(
|
|
1584
|
+
return p.htmlInit = function(c, a) {
|
|
1585
1585
|
p.docReady(function() {
|
|
1586
|
-
var
|
|
1587
|
-
|
|
1588
|
-
var i =
|
|
1586
|
+
var u = p.toDashed(a), f = "data-" + u, g = document.querySelectorAll("[" + f + "]"), _ = document.querySelectorAll(".js-" + u), d = p.makeArray(g).concat(p.makeArray(_)), b = f + "-options", k = t.jQuery;
|
|
1587
|
+
d.forEach(function(m) {
|
|
1588
|
+
var i = m.getAttribute(f) || m.getAttribute(b), r;
|
|
1589
1589
|
try {
|
|
1590
1590
|
r = i && JSON.parse(i);
|
|
1591
1591
|
} catch (T) {
|
|
1592
|
-
h && h.error("Error parsing " + f + " on " +
|
|
1592
|
+
h && h.error("Error parsing " + f + " on " + m.className + ": " + T);
|
|
1593
1593
|
return;
|
|
1594
1594
|
}
|
|
1595
|
-
var v = new
|
|
1596
|
-
k && k.data(
|
|
1595
|
+
var v = new c(m, r);
|
|
1596
|
+
k && k.data(m, a, v);
|
|
1597
1597
|
});
|
|
1598
1598
|
});
|
|
1599
1599
|
}, p;
|
|
1600
1600
|
});
|
|
1601
|
-
}(
|
|
1601
|
+
}(Ae)), Ae.exports;
|
|
1602
1602
|
}
|
|
1603
1603
|
var De = { exports: {} }, st;
|
|
1604
1604
|
function ri() {
|
|
@@ -1612,29 +1612,29 @@ function ri() {
|
|
|
1612
1612
|
e.getSize
|
|
1613
1613
|
));
|
|
1614
1614
|
})(window, function(t, n) {
|
|
1615
|
-
function p(
|
|
1616
|
-
for (var i in
|
|
1615
|
+
function p(m) {
|
|
1616
|
+
for (var i in m)
|
|
1617
1617
|
return !1;
|
|
1618
1618
|
return i = null, !0;
|
|
1619
1619
|
}
|
|
1620
|
-
var s = document.documentElement.style, h = typeof s.transition == "string" ? "transition" : "WebkitTransition",
|
|
1620
|
+
var s = document.documentElement.style, h = typeof s.transition == "string" ? "transition" : "WebkitTransition", c = typeof s.transform == "string" ? "transform" : "WebkitTransform", a = {
|
|
1621
1621
|
WebkitTransition: "webkitTransitionEnd",
|
|
1622
1622
|
transition: "transitionend"
|
|
1623
|
-
}[h],
|
|
1624
|
-
transform:
|
|
1623
|
+
}[h], u = {
|
|
1624
|
+
transform: c,
|
|
1625
1625
|
transition: h,
|
|
1626
1626
|
transitionDuration: h + "Duration",
|
|
1627
1627
|
transitionProperty: h + "Property",
|
|
1628
1628
|
transitionDelay: h + "Delay"
|
|
1629
1629
|
};
|
|
1630
|
-
function f(
|
|
1631
|
-
|
|
1630
|
+
function f(m, i) {
|
|
1631
|
+
m && (this.element = m, this.layout = i, this.position = {
|
|
1632
1632
|
x: 0,
|
|
1633
1633
|
y: 0
|
|
1634
1634
|
}, this._create());
|
|
1635
1635
|
}
|
|
1636
|
-
var
|
|
1637
|
-
|
|
1636
|
+
var g = f.prototype = Object.create(t.prototype);
|
|
1637
|
+
g.constructor = f, g._create = function() {
|
|
1638
1638
|
this._transn = {
|
|
1639
1639
|
ingProperties: {},
|
|
1640
1640
|
clean: {},
|
|
@@ -1642,39 +1642,39 @@ function ri() {
|
|
|
1642
1642
|
}, this.css({
|
|
1643
1643
|
position: "absolute"
|
|
1644
1644
|
});
|
|
1645
|
-
},
|
|
1646
|
-
var i = "on" +
|
|
1647
|
-
this[i] && this[i](
|
|
1648
|
-
},
|
|
1645
|
+
}, g.handleEvent = function(m) {
|
|
1646
|
+
var i = "on" + m.type;
|
|
1647
|
+
this[i] && this[i](m);
|
|
1648
|
+
}, g.getSize = function() {
|
|
1649
1649
|
this.size = n(this.element);
|
|
1650
|
-
},
|
|
1650
|
+
}, g.css = function(m) {
|
|
1651
1651
|
var i = this.element.style;
|
|
1652
|
-
for (var r in
|
|
1653
|
-
var v =
|
|
1654
|
-
i[v] =
|
|
1652
|
+
for (var r in m) {
|
|
1653
|
+
var v = u[r] || r;
|
|
1654
|
+
i[v] = m[r];
|
|
1655
1655
|
}
|
|
1656
|
-
},
|
|
1657
|
-
var
|
|
1656
|
+
}, g.getPosition = function() {
|
|
1657
|
+
var m = getComputedStyle(this.element), i = this.layout._getOption("originLeft"), r = this.layout._getOption("originTop"), v = m[i ? "left" : "right"], T = m[r ? "top" : "bottom"], $ = parseFloat(v), L = parseFloat(T), O = this.layout.size;
|
|
1658
1658
|
v.indexOf("%") != -1 && ($ = $ / 100 * O.width), T.indexOf("%") != -1 && (L = L / 100 * O.height), $ = isNaN($) ? 0 : $, L = isNaN(L) ? 0 : L, $ -= i ? O.paddingLeft : O.paddingRight, L -= r ? O.paddingTop : O.paddingBottom, this.position.x = $, this.position.y = L;
|
|
1659
|
-
},
|
|
1660
|
-
var
|
|
1659
|
+
}, g.layoutPosition = function() {
|
|
1660
|
+
var m = this.layout.size, i = {}, r = this.layout._getOption("originLeft"), v = this.layout._getOption("originTop"), T = r ? "paddingLeft" : "paddingRight", $ = r ? "left" : "right", L = r ? "right" : "left", O = this.position.x + m[T];
|
|
1661
1661
|
i[$] = this.getXValue(O), i[L] = "";
|
|
1662
|
-
var
|
|
1662
|
+
var H = v ? "paddingTop" : "paddingBottom", D = v ? "top" : "bottom", W = v ? "bottom" : "top", X = this.position.y + m[H];
|
|
1663
1663
|
i[D] = this.getYValue(X), i[W] = "", this.css(i), this.emitEvent("layout", [this]);
|
|
1664
|
-
},
|
|
1664
|
+
}, g.getXValue = function(m) {
|
|
1665
1665
|
var i = this.layout._getOption("horizontal");
|
|
1666
|
-
return this.layout.options.percentPosition && !i ?
|
|
1667
|
-
},
|
|
1666
|
+
return this.layout.options.percentPosition && !i ? m / this.layout.size.width * 100 + "%" : m + "px";
|
|
1667
|
+
}, g.getYValue = function(m) {
|
|
1668
1668
|
var i = this.layout._getOption("horizontal");
|
|
1669
|
-
return this.layout.options.percentPosition && i ?
|
|
1670
|
-
},
|
|
1669
|
+
return this.layout.options.percentPosition && i ? m / this.layout.size.height * 100 + "%" : m + "px";
|
|
1670
|
+
}, g._transitionTo = function(m, i) {
|
|
1671
1671
|
this.getPosition();
|
|
1672
|
-
var r = this.position.x, v = this.position.y, T =
|
|
1673
|
-
if (this.setPosition(
|
|
1672
|
+
var r = this.position.x, v = this.position.y, T = m == this.position.x && i == this.position.y;
|
|
1673
|
+
if (this.setPosition(m, i), T && !this.isTransitioning) {
|
|
1674
1674
|
this.layoutPosition();
|
|
1675
1675
|
return;
|
|
1676
1676
|
}
|
|
1677
|
-
var $ =
|
|
1677
|
+
var $ = m - r, L = i - v, O = {};
|
|
1678
1678
|
O.transform = this.getTranslate($, L), this.transition({
|
|
1679
1679
|
to: O,
|
|
1680
1680
|
onTransitionEnd: {
|
|
@@ -1682,66 +1682,66 @@ function ri() {
|
|
|
1682
1682
|
},
|
|
1683
1683
|
isCleaning: !0
|
|
1684
1684
|
});
|
|
1685
|
-
},
|
|
1685
|
+
}, g.getTranslate = function(m, i) {
|
|
1686
1686
|
var r = this.layout._getOption("originLeft"), v = this.layout._getOption("originTop");
|
|
1687
|
-
return
|
|
1688
|
-
},
|
|
1689
|
-
this.setPosition(
|
|
1690
|
-
},
|
|
1691
|
-
this.position.x = parseFloat(
|
|
1692
|
-
},
|
|
1693
|
-
this.css(
|
|
1694
|
-
for (var i in
|
|
1695
|
-
|
|
1696
|
-
},
|
|
1687
|
+
return m = r ? m : -m, i = v ? i : -i, "translate3d(" + m + "px, " + i + "px, 0)";
|
|
1688
|
+
}, g.goTo = function(m, i) {
|
|
1689
|
+
this.setPosition(m, i), this.layoutPosition();
|
|
1690
|
+
}, g.moveTo = g._transitionTo, g.setPosition = function(m, i) {
|
|
1691
|
+
this.position.x = parseFloat(m), this.position.y = parseFloat(i);
|
|
1692
|
+
}, g._nonTransition = function(m) {
|
|
1693
|
+
this.css(m.to), m.isCleaning && this._removeStyles(m.to);
|
|
1694
|
+
for (var i in m.onTransitionEnd)
|
|
1695
|
+
m.onTransitionEnd[i].call(this);
|
|
1696
|
+
}, g.transition = function(m) {
|
|
1697
1697
|
if (!parseFloat(this.layout.options.transitionDuration)) {
|
|
1698
|
-
this._nonTransition(
|
|
1698
|
+
this._nonTransition(m);
|
|
1699
1699
|
return;
|
|
1700
1700
|
}
|
|
1701
1701
|
var i = this._transn;
|
|
1702
|
-
for (var r in
|
|
1703
|
-
i.onEnd[r] =
|
|
1704
|
-
for (r in
|
|
1705
|
-
i.ingProperties[r] = !0,
|
|
1706
|
-
|
|
1702
|
+
for (var r in m.onTransitionEnd)
|
|
1703
|
+
i.onEnd[r] = m.onTransitionEnd[r];
|
|
1704
|
+
for (r in m.to)
|
|
1705
|
+
i.ingProperties[r] = !0, m.isCleaning && (i.clean[r] = !0);
|
|
1706
|
+
m.from && (this.css(m.from), this.element.offsetHeight), this.enableTransition(m.to), this.css(m.to), this.isTransitioning = !0;
|
|
1707
1707
|
};
|
|
1708
|
-
function _(
|
|
1709
|
-
return
|
|
1708
|
+
function _(m) {
|
|
1709
|
+
return m.replace(/([A-Z])/g, function(i) {
|
|
1710
1710
|
return "-" + i.toLowerCase();
|
|
1711
1711
|
});
|
|
1712
1712
|
}
|
|
1713
|
-
var
|
|
1714
|
-
|
|
1713
|
+
var d = "opacity," + _(c);
|
|
1714
|
+
g.enableTransition = function() {
|
|
1715
1715
|
if (!this.isTransitioning) {
|
|
1716
|
-
var
|
|
1717
|
-
|
|
1718
|
-
transitionProperty:
|
|
1719
|
-
transitionDuration:
|
|
1716
|
+
var m = this.layout.options.transitionDuration;
|
|
1717
|
+
m = typeof m == "number" ? m + "ms" : m, this.css({
|
|
1718
|
+
transitionProperty: d,
|
|
1719
|
+
transitionDuration: m,
|
|
1720
1720
|
transitionDelay: this.staggerDelay || 0
|
|
1721
|
-
}), this.element.addEventListener(
|
|
1721
|
+
}), this.element.addEventListener(a, this, !1);
|
|
1722
1722
|
}
|
|
1723
|
-
},
|
|
1724
|
-
this.ontransitionend(
|
|
1725
|
-
},
|
|
1726
|
-
this.ontransitionend(
|
|
1723
|
+
}, g.onwebkitTransitionEnd = function(m) {
|
|
1724
|
+
this.ontransitionend(m);
|
|
1725
|
+
}, g.onotransitionend = function(m) {
|
|
1726
|
+
this.ontransitionend(m);
|
|
1727
1727
|
};
|
|
1728
1728
|
var b = {
|
|
1729
1729
|
"-webkit-transform": "transform"
|
|
1730
1730
|
};
|
|
1731
|
-
|
|
1732
|
-
if (
|
|
1733
|
-
var i = this._transn, r = b[
|
|
1734
|
-
if (delete i.ingProperties[r], p(i.ingProperties) && this.disableTransition(), r in i.clean && (this.element.style[
|
|
1731
|
+
g.ontransitionend = function(m) {
|
|
1732
|
+
if (m.target === this.element) {
|
|
1733
|
+
var i = this._transn, r = b[m.propertyName] || m.propertyName;
|
|
1734
|
+
if (delete i.ingProperties[r], p(i.ingProperties) && this.disableTransition(), r in i.clean && (this.element.style[m.propertyName] = "", delete i.clean[r]), r in i.onEnd) {
|
|
1735
1735
|
var v = i.onEnd[r];
|
|
1736
1736
|
v.call(this), delete i.onEnd[r];
|
|
1737
1737
|
}
|
|
1738
1738
|
this.emitEvent("transitionEnd", [this]);
|
|
1739
1739
|
}
|
|
1740
|
-
},
|
|
1741
|
-
this.removeTransitionStyles(), this.element.removeEventListener(
|
|
1742
|
-
},
|
|
1740
|
+
}, g.disableTransition = function() {
|
|
1741
|
+
this.removeTransitionStyles(), this.element.removeEventListener(a, this, !1), this.isTransitioning = !1;
|
|
1742
|
+
}, g._removeStyles = function(m) {
|
|
1743
1743
|
var i = {};
|
|
1744
|
-
for (var r in
|
|
1744
|
+
for (var r in m)
|
|
1745
1745
|
i[r] = "";
|
|
1746
1746
|
this.css(i);
|
|
1747
1747
|
};
|
|
@@ -1750,13 +1750,13 @@ function ri() {
|
|
|
1750
1750
|
transitionDuration: "",
|
|
1751
1751
|
transitionDelay: ""
|
|
1752
1752
|
};
|
|
1753
|
-
return
|
|
1753
|
+
return g.removeTransitionStyles = function() {
|
|
1754
1754
|
this.css(k);
|
|
1755
|
-
},
|
|
1756
|
-
|
|
1757
|
-
},
|
|
1755
|
+
}, g.stagger = function(m) {
|
|
1756
|
+
m = isNaN(m) ? 0 : m, this.staggerDelay = m + "ms";
|
|
1757
|
+
}, g.removeElem = function() {
|
|
1758
1758
|
this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
|
|
1759
|
-
},
|
|
1759
|
+
}, g.remove = function() {
|
|
1760
1760
|
if (!h || !parseFloat(this.layout.options.transitionDuration)) {
|
|
1761
1761
|
this.removeElem();
|
|
1762
1762
|
return;
|
|
@@ -1764,36 +1764,36 @@ function ri() {
|
|
|
1764
1764
|
this.once("transitionEnd", function() {
|
|
1765
1765
|
this.removeElem();
|
|
1766
1766
|
}), this.hide();
|
|
1767
|
-
},
|
|
1767
|
+
}, g.reveal = function() {
|
|
1768
1768
|
delete this.isHidden, this.css({ display: "" });
|
|
1769
|
-
var
|
|
1769
|
+
var m = this.layout.options, i = {}, r = this.getHideRevealTransitionEndProperty("visibleStyle");
|
|
1770
1770
|
i[r] = this.onRevealTransitionEnd, this.transition({
|
|
1771
|
-
from:
|
|
1772
|
-
to:
|
|
1771
|
+
from: m.hiddenStyle,
|
|
1772
|
+
to: m.visibleStyle,
|
|
1773
1773
|
isCleaning: !0,
|
|
1774
1774
|
onTransitionEnd: i
|
|
1775
1775
|
});
|
|
1776
|
-
},
|
|
1776
|
+
}, g.onRevealTransitionEnd = function() {
|
|
1777
1777
|
this.isHidden || this.emitEvent("reveal");
|
|
1778
|
-
},
|
|
1779
|
-
var i = this.layout.options[
|
|
1778
|
+
}, g.getHideRevealTransitionEndProperty = function(m) {
|
|
1779
|
+
var i = this.layout.options[m];
|
|
1780
1780
|
if (i.opacity)
|
|
1781
1781
|
return "opacity";
|
|
1782
1782
|
for (var r in i)
|
|
1783
1783
|
return r;
|
|
1784
|
-
},
|
|
1784
|
+
}, g.hide = function() {
|
|
1785
1785
|
this.isHidden = !0, this.css({ display: "" });
|
|
1786
|
-
var
|
|
1786
|
+
var m = this.layout.options, i = {}, r = this.getHideRevealTransitionEndProperty("hiddenStyle");
|
|
1787
1787
|
i[r] = this.onHideTransitionEnd, this.transition({
|
|
1788
|
-
from:
|
|
1789
|
-
to:
|
|
1788
|
+
from: m.visibleStyle,
|
|
1789
|
+
to: m.hiddenStyle,
|
|
1790
1790
|
// keep hidden stuff hidden
|
|
1791
1791
|
isCleaning: !0,
|
|
1792
1792
|
onTransitionEnd: i
|
|
1793
1793
|
});
|
|
1794
|
-
},
|
|
1794
|
+
}, g.onHideTransitionEnd = function() {
|
|
1795
1795
|
this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide"));
|
|
1796
|
-
},
|
|
1796
|
+
}, g.destroy = function() {
|
|
1797
1797
|
this.css({
|
|
1798
1798
|
position: "",
|
|
1799
1799
|
left: "",
|
|
@@ -1830,17 +1830,17 @@ function si() {
|
|
|
1830
1830
|
e.Outlayer.Item
|
|
1831
1831
|
);
|
|
1832
1832
|
})(window, function(t, n, p, s, h) {
|
|
1833
|
-
var
|
|
1834
|
-
}, f = 0,
|
|
1833
|
+
var c = t.console, a = t.jQuery, u = function() {
|
|
1834
|
+
}, f = 0, g = {};
|
|
1835
1835
|
function _(i, r) {
|
|
1836
1836
|
var v = s.getQueryElement(i);
|
|
1837
1837
|
if (!v) {
|
|
1838
|
-
|
|
1838
|
+
c && c.error("Bad element for " + this.constructor.namespace + ": " + (v || i));
|
|
1839
1839
|
return;
|
|
1840
1840
|
}
|
|
1841
|
-
this.element = v,
|
|
1841
|
+
this.element = v, a && (this.$element = a(this.element)), this.options = s.extend({}, this.constructor.defaults), this.option(r);
|
|
1842
1842
|
var T = ++f;
|
|
1843
|
-
this.element.outlayerGUID = T,
|
|
1843
|
+
this.element.outlayerGUID = T, g[T] = this, this._create();
|
|
1844
1844
|
var $ = this._getOption("initLayout");
|
|
1845
1845
|
$ && this.layout();
|
|
1846
1846
|
}
|
|
@@ -1864,10 +1864,10 @@ function si() {
|
|
|
1864
1864
|
transform: "scale(1)"
|
|
1865
1865
|
}
|
|
1866
1866
|
};
|
|
1867
|
-
var
|
|
1868
|
-
s.extend(
|
|
1867
|
+
var d = _.prototype;
|
|
1868
|
+
s.extend(d, n.prototype), d.option = function(i) {
|
|
1869
1869
|
s.extend(this.options, i);
|
|
1870
|
-
},
|
|
1870
|
+
}, d._getOption = function(i) {
|
|
1871
1871
|
var r = this.constructor.compatOptions[i];
|
|
1872
1872
|
return r && this.options[r] !== void 0 ? this.options[r] : this.options[i];
|
|
1873
1873
|
}, _.compatOptions = {
|
|
@@ -1879,42 +1879,42 @@ function si() {
|
|
|
1879
1879
|
originTop: "isOriginTop",
|
|
1880
1880
|
resize: "isResizeBound",
|
|
1881
1881
|
resizeContainer: "isResizingContainer"
|
|
1882
|
-
},
|
|
1882
|
+
}, d._create = function() {
|
|
1883
1883
|
this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), s.extend(this.element.style, this.options.containerStyle);
|
|
1884
1884
|
var i = this._getOption("resize");
|
|
1885
1885
|
i && this.bindResize();
|
|
1886
|
-
},
|
|
1886
|
+
}, d.reloadItems = function() {
|
|
1887
1887
|
this.items = this._itemize(this.element.children);
|
|
1888
|
-
},
|
|
1888
|
+
}, d._itemize = function(i) {
|
|
1889
1889
|
for (var r = this._filterFindItemElements(i), v = this.constructor.Item, T = [], $ = 0; $ < r.length; $++) {
|
|
1890
1890
|
var L = r[$], O = new v(L, this);
|
|
1891
1891
|
T.push(O);
|
|
1892
1892
|
}
|
|
1893
1893
|
return T;
|
|
1894
|
-
},
|
|
1894
|
+
}, d._filterFindItemElements = function(i) {
|
|
1895
1895
|
return s.filterFindElements(i, this.options.itemSelector);
|
|
1896
|
-
},
|
|
1896
|
+
}, d.getItemElements = function() {
|
|
1897
1897
|
return this.items.map(function(i) {
|
|
1898
1898
|
return i.element;
|
|
1899
1899
|
});
|
|
1900
|
-
},
|
|
1900
|
+
}, d.layout = function() {
|
|
1901
1901
|
this._resetLayout(), this._manageStamps();
|
|
1902
1902
|
var i = this._getOption("layoutInstant"), r = i !== void 0 ? i : !this._isLayoutInited;
|
|
1903
1903
|
this.layoutItems(this.items, r), this._isLayoutInited = !0;
|
|
1904
|
-
},
|
|
1904
|
+
}, d._init = d.layout, d._resetLayout = function() {
|
|
1905
1905
|
this.getSize();
|
|
1906
|
-
},
|
|
1906
|
+
}, d.getSize = function() {
|
|
1907
1907
|
this.size = p(this.element);
|
|
1908
|
-
},
|
|
1908
|
+
}, d._getMeasurement = function(i, r) {
|
|
1909
1909
|
var v = this.options[i], T;
|
|
1910
1910
|
v ? (typeof v == "string" ? T = this.element.querySelector(v) : v instanceof HTMLElement && (T = v), this[i] = T ? p(T)[r] : v) : this[i] = 0;
|
|
1911
|
-
},
|
|
1911
|
+
}, d.layoutItems = function(i, r) {
|
|
1912
1912
|
i = this._getItemsForLayout(i), this._layoutItems(i, r), this._postLayout();
|
|
1913
|
-
},
|
|
1913
|
+
}, d._getItemsForLayout = function(i) {
|
|
1914
1914
|
return i.filter(function(r) {
|
|
1915
1915
|
return !r.isIgnored;
|
|
1916
1916
|
});
|
|
1917
|
-
},
|
|
1917
|
+
}, d._layoutItems = function(i, r) {
|
|
1918
1918
|
if (this._emitCompleteOnItems("layout", i), !(!i || !i.length)) {
|
|
1919
1919
|
var v = [];
|
|
1920
1920
|
i.forEach(function(T) {
|
|
@@ -1922,38 +1922,38 @@ function si() {
|
|
|
1922
1922
|
$.item = T, $.isInstant = r || T.isLayoutInstant, v.push($);
|
|
1923
1923
|
}, this), this._processLayoutQueue(v);
|
|
1924
1924
|
}
|
|
1925
|
-
},
|
|
1925
|
+
}, d._getItemLayoutPosition = function() {
|
|
1926
1926
|
return {
|
|
1927
1927
|
x: 0,
|
|
1928
1928
|
y: 0
|
|
1929
1929
|
};
|
|
1930
|
-
},
|
|
1930
|
+
}, d._processLayoutQueue = function(i) {
|
|
1931
1931
|
this.updateStagger(), i.forEach(function(r, v) {
|
|
1932
1932
|
this._positionItem(r.item, r.x, r.y, r.isInstant, v);
|
|
1933
1933
|
}, this);
|
|
1934
|
-
},
|
|
1934
|
+
}, d.updateStagger = function() {
|
|
1935
1935
|
var i = this.options.stagger;
|
|
1936
1936
|
if (i == null) {
|
|
1937
1937
|
this.stagger = 0;
|
|
1938
1938
|
return;
|
|
1939
1939
|
}
|
|
1940
|
-
return this.stagger =
|
|
1941
|
-
},
|
|
1940
|
+
return this.stagger = m(i), this.stagger;
|
|
1941
|
+
}, d._positionItem = function(i, r, v, T, $) {
|
|
1942
1942
|
T ? i.goTo(r, v) : (i.stagger($ * this.stagger), i.moveTo(r, v));
|
|
1943
|
-
},
|
|
1943
|
+
}, d._postLayout = function() {
|
|
1944
1944
|
this.resizeContainer();
|
|
1945
|
-
},
|
|
1945
|
+
}, d.resizeContainer = function() {
|
|
1946
1946
|
var i = this._getOption("resizeContainer");
|
|
1947
1947
|
if (i) {
|
|
1948
1948
|
var r = this._getContainerSize();
|
|
1949
1949
|
r && (this._setContainerMeasure(r.width, !0), this._setContainerMeasure(r.height, !1));
|
|
1950
1950
|
}
|
|
1951
|
-
},
|
|
1951
|
+
}, d._getContainerSize = u, d._setContainerMeasure = function(i, r) {
|
|
1952
1952
|
if (i !== void 0) {
|
|
1953
1953
|
var v = this.size;
|
|
1954
1954
|
v.isBorderBox && (i += r ? v.paddingLeft + v.paddingRight + v.borderLeftWidth + v.borderRightWidth : v.paddingBottom + v.paddingTop + v.borderTopWidth + v.borderBottomWidth), i = Math.max(i, 0), this.element.style[r ? "width" : "height"] = i + "px";
|
|
1955
1955
|
}
|
|
1956
|
-
},
|
|
1956
|
+
}, d._emitCompleteOnItems = function(i, r) {
|
|
1957
1957
|
var v = this;
|
|
1958
1958
|
function T() {
|
|
1959
1959
|
v.dispatchEvent(i + "Complete", null, [r]);
|
|
@@ -1967,35 +1967,35 @@ function si() {
|
|
|
1967
1967
|
function O() {
|
|
1968
1968
|
L++, L == $ && T();
|
|
1969
1969
|
}
|
|
1970
|
-
r.forEach(function(
|
|
1971
|
-
|
|
1970
|
+
r.forEach(function(H) {
|
|
1971
|
+
H.once(i, O);
|
|
1972
1972
|
});
|
|
1973
|
-
},
|
|
1973
|
+
}, d.dispatchEvent = function(i, r, v) {
|
|
1974
1974
|
var T = r ? [r].concat(v) : v;
|
|
1975
|
-
if (this.emitEvent(i, T),
|
|
1976
|
-
if (this.$element = this.$element ||
|
|
1977
|
-
var $ =
|
|
1975
|
+
if (this.emitEvent(i, T), a)
|
|
1976
|
+
if (this.$element = this.$element || a(this.element), r) {
|
|
1977
|
+
var $ = a.Event(r);
|
|
1978
1978
|
$.type = i, this.$element.trigger($, v);
|
|
1979
1979
|
} else
|
|
1980
1980
|
this.$element.trigger(i, v);
|
|
1981
|
-
},
|
|
1981
|
+
}, d.ignore = function(i) {
|
|
1982
1982
|
var r = this.getItem(i);
|
|
1983
1983
|
r && (r.isIgnored = !0);
|
|
1984
|
-
},
|
|
1984
|
+
}, d.unignore = function(i) {
|
|
1985
1985
|
var r = this.getItem(i);
|
|
1986
1986
|
r && delete r.isIgnored;
|
|
1987
|
-
},
|
|
1987
|
+
}, d.stamp = function(i) {
|
|
1988
1988
|
i = this._find(i), i && (this.stamps = this.stamps.concat(i), i.forEach(this.ignore, this));
|
|
1989
|
-
},
|
|
1989
|
+
}, d.unstamp = function(i) {
|
|
1990
1990
|
i = this._find(i), i && i.forEach(function(r) {
|
|
1991
1991
|
s.removeFrom(this.stamps, r), this.unignore(r);
|
|
1992
1992
|
}, this);
|
|
1993
|
-
},
|
|
1993
|
+
}, d._find = function(i) {
|
|
1994
1994
|
if (i)
|
|
1995
1995
|
return typeof i == "string" && (i = this.element.querySelectorAll(i)), i = s.makeArray(i), i;
|
|
1996
|
-
},
|
|
1996
|
+
}, d._manageStamps = function() {
|
|
1997
1997
|
!this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
|
|
1998
|
-
},
|
|
1998
|
+
}, d._getBoundingRect = function() {
|
|
1999
1999
|
var i = this.element.getBoundingClientRect(), r = this.size;
|
|
2000
2000
|
this._boundingRect = {
|
|
2001
2001
|
left: i.left + r.paddingLeft + r.borderLeftWidth,
|
|
@@ -2003,7 +2003,7 @@ function si() {
|
|
|
2003
2003
|
right: i.right - (r.paddingRight + r.borderRightWidth),
|
|
2004
2004
|
bottom: i.bottom - (r.paddingBottom + r.borderBottomWidth)
|
|
2005
2005
|
};
|
|
2006
|
-
},
|
|
2006
|
+
}, d._manageStamp = u, d._getElementOffset = function(i) {
|
|
2007
2007
|
var r = i.getBoundingClientRect(), v = this._boundingRect, T = p(i), $ = {
|
|
2008
2008
|
left: r.left - v.left - T.marginLeft,
|
|
2009
2009
|
top: r.top - v.top - T.marginTop,
|
|
@@ -2011,81 +2011,81 @@ function si() {
|
|
|
2011
2011
|
bottom: v.bottom - r.bottom - T.marginBottom
|
|
2012
2012
|
};
|
|
2013
2013
|
return $;
|
|
2014
|
-
},
|
|
2014
|
+
}, d.handleEvent = s.handleEvent, d.bindResize = function() {
|
|
2015
2015
|
t.addEventListener("resize", this), this.isResizeBound = !0;
|
|
2016
|
-
},
|
|
2016
|
+
}, d.unbindResize = function() {
|
|
2017
2017
|
t.removeEventListener("resize", this), this.isResizeBound = !1;
|
|
2018
|
-
},
|
|
2018
|
+
}, d.onresize = function() {
|
|
2019
2019
|
this.resize();
|
|
2020
|
-
}, s.debounceMethod(_, "onresize", 100),
|
|
2020
|
+
}, s.debounceMethod(_, "onresize", 100), d.resize = function() {
|
|
2021
2021
|
!this.isResizeBound || !this.needsResizeLayout() || this.layout();
|
|
2022
|
-
},
|
|
2022
|
+
}, d.needsResizeLayout = function() {
|
|
2023
2023
|
var i = p(this.element), r = this.size && i;
|
|
2024
2024
|
return r && i.innerWidth !== this.size.innerWidth;
|
|
2025
|
-
},
|
|
2025
|
+
}, d.addItems = function(i) {
|
|
2026
2026
|
var r = this._itemize(i);
|
|
2027
2027
|
return r.length && (this.items = this.items.concat(r)), r;
|
|
2028
|
-
},
|
|
2028
|
+
}, d.appended = function(i) {
|
|
2029
2029
|
var r = this.addItems(i);
|
|
2030
2030
|
r.length && (this.layoutItems(r, !0), this.reveal(r));
|
|
2031
|
-
},
|
|
2031
|
+
}, d.prepended = function(i) {
|
|
2032
2032
|
var r = this._itemize(i);
|
|
2033
2033
|
if (r.length) {
|
|
2034
2034
|
var v = this.items.slice(0);
|
|
2035
2035
|
this.items = r.concat(v), this._resetLayout(), this._manageStamps(), this.layoutItems(r, !0), this.reveal(r), this.layoutItems(v);
|
|
2036
2036
|
}
|
|
2037
|
-
},
|
|
2037
|
+
}, d.reveal = function(i) {
|
|
2038
2038
|
if (this._emitCompleteOnItems("reveal", i), !(!i || !i.length)) {
|
|
2039
2039
|
var r = this.updateStagger();
|
|
2040
2040
|
i.forEach(function(v, T) {
|
|
2041
2041
|
v.stagger(T * r), v.reveal();
|
|
2042
2042
|
});
|
|
2043
2043
|
}
|
|
2044
|
-
},
|
|
2044
|
+
}, d.hide = function(i) {
|
|
2045
2045
|
if (this._emitCompleteOnItems("hide", i), !(!i || !i.length)) {
|
|
2046
2046
|
var r = this.updateStagger();
|
|
2047
2047
|
i.forEach(function(v, T) {
|
|
2048
2048
|
v.stagger(T * r), v.hide();
|
|
2049
2049
|
});
|
|
2050
2050
|
}
|
|
2051
|
-
},
|
|
2051
|
+
}, d.revealItemElements = function(i) {
|
|
2052
2052
|
var r = this.getItems(i);
|
|
2053
2053
|
this.reveal(r);
|
|
2054
|
-
},
|
|
2054
|
+
}, d.hideItemElements = function(i) {
|
|
2055
2055
|
var r = this.getItems(i);
|
|
2056
2056
|
this.hide(r);
|
|
2057
|
-
},
|
|
2057
|
+
}, d.getItem = function(i) {
|
|
2058
2058
|
for (var r = 0; r < this.items.length; r++) {
|
|
2059
2059
|
var v = this.items[r];
|
|
2060
2060
|
if (v.element == i)
|
|
2061
2061
|
return v;
|
|
2062
2062
|
}
|
|
2063
|
-
},
|
|
2063
|
+
}, d.getItems = function(i) {
|
|
2064
2064
|
i = s.makeArray(i);
|
|
2065
2065
|
var r = [];
|
|
2066
2066
|
return i.forEach(function(v) {
|
|
2067
2067
|
var T = this.getItem(v);
|
|
2068
2068
|
T && r.push(T);
|
|
2069
2069
|
}, this), r;
|
|
2070
|
-
},
|
|
2070
|
+
}, d.remove = function(i) {
|
|
2071
2071
|
var r = this.getItems(i);
|
|
2072
2072
|
this._emitCompleteOnItems("remove", r), !(!r || !r.length) && r.forEach(function(v) {
|
|
2073
2073
|
v.remove(), s.removeFrom(this.items, v);
|
|
2074
2074
|
}, this);
|
|
2075
|
-
},
|
|
2075
|
+
}, d.destroy = function() {
|
|
2076
2076
|
var i = this.element.style;
|
|
2077
2077
|
i.height = "", i.position = "", i.width = "", this.items.forEach(function(v) {
|
|
2078
2078
|
v.destroy();
|
|
2079
2079
|
}), this.unbindResize();
|
|
2080
2080
|
var r = this.element.outlayerGUID;
|
|
2081
|
-
delete
|
|
2081
|
+
delete g[r], delete this.element.outlayerGUID, a && a.removeData(this.element, this.constructor.namespace);
|
|
2082
2082
|
}, _.data = function(i) {
|
|
2083
2083
|
i = s.getQueryElement(i);
|
|
2084
2084
|
var r = i && i.outlayerGUID;
|
|
2085
|
-
return r &&
|
|
2085
|
+
return r && g[r];
|
|
2086
2086
|
}, _.create = function(i, r) {
|
|
2087
2087
|
var v = b(_);
|
|
2088
|
-
return v.defaults = s.extend({}, _.defaults), s.extend(v.defaults, r), v.compatOptions = s.extend({}, _.compatOptions), v.namespace = i, v.data = _.data, v.Item = b(h), s.htmlInit(v, i),
|
|
2088
|
+
return v.defaults = s.extend({}, _.defaults), s.extend(v.defaults, r), v.compatOptions = s.extend({}, _.compatOptions), v.namespace = i, v.data = _.data, v.Item = b(h), s.htmlInit(v, i), a && a.bridget && a.bridget(i, v), v;
|
|
2089
2089
|
};
|
|
2090
2090
|
function b(i) {
|
|
2091
2091
|
function r() {
|
|
@@ -2097,7 +2097,7 @@ function si() {
|
|
|
2097
2097
|
ms: 1,
|
|
2098
2098
|
s: 1e3
|
|
2099
2099
|
};
|
|
2100
|
-
function
|
|
2100
|
+
function m(i) {
|
|
2101
2101
|
if (typeof i == "number")
|
|
2102
2102
|
return i;
|
|
2103
2103
|
var r = i.match(/(^\d*\.?\d*)(\w*)/), v = r && r[1], T = r && r[2];
|
|
@@ -2138,57 +2138,57 @@ function si() {
|
|
|
2138
2138
|
this.maxY = 0, this.horizontalColIndex = 0;
|
|
2139
2139
|
}, s.measureColumns = function() {
|
|
2140
2140
|
if (this.getContainerWidth(), !this.columnWidth) {
|
|
2141
|
-
var h = this.items[0],
|
|
2142
|
-
this.columnWidth =
|
|
2141
|
+
var h = this.items[0], c = h && h.element;
|
|
2142
|
+
this.columnWidth = c && n(c).outerWidth || // if first elem has no width, default to size of container
|
|
2143
2143
|
this.containerWidth;
|
|
2144
2144
|
}
|
|
2145
|
-
var
|
|
2145
|
+
var a = this.columnWidth += this.gutter, u = this.containerWidth + this.gutter, f = u / a, g = a - u % a, _ = g && g < 1 ? "round" : "floor";
|
|
2146
2146
|
f = Math[_](f), this.cols = Math.max(f, 1);
|
|
2147
2147
|
}, s.getContainerWidth = function() {
|
|
2148
|
-
var h = this._getOption("fitWidth"),
|
|
2149
|
-
this.containerWidth =
|
|
2148
|
+
var h = this._getOption("fitWidth"), c = h ? this.element.parentNode : this.element, a = n(c);
|
|
2149
|
+
this.containerWidth = a && a.innerWidth;
|
|
2150
2150
|
}, s._getItemLayoutPosition = function(h) {
|
|
2151
2151
|
h.getSize();
|
|
2152
|
-
var
|
|
2153
|
-
|
|
2154
|
-
for (var f = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition",
|
|
2155
|
-
x: this.columnWidth *
|
|
2156
|
-
y:
|
|
2157
|
-
},
|
|
2158
|
-
this.colYs[k] =
|
|
2152
|
+
var c = h.size.outerWidth % this.columnWidth, a = c && c < 1 ? "round" : "ceil", u = Math[a](h.size.outerWidth / this.columnWidth);
|
|
2153
|
+
u = Math.min(u, this.cols);
|
|
2154
|
+
for (var f = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", g = this[f](u, h), _ = {
|
|
2155
|
+
x: this.columnWidth * g.col,
|
|
2156
|
+
y: g.y
|
|
2157
|
+
}, d = g.y + h.size.outerHeight, b = u + g.col, k = g.col; k < b; k++)
|
|
2158
|
+
this.colYs[k] = d;
|
|
2159
2159
|
return _;
|
|
2160
2160
|
}, s._getTopColPosition = function(h) {
|
|
2161
|
-
var
|
|
2161
|
+
var c = this._getTopColGroup(h), a = Math.min.apply(Math, c);
|
|
2162
2162
|
return {
|
|
2163
|
-
col:
|
|
2164
|
-
y:
|
|
2163
|
+
col: c.indexOf(a),
|
|
2164
|
+
y: a
|
|
2165
2165
|
};
|
|
2166
2166
|
}, s._getTopColGroup = function(h) {
|
|
2167
2167
|
if (h < 2)
|
|
2168
2168
|
return this.colYs;
|
|
2169
|
-
for (var
|
|
2170
|
-
u
|
|
2171
|
-
return
|
|
2172
|
-
}, s._getColGroupY = function(h,
|
|
2173
|
-
if (
|
|
2169
|
+
for (var c = [], a = this.cols + 1 - h, u = 0; u < a; u++)
|
|
2170
|
+
c[u] = this._getColGroupY(u, h);
|
|
2171
|
+
return c;
|
|
2172
|
+
}, s._getColGroupY = function(h, c) {
|
|
2173
|
+
if (c < 2)
|
|
2174
2174
|
return this.colYs[h];
|
|
2175
|
-
var
|
|
2176
|
-
return Math.max.apply(Math,
|
|
2177
|
-
}, s._getHorizontalColPosition = function(h,
|
|
2178
|
-
var
|
|
2179
|
-
|
|
2180
|
-
var f =
|
|
2181
|
-
return this.horizontalColIndex = f ?
|
|
2182
|
-
col:
|
|
2183
|
-
y: this._getColGroupY(
|
|
2175
|
+
var a = this.colYs.slice(h, h + c);
|
|
2176
|
+
return Math.max.apply(Math, a);
|
|
2177
|
+
}, s._getHorizontalColPosition = function(h, c) {
|
|
2178
|
+
var a = this.horizontalColIndex % this.cols, u = h > 1 && a + h > this.cols;
|
|
2179
|
+
a = u ? 0 : a;
|
|
2180
|
+
var f = c.size.outerWidth && c.size.outerHeight;
|
|
2181
|
+
return this.horizontalColIndex = f ? a + h : this.horizontalColIndex, {
|
|
2182
|
+
col: a,
|
|
2183
|
+
y: this._getColGroupY(a, h)
|
|
2184
2184
|
};
|
|
2185
2185
|
}, s._manageStamp = function(h) {
|
|
2186
|
-
var
|
|
2186
|
+
var c = n(h), a = this._getElementOffset(h), u = this._getOption("originLeft"), f = u ? a.left : a.right, g = f + c.outerWidth, _ = Math.floor(f / this.columnWidth);
|
|
2187
2187
|
_ = Math.max(0, _);
|
|
2188
|
-
var
|
|
2189
|
-
|
|
2190
|
-
for (var b = this._getOption("originTop"), k = (b ?
|
|
2191
|
-
this.colYs[
|
|
2188
|
+
var d = Math.floor(g / this.columnWidth);
|
|
2189
|
+
d -= g % this.columnWidth ? 0 : 1, d = Math.min(this.cols - 1, d);
|
|
2190
|
+
for (var b = this._getOption("originTop"), k = (b ? a.top : a.bottom) + c.outerHeight, m = _; m <= d; m++)
|
|
2191
|
+
this.colYs[m] = Math.max(k, this.colYs[m]);
|
|
2192
2192
|
}, s._getContainerSize = function() {
|
|
2193
2193
|
this.maxY = Math.max.apply(Math, this.colYs);
|
|
2194
2194
|
var h = {
|
|
@@ -2196,7 +2196,7 @@ function si() {
|
|
|
2196
2196
|
};
|
|
2197
2197
|
return this._getOption("fitWidth") && (h.width = this._getContainerFitWidth()), h;
|
|
2198
2198
|
}, s._getContainerFitWidth = function() {
|
|
2199
|
-
for (var h = 0,
|
|
2199
|
+
for (var h = 0, c = this.cols; --c && this.colYs[c] === 0; )
|
|
2200
2200
|
h++;
|
|
2201
2201
|
return (this.cols - h) * this.columnWidth - this.gutter;
|
|
2202
2202
|
}, s.needsResizeLayout = function() {
|
|
@@ -2227,42 +2227,42 @@ var Ct = { exports: {} };
|
|
|
2227
2227
|
// -------------------------- factory -------------------------- //
|
|
2228
2228
|
function(t, n) {
|
|
2229
2229
|
var p = t.jQuery, s = t.console;
|
|
2230
|
-
function h(
|
|
2230
|
+
function h(d, b) {
|
|
2231
2231
|
for (var k in b)
|
|
2232
|
-
|
|
2233
|
-
return
|
|
2232
|
+
d[k] = b[k];
|
|
2233
|
+
return d;
|
|
2234
2234
|
}
|
|
2235
|
-
var
|
|
2236
|
-
function d
|
|
2237
|
-
if (Array.isArray(
|
|
2238
|
-
return
|
|
2239
|
-
var b = typeof
|
|
2240
|
-
return b ?
|
|
2235
|
+
var c = Array.prototype.slice;
|
|
2236
|
+
function a(d) {
|
|
2237
|
+
if (Array.isArray(d))
|
|
2238
|
+
return d;
|
|
2239
|
+
var b = typeof d == "object" && typeof d.length == "number";
|
|
2240
|
+
return b ? c.call(d) : [d];
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2243
|
-
if (!(this instanceof
|
|
2244
|
-
return new
|
|
2245
|
-
var
|
|
2246
|
-
if (typeof
|
|
2247
|
-
s.error("Bad element for imagesLoaded " + (
|
|
2242
|
+
function u(d, b, k) {
|
|
2243
|
+
if (!(this instanceof u))
|
|
2244
|
+
return new u(d, b, k);
|
|
2245
|
+
var m = d;
|
|
2246
|
+
if (typeof d == "string" && (m = document.querySelectorAll(d)), !m) {
|
|
2247
|
+
s.error("Bad element for imagesLoaded " + (m || d));
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
2250
|
-
this.elements =
|
|
2250
|
+
this.elements = a(m), this.options = h({}, this.options), typeof b == "function" ? k = b : h(this.options, b), k && this.on("always", k), this.getImages(), p && (this.jqDeferred = new p.Deferred()), setTimeout(this.check.bind(this));
|
|
2251
2251
|
}
|
|
2252
|
-
|
|
2252
|
+
u.prototype = Object.create(n.prototype), u.prototype.options = {}, u.prototype.getImages = function() {
|
|
2253
2253
|
this.images = [], this.elements.forEach(this.addElementImages, this);
|
|
2254
|
-
},
|
|
2255
|
-
|
|
2256
|
-
var b =
|
|
2254
|
+
}, u.prototype.addElementImages = function(d) {
|
|
2255
|
+
d.nodeName == "IMG" && this.addImage(d), this.options.background === !0 && this.addElementBackgroundImages(d);
|
|
2256
|
+
var b = d.nodeType;
|
|
2257
2257
|
if (!(!b || !f[b])) {
|
|
2258
|
-
for (var k =
|
|
2259
|
-
var i = k[
|
|
2258
|
+
for (var k = d.querySelectorAll("img"), m = 0; m < k.length; m++) {
|
|
2259
|
+
var i = k[m];
|
|
2260
2260
|
this.addImage(i);
|
|
2261
2261
|
}
|
|
2262
2262
|
if (typeof this.options.background == "string") {
|
|
2263
|
-
var r =
|
|
2264
|
-
for (
|
|
2265
|
-
var v = r[
|
|
2263
|
+
var r = d.querySelectorAll(this.options.background);
|
|
2264
|
+
for (m = 0; m < r.length; m++) {
|
|
2265
|
+
var v = r[m];
|
|
2266
2266
|
this.addElementBackgroundImages(v);
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
@@ -2273,83 +2273,83 @@ var Ct = { exports: {} };
|
|
|
2273
2273
|
9: !0,
|
|
2274
2274
|
11: !0
|
|
2275
2275
|
};
|
|
2276
|
-
|
|
2277
|
-
var b = getComputedStyle(
|
|
2276
|
+
u.prototype.addElementBackgroundImages = function(d) {
|
|
2277
|
+
var b = getComputedStyle(d);
|
|
2278
2278
|
if (b)
|
|
2279
|
-
for (var k = /url\((['"])?(.*?)\1\)/gi,
|
|
2280
|
-
var i =
|
|
2281
|
-
i && this.addBackground(i,
|
|
2279
|
+
for (var k = /url\((['"])?(.*?)\1\)/gi, m = k.exec(b.backgroundImage); m !== null; ) {
|
|
2280
|
+
var i = m && m[2];
|
|
2281
|
+
i && this.addBackground(i, d), m = k.exec(b.backgroundImage);
|
|
2282
2282
|
}
|
|
2283
|
-
},
|
|
2284
|
-
var b = new
|
|
2283
|
+
}, u.prototype.addImage = function(d) {
|
|
2284
|
+
var b = new g(d);
|
|
2285
2285
|
this.images.push(b);
|
|
2286
|
-
},
|
|
2287
|
-
var k = new _(
|
|
2286
|
+
}, u.prototype.addBackground = function(d, b) {
|
|
2287
|
+
var k = new _(d, b);
|
|
2288
2288
|
this.images.push(k);
|
|
2289
|
-
},
|
|
2290
|
-
var
|
|
2289
|
+
}, u.prototype.check = function() {
|
|
2290
|
+
var d = this;
|
|
2291
2291
|
if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
|
|
2292
2292
|
this.complete();
|
|
2293
2293
|
return;
|
|
2294
2294
|
}
|
|
2295
|
-
function b(k,
|
|
2295
|
+
function b(k, m, i) {
|
|
2296
2296
|
setTimeout(function() {
|
|
2297
|
-
|
|
2297
|
+
d.progress(k, m, i);
|
|
2298
2298
|
});
|
|
2299
2299
|
}
|
|
2300
2300
|
this.images.forEach(function(k) {
|
|
2301
2301
|
k.once("progress", b), k.check();
|
|
2302
2302
|
});
|
|
2303
|
-
},
|
|
2304
|
-
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !
|
|
2305
|
-
},
|
|
2306
|
-
var
|
|
2307
|
-
if (this.isComplete = !0, this.emitEvent(
|
|
2303
|
+
}, u.prototype.progress = function(d, b, k) {
|
|
2304
|
+
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !d.isLoaded, this.emitEvent("progress", [this, d, b]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, d), this.progressedCount == this.images.length && this.complete(), this.options.debug && s && s.log("progress: " + k, d, b);
|
|
2305
|
+
}, u.prototype.complete = function() {
|
|
2306
|
+
var d = this.hasAnyBroken ? "fail" : "done";
|
|
2307
|
+
if (this.isComplete = !0, this.emitEvent(d, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
|
|
2308
2308
|
var b = this.hasAnyBroken ? "reject" : "resolve";
|
|
2309
2309
|
this.jqDeferred[b](this);
|
|
2310
2310
|
}
|
|
2311
2311
|
};
|
|
2312
|
-
function
|
|
2313
|
-
this.img =
|
|
2312
|
+
function g(d) {
|
|
2313
|
+
this.img = d;
|
|
2314
2314
|
}
|
|
2315
|
-
|
|
2316
|
-
var
|
|
2317
|
-
if (
|
|
2315
|
+
g.prototype = Object.create(n.prototype), g.prototype.check = function() {
|
|
2316
|
+
var d = this.getIsImageComplete();
|
|
2317
|
+
if (d) {
|
|
2318
2318
|
this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
|
|
2319
2319
|
return;
|
|
2320
2320
|
}
|
|
2321
2321
|
this.proxyImage = new Image(), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.proxyImage.src = this.img.src;
|
|
2322
|
-
},
|
|
2322
|
+
}, g.prototype.getIsImageComplete = function() {
|
|
2323
2323
|
return this.img.complete && this.img.naturalWidth;
|
|
2324
|
-
},
|
|
2325
|
-
this.isLoaded =
|
|
2326
|
-
},
|
|
2327
|
-
var b = "on" +
|
|
2328
|
-
this[b] && this[b](
|
|
2329
|
-
},
|
|
2324
|
+
}, g.prototype.confirm = function(d, b) {
|
|
2325
|
+
this.isLoaded = d, this.emitEvent("progress", [this, this.img, b]);
|
|
2326
|
+
}, g.prototype.handleEvent = function(d) {
|
|
2327
|
+
var b = "on" + d.type;
|
|
2328
|
+
this[b] && this[b](d);
|
|
2329
|
+
}, g.prototype.onload = function() {
|
|
2330
2330
|
this.confirm(!0, "onload"), this.unbindEvents();
|
|
2331
|
-
},
|
|
2331
|
+
}, g.prototype.onerror = function() {
|
|
2332
2332
|
this.confirm(!1, "onerror"), this.unbindEvents();
|
|
2333
|
-
},
|
|
2333
|
+
}, g.prototype.unbindEvents = function() {
|
|
2334
2334
|
this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
2335
2335
|
};
|
|
2336
|
-
function _(
|
|
2337
|
-
this.url =
|
|
2336
|
+
function _(d, b) {
|
|
2337
|
+
this.url = d, this.element = b, this.img = new Image();
|
|
2338
2338
|
}
|
|
2339
|
-
return _.prototype = Object.create(
|
|
2339
|
+
return _.prototype = Object.create(g.prototype), _.prototype.check = function() {
|
|
2340
2340
|
this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
|
|
2341
|
-
var
|
|
2342
|
-
|
|
2341
|
+
var d = this.getIsImageComplete();
|
|
2342
|
+
d && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
|
|
2343
2343
|
}, _.prototype.unbindEvents = function() {
|
|
2344
2344
|
this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
2345
|
-
}, _.prototype.confirm = function(
|
|
2346
|
-
this.isLoaded =
|
|
2347
|
-
},
|
|
2348
|
-
|
|
2349
|
-
var
|
|
2350
|
-
return
|
|
2345
|
+
}, _.prototype.confirm = function(d, b) {
|
|
2346
|
+
this.isLoaded = d, this.emitEvent("progress", [this, this.element, b]);
|
|
2347
|
+
}, u.makeJQueryPlugin = function(d) {
|
|
2348
|
+
d = d || t.jQuery, d && (p = d, p.fn.imagesLoaded = function(b, k) {
|
|
2349
|
+
var m = new u(this, b, k);
|
|
2350
|
+
return m.jqDeferred.promise(p(this));
|
|
2351
2351
|
});
|
|
2352
|
-
},
|
|
2352
|
+
}, u.makeJQueryPlugin(), u;
|
|
2353
2353
|
}
|
|
2354
2354
|
);
|
|
2355
2355
|
})(Ct);
|
|
@@ -2401,49 +2401,49 @@ It.install = function(o, e) {
|
|
|
2401
2401
|
mounted: function(s, h) {
|
|
2402
2402
|
if (!lt)
|
|
2403
2403
|
throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
|
|
2404
|
-
const
|
|
2405
|
-
|
|
2404
|
+
const c = hi(s.attributes), a = new lt(s, c), u = h.value || n, f = c.destroyDelay ? parseInt(c.destroyDelay, 10) : void 0, g = function() {
|
|
2405
|
+
a.reloadItems(), a.layout();
|
|
2406
2406
|
};
|
|
2407
2407
|
kt(() => {
|
|
2408
|
-
|
|
2408
|
+
g();
|
|
2409
2409
|
});
|
|
2410
2410
|
const _ = function(b) {
|
|
2411
|
-
|
|
2412
|
-
},
|
|
2413
|
-
t.off(`${ge}__${
|
|
2411
|
+
g();
|
|
2412
|
+
}, d = function(b) {
|
|
2413
|
+
t.off(`${ge}__${u}`, _), t.off(`${Me}__${u}`, _), t.off(`${Re}__${u}`, _), t.off(`${Be}__${u}`, d);
|
|
2414
2414
|
const k = f && !Number.isNaN(f) ? f : 0;
|
|
2415
2415
|
setTimeout(function() {
|
|
2416
|
-
|
|
2416
|
+
a.destroy();
|
|
2417
2417
|
}, k);
|
|
2418
2418
|
};
|
|
2419
|
-
t.on(`${ge}__${
|
|
2419
|
+
t.on(`${ge}__${u}`, _), t.on(`${Me}__${u}`, _), t.on(`${Re}__${u}`, _), t.on(`${Be}__${u}`, d);
|
|
2420
2420
|
},
|
|
2421
2421
|
unbind: function(s, h) {
|
|
2422
|
-
const
|
|
2423
|
-
t.emit(`${Be}__${
|
|
2422
|
+
const c = h.value || n;
|
|
2423
|
+
t.emit(`${Be}__${c}`);
|
|
2424
2424
|
}
|
|
2425
2425
|
}), p.directive("masonryTile", {
|
|
2426
2426
|
mounted: function(s, h) {
|
|
2427
|
-
const
|
|
2428
|
-
t.emit(`${ge}__${
|
|
2427
|
+
const c = h.value || n;
|
|
2428
|
+
t.emit(`${ge}__${c}`, {
|
|
2429
2429
|
element: s
|
|
2430
2430
|
}), new ui(s, function() {
|
|
2431
|
-
t.emit(`${Re}__${
|
|
2431
|
+
t.emit(`${Re}__${c}`, {
|
|
2432
2432
|
element: s
|
|
2433
2433
|
});
|
|
2434
2434
|
});
|
|
2435
2435
|
},
|
|
2436
2436
|
unbind: function(s, h) {
|
|
2437
|
-
const
|
|
2438
|
-
t.emit(`${Me}__${
|
|
2437
|
+
const c = h.value || n;
|
|
2438
|
+
t.emit(`${Me}__${c}`, {
|
|
2439
2439
|
element: s
|
|
2440
2440
|
});
|
|
2441
2441
|
}
|
|
2442
2442
|
});
|
|
2443
2443
|
{
|
|
2444
2444
|
const s = function(h) {
|
|
2445
|
-
const
|
|
2446
|
-
t.emit(`${ge}__${
|
|
2445
|
+
const c = h || n;
|
|
2446
|
+
t.emit(`${ge}__${c}`);
|
|
2447
2447
|
};
|
|
2448
2448
|
o.config.globalProperties.$redrawVueMasonry = s, o.provide("redrawVueMasonry", s);
|
|
2449
2449
|
}
|
|
@@ -2687,8 +2687,8 @@ function ye(o, e, t) {
|
|
|
2687
2687
|
if (typeof o != "string" || !o.includes("%"))
|
|
2688
2688
|
return o;
|
|
2689
2689
|
function n(h) {
|
|
2690
|
-
let
|
|
2691
|
-
return ["s", "pageTitle"].includes(h) ?
|
|
2690
|
+
let c;
|
|
2691
|
+
return ["s", "pageTitle"].includes(h) ? c = e.pageTitle : h.includes(".") ? c = h.split(".").reduce((a, u) => a && a[u] || void 0, e) : c = e[h], typeof c < "u" ? (c || "").replace(/"/g, '\\"') : !1;
|
|
2692
2692
|
}
|
|
2693
2693
|
let p = o;
|
|
2694
2694
|
try {
|
|
@@ -2696,8 +2696,8 @@ function ye(o, e, t) {
|
|
|
2696
2696
|
} catch {
|
|
2697
2697
|
}
|
|
2698
2698
|
return (p.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((h) => {
|
|
2699
|
-
const
|
|
2700
|
-
typeof
|
|
2699
|
+
const c = n(h.slice(1));
|
|
2700
|
+
typeof c == "string" && (o = o.replace(new RegExp(`\\${h}(\\W|$)`, "g"), (a, u) => `${c}${u}`).trim());
|
|
2701
2701
|
}), o.includes(Z) && (o.endsWith(Z) && (o = o.slice(0, -Z.length).trim()), o.startsWith(Z) && (o = o.slice(Z.length).trim()), o = o.replace(new RegExp(`\\${Z}\\s*\\${Z}`, "g"), Z), o = ye(o, { separator: t }, t)), o;
|
|
2702
2702
|
}
|
|
2703
2703
|
async function Pi(o) {
|
|
@@ -2728,53 +2728,53 @@ async function xi(o, e = {}) {
|
|
|
2728
2728
|
elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
|
|
2729
2729
|
};
|
|
2730
2730
|
for (const f of ["body", "head"]) {
|
|
2731
|
-
const
|
|
2732
|
-
for (const _ of [...
|
|
2731
|
+
const g = t?.[f]?.children;
|
|
2732
|
+
for (const _ of [...g].filter((d) => ve.includes(d.tagName.toLowerCase())))
|
|
2733
2733
|
s.elMap[_.getAttribute("data-hid") || ut(await Pi(_))] = _;
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
2736
2736
|
s.pendingSideEffects = { ...s.sideEffects || {} }, s.sideEffects = {};
|
|
2737
|
-
function h(f,
|
|
2738
|
-
const
|
|
2739
|
-
s.sideEffects[
|
|
2737
|
+
function h(f, g, _) {
|
|
2738
|
+
const d = `${f}:${g}`;
|
|
2739
|
+
s.sideEffects[d] = _, delete s.pendingSideEffects[d];
|
|
2740
2740
|
}
|
|
2741
|
-
function
|
|
2742
|
-
const
|
|
2743
|
-
s.elMap[f] =
|
|
2744
|
-
_[b] && _[b] !==
|
|
2741
|
+
function c({ id: f, $el: g, tag: _ }) {
|
|
2742
|
+
const d = _.tag.endsWith("Attrs");
|
|
2743
|
+
s.elMap[f] = g, d || (["textContent", "innerHTML"].forEach((b) => {
|
|
2744
|
+
_[b] && _[b] !== g[b] && (g[b] = _[b]);
|
|
2745
2745
|
}), h(f, "el", () => {
|
|
2746
2746
|
s.elMap[f].remove(), delete s.elMap[f];
|
|
2747
2747
|
})), Object.entries(_.props).forEach(([b, k]) => {
|
|
2748
|
-
const
|
|
2748
|
+
const m = `attr:${b}`;
|
|
2749
2749
|
if (b === "class")
|
|
2750
2750
|
for (const i of (k || "").split(" ").filter(Boolean))
|
|
2751
|
-
|
|
2751
|
+
d && h(f, `${m}:${i}`, () => g.classList.remove(i)), !g.classList.contains(i) && g.classList.add(i);
|
|
2752
2752
|
else
|
|
2753
|
-
|
|
2753
|
+
g.getAttribute(b) !== k && g.setAttribute(b, k === !0 ? "" : String(k)), d && h(f, m, () => g.removeAttribute(b));
|
|
2754
2754
|
});
|
|
2755
2755
|
}
|
|
2756
|
-
const
|
|
2756
|
+
const a = [], u = {
|
|
2757
2757
|
bodyClose: void 0,
|
|
2758
2758
|
bodyOpen: void 0,
|
|
2759
2759
|
head: void 0
|
|
2760
2760
|
};
|
|
2761
2761
|
for (const f of p) {
|
|
2762
|
-
const { tag:
|
|
2762
|
+
const { tag: g, shouldRender: _, id: d } = f;
|
|
2763
2763
|
if (_) {
|
|
2764
|
-
if (
|
|
2765
|
-
t.title =
|
|
2764
|
+
if (g.tag === "title") {
|
|
2765
|
+
t.title = g.textContent;
|
|
2766
2766
|
continue;
|
|
2767
2767
|
}
|
|
2768
|
-
f.$el = f.$el || s.elMap[
|
|
2768
|
+
f.$el = f.$el || s.elMap[d], f.$el ? c(f) : ve.includes(g.tag) && a.push(f);
|
|
2769
2769
|
}
|
|
2770
2770
|
}
|
|
2771
|
-
for (const f of
|
|
2772
|
-
const
|
|
2773
|
-
f.$el = t.createElement(f.tag.tag),
|
|
2771
|
+
for (const f of a) {
|
|
2772
|
+
const g = f.tag.tagPosition || "head";
|
|
2773
|
+
f.$el = t.createElement(f.tag.tag), c(f), u[g] = u[g] || t.createDocumentFragment(), u[g].appendChild(f.$el);
|
|
2774
2774
|
}
|
|
2775
2775
|
for (const f of p)
|
|
2776
2776
|
await o.hooks.callHook("dom:renderTag", f, t, h);
|
|
2777
|
-
|
|
2777
|
+
u.head && t.head.appendChild(u.head), u.bodyOpen && t.body.insertBefore(u.bodyOpen, t.body.firstChild), u.bodyClose && t.body.appendChild(u.bodyClose), Object.values(s.pendingSideEffects).forEach((f) => f()), o._dom = s, o.dirty = !1, await o.hooks.callHook("dom:rendered", { renders: p });
|
|
2778
2778
|
}
|
|
2779
2779
|
async function wi(o, e = {}) {
|
|
2780
2780
|
const t = e.delayFn || ((n) => setTimeout(n, 10));
|
|
@@ -2796,7 +2796,7 @@ function Oi(o) {
|
|
|
2796
2796
|
};
|
|
2797
2797
|
};
|
|
2798
2798
|
}
|
|
2799
|
-
const
|
|
2799
|
+
const Ai = ["templateParams", "htmlAttrs", "bodyAttrs"], Hi = {
|
|
2800
2800
|
hooks: {
|
|
2801
2801
|
"tag:normalise": function({ tag: o }) {
|
|
2802
2802
|
["hid", "vmid", "key"].forEach((n) => {
|
|
@@ -2810,13 +2810,13 @@ const Hi = ["templateParams", "htmlAttrs", "bodyAttrs"], Ai = {
|
|
|
2810
2810
|
o.tags.forEach((n) => {
|
|
2811
2811
|
const p = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p, s = e[p];
|
|
2812
2812
|
if (s) {
|
|
2813
|
-
let
|
|
2814
|
-
if (!
|
|
2815
|
-
const
|
|
2816
|
-
["class", "style"].forEach((
|
|
2817
|
-
|
|
2813
|
+
let c = n?.tagDuplicateStrategy;
|
|
2814
|
+
if (!c && Ai.includes(n.tag) && (c = "merge"), c === "merge") {
|
|
2815
|
+
const a = s.props;
|
|
2816
|
+
["class", "style"].forEach((u) => {
|
|
2817
|
+
a[u] && (n.props[u] ? (u === "style" && !a[u].endsWith(";") && (a[u] += ";"), n.props[u] = `${a[u]} ${n.props[u]}`) : n.props[u] = a[u]);
|
|
2818
2818
|
}), e[p].props = {
|
|
2819
|
-
...
|
|
2819
|
+
...a,
|
|
2820
2820
|
...n.props
|
|
2821
2821
|
};
|
|
2822
2822
|
return;
|
|
@@ -2875,21 +2875,21 @@ const Bi = (o) => ({
|
|
|
2875
2875
|
return;
|
|
2876
2876
|
const p = e.tag.tag === "bodyAttrs" ? t.defaultView : e.$el;
|
|
2877
2877
|
Object.entries(e.tag._eventHandlers).forEach(([s, h]) => {
|
|
2878
|
-
const
|
|
2879
|
-
if (n(e.id,
|
|
2880
|
-
}), e.$el.hasAttribute(
|
|
2878
|
+
const c = `${e.tag._d || e.tag._p}:${s}`, a = s.slice(2).toLowerCase(), u = `data-h-${a}`;
|
|
2879
|
+
if (n(e.id, c, () => {
|
|
2880
|
+
}), e.$el.hasAttribute(u))
|
|
2881
2881
|
return;
|
|
2882
|
-
e.$el.setAttribute(
|
|
2882
|
+
e.$el.setAttribute(u, "");
|
|
2883
2883
|
let f;
|
|
2884
|
-
const
|
|
2884
|
+
const g = (_) => {
|
|
2885
2885
|
h(_), f?.disconnect();
|
|
2886
2886
|
};
|
|
2887
|
-
s in e.$el.dataset ?
|
|
2888
|
-
_.some((b) => b.attributeName === `data-${s}`) && (
|
|
2887
|
+
s in e.$el.dataset ? g(new Event(s.replace("on", ""))) : Pt.includes(s) && typeof MutationObserver < "u" ? (f = new MutationObserver((_) => {
|
|
2888
|
+
_.some((b) => b.attributeName === `data-${s}`) && (g(new Event(s.replace("on", ""))), f?.disconnect());
|
|
2889
2889
|
}), f.observe(e.$el, {
|
|
2890
2890
|
attributes: !0
|
|
2891
|
-
})) : p.addEventListener(
|
|
2892
|
-
f?.disconnect(), p.removeEventListener(
|
|
2891
|
+
})) : p.addEventListener(a, g), n(e.id, c, () => {
|
|
2892
|
+
f?.disconnect(), p.removeEventListener(a, g), e.$el.removeAttribute(u);
|
|
2893
2893
|
});
|
|
2894
2894
|
});
|
|
2895
2895
|
}
|
|
@@ -2921,15 +2921,15 @@ const Bi = (o) => ({
|
|
|
2921
2921
|
}, qi = (o) => ({
|
|
2922
2922
|
hooks: {
|
|
2923
2923
|
"tags:resolve": (e) => {
|
|
2924
|
-
const { tags: t } = e, n = t.find((
|
|
2924
|
+
const { tags: t } = e, n = t.find((c) => c.tag === "title")?.textContent, p = t.findIndex((c) => c.tag === "templateParams"), s = p !== -1 ? t[p].props : {}, h = s.separator || "|";
|
|
2925
2925
|
delete s.separator, s.pageTitle = ye(s.pageTitle || n || "", s, h);
|
|
2926
|
-
for (const
|
|
2927
|
-
const
|
|
2928
|
-
|
|
2929
|
-
typeof u
|
|
2926
|
+
for (const c of t.filter((a) => a.processTemplateParams !== !1)) {
|
|
2927
|
+
const a = Fi[c.tag];
|
|
2928
|
+
a && typeof c.props[a] == "string" ? c.props[a] = ye(c.props[a], s, h) : (c.processTemplateParams === !0 || ["titleTemplate", "title"].includes(c.tag)) && ["innerHTML", "textContent"].forEach((u) => {
|
|
2929
|
+
typeof c[u] == "string" && (c[u] = ye(c[u], s, h));
|
|
2930
2930
|
});
|
|
2931
2931
|
}
|
|
2932
|
-
o._templateParams = s, o._separator = h, e.tags = t.filter((
|
|
2932
|
+
o._templateParams = s, o._separator = h, e.tags = t.filter((c) => c.tag !== "templateParams");
|
|
2933
2933
|
}
|
|
2934
2934
|
}
|
|
2935
2935
|
}), Ui = {
|
|
@@ -2973,10 +2973,10 @@ function Yi(o = {}) {
|
|
|
2973
2973
|
const e = bi();
|
|
2974
2974
|
e.addHooks(o.hooks || {}), o.document = o.document || (Ci ? document : void 0);
|
|
2975
2975
|
const t = !o.document, n = () => {
|
|
2976
|
-
|
|
2976
|
+
c.dirty = !0, e.callHook("entries:updated", c);
|
|
2977
2977
|
};
|
|
2978
2978
|
let p = 0, s = [];
|
|
2979
|
-
const h = [],
|
|
2979
|
+
const h = [], c = {
|
|
2980
2980
|
plugins: h,
|
|
2981
2981
|
dirty: !1,
|
|
2982
2982
|
resolvedOptions: o,
|
|
@@ -2984,44 +2984,44 @@ function Yi(o = {}) {
|
|
|
2984
2984
|
headEntries() {
|
|
2985
2985
|
return s;
|
|
2986
2986
|
},
|
|
2987
|
-
use(
|
|
2988
|
-
const
|
|
2989
|
-
(!
|
|
2987
|
+
use(a) {
|
|
2988
|
+
const u = typeof a == "function" ? a(c) : a;
|
|
2989
|
+
(!u.key || !h.some((f) => f.key === u.key)) && (h.push(u), ht(u.mode, t) && e.addHooks(u.hooks || {}));
|
|
2990
2990
|
},
|
|
2991
|
-
push(
|
|
2992
|
-
delete
|
|
2991
|
+
push(a, u) {
|
|
2992
|
+
delete u?.head;
|
|
2993
2993
|
const f = {
|
|
2994
2994
|
_i: p++,
|
|
2995
|
-
input:
|
|
2996
|
-
...
|
|
2995
|
+
input: a,
|
|
2996
|
+
...u
|
|
2997
2997
|
};
|
|
2998
2998
|
return ht(f.mode, t) && (s.push(f), n()), {
|
|
2999
2999
|
dispose() {
|
|
3000
|
-
s = s.filter((
|
|
3000
|
+
s = s.filter((g) => g._i !== f._i), e.callHook("entries:updated", c), n();
|
|
3001
3001
|
},
|
|
3002
3002
|
// a patch is the same as creating a new entry, just a nice DX
|
|
3003
|
-
patch(
|
|
3004
|
-
s = s.map((_) => (_._i === f._i && (_.input = f.input =
|
|
3003
|
+
patch(g) {
|
|
3004
|
+
s = s.map((_) => (_._i === f._i && (_.input = f.input = g), _)), n();
|
|
3005
3005
|
}
|
|
3006
3006
|
};
|
|
3007
3007
|
},
|
|
3008
3008
|
async resolveTags() {
|
|
3009
|
-
const
|
|
3010
|
-
await e.callHook("entries:resolve",
|
|
3011
|
-
for (const
|
|
3012
|
-
const f =
|
|
3013
|
-
if (
|
|
3014
|
-
for (const
|
|
3015
|
-
const _ = { tag:
|
|
3016
|
-
await e.callHook("tag:normalise", _),
|
|
3009
|
+
const a = { tags: [], entries: [...s] };
|
|
3010
|
+
await e.callHook("entries:resolve", a);
|
|
3011
|
+
for (const u of a.entries) {
|
|
3012
|
+
const f = u.resolvedInput || u.input;
|
|
3013
|
+
if (u.resolvedInput = await (u.transform ? u.transform(f) : f), u.resolvedInput)
|
|
3014
|
+
for (const g of await Vi(u)) {
|
|
3015
|
+
const _ = { tag: g, entry: u, resolvedOptions: c.resolvedOptions };
|
|
3016
|
+
await e.callHook("tag:normalise", _), a.tags.push(_.tag);
|
|
3017
3017
|
}
|
|
3018
3018
|
}
|
|
3019
|
-
return await e.callHook("tags:beforeResolve",
|
|
3019
|
+
return await e.callHook("tags:beforeResolve", a), await e.callHook("tags:resolve", a), await e.callHook("tags:afterResolve", a), a.tags;
|
|
3020
3020
|
},
|
|
3021
3021
|
ssr: t
|
|
3022
3022
|
};
|
|
3023
3023
|
return [
|
|
3024
|
-
|
|
3024
|
+
Hi,
|
|
3025
3025
|
Di,
|
|
3026
3026
|
Bi,
|
|
3027
3027
|
Wi,
|
|
@@ -3030,18 +3030,18 @@ function Yi(o = {}) {
|
|
|
3030
3030
|
Ui,
|
|
3031
3031
|
Gi,
|
|
3032
3032
|
...o?.plugins || []
|
|
3033
|
-
].forEach((
|
|
3033
|
+
].forEach((a) => c.use(a)), c.hooks.callHook("init", c), c;
|
|
3034
3034
|
}
|
|
3035
3035
|
const Ki = vo.startsWith("3");
|
|
3036
3036
|
function Qi(o) {
|
|
3037
|
-
return typeof o == "function" ? o() :
|
|
3037
|
+
return typeof o == "function" ? o() : l(o);
|
|
3038
3038
|
}
|
|
3039
3039
|
function qe(o, e = "") {
|
|
3040
3040
|
if (o instanceof Promise)
|
|
3041
3041
|
return o;
|
|
3042
3042
|
const t = Qi(o);
|
|
3043
3043
|
return !o || !t ? t : Array.isArray(t) ? t.map((n) => qe(n, e)) : typeof t == "object" ? Object.fromEntries(
|
|
3044
|
-
Object.entries(t).map(([n, p]) => n === "titleTemplate" || n.startsWith("on") ? [n,
|
|
3044
|
+
Object.entries(t).map(([n, p]) => n === "titleTemplate" || n.startsWith("on") ? [n, l(p)] : [n, qe(p, n)])
|
|
3045
3045
|
) : t;
|
|
3046
3046
|
}
|
|
3047
3047
|
const Ji = {
|
|
@@ -3066,28 +3066,28 @@ function er(o = {}) {
|
|
|
3066
3066
|
}
|
|
3067
3067
|
const tr = yo(), or = er();
|
|
3068
3068
|
class nr extends HTMLElement {
|
|
3069
|
+
vueApp;
|
|
3069
3070
|
constructor() {
|
|
3070
3071
|
super();
|
|
3071
3072
|
}
|
|
3072
3073
|
connectedCallback() {
|
|
3073
3074
|
const e = typeof fe == "function" ? fe.options : fe;
|
|
3074
3075
|
let t = Array.isArray(e.props) ? e.props : Object.keys(e.props || {});
|
|
3075
|
-
const n = (
|
|
3076
|
+
const n = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (u, f) => (f ? "-" : "") + u.toLowerCase()), p = (a) => a.replace(/-./g, (u) => u[1].toUpperCase()), s = {};
|
|
3076
3077
|
t = t.map(n);
|
|
3077
3078
|
const h = {};
|
|
3078
|
-
for (const
|
|
3079
|
-
const
|
|
3080
|
-
console.log(
|
|
3079
|
+
for (const a of this.attributes) {
|
|
3080
|
+
const u = a.name, f = u.split(".");
|
|
3081
|
+
console.log(u, f.length), f.length > 1 && (h[f[0]] || (h[f[0]] = {}), h[f[0]][p(f[1])] = a.value);
|
|
3081
3082
|
}
|
|
3082
3083
|
console.log(h), console.log(t);
|
|
3083
|
-
for (const
|
|
3084
|
-
let
|
|
3085
|
-
h.hasOwnProperty(
|
|
3084
|
+
for (const a of t) {
|
|
3085
|
+
let u = this.attributes.getNamedItem(a)?.value;
|
|
3086
|
+
h.hasOwnProperty(a) && (u = h[a]), console.log(u, a), s[a] = u;
|
|
3086
3087
|
}
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
u.mount(d), this.appendChild(d.children[0]);
|
|
3088
|
+
this.vueApp = bo(fe, s), this.vueApp.use(or), this.vueApp.use(tr), this.vueApp.use(It), this.vueApp.use(ko), this.vueApp.use(So), this.vueApp.use(_o, { bootstrap: !0 });
|
|
3089
|
+
const c = document.createElement("div");
|
|
3090
|
+
this.vueApp.mount(c), this.appendChild(c.children[0]);
|
|
3091
3091
|
}
|
|
3092
3092
|
}
|
|
3093
3093
|
window.customElements.define("konnectio-hotel", nr);
|