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