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