@konnectio/core 4.0.56-rc16 → 4.0.56-rc17
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-SGZXrFG1.js → ActionField-FHpkuvKb.js} +1 -1
- package/dist/ActionField-FHpkuvKb.js.br +0 -0
- package/dist/{AvailabilitySkeleton-19huhDbT.js → AvailabilitySkeleton-5cdinrJb.js} +3 -3
- package/dist/AvailabilitySkeleton-5cdinrJb.js.br +0 -0
- package/dist/{CheckoutWindow-o4wiWlxF.js → CheckoutWindow-2QBoV8Ux.js} +1 -1
- package/dist/CheckoutWindow-2QBoV8Ux.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js +8026 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js.br +0 -0
- package/dist/{Field-G2DlJtS7.js → Field-XgLyezkE.js} +1 -1
- package/dist/Field-XgLyezkE.js.br +0 -0
- package/dist/ThankYou-qlEQeAKd.js +12057 -0
- package/dist/ThankYou-qlEQeAKd.js.br +0 -0
- package/dist/{_-dt4Hj4aJ.js → _-488L5zGs.js} +5155 -5314
- package/dist/_-488L5zGs.js.br +0 -0
- package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
- package/dist/availability.js +6 -6
- package/dist/availability.js.br +0 -0
- package/dist/{event-XF6pKTqj.js → event-TnRfky1i.js} +7 -7
- package/dist/event-TnRfky1i.js.br +0 -0
- package/dist/event.js +7 -7
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +4 -4
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +5 -5
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +855 -814
- package/dist/hotel.js.br +0 -0
- package/dist/polyfill.js +97 -97
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +5 -5
- package/dist/ActionField-SGZXrFG1.js.br +0 -0
- package/dist/AvailabilitySkeleton-19huhDbT.js.br +0 -0
- package/dist/CheckoutWindow-o4wiWlxF.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-RdYEm2Lf.js +0 -8558
- package/dist/DateField.vue_vue_type_style_index_0_lang-RdYEm2Lf.js.br +0 -0
- package/dist/Field-G2DlJtS7.js.br +0 -0
- package/dist/ThankYou-HbdcEofD.js +0 -13639
- package/dist/ThankYou-HbdcEofD.js.br +0 -0
- package/dist/_-dt4Hj4aJ.js.br +0 -0
- package/dist/_commonjsHelpers-2ufMB8rV.js +0 -30
- package/dist/event-XF6pKTqj.js.br +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { k as j, B as
|
|
2
|
-
import { R as
|
|
3
|
-
import { A as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { C as Ne, P as xo, a as
|
|
6
|
-
import { c as
|
|
7
|
-
import "./ActionField-
|
|
8
|
-
import "./Field-
|
|
9
|
-
const Ao = { key: 0 },
|
|
1
|
+
import { k as j, B as re, am as ao, s as Q, c as me, D as gt, F as se, o as E, m as R, M as lo, p as s, w as x, ac as Pe, n as y, P as V, a2 as ne, R as Ze, an as uo, x as I, Y as z, K as B, y as P, $ as Fe, ao as ue, t as C, N as K, W as ie, f as q, _ as Ce, a5 as vt, a6 as yt, v as J, r as ce, ap as bt, H as Ge, G as _e, q as kt, C as le, aq as co, X as po, A as Ee, I as _t, l as et, T as oe, z as Y, ar as ho, a4 as fo, ab as mo, a0 as go, L as tt, J as N, a3 as vo, as as Et, at as yo, a7 as bo, a8 as ko, a9 as _o, aa as Eo } from "./_-488L5zGs.js";
|
|
2
|
+
import { R as To, B as je, a as Co, S as Io, M as $o, T as So, G as Vo } from "./ThankYou-qlEQeAKd.js";
|
|
3
|
+
import { A as Lo, H as Po } from "./AvailabilitySkeleton-5cdinrJb.js";
|
|
4
|
+
import { _ as wo } from "./DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js";
|
|
5
|
+
import { C as Ne, P as xo, a as Oo } from "./CheckoutWindow-2QBoV8Ux.js";
|
|
6
|
+
import { c as Tt, g as Ct } from "./_commonjsHelpers-f3sTPFkQ.js";
|
|
7
|
+
import "./ActionField-FHpkuvKb.js";
|
|
8
|
+
import "./Field-XgLyezkE.js";
|
|
9
|
+
const Ao = { key: 0 }, Ho = { key: 1 }, we = /* @__PURE__ */ j({
|
|
10
10
|
__name: "HotelReservationForm",
|
|
11
11
|
props: {
|
|
12
12
|
showGiftCard: { type: Boolean, default: !1 },
|
|
13
13
|
showTermsNotice: { type: Boolean, default: !1 }
|
|
14
14
|
},
|
|
15
15
|
setup(o) {
|
|
16
|
-
const { t: e } =
|
|
16
|
+
const { t: e } = re(), t = ao(), {
|
|
17
17
|
hideArrivalDepartureInputs: n,
|
|
18
18
|
disableArrivalUserSelection: p,
|
|
19
|
-
disableDepartureUserSelection:
|
|
19
|
+
disableDepartureUserSelection: a,
|
|
20
20
|
arrivalDefault: h,
|
|
21
21
|
departureDefault: c,
|
|
22
22
|
currency: l
|
|
23
|
-
} =
|
|
23
|
+
} = Q(me()), {
|
|
24
24
|
arrivalDate: u,
|
|
25
25
|
departureDate: f
|
|
26
|
-
} =
|
|
26
|
+
} = Q(gt()), {
|
|
27
27
|
arrivalTime: g,
|
|
28
28
|
departureTime: _,
|
|
29
29
|
roomDisplay: d,
|
|
@@ -33,117 +33,117 @@ const Ao = { key: 0 }, Oo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
33
33
|
getSelectedPackageRoom: i,
|
|
34
34
|
selectedPackage: r,
|
|
35
35
|
discountVouchers: v
|
|
36
|
-
} =
|
|
37
|
-
function
|
|
38
|
-
return L.reduce((
|
|
36
|
+
} = Q(se()), { removeRoom: T } = se();
|
|
37
|
+
function S(L) {
|
|
38
|
+
return L.reduce((M, { totalPrice: A }) => M + A, 0);
|
|
39
39
|
}
|
|
40
|
-
return (L,
|
|
41
|
-
"total-price":
|
|
40
|
+
return (L, H) => (E(), R(To, {
|
|
41
|
+
"total-price": s(k),
|
|
42
42
|
"show-gift-card": L.showGiftCard,
|
|
43
43
|
"show-terms-notice": L.showTermsNotice,
|
|
44
|
-
"is-sidebar-loading":
|
|
45
|
-
notice:
|
|
46
|
-
},
|
|
47
|
-
form:
|
|
48
|
-
|
|
44
|
+
"is-sidebar-loading": s(m),
|
|
45
|
+
notice: s(e)("hotel.reservationNotice")
|
|
46
|
+
}, lo({
|
|
47
|
+
form: x(() => [
|
|
48
|
+
Pe(L.$slots, "form")
|
|
49
49
|
]),
|
|
50
|
-
"reservation-summary":
|
|
50
|
+
"reservation-summary": x(() => [
|
|
51
51
|
y("li", null, [
|
|
52
|
-
y("span", null, V(
|
|
53
|
-
y("b", null, V(
|
|
52
|
+
y("span", null, V(s(e)("booking.reservation.arrival")), 1),
|
|
53
|
+
y("b", null, V(s(n) ? s(ne)(s(u)) : `${s(ne)(s(u))}, ${s(p) ? s(h) : s(g)}`), 1)
|
|
54
54
|
]),
|
|
55
55
|
y("li", null, [
|
|
56
|
-
y("span", null, V(
|
|
57
|
-
y("b", null, V(
|
|
56
|
+
y("span", null, V(s(e)("booking.reservation.departure")), 1),
|
|
57
|
+
y("b", null, V(s(n) ? s(ne)(s(f)) : `${s(ne)(s(f))}, ${s(a) ? s(c) : s(_)}`), 1)
|
|
58
58
|
]),
|
|
59
59
|
y("li", null, [
|
|
60
|
-
y("span", null, V(
|
|
61
|
-
y("b", null, V(
|
|
60
|
+
y("span", null, V(s(e)("booking.reservation.nights")), 1),
|
|
61
|
+
y("b", null, V(s(Ze)(s(u), s(f))) + " " + V(s(uo)(s(Ze)(s(u), s(f)) === 1 ? s(e)("booking.reservation.night") : s(e)("booking.reservation.nights"))), 1)
|
|
62
62
|
]),
|
|
63
|
-
|
|
64
|
-
key:
|
|
63
|
+
s(v) ? (E(!0), I(B, { key: 0 }, z(s(v), (M) => (E(), I("li", {
|
|
64
|
+
key: M.id
|
|
65
65
|
}, [
|
|
66
|
-
y("span", null, V(`${
|
|
67
|
-
y("b", null, V(
|
|
68
|
-
]))), 128)) :
|
|
66
|
+
y("span", null, V(`${s(e)("general.discountCode")} (${M.value})`), 1),
|
|
67
|
+
y("b", null, V(M.key), 1)
|
|
68
|
+
]))), 128)) : P("", !0)
|
|
69
69
|
]),
|
|
70
|
-
"price-summary":
|
|
71
|
-
isNaN(
|
|
72
|
-
roomGroupID:
|
|
73
|
-
title:
|
|
74
|
-
variants:
|
|
75
|
-
}) => (E(), I("div", { key:
|
|
70
|
+
"price-summary": x(() => [
|
|
71
|
+
isNaN(s(b)) && s(d).length > 0 ? (E(!0), I(B, { key: 0 }, z(s(d), ({
|
|
72
|
+
roomGroupID: M,
|
|
73
|
+
title: A,
|
|
74
|
+
variants: F
|
|
75
|
+
}) => (E(), I("div", { key: M }, [
|
|
76
76
|
y("h6", null, [
|
|
77
|
-
y("span", null, V(
|
|
77
|
+
y("span", null, V(A), 1)
|
|
78
78
|
]),
|
|
79
|
-
(E(!0), I(B, null, z(
|
|
80
|
-
(E(!0), I(B, null, z(X.rooms, (
|
|
79
|
+
(E(!0), I(B, null, z(F, (X, ae) => (E(), I("div", { key: ae }, [
|
|
80
|
+
(E(!0), I(B, null, z(X.rooms, (G, Ie) => (E(), I("ul", { key: Ie }, [
|
|
81
81
|
y("li", null, [
|
|
82
82
|
y("span", null, [
|
|
83
83
|
y("span", null, [
|
|
84
|
-
|
|
85
|
-
C(
|
|
84
|
+
Fe(V(s(ue)(X.name)) + " ( ", 1),
|
|
85
|
+
C(K, {
|
|
86
86
|
icon: "male",
|
|
87
87
|
type: "fas",
|
|
88
88
|
color: "font"
|
|
89
89
|
}),
|
|
90
|
-
y("span", null, V(
|
|
91
|
-
|
|
92
|
-
C(
|
|
90
|
+
y("span", null, V(G.adultsCount), 1),
|
|
91
|
+
G.childrenCount > 0 ? (E(), I(B, { key: 0 }, [
|
|
92
|
+
C(K, {
|
|
93
93
|
icon: "child",
|
|
94
94
|
type: "fas",
|
|
95
95
|
color: "font"
|
|
96
96
|
}),
|
|
97
|
-
y("span", null, V(
|
|
98
|
-
], 64)) :
|
|
99
|
-
|
|
97
|
+
y("span", null, V(G.childrenCount), 1)
|
|
98
|
+
], 64)) : P("", !0),
|
|
99
|
+
Fe(") ")
|
|
100
100
|
])
|
|
101
101
|
]),
|
|
102
102
|
y("b", null, [
|
|
103
|
-
y("span", null, V(
|
|
104
|
-
|
|
103
|
+
y("span", null, V(s(ie)(G.totalPrice, s(l))), 1),
|
|
104
|
+
P("", !0)
|
|
105
105
|
])
|
|
106
106
|
]),
|
|
107
|
-
|
|
108
|
-
y("span", null, V(
|
|
109
|
-
y("b", null, V(
|
|
110
|
-
])) :
|
|
107
|
+
S(G.roomAddons) > 0 ? (E(), I("li", Ao, [
|
|
108
|
+
y("span", null, V(s(e)("general.addons")), 1),
|
|
109
|
+
y("b", null, V(s(ie)(S(G.roomAddons), s(l))), 1)
|
|
110
|
+
])) : P("", !0)
|
|
111
111
|
]))), 128))
|
|
112
112
|
]))), 128))
|
|
113
|
-
]))), 128)) :
|
|
114
|
-
|
|
113
|
+
]))), 128)) : P("", !0),
|
|
114
|
+
s(i) && s(r) ? (E(), I("div", Ho, [
|
|
115
115
|
y("h6", null, [
|
|
116
|
-
y("span", null, V(
|
|
116
|
+
y("span", null, V(s(ue)(s(r).name)), 1)
|
|
117
117
|
]),
|
|
118
118
|
y("div", null, [
|
|
119
119
|
y("ul", null, [
|
|
120
120
|
y("li", null, [
|
|
121
121
|
y("span", null, [
|
|
122
|
-
y("span", null, V(
|
|
122
|
+
y("span", null, V(s(ue)(s(i).title)), 1)
|
|
123
123
|
]),
|
|
124
124
|
y("b", null, [
|
|
125
|
-
y("span", null, V(
|
|
125
|
+
y("span", null, V(s(ie)(s(i).extraPrice, s(l))), 1)
|
|
126
126
|
])
|
|
127
127
|
])
|
|
128
128
|
])
|
|
129
129
|
])
|
|
130
|
-
])) :
|
|
130
|
+
])) : P("", !0)
|
|
131
131
|
]),
|
|
132
|
-
navigation:
|
|
133
|
-
|
|
132
|
+
navigation: x(() => [
|
|
133
|
+
Pe(L.$slots, "navigation")
|
|
134
134
|
]),
|
|
135
135
|
_: 2
|
|
136
136
|
}, [
|
|
137
|
-
|
|
137
|
+
s(t).addons ? {
|
|
138
138
|
name: "addons",
|
|
139
|
-
fn:
|
|
140
|
-
|
|
139
|
+
fn: x(() => [
|
|
140
|
+
Pe(L.$slots, "addons")
|
|
141
141
|
]),
|
|
142
142
|
key: "0"
|
|
143
143
|
} : void 0
|
|
144
144
|
]), 1032, ["total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
|
|
145
145
|
}
|
|
146
|
-
}),
|
|
146
|
+
}), Do = (o) => (vt("data-v-69fe83d8"), o = o(), yt(), o), Mo = { class: "konnectio-room-config-option" }, Ro = { key: 0 }, Bo = { class: "konnectio-selected-room-config" }, zo = { class: "konnectio-selected-room-config-people" }, Wo = { key: 0 }, Fo = { class: "konnectio-selected-room-config-price" }, No = /* @__PURE__ */ Do(() => /* @__PURE__ */ y("span", null, null, -1)), qo = /* @__PURE__ */ j({
|
|
147
147
|
__name: "RoomConfigField",
|
|
148
148
|
props: {
|
|
149
149
|
modelValue: {},
|
|
@@ -154,15 +154,15 @@ const Ao = { key: 0 }, Oo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
154
154
|
},
|
|
155
155
|
emits: ["update:modelValue"],
|
|
156
156
|
setup(o, { emit: e }) {
|
|
157
|
-
const { t } =
|
|
157
|
+
const { t } = re(), { currency: n } = Q(me()), p = e, a = o;
|
|
158
158
|
function h(l) {
|
|
159
159
|
p("update:modelValue", l);
|
|
160
160
|
}
|
|
161
161
|
const c = q({
|
|
162
|
-
get: () =>
|
|
162
|
+
get: () => a.modelValue,
|
|
163
163
|
set: (l) => h(l)
|
|
164
164
|
});
|
|
165
|
-
return (l, u) => (E(), R(
|
|
165
|
+
return (l, u) => (E(), R(Ce, {
|
|
166
166
|
modelValue: c.value,
|
|
167
167
|
"onUpdate:modelValue": u[0] || (u[0] = (f) => c.value = f),
|
|
168
168
|
label: l.label,
|
|
@@ -175,57 +175,57 @@ const Ao = { key: 0 }, Oo = { key: 1 }, Pe = /* @__PURE__ */ j({
|
|
|
175
175
|
required: l.required,
|
|
176
176
|
searchable: !1
|
|
177
177
|
}, {
|
|
178
|
-
option:
|
|
179
|
-
y("span",
|
|
178
|
+
option: x(({ data: f }) => [
|
|
179
|
+
y("span", Mo, [
|
|
180
180
|
y("div", null, [
|
|
181
|
-
C(
|
|
181
|
+
C(K, {
|
|
182
182
|
icon: "male",
|
|
183
183
|
type: "fas",
|
|
184
184
|
color: "font"
|
|
185
185
|
}),
|
|
186
186
|
y("span", null, V(`${f.adults}`), 1),
|
|
187
|
-
f.children > 0 ? (E(), I("span",
|
|
188
|
-
C(
|
|
187
|
+
f.children > 0 ? (E(), I("span", Ro, [
|
|
188
|
+
C(K, {
|
|
189
189
|
icon: "child",
|
|
190
190
|
type: "fas",
|
|
191
191
|
color: "font"
|
|
192
192
|
}),
|
|
193
193
|
y("span", null, V(`${f.children}`), 1)
|
|
194
|
-
])) :
|
|
194
|
+
])) : P("", !0)
|
|
195
195
|
]),
|
|
196
|
-
y("span", null, V(`(${
|
|
196
|
+
y("span", null, V(`(${s(ie)(f.price, s(n))})`), 1)
|
|
197
197
|
])
|
|
198
198
|
]),
|
|
199
|
-
"selected-option":
|
|
200
|
-
y("div",
|
|
201
|
-
y("div",
|
|
199
|
+
"selected-option": x(({ data: f }) => [
|
|
200
|
+
y("div", Bo, [
|
|
201
|
+
y("div", zo, [
|
|
202
202
|
y("div", null, [
|
|
203
|
-
|
|
204
|
-
y("span", null, V(`${f.adults} ${f.adults === 1 ?
|
|
203
|
+
P("", !0),
|
|
204
|
+
y("span", null, V(`${f.adults} ${f.adults === 1 ? s(t)("general.adult") : s(t)("general.adults")}`), 1)
|
|
205
205
|
]),
|
|
206
|
-
f.children > 0 ? (E(), I("div",
|
|
207
|
-
|
|
208
|
-
y("span", null, V(`& ${f.children} ${f.children === 1 ?
|
|
209
|
-
])) :
|
|
206
|
+
f.children > 0 ? (E(), I("div", Wo, [
|
|
207
|
+
P("", !0),
|
|
208
|
+
y("span", null, V(`& ${f.children} ${f.children === 1 ? s(t)("general.child") : s(t)("general.children")}`), 1)
|
|
209
|
+
])) : P("", !0)
|
|
210
210
|
]),
|
|
211
|
-
y("div",
|
|
211
|
+
y("div", Fo, [
|
|
212
212
|
No,
|
|
213
|
-
|
|
213
|
+
Fe(" " + V(`(${s(ie)(f.price, s(n))})`), 1)
|
|
214
214
|
])
|
|
215
215
|
])
|
|
216
216
|
]),
|
|
217
217
|
_: 1
|
|
218
218
|
}, 8, ["modelValue", "label", "options", "readonly", "required"]));
|
|
219
219
|
}
|
|
220
|
-
}),
|
|
221
|
-
const
|
|
220
|
+
}), Uo = /* @__PURE__ */ J(qo, [["__scopeId", "data-v-69fe83d8"]]), Go = { class: "konnectio-availability-listing-selection" }, jo = { key: 1 }, Yo = { class: "fresh-booking-listing-config-body" }, Ko = { class: "fresh-booking-listing-units-body" };
|
|
221
|
+
const Qo = /* @__PURE__ */ j({
|
|
222
222
|
__name: "Hotel",
|
|
223
223
|
props: {
|
|
224
224
|
room: {},
|
|
225
225
|
layout: {}
|
|
226
226
|
},
|
|
227
227
|
setup(o) {
|
|
228
|
-
const { t: e } =
|
|
228
|
+
const { t: e } = re(), t = o, n = ce([]);
|
|
229
229
|
function p(r) {
|
|
230
230
|
n.value[r].config.push({
|
|
231
231
|
id: NaN,
|
|
@@ -233,10 +233,10 @@ const Ko = /* @__PURE__ */ j({
|
|
|
233
233
|
addons: []
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const a = q(() => t.room.rates.map((r) => ({
|
|
237
237
|
label: r.name,
|
|
238
238
|
value: r.id
|
|
239
|
-
}))), { hideAvailableRoomAmount: h } =
|
|
239
|
+
}))), { hideAvailableRoomAmount: h } = Q(me()), { roomSelect: c } = Q(se()), { addToCart: l, removeFromCart: u } = bt(), f = (r, v) => t.room.rates.find((T) => T.id === r)?.occupantRates.find((T) => T.index === v), g = q(() => t.room.rates.reduce(
|
|
240
240
|
(r, v) => r < v.rackRate ? r : v.rackRate,
|
|
241
241
|
1 / 0
|
|
242
242
|
)), _ = q(() => t.room.rates.every((r) => r.isBreakfastIncluded === !0)), d = (r, v) => f(r, v) ? f(r, v)?.rooms : null, b = (r) => t.room.rates.length > 0 ? t.room.rates.find((v) => v.id === r)?.occupantRates.map((v) => ({
|
|
@@ -263,28 +263,28 @@ const Ko = /* @__PURE__ */ j({
|
|
|
263
263
|
}]
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
|
-
|
|
266
|
+
Ge(() => {
|
|
267
267
|
m();
|
|
268
268
|
});
|
|
269
269
|
const i = q(() => JSON.parse(JSON.stringify(n.value)));
|
|
270
|
-
return
|
|
271
|
-
v.length > 0 && r.forEach((T,
|
|
272
|
-
T.config.forEach((L,
|
|
273
|
-
const
|
|
274
|
-
|
|
270
|
+
return _e(i, (r, v) => {
|
|
271
|
+
v.length > 0 && r.forEach((T, S) => {
|
|
272
|
+
T.config.forEach((L, H) => {
|
|
273
|
+
const M = L.units, A = v[S].config[H].units;
|
|
274
|
+
M !== A && (M > A ? (n.value[S].config[H].addons.push({}), l({
|
|
275
275
|
id: t.room.id,
|
|
276
276
|
name: t.room.title,
|
|
277
|
-
value: t.room.rates[
|
|
278
|
-
})) : (n.value[
|
|
277
|
+
value: t.room.rates[S].rackRate
|
|
278
|
+
})) : (n.value[S].config[H].addons.pop(), u({
|
|
279
279
|
id: t.room.id,
|
|
280
280
|
name: t.room.title,
|
|
281
|
-
value: t.room.rates[
|
|
281
|
+
value: t.room.rates[S].rackRate
|
|
282
282
|
})));
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
|
-
}, { deep: !0 }),
|
|
285
|
+
}, { deep: !0 }), _e(n, () => {
|
|
286
286
|
c.value[t.room.id] = n.value;
|
|
287
|
-
}, { deep: !0 }), (r, v) => (E(), R(
|
|
287
|
+
}, { deep: !0 }), (r, v) => (E(), R(je, {
|
|
288
288
|
"listing-id": r.room.id,
|
|
289
289
|
gallery: r.room.images,
|
|
290
290
|
name: r.room.title,
|
|
@@ -294,69 +294,69 @@ const Ko = /* @__PURE__ */ j({
|
|
|
294
294
|
"prices-from": g.value,
|
|
295
295
|
"includes-breakfast": _.value
|
|
296
296
|
}, {
|
|
297
|
-
action:
|
|
298
|
-
y("div",
|
|
299
|
-
(E(!0), I(B, null, z(n.value, (T,
|
|
297
|
+
action: x(() => [
|
|
298
|
+
y("div", Go, [
|
|
299
|
+
(E(!0), I(B, null, z(n.value, (T, S) => (E(), I("div", {
|
|
300
300
|
key: T.id,
|
|
301
301
|
class: "freshbooking-hotel-room"
|
|
302
302
|
}, [
|
|
303
|
-
k.value ? (E(), R(
|
|
303
|
+
k.value ? (E(), R(Ce, {
|
|
304
304
|
key: 0,
|
|
305
305
|
modelValue: T.id,
|
|
306
306
|
"onUpdate:modelValue": (L) => T.id = L,
|
|
307
|
-
label:
|
|
308
|
-
placeholder:
|
|
309
|
-
options:
|
|
307
|
+
label: s(e)("hotel.roomVariant"),
|
|
308
|
+
placeholder: s(e)("hotel.chooseARoomVariant"),
|
|
309
|
+
options: a.value,
|
|
310
310
|
searchable: !1
|
|
311
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) :
|
|
312
|
-
T.id ? (E(), I("div",
|
|
311
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : P("", !0),
|
|
312
|
+
T.id ? (E(), I("div", jo, [
|
|
313
313
|
(E(!0), I(B, null, z(r.room.rates, ({
|
|
314
314
|
id: L,
|
|
315
|
-
maximumOccupants:
|
|
315
|
+
maximumOccupants: H
|
|
316
316
|
}) => (E(), I("div", {
|
|
317
317
|
key: L,
|
|
318
318
|
class: "booking-availability-listing-action-selective-i"
|
|
319
319
|
}, [
|
|
320
|
-
T.id === L ? (E(!0), I(B, { key: 0 }, z(T.config, (
|
|
321
|
-
key:
|
|
320
|
+
T.id === L ? (E(!0), I(B, { key: 0 }, z(T.config, (M, A) => (E(), I("div", {
|
|
321
|
+
key: A,
|
|
322
322
|
class: "booking-availability-listing-action-selective"
|
|
323
323
|
}, [
|
|
324
|
-
y("ul",
|
|
325
|
-
C(
|
|
326
|
-
modelValue:
|
|
327
|
-
"onUpdate:modelValue": (
|
|
324
|
+
y("ul", Yo, [
|
|
325
|
+
C(Uo, {
|
|
326
|
+
modelValue: M.id,
|
|
327
|
+
"onUpdate:modelValue": (F) => M.id = F,
|
|
328
328
|
icon: "male",
|
|
329
329
|
"icon-type": "fas",
|
|
330
|
-
label:
|
|
331
|
-
description: `${
|
|
330
|
+
label: s(e)("general.guests"),
|
|
331
|
+
description: `${s(e)("general.maximumGuests")}: ${H}`,
|
|
332
332
|
options: b(L),
|
|
333
333
|
readonly: !(b(L).length > 1)
|
|
334
334
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
|
|
335
335
|
]),
|
|
336
|
-
y("ul",
|
|
337
|
-
C(
|
|
338
|
-
modelValue:
|
|
339
|
-
"onUpdate:modelValue": (
|
|
340
|
-
description:
|
|
336
|
+
y("ul", Ko, [
|
|
337
|
+
C(kt, {
|
|
338
|
+
modelValue: M.units,
|
|
339
|
+
"onUpdate:modelValue": (F) => M.units = F,
|
|
340
|
+
description: s(h) ? void 0 : `${s(e)("booking.availability.availableUnits")}: ${d(T.id, M.id)}`,
|
|
341
341
|
icon: "house",
|
|
342
342
|
"icon-type": "fas",
|
|
343
343
|
"icon-placement": "label",
|
|
344
|
-
label:
|
|
344
|
+
label: s(e)("booking.availability.units"),
|
|
345
345
|
minValue: 0,
|
|
346
|
-
"max-value": d(L,
|
|
346
|
+
"max-value": d(L, M.id) || 1 / 0
|
|
347
347
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
|
|
348
348
|
]),
|
|
349
|
-
|
|
350
|
-
]))), 128)) :
|
|
349
|
+
P("", !0)
|
|
350
|
+
]))), 128)) : P("", !0)
|
|
351
351
|
]))), 128))
|
|
352
|
-
])) :
|
|
352
|
+
])) : P("", !0)
|
|
353
353
|
]))), 128))
|
|
354
354
|
])
|
|
355
355
|
]),
|
|
356
356
|
_: 1
|
|
357
357
|
}, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
|
|
358
358
|
}
|
|
359
|
-
}),
|
|
359
|
+
}), Jo = /* @__PURE__ */ J(Qo, [["__scopeId", "data-v-0c06b41d"]]), Xo = { class: "konnectio-template-side-panel" }, Zo = { class: "konnectio-template-side-panel-listings" }, en = /* @__PURE__ */ j({
|
|
360
360
|
__name: "Template",
|
|
361
361
|
props: {
|
|
362
362
|
title: {},
|
|
@@ -365,17 +365,17 @@ const Ko = /* @__PURE__ */ j({
|
|
|
365
365
|
callback: { type: Function }
|
|
366
366
|
},
|
|
367
367
|
setup(o) {
|
|
368
|
-
const { t: e } =
|
|
368
|
+
const { t: e } = re(), { templateID: t, roomGroupID: n } = Q(se()), { currency: p } = Q(me()), { clearRoomSelection: a } = se(), h = o;
|
|
369
369
|
function c(l) {
|
|
370
|
-
t.value = h.templateId, n.value = l,
|
|
370
|
+
t.value = h.templateId, n.value = l, a(), h.callback(2);
|
|
371
371
|
}
|
|
372
|
-
return (l, u) => (E(), R(
|
|
372
|
+
return (l, u) => (E(), R(Co, {
|
|
373
373
|
title: l.title,
|
|
374
|
-
subtitle:
|
|
374
|
+
subtitle: s(e)("booking.availability.selectATemplateRoom")
|
|
375
375
|
}, {
|
|
376
|
-
default:
|
|
377
|
-
y("div",
|
|
378
|
-
y("div",
|
|
376
|
+
default: x(() => [
|
|
377
|
+
y("div", Xo, [
|
|
378
|
+
y("div", Zo, [
|
|
379
379
|
(E(!0), I(B, null, z(l.roomGroups, ({
|
|
380
380
|
id: f,
|
|
381
381
|
title: g,
|
|
@@ -383,7 +383,7 @@ const Ko = /* @__PURE__ */ j({
|
|
|
383
383
|
images: d,
|
|
384
384
|
facilities: b,
|
|
385
385
|
extraPrice: k
|
|
386
|
-
}) => (E(), R(
|
|
386
|
+
}) => (E(), R(je, {
|
|
387
387
|
key: f,
|
|
388
388
|
"listing-id": f,
|
|
389
389
|
name: g,
|
|
@@ -393,11 +393,11 @@ const Ko = /* @__PURE__ */ j({
|
|
|
393
393
|
"includes-breakfast": !1,
|
|
394
394
|
"hide-info-button": !0
|
|
395
395
|
}, {
|
|
396
|
-
action:
|
|
396
|
+
action: x(() => [
|
|
397
397
|
y("div", null, [
|
|
398
398
|
C(le, {
|
|
399
399
|
onClickEvent: (m) => c(f),
|
|
400
|
-
label: `${
|
|
400
|
+
label: `${s(e)("booking.availability.selectThisRoom")} (${s(ie)(k, s(p))})`,
|
|
401
401
|
"full-width": ""
|
|
402
402
|
}, null, 8, ["onClickEvent", "label"])
|
|
403
403
|
])
|
|
@@ -410,19 +410,21 @@ const Ko = /* @__PURE__ */ j({
|
|
|
410
410
|
_: 1
|
|
411
411
|
}, 8, ["title", "subtitle"]));
|
|
412
412
|
}
|
|
413
|
-
}),
|
|
413
|
+
}), tn = /* @__PURE__ */ J(en, [["__scopeId", "data-v-4c035ea3"]]), on = ["innerHTML"], nn = /* @__PURE__ */ j({
|
|
414
414
|
__name: "Template",
|
|
415
415
|
props: {
|
|
416
416
|
id: {},
|
|
417
417
|
weekendFee: {},
|
|
418
418
|
description: {},
|
|
419
419
|
name: {},
|
|
420
|
+
toDate: {},
|
|
421
|
+
fromDate: {},
|
|
420
422
|
image: {},
|
|
421
423
|
roomGroups: {},
|
|
422
424
|
callback: { type: Function }
|
|
423
425
|
},
|
|
424
426
|
setup(o) {
|
|
425
|
-
const { t: e } =
|
|
427
|
+
const { t: e } = re(), t = o, n = q(() => t.roomGroups.reduce(
|
|
426
428
|
(l, u) => l < u.extraPrice ? l : u.extraPrice,
|
|
427
429
|
1 / 0
|
|
428
430
|
)), p = q(() => [{
|
|
@@ -430,42 +432,42 @@ const Ko = /* @__PURE__ */ j({
|
|
|
430
432
|
medium: t.image.url,
|
|
431
433
|
thumb: t.image.url,
|
|
432
434
|
url: t.image.url
|
|
433
|
-
}]),
|
|
435
|
+
}]), a = ce(!1);
|
|
434
436
|
function h() {
|
|
435
|
-
|
|
437
|
+
a.value = !0;
|
|
436
438
|
}
|
|
437
439
|
function c(l) {
|
|
438
|
-
t.callback(l),
|
|
440
|
+
t.callback(l), a.value = !1;
|
|
439
441
|
}
|
|
440
|
-
return (l, u) => (E(), R(
|
|
442
|
+
return (l, u) => (E(), R(je, {
|
|
441
443
|
"listing-id": l.id,
|
|
442
444
|
name: l.name,
|
|
443
445
|
description: l.description,
|
|
444
446
|
gallery: p.value,
|
|
445
|
-
layout:
|
|
447
|
+
layout: s(po).Template,
|
|
446
448
|
"includes-breakfast": !1,
|
|
447
449
|
"hide-info-button": !1,
|
|
448
450
|
"prices-from": n.value
|
|
449
451
|
}, {
|
|
450
|
-
description:
|
|
452
|
+
description: x(() => [
|
|
451
453
|
l.description ? (E(), I("p", {
|
|
452
454
|
key: 0,
|
|
453
|
-
innerHTML:
|
|
454
|
-
}, null, 8,
|
|
455
|
+
innerHTML: s(co)(l.description)
|
|
456
|
+
}, null, 8, on)) : P("", !0)
|
|
455
457
|
]),
|
|
456
|
-
action:
|
|
458
|
+
action: x(() => [
|
|
457
459
|
y("div", null, [
|
|
458
460
|
C(le, {
|
|
459
461
|
onClickEvent: h,
|
|
460
|
-
label:
|
|
462
|
+
label: s(e)("booking.availability.selectPackage"),
|
|
461
463
|
"full-width": ""
|
|
462
464
|
}, null, 8, ["label"])
|
|
463
465
|
])
|
|
464
466
|
]),
|
|
465
|
-
default:
|
|
466
|
-
C(
|
|
467
|
-
modelValue:
|
|
468
|
-
"onUpdate:modelValue": u[0] || (u[0] = (f) =>
|
|
467
|
+
default: x(() => [
|
|
468
|
+
C(tn, {
|
|
469
|
+
modelValue: a.value,
|
|
470
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => a.value = f),
|
|
469
471
|
title: l.name,
|
|
470
472
|
"template-id": l.id,
|
|
471
473
|
roomGroups: l.roomGroups,
|
|
@@ -475,7 +477,7 @@ const Ko = /* @__PURE__ */ j({
|
|
|
475
477
|
_: 1
|
|
476
478
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
|
|
477
479
|
}
|
|
478
|
-
}),
|
|
480
|
+
}), ot = /* @__PURE__ */ J(nn, [["__scopeId", "data-v-28af7ba3"]]), nt = /* @__PURE__ */ j({
|
|
479
481
|
__name: "TimeField",
|
|
480
482
|
props: {
|
|
481
483
|
modelValue: {},
|
|
@@ -504,12 +506,12 @@ const Ko = /* @__PURE__ */ j({
|
|
|
504
506
|
function p(h) {
|
|
505
507
|
t("update:modelValue", h);
|
|
506
508
|
}
|
|
507
|
-
const
|
|
508
|
-
return
|
|
509
|
+
const a = ce(n.modelValue);
|
|
510
|
+
return _e(a, (h) => {
|
|
509
511
|
p(h);
|
|
510
|
-
}), (h, c) => (E(), R(
|
|
511
|
-
modelValue:
|
|
512
|
-
"onUpdate:modelValue": c[0] || (c[0] = (l) =>
|
|
512
|
+
}), (h, c) => (E(), R(wo, {
|
|
513
|
+
modelValue: a.value,
|
|
514
|
+
"onUpdate:modelValue": c[0] || (c[0] = (l) => a.value = l),
|
|
513
515
|
type: "time",
|
|
514
516
|
label: h.label,
|
|
515
517
|
id: h.id,
|
|
@@ -534,34 +536,34 @@ const Ko = /* @__PURE__ */ j({
|
|
|
534
536
|
},
|
|
535
537
|
emits: ["update:modelValue"],
|
|
536
538
|
setup(o, { emit: e }) {
|
|
537
|
-
const { t } =
|
|
538
|
-
function
|
|
539
|
+
const { t } = re(), n = e, p = o;
|
|
540
|
+
function a(c) {
|
|
539
541
|
n("update:modelValue", c);
|
|
540
542
|
}
|
|
541
543
|
const h = q({
|
|
542
544
|
get: () => p.modelValue,
|
|
543
|
-
set: (c) =>
|
|
545
|
+
set: (c) => a(c)
|
|
544
546
|
});
|
|
545
|
-
return (c, l) => (E(), R(
|
|
547
|
+
return (c, l) => (E(), R(Ce, {
|
|
546
548
|
modelValue: h.value,
|
|
547
549
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => h.value = u),
|
|
548
550
|
label: c.label,
|
|
549
|
-
placeholder:
|
|
551
|
+
placeholder: s(t)("booking.reservation.countryPlaceholder"),
|
|
550
552
|
labelKey: "name",
|
|
551
553
|
valueKey: "id",
|
|
552
554
|
options: c.options,
|
|
553
555
|
required: c.required
|
|
554
556
|
}, {
|
|
555
|
-
option:
|
|
557
|
+
option: x(({ data: u }) => [
|
|
556
558
|
y("i", {
|
|
557
|
-
class:
|
|
559
|
+
class: Ee(["konnectio-flag-icon", u.iso])
|
|
558
560
|
}, null, 2),
|
|
559
561
|
y("span", null, V(u.name), 1)
|
|
560
562
|
]),
|
|
561
|
-
"selected-option":
|
|
563
|
+
"selected-option": x(({ data: u }) => [
|
|
562
564
|
y("div", rn, [
|
|
563
565
|
y("i", {
|
|
564
|
-
class:
|
|
566
|
+
class: Ee(["konnectio-flag-icon", u.iso])
|
|
565
567
|
}, null, 2),
|
|
566
568
|
y("span", null, V(u.name), 1)
|
|
567
569
|
])
|
|
@@ -583,20 +585,20 @@ const Ko = /* @__PURE__ */ j({
|
|
|
583
585
|
function p(h) {
|
|
584
586
|
t("update:modelValue", h);
|
|
585
587
|
}
|
|
586
|
-
const
|
|
588
|
+
const a = q({
|
|
587
589
|
get: () => n.modelValue,
|
|
588
590
|
set: (h) => p(h)
|
|
589
591
|
});
|
|
590
|
-
return (h, c) => (E(), R(
|
|
592
|
+
return (h, c) => (E(), R(_t, {
|
|
591
593
|
label: h.label,
|
|
592
594
|
type: "multi-radio"
|
|
593
595
|
}, {
|
|
594
|
-
default:
|
|
596
|
+
default: x(() => [
|
|
595
597
|
y("ul", ln, [
|
|
596
598
|
(E(!0), I(B, null, z(h.checkboxes, ({ label: l, value: u }, f) => (E(), I("li", { key: f }, [
|
|
597
599
|
C(Ne, {
|
|
598
|
-
modelValue:
|
|
599
|
-
"onUpdate:modelValue": c[0] || (c[0] = (g) =>
|
|
600
|
+
modelValue: a.value,
|
|
601
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => a.value = g),
|
|
600
602
|
label: l,
|
|
601
603
|
name: h.name,
|
|
602
604
|
type: "radio",
|
|
@@ -630,58 +632,58 @@ const Ko = /* @__PURE__ */ j({
|
|
|
630
632
|
},
|
|
631
633
|
emits: ["update:modelValue", "update:title"],
|
|
632
634
|
setup(o, { emit: e }) {
|
|
633
|
-
const t = o, n = e, p = t.id ||
|
|
635
|
+
const t = o, n = e, p = t.id || et(), a = ce(""), h = ce(2);
|
|
634
636
|
function c() {
|
|
635
|
-
n("update:modelValue",
|
|
637
|
+
n("update:modelValue", a.value);
|
|
636
638
|
}
|
|
637
|
-
|
|
639
|
+
_e(h, (u) => {
|
|
638
640
|
n("update:title", u);
|
|
639
641
|
});
|
|
640
|
-
const { t: l } =
|
|
641
|
-
return
|
|
642
|
-
t.modelValue && (
|
|
643
|
-
}), (u, f) => (E(), R(
|
|
642
|
+
const { t: l } = re();
|
|
643
|
+
return Ge(() => {
|
|
644
|
+
t.modelValue && (a.value = t.modelValue), t.title && (h.value = t.title);
|
|
645
|
+
}), (u, f) => (E(), R(_t, {
|
|
644
646
|
label: u.label,
|
|
645
|
-
id:
|
|
647
|
+
id: s(p),
|
|
646
648
|
required: u.required,
|
|
647
649
|
type: "fresh-booking-name-field",
|
|
648
650
|
readonly: u.readonly,
|
|
649
651
|
limit: u.limit
|
|
650
652
|
}, {
|
|
651
|
-
default:
|
|
653
|
+
default: x(() => [
|
|
652
654
|
y("div", {
|
|
653
|
-
class:
|
|
655
|
+
class: Ee([
|
|
654
656
|
"fresh-booking-name-input",
|
|
655
657
|
{ "no-title": u.excludeTitle }
|
|
656
658
|
])
|
|
657
659
|
}, [
|
|
658
|
-
u.excludeTitle ?
|
|
660
|
+
u.excludeTitle ? P("", !0) : (E(), R(Ce, {
|
|
659
661
|
key: 0,
|
|
660
662
|
modelValue: h.value,
|
|
661
663
|
"onUpdate:modelValue": f[0] || (f[0] = (g) => h.value = g),
|
|
662
|
-
id:
|
|
664
|
+
id: s(et)(),
|
|
663
665
|
icon: u.icon,
|
|
664
666
|
"icon-color": u.iconColor,
|
|
665
667
|
"icon-type": u.iconType,
|
|
666
668
|
options: [
|
|
667
669
|
{
|
|
668
|
-
label:
|
|
670
|
+
label: s(l)("booking.reservation.noNameTitle"),
|
|
669
671
|
value: 1
|
|
670
672
|
},
|
|
671
673
|
{
|
|
672
|
-
label:
|
|
674
|
+
label: s(l)("booking.reservation.nameTitleMr"),
|
|
673
675
|
value: 2
|
|
674
676
|
},
|
|
675
677
|
{
|
|
676
|
-
label:
|
|
678
|
+
label: s(l)("booking.reservation.nameTitleMs"),
|
|
677
679
|
value: 3
|
|
678
680
|
},
|
|
679
681
|
{
|
|
680
|
-
label:
|
|
682
|
+
label: s(l)("booking.reservation.nameTitleMrs"),
|
|
681
683
|
value: 4
|
|
682
684
|
},
|
|
683
685
|
{
|
|
684
|
-
label:
|
|
686
|
+
label: s(l)("booking.reservation.nameTitleDr"),
|
|
685
687
|
value: 5
|
|
686
688
|
}
|
|
687
689
|
],
|
|
@@ -690,13 +692,13 @@ const Ko = /* @__PURE__ */ j({
|
|
|
690
692
|
"input-style": u.inputStyle,
|
|
691
693
|
searchable: !1
|
|
692
694
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
|
|
693
|
-
C(
|
|
694
|
-
modelValue:
|
|
695
|
-
"onUpdate:modelValue": f[1] || (f[1] = (g) =>
|
|
695
|
+
C(oe, {
|
|
696
|
+
modelValue: a.value,
|
|
697
|
+
"onUpdate:modelValue": f[1] || (f[1] = (g) => a.value = g),
|
|
696
698
|
type: "text",
|
|
697
699
|
name: "name",
|
|
698
700
|
autocomplete: "name",
|
|
699
|
-
id:
|
|
701
|
+
id: s(p),
|
|
700
702
|
icon: u.excludeTitle ? u.icon : void 0,
|
|
701
703
|
"icon-color": u.iconColor,
|
|
702
704
|
"icon-type": u.iconType,
|
|
@@ -773,59 +775,65 @@ const Ko = /* @__PURE__ */ j({
|
|
|
773
775
|
setup(o) {
|
|
774
776
|
return (e, t) => (E(), I("div", En, [
|
|
775
777
|
y("div", Tn, [
|
|
776
|
-
C(
|
|
778
|
+
C(Lo, { hotel: "" }),
|
|
777
779
|
C(de),
|
|
778
780
|
C(de),
|
|
779
781
|
C(de)
|
|
780
782
|
]),
|
|
781
783
|
y("div", Cn, [
|
|
782
|
-
C(
|
|
784
|
+
C(Io)
|
|
783
785
|
])
|
|
784
786
|
]));
|
|
785
787
|
}
|
|
786
|
-
}), $n = /* @__PURE__ */ J(In, [["__scopeId", "data-v-49e83cbb"]]), Sn = (o) => (
|
|
787
|
-
const Pn = { key: 1 },
|
|
788
|
+
}), $n = /* @__PURE__ */ J(In, [["__scopeId", "data-v-49e83cbb"]]), Sn = (o) => (vt("data-v-55cda648"), o = o(), yt(), o), Vn = { id: "booking-availability-container" }, Ln = { id: "booking-availability-controls" };
|
|
789
|
+
const Pn = { key: 1 }, wn = { key: 0 }, xn = {
|
|
788
790
|
key: 0,
|
|
789
791
|
id: "booking-availability-packages"
|
|
790
|
-
},
|
|
792
|
+
}, On = {
|
|
791
793
|
key: 0,
|
|
792
794
|
class: "konnectio-hotel-availability-title"
|
|
793
|
-
},
|
|
795
|
+
}, An = { id: "booking-availability-packages-wrapper" }, Hn = { key: 1 }, Dn = {
|
|
794
796
|
key: 0,
|
|
795
797
|
class: "konnectio-hotel-availability-title"
|
|
796
798
|
}, Mn = { id: "booking-availability-listings" }, Rn = {
|
|
797
799
|
key: 2,
|
|
800
|
+
id: "booking-availability-packages"
|
|
801
|
+
}, Bn = {
|
|
802
|
+
key: 0,
|
|
803
|
+
class: "konnectio-hotel-availability-title"
|
|
804
|
+
}, zn = { id: "booking-availability-packages-wrapper" }, Wn = {
|
|
805
|
+
key: 3,
|
|
798
806
|
id: "booking-availability-no-listings",
|
|
799
807
|
class: "fresh-booking-panel"
|
|
800
|
-
},
|
|
808
|
+
}, Fn = {
|
|
801
809
|
key: 1,
|
|
802
810
|
id: "booking-availability-no-listings"
|
|
803
|
-
},
|
|
811
|
+
}, Nn = {
|
|
804
812
|
key: 2,
|
|
805
813
|
id: "reservation-availability-next-dates"
|
|
806
|
-
},
|
|
807
|
-
const
|
|
814
|
+
}, qn = { class: "konnectio-hotel-availability-title" }, Un = { class: "reservation-special-offers-grid" }, Gn = ["title"];
|
|
815
|
+
const jn = {
|
|
808
816
|
key: 2,
|
|
809
817
|
class: "konnectio-listing-loading"
|
|
810
|
-
},
|
|
818
|
+
}, Yn = { class: "fresh-booking-panel" }, Kn = {
|
|
811
819
|
key: 0,
|
|
812
820
|
id: "konnectio-hotel-addons"
|
|
813
821
|
};
|
|
814
|
-
const
|
|
822
|
+
const Qn = { class: "fresh-booking-event-addons-price" }, Jn = { key: 1 }, Xn = /* @__PURE__ */ Sn(() => /* @__PURE__ */ y("br", null, null, -1)), Zn = ["onClick"], ei = { class: "fresh-booking-panel" }, ti = { key: 0 }, oi = { key: 1 }, ni = { class: "fresh-booking-split-inputs" }, ii = ["onClick"], ri = /* @__PURE__ */ j({
|
|
815
823
|
name: "HotelLayout",
|
|
816
824
|
__name: "Hotel",
|
|
817
825
|
props: {
|
|
818
826
|
accessToken: {},
|
|
819
|
-
headerLayout: { default:
|
|
827
|
+
headerLayout: { default: ho.Minimal },
|
|
820
828
|
onlyShow: { default: "everything" },
|
|
821
829
|
styling: {}
|
|
822
830
|
},
|
|
823
831
|
setup(o) {
|
|
824
|
-
const { t: e } =
|
|
832
|
+
const { t: e } = re(), {
|
|
825
833
|
templateID: t,
|
|
826
834
|
countries: n,
|
|
827
835
|
areListingsLoading: p,
|
|
828
|
-
isPaymentLoading:
|
|
836
|
+
isPaymentLoading: a,
|
|
829
837
|
isReservationFormFilled: h,
|
|
830
838
|
travelingFor: c,
|
|
831
839
|
arrivalTime: l,
|
|
@@ -841,39 +849,39 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
841
849
|
country: r,
|
|
842
850
|
remark: v,
|
|
843
851
|
allergies: T,
|
|
844
|
-
newsMails:
|
|
852
|
+
newsMails: S,
|
|
845
853
|
roomSelect: L,
|
|
846
|
-
roomDisplay:
|
|
847
|
-
hasValidRoomSelection:
|
|
848
|
-
availabilityData:
|
|
849
|
-
selectionHasNoAddons:
|
|
850
|
-
} =
|
|
854
|
+
roomDisplay: H,
|
|
855
|
+
hasValidRoomSelection: M,
|
|
856
|
+
availabilityData: A,
|
|
857
|
+
selectionHasNoAddons: F
|
|
858
|
+
} = Q(se()), {
|
|
851
859
|
arrivalDate: X,
|
|
852
|
-
departureDate:
|
|
853
|
-
} =
|
|
854
|
-
currency:
|
|
855
|
-
disableNewsletterSignup:
|
|
856
|
-
arrivalEarliest:
|
|
857
|
-
arrivalLatest:
|
|
858
|
-
departureEarliest:
|
|
859
|
-
departureLatest:
|
|
860
|
-
enableTracking:
|
|
861
|
-
arrivalDefault:
|
|
862
|
-
departureDefault:
|
|
863
|
-
hideArrivalDepartureInputs:
|
|
864
|
-
disableArrivalUserSelection:
|
|
865
|
-
disableNamePrefix:
|
|
866
|
-
disableDepartureUserSelection:
|
|
867
|
-
disableTravelingFor:
|
|
868
|
-
disableTravelingForBleasure:
|
|
869
|
-
disableCompanyField:
|
|
870
|
-
hasPaymentGateway:
|
|
871
|
-
} =
|
|
872
|
-
initialize:
|
|
873
|
-
resetTemplate:
|
|
874
|
-
resetDiscountVoucher:
|
|
875
|
-
createReservation:
|
|
876
|
-
} =
|
|
860
|
+
departureDate: ae
|
|
861
|
+
} = Q(gt()), {
|
|
862
|
+
currency: G,
|
|
863
|
+
disableNewsletterSignup: Ie,
|
|
864
|
+
arrivalEarliest: Je,
|
|
865
|
+
arrivalLatest: Ot,
|
|
866
|
+
departureEarliest: At,
|
|
867
|
+
departureLatest: Ht,
|
|
868
|
+
enableTracking: Dt,
|
|
869
|
+
arrivalDefault: Mt,
|
|
870
|
+
departureDefault: Rt,
|
|
871
|
+
hideArrivalDepartureInputs: Bt,
|
|
872
|
+
disableArrivalUserSelection: $e,
|
|
873
|
+
disableNamePrefix: zt,
|
|
874
|
+
disableDepartureUserSelection: Se,
|
|
875
|
+
disableTravelingFor: Wt,
|
|
876
|
+
disableTravelingForBleasure: Ft,
|
|
877
|
+
disableCompanyField: Nt,
|
|
878
|
+
hasPaymentGateway: qt
|
|
879
|
+
} = Q(me()), { beginCheckout: Ut } = bt(), {
|
|
880
|
+
initialize: Gt,
|
|
881
|
+
resetTemplate: jt,
|
|
882
|
+
resetDiscountVoucher: Yt,
|
|
883
|
+
createReservation: Kt
|
|
884
|
+
} = se(), Qt = ce(!0), Jt = q(() => {
|
|
877
885
|
const O = [
|
|
878
886
|
{
|
|
879
887
|
label: e("booking.reservation.business"),
|
|
@@ -884,155 +892,188 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
884
892
|
value: "Pleasure"
|
|
885
893
|
}
|
|
886
894
|
];
|
|
887
|
-
return
|
|
895
|
+
return Ft.value || O.push({
|
|
888
896
|
label: e("booking.reservation.bleasure"),
|
|
889
897
|
value: "Bleasure"
|
|
890
898
|
}), O;
|
|
891
|
-
}),
|
|
892
|
-
const O =
|
|
893
|
-
O.forEach((
|
|
894
|
-
|
|
895
|
-
(
|
|
899
|
+
}), Xt = q(() => {
|
|
900
|
+
const O = A.value.roomGroups.slice();
|
|
901
|
+
O.forEach((U) => {
|
|
902
|
+
U.pricesFrom = U.rates.reduce(
|
|
903
|
+
(D, $) => D < $.rackRate ? D : $.rackRate,
|
|
896
904
|
1 / 0
|
|
897
905
|
);
|
|
898
906
|
});
|
|
899
|
-
function
|
|
900
|
-
return
|
|
907
|
+
function w(U, D) {
|
|
908
|
+
return Qt.value === !0 ? U.pricesFrom > D.pricesFrom ? -1 : 1 : U.pricesFrom > D.pricesFrom ? 1 : -1;
|
|
901
909
|
}
|
|
902
|
-
return O.sort(
|
|
903
|
-
}),
|
|
904
|
-
parseInt(
|
|
905
|
-
parseInt(
|
|
906
|
-
]]),
|
|
907
|
-
parseInt(
|
|
908
|
-
parseInt(
|
|
910
|
+
return O.sort(w);
|
|
911
|
+
}), Zt = q(() => [[
|
|
912
|
+
parseInt(Je.value.split(":")[0]),
|
|
913
|
+
parseInt(Ot.value.split(":")[0])
|
|
914
|
+
]]), eo = q(() => [[
|
|
915
|
+
parseInt(At.value.split(":")[0]),
|
|
916
|
+
parseInt(Ht.value.split(":")[0])
|
|
909
917
|
]]);
|
|
910
|
-
function
|
|
911
|
-
|
|
918
|
+
function Xe(O) {
|
|
919
|
+
F.value ? O(2) : O(), Yt();
|
|
912
920
|
}
|
|
913
|
-
function
|
|
914
|
-
|
|
921
|
+
function to(O, w) {
|
|
922
|
+
ae.value = new Date(w), X.value = new Date(O), location.reload();
|
|
915
923
|
}
|
|
916
|
-
async function
|
|
917
|
-
await
|
|
924
|
+
async function oo(O) {
|
|
925
|
+
await Kt(O);
|
|
918
926
|
}
|
|
919
|
-
function
|
|
920
|
-
|
|
927
|
+
function no(O) {
|
|
928
|
+
Dt.value && Ut(), F.value ? O(2) : O();
|
|
921
929
|
}
|
|
922
|
-
function
|
|
923
|
-
l.value === "" && (l.value =
|
|
930
|
+
function io() {
|
|
931
|
+
l.value === "" && (l.value = Mt.value), u.value === "" && (u.value = Rt.value);
|
|
924
932
|
}
|
|
925
|
-
return
|
|
926
|
-
|
|
927
|
-
}), (O,
|
|
928
|
-
default:
|
|
929
|
-
(E(), R(
|
|
930
|
-
default:
|
|
931
|
-
C(
|
|
933
|
+
return Ge(() => {
|
|
934
|
+
Gt(), io();
|
|
935
|
+
}), (O, w) => (E(), R(fo, { styling: O.styling }, {
|
|
936
|
+
default: x(() => [
|
|
937
|
+
(E(), R(mo, null, {
|
|
938
|
+
default: x(() => [
|
|
939
|
+
C(vo, {
|
|
932
940
|
id: "fresh-booking-hotel-module",
|
|
933
941
|
"access-token": O.accessToken,
|
|
934
942
|
type: "hotel"
|
|
935
943
|
}, {
|
|
936
|
-
default:
|
|
937
|
-
C(
|
|
944
|
+
default: x(() => [
|
|
945
|
+
C($o, {
|
|
938
946
|
layout: O.headerLayout,
|
|
939
|
-
onReset:
|
|
947
|
+
onReset: s(jt)
|
|
940
948
|
}, {
|
|
941
|
-
availability:
|
|
942
|
-
C(
|
|
943
|
-
form:
|
|
949
|
+
availability: x(({ next: U }) => [
|
|
950
|
+
C(we, null, {
|
|
951
|
+
form: x(() => [
|
|
944
952
|
y("div", Vn, [
|
|
945
953
|
y("div", Ln, [
|
|
946
|
-
C(
|
|
954
|
+
C(Po, { booking: !0 })
|
|
947
955
|
]),
|
|
948
|
-
|
|
949
|
-
|
|
956
|
+
P("", !0),
|
|
957
|
+
s(p) ? (E(), I("div", jn, [
|
|
950
958
|
C(de),
|
|
951
959
|
C(de),
|
|
952
960
|
C(de)
|
|
953
961
|
])) : (E(), I("div", Pn, [
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
O.onlyShow !== "packages" ? (E(), I("h2",
|
|
957
|
-
C(
|
|
962
|
+
s(A).roomGroups.length > 0 || s(A).templates.length > 0 || s(A).specialTemplates.length > 0 ? (E(), I("div", wn, [
|
|
963
|
+
s(A).templates.length > 0 && O.onlyShow !== "rooms" ? (E(), I("div", xn, [
|
|
964
|
+
O.onlyShow !== "packages" ? (E(), I("h2", On, [
|
|
965
|
+
C(K, {
|
|
958
966
|
icon: "box",
|
|
959
967
|
type: "fal",
|
|
960
968
|
color: "header"
|
|
961
969
|
}),
|
|
962
|
-
y("span", null, V(
|
|
963
|
-
])) :
|
|
964
|
-
y("ul",
|
|
965
|
-
(E(!0), I(B, null, z(
|
|
966
|
-
id:
|
|
967
|
-
name:
|
|
968
|
-
templateRoomGroups:
|
|
969
|
-
image:
|
|
970
|
-
description:
|
|
971
|
-
weekendFee:
|
|
972
|
-
}) => (E(), R(
|
|
973
|
-
key:
|
|
974
|
-
id:
|
|
975
|
-
description:
|
|
976
|
-
name:
|
|
977
|
-
image:
|
|
978
|
-
weekendFee:
|
|
979
|
-
"room-groups":
|
|
980
|
-
callback:
|
|
970
|
+
y("span", null, V(s(e)("booking.availability.packagesTitle")), 1)
|
|
971
|
+
])) : P("", !0),
|
|
972
|
+
y("ul", An, [
|
|
973
|
+
(E(!0), I(B, null, z(s(A).templates, ({
|
|
974
|
+
id: D,
|
|
975
|
+
name: $,
|
|
976
|
+
templateRoomGroups: Z,
|
|
977
|
+
image: ee,
|
|
978
|
+
description: W,
|
|
979
|
+
weekendFee: pe
|
|
980
|
+
}) => (E(), R(ot, {
|
|
981
|
+
key: D,
|
|
982
|
+
id: D,
|
|
983
|
+
description: W,
|
|
984
|
+
name: $,
|
|
985
|
+
image: ee,
|
|
986
|
+
weekendFee: pe,
|
|
987
|
+
"room-groups": Z,
|
|
988
|
+
callback: U
|
|
981
989
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback"]))), 128))
|
|
982
990
|
])
|
|
983
|
-
])) :
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
C(
|
|
991
|
+
])) : P("", !0),
|
|
992
|
+
s(A).roomGroups.length > 0 && O.onlyShow !== "packages" ? (E(), I("div", Hn, [
|
|
993
|
+
s(A).templates.length > 0 && O.onlyShow !== "rooms" ? (E(), I("h2", Dn, [
|
|
994
|
+
C(K, {
|
|
987
995
|
icon: "house",
|
|
988
996
|
type: "fal",
|
|
989
997
|
color: "header"
|
|
990
998
|
}),
|
|
991
|
-
y("span", null, V(
|
|
992
|
-
])) :
|
|
999
|
+
y("span", null, V(s(e)("booking.availability.roomsTitle")), 1)
|
|
1000
|
+
])) : P("", !0),
|
|
993
1001
|
y("ul", Mn, [
|
|
994
|
-
(E(!0), I(B, null, z(
|
|
995
|
-
room:
|
|
996
|
-
key:
|
|
1002
|
+
(E(!0), I(B, null, z(Xt.value, (D, $) => (E(), R(Jo, {
|
|
1003
|
+
room: D,
|
|
1004
|
+
key: $
|
|
997
1005
|
}, null, 8, ["room"]))), 128))
|
|
998
1006
|
])
|
|
999
|
-
])) :
|
|
1000
|
-
(
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1007
|
+
])) : P("", !0),
|
|
1008
|
+
s(A).specialTemplates.length > 0 && O.onlyShow !== "rooms" ? (E(), I("div", Rn, [
|
|
1009
|
+
O.onlyShow !== "packages" ? (E(), I("h2", Bn, [
|
|
1010
|
+
C(K, {
|
|
1011
|
+
icon: "box",
|
|
1012
|
+
type: "fal",
|
|
1013
|
+
color: "header"
|
|
1014
|
+
}),
|
|
1015
|
+
y("span", null, V(s(e)("hotel.specialOffers")), 1)
|
|
1016
|
+
])) : P("", !0),
|
|
1017
|
+
y("ul", zn, [
|
|
1018
|
+
(E(!0), I(B, null, z(s(A).specialTemplates, ({
|
|
1019
|
+
id: D,
|
|
1020
|
+
name: $,
|
|
1021
|
+
templateRoomGroups: Z,
|
|
1022
|
+
image: ee,
|
|
1023
|
+
description: W,
|
|
1024
|
+
weekendFee: pe,
|
|
1025
|
+
fromDate: he,
|
|
1026
|
+
toDate: Ve
|
|
1027
|
+
}) => (E(), R(ot, {
|
|
1028
|
+
key: D,
|
|
1029
|
+
id: D,
|
|
1030
|
+
description: W,
|
|
1031
|
+
name: $,
|
|
1032
|
+
image: ee,
|
|
1033
|
+
fromDate: he,
|
|
1034
|
+
toDate: Ve,
|
|
1035
|
+
weekendFee: pe,
|
|
1036
|
+
"room-groups": Z,
|
|
1037
|
+
callback: U
|
|
1038
|
+
}, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1039
|
+
])
|
|
1040
|
+
])) : P("", !0),
|
|
1041
|
+
(s(A).templates.length === 0 && O.onlyShow !== "rooms" || s(A).roomGroups.length === 0 && O.onlyShow !== "packages") && (O.onlyShow === "rooms" || O.onlyShow === "packages") ? (E(), I("div", Wn, [
|
|
1042
|
+
y("span", null, V(s(e)("booking.availability.nothingAvailable")), 1)
|
|
1043
|
+
])) : P("", !0)
|
|
1044
|
+
])) : s(A).nextAvailableDates.length === 0 ? (E(), I("div", Fn, [
|
|
1045
|
+
y("span", null, V(s(e)("booking.availability.nothingAvailable")), 1)
|
|
1046
|
+
])) : (E(), I("div", Nn, [
|
|
1047
|
+
y("h2", qn, [
|
|
1048
|
+
C(K, {
|
|
1008
1049
|
icon: "calendar-circle-exclamation",
|
|
1009
1050
|
type: "fal",
|
|
1010
1051
|
color: "header"
|
|
1011
1052
|
}),
|
|
1012
|
-
y("span", null, V(
|
|
1053
|
+
y("span", null, V(s(e)("booking.availability.nextAvailableDates")), 1)
|
|
1013
1054
|
]),
|
|
1014
|
-
y("ul",
|
|
1015
|
-
(E(!0), I(B, null, z(
|
|
1055
|
+
y("ul", Un, [
|
|
1056
|
+
(E(!0), I(B, null, z(s(A).nextAvailableDates, (D, $) => (E(), I("li", { key: $ }, [
|
|
1016
1057
|
y("h3", {
|
|
1017
|
-
title: `${
|
|
1058
|
+
title: `${s(ne)(D.fromDate)} - ${s(ne)(D.toDate)}`
|
|
1018
1059
|
}, [
|
|
1019
|
-
y("span", null, V(`${
|
|
1020
|
-
], 8,
|
|
1060
|
+
y("span", null, V(`${s(ne)(D.fromDate)} - ${s(ne)(D.toDate)}`), 1)
|
|
1061
|
+
], 8, Gn),
|
|
1021
1062
|
y("ul", null, [
|
|
1022
|
-
|
|
1063
|
+
P("", !0),
|
|
1023
1064
|
y("li", null, [
|
|
1024
|
-
C(
|
|
1065
|
+
C(K, {
|
|
1025
1066
|
icon: "money-bill",
|
|
1026
1067
|
type: "fal",
|
|
1027
1068
|
color: "header"
|
|
1028
1069
|
}),
|
|
1029
|
-
y("span", null, V(
|
|
1070
|
+
y("span", null, V(s(e)("booking.availability.pricesFrom")) + ": " + V(s(ie)(D.priceStartFrom, s(G))), 1)
|
|
1030
1071
|
])
|
|
1031
1072
|
]),
|
|
1032
1073
|
C(le, {
|
|
1033
|
-
label:
|
|
1074
|
+
label: s(e)("booking.availability.selectDates"),
|
|
1034
1075
|
"full-width": "",
|
|
1035
|
-
onClickEvent: (
|
|
1076
|
+
onClickEvent: (Z) => to(D.fromDate, D.toDate)
|
|
1036
1077
|
}, null, 8, ["label", "onClickEvent"])
|
|
1037
1078
|
]))), 128))
|
|
1038
1079
|
])
|
|
@@ -1040,90 +1081,90 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1040
1081
|
]))
|
|
1041
1082
|
])
|
|
1042
1083
|
]),
|
|
1043
|
-
navigation:
|
|
1084
|
+
navigation: x(() => [
|
|
1044
1085
|
C(le, {
|
|
1045
|
-
label:
|
|
1046
|
-
disabled: !
|
|
1086
|
+
label: s(F) ? s(e)("booking.availability.nextButton") : s(e)("general.chooseAddons"),
|
|
1087
|
+
disabled: !s(M),
|
|
1047
1088
|
"is-loading": !1,
|
|
1048
1089
|
"full-width": "",
|
|
1049
|
-
onClickEvent: (
|
|
1090
|
+
onClickEvent: (D) => no(U)
|
|
1050
1091
|
}, null, 8, ["label", "disabled", "onClickEvent"])
|
|
1051
1092
|
]),
|
|
1052
1093
|
_: 2
|
|
1053
1094
|
}, 1024)
|
|
1054
1095
|
]),
|
|
1055
|
-
addons:
|
|
1056
|
-
C(
|
|
1057
|
-
form:
|
|
1058
|
-
y("form",
|
|
1096
|
+
addons: x(({ next: U, prev: D }) => [
|
|
1097
|
+
C(we, null, {
|
|
1098
|
+
form: x(() => [
|
|
1099
|
+
y("form", Yn, [
|
|
1059
1100
|
y("h2", null, [
|
|
1060
|
-
y("span", null, V(
|
|
1101
|
+
y("span", null, V(s(e)("booking.reservation.addons")), 1)
|
|
1061
1102
|
]),
|
|
1062
1103
|
y("div", null, [
|
|
1063
|
-
isNaN(
|
|
1064
|
-
(E(!0), I(B, null, z(
|
|
1065
|
-
key:
|
|
1104
|
+
isNaN(s(t)) ? (E(), I("div", Kn, [
|
|
1105
|
+
(E(!0), I(B, null, z(s(H), ($) => (E(), I("ul", {
|
|
1106
|
+
key: $.roomGroupID
|
|
1066
1107
|
}, [
|
|
1067
|
-
(E(!0), I(B, null, z(
|
|
1068
|
-
key:
|
|
1108
|
+
(E(!0), I(B, null, z($.variants, (Z, ee) => (E(), I("li", {
|
|
1109
|
+
key: Z.ratePlanID
|
|
1069
1110
|
}, [
|
|
1070
1111
|
y("h4", null, [
|
|
1071
|
-
y("span", null, V(
|
|
1112
|
+
y("span", null, V(s(ue)($.title)), 1)
|
|
1072
1113
|
]),
|
|
1073
|
-
(E(!0), I(B, null, z(
|
|
1074
|
-
key:
|
|
1114
|
+
(E(!0), I(B, null, z(Z.rooms, (W, pe) => (E(), I("table", {
|
|
1115
|
+
key: pe,
|
|
1075
1116
|
class: "fresh-booking-table"
|
|
1076
1117
|
}, [
|
|
1077
1118
|
y("thead", null, [
|
|
1078
1119
|
y("tr", null, [
|
|
1079
1120
|
y("th", null, [
|
|
1080
|
-
y("span", null, V(
|
|
1121
|
+
y("span", null, V(s(ue)(Z.name)), 1)
|
|
1081
1122
|
]),
|
|
1082
|
-
|
|
1083
|
-
y("th",
|
|
1123
|
+
P("", !0),
|
|
1124
|
+
y("th", Qn, [
|
|
1084
1125
|
y("b", null, [
|
|
1085
|
-
C(
|
|
1126
|
+
C(K, {
|
|
1086
1127
|
icon: "male",
|
|
1087
1128
|
type: "fas",
|
|
1088
1129
|
color: "font"
|
|
1089
1130
|
}),
|
|
1090
|
-
y("span", null, V(
|
|
1091
|
-
|
|
1131
|
+
y("span", null, V(W.adultsCount), 1),
|
|
1132
|
+
W.childrenCount > 0 ? (E(), R(K, {
|
|
1092
1133
|
key: 0,
|
|
1093
1134
|
icon: "child",
|
|
1094
1135
|
type: "fas",
|
|
1095
1136
|
color: "font"
|
|
1096
|
-
})) :
|
|
1097
|
-
|
|
1137
|
+
})) : P("", !0),
|
|
1138
|
+
W.childrenCount > 0 ? (E(), I("span", Jn, V(W.childrenCount), 1)) : P("", !0)
|
|
1098
1139
|
])
|
|
1099
1140
|
])
|
|
1100
1141
|
])
|
|
1101
1142
|
]),
|
|
1102
1143
|
y("tbody", null, [
|
|
1103
|
-
(E(!0), I(B, null, z(
|
|
1104
|
-
quantityStrategy:
|
|
1105
|
-
maximumNumber:
|
|
1106
|
-
id:
|
|
1107
|
-
name:
|
|
1108
|
-
price:
|
|
1109
|
-
}) => (E(), I("tr", { key:
|
|
1144
|
+
(E(!0), I(B, null, z($.addons, ({
|
|
1145
|
+
quantityStrategy: he,
|
|
1146
|
+
maximumNumber: Ve,
|
|
1147
|
+
id: fe,
|
|
1148
|
+
name: ro,
|
|
1149
|
+
price: so
|
|
1150
|
+
}) => (E(), I("tr", { key: fe }, [
|
|
1110
1151
|
y("td", null, [
|
|
1111
|
-
y("b", null, V(
|
|
1112
|
-
|
|
1113
|
-
y("span", null, V(
|
|
1152
|
+
y("b", null, V(s(ue)(ro)), 1),
|
|
1153
|
+
Xn,
|
|
1154
|
+
y("span", null, V(s(ie)(so, s(G))) + " " + V(s(go)(he)), 1)
|
|
1114
1155
|
]),
|
|
1115
1156
|
y("td", null, [
|
|
1116
|
-
|
|
1157
|
+
he === 1 || he === 12 ? (E(), R(kt, {
|
|
1117
1158
|
key: 0,
|
|
1118
|
-
modelValue:
|
|
1119
|
-
"onUpdate:modelValue": (
|
|
1159
|
+
modelValue: s(L)[$.roomGroupID][ee].config[W.configIdx].addons[W.roomIdx][fe],
|
|
1160
|
+
"onUpdate:modelValue": (Le) => s(L)[$.roomGroupID][ee].config[W.configIdx].addons[W.roomIdx][fe] = Le,
|
|
1120
1161
|
small: !0,
|
|
1121
1162
|
"min-value": 0,
|
|
1122
|
-
"max-value":
|
|
1163
|
+
"max-value": Ve || 1 / 0
|
|
1123
1164
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (E(), R(Ne, {
|
|
1124
1165
|
key: 1,
|
|
1125
|
-
modelValue:
|
|
1126
|
-
"onUpdate:modelValue": (
|
|
1166
|
+
modelValue: s(L)[$.roomGroupID][ee].config[W.configIdx].addons[W.roomIdx][fe],
|
|
1167
|
+
"onUpdate:modelValue": (Le) => s(L)[$.roomGroupID][ee].config[W.configIdx].addons[W.roomIdx][fe] = Le,
|
|
1127
1168
|
numeric: !0
|
|
1128
1169
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1129
1170
|
])
|
|
@@ -1132,209 +1173,209 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1132
1173
|
]))), 128))
|
|
1133
1174
|
]))), 128))
|
|
1134
1175
|
]))), 128))
|
|
1135
|
-
])) :
|
|
1176
|
+
])) : P("", !0)
|
|
1136
1177
|
])
|
|
1137
1178
|
])
|
|
1138
1179
|
]),
|
|
1139
|
-
navigation:
|
|
1180
|
+
navigation: x(() => [
|
|
1140
1181
|
C(le, {
|
|
1141
|
-
label:
|
|
1182
|
+
label: s(e)("general.startReservation"),
|
|
1142
1183
|
"full-width": "",
|
|
1143
|
-
onClickEvent:
|
|
1184
|
+
onClickEvent: U
|
|
1144
1185
|
}, null, 8, ["label", "onClickEvent"]),
|
|
1145
1186
|
y("button", {
|
|
1146
1187
|
class: "konnectio-abort-reservation link",
|
|
1147
|
-
onClick:
|
|
1188
|
+
onClick: tt(($) => Xe(D), ["prevent"])
|
|
1148
1189
|
}, [
|
|
1149
|
-
y("span", null, V(
|
|
1150
|
-
], 8,
|
|
1190
|
+
y("span", null, V(s(e)("general.goAStepBack")), 1)
|
|
1191
|
+
], 8, Zn)
|
|
1151
1192
|
]),
|
|
1152
1193
|
_: 2
|
|
1153
1194
|
}, 1024)
|
|
1154
1195
|
]),
|
|
1155
|
-
reservation:
|
|
1156
|
-
C(
|
|
1196
|
+
reservation: x(({ next: U, prev: D }) => [
|
|
1197
|
+
C(we, {
|
|
1157
1198
|
"show-terms-notice": !0,
|
|
1158
1199
|
"show-gift-card": !0
|
|
1159
1200
|
}, {
|
|
1160
|
-
form:
|
|
1161
|
-
y("form",
|
|
1201
|
+
form: x(() => [
|
|
1202
|
+
y("form", ei, [
|
|
1162
1203
|
y("h2", null, [
|
|
1163
|
-
y("span", null, V(
|
|
1204
|
+
y("span", null, V(s(e)("booking.reservation.detailsTitle")), 1)
|
|
1164
1205
|
]),
|
|
1165
|
-
!
|
|
1206
|
+
!s(Bt) && !(s($e) && s(Se)) ? (E(), I("ul", {
|
|
1166
1207
|
key: 0,
|
|
1167
|
-
class:
|
|
1208
|
+
class: Ee({ "fresh-booking-split-inputs": !s($e) && !s(Se) })
|
|
1168
1209
|
}, [
|
|
1169
|
-
|
|
1170
|
-
C(
|
|
1171
|
-
modelValue:
|
|
1172
|
-
"onUpdate:modelValue":
|
|
1173
|
-
label:
|
|
1210
|
+
s($e) ? P("", !0) : (E(), I("li", ti, [
|
|
1211
|
+
C(nt, {
|
|
1212
|
+
modelValue: s(l),
|
|
1213
|
+
"onUpdate:modelValue": w[1] || (w[1] = ($) => N(l) ? l.value = $ : null),
|
|
1214
|
+
label: s(e)("booking.reservation.arrivalTime"),
|
|
1174
1215
|
icon: "hourglass-start",
|
|
1175
|
-
"hour-range":
|
|
1216
|
+
"hour-range": Zt.value,
|
|
1176
1217
|
required: ""
|
|
1177
1218
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1178
1219
|
])),
|
|
1179
|
-
|
|
1180
|
-
C(
|
|
1181
|
-
modelValue:
|
|
1182
|
-
"onUpdate:modelValue":
|
|
1183
|
-
label:
|
|
1220
|
+
s(Se) ? P("", !0) : (E(), I("li", oi, [
|
|
1221
|
+
C(nt, {
|
|
1222
|
+
modelValue: s(u),
|
|
1223
|
+
"onUpdate:modelValue": w[2] || (w[2] = ($) => N(u) ? u.value = $ : null),
|
|
1224
|
+
label: s(e)("booking.reservation.departureTime"),
|
|
1184
1225
|
icon: "hourglass-end",
|
|
1185
|
-
"hour-range":
|
|
1226
|
+
"hour-range": eo.value,
|
|
1186
1227
|
required: ""
|
|
1187
1228
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1188
1229
|
]))
|
|
1189
|
-
], 2)) :
|
|
1230
|
+
], 2)) : P("", !0),
|
|
1190
1231
|
C(pn, {
|
|
1191
|
-
modelValue:
|
|
1192
|
-
"onUpdate:modelValue":
|
|
1193
|
-
title:
|
|
1194
|
-
"onUpdate:title":
|
|
1195
|
-
"exclude-title":
|
|
1196
|
-
label:
|
|
1232
|
+
modelValue: s(f),
|
|
1233
|
+
"onUpdate:modelValue": w[3] || (w[3] = ($) => N(f) ? f.value = $ : null),
|
|
1234
|
+
title: s(g),
|
|
1235
|
+
"onUpdate:title": w[4] || (w[4] = ($) => N(g) ? g.value = $ : null),
|
|
1236
|
+
"exclude-title": s(zt),
|
|
1237
|
+
label: s(e)("booking.reservation.name"),
|
|
1197
1238
|
icon: "user-alt",
|
|
1198
|
-
placeholder:
|
|
1239
|
+
placeholder: s(e)("booking.reservation.namePlaceholder"),
|
|
1199
1240
|
required: ""
|
|
1200
1241
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1201
|
-
C(
|
|
1202
|
-
modelValue:
|
|
1203
|
-
"onUpdate:modelValue":
|
|
1242
|
+
C(oe, {
|
|
1243
|
+
modelValue: s(_),
|
|
1244
|
+
"onUpdate:modelValue": w[5] || (w[5] = ($) => N(_) ? _.value = $ : null),
|
|
1204
1245
|
type: "email",
|
|
1205
1246
|
name: "email",
|
|
1206
1247
|
autocomplete: "email",
|
|
1207
|
-
label:
|
|
1248
|
+
label: s(e)("booking.reservation.email"),
|
|
1208
1249
|
icon: "at",
|
|
1209
|
-
placeholder:
|
|
1250
|
+
placeholder: s(e)("booking.reservation.emailPlaceholder"),
|
|
1210
1251
|
required: ""
|
|
1211
1252
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1212
|
-
|
|
1253
|
+
s(Ie) ? P("", !0) : (E(), R(Ne, {
|
|
1213
1254
|
key: 1,
|
|
1214
|
-
modelValue:
|
|
1215
|
-
"onUpdate:modelValue":
|
|
1255
|
+
modelValue: s(S),
|
|
1256
|
+
"onUpdate:modelValue": w[6] || (w[6] = ($) => N(S) ? S.value = $ : null),
|
|
1216
1257
|
type: "checkbox",
|
|
1217
1258
|
name: "newsletter",
|
|
1218
|
-
label:
|
|
1259
|
+
label: s(e)("booking.reservation.newsletterSignUp")
|
|
1219
1260
|
}, null, 8, ["modelValue", "label"])),
|
|
1220
|
-
|
|
1261
|
+
s(Nt) ? P("", !0) : (E(), R(oe, {
|
|
1221
1262
|
key: 2,
|
|
1222
|
-
modelValue:
|
|
1223
|
-
"onUpdate:modelValue":
|
|
1263
|
+
modelValue: s(b),
|
|
1264
|
+
"onUpdate:modelValue": w[7] || (w[7] = ($) => N(b) ? b.value = $ : null),
|
|
1224
1265
|
type: "text",
|
|
1225
1266
|
name: "firm",
|
|
1226
1267
|
autocomplete: "firm",
|
|
1227
|
-
label: `${
|
|
1268
|
+
label: `${s(e)("booking.reservation.companyName")} (${s(e)("booking.reservation.optional")})`,
|
|
1228
1269
|
icon: "id-card",
|
|
1229
|
-
placeholder:
|
|
1270
|
+
placeholder: s(e)("booking.reservation.companyNamePlaceholder")
|
|
1230
1271
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1231
1272
|
C(xo, {
|
|
1232
|
-
modelValue:
|
|
1233
|
-
"onUpdate:modelValue":
|
|
1273
|
+
modelValue: s(d),
|
|
1274
|
+
"onUpdate:modelValue": w[8] || (w[8] = ($) => N(d) ? d.value = $ : null),
|
|
1234
1275
|
icon: "phone-office",
|
|
1235
|
-
label:
|
|
1236
|
-
placeholder:
|
|
1276
|
+
label: s(e)("booking.reservation.phone"),
|
|
1277
|
+
placeholder: s(e)("booking.reservation.phonePlaceholder"),
|
|
1237
1278
|
required: ""
|
|
1238
1279
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1239
1280
|
C(an, {
|
|
1240
|
-
modelValue:
|
|
1241
|
-
"onUpdate:modelValue":
|
|
1242
|
-
label:
|
|
1243
|
-
placeholder:
|
|
1244
|
-
options:
|
|
1281
|
+
modelValue: s(r),
|
|
1282
|
+
"onUpdate:modelValue": w[9] || (w[9] = ($) => N(r) ? r.value = $ : null),
|
|
1283
|
+
label: s(e)("booking.reservation.country"),
|
|
1284
|
+
placeholder: s(e)("booking.reservation.countryPlaceholder"),
|
|
1285
|
+
options: s(n),
|
|
1245
1286
|
required: ""
|
|
1246
1287
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1247
|
-
C(
|
|
1248
|
-
modelValue:
|
|
1249
|
-
"onUpdate:modelValue":
|
|
1288
|
+
C(oe, {
|
|
1289
|
+
modelValue: s(i),
|
|
1290
|
+
"onUpdate:modelValue": w[10] || (w[10] = ($) => N(i) ? i.value = $ : null),
|
|
1250
1291
|
type: "textarea",
|
|
1251
1292
|
name: "address",
|
|
1252
1293
|
autocomplete: "street-address",
|
|
1253
|
-
label:
|
|
1294
|
+
label: s(e)("booking.reservation.streetAddress"),
|
|
1254
1295
|
icon: "map-marked",
|
|
1255
|
-
placeholder:
|
|
1296
|
+
placeholder: s(e)("booking.reservation.streetAddressPlaceholder"),
|
|
1256
1297
|
required: ""
|
|
1257
1298
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1258
|
-
y("ul",
|
|
1299
|
+
y("ul", ni, [
|
|
1259
1300
|
y("li", null, [
|
|
1260
|
-
C(
|
|
1261
|
-
modelValue:
|
|
1262
|
-
"onUpdate:modelValue":
|
|
1301
|
+
C(oe, {
|
|
1302
|
+
modelValue: s(k),
|
|
1303
|
+
"onUpdate:modelValue": w[11] || (w[11] = ($) => N(k) ? k.value = $ : null),
|
|
1263
1304
|
type: "text",
|
|
1264
1305
|
name: "postal",
|
|
1265
1306
|
autocomplete: "postal-code",
|
|
1266
|
-
label:
|
|
1307
|
+
label: s(e)("booking.reservation.postal"),
|
|
1267
1308
|
icon: "mailbox",
|
|
1268
|
-
placeholder:
|
|
1309
|
+
placeholder: s(e)("booking.reservation.postalPlaceholder"),
|
|
1269
1310
|
required: ""
|
|
1270
1311
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1271
1312
|
]),
|
|
1272
1313
|
y("li", null, [
|
|
1273
|
-
C(
|
|
1274
|
-
modelValue:
|
|
1275
|
-
"onUpdate:modelValue":
|
|
1314
|
+
C(oe, {
|
|
1315
|
+
modelValue: s(m),
|
|
1316
|
+
"onUpdate:modelValue": w[12] || (w[12] = ($) => N(m) ? m.value = $ : null),
|
|
1276
1317
|
type: "text",
|
|
1277
1318
|
name: "city",
|
|
1278
1319
|
autocomplete: "address-level2",
|
|
1279
|
-
label:
|
|
1320
|
+
label: s(e)("booking.reservation.city"),
|
|
1280
1321
|
icon: "city",
|
|
1281
|
-
placeholder:
|
|
1322
|
+
placeholder: s(e)("booking.reservation.cityPlaceholder"),
|
|
1282
1323
|
required: ""
|
|
1283
1324
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1284
1325
|
])
|
|
1285
1326
|
]),
|
|
1286
|
-
C(
|
|
1287
|
-
modelValue:
|
|
1288
|
-
"onUpdate:modelValue":
|
|
1327
|
+
C(oe, {
|
|
1328
|
+
modelValue: s(v),
|
|
1329
|
+
"onUpdate:modelValue": w[13] || (w[13] = ($) => N(v) ? v.value = $ : null),
|
|
1289
1330
|
type: "textarea",
|
|
1290
|
-
label: `${
|
|
1331
|
+
label: `${s(e)("booking.reservation.remark")} (${s(e)("booking.reservation.optional")})`,
|
|
1291
1332
|
icon: "info-circle",
|
|
1292
|
-
placeholder:
|
|
1333
|
+
placeholder: s(e)("booking.reservation.remarkPlaceholder")
|
|
1293
1334
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1294
|
-
C(
|
|
1295
|
-
modelValue:
|
|
1296
|
-
"onUpdate:modelValue":
|
|
1335
|
+
C(oe, {
|
|
1336
|
+
modelValue: s(T),
|
|
1337
|
+
"onUpdate:modelValue": w[14] || (w[14] = ($) => N(T) ? T.value = $ : null),
|
|
1297
1338
|
type: "textarea",
|
|
1298
|
-
label: `${
|
|
1339
|
+
label: `${s(e)("booking.reservation.allergies")} (${s(e)("booking.reservation.optional")})`,
|
|
1299
1340
|
icon: "allergies",
|
|
1300
|
-
placeholder:
|
|
1341
|
+
placeholder: s(e)("booking.reservation.allergiesPlaceholder")
|
|
1301
1342
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1302
|
-
|
|
1343
|
+
s(Wt) ? P("", !0) : (E(), R(dn, {
|
|
1303
1344
|
key: 3,
|
|
1304
|
-
modelValue:
|
|
1305
|
-
"onUpdate:modelValue":
|
|
1306
|
-
label: `${
|
|
1345
|
+
modelValue: s(c),
|
|
1346
|
+
"onUpdate:modelValue": w[15] || (w[15] = ($) => N(c) ? c.value = $ : null),
|
|
1347
|
+
label: `${s(e)("booking.reservation.purposeOfStay")} (${s(e)("booking.reservation.optional")})`,
|
|
1307
1348
|
name: "travelingFor",
|
|
1308
|
-
checkboxes:
|
|
1349
|
+
checkboxes: Jt.value
|
|
1309
1350
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
1310
1351
|
])
|
|
1311
1352
|
]),
|
|
1312
|
-
navigation:
|
|
1353
|
+
navigation: x(() => [
|
|
1313
1354
|
y("div", null, [
|
|
1314
1355
|
C(le, {
|
|
1315
|
-
label:
|
|
1316
|
-
disabled: !
|
|
1317
|
-
"is-loading": a
|
|
1356
|
+
label: s(qt) ? s(e)("booking.reservation.nextButton") : s(e)("general.confirmReservation"),
|
|
1357
|
+
disabled: !s(h),
|
|
1358
|
+
"is-loading": s(a),
|
|
1318
1359
|
"full-width": "",
|
|
1319
|
-
onClickEvent: (
|
|
1360
|
+
onClickEvent: ($) => oo(U)
|
|
1320
1361
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
1321
1362
|
y("button", {
|
|
1322
1363
|
class: "konnectio-abort-reservation link",
|
|
1323
|
-
onClick:
|
|
1364
|
+
onClick: tt(($) => Xe(D), ["prevent"])
|
|
1324
1365
|
}, [
|
|
1325
|
-
y("span", null, V(
|
|
1326
|
-
], 8,
|
|
1366
|
+
y("span", null, V(s(e)("general.goAStepBack")), 1)
|
|
1367
|
+
], 8, ii)
|
|
1327
1368
|
])
|
|
1328
1369
|
]),
|
|
1329
1370
|
_: 2
|
|
1330
1371
|
}, 1024)
|
|
1331
1372
|
]),
|
|
1332
|
-
payment:
|
|
1333
|
-
C(
|
|
1373
|
+
payment: x(() => [
|
|
1374
|
+
C(Oo)
|
|
1334
1375
|
]),
|
|
1335
|
-
confirmation:
|
|
1336
|
-
C(
|
|
1337
|
-
message:
|
|
1376
|
+
confirmation: x(() => [
|
|
1377
|
+
C(So, {
|
|
1378
|
+
message: s(e)("booking.confirmation.thankYou")
|
|
1338
1379
|
}, null, 8, ["message"])
|
|
1339
1380
|
]),
|
|
1340
1381
|
_: 1
|
|
@@ -1343,7 +1384,7 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1343
1384
|
_: 1
|
|
1344
1385
|
}, 8, ["access-token"])
|
|
1345
1386
|
]),
|
|
1346
|
-
fallback:
|
|
1387
|
+
fallback: x(() => [
|
|
1347
1388
|
C($n)
|
|
1348
1389
|
]),
|
|
1349
1390
|
_: 1
|
|
@@ -1352,39 +1393,39 @@ const jn = { class: "fresh-booking-event-addons-price" }, Yn = { key: 1 }, Kn =
|
|
|
1352
1393
|
_: 1
|
|
1353
1394
|
}, 8, ["styling"]));
|
|
1354
1395
|
}
|
|
1355
|
-
}),
|
|
1356
|
-
var
|
|
1357
|
-
function
|
|
1358
|
-
return
|
|
1396
|
+
}), ge = /* @__PURE__ */ J(ri, [["__scopeId", "data-v-55cda648"]]);
|
|
1397
|
+
var It = { exports: {} }, xe = { exports: {} }, Oe = { exports: {} }, it;
|
|
1398
|
+
function Ye() {
|
|
1399
|
+
return it || (it = 1, function(o) {
|
|
1359
1400
|
(function(e, t) {
|
|
1360
1401
|
o.exports ? o.exports = t() : e.EvEmitter = t();
|
|
1361
|
-
})(typeof window < "u" ? window :
|
|
1402
|
+
})(typeof window < "u" ? window : Tt, function() {
|
|
1362
1403
|
function e() {
|
|
1363
1404
|
}
|
|
1364
1405
|
var t = e.prototype;
|
|
1365
1406
|
return t.on = function(n, p) {
|
|
1366
1407
|
if (!(!n || !p)) {
|
|
1367
|
-
var
|
|
1408
|
+
var a = this._events = this._events || {}, h = a[n] = a[n] || [];
|
|
1368
1409
|
return h.indexOf(p) == -1 && h.push(p), this;
|
|
1369
1410
|
}
|
|
1370
1411
|
}, t.once = function(n, p) {
|
|
1371
1412
|
if (!(!n || !p)) {
|
|
1372
1413
|
this.on(n, p);
|
|
1373
|
-
var
|
|
1414
|
+
var a = this._onceEvents = this._onceEvents || {}, h = a[n] = a[n] || {};
|
|
1374
1415
|
return h[p] = !0, this;
|
|
1375
1416
|
}
|
|
1376
1417
|
}, t.off = function(n, p) {
|
|
1377
|
-
var
|
|
1378
|
-
if (!(!
|
|
1379
|
-
var h =
|
|
1380
|
-
return h != -1 &&
|
|
1418
|
+
var a = this._events && this._events[n];
|
|
1419
|
+
if (!(!a || !a.length)) {
|
|
1420
|
+
var h = a.indexOf(p);
|
|
1421
|
+
return h != -1 && a.splice(h, 1), this;
|
|
1381
1422
|
}
|
|
1382
1423
|
}, t.emitEvent = function(n, p) {
|
|
1383
|
-
var
|
|
1384
|
-
if (!(!
|
|
1385
|
-
|
|
1386
|
-
for (var h = this._onceEvents && this._onceEvents[n], c = 0; c <
|
|
1387
|
-
var l =
|
|
1424
|
+
var a = this._events && this._events[n];
|
|
1425
|
+
if (!(!a || !a.length)) {
|
|
1426
|
+
a = a.slice(0), p = p || [];
|
|
1427
|
+
for (var h = this._onceEvents && this._onceEvents[n], c = 0; c < a.length; c++) {
|
|
1428
|
+
var l = a[c], u = h && h[l];
|
|
1388
1429
|
u && (this.off(n, l), delete h[l]), l.apply(this, p);
|
|
1389
1430
|
}
|
|
1390
1431
|
return this;
|
|
@@ -1393,7 +1434,7 @@ function je() {
|
|
|
1393
1434
|
delete this._events, delete this._onceEvents;
|
|
1394
1435
|
}, e;
|
|
1395
1436
|
});
|
|
1396
|
-
}(
|
|
1437
|
+
}(Oe)), Oe.exports;
|
|
1397
1438
|
}
|
|
1398
1439
|
var Ae = { exports: {} };
|
|
1399
1440
|
/*!
|
|
@@ -1401,9 +1442,9 @@ var Ae = { exports: {} };
|
|
|
1401
1442
|
* measure size of elements
|
|
1402
1443
|
* MIT license
|
|
1403
1444
|
*/
|
|
1404
|
-
var
|
|
1405
|
-
function
|
|
1406
|
-
return
|
|
1445
|
+
var rt;
|
|
1446
|
+
function Ke() {
|
|
1447
|
+
return rt || (rt = 1, function(o) {
|
|
1407
1448
|
(function(e, t) {
|
|
1408
1449
|
o.exports ? o.exports = t() : e.getSize = t();
|
|
1409
1450
|
})(window, function() {
|
|
@@ -1415,7 +1456,7 @@ function Ye() {
|
|
|
1415
1456
|
}
|
|
1416
1457
|
var p = typeof console > "u" ? n : function(d) {
|
|
1417
1458
|
console.error(d);
|
|
1418
|
-
},
|
|
1459
|
+
}, a = [
|
|
1419
1460
|
"paddingLeft",
|
|
1420
1461
|
"paddingRight",
|
|
1421
1462
|
"paddingTop",
|
|
@@ -1428,7 +1469,7 @@ function Ye() {
|
|
|
1428
1469
|
"borderRightWidth",
|
|
1429
1470
|
"borderTopWidth",
|
|
1430
1471
|
"borderBottomWidth"
|
|
1431
|
-
], h =
|
|
1472
|
+
], h = a.length;
|
|
1432
1473
|
function c() {
|
|
1433
1474
|
for (var d = {
|
|
1434
1475
|
width: 0,
|
|
@@ -1438,7 +1479,7 @@ function Ye() {
|
|
|
1438
1479
|
outerWidth: 0,
|
|
1439
1480
|
outerHeight: 0
|
|
1440
1481
|
}, b = 0; b < h; b++) {
|
|
1441
|
-
var k =
|
|
1482
|
+
var k = a[b];
|
|
1442
1483
|
d[k] = 0;
|
|
1443
1484
|
}
|
|
1444
1485
|
return d;
|
|
@@ -1467,24 +1508,24 @@ function Ye() {
|
|
|
1467
1508
|
var k = {};
|
|
1468
1509
|
k.width = d.offsetWidth, k.height = d.offsetHeight;
|
|
1469
1510
|
for (var m = k.isBorderBox = b.boxSizing == "border-box", i = 0; i < h; i++) {
|
|
1470
|
-
var r =
|
|
1511
|
+
var r = a[i], v = b[r], T = parseFloat(v);
|
|
1471
1512
|
k[r] = isNaN(T) ? 0 : T;
|
|
1472
1513
|
}
|
|
1473
|
-
var
|
|
1474
|
-
|
|
1475
|
-
(X ? 0 :
|
|
1476
|
-
var
|
|
1477
|
-
return
|
|
1478
|
-
(X ? 0 : L +
|
|
1514
|
+
var S = k.paddingLeft + k.paddingRight, L = k.paddingTop + k.paddingBottom, H = k.marginLeft + k.marginRight, M = k.marginTop + k.marginBottom, A = k.borderLeftWidth + k.borderRightWidth, F = k.borderTopWidth + k.borderBottomWidth, X = m && f, ae = t(b.width);
|
|
1515
|
+
ae !== !1 && (k.width = ae + // add padding and border unless it's already including it
|
|
1516
|
+
(X ? 0 : S + A));
|
|
1517
|
+
var G = t(b.height);
|
|
1518
|
+
return G !== !1 && (k.height = G + // add padding and border unless it's already including it
|
|
1519
|
+
(X ? 0 : L + F)), k.innerWidth = k.width - (S + A), k.innerHeight = k.height - (L + F), k.outerWidth = k.width + H, k.outerHeight = k.height + M, k;
|
|
1479
1520
|
}
|
|
1480
1521
|
}
|
|
1481
1522
|
return _;
|
|
1482
1523
|
});
|
|
1483
1524
|
}(Ae)), Ae.exports;
|
|
1484
1525
|
}
|
|
1485
|
-
var
|
|
1486
|
-
function
|
|
1487
|
-
return
|
|
1526
|
+
var He = { exports: {} }, De = { exports: {} }, st;
|
|
1527
|
+
function si() {
|
|
1528
|
+
return st || (st = 1, function(o) {
|
|
1488
1529
|
(function(e, t) {
|
|
1489
1530
|
o.exports ? o.exports = t() : e.matchesSelector = t();
|
|
1490
1531
|
})(window, function() {
|
|
@@ -1494,25 +1535,25 @@ function ni() {
|
|
|
1494
1535
|
return "matches";
|
|
1495
1536
|
if (n.matchesSelector)
|
|
1496
1537
|
return "matchesSelector";
|
|
1497
|
-
for (var p = ["webkit", "moz", "ms", "o"],
|
|
1498
|
-
var h = p[
|
|
1538
|
+
for (var p = ["webkit", "moz", "ms", "o"], a = 0; a < p.length; a++) {
|
|
1539
|
+
var h = p[a], c = h + "MatchesSelector";
|
|
1499
1540
|
if (n[c])
|
|
1500
1541
|
return c;
|
|
1501
1542
|
}
|
|
1502
1543
|
}();
|
|
1503
|
-
return function(p,
|
|
1504
|
-
return p[t](
|
|
1544
|
+
return function(p, a) {
|
|
1545
|
+
return p[t](a);
|
|
1505
1546
|
};
|
|
1506
1547
|
});
|
|
1507
|
-
}(
|
|
1548
|
+
}(De)), De.exports;
|
|
1508
1549
|
}
|
|
1509
|
-
var
|
|
1510
|
-
function
|
|
1511
|
-
return
|
|
1550
|
+
var at;
|
|
1551
|
+
function ai() {
|
|
1552
|
+
return at || (at = 1, function(o) {
|
|
1512
1553
|
(function(e, t) {
|
|
1513
1554
|
o.exports ? o.exports = t(
|
|
1514
1555
|
e,
|
|
1515
|
-
|
|
1556
|
+
si()
|
|
1516
1557
|
) : e.fizzyUIUtils = t(
|
|
1517
1558
|
e,
|
|
1518
1559
|
e.matchesSelector
|
|
@@ -1526,14 +1567,14 @@ function ii() {
|
|
|
1526
1567
|
}, p.modulo = function(c, l) {
|
|
1527
1568
|
return (c % l + l) % l;
|
|
1528
1569
|
};
|
|
1529
|
-
var
|
|
1570
|
+
var a = Array.prototype.slice;
|
|
1530
1571
|
p.makeArray = function(c) {
|
|
1531
1572
|
if (Array.isArray(c))
|
|
1532
1573
|
return c;
|
|
1533
1574
|
if (c == null)
|
|
1534
1575
|
return [];
|
|
1535
1576
|
var l = typeof c == "object" && typeof c.length == "number";
|
|
1536
|
-
return l ?
|
|
1577
|
+
return l ? a.call(c) : [c];
|
|
1537
1578
|
}, p.removeFrom = function(c, l) {
|
|
1538
1579
|
var u = c.indexOf(l);
|
|
1539
1580
|
u != -1 && c.splice(u, 1);
|
|
@@ -1597,15 +1638,15 @@ function ii() {
|
|
|
1597
1638
|
});
|
|
1598
1639
|
}, p;
|
|
1599
1640
|
});
|
|
1600
|
-
}(
|
|
1641
|
+
}(He)), He.exports;
|
|
1601
1642
|
}
|
|
1602
|
-
var
|
|
1603
|
-
function
|
|
1604
|
-
return
|
|
1643
|
+
var Me = { exports: {} }, lt;
|
|
1644
|
+
function li() {
|
|
1645
|
+
return lt || (lt = 1, function(o) {
|
|
1605
1646
|
(function(e, t) {
|
|
1606
1647
|
o.exports ? o.exports = t(
|
|
1607
|
-
|
|
1608
|
-
|
|
1648
|
+
Ye(),
|
|
1649
|
+
Ke()
|
|
1609
1650
|
) : (e.Outlayer = {}, e.Outlayer.Item = t(
|
|
1610
1651
|
e.EvEmitter,
|
|
1611
1652
|
e.getSize
|
|
@@ -1616,7 +1657,7 @@ function ri() {
|
|
|
1616
1657
|
return !1;
|
|
1617
1658
|
return i = null, !0;
|
|
1618
1659
|
}
|
|
1619
|
-
var
|
|
1660
|
+
var a = document.documentElement.style, h = typeof a.transition == "string" ? "transition" : "WebkitTransition", c = typeof a.transform == "string" ? "transform" : "WebkitTransform", l = {
|
|
1620
1661
|
WebkitTransition: "webkitTransitionEnd",
|
|
1621
1662
|
transition: "transitionend"
|
|
1622
1663
|
}[h], u = {
|
|
@@ -1653,13 +1694,13 @@ function ri() {
|
|
|
1653
1694
|
i[v] = m[r];
|
|
1654
1695
|
}
|
|
1655
1696
|
}, g.getPosition = function() {
|
|
1656
|
-
var m = getComputedStyle(this.element), i = this.layout._getOption("originLeft"), r = this.layout._getOption("originTop"), v = m[i ? "left" : "right"], T = m[r ? "top" : "bottom"],
|
|
1657
|
-
v.indexOf("%") != -1 && (
|
|
1697
|
+
var m = getComputedStyle(this.element), i = this.layout._getOption("originLeft"), r = this.layout._getOption("originTop"), v = m[i ? "left" : "right"], T = m[r ? "top" : "bottom"], S = parseFloat(v), L = parseFloat(T), H = this.layout.size;
|
|
1698
|
+
v.indexOf("%") != -1 && (S = S / 100 * H.width), T.indexOf("%") != -1 && (L = L / 100 * H.height), S = isNaN(S) ? 0 : S, L = isNaN(L) ? 0 : L, S -= i ? H.paddingLeft : H.paddingRight, L -= r ? H.paddingTop : H.paddingBottom, this.position.x = S, this.position.y = L;
|
|
1658
1699
|
}, g.layoutPosition = function() {
|
|
1659
|
-
var m = this.layout.size, i = {}, r = this.layout._getOption("originLeft"), v = this.layout._getOption("originTop"), T = r ? "paddingLeft" : "paddingRight",
|
|
1660
|
-
i[
|
|
1661
|
-
var
|
|
1662
|
-
i[
|
|
1700
|
+
var m = this.layout.size, i = {}, r = this.layout._getOption("originLeft"), v = this.layout._getOption("originTop"), T = r ? "paddingLeft" : "paddingRight", S = r ? "left" : "right", L = r ? "right" : "left", H = this.position.x + m[T];
|
|
1701
|
+
i[S] = this.getXValue(H), i[L] = "";
|
|
1702
|
+
var M = v ? "paddingTop" : "paddingBottom", A = v ? "top" : "bottom", F = v ? "bottom" : "top", X = this.position.y + m[M];
|
|
1703
|
+
i[A] = this.getYValue(X), i[F] = "", this.css(i), this.emitEvent("layout", [this]);
|
|
1663
1704
|
}, g.getXValue = function(m) {
|
|
1664
1705
|
var i = this.layout._getOption("horizontal");
|
|
1665
1706
|
return this.layout.options.percentPosition && !i ? m / this.layout.size.width * 100 + "%" : m + "px";
|
|
@@ -1673,9 +1714,9 @@ function ri() {
|
|
|
1673
1714
|
this.layoutPosition();
|
|
1674
1715
|
return;
|
|
1675
1716
|
}
|
|
1676
|
-
var
|
|
1677
|
-
|
|
1678
|
-
to:
|
|
1717
|
+
var S = m - r, L = i - v, H = {};
|
|
1718
|
+
H.transform = this.getTranslate(S, L), this.transition({
|
|
1719
|
+
to: H,
|
|
1679
1720
|
onTransitionEnd: {
|
|
1680
1721
|
transform: this.layoutPosition
|
|
1681
1722
|
},
|
|
@@ -1804,23 +1845,23 @@ function ri() {
|
|
|
1804
1845
|
});
|
|
1805
1846
|
}, f;
|
|
1806
1847
|
});
|
|
1807
|
-
}(
|
|
1848
|
+
}(Me)), Me.exports;
|
|
1808
1849
|
}
|
|
1809
1850
|
/*!
|
|
1810
1851
|
* Outlayer v2.1.1
|
|
1811
1852
|
* the brains and guts of a layout library
|
|
1812
1853
|
* MIT license
|
|
1813
1854
|
*/
|
|
1814
|
-
var
|
|
1815
|
-
function
|
|
1816
|
-
return
|
|
1855
|
+
var ut;
|
|
1856
|
+
function ui() {
|
|
1857
|
+
return ut || (ut = 1, function(o) {
|
|
1817
1858
|
(function(e, t) {
|
|
1818
1859
|
o.exports ? o.exports = t(
|
|
1819
1860
|
e,
|
|
1820
|
-
je(),
|
|
1821
1861
|
Ye(),
|
|
1822
|
-
|
|
1823
|
-
|
|
1862
|
+
Ke(),
|
|
1863
|
+
ai(),
|
|
1864
|
+
li()
|
|
1824
1865
|
) : e.Outlayer = t(
|
|
1825
1866
|
e,
|
|
1826
1867
|
e.EvEmitter,
|
|
@@ -1828,20 +1869,20 @@ function si() {
|
|
|
1828
1869
|
e.fizzyUIUtils,
|
|
1829
1870
|
e.Outlayer.Item
|
|
1830
1871
|
);
|
|
1831
|
-
})(window, function(t, n, p,
|
|
1872
|
+
})(window, function(t, n, p, a, h) {
|
|
1832
1873
|
var c = t.console, l = t.jQuery, u = function() {
|
|
1833
1874
|
}, f = 0, g = {};
|
|
1834
1875
|
function _(i, r) {
|
|
1835
|
-
var v =
|
|
1876
|
+
var v = a.getQueryElement(i);
|
|
1836
1877
|
if (!v) {
|
|
1837
1878
|
c && c.error("Bad element for " + this.constructor.namespace + ": " + (v || i));
|
|
1838
1879
|
return;
|
|
1839
1880
|
}
|
|
1840
|
-
this.element = v, l && (this.$element = l(this.element)), this.options =
|
|
1881
|
+
this.element = v, l && (this.$element = l(this.element)), this.options = a.extend({}, this.constructor.defaults), this.option(r);
|
|
1841
1882
|
var T = ++f;
|
|
1842
1883
|
this.element.outlayerGUID = T, g[T] = this, this._create();
|
|
1843
|
-
var
|
|
1844
|
-
|
|
1884
|
+
var S = this._getOption("initLayout");
|
|
1885
|
+
S && this.layout();
|
|
1845
1886
|
}
|
|
1846
1887
|
_.namespace = "outlayer", _.Item = h, _.defaults = {
|
|
1847
1888
|
containerStyle: {
|
|
@@ -1864,8 +1905,8 @@ function si() {
|
|
|
1864
1905
|
}
|
|
1865
1906
|
};
|
|
1866
1907
|
var d = _.prototype;
|
|
1867
|
-
|
|
1868
|
-
|
|
1908
|
+
a.extend(d, n.prototype), d.option = function(i) {
|
|
1909
|
+
a.extend(this.options, i);
|
|
1869
1910
|
}, d._getOption = function(i) {
|
|
1870
1911
|
var r = this.constructor.compatOptions[i];
|
|
1871
1912
|
return r && this.options[r] !== void 0 ? this.options[r] : this.options[i];
|
|
@@ -1879,19 +1920,19 @@ function si() {
|
|
|
1879
1920
|
resize: "isResizeBound",
|
|
1880
1921
|
resizeContainer: "isResizingContainer"
|
|
1881
1922
|
}, d._create = function() {
|
|
1882
|
-
this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp),
|
|
1923
|
+
this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), a.extend(this.element.style, this.options.containerStyle);
|
|
1883
1924
|
var i = this._getOption("resize");
|
|
1884
1925
|
i && this.bindResize();
|
|
1885
1926
|
}, d.reloadItems = function() {
|
|
1886
1927
|
this.items = this._itemize(this.element.children);
|
|
1887
1928
|
}, d._itemize = function(i) {
|
|
1888
|
-
for (var r = this._filterFindItemElements(i), v = this.constructor.Item, T = [],
|
|
1889
|
-
var L = r[
|
|
1890
|
-
T.push(
|
|
1929
|
+
for (var r = this._filterFindItemElements(i), v = this.constructor.Item, T = [], S = 0; S < r.length; S++) {
|
|
1930
|
+
var L = r[S], H = new v(L, this);
|
|
1931
|
+
T.push(H);
|
|
1891
1932
|
}
|
|
1892
1933
|
return T;
|
|
1893
1934
|
}, d._filterFindItemElements = function(i) {
|
|
1894
|
-
return
|
|
1935
|
+
return a.filterFindElements(i, this.options.itemSelector);
|
|
1895
1936
|
}, d.getItemElements = function() {
|
|
1896
1937
|
return this.items.map(function(i) {
|
|
1897
1938
|
return i.element;
|
|
@@ -1917,8 +1958,8 @@ function si() {
|
|
|
1917
1958
|
if (this._emitCompleteOnItems("layout", i), !(!i || !i.length)) {
|
|
1918
1959
|
var v = [];
|
|
1919
1960
|
i.forEach(function(T) {
|
|
1920
|
-
var
|
|
1921
|
-
|
|
1961
|
+
var S = this._getItemLayoutPosition(T);
|
|
1962
|
+
S.item = T, S.isInstant = r || T.isLayoutInstant, v.push(S);
|
|
1922
1963
|
}, this), this._processLayoutQueue(v);
|
|
1923
1964
|
}
|
|
1924
1965
|
}, d._getItemLayoutPosition = function() {
|
|
@@ -1937,8 +1978,8 @@ function si() {
|
|
|
1937
1978
|
return;
|
|
1938
1979
|
}
|
|
1939
1980
|
return this.stagger = m(i), this.stagger;
|
|
1940
|
-
}, d._positionItem = function(i, r, v, T,
|
|
1941
|
-
T ? i.goTo(r, v) : (i.stagger(
|
|
1981
|
+
}, d._positionItem = function(i, r, v, T, S) {
|
|
1982
|
+
T ? i.goTo(r, v) : (i.stagger(S * this.stagger), i.moveTo(r, v));
|
|
1942
1983
|
}, d._postLayout = function() {
|
|
1943
1984
|
this.resizeContainer();
|
|
1944
1985
|
}, d.resizeContainer = function() {
|
|
@@ -1957,24 +1998,24 @@ function si() {
|
|
|
1957
1998
|
function T() {
|
|
1958
1999
|
v.dispatchEvent(i + "Complete", null, [r]);
|
|
1959
2000
|
}
|
|
1960
|
-
var
|
|
1961
|
-
if (!r ||
|
|
2001
|
+
var S = r.length;
|
|
2002
|
+
if (!r || !S) {
|
|
1962
2003
|
T();
|
|
1963
2004
|
return;
|
|
1964
2005
|
}
|
|
1965
2006
|
var L = 0;
|
|
1966
|
-
function
|
|
1967
|
-
L++, L ==
|
|
2007
|
+
function H() {
|
|
2008
|
+
L++, L == S && T();
|
|
1968
2009
|
}
|
|
1969
|
-
r.forEach(function(
|
|
1970
|
-
|
|
2010
|
+
r.forEach(function(M) {
|
|
2011
|
+
M.once(i, H);
|
|
1971
2012
|
});
|
|
1972
2013
|
}, d.dispatchEvent = function(i, r, v) {
|
|
1973
2014
|
var T = r ? [r].concat(v) : v;
|
|
1974
2015
|
if (this.emitEvent(i, T), l)
|
|
1975
2016
|
if (this.$element = this.$element || l(this.element), r) {
|
|
1976
|
-
var
|
|
1977
|
-
|
|
2017
|
+
var S = l.Event(r);
|
|
2018
|
+
S.type = i, this.$element.trigger(S, v);
|
|
1978
2019
|
} else
|
|
1979
2020
|
this.$element.trigger(i, v);
|
|
1980
2021
|
}, d.ignore = function(i) {
|
|
@@ -1987,11 +2028,11 @@ function si() {
|
|
|
1987
2028
|
i = this._find(i), i && (this.stamps = this.stamps.concat(i), i.forEach(this.ignore, this));
|
|
1988
2029
|
}, d.unstamp = function(i) {
|
|
1989
2030
|
i = this._find(i), i && i.forEach(function(r) {
|
|
1990
|
-
|
|
2031
|
+
a.removeFrom(this.stamps, r), this.unignore(r);
|
|
1991
2032
|
}, this);
|
|
1992
2033
|
}, d._find = function(i) {
|
|
1993
2034
|
if (i)
|
|
1994
|
-
return typeof i == "string" && (i = this.element.querySelectorAll(i)), i =
|
|
2035
|
+
return typeof i == "string" && (i = this.element.querySelectorAll(i)), i = a.makeArray(i), i;
|
|
1995
2036
|
}, d._manageStamps = function() {
|
|
1996
2037
|
!this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
|
|
1997
2038
|
}, d._getBoundingRect = function() {
|
|
@@ -2003,20 +2044,20 @@ function si() {
|
|
|
2003
2044
|
bottom: i.bottom - (r.paddingBottom + r.borderBottomWidth)
|
|
2004
2045
|
};
|
|
2005
2046
|
}, d._manageStamp = u, d._getElementOffset = function(i) {
|
|
2006
|
-
var r = i.getBoundingClientRect(), v = this._boundingRect, T = p(i),
|
|
2047
|
+
var r = i.getBoundingClientRect(), v = this._boundingRect, T = p(i), S = {
|
|
2007
2048
|
left: r.left - v.left - T.marginLeft,
|
|
2008
2049
|
top: r.top - v.top - T.marginTop,
|
|
2009
2050
|
right: v.right - r.right - T.marginRight,
|
|
2010
2051
|
bottom: v.bottom - r.bottom - T.marginBottom
|
|
2011
2052
|
};
|
|
2012
|
-
return
|
|
2013
|
-
}, d.handleEvent =
|
|
2053
|
+
return S;
|
|
2054
|
+
}, d.handleEvent = a.handleEvent, d.bindResize = function() {
|
|
2014
2055
|
t.addEventListener("resize", this), this.isResizeBound = !0;
|
|
2015
2056
|
}, d.unbindResize = function() {
|
|
2016
2057
|
t.removeEventListener("resize", this), this.isResizeBound = !1;
|
|
2017
2058
|
}, d.onresize = function() {
|
|
2018
2059
|
this.resize();
|
|
2019
|
-
},
|
|
2060
|
+
}, a.debounceMethod(_, "onresize", 100), d.resize = function() {
|
|
2020
2061
|
!this.isResizeBound || !this.needsResizeLayout() || this.layout();
|
|
2021
2062
|
}, d.needsResizeLayout = function() {
|
|
2022
2063
|
var i = p(this.element), r = this.size && i;
|
|
@@ -2060,7 +2101,7 @@ function si() {
|
|
|
2060
2101
|
return v;
|
|
2061
2102
|
}
|
|
2062
2103
|
}, d.getItems = function(i) {
|
|
2063
|
-
i =
|
|
2104
|
+
i = a.makeArray(i);
|
|
2064
2105
|
var r = [];
|
|
2065
2106
|
return i.forEach(function(v) {
|
|
2066
2107
|
var T = this.getItem(v);
|
|
@@ -2069,7 +2110,7 @@ function si() {
|
|
|
2069
2110
|
}, d.remove = function(i) {
|
|
2070
2111
|
var r = this.getItems(i);
|
|
2071
2112
|
this._emitCompleteOnItems("remove", r), !(!r || !r.length) && r.forEach(function(v) {
|
|
2072
|
-
v.remove(),
|
|
2113
|
+
v.remove(), a.removeFrom(this.items, v);
|
|
2073
2114
|
}, this);
|
|
2074
2115
|
}, d.destroy = function() {
|
|
2075
2116
|
var i = this.element.style;
|
|
@@ -2079,12 +2120,12 @@ function si() {
|
|
|
2079
2120
|
var r = this.element.outlayerGUID;
|
|
2080
2121
|
delete g[r], delete this.element.outlayerGUID, l && l.removeData(this.element, this.constructor.namespace);
|
|
2081
2122
|
}, _.data = function(i) {
|
|
2082
|
-
i =
|
|
2123
|
+
i = a.getQueryElement(i);
|
|
2083
2124
|
var r = i && i.outlayerGUID;
|
|
2084
2125
|
return r && g[r];
|
|
2085
2126
|
}, _.create = function(i, r) {
|
|
2086
2127
|
var v = b(_);
|
|
2087
|
-
return v.defaults =
|
|
2128
|
+
return v.defaults = a.extend({}, _.defaults), a.extend(v.defaults, r), v.compatOptions = a.extend({}, _.compatOptions), v.namespace = i, v.data = _.data, v.Item = b(h), a.htmlInit(v, i), l && l.bridget && l.bridget(i, v), v;
|
|
2088
2129
|
};
|
|
2089
2130
|
function b(i) {
|
|
2090
2131
|
function r() {
|
|
@@ -2103,8 +2144,8 @@ function si() {
|
|
|
2103
2144
|
if (!v.length)
|
|
2104
2145
|
return 0;
|
|
2105
2146
|
v = parseFloat(v);
|
|
2106
|
-
var
|
|
2107
|
-
return v *
|
|
2147
|
+
var S = k[T] || 1;
|
|
2148
|
+
return v * S;
|
|
2108
2149
|
}
|
|
2109
2150
|
return _.Item = h, _;
|
|
2110
2151
|
});
|
|
@@ -2120,8 +2161,8 @@ function si() {
|
|
|
2120
2161
|
(function(o) {
|
|
2121
2162
|
(function(e, t) {
|
|
2122
2163
|
o.exports ? o.exports = t(
|
|
2123
|
-
|
|
2124
|
-
|
|
2164
|
+
ui(),
|
|
2165
|
+
Ke()
|
|
2125
2166
|
) : e.Masonry = t(
|
|
2126
2167
|
e.Outlayer,
|
|
2127
2168
|
e.getSize
|
|
@@ -2129,13 +2170,13 @@ function si() {
|
|
|
2129
2170
|
})(window, function(t, n) {
|
|
2130
2171
|
var p = t.create("masonry");
|
|
2131
2172
|
p.compatOptions.fitWidth = "isFitWidth";
|
|
2132
|
-
var
|
|
2133
|
-
return
|
|
2173
|
+
var a = p.prototype;
|
|
2174
|
+
return a._resetLayout = function() {
|
|
2134
2175
|
this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];
|
|
2135
2176
|
for (var h = 0; h < this.cols; h++)
|
|
2136
2177
|
this.colYs.push(0);
|
|
2137
2178
|
this.maxY = 0, this.horizontalColIndex = 0;
|
|
2138
|
-
},
|
|
2179
|
+
}, a.measureColumns = function() {
|
|
2139
2180
|
if (this.getContainerWidth(), !this.columnWidth) {
|
|
2140
2181
|
var h = this.items[0], c = h && h.element;
|
|
2141
2182
|
this.columnWidth = c && n(c).outerWidth || // if first elem has no width, default to size of container
|
|
@@ -2143,10 +2184,10 @@ function si() {
|
|
|
2143
2184
|
}
|
|
2144
2185
|
var l = this.columnWidth += this.gutter, u = this.containerWidth + this.gutter, f = u / l, g = l - u % l, _ = g && g < 1 ? "round" : "floor";
|
|
2145
2186
|
f = Math[_](f), this.cols = Math.max(f, 1);
|
|
2146
|
-
},
|
|
2187
|
+
}, a.getContainerWidth = function() {
|
|
2147
2188
|
var h = this._getOption("fitWidth"), c = h ? this.element.parentNode : this.element, l = n(c);
|
|
2148
2189
|
this.containerWidth = l && l.innerWidth;
|
|
2149
|
-
},
|
|
2190
|
+
}, a._getItemLayoutPosition = function(h) {
|
|
2150
2191
|
h.getSize();
|
|
2151
2192
|
var c = h.size.outerWidth % this.columnWidth, l = c && c < 1 ? "round" : "ceil", u = Math[l](h.size.outerWidth / this.columnWidth);
|
|
2152
2193
|
u = Math.min(u, this.cols);
|
|
@@ -2156,24 +2197,24 @@ function si() {
|
|
|
2156
2197
|
}, d = g.y + h.size.outerHeight, b = u + g.col, k = g.col; k < b; k++)
|
|
2157
2198
|
this.colYs[k] = d;
|
|
2158
2199
|
return _;
|
|
2159
|
-
},
|
|
2200
|
+
}, a._getTopColPosition = function(h) {
|
|
2160
2201
|
var c = this._getTopColGroup(h), l = Math.min.apply(Math, c);
|
|
2161
2202
|
return {
|
|
2162
2203
|
col: c.indexOf(l),
|
|
2163
2204
|
y: l
|
|
2164
2205
|
};
|
|
2165
|
-
},
|
|
2206
|
+
}, a._getTopColGroup = function(h) {
|
|
2166
2207
|
if (h < 2)
|
|
2167
2208
|
return this.colYs;
|
|
2168
2209
|
for (var c = [], l = this.cols + 1 - h, u = 0; u < l; u++)
|
|
2169
2210
|
c[u] = this._getColGroupY(u, h);
|
|
2170
2211
|
return c;
|
|
2171
|
-
},
|
|
2212
|
+
}, a._getColGroupY = function(h, c) {
|
|
2172
2213
|
if (c < 2)
|
|
2173
2214
|
return this.colYs[h];
|
|
2174
2215
|
var l = this.colYs.slice(h, h + c);
|
|
2175
2216
|
return Math.max.apply(Math, l);
|
|
2176
|
-
},
|
|
2217
|
+
}, a._getHorizontalColPosition = function(h, c) {
|
|
2177
2218
|
var l = this.horizontalColIndex % this.cols, u = h > 1 && l + h > this.cols;
|
|
2178
2219
|
l = u ? 0 : l;
|
|
2179
2220
|
var f = c.size.outerWidth && c.size.outerHeight;
|
|
@@ -2181,32 +2222,32 @@ function si() {
|
|
|
2181
2222
|
col: l,
|
|
2182
2223
|
y: this._getColGroupY(l, h)
|
|
2183
2224
|
};
|
|
2184
|
-
},
|
|
2225
|
+
}, a._manageStamp = function(h) {
|
|
2185
2226
|
var c = n(h), l = this._getElementOffset(h), u = this._getOption("originLeft"), f = u ? l.left : l.right, g = f + c.outerWidth, _ = Math.floor(f / this.columnWidth);
|
|
2186
2227
|
_ = Math.max(0, _);
|
|
2187
2228
|
var d = Math.floor(g / this.columnWidth);
|
|
2188
2229
|
d -= g % this.columnWidth ? 0 : 1, d = Math.min(this.cols - 1, d);
|
|
2189
2230
|
for (var b = this._getOption("originTop"), k = (b ? l.top : l.bottom) + c.outerHeight, m = _; m <= d; m++)
|
|
2190
2231
|
this.colYs[m] = Math.max(k, this.colYs[m]);
|
|
2191
|
-
},
|
|
2232
|
+
}, a._getContainerSize = function() {
|
|
2192
2233
|
this.maxY = Math.max.apply(Math, this.colYs);
|
|
2193
2234
|
var h = {
|
|
2194
2235
|
height: this.maxY
|
|
2195
2236
|
};
|
|
2196
2237
|
return this._getOption("fitWidth") && (h.width = this._getContainerFitWidth()), h;
|
|
2197
|
-
},
|
|
2238
|
+
}, a._getContainerFitWidth = function() {
|
|
2198
2239
|
for (var h = 0, c = this.cols; --c && this.colYs[c] === 0; )
|
|
2199
2240
|
h++;
|
|
2200
2241
|
return (this.cols - h) * this.columnWidth - this.gutter;
|
|
2201
|
-
},
|
|
2242
|
+
}, a.needsResizeLayout = function() {
|
|
2202
2243
|
var h = this.containerWidth;
|
|
2203
2244
|
return this.getContainerWidth(), h != this.containerWidth;
|
|
2204
2245
|
}, p;
|
|
2205
2246
|
});
|
|
2206
|
-
})(
|
|
2207
|
-
var
|
|
2208
|
-
const
|
|
2209
|
-
var
|
|
2247
|
+
})(It);
|
|
2248
|
+
var di = It.exports;
|
|
2249
|
+
const dt = /* @__PURE__ */ Ct(di);
|
|
2250
|
+
var $t = { exports: {} };
|
|
2210
2251
|
/*!
|
|
2211
2252
|
* imagesLoaded v4.1.4
|
|
2212
2253
|
* JavaScript is all like "You images are done yet or what?"
|
|
@@ -2216,16 +2257,16 @@ var Ct = { exports: {} };
|
|
|
2216
2257
|
(function(e, t) {
|
|
2217
2258
|
o.exports ? o.exports = t(
|
|
2218
2259
|
e,
|
|
2219
|
-
|
|
2260
|
+
Ye()
|
|
2220
2261
|
) : e.imagesLoaded = t(
|
|
2221
2262
|
e,
|
|
2222
2263
|
e.EvEmitter
|
|
2223
2264
|
);
|
|
2224
2265
|
})(
|
|
2225
|
-
typeof window < "u" ? window :
|
|
2266
|
+
typeof window < "u" ? window : Tt,
|
|
2226
2267
|
// -------------------------- factory -------------------------- //
|
|
2227
2268
|
function(t, n) {
|
|
2228
|
-
var p = t.jQuery,
|
|
2269
|
+
var p = t.jQuery, a = t.console;
|
|
2229
2270
|
function h(d, b) {
|
|
2230
2271
|
for (var k in b)
|
|
2231
2272
|
d[k] = b[k];
|
|
@@ -2243,7 +2284,7 @@ var Ct = { exports: {} };
|
|
|
2243
2284
|
return new u(d, b, k);
|
|
2244
2285
|
var m = d;
|
|
2245
2286
|
if (typeof d == "string" && (m = document.querySelectorAll(d)), !m) {
|
|
2246
|
-
|
|
2287
|
+
a.error("Bad element for imagesLoaded " + (m || d));
|
|
2247
2288
|
return;
|
|
2248
2289
|
}
|
|
2249
2290
|
this.elements = l(m), this.options = h({}, this.options), typeof b == "function" ? k = b : h(this.options, b), k && this.on("always", k), this.getImages(), p && (this.jqDeferred = new p.Deferred()), setTimeout(this.check.bind(this));
|
|
@@ -2300,7 +2341,7 @@ var Ct = { exports: {} };
|
|
|
2300
2341
|
k.once("progress", b), k.check();
|
|
2301
2342
|
});
|
|
2302
2343
|
}, u.prototype.progress = function(d, b, k) {
|
|
2303
|
-
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !d.isLoaded, this.emitEvent("progress", [this, d, b]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, d), this.progressedCount == this.images.length && this.complete(), this.options.debug &&
|
|
2344
|
+
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !d.isLoaded, this.emitEvent("progress", [this, d, b]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, d), this.progressedCount == this.images.length && this.complete(), this.options.debug && a && a.log("progress: " + k, d, b);
|
|
2304
2345
|
}, u.prototype.complete = function() {
|
|
2305
2346
|
var d = this.hasAnyBroken ? "fail" : "done";
|
|
2306
2347
|
if (this.isComplete = !0, this.emitEvent(d, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
|
|
@@ -2351,10 +2392,10 @@ var Ct = { exports: {} };
|
|
|
2351
2392
|
}, u.makeJQueryPlugin(), u;
|
|
2352
2393
|
}
|
|
2353
2394
|
);
|
|
2354
|
-
})(
|
|
2355
|
-
var
|
|
2356
|
-
const
|
|
2357
|
-
function
|
|
2395
|
+
})($t);
|
|
2396
|
+
var ci = $t.exports;
|
|
2397
|
+
const pi = /* @__PURE__ */ Ct(ci);
|
|
2398
|
+
function hi(o) {
|
|
2358
2399
|
return { all: o = o || /* @__PURE__ */ new Map(), on: function(e, t) {
|
|
2359
2400
|
var n = o.get(e);
|
|
2360
2401
|
n ? n.push(t) : o.set(e, [t]);
|
|
@@ -2370,7 +2411,7 @@ function di(o) {
|
|
|
2370
2411
|
});
|
|
2371
2412
|
} };
|
|
2372
2413
|
}
|
|
2373
|
-
const
|
|
2414
|
+
const ve = {
|
|
2374
2415
|
"column-width": "columnWidth",
|
|
2375
2416
|
"transition-duration": "transitionDuration",
|
|
2376
2417
|
"item-selector": "itemSelector",
|
|
@@ -2383,94 +2424,94 @@ const me = {
|
|
|
2383
2424
|
"horizontal-order": "horizontalOrder",
|
|
2384
2425
|
stagger: "stagger",
|
|
2385
2426
|
"destroy-delay": "destroyDelay"
|
|
2386
|
-
},
|
|
2427
|
+
}, ye = "vuemasonry.itemAdded", Re = "vuemasonry.itemRemoved", Be = "vuemasonry.imageLoaded", ze = "vuemasonry.destroy", fi = function(o) {
|
|
2387
2428
|
return (o + "").toLowerCase() === "true";
|
|
2388
|
-
},
|
|
2429
|
+
}, mi = function(o) {
|
|
2389
2430
|
return isNaN(o) ? o : parseInt(o);
|
|
2390
|
-
},
|
|
2431
|
+
}, gi = function(o) {
|
|
2391
2432
|
const e = {};
|
|
2392
2433
|
return Array.prototype.slice.call(o).forEach(function(n) {
|
|
2393
|
-
Object.keys(
|
|
2434
|
+
Object.keys(ve).indexOf(n.name) > -1 && (n.name.indexOf("origin") > -1 ? e[ve[n.name]] = fi(n.value) : n.name === "column-width" || n.name === "gutter" ? e[ve[n.name]] = mi(n.value) : e[ve[n.name]] = n.value);
|
|
2394
2435
|
}), e;
|
|
2395
|
-
},
|
|
2396
|
-
|
|
2397
|
-
const t =
|
|
2436
|
+
}, St = {};
|
|
2437
|
+
St.install = function(o, e) {
|
|
2438
|
+
const t = hi(), n = "VueMasonry", p = o;
|
|
2398
2439
|
p.directive("masonry", {
|
|
2399
2440
|
props: ["transitionDuration", " itemSelector", "destroyDelay"],
|
|
2400
|
-
mounted: function(
|
|
2401
|
-
if (!
|
|
2441
|
+
mounted: function(a, h) {
|
|
2442
|
+
if (!dt)
|
|
2402
2443
|
throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
|
|
2403
|
-
const c =
|
|
2444
|
+
const c = gi(a.attributes), l = new dt(a, c), u = h.value || n, f = c.destroyDelay ? parseInt(c.destroyDelay, 10) : void 0, g = function() {
|
|
2404
2445
|
l.reloadItems(), l.layout();
|
|
2405
2446
|
};
|
|
2406
|
-
|
|
2447
|
+
Et(() => {
|
|
2407
2448
|
g();
|
|
2408
2449
|
});
|
|
2409
2450
|
const _ = function(b) {
|
|
2410
2451
|
g();
|
|
2411
2452
|
}, d = function(b) {
|
|
2412
|
-
t.off(`${
|
|
2453
|
+
t.off(`${ye}__${u}`, _), t.off(`${Re}__${u}`, _), t.off(`${Be}__${u}`, _), t.off(`${ze}__${u}`, d);
|
|
2413
2454
|
const k = f && !Number.isNaN(f) ? f : 0;
|
|
2414
2455
|
setTimeout(function() {
|
|
2415
2456
|
l.destroy();
|
|
2416
2457
|
}, k);
|
|
2417
2458
|
};
|
|
2418
|
-
t.on(`${
|
|
2459
|
+
t.on(`${ye}__${u}`, _), t.on(`${Re}__${u}`, _), t.on(`${Be}__${u}`, _), t.on(`${ze}__${u}`, d);
|
|
2419
2460
|
},
|
|
2420
|
-
unbind: function(
|
|
2461
|
+
unbind: function(a, h) {
|
|
2421
2462
|
const c = h.value || n;
|
|
2422
|
-
t.emit(`${
|
|
2463
|
+
t.emit(`${ze}__${c}`);
|
|
2423
2464
|
}
|
|
2424
2465
|
}), p.directive("masonryTile", {
|
|
2425
|
-
mounted: function(
|
|
2466
|
+
mounted: function(a, h) {
|
|
2426
2467
|
const c = h.value || n;
|
|
2427
|
-
t.emit(`${
|
|
2428
|
-
element:
|
|
2429
|
-
}), new
|
|
2430
|
-
t.emit(`${
|
|
2431
|
-
element:
|
|
2468
|
+
t.emit(`${ye}__${c}`, {
|
|
2469
|
+
element: a
|
|
2470
|
+
}), new pi(a, function() {
|
|
2471
|
+
t.emit(`${Be}__${c}`, {
|
|
2472
|
+
element: a
|
|
2432
2473
|
});
|
|
2433
2474
|
});
|
|
2434
2475
|
},
|
|
2435
|
-
unbind: function(
|
|
2476
|
+
unbind: function(a, h) {
|
|
2436
2477
|
const c = h.value || n;
|
|
2437
|
-
t.emit(`${
|
|
2438
|
-
element:
|
|
2478
|
+
t.emit(`${Re}__${c}`, {
|
|
2479
|
+
element: a
|
|
2439
2480
|
});
|
|
2440
2481
|
}
|
|
2441
2482
|
});
|
|
2442
2483
|
{
|
|
2443
|
-
const
|
|
2484
|
+
const a = function(h) {
|
|
2444
2485
|
const c = h || n;
|
|
2445
|
-
t.emit(`${
|
|
2486
|
+
t.emit(`${ye}__${c}`);
|
|
2446
2487
|
};
|
|
2447
|
-
o.config.globalProperties.$redrawVueMasonry =
|
|
2488
|
+
o.config.globalProperties.$redrawVueMasonry = a, o.provide("redrawVueMasonry", a);
|
|
2448
2489
|
}
|
|
2449
2490
|
};
|
|
2450
|
-
function
|
|
2491
|
+
function qe(o, e = {}, t) {
|
|
2451
2492
|
for (const n in o) {
|
|
2452
|
-
const p = o[n],
|
|
2453
|
-
typeof p == "object" && p !== null ?
|
|
2493
|
+
const p = o[n], a = t ? `${t}:${n}` : n;
|
|
2494
|
+
typeof p == "object" && p !== null ? qe(p, e, a) : typeof p == "function" && (e[a] = p);
|
|
2454
2495
|
}
|
|
2455
2496
|
return e;
|
|
2456
2497
|
}
|
|
2457
|
-
const
|
|
2458
|
-
function
|
|
2459
|
-
const t = e.shift(), n =
|
|
2498
|
+
const vi = { run: (o) => o() }, yi = () => vi, Vt = typeof console.createTask < "u" ? console.createTask : yi;
|
|
2499
|
+
function bi(o, e) {
|
|
2500
|
+
const t = e.shift(), n = Vt(t);
|
|
2460
2501
|
return o.reduce(
|
|
2461
|
-
(p,
|
|
2502
|
+
(p, a) => p.then(() => n.run(() => a(...e))),
|
|
2462
2503
|
Promise.resolve()
|
|
2463
2504
|
);
|
|
2464
2505
|
}
|
|
2465
|
-
function
|
|
2466
|
-
const t = e.shift(), n =
|
|
2506
|
+
function ki(o, e) {
|
|
2507
|
+
const t = e.shift(), n = Vt(t);
|
|
2467
2508
|
return Promise.all(o.map((p) => n.run(() => p(...e))));
|
|
2468
2509
|
}
|
|
2469
|
-
function
|
|
2510
|
+
function We(o, e) {
|
|
2470
2511
|
for (const t of [...o])
|
|
2471
2512
|
t(e);
|
|
2472
2513
|
}
|
|
2473
|
-
class
|
|
2514
|
+
class _i {
|
|
2474
2515
|
constructor() {
|
|
2475
2516
|
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);
|
|
2476
2517
|
}
|
|
@@ -2479,12 +2520,12 @@ class yi {
|
|
|
2479
2520
|
return () => {
|
|
2480
2521
|
};
|
|
2481
2522
|
const p = e;
|
|
2482
|
-
let
|
|
2523
|
+
let a;
|
|
2483
2524
|
for (; this._deprecatedHooks[e]; )
|
|
2484
|
-
|
|
2485
|
-
if (
|
|
2486
|
-
let h =
|
|
2487
|
-
h || (h = `${p} hook has been deprecated` + (
|
|
2525
|
+
a = this._deprecatedHooks[e], e = a.to;
|
|
2526
|
+
if (a && !n.allowDeprecated) {
|
|
2527
|
+
let h = a.message;
|
|
2528
|
+
h || (h = `${p} hook has been deprecated` + (a.to ? `, please use ${a.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(h) || (console.warn(h), this._deprecatedMessages.add(h));
|
|
2488
2529
|
}
|
|
2489
2530
|
if (!t.name)
|
|
2490
2531
|
try {
|
|
@@ -2499,7 +2540,7 @@ class yi {
|
|
|
2499
2540
|
};
|
|
2500
2541
|
}
|
|
2501
2542
|
hookOnce(e, t) {
|
|
2502
|
-
let n, p = (...
|
|
2543
|
+
let n, p = (...a) => (typeof n == "function" && n(), n = void 0, p = void 0, t(...a));
|
|
2503
2544
|
return n = this.hook(e, p), n;
|
|
2504
2545
|
}
|
|
2505
2546
|
removeHook(e, t) {
|
|
@@ -2521,7 +2562,7 @@ class yi {
|
|
|
2521
2562
|
this.deprecateHook(t, e[t]);
|
|
2522
2563
|
}
|
|
2523
2564
|
addHooks(e) {
|
|
2524
|
-
const t =
|
|
2565
|
+
const t = qe(e), n = Object.keys(t).map(
|
|
2525
2566
|
(p) => this.hook(p, t[p])
|
|
2526
2567
|
);
|
|
2527
2568
|
return () => {
|
|
@@ -2530,7 +2571,7 @@ class yi {
|
|
|
2530
2571
|
};
|
|
2531
2572
|
}
|
|
2532
2573
|
removeHooks(e) {
|
|
2533
|
-
const t =
|
|
2574
|
+
const t = qe(e);
|
|
2534
2575
|
for (const n in t)
|
|
2535
2576
|
this.removeHook(n, t[n]);
|
|
2536
2577
|
}
|
|
@@ -2539,21 +2580,21 @@ class yi {
|
|
|
2539
2580
|
delete this._hooks[e];
|
|
2540
2581
|
}
|
|
2541
2582
|
callHook(e, ...t) {
|
|
2542
|
-
return t.unshift(e), this.callHookWith(
|
|
2583
|
+
return t.unshift(e), this.callHookWith(bi, e, ...t);
|
|
2543
2584
|
}
|
|
2544
2585
|
callHookParallel(e, ...t) {
|
|
2545
|
-
return t.unshift(e), this.callHookWith(
|
|
2586
|
+
return t.unshift(e), this.callHookWith(ki, e, ...t);
|
|
2546
2587
|
}
|
|
2547
2588
|
callHookWith(e, t, ...n) {
|
|
2548
2589
|
const p = this._before || this._after ? { name: t, args: n, context: {} } : void 0;
|
|
2549
|
-
this._before &&
|
|
2550
|
-
const
|
|
2590
|
+
this._before && We(this._before, p);
|
|
2591
|
+
const a = e(
|
|
2551
2592
|
t in this._hooks ? [...this._hooks[t]] : [],
|
|
2552
2593
|
n
|
|
2553
2594
|
);
|
|
2554
|
-
return
|
|
2555
|
-
this._after && p &&
|
|
2556
|
-
}) : (this._after && p &&
|
|
2595
|
+
return a instanceof Promise ? a.finally(() => {
|
|
2596
|
+
this._after && p && We(this._after, p);
|
|
2597
|
+
}) : (this._after && p && We(this._after, p), a);
|
|
2557
2598
|
}
|
|
2558
2599
|
beforeEach(e) {
|
|
2559
2600
|
return this._before = this._before || [], this._before.push(e), () => {
|
|
@@ -2572,20 +2613,20 @@ class yi {
|
|
|
2572
2613
|
};
|
|
2573
2614
|
}
|
|
2574
2615
|
}
|
|
2575
|
-
function
|
|
2576
|
-
return new
|
|
2616
|
+
function Ei() {
|
|
2617
|
+
return new _i();
|
|
2577
2618
|
}
|
|
2578
|
-
function
|
|
2619
|
+
function Ti(o) {
|
|
2579
2620
|
return Array.isArray(o) ? o : [o];
|
|
2580
2621
|
}
|
|
2581
|
-
const
|
|
2622
|
+
const Ci = ["title", "titleTemplate", "script", "style", "noscript"], be = [
|
|
2582
2623
|
"base",
|
|
2583
2624
|
"meta",
|
|
2584
2625
|
"link",
|
|
2585
2626
|
"style",
|
|
2586
2627
|
"script",
|
|
2587
2628
|
"noscript"
|
|
2588
|
-
],
|
|
2629
|
+
], Ii = [
|
|
2589
2630
|
"title",
|
|
2590
2631
|
"titleTemplate",
|
|
2591
2632
|
"templateParams",
|
|
@@ -2597,19 +2638,19 @@ const _i = ["title", "titleTemplate", "script", "style", "noscript"], ve = [
|
|
|
2597
2638
|
"style",
|
|
2598
2639
|
"script",
|
|
2599
2640
|
"noscript"
|
|
2600
|
-
],
|
|
2601
|
-
function
|
|
2641
|
+
], $i = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], Lt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Si = typeof window < "u";
|
|
2642
|
+
function Qe(o) {
|
|
2602
2643
|
let e = 9;
|
|
2603
2644
|
for (let t = 0; t < o.length; )
|
|
2604
2645
|
e = Math.imul(e ^ o.charCodeAt(t++), 9 ** 9);
|
|
2605
2646
|
return ((e ^ e >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
2606
2647
|
}
|
|
2607
|
-
function
|
|
2608
|
-
return o._h ||
|
|
2648
|
+
function ct(o) {
|
|
2649
|
+
return o._h || Qe(o._d ? o._d : `${o.tag}:${o.textContent || o.innerHTML || ""}:${Object.entries(o.props).map(([e, t]) => `${e}:${String(t)}`).join(",")}`);
|
|
2609
2650
|
}
|
|
2610
|
-
function
|
|
2651
|
+
function Pt(o, e) {
|
|
2611
2652
|
const { props: t, tag: n } = o;
|
|
2612
|
-
if (
|
|
2653
|
+
if ($i.includes(n))
|
|
2613
2654
|
return n;
|
|
2614
2655
|
if (n === "link" && t.rel === "canonical")
|
|
2615
2656
|
return "canonical";
|
|
@@ -2617,72 +2658,72 @@ function Vt(o, e) {
|
|
|
2617
2658
|
return "charset";
|
|
2618
2659
|
const p = ["id"];
|
|
2619
2660
|
n === "meta" && p.push("name", "property", "http-equiv");
|
|
2620
|
-
for (const
|
|
2621
|
-
if (typeof t[
|
|
2622
|
-
const h = String(t[
|
|
2623
|
-
return e && !e(h) ? !1 : `${n}:${
|
|
2661
|
+
for (const a of p)
|
|
2662
|
+
if (typeof t[a] < "u") {
|
|
2663
|
+
const h = String(t[a]);
|
|
2664
|
+
return e && !e(h) ? !1 : `${n}:${a}:${h}`;
|
|
2624
2665
|
}
|
|
2625
2666
|
return !1;
|
|
2626
2667
|
}
|
|
2627
|
-
function
|
|
2668
|
+
function pt(o, e) {
|
|
2628
2669
|
return o == null ? e || null : typeof o == "function" ? o(e) : o;
|
|
2629
2670
|
}
|
|
2630
|
-
async function
|
|
2671
|
+
async function Vi(o, e, t) {
|
|
2631
2672
|
const n = {
|
|
2632
2673
|
tag: o,
|
|
2633
|
-
props: await
|
|
2674
|
+
props: await wt(
|
|
2634
2675
|
// explicitly check for an object
|
|
2635
2676
|
// @ts-expect-error untyped
|
|
2636
2677
|
typeof e == "object" && typeof e != "function" && !(e instanceof Promise) ? { ...e } : { [["script", "noscript", "style"].includes(o) ? "innerHTML" : "textContent"]: e },
|
|
2637
2678
|
["templateParams", "titleTemplate"].includes(o)
|
|
2638
2679
|
)
|
|
2639
2680
|
};
|
|
2640
|
-
return
|
|
2641
|
-
const
|
|
2642
|
-
typeof
|
|
2681
|
+
return Lt.forEach((p) => {
|
|
2682
|
+
const a = typeof n.props[p] < "u" ? n.props[p] : t[p];
|
|
2683
|
+
typeof a < "u" && ((!["innerHTML", "textContent", "children"].includes(p) || Ci.includes(n.tag)) && (n[p === "children" ? "innerHTML" : p] = a), delete n.props[p]);
|
|
2643
2684
|
}), n.props.body && (n.tagPosition = "bodyClose", delete n.props.body), n.tag === "script" && typeof n.innerHTML == "object" && (n.innerHTML = JSON.stringify(n.innerHTML), n.props.type = n.props.type || "application/json"), Array.isArray(n.props.content) ? n.props.content.map((p) => ({ ...n, props: { ...n.props, content: p } })) : n;
|
|
2644
2685
|
}
|
|
2645
|
-
function
|
|
2686
|
+
function Li(o) {
|
|
2646
2687
|
return typeof o == "object" && !Array.isArray(o) && (o = Object.keys(o).filter((e) => o[e])), (Array.isArray(o) ? o.join(" ") : o).split(" ").filter((e) => e.trim()).filter(Boolean).join(" ");
|
|
2647
2688
|
}
|
|
2648
|
-
async function
|
|
2689
|
+
async function wt(o, e) {
|
|
2649
2690
|
for (const t of Object.keys(o)) {
|
|
2650
2691
|
if (t === "class") {
|
|
2651
|
-
o[t] =
|
|
2692
|
+
o[t] = Li(o[t]);
|
|
2652
2693
|
continue;
|
|
2653
2694
|
}
|
|
2654
|
-
if (o[t] instanceof Promise && (o[t] = await o[t]), !e && !
|
|
2695
|
+
if (o[t] instanceof Promise && (o[t] = await o[t]), !e && !Lt.includes(t)) {
|
|
2655
2696
|
const n = String(o[t]), p = t.startsWith("data-");
|
|
2656
2697
|
n === "true" || n === "" ? o[t] = p ? "true" : !0 : o[t] || (p && n === "false" ? o[t] = "false" : delete o[t]);
|
|
2657
2698
|
}
|
|
2658
2699
|
}
|
|
2659
2700
|
return o;
|
|
2660
2701
|
}
|
|
2661
|
-
const
|
|
2662
|
-
async function
|
|
2702
|
+
const Pi = 10;
|
|
2703
|
+
async function wi(o) {
|
|
2663
2704
|
const e = [];
|
|
2664
|
-
return Object.entries(o.resolvedInput).filter(([t, n]) => typeof n < "u" &&
|
|
2665
|
-
const p =
|
|
2666
|
-
e.push(...p.map((
|
|
2667
|
-
}), (await Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e = o._i, o.mode && (t._m = o.mode), t._p = (o._i <<
|
|
2705
|
+
return Object.entries(o.resolvedInput).filter(([t, n]) => typeof n < "u" && Ii.includes(t)).forEach(([t, n]) => {
|
|
2706
|
+
const p = Ti(n);
|
|
2707
|
+
e.push(...p.map((a) => Vi(t, a, o)).flat());
|
|
2708
|
+
}), (await Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e = o._i, o.mode && (t._m = o.mode), t._p = (o._i << Pi) + n, t));
|
|
2668
2709
|
}
|
|
2669
|
-
const
|
|
2710
|
+
const ht = {
|
|
2670
2711
|
// tags
|
|
2671
2712
|
base: -10,
|
|
2672
2713
|
title: 10
|
|
2673
|
-
},
|
|
2714
|
+
}, ft = {
|
|
2674
2715
|
// relative scores to their default values
|
|
2675
2716
|
critical: -80,
|
|
2676
2717
|
high: -10,
|
|
2677
2718
|
low: 20
|
|
2678
2719
|
};
|
|
2679
|
-
function
|
|
2720
|
+
function Te(o) {
|
|
2680
2721
|
let e = 100;
|
|
2681
2722
|
const t = o.tagPriority;
|
|
2682
|
-
return typeof t == "number" ? t : (o.tag === "meta" ? (o.props["http-equiv"] === "content-security-policy" && (e = -30), o.props.charset && (e = -20), o.props.name === "viewport" && (e = -15)) : o.tag === "link" && o.props.rel === "preconnect" ? e = 20 : o.tag in
|
|
2723
|
+
return typeof t == "number" ? t : (o.tag === "meta" ? (o.props["http-equiv"] === "content-security-policy" && (e = -30), o.props.charset && (e = -20), o.props.name === "viewport" && (e = -15)) : o.tag === "link" && o.props.rel === "preconnect" ? e = 20 : o.tag in ht && (e = ht[o.tag]), typeof t == "string" && t in ft ? e + ft[t] : e);
|
|
2683
2724
|
}
|
|
2684
|
-
const
|
|
2685
|
-
function
|
|
2725
|
+
const xi = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], xt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], te = "%separator";
|
|
2726
|
+
function ke(o, e, t) {
|
|
2686
2727
|
if (typeof o != "string" || !o.includes("%"))
|
|
2687
2728
|
return o;
|
|
2688
2729
|
function n(h) {
|
|
@@ -2697,19 +2738,19 @@ function ye(o, e, t) {
|
|
|
2697
2738
|
return (p.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((h) => {
|
|
2698
2739
|
const c = n(h.slice(1));
|
|
2699
2740
|
typeof c == "string" && (o = o.replace(new RegExp(`\\${h}(\\W|$)`, "g"), (l, u) => `${c}${u}`).trim());
|
|
2700
|
-
}), o.includes(
|
|
2741
|
+
}), o.includes(te) && (o.endsWith(te) && (o = o.slice(0, -te.length).trim()), o.startsWith(te) && (o = o.slice(te.length).trim()), o = o.replace(new RegExp(`\\${te}\\s*\\${te}`, "g"), te), o = ke(o, { separator: t }, t)), o;
|
|
2701
2742
|
}
|
|
2702
|
-
async function
|
|
2743
|
+
async function Oi(o) {
|
|
2703
2744
|
const e = {
|
|
2704
2745
|
tag: o.tagName.toLowerCase(),
|
|
2705
|
-
props: await
|
|
2746
|
+
props: await wt(
|
|
2706
2747
|
o.getAttributeNames().reduce((t, n) => ({ ...t, [n]: o.getAttribute(n) }), {})
|
|
2707
2748
|
),
|
|
2708
2749
|
innerHTML: o.innerHTML
|
|
2709
2750
|
};
|
|
2710
|
-
return e._d =
|
|
2751
|
+
return e._d = Pt(e), e;
|
|
2711
2752
|
}
|
|
2712
|
-
async function
|
|
2753
|
+
async function Ai(o, e = {}) {
|
|
2713
2754
|
const t = e.document || o.resolvedOptions.document;
|
|
2714
2755
|
if (!t)
|
|
2715
2756
|
return;
|
|
@@ -2718,31 +2759,31 @@ async function xi(o, e = {}) {
|
|
|
2718
2759
|
return;
|
|
2719
2760
|
const p = (await o.resolveTags()).map((f) => ({
|
|
2720
2761
|
tag: f,
|
|
2721
|
-
id:
|
|
2762
|
+
id: be.includes(f.tag) ? ct(f) : f.tag,
|
|
2722
2763
|
shouldRender: !0
|
|
2723
2764
|
}));
|
|
2724
|
-
let
|
|
2725
|
-
if (!
|
|
2726
|
-
|
|
2765
|
+
let a = o._dom;
|
|
2766
|
+
if (!a) {
|
|
2767
|
+
a = {
|
|
2727
2768
|
elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
|
|
2728
2769
|
};
|
|
2729
2770
|
for (const f of ["body", "head"]) {
|
|
2730
2771
|
const g = t?.[f]?.children;
|
|
2731
|
-
for (const _ of [...g].filter((d) =>
|
|
2732
|
-
|
|
2772
|
+
for (const _ of [...g].filter((d) => be.includes(d.tagName.toLowerCase())))
|
|
2773
|
+
a.elMap[_.getAttribute("data-hid") || ct(await Oi(_))] = _;
|
|
2733
2774
|
}
|
|
2734
2775
|
}
|
|
2735
|
-
|
|
2776
|
+
a.pendingSideEffects = { ...a.sideEffects || {} }, a.sideEffects = {};
|
|
2736
2777
|
function h(f, g, _) {
|
|
2737
2778
|
const d = `${f}:${g}`;
|
|
2738
|
-
|
|
2779
|
+
a.sideEffects[d] = _, delete a.pendingSideEffects[d];
|
|
2739
2780
|
}
|
|
2740
2781
|
function c({ id: f, $el: g, tag: _ }) {
|
|
2741
2782
|
const d = _.tag.endsWith("Attrs");
|
|
2742
|
-
|
|
2783
|
+
a.elMap[f] = g, d || (["textContent", "innerHTML"].forEach((b) => {
|
|
2743
2784
|
_[b] && _[b] !== g[b] && (g[b] = _[b]);
|
|
2744
2785
|
}), h(f, "el", () => {
|
|
2745
|
-
|
|
2786
|
+
a.elMap[f].remove(), delete a.elMap[f];
|
|
2746
2787
|
})), Object.entries(_.props).forEach(([b, k]) => {
|
|
2747
2788
|
const m = `attr:${b}`;
|
|
2748
2789
|
if (b === "class")
|
|
@@ -2764,7 +2805,7 @@ async function xi(o, e = {}) {
|
|
|
2764
2805
|
t.title = g.textContent;
|
|
2765
2806
|
continue;
|
|
2766
2807
|
}
|
|
2767
|
-
f.$el = f.$el ||
|
|
2808
|
+
f.$el = f.$el || a.elMap[d], f.$el ? c(f) : be.includes(g.tag) && l.push(f);
|
|
2768
2809
|
}
|
|
2769
2810
|
}
|
|
2770
2811
|
for (const f of l) {
|
|
@@ -2773,45 +2814,45 @@ async function xi(o, e = {}) {
|
|
|
2773
2814
|
}
|
|
2774
2815
|
for (const f of p)
|
|
2775
2816
|
await o.hooks.callHook("dom:renderTag", f, t, h);
|
|
2776
|
-
u.head && t.head.appendChild(u.head), u.bodyOpen && t.body.insertBefore(u.bodyOpen, t.body.firstChild), u.bodyClose && t.body.appendChild(u.bodyClose), Object.values(
|
|
2817
|
+
u.head && t.head.appendChild(u.head), u.bodyOpen && t.body.insertBefore(u.bodyOpen, t.body.firstChild), u.bodyClose && t.body.appendChild(u.bodyClose), Object.values(a.pendingSideEffects).forEach((f) => f()), o._dom = a, o.dirty = !1, await o.hooks.callHook("dom:rendered", { renders: p });
|
|
2777
2818
|
}
|
|
2778
|
-
async function
|
|
2819
|
+
async function Hi(o, e = {}) {
|
|
2779
2820
|
const t = e.delayFn || ((n) => setTimeout(n, 10));
|
|
2780
2821
|
return o._domUpdatePromise = o._domUpdatePromise || new Promise((n) => t(async () => {
|
|
2781
|
-
await
|
|
2822
|
+
await Ai(o, e), delete o._domUpdatePromise, n();
|
|
2782
2823
|
}));
|
|
2783
2824
|
}
|
|
2784
2825
|
// @__NO_SIDE_EFFECTS__
|
|
2785
|
-
function
|
|
2826
|
+
function Di(o) {
|
|
2786
2827
|
return (e) => {
|
|
2787
2828
|
const t = e.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
|
|
2788
2829
|
return t && e.push(JSON.parse(t)), {
|
|
2789
2830
|
mode: "client",
|
|
2790
2831
|
hooks: {
|
|
2791
2832
|
"entries:updated": function(n) {
|
|
2792
|
-
|
|
2833
|
+
Hi(n, o);
|
|
2793
2834
|
}
|
|
2794
2835
|
}
|
|
2795
2836
|
};
|
|
2796
2837
|
};
|
|
2797
2838
|
}
|
|
2798
|
-
const
|
|
2839
|
+
const Mi = ["templateParams", "htmlAttrs", "bodyAttrs"], Ri = {
|
|
2799
2840
|
hooks: {
|
|
2800
2841
|
"tag:normalise": function({ tag: o }) {
|
|
2801
2842
|
["hid", "vmid", "key"].forEach((n) => {
|
|
2802
2843
|
o.props[n] && (o.key = o.props[n], delete o.props[n]);
|
|
2803
2844
|
});
|
|
2804
|
-
const t =
|
|
2845
|
+
const t = Pt(o) || (o.key ? `${o.tag}:${o.key}` : !1);
|
|
2805
2846
|
t && (o._d = t);
|
|
2806
2847
|
},
|
|
2807
2848
|
"tags:resolve": function(o) {
|
|
2808
2849
|
const e = {};
|
|
2809
2850
|
o.tags.forEach((n) => {
|
|
2810
|
-
const p = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p,
|
|
2811
|
-
if (
|
|
2851
|
+
const p = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p, a = e[p];
|
|
2852
|
+
if (a) {
|
|
2812
2853
|
let c = n?.tagDuplicateStrategy;
|
|
2813
|
-
if (!c &&
|
|
2814
|
-
const l =
|
|
2854
|
+
if (!c && Mi.includes(n.tag) && (c = "merge"), c === "merge") {
|
|
2855
|
+
const l = a.props;
|
|
2815
2856
|
["class", "style"].forEach((u) => {
|
|
2816
2857
|
l[u] && (n.props[u] ? (u === "style" && !l[u].endsWith(";") && (l[u] += ";"), n.props[u] = `${l[u]} ${n.props[u]}`) : n.props[u] = l[u]);
|
|
2817
2858
|
}), e[p].props = {
|
|
@@ -2819,14 +2860,14 @@ const Oi = ["templateParams", "htmlAttrs", "bodyAttrs"], Hi = {
|
|
|
2819
2860
|
...n.props
|
|
2820
2861
|
};
|
|
2821
2862
|
return;
|
|
2822
|
-
} else if (n._e ===
|
|
2823
|
-
|
|
2863
|
+
} else if (n._e === a._e) {
|
|
2864
|
+
a._duped = a._duped || [], n._d = `${a._d}:${a._duped.length + 1}`, a._duped.push(n);
|
|
2824
2865
|
return;
|
|
2825
|
-
} else if (
|
|
2866
|
+
} else if (Te(n) > Te(a))
|
|
2826
2867
|
return;
|
|
2827
2868
|
}
|
|
2828
2869
|
const h = Object.keys(n.props).length + (n.innerHTML ? 1 : 0) + (n.textContent ? 1 : 0);
|
|
2829
|
-
if (
|
|
2870
|
+
if (be.includes(n.tag) && h === 0) {
|
|
2830
2871
|
delete e[p];
|
|
2831
2872
|
return;
|
|
2832
2873
|
}
|
|
@@ -2839,7 +2880,7 @@ const Oi = ["templateParams", "htmlAttrs", "bodyAttrs"], Hi = {
|
|
|
2839
2880
|
}), o.tags = t, o.tags = o.tags.filter((n) => !(n.tag === "meta" && (n.props.name || n.props.property) && !n.props.content));
|
|
2840
2881
|
}
|
|
2841
2882
|
}
|
|
2842
|
-
},
|
|
2883
|
+
}, Bi = {
|
|
2843
2884
|
mode: "server",
|
|
2844
2885
|
hooks: {
|
|
2845
2886
|
"tags:resolve": function(o) {
|
|
@@ -2853,28 +2894,28 @@ const Oi = ["templateParams", "htmlAttrs", "bodyAttrs"], Hi = {
|
|
|
2853
2894
|
});
|
|
2854
2895
|
}
|
|
2855
2896
|
}
|
|
2856
|
-
},
|
|
2857
|
-
function
|
|
2897
|
+
}, zi = ["script", "link", "bodyAttrs"];
|
|
2898
|
+
function Wi(o) {
|
|
2858
2899
|
const e = {}, t = {};
|
|
2859
2900
|
return Object.entries(o.props).forEach(([n, p]) => {
|
|
2860
|
-
n.startsWith("on") && typeof p == "function" ? (
|
|
2901
|
+
n.startsWith("on") && typeof p == "function" ? (xt.includes(n) && (e[n] = `this.dataset.${n} = true`), t[n] = p) : e[n] = p;
|
|
2861
2902
|
}), { props: e, eventHandlers: t };
|
|
2862
2903
|
}
|
|
2863
|
-
const
|
|
2904
|
+
const Fi = (o) => ({
|
|
2864
2905
|
hooks: {
|
|
2865
2906
|
"tags:resolve": function(e) {
|
|
2866
2907
|
for (const t of e.tags)
|
|
2867
|
-
if (
|
|
2868
|
-
const { props: n, eventHandlers: p } =
|
|
2869
|
-
t.props = n, Object.keys(p).length && ((t.props.src || t.props.href) && (t.key = t.key ||
|
|
2908
|
+
if (zi.includes(t.tag)) {
|
|
2909
|
+
const { props: n, eventHandlers: p } = Wi(t);
|
|
2910
|
+
t.props = n, Object.keys(p).length && ((t.props.src || t.props.href) && (t.key = t.key || Qe(t.props.src || t.props.href)), t._eventHandlers = p);
|
|
2870
2911
|
}
|
|
2871
2912
|
},
|
|
2872
2913
|
"dom:renderTag": function(e, t, n) {
|
|
2873
2914
|
if (!e.tag._eventHandlers)
|
|
2874
2915
|
return;
|
|
2875
2916
|
const p = e.tag.tag === "bodyAttrs" ? t.defaultView : e.$el;
|
|
2876
|
-
Object.entries(e.tag._eventHandlers).forEach(([
|
|
2877
|
-
const c = `${e.tag._d || e.tag._p}:${
|
|
2917
|
+
Object.entries(e.tag._eventHandlers).forEach(([a, h]) => {
|
|
2918
|
+
const c = `${e.tag._d || e.tag._p}:${a}`, l = a.slice(2).toLowerCase(), u = `data-h-${l}`;
|
|
2878
2919
|
if (n(e.id, c, () => {
|
|
2879
2920
|
}), e.$el.hasAttribute(u))
|
|
2880
2921
|
return;
|
|
@@ -2883,8 +2924,8 @@ const Bi = (o) => ({
|
|
|
2883
2924
|
const g = (_) => {
|
|
2884
2925
|
h(_), f?.disconnect();
|
|
2885
2926
|
};
|
|
2886
|
-
|
|
2887
|
-
_.some((b) => b.attributeName === `data-${
|
|
2927
|
+
a in e.$el.dataset ? g(new Event(a.replace("on", ""))) : xt.includes(a) && typeof MutationObserver < "u" ? (f = new MutationObserver((_) => {
|
|
2928
|
+
_.some((b) => b.attributeName === `data-${a}`) && (g(new Event(a.replace("on", ""))), f?.disconnect());
|
|
2888
2929
|
}), f.observe(e.$el, {
|
|
2889
2930
|
attributes: !0
|
|
2890
2931
|
})) : p.addEventListener(l, g), n(e.id, c, () => {
|
|
@@ -2893,58 +2934,58 @@ const Bi = (o) => ({
|
|
|
2893
2934
|
});
|
|
2894
2935
|
}
|
|
2895
2936
|
}
|
|
2896
|
-
}),
|
|
2937
|
+
}), Ni = ["link", "style", "script", "noscript"], qi = {
|
|
2897
2938
|
hooks: {
|
|
2898
2939
|
"tag:normalise": ({ tag: o }) => {
|
|
2899
|
-
o.key &&
|
|
2940
|
+
o.key && Ni.includes(o.tag) && (o.props["data-hid"] = o._h = Qe(o.key));
|
|
2900
2941
|
}
|
|
2901
2942
|
}
|
|
2902
|
-
},
|
|
2943
|
+
}, Ui = {
|
|
2903
2944
|
hooks: {
|
|
2904
2945
|
"tags:resolve": (o) => {
|
|
2905
2946
|
const e = (t) => o.tags.find((n) => n._d === t)?._p;
|
|
2906
|
-
for (const { prefix: t, offset: n } of
|
|
2907
|
-
for (const p of o.tags.filter((
|
|
2908
|
-
const
|
|
2947
|
+
for (const { prefix: t, offset: n } of xi)
|
|
2948
|
+
for (const p of o.tags.filter((a) => typeof a.tagPriority == "string" && a.tagPriority.startsWith(t))) {
|
|
2949
|
+
const a = e(
|
|
2909
2950
|
p.tagPriority.replace(t, "")
|
|
2910
2951
|
);
|
|
2911
|
-
typeof
|
|
2952
|
+
typeof a < "u" && (p._p = a + n);
|
|
2912
2953
|
}
|
|
2913
|
-
o.tags.sort((t, n) => t._p - n._p).sort((t, n) =>
|
|
2954
|
+
o.tags.sort((t, n) => t._p - n._p).sort((t, n) => Te(t) - Te(n));
|
|
2914
2955
|
}
|
|
2915
2956
|
}
|
|
2916
|
-
},
|
|
2957
|
+
}, Gi = {
|
|
2917
2958
|
meta: "content",
|
|
2918
2959
|
link: "href",
|
|
2919
2960
|
htmlAttrs: "lang"
|
|
2920
|
-
},
|
|
2961
|
+
}, ji = (o) => ({
|
|
2921
2962
|
hooks: {
|
|
2922
2963
|
"tags:resolve": (e) => {
|
|
2923
|
-
const { tags: t } = e, n = t.find((c) => c.tag === "title")?.textContent, p = t.findIndex((c) => c.tag === "templateParams"),
|
|
2924
|
-
delete
|
|
2964
|
+
const { tags: t } = e, n = t.find((c) => c.tag === "title")?.textContent, p = t.findIndex((c) => c.tag === "templateParams"), a = p !== -1 ? t[p].props : {}, h = a.separator || "|";
|
|
2965
|
+
delete a.separator, a.pageTitle = ke(a.pageTitle || n || "", a, h);
|
|
2925
2966
|
for (const c of t.filter((l) => l.processTemplateParams !== !1)) {
|
|
2926
|
-
const l =
|
|
2927
|
-
l && typeof c.props[l] == "string" ? c.props[l] =
|
|
2928
|
-
typeof c[u] == "string" && (c[u] =
|
|
2967
|
+
const l = Gi[c.tag];
|
|
2968
|
+
l && typeof c.props[l] == "string" ? c.props[l] = ke(c.props[l], a, h) : (c.processTemplateParams === !0 || ["titleTemplate", "title"].includes(c.tag)) && ["innerHTML", "textContent"].forEach((u) => {
|
|
2969
|
+
typeof c[u] == "string" && (c[u] = ke(c[u], a, h));
|
|
2929
2970
|
});
|
|
2930
2971
|
}
|
|
2931
|
-
o._templateParams =
|
|
2972
|
+
o._templateParams = a, o._separator = h, e.tags = t.filter((c) => c.tag !== "templateParams");
|
|
2932
2973
|
}
|
|
2933
2974
|
}
|
|
2934
|
-
}),
|
|
2975
|
+
}), Yi = {
|
|
2935
2976
|
hooks: {
|
|
2936
2977
|
"tags:resolve": (o) => {
|
|
2937
2978
|
const { tags: e } = o;
|
|
2938
2979
|
let t = e.findIndex((p) => p.tag === "titleTemplate");
|
|
2939
2980
|
const n = e.findIndex((p) => p.tag === "title");
|
|
2940
2981
|
if (n !== -1 && t !== -1) {
|
|
2941
|
-
const p =
|
|
2982
|
+
const p = pt(
|
|
2942
2983
|
e[t].textContent,
|
|
2943
2984
|
e[n].textContent
|
|
2944
2985
|
);
|
|
2945
2986
|
p !== null ? e[n].textContent = p || e[n].textContent : delete e[n];
|
|
2946
2987
|
} else if (t !== -1) {
|
|
2947
|
-
const p =
|
|
2988
|
+
const p = pt(
|
|
2948
2989
|
e[t].textContent
|
|
2949
2990
|
);
|
|
2950
2991
|
p !== null && (e[t].textContent = p, e[t].tag = "title", t = -1);
|
|
@@ -2952,7 +2993,7 @@ const Bi = (o) => ({
|
|
|
2952
2993
|
t !== -1 && delete e[t], o.tags = e.filter(Boolean);
|
|
2953
2994
|
}
|
|
2954
2995
|
}
|
|
2955
|
-
},
|
|
2996
|
+
}, Ki = {
|
|
2956
2997
|
hooks: {
|
|
2957
2998
|
"tags:afterResolve": function(o) {
|
|
2958
2999
|
for (const e of o.tags)
|
|
@@ -2961,31 +3002,31 @@ const Bi = (o) => ({
|
|
|
2961
3002
|
}
|
|
2962
3003
|
};
|
|
2963
3004
|
// @__NO_SIDE_EFFECTS__
|
|
2964
|
-
function
|
|
2965
|
-
const e =
|
|
2966
|
-
return e.use(/* @__PURE__ */
|
|
3005
|
+
function Qi(o = {}) {
|
|
3006
|
+
const e = Ji(o);
|
|
3007
|
+
return e.use(/* @__PURE__ */ Di()), e;
|
|
2967
3008
|
}
|
|
2968
|
-
function
|
|
3009
|
+
function mt(o, e) {
|
|
2969
3010
|
return !o || o === "server" && e || o === "client" && !e;
|
|
2970
3011
|
}
|
|
2971
|
-
function
|
|
2972
|
-
const e =
|
|
2973
|
-
e.addHooks(o.hooks || {}), o.document = o.document || (
|
|
3012
|
+
function Ji(o = {}) {
|
|
3013
|
+
const e = Ei();
|
|
3014
|
+
e.addHooks(o.hooks || {}), o.document = o.document || (Si ? document : void 0);
|
|
2974
3015
|
const t = !o.document, n = () => {
|
|
2975
3016
|
c.dirty = !0, e.callHook("entries:updated", c);
|
|
2976
3017
|
};
|
|
2977
|
-
let p = 0,
|
|
3018
|
+
let p = 0, a = [];
|
|
2978
3019
|
const h = [], c = {
|
|
2979
3020
|
plugins: h,
|
|
2980
3021
|
dirty: !1,
|
|
2981
3022
|
resolvedOptions: o,
|
|
2982
3023
|
hooks: e,
|
|
2983
3024
|
headEntries() {
|
|
2984
|
-
return
|
|
3025
|
+
return a;
|
|
2985
3026
|
},
|
|
2986
3027
|
use(l) {
|
|
2987
3028
|
const u = typeof l == "function" ? l(c) : l;
|
|
2988
|
-
(!u.key || !h.some((f) => f.key === u.key)) && (h.push(u),
|
|
3029
|
+
(!u.key || !h.some((f) => f.key === u.key)) && (h.push(u), mt(u.mode, t) && e.addHooks(u.hooks || {}));
|
|
2989
3030
|
},
|
|
2990
3031
|
push(l, u) {
|
|
2991
3032
|
delete u?.head;
|
|
@@ -2994,23 +3035,23 @@ function Yi(o = {}) {
|
|
|
2994
3035
|
input: l,
|
|
2995
3036
|
...u
|
|
2996
3037
|
};
|
|
2997
|
-
return
|
|
3038
|
+
return mt(f.mode, t) && (a.push(f), n()), {
|
|
2998
3039
|
dispose() {
|
|
2999
|
-
|
|
3040
|
+
a = a.filter((g) => g._i !== f._i), e.callHook("entries:updated", c), n();
|
|
3000
3041
|
},
|
|
3001
3042
|
// a patch is the same as creating a new entry, just a nice DX
|
|
3002
3043
|
patch(g) {
|
|
3003
|
-
|
|
3044
|
+
a = a.map((_) => (_._i === f._i && (_.input = f.input = g), _)), n();
|
|
3004
3045
|
}
|
|
3005
3046
|
};
|
|
3006
3047
|
},
|
|
3007
3048
|
async resolveTags() {
|
|
3008
|
-
const l = { tags: [], entries: [...
|
|
3049
|
+
const l = { tags: [], entries: [...a] };
|
|
3009
3050
|
await e.callHook("entries:resolve", l);
|
|
3010
3051
|
for (const u of l.entries) {
|
|
3011
3052
|
const f = u.resolvedInput || u.input;
|
|
3012
3053
|
if (u.resolvedInput = await (u.transform ? u.transform(f) : f), u.resolvedInput)
|
|
3013
|
-
for (const g of await
|
|
3054
|
+
for (const g of await wi(u)) {
|
|
3014
3055
|
const _ = { tag: g, entry: u, resolvedOptions: c.resolvedOptions };
|
|
3015
3056
|
await e.callHook("tag:normalise", _), l.tags.push(_.tag);
|
|
3016
3057
|
}
|
|
@@ -3020,51 +3061,51 @@ function Yi(o = {}) {
|
|
|
3020
3061
|
ssr: t
|
|
3021
3062
|
};
|
|
3022
3063
|
return [
|
|
3023
|
-
|
|
3024
|
-
Di,
|
|
3064
|
+
Ri,
|
|
3025
3065
|
Bi,
|
|
3026
|
-
|
|
3027
|
-
Ni,
|
|
3066
|
+
Fi,
|
|
3028
3067
|
qi,
|
|
3029
3068
|
Ui,
|
|
3030
|
-
|
|
3069
|
+
ji,
|
|
3070
|
+
Yi,
|
|
3071
|
+
Ki,
|
|
3031
3072
|
...o?.plugins || []
|
|
3032
3073
|
].forEach((l) => c.use(l)), c.hooks.callHook("init", c), c;
|
|
3033
3074
|
}
|
|
3034
|
-
const
|
|
3035
|
-
function
|
|
3036
|
-
return typeof o == "function" ? o() :
|
|
3075
|
+
const Xi = yo.startsWith("3");
|
|
3076
|
+
function Zi(o) {
|
|
3077
|
+
return typeof o == "function" ? o() : s(o);
|
|
3037
3078
|
}
|
|
3038
|
-
function
|
|
3079
|
+
function Ue(o, e = "") {
|
|
3039
3080
|
if (o instanceof Promise)
|
|
3040
3081
|
return o;
|
|
3041
|
-
const t =
|
|
3042
|
-
return !o || !t ? t : Array.isArray(t) ? t.map((n) =>
|
|
3043
|
-
Object.entries(t).map(([n, p]) => n === "titleTemplate" || n.startsWith("on") ? [n,
|
|
3082
|
+
const t = Zi(o);
|
|
3083
|
+
return !o || !t ? t : Array.isArray(t) ? t.map((n) => Ue(n, e)) : typeof t == "object" ? Object.fromEntries(
|
|
3084
|
+
Object.entries(t).map(([n, p]) => n === "titleTemplate" || n.startsWith("on") ? [n, s(p)] : [n, Ue(p, n)])
|
|
3044
3085
|
) : t;
|
|
3045
3086
|
}
|
|
3046
|
-
const
|
|
3087
|
+
const er = {
|
|
3047
3088
|
hooks: {
|
|
3048
3089
|
"entries:resolve": function(o) {
|
|
3049
3090
|
for (const e of o.entries)
|
|
3050
|
-
e.resolvedInput =
|
|
3091
|
+
e.resolvedInput = Ue(e.input);
|
|
3051
3092
|
}
|
|
3052
3093
|
}
|
|
3053
|
-
},
|
|
3054
|
-
function
|
|
3094
|
+
}, tr = "usehead";
|
|
3095
|
+
function or(o) {
|
|
3055
3096
|
return {
|
|
3056
3097
|
install(t) {
|
|
3057
|
-
|
|
3098
|
+
Xi && (t.config.globalProperties.$unhead = o, t.config.globalProperties.$head = o, t.provide(tr, o));
|
|
3058
3099
|
}
|
|
3059
3100
|
}.install;
|
|
3060
3101
|
}
|
|
3061
|
-
function
|
|
3062
|
-
o.domDelayFn = o.domDelayFn || ((t) =>
|
|
3063
|
-
const e = /* @__PURE__ */
|
|
3064
|
-
return e.use(
|
|
3102
|
+
function nr(o = {}) {
|
|
3103
|
+
o.domDelayFn = o.domDelayFn || ((t) => Et(() => setTimeout(() => t(), 0)));
|
|
3104
|
+
const e = /* @__PURE__ */ Qi(o);
|
|
3105
|
+
return e.use(er), e.install = or(e), e;
|
|
3065
3106
|
}
|
|
3066
|
-
const
|
|
3067
|
-
class
|
|
3107
|
+
const ir = bo(), rr = nr();
|
|
3108
|
+
class sr extends HTMLElement {
|
|
3068
3109
|
vueApp;
|
|
3069
3110
|
constructor() {
|
|
3070
3111
|
super();
|
|
@@ -3073,9 +3114,9 @@ class nr extends HTMLElement {
|
|
|
3073
3114
|
this.vueApp.unmount();
|
|
3074
3115
|
}
|
|
3075
3116
|
connectedCallback() {
|
|
3076
|
-
const e = typeof
|
|
3117
|
+
const e = typeof ge == "function" ? ge.options : ge;
|
|
3077
3118
|
let t = Array.isArray(e.props) ? e.props : Object.keys(e.props || {});
|
|
3078
|
-
const n = (l) => l.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (u, f) => (f ? "-" : "") + u.toLowerCase()), p = (l) => l.replace(/-./g, (u) => u[1].toUpperCase()),
|
|
3119
|
+
const n = (l) => l.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (u, f) => (f ? "-" : "") + u.toLowerCase()), p = (l) => l.replace(/-./g, (u) => u[1].toUpperCase()), a = {};
|
|
3079
3120
|
t = t.map(n);
|
|
3080
3121
|
const h = {};
|
|
3081
3122
|
for (const l of this.attributes) {
|
|
@@ -3084,14 +3125,14 @@ class nr extends HTMLElement {
|
|
|
3084
3125
|
}
|
|
3085
3126
|
for (const l of t) {
|
|
3086
3127
|
let u = this.attributes.getNamedItem(l)?.value;
|
|
3087
|
-
h.hasOwnProperty(l) && (u = h[l]),
|
|
3128
|
+
h.hasOwnProperty(l) && (u = h[l]), a[l] = u;
|
|
3088
3129
|
}
|
|
3089
|
-
this.vueApp =
|
|
3130
|
+
this.vueApp = ko(ge, a), this.vueApp.use(rr), this.vueApp.use(ir), this.vueApp.use(St), this.vueApp.use(_o), this.vueApp.use(Vo), this.vueApp.use(Eo, { bootstrap: !0 });
|
|
3090
3131
|
const c = document.createElement("div");
|
|
3091
3132
|
this.vueApp.mount(c), this.appendChild(c.children[0]);
|
|
3092
3133
|
}
|
|
3093
3134
|
}
|
|
3094
|
-
window.customElements.define("konnectio-hotel",
|
|
3135
|
+
window.customElements.define("konnectio-hotel", sr);
|
|
3095
3136
|
export {
|
|
3096
|
-
|
|
3137
|
+
sr as default
|
|
3097
3138
|
};
|