@konnectio/core 4.0.56-rc31 → 4.0.56-rc33
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-qP-3ktN4.js → ActionField-tze5AH3K.js} +10 -10
- package/dist/ActionField-tze5AH3K.js.br +0 -0
- package/dist/AvailabilitySkeleton-BO4Erg_O.js +277 -0
- package/dist/AvailabilitySkeleton-BO4Erg_O.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js +7681 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js.br +0 -0
- package/dist/{CheckoutWindow-RWkSWvbk.js → CheckoutWindow-CIZWV-gI.js} +55 -55
- package/dist/CheckoutWindow-CIZWV-gI.js.br +0 -0
- package/dist/{ErrorMessage-z0JJ8Q3W.js → ErrorMessage-BzZDhDkX.js} +1 -1
- package/dist/ErrorMessage-BzZDhDkX.js.br +0 -0
- package/dist/EventAvailabilityForm-D73TXrag.js +422 -0
- package/dist/EventAvailabilityForm-D73TXrag.js.br +0 -0
- package/dist/Field-oZiblvji.js +41 -0
- package/dist/Field-oZiblvji.js.br +0 -0
- package/dist/{Field-C9r1d8IB.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js} +11521 -11751
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js.br +0 -0
- package/dist/{TermsOfService-oZz-B-KI.js → TermsOfService-yJlRLBDk.js} +2 -2
- package/dist/availability.js +45 -46
- package/dist/availability.js.br +0 -0
- package/dist/event.js +622 -491
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +87 -77
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +261 -260
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +1016 -1027
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-fa0tia29.js → masonry.plugin-B71LqMrD.js} +1263 -1271
- package/dist/masonry.plugin-B71LqMrD.js.br +0 -0
- package/dist/polyfill.js +2507 -2503
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +25 -24
- package/dist/ActionField-qP-3ktN4.js.br +0 -0
- package/dist/AvailabilitySkeleton-uaCnfwHM.js +0 -7665
- package/dist/AvailabilitySkeleton-uaCnfwHM.js.br +0 -0
- package/dist/CheckoutWindow-RWkSWvbk.js.br +0 -0
- package/dist/ErrorMessage-z0JJ8Q3W.js.br +0 -0
- package/dist/EventAvailabilityForm-LIgUj1t3.js +0 -325
- package/dist/EventAvailabilityForm-LIgUj1t3.js.br +0 -0
- package/dist/Field-C9r1d8IB.js.br +0 -0
- package/dist/HotelAvailabilityForm-AQ4VA15t.js +0 -212
- package/dist/HotelAvailabilityForm-AQ4VA15t.js.br +0 -0
- package/dist/masonry.plugin-fa0tia29.js.br +0 -0
- /package/dist/{_commonjsHelpers-f3sTPFkQ.js → _commonjsHelpers-DaMA6jEr.js} +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,185 +1,189 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { R as
|
|
3
|
-
import { H as
|
|
4
|
-
import { S as
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
8
|
-
const
|
|
1
|
+
import { d as W, u as X, K as z, N as ge, a0 as re, m as x, o as p, a as D, w as V, ae as Le, f as i, t as y, g as o, a5 as ae, a9 as xe, aa as Je, e as v, a3 as q, av as Ne, aw as Rt, c as h, ab as F, F as M, b as _, ak as je, ax as ue, a4 as ie, a2 as U, a8 as Ut, q as Ve, _ as ee, i as O, j as Pe, y as lt, z as nt, ay as at, p as He, a1 as $e, k as it, C as se, h as st, af as rt, l as ut, n as Te, I as dt, r as Ye, T as ne, az as Ft, x as Ot, S as Nt, al as jt, v as Gt, ar as qt, aA as Wt, A as Kt, B as zt, D as xt, ad as Jt, G as Yt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bsv17X7r.js";
|
|
2
|
+
import { R as Zt, B as Se, L as Qt, S as Xt, M as eo, a as Re, T as to, V as oo, G as lo } from "./masonry.plugin-B71LqMrD.js";
|
|
3
|
+
import { A as no, H as ao } from "./AvailabilitySkeleton-BO4Erg_O.js";
|
|
4
|
+
import { S as io } from "./TermsOfService-yJlRLBDk.js";
|
|
5
|
+
import { a as Ce, B as so, P as ro, C as uo } from "./CheckoutWindow-CIZWV-gI.js";
|
|
6
|
+
import { _ as ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-_E-GDGw7.js";
|
|
7
|
+
const co = { class: "konnectio-hotel-reservation-warning" }, po = { class: "konnectio-hotel-reservation-warning" };
|
|
8
|
+
const mo = { key: 0 }, fo = { key: 1 }, ho = { class: "konnectio-reservation-actions" }, vo = /* @__PURE__ */ W({
|
|
9
9
|
__name: "HotelReservationForm",
|
|
10
10
|
props: {
|
|
11
11
|
showGiftCard: { type: Boolean, default: !1 },
|
|
12
12
|
showTermsNotice: { type: Boolean, default: !1 }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const { t: e } =
|
|
16
|
-
hideArrivalDepartureInputs:
|
|
17
|
-
disableArrivalUserSelection:
|
|
18
|
-
disableDepartureUserSelection:
|
|
19
|
-
arrivalDefault:
|
|
20
|
-
departureDefault:
|
|
21
|
-
disableNewsletterSignup:
|
|
22
|
-
currency:
|
|
23
|
-
} =
|
|
24
|
-
arrivalTime:
|
|
25
|
-
departureTime:
|
|
26
|
-
roomDisplay:
|
|
27
|
-
templateID:
|
|
28
|
-
totalPrice:
|
|
29
|
-
areListingsLoading:
|
|
30
|
-
getSelectedPackageRoom:
|
|
31
|
-
selectedPackage:
|
|
32
|
-
discountVouchers:
|
|
33
|
-
currentArrivalDate:
|
|
34
|
-
currentDepartureDate:
|
|
35
|
-
datesMismatch:
|
|
36
|
-
newsMails:
|
|
37
|
-
termsOfService:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
14
|
+
setup(l) {
|
|
15
|
+
const { t: e } = X(), {
|
|
16
|
+
hideArrivalDepartureInputs: t,
|
|
17
|
+
disableArrivalUserSelection: n,
|
|
18
|
+
disableDepartureUserSelection: a,
|
|
19
|
+
arrivalDefault: s,
|
|
20
|
+
departureDefault: c,
|
|
21
|
+
disableNewsletterSignup: m,
|
|
22
|
+
currency: d
|
|
23
|
+
} = z(ge()), {
|
|
24
|
+
arrivalTime: r,
|
|
25
|
+
departureTime: u,
|
|
26
|
+
roomDisplay: f,
|
|
27
|
+
templateID: k,
|
|
28
|
+
totalPrice: P,
|
|
29
|
+
areListingsLoading: $,
|
|
30
|
+
getSelectedPackageRoom: I,
|
|
31
|
+
selectedPackage: E,
|
|
32
|
+
discountVouchers: b,
|
|
33
|
+
currentArrivalDate: T,
|
|
34
|
+
currentDepartureDate: H,
|
|
35
|
+
datesMismatch: N,
|
|
36
|
+
newsMails: B,
|
|
37
|
+
termsOfService: J,
|
|
38
|
+
discountCode: j,
|
|
39
|
+
acceptTerms: A
|
|
40
|
+
} = z(re()), { removeRoom: Y, validateDiscountCode: De } = re(), de = x(!1);
|
|
41
|
+
function ce(Z) {
|
|
42
|
+
return Z.reduce((L, { totalPrice: pe }) => L + pe, 0);
|
|
42
43
|
}
|
|
43
|
-
return (
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
return (Z, G) => (p(), D(Zt, {
|
|
45
|
+
"discount-code": o(j),
|
|
46
|
+
"onUpdate:discountCode": G[4] || (G[4] = (L) => U(j) ? j.value = L : null),
|
|
47
|
+
"validate-discount-code": o(De),
|
|
48
|
+
"total-price": o(P),
|
|
49
|
+
"show-gift-card": Z.showGiftCard,
|
|
50
|
+
"show-terms-notice": Z.showTermsNotice,
|
|
51
|
+
"is-sidebar-loading": o($),
|
|
52
|
+
notice: o(e)("hotel.reservationNotice")
|
|
53
|
+
}, {
|
|
54
|
+
form: V(() => [
|
|
55
|
+
Le(Z.$slots, "form", {}, void 0, !0)
|
|
52
56
|
]),
|
|
53
|
-
"reservation-summary":
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
v(
|
|
57
|
+
"reservation-summary": V(() => [
|
|
58
|
+
i("li", null, [
|
|
59
|
+
i("span", null, y(o(e)("booking.reservation.arrival")), 1),
|
|
60
|
+
i("b", null, [
|
|
61
|
+
i("span", null, y(o(t) ? o(ae)(o(T)) : `${o(ae)(o(T))}, ${o(n) ? o(s) : o(r)}`), 1),
|
|
62
|
+
xe(i("span", co, [
|
|
63
|
+
v(q, {
|
|
60
64
|
icon: "exclamation-triangle",
|
|
61
65
|
type: "fas"
|
|
62
66
|
})
|
|
63
67
|
], 512), [
|
|
64
|
-
[
|
|
68
|
+
[Je, o(N)]
|
|
65
69
|
])
|
|
66
70
|
])
|
|
67
71
|
]),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
v(
|
|
72
|
+
i("li", null, [
|
|
73
|
+
i("span", null, y(o(e)("booking.reservation.departure")), 1),
|
|
74
|
+
i("b", null, [
|
|
75
|
+
i("span", null, y(o(t) ? o(ae)(o(H)) : `${o(ae)(o(H))}, ${o(a) ? o(c) : o(u)}`), 1),
|
|
76
|
+
xe(i("span", po, [
|
|
77
|
+
v(q, {
|
|
74
78
|
icon: "exclamation-triangle",
|
|
75
79
|
type: "fas"
|
|
76
80
|
})
|
|
77
81
|
], 512), [
|
|
78
|
-
[
|
|
82
|
+
[Je, o(N)]
|
|
79
83
|
])
|
|
80
84
|
])
|
|
81
85
|
]),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
i("li", null, [
|
|
87
|
+
i("span", null, y(o(e)("booking.reservation.nights")), 1),
|
|
88
|
+
i("b", null, y(o(Ne)(o(T), o(H))) + " " + y(o(Rt)(o(Ne)(o(T), o(H)) === 1 ? o(e)("booking.reservation.night") : o(e)("booking.reservation.nights"))), 1)
|
|
85
89
|
]),
|
|
86
|
-
|
|
90
|
+
o(b) ? (p(!0), h(M, { key: 0 }, F(o(b), (L) => (p(), h("li", {
|
|
87
91
|
key: L.id
|
|
88
92
|
}, [
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
]))), 128)) :
|
|
93
|
+
i("span", null, y(`${o(e)("general.discountCode")} (${L.value})`), 1),
|
|
94
|
+
i("b", null, y(L.key), 1)
|
|
95
|
+
]))), 128)) : _("", !0)
|
|
92
96
|
]),
|
|
93
|
-
"price-summary":
|
|
94
|
-
isNaN(
|
|
97
|
+
"price-summary": V(() => [
|
|
98
|
+
isNaN(o(k)) && o(f).length > 0 ? (p(!0), h(M, { key: 0 }, F(o(f), ({
|
|
95
99
|
roomGroupID: L,
|
|
96
|
-
title:
|
|
100
|
+
title: pe,
|
|
97
101
|
variants: Ae
|
|
98
|
-
}) => (
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
}) => (p(), h("div", { key: L }, [
|
|
103
|
+
i("h6", null, [
|
|
104
|
+
i("span", null, y(pe), 1)
|
|
101
105
|
]),
|
|
102
|
-
(
|
|
103
|
-
(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
v(
|
|
106
|
+
(p(!0), h(M, null, F(Ae, (ye, Ie) => (p(), h("div", { key: Ie }, [
|
|
107
|
+
(p(!0), h(M, null, F(ye.rooms, (te, me) => (p(), h("ul", { key: me }, [
|
|
108
|
+
i("li", null, [
|
|
109
|
+
i("span", null, [
|
|
110
|
+
i("span", null, [
|
|
111
|
+
je(y(o(ue)(ye.name)) + " ( ", 1),
|
|
112
|
+
v(q, {
|
|
109
113
|
icon: "male",
|
|
110
114
|
type: "fas",
|
|
111
115
|
color: "font"
|
|
112
116
|
}),
|
|
113
|
-
|
|
114
|
-
te.childrenCount > 0 ? (
|
|
115
|
-
v(
|
|
117
|
+
i("span", null, y(te.adultsCount), 1),
|
|
118
|
+
te.childrenCount > 0 ? (p(), h(M, { key: 0 }, [
|
|
119
|
+
v(q, {
|
|
116
120
|
icon: "child",
|
|
117
121
|
type: "fas",
|
|
118
122
|
color: "font"
|
|
119
123
|
}),
|
|
120
|
-
|
|
121
|
-
], 64)) :
|
|
122
|
-
|
|
124
|
+
i("span", null, y(te.childrenCount), 1)
|
|
125
|
+
], 64)) : _("", !0),
|
|
126
|
+
je(") ")
|
|
123
127
|
])
|
|
124
128
|
]),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
129
|
+
i("b", null, [
|
|
130
|
+
i("span", null, y(o(ie)(te.totalPrice, o(d))), 1),
|
|
131
|
+
_("", !0)
|
|
128
132
|
])
|
|
129
133
|
]),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
])) :
|
|
134
|
+
ce(te.roomAddons) > 0 ? (p(), h("li", mo, [
|
|
135
|
+
i("span", null, y(o(e)("general.addons")), 1),
|
|
136
|
+
i("b", null, y(o(ie)(ce(te.roomAddons), o(d))), 1)
|
|
137
|
+
])) : _("", !0)
|
|
134
138
|
]))), 128))
|
|
135
139
|
]))), 128))
|
|
136
|
-
]))), 128)) :
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
]))), 128)) : _("", !0),
|
|
141
|
+
o(I) && o(E) ? (p(), h("div", fo, [
|
|
142
|
+
i("h6", null, [
|
|
143
|
+
i("span", null, y(o(ue)(o(E).name)), 1)
|
|
140
144
|
]),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
i("div", null, [
|
|
146
|
+
i("ul", null, [
|
|
147
|
+
i("li", null, [
|
|
148
|
+
i("span", null, [
|
|
149
|
+
i("span", null, y(o(ue)(o(I).title)), 1)
|
|
146
150
|
]),
|
|
147
|
-
|
|
148
|
-
|
|
151
|
+
i("b", null, [
|
|
152
|
+
i("span", null, y(o(ie)(o(I).extraPrice, o(d))), 1)
|
|
149
153
|
])
|
|
150
154
|
])
|
|
151
155
|
])
|
|
152
156
|
])
|
|
153
|
-
])) :
|
|
157
|
+
])) : _("", !0)
|
|
154
158
|
]),
|
|
155
|
-
actions:
|
|
156
|
-
|
|
157
|
-
|
|
159
|
+
actions: V(() => [
|
|
160
|
+
i("ul", ho, [
|
|
161
|
+
o(m) ? _("", !0) : (p(), D(Ce, {
|
|
158
162
|
key: 0,
|
|
159
|
-
modelValue:
|
|
160
|
-
"onUpdate:modelValue":
|
|
163
|
+
modelValue: o(B),
|
|
164
|
+
"onUpdate:modelValue": G[0] || (G[0] = (L) => U(B) ? B.value = L : null),
|
|
161
165
|
type: "checkbox",
|
|
162
166
|
name: "newsletter",
|
|
163
|
-
label:
|
|
167
|
+
label: o(e)("booking.reservation.newsletterSignUp")
|
|
164
168
|
}, null, 8, ["modelValue", "label"])),
|
|
165
|
-
v(
|
|
166
|
-
modelValue:
|
|
167
|
-
"onUpdate:modelValue":
|
|
169
|
+
v(Ce, {
|
|
170
|
+
modelValue: o(A),
|
|
171
|
+
"onUpdate:modelValue": G[2] || (G[2] = (L) => U(A) ? A.value = L : null),
|
|
168
172
|
type: "checkbox",
|
|
169
173
|
name: "terms"
|
|
170
174
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
v(
|
|
175
|
+
default: V(() => [
|
|
176
|
+
v(o(Ut), {
|
|
173
177
|
keypath: "general.termsAndConditionsCheckbox",
|
|
174
178
|
tag: "span",
|
|
175
179
|
scope: "global"
|
|
176
180
|
}, {
|
|
177
|
-
terms:
|
|
178
|
-
|
|
181
|
+
terms: V(() => [
|
|
182
|
+
i("a", {
|
|
179
183
|
class: "konnectio-accept-terms-link",
|
|
180
|
-
onClick:
|
|
184
|
+
onClick: G[1] || (G[1] = Ve((L) => de.value = !0, ["prevent"]))
|
|
181
185
|
}, [
|
|
182
|
-
|
|
186
|
+
i("span", null, y(o(e)("general.termsAndConditions")), 1)
|
|
183
187
|
])
|
|
184
188
|
]),
|
|
185
189
|
_: 1
|
|
@@ -187,29 +191,21 @@ const ho = { key: 0 }, vo = { key: 1 }, go = { class: "konnectio-reservation-act
|
|
|
187
191
|
]),
|
|
188
192
|
_: 1
|
|
189
193
|
}, 8, ["modelValue"]),
|
|
190
|
-
|
|
191
|
-
v(
|
|
194
|
+
Le(Z.$slots, "actions", {}, void 0, !0),
|
|
195
|
+
v(io, {
|
|
192
196
|
modelValue: de.value,
|
|
193
|
-
"onUpdate:modelValue":
|
|
194
|
-
description:
|
|
197
|
+
"onUpdate:modelValue": G[3] || (G[3] = (L) => de.value = L),
|
|
198
|
+
description: o(J)
|
|
195
199
|
}, null, 8, ["modelValue", "description"])
|
|
196
200
|
])
|
|
197
201
|
]),
|
|
198
|
-
navigation:
|
|
199
|
-
|
|
202
|
+
navigation: V(() => [
|
|
203
|
+
Le(Z.$slots, "navigation", {}, void 0, !0)
|
|
200
204
|
]),
|
|
201
|
-
_:
|
|
202
|
-
}, [
|
|
203
|
-
l(t).addons ? {
|
|
204
|
-
name: "addons",
|
|
205
|
-
fn: _(() => [
|
|
206
|
-
be(K.$slots, "addons", {}, void 0, !0)
|
|
207
|
-
]),
|
|
208
|
-
key: "0"
|
|
209
|
-
} : void 0
|
|
210
|
-
]), 1032, ["total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
|
|
205
|
+
_: 3
|
|
206
|
+
}, 8, ["discount-code", "validate-discount-code", "total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
|
|
211
207
|
}
|
|
212
|
-
}), Ue = /* @__PURE__ */ ee(
|
|
208
|
+
}), Ue = /* @__PURE__ */ ee(vo, [["__scopeId", "data-v-db2668d8"]]), go = (l) => (lt("data-v-69fe83d8"), l = l(), nt(), l), yo = { class: "konnectio-room-config-option" }, bo = { key: 0 }, ko = { class: "konnectio-selected-room-config" }, _o = { class: "konnectio-selected-room-config-people" }, Vo = { key: 0 }, $o = { class: "konnectio-selected-room-config-price" }, To = /* @__PURE__ */ go(() => /* @__PURE__ */ i("span", null, null, -1)), Co = /* @__PURE__ */ W({
|
|
213
209
|
__name: "RoomConfigField",
|
|
214
210
|
props: {
|
|
215
211
|
modelValue: {},
|
|
@@ -219,18 +215,18 @@ const ho = { key: 0 }, vo = { key: 1 }, go = { class: "konnectio-reservation-act
|
|
|
219
215
|
label: {}
|
|
220
216
|
},
|
|
221
217
|
emits: ["update:modelValue"],
|
|
222
|
-
setup(
|
|
223
|
-
const { t } =
|
|
218
|
+
setup(l, { emit: e }) {
|
|
219
|
+
const { t } = X(), { currency: n } = z(ge()), a = e, s = l;
|
|
224
220
|
function c(d) {
|
|
225
221
|
a("update:modelValue", d);
|
|
226
222
|
}
|
|
227
|
-
const
|
|
228
|
-
get: () =>
|
|
223
|
+
const m = O({
|
|
224
|
+
get: () => s.modelValue,
|
|
229
225
|
set: (d) => c(d)
|
|
230
226
|
});
|
|
231
|
-
return (d,
|
|
232
|
-
modelValue:
|
|
233
|
-
"onUpdate:modelValue":
|
|
227
|
+
return (d, r) => (p(), D(Pe, {
|
|
228
|
+
modelValue: m.value,
|
|
229
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => m.value = u),
|
|
234
230
|
label: d.label,
|
|
235
231
|
placeholder: "Select guest configuration",
|
|
236
232
|
labelKey: "label",
|
|
@@ -241,76 +237,76 @@ const ho = { key: 0 }, vo = { key: 1 }, go = { class: "konnectio-reservation-act
|
|
|
241
237
|
required: d.required,
|
|
242
238
|
searchable: !1
|
|
243
239
|
}, {
|
|
244
|
-
option:
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
v(
|
|
240
|
+
option: V(({ data: u }) => [
|
|
241
|
+
i("span", yo, [
|
|
242
|
+
i("div", null, [
|
|
243
|
+
v(q, {
|
|
248
244
|
icon: "male",
|
|
249
245
|
type: "fas",
|
|
250
246
|
color: "font"
|
|
251
247
|
}),
|
|
252
|
-
|
|
253
|
-
u.children > 0 ? (
|
|
254
|
-
v(
|
|
248
|
+
i("span", null, y(`${u.adults}`), 1),
|
|
249
|
+
u.children > 0 ? (p(), h("span", bo, [
|
|
250
|
+
v(q, {
|
|
255
251
|
icon: "child",
|
|
256
252
|
type: "fas",
|
|
257
253
|
color: "font"
|
|
258
254
|
}),
|
|
259
|
-
|
|
260
|
-
])) :
|
|
255
|
+
i("span", null, y(`${u.children}`), 1)
|
|
256
|
+
])) : _("", !0)
|
|
261
257
|
]),
|
|
262
|
-
|
|
258
|
+
i("span", null, y(`(${o(ie)(u.price, o(n))})`), 1)
|
|
263
259
|
])
|
|
264
260
|
]),
|
|
265
|
-
"selected-option":
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
261
|
+
"selected-option": V(({ data: u }) => [
|
|
262
|
+
i("div", ko, [
|
|
263
|
+
i("div", _o, [
|
|
264
|
+
i("div", null, [
|
|
265
|
+
_("", !0),
|
|
266
|
+
i("span", null, y(`${u.adults} ${u.adults === 1 ? o(t)("general.adult") : o(t)("general.adults")}`), 1)
|
|
271
267
|
]),
|
|
272
|
-
u.children > 0 ? (
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
])) :
|
|
268
|
+
u.children > 0 ? (p(), h("div", Vo, [
|
|
269
|
+
_("", !0),
|
|
270
|
+
i("span", null, y(`& ${u.children} ${u.children === 1 ? o(t)("general.child") : o(t)("general.children")}`), 1)
|
|
271
|
+
])) : _("", !0)
|
|
276
272
|
]),
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
273
|
+
i("div", $o, [
|
|
274
|
+
To,
|
|
275
|
+
je(" " + y(`(${o(ie)(u.price, o(n))})`), 1)
|
|
280
276
|
])
|
|
281
277
|
])
|
|
282
278
|
]),
|
|
283
279
|
_: 1
|
|
284
280
|
}, 8, ["modelValue", "label", "options", "readonly", "required"]));
|
|
285
281
|
}
|
|
286
|
-
}),
|
|
287
|
-
const
|
|
282
|
+
}), wo = /* @__PURE__ */ ee(Co, [["__scopeId", "data-v-69fe83d8"]]), Po = { class: "konnectio-availability-listing-selection" }, Ho = { key: 1 }, So = { class: "fresh-booking-listing-config-body" }, Do = { class: "fresh-booking-listing-units-body" };
|
|
283
|
+
const Ao = /* @__PURE__ */ W({
|
|
288
284
|
__name: "Hotel",
|
|
289
285
|
props: {
|
|
290
286
|
room: {},
|
|
291
287
|
layout: {}
|
|
292
288
|
},
|
|
293
|
-
setup(
|
|
294
|
-
const { t: e } =
|
|
295
|
-
function a(
|
|
296
|
-
n.value[
|
|
289
|
+
setup(l) {
|
|
290
|
+
const { t: e } = X(), t = l, n = x([]);
|
|
291
|
+
function a(b) {
|
|
292
|
+
n.value[b].config.push({
|
|
297
293
|
id: NaN,
|
|
298
294
|
units: 0,
|
|
299
295
|
addons: []
|
|
300
296
|
});
|
|
301
297
|
}
|
|
302
|
-
const
|
|
303
|
-
label:
|
|
304
|
-
value:
|
|
305
|
-
}))), { hideAvailableRoomAmount: c } =
|
|
306
|
-
value:
|
|
307
|
-
price:
|
|
308
|
-
adults:
|
|
309
|
-
children:
|
|
310
|
-
hasBreakfast:
|
|
311
|
-
})) || [] : [],
|
|
312
|
-
function
|
|
313
|
-
|
|
298
|
+
const s = O(() => t.room.rates.map((b) => ({
|
|
299
|
+
label: b.name,
|
|
300
|
+
value: b.id
|
|
301
|
+
}))), { hideAvailableRoomAmount: c } = z(ge()), { roomSelect: m } = z(re()), { addToCart: d, removeFromCart: r } = at(), u = (b, T) => t.room.rates.find((H) => H.id === b)?.occupantRates.find((H) => H.index === T), f = O(() => t.room.rates.every((b) => b.isBreakfastIncluded === !0)), k = (b, T) => u(b, T) ? u(b, T)?.rooms : null, P = (b) => t.room.rates.length > 0 ? t.room.rates.find((T) => T.id === b)?.occupantRates.map((T) => ({
|
|
302
|
+
value: T.index,
|
|
303
|
+
price: T.totalPrice,
|
|
304
|
+
adults: T.adultsCount,
|
|
305
|
+
children: T.childrenCount,
|
|
306
|
+
hasBreakfast: T.hasBreakfast
|
|
307
|
+
})) || [] : [], $ = O(() => t.room.rates.length > 1);
|
|
308
|
+
function I() {
|
|
309
|
+
$.value ? n.value.push({
|
|
314
310
|
id: void 0,
|
|
315
311
|
config: [{
|
|
316
312
|
id: t.room.rates[0].occupantRateIndex || NaN,
|
|
@@ -326,100 +322,100 @@ const Eo = /* @__PURE__ */ q({
|
|
|
326
322
|
}]
|
|
327
323
|
});
|
|
328
324
|
}
|
|
329
|
-
|
|
330
|
-
|
|
325
|
+
He(() => {
|
|
326
|
+
I();
|
|
331
327
|
});
|
|
332
|
-
const
|
|
333
|
-
return
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
const j =
|
|
337
|
-
j !==
|
|
328
|
+
const E = O(() => JSON.parse(JSON.stringify(n.value)));
|
|
329
|
+
return $e(E, (b, T) => {
|
|
330
|
+
T.length > 0 && b.forEach((H, N) => {
|
|
331
|
+
H.config.forEach((B, J) => {
|
|
332
|
+
const j = B.units, A = T[N].config[J].units;
|
|
333
|
+
j !== A && (j > A ? (n.value[N].config[J].addons.push({}), d({
|
|
338
334
|
id: t.room.id,
|
|
339
335
|
name: t.room.title,
|
|
340
|
-
value: t.room.rates[
|
|
341
|
-
})) : (n.value[
|
|
336
|
+
value: t.room.rates[N].rackRate
|
|
337
|
+
})) : (n.value[N].config[J].addons.pop(), r({
|
|
342
338
|
id: t.room.id,
|
|
343
339
|
name: t.room.title,
|
|
344
|
-
value: t.room.rates[
|
|
340
|
+
value: t.room.rates[N].rackRate
|
|
345
341
|
})));
|
|
346
342
|
});
|
|
347
343
|
});
|
|
348
|
-
}, { deep: !0 }),
|
|
349
|
-
|
|
350
|
-
}, { deep: !0 }), (
|
|
351
|
-
"listing-id":
|
|
352
|
-
gallery:
|
|
353
|
-
name:
|
|
354
|
-
description:
|
|
355
|
-
layout:
|
|
356
|
-
facilities:
|
|
357
|
-
"prices-from":
|
|
358
|
-
"includes-breakfast":
|
|
344
|
+
}, { deep: !0 }), $e(n, () => {
|
|
345
|
+
m.value[t.room.id] = n.value;
|
|
346
|
+
}, { deep: !0 }), (b, T) => (p(), D(Se, {
|
|
347
|
+
"listing-id": b.room.id,
|
|
348
|
+
gallery: b.room.images,
|
|
349
|
+
name: b.room.title,
|
|
350
|
+
description: b.room.description,
|
|
351
|
+
layout: b.layout,
|
|
352
|
+
facilities: b.room.facilities,
|
|
353
|
+
"prices-from": b.room.pricesFrom,
|
|
354
|
+
"includes-breakfast": f.value
|
|
359
355
|
}, {
|
|
360
|
-
action:
|
|
361
|
-
|
|
362
|
-
(
|
|
363
|
-
key:
|
|
356
|
+
action: V(() => [
|
|
357
|
+
i("div", Po, [
|
|
358
|
+
(p(!0), h(M, null, F(n.value, (H, N) => (p(), h("div", {
|
|
359
|
+
key: H.id,
|
|
364
360
|
class: "freshbooking-hotel-room"
|
|
365
361
|
}, [
|
|
366
|
-
|
|
362
|
+
$.value ? (p(), D(Pe, {
|
|
367
363
|
key: 0,
|
|
368
|
-
modelValue:
|
|
369
|
-
"onUpdate:modelValue": (
|
|
370
|
-
label:
|
|
371
|
-
placeholder:
|
|
372
|
-
options:
|
|
364
|
+
modelValue: H.id,
|
|
365
|
+
"onUpdate:modelValue": (B) => H.id = B,
|
|
366
|
+
label: o(e)("hotel.roomVariant"),
|
|
367
|
+
placeholder: o(e)("hotel.chooseARoomVariant"),
|
|
368
|
+
options: s.value,
|
|
373
369
|
searchable: !1
|
|
374
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) :
|
|
375
|
-
|
|
376
|
-
(
|
|
377
|
-
id:
|
|
378
|
-
maximumOccupants:
|
|
379
|
-
}) => (
|
|
380
|
-
key:
|
|
370
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : _("", !0),
|
|
371
|
+
H.id ? (p(), h("div", Ho, [
|
|
372
|
+
(p(!0), h(M, null, F(b.room.rates, ({
|
|
373
|
+
id: B,
|
|
374
|
+
maximumOccupants: J
|
|
375
|
+
}) => (p(), h("div", {
|
|
376
|
+
key: B,
|
|
381
377
|
class: "booking-availability-listing-action-selective-i"
|
|
382
378
|
}, [
|
|
383
|
-
|
|
384
|
-
key:
|
|
379
|
+
H.id === B ? (p(!0), h(M, { key: 0 }, F(H.config, (j, A) => (p(), h("div", {
|
|
380
|
+
key: A,
|
|
385
381
|
class: "booking-availability-listing-action-selective"
|
|
386
382
|
}, [
|
|
387
|
-
|
|
388
|
-
v(
|
|
383
|
+
i("ul", So, [
|
|
384
|
+
v(wo, {
|
|
389
385
|
modelValue: j.id,
|
|
390
|
-
"onUpdate:modelValue": (
|
|
386
|
+
"onUpdate:modelValue": (Y) => j.id = Y,
|
|
391
387
|
icon: "male",
|
|
392
388
|
"icon-type": "fas",
|
|
393
|
-
label:
|
|
394
|
-
description: `${
|
|
395
|
-
options:
|
|
396
|
-
readonly: !(
|
|
389
|
+
label: o(e)("general.guests"),
|
|
390
|
+
description: `${o(e)("general.maximumGuests")}: ${J}`,
|
|
391
|
+
options: P(B),
|
|
392
|
+
readonly: !(P(B).length > 1)
|
|
397
393
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
|
|
398
394
|
]),
|
|
399
|
-
|
|
400
|
-
v(
|
|
395
|
+
i("ul", Do, [
|
|
396
|
+
v(it, {
|
|
401
397
|
modelValue: j.units,
|
|
402
|
-
"onUpdate:modelValue": (
|
|
403
|
-
description:
|
|
398
|
+
"onUpdate:modelValue": (Y) => j.units = Y,
|
|
399
|
+
description: o(c) ? void 0 : `${o(e)("booking.availability.availableUnits")}: ${k(H.id, j.id)}`,
|
|
404
400
|
icon: "house",
|
|
405
401
|
"icon-type": "fas",
|
|
406
402
|
"icon-placement": "label",
|
|
407
|
-
label:
|
|
403
|
+
label: o(e)("booking.availability.units"),
|
|
408
404
|
minValue: 0,
|
|
409
|
-
"max-value":
|
|
405
|
+
"max-value": k(B, j.id) || 1 / 0
|
|
410
406
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
|
|
411
407
|
]),
|
|
412
|
-
|
|
413
|
-
]))), 128)) :
|
|
408
|
+
_("", !0)
|
|
409
|
+
]))), 128)) : _("", !0)
|
|
414
410
|
]))), 128))
|
|
415
|
-
])) :
|
|
411
|
+
])) : _("", !0)
|
|
416
412
|
]))), 128))
|
|
417
413
|
])
|
|
418
414
|
]),
|
|
419
415
|
_: 1
|
|
420
416
|
}, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
|
|
421
417
|
}
|
|
422
|
-
}),
|
|
418
|
+
}), Io = /* @__PURE__ */ ee(Ao, [["__scopeId", "data-v-2121431c"]]), Eo = { class: "konnectio-template-side-panel" }, Bo = { class: "konnectio-template-side-panel-listings" }, Mo = /* @__PURE__ */ W({
|
|
423
419
|
__name: "Template",
|
|
424
420
|
props: {
|
|
425
421
|
title: {},
|
|
@@ -427,45 +423,45 @@ const Eo = /* @__PURE__ */ q({
|
|
|
427
423
|
roomGroups: {},
|
|
428
424
|
callback: { type: Function }
|
|
429
425
|
},
|
|
430
|
-
setup(
|
|
431
|
-
const { t: e } =
|
|
432
|
-
function u(
|
|
433
|
-
return
|
|
426
|
+
setup(l) {
|
|
427
|
+
const { t: e } = X(), { templateID: t, roomGroupID: n } = z(re()), { currency: a } = z(ge()), { clearRoomSelection: s } = re(), c = l, m = x(!0), d = O(() => {
|
|
428
|
+
function u(f, k) {
|
|
429
|
+
return m.value === !0 ? f.extraPrice > k.extraPrice ? -1 : 1 : f.extraPrice > k.extraPrice ? 1 : -1;
|
|
434
430
|
}
|
|
435
431
|
return c.roomGroups?.slice().sort(u);
|
|
436
432
|
});
|
|
437
|
-
function
|
|
438
|
-
t.value = c.templateId, n.value = u,
|
|
433
|
+
function r(u) {
|
|
434
|
+
t.value = c.templateId, n.value = u, s(), c.callback(2);
|
|
439
435
|
}
|
|
440
|
-
return (u,
|
|
436
|
+
return (u, f) => (p(), D(so, {
|
|
441
437
|
title: u.title,
|
|
442
|
-
subtitle:
|
|
438
|
+
subtitle: o(e)("booking.availability.selectATemplateRoom")
|
|
443
439
|
}, {
|
|
444
|
-
default:
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
(
|
|
448
|
-
id:
|
|
449
|
-
title:
|
|
450
|
-
description:
|
|
451
|
-
images:
|
|
452
|
-
facilities:
|
|
453
|
-
extraPrice:
|
|
454
|
-
}) => (
|
|
455
|
-
key:
|
|
456
|
-
"listing-id":
|
|
457
|
-
name:
|
|
458
|
-
description:
|
|
459
|
-
facilities:
|
|
460
|
-
gallery:
|
|
440
|
+
default: V(() => [
|
|
441
|
+
i("div", Eo, [
|
|
442
|
+
i("div", Bo, [
|
|
443
|
+
(p(!0), h(M, null, F(d.value, ({
|
|
444
|
+
id: k,
|
|
445
|
+
title: P,
|
|
446
|
+
description: $,
|
|
447
|
+
images: I,
|
|
448
|
+
facilities: E,
|
|
449
|
+
extraPrice: b
|
|
450
|
+
}) => (p(), D(Se, {
|
|
451
|
+
key: k,
|
|
452
|
+
"listing-id": k,
|
|
453
|
+
name: P,
|
|
454
|
+
description: $,
|
|
455
|
+
facilities: E,
|
|
456
|
+
gallery: I,
|
|
461
457
|
"includes-breakfast": !1,
|
|
462
458
|
"hide-info-button": !0
|
|
463
459
|
}, {
|
|
464
|
-
action:
|
|
465
|
-
|
|
460
|
+
action: V(() => [
|
|
461
|
+
i("div", null, [
|
|
466
462
|
v(se, {
|
|
467
|
-
onClickEvent: (
|
|
468
|
-
label: `${
|
|
463
|
+
onClickEvent: (T) => r(k),
|
|
464
|
+
label: `${o(e)("booking.availability.selectThisRoom")} (${o(ie)(b, o(a))})`,
|
|
469
465
|
"full-width": ""
|
|
470
466
|
}, null, 8, ["onClickEvent", "label"])
|
|
471
467
|
])
|
|
@@ -478,7 +474,7 @@ const Eo = /* @__PURE__ */ q({
|
|
|
478
474
|
_: 1
|
|
479
475
|
}, 8, ["title", "subtitle"]));
|
|
480
476
|
}
|
|
481
|
-
}),
|
|
477
|
+
}), pt = /* @__PURE__ */ ee(Mo, [["__scopeId", "data-v-f7af0f66"]]), Lo = ["innerHTML"], Ro = { class: "konnectio-template-select-package" }, Uo = /* @__PURE__ */ W({
|
|
482
478
|
__name: "Template",
|
|
483
479
|
props: {
|
|
484
480
|
id: {},
|
|
@@ -489,11 +485,11 @@ const Eo = /* @__PURE__ */ q({
|
|
|
489
485
|
roomGroups: {},
|
|
490
486
|
callback: { type: Function }
|
|
491
487
|
},
|
|
492
|
-
setup(
|
|
493
|
-
const { t: e } =
|
|
494
|
-
(d,
|
|
488
|
+
setup(l) {
|
|
489
|
+
const { t: e } = X(), t = l, n = O(() => t.roomGroups.reduce(
|
|
490
|
+
(d, r) => d < r.extraPrice ? d : r.extraPrice,
|
|
495
491
|
1 / 0
|
|
496
|
-
)), a =
|
|
492
|
+
)), a = O(() => {
|
|
497
493
|
if (t.image)
|
|
498
494
|
return [{
|
|
499
495
|
large: t.image.url,
|
|
@@ -501,52 +497,52 @@ const Eo = /* @__PURE__ */ q({
|
|
|
501
497
|
thumb: t.image.url,
|
|
502
498
|
url: t.image.url
|
|
503
499
|
}];
|
|
504
|
-
}),
|
|
500
|
+
}), s = x(!1);
|
|
505
501
|
function c() {
|
|
506
|
-
|
|
502
|
+
s.value = !0;
|
|
507
503
|
}
|
|
508
|
-
function
|
|
509
|
-
t.callback(d),
|
|
504
|
+
function m(d) {
|
|
505
|
+
t.callback(d), s.value = !1;
|
|
510
506
|
}
|
|
511
|
-
return (d,
|
|
507
|
+
return (d, r) => (p(), D(Se, {
|
|
512
508
|
"listing-id": d.id,
|
|
513
509
|
name: d.name,
|
|
514
510
|
description: d.description,
|
|
515
511
|
gallery: a.value,
|
|
516
|
-
layout:
|
|
512
|
+
layout: o(rt).Template,
|
|
517
513
|
"includes-breakfast": !1,
|
|
518
514
|
"hide-info-button": !1,
|
|
519
515
|
"prices-from": n.value
|
|
520
516
|
}, {
|
|
521
|
-
description:
|
|
522
|
-
d.description ? (
|
|
517
|
+
description: V(() => [
|
|
518
|
+
d.description ? (p(), h("p", {
|
|
523
519
|
key: 0,
|
|
524
|
-
innerHTML:
|
|
525
|
-
}, null, 8,
|
|
520
|
+
innerHTML: o(st)(d.description)
|
|
521
|
+
}, null, 8, Lo)) : _("", !0)
|
|
526
522
|
]),
|
|
527
|
-
action:
|
|
528
|
-
|
|
523
|
+
action: V(() => [
|
|
524
|
+
i("div", Ro, [
|
|
529
525
|
v(se, {
|
|
530
526
|
onClickEvent: c,
|
|
531
|
-
label:
|
|
527
|
+
label: o(e)("booking.availability.selectPackage"),
|
|
532
528
|
"full-width": ""
|
|
533
529
|
}, null, 8, ["label"])
|
|
534
530
|
])
|
|
535
531
|
]),
|
|
536
|
-
default:
|
|
537
|
-
v(
|
|
538
|
-
modelValue:
|
|
539
|
-
"onUpdate:modelValue":
|
|
532
|
+
default: V(() => [
|
|
533
|
+
v(pt, {
|
|
534
|
+
modelValue: s.value,
|
|
535
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => s.value = u),
|
|
540
536
|
title: d.name,
|
|
541
537
|
"template-id": d.id,
|
|
542
538
|
roomGroups: d.roomGroups,
|
|
543
|
-
callback:
|
|
539
|
+
callback: m
|
|
544
540
|
}, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
|
|
545
541
|
]),
|
|
546
542
|
_: 1
|
|
547
543
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
|
|
548
544
|
}
|
|
549
|
-
}),
|
|
545
|
+
}), Fo = ["innerHTML"], Oo = { class: "konnectio-special-offer-availability" }, No = { class: "konnectio-special-offer-availability-button" }, jo = /* @__PURE__ */ W({
|
|
550
546
|
__name: "SpecialOffer",
|
|
551
547
|
props: {
|
|
552
548
|
id: {},
|
|
@@ -559,66 +555,66 @@ const Eo = /* @__PURE__ */ q({
|
|
|
559
555
|
roomGroups: {},
|
|
560
556
|
callback: { type: Function }
|
|
561
557
|
},
|
|
562
|
-
setup(
|
|
563
|
-
const { t: e } =
|
|
558
|
+
setup(l) {
|
|
559
|
+
const { t: e } = X(), { updateDates: t } = ut(), n = l, a = x([]), s = O(() => Ne(n.fromDate, n.toDate) === 1), c = O(() => [{
|
|
564
560
|
large: n.image.url,
|
|
565
561
|
medium: n.image.url,
|
|
566
562
|
thumb: n.image.url,
|
|
567
563
|
url: n.image.url
|
|
568
|
-
}]),
|
|
564
|
+
}]), m = x(!1);
|
|
569
565
|
function d(u) {
|
|
570
|
-
n.callback(u),
|
|
566
|
+
n.callback(u), m.value = !1;
|
|
571
567
|
}
|
|
572
|
-
function
|
|
568
|
+
function r() {
|
|
573
569
|
t(a.value[0], a.value[1]);
|
|
574
570
|
}
|
|
575
|
-
return
|
|
576
|
-
|
|
577
|
-
}), (u,
|
|
571
|
+
return He(() => {
|
|
572
|
+
s.value && (a.value = [new Date(n.fromDate), new Date(n.toDate)]);
|
|
573
|
+
}), (u, f) => (p(), D(Se, {
|
|
578
574
|
"listing-id": u.id,
|
|
579
575
|
name: u.name,
|
|
580
576
|
description: u.description,
|
|
581
577
|
gallery: c.value,
|
|
582
|
-
layout:
|
|
578
|
+
layout: o(rt).Template,
|
|
583
579
|
"includes-breakfast": !1,
|
|
584
580
|
"hide-info-button": !1,
|
|
585
581
|
"to-date": u.toDate,
|
|
586
582
|
"from-date": u.fromDate
|
|
587
583
|
}, {
|
|
588
|
-
description:
|
|
589
|
-
u.description ? (
|
|
584
|
+
description: V(() => [
|
|
585
|
+
u.description ? (p(), h("p", {
|
|
590
586
|
key: 0,
|
|
591
|
-
innerHTML:
|
|
592
|
-
}, null, 8,
|
|
587
|
+
innerHTML: o(st)(u.description)
|
|
588
|
+
}, null, 8, Fo)) : _("", !0)
|
|
593
589
|
]),
|
|
594
|
-
action:
|
|
595
|
-
|
|
596
|
-
v(
|
|
590
|
+
action: V(() => [
|
|
591
|
+
i("div", Oo, [
|
|
592
|
+
v(ct, {
|
|
597
593
|
modelValue: a.value,
|
|
598
|
-
"onUpdate:modelValue":
|
|
599
|
-
label:
|
|
600
|
-
placeholder:
|
|
594
|
+
"onUpdate:modelValue": f[0] || (f[0] = (k) => a.value = k),
|
|
595
|
+
label: o(e)("availability.checkInOut"),
|
|
596
|
+
placeholder: o(e)("booking.availability.selectDates"),
|
|
601
597
|
"icon-type": "fas",
|
|
602
598
|
"icon-placement": "label",
|
|
603
599
|
"min-range": 1,
|
|
604
600
|
"start-date": new Date(u.fromDate),
|
|
605
601
|
"min-date": new Date(u.fromDate),
|
|
606
602
|
"max-date": new Date(u.toDate),
|
|
607
|
-
readonly:
|
|
603
|
+
readonly: s.value,
|
|
608
604
|
range: ""
|
|
609
605
|
}, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
|
|
610
|
-
|
|
606
|
+
i("div", No, [
|
|
611
607
|
v(se, {
|
|
612
|
-
label:
|
|
613
|
-
onClick:
|
|
608
|
+
label: o(e)("availability.buttonLabel"),
|
|
609
|
+
onClick: Ve(r, ["prevent"])
|
|
614
610
|
}, null, 8, ["label"])
|
|
615
611
|
])
|
|
616
612
|
])
|
|
617
613
|
]),
|
|
618
|
-
default:
|
|
619
|
-
v(
|
|
620
|
-
modelValue:
|
|
621
|
-
"onUpdate:modelValue":
|
|
614
|
+
default: V(() => [
|
|
615
|
+
v(pt, {
|
|
616
|
+
modelValue: m.value,
|
|
617
|
+
"onUpdate:modelValue": f[1] || (f[1] = (k) => m.value = k),
|
|
622
618
|
title: u.name,
|
|
623
619
|
"template-id": u.id,
|
|
624
620
|
roomGroups: u.roomGroups,
|
|
@@ -628,7 +624,7 @@ const Eo = /* @__PURE__ */ q({
|
|
|
628
624
|
_: 1
|
|
629
625
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
|
|
630
626
|
}
|
|
631
|
-
}), Ze = /* @__PURE__ */
|
|
627
|
+
}), Ze = /* @__PURE__ */ W({
|
|
632
628
|
__name: "TimeField",
|
|
633
629
|
props: {
|
|
634
630
|
modelValue: {},
|
|
@@ -652,17 +648,17 @@ const Eo = /* @__PURE__ */ q({
|
|
|
652
648
|
inputStyle: {}
|
|
653
649
|
},
|
|
654
650
|
emits: ["update:modelValue"],
|
|
655
|
-
setup(
|
|
656
|
-
const t = e, n =
|
|
651
|
+
setup(l, { emit: e }) {
|
|
652
|
+
const t = e, n = l;
|
|
657
653
|
function a(c) {
|
|
658
654
|
t("update:modelValue", c);
|
|
659
655
|
}
|
|
660
|
-
const
|
|
661
|
-
return
|
|
656
|
+
const s = x(n.modelValue);
|
|
657
|
+
return $e(s, (c) => {
|
|
662
658
|
a(c);
|
|
663
|
-
}), (c,
|
|
664
|
-
modelValue:
|
|
665
|
-
"onUpdate:modelValue":
|
|
659
|
+
}), (c, m) => (p(), D(ct, {
|
|
660
|
+
modelValue: s.value,
|
|
661
|
+
"onUpdate:modelValue": m[0] || (m[0] = (d) => s.value = d),
|
|
666
662
|
type: "time",
|
|
667
663
|
label: c.label,
|
|
668
664
|
id: c.id,
|
|
@@ -675,7 +671,7 @@ const Eo = /* @__PURE__ */ q({
|
|
|
675
671
|
readonly: c.readonly
|
|
676
672
|
}, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
|
|
677
673
|
}
|
|
678
|
-
}),
|
|
674
|
+
}), Go = { style: { display: "flex", "align-items": "baseline" } }, qo = /* @__PURE__ */ W({
|
|
679
675
|
__name: "CountryField",
|
|
680
676
|
props: {
|
|
681
677
|
modelValue: {},
|
|
@@ -686,43 +682,43 @@ const Eo = /* @__PURE__ */ q({
|
|
|
686
682
|
placeholder: {}
|
|
687
683
|
},
|
|
688
684
|
emits: ["update:modelValue"],
|
|
689
|
-
setup(
|
|
690
|
-
const { t } =
|
|
691
|
-
function
|
|
692
|
-
n("update:modelValue",
|
|
685
|
+
setup(l, { emit: e }) {
|
|
686
|
+
const { t } = X(), n = e, a = l;
|
|
687
|
+
function s(m) {
|
|
688
|
+
n("update:modelValue", m);
|
|
693
689
|
}
|
|
694
|
-
const c =
|
|
690
|
+
const c = O({
|
|
695
691
|
get: () => a.modelValue,
|
|
696
|
-
set: (
|
|
692
|
+
set: (m) => s(m)
|
|
697
693
|
});
|
|
698
|
-
return (
|
|
694
|
+
return (m, d) => (p(), D(Pe, {
|
|
699
695
|
modelValue: c.value,
|
|
700
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
701
|
-
label:
|
|
702
|
-
placeholder:
|
|
696
|
+
"onUpdate:modelValue": d[0] || (d[0] = (r) => c.value = r),
|
|
697
|
+
label: m.label,
|
|
698
|
+
placeholder: o(t)("booking.reservation.countryPlaceholder"),
|
|
703
699
|
labelKey: "name",
|
|
704
700
|
valueKey: "id",
|
|
705
|
-
options:
|
|
706
|
-
required:
|
|
701
|
+
options: m.options,
|
|
702
|
+
required: m.required
|
|
707
703
|
}, {
|
|
708
|
-
option:
|
|
709
|
-
|
|
710
|
-
class:
|
|
704
|
+
option: V(({ data: r }) => [
|
|
705
|
+
i("i", {
|
|
706
|
+
class: Te(["konnectio-flag-icon", r.iso])
|
|
711
707
|
}, null, 2),
|
|
712
|
-
|
|
708
|
+
i("span", null, y(r.name), 1)
|
|
713
709
|
]),
|
|
714
|
-
"selected-option":
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
class:
|
|
710
|
+
"selected-option": V(({ data: r }) => [
|
|
711
|
+
i("div", Go, [
|
|
712
|
+
i("i", {
|
|
713
|
+
class: Te(["konnectio-flag-icon", r.iso])
|
|
718
714
|
}, null, 2),
|
|
719
|
-
|
|
715
|
+
i("span", null, y(r.name), 1)
|
|
720
716
|
])
|
|
721
717
|
]),
|
|
722
718
|
_: 1
|
|
723
719
|
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
724
720
|
}
|
|
725
|
-
}),
|
|
721
|
+
}), Wo = /* @__PURE__ */ ee(qo, [["__scopeId", "data-v-1462612d"]]), Ko = { class: "konnectio-radio-checkboxes" }, zo = /* @__PURE__ */ W({
|
|
726
722
|
__name: "CheckboxField",
|
|
727
723
|
props: {
|
|
728
724
|
modelValue: {},
|
|
@@ -731,29 +727,29 @@ const Eo = /* @__PURE__ */ q({
|
|
|
731
727
|
checkboxes: {}
|
|
732
728
|
},
|
|
733
729
|
emits: ["update:modelValue"],
|
|
734
|
-
setup(
|
|
735
|
-
const t = e, n =
|
|
730
|
+
setup(l, { emit: e }) {
|
|
731
|
+
const t = e, n = l;
|
|
736
732
|
function a(c) {
|
|
737
733
|
t("update:modelValue", c);
|
|
738
734
|
}
|
|
739
|
-
const
|
|
735
|
+
const s = O({
|
|
740
736
|
get: () => n.modelValue,
|
|
741
737
|
set: (c) => a(c)
|
|
742
738
|
});
|
|
743
|
-
return (c,
|
|
739
|
+
return (c, m) => (p(), D(dt, {
|
|
744
740
|
label: c.label,
|
|
745
741
|
type: "multi-radio"
|
|
746
742
|
}, {
|
|
747
|
-
default:
|
|
748
|
-
|
|
749
|
-
(
|
|
750
|
-
v(
|
|
751
|
-
modelValue:
|
|
752
|
-
"onUpdate:modelValue":
|
|
743
|
+
default: V(() => [
|
|
744
|
+
i("ul", Ko, [
|
|
745
|
+
(p(!0), h(M, null, F(c.checkboxes, ({ label: d, value: r }, u) => (p(), h("li", { key: u }, [
|
|
746
|
+
v(Ce, {
|
|
747
|
+
modelValue: s.value,
|
|
748
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => s.value = f),
|
|
753
749
|
label: d,
|
|
754
750
|
name: c.name,
|
|
755
751
|
type: "radio",
|
|
756
|
-
val:
|
|
752
|
+
val: r
|
|
757
753
|
}, null, 8, ["modelValue", "label", "name", "val"])
|
|
758
754
|
]))), 128))
|
|
759
755
|
])
|
|
@@ -761,7 +757,7 @@ const Eo = /* @__PURE__ */ q({
|
|
|
761
757
|
_: 1
|
|
762
758
|
}, 8, ["label"]));
|
|
763
759
|
}
|
|
764
|
-
}),
|
|
760
|
+
}), xo = /* @__PURE__ */ ee(zo, [["__scopeId", "data-v-7185c7da"]]), Jo = /* @__PURE__ */ W({
|
|
765
761
|
__name: "NameField",
|
|
766
762
|
props: {
|
|
767
763
|
modelValue: {},
|
|
@@ -782,198 +778,198 @@ const Eo = /* @__PURE__ */ q({
|
|
|
782
778
|
excludeTitle: { type: Boolean, default: !1 }
|
|
783
779
|
},
|
|
784
780
|
emits: ["update:modelValue", "update:title"],
|
|
785
|
-
setup(
|
|
786
|
-
const t =
|
|
787
|
-
function
|
|
788
|
-
n("update:modelValue",
|
|
781
|
+
setup(l, { emit: e }) {
|
|
782
|
+
const t = l, n = e, a = t.id || Ye(), s = x(""), c = x(2);
|
|
783
|
+
function m() {
|
|
784
|
+
n("update:modelValue", s.value);
|
|
789
785
|
}
|
|
790
|
-
|
|
791
|
-
n("update:title",
|
|
786
|
+
$e(c, (r) => {
|
|
787
|
+
n("update:title", r);
|
|
792
788
|
});
|
|
793
|
-
const { t: d } =
|
|
794
|
-
return
|
|
795
|
-
t.modelValue && (
|
|
796
|
-
}), (
|
|
797
|
-
label:
|
|
798
|
-
id:
|
|
799
|
-
required:
|
|
789
|
+
const { t: d } = X();
|
|
790
|
+
return He(() => {
|
|
791
|
+
t.modelValue && (s.value = t.modelValue), t.title && (c.value = t.title);
|
|
792
|
+
}), (r, u) => (p(), D(dt, {
|
|
793
|
+
label: r.label,
|
|
794
|
+
id: o(a),
|
|
795
|
+
required: r.required,
|
|
800
796
|
type: "fresh-booking-name-field",
|
|
801
|
-
readonly:
|
|
802
|
-
limit:
|
|
797
|
+
readonly: r.readonly,
|
|
798
|
+
limit: r.limit
|
|
803
799
|
}, {
|
|
804
|
-
default:
|
|
805
|
-
|
|
806
|
-
class:
|
|
800
|
+
default: V(() => [
|
|
801
|
+
i("div", {
|
|
802
|
+
class: Te([
|
|
807
803
|
"fresh-booking-name-input",
|
|
808
|
-
{ "no-title":
|
|
804
|
+
{ "no-title": r.excludeTitle }
|
|
809
805
|
])
|
|
810
806
|
}, [
|
|
811
|
-
|
|
807
|
+
r.excludeTitle ? _("", !0) : (p(), D(Pe, {
|
|
812
808
|
key: 0,
|
|
813
809
|
modelValue: c.value,
|
|
814
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
815
|
-
id:
|
|
816
|
-
icon:
|
|
817
|
-
"icon-color":
|
|
818
|
-
"icon-type":
|
|
810
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => c.value = f),
|
|
811
|
+
id: o(Ye)(),
|
|
812
|
+
icon: r.icon,
|
|
813
|
+
"icon-color": r.iconColor,
|
|
814
|
+
"icon-type": r.iconType,
|
|
819
815
|
options: [
|
|
820
816
|
{
|
|
821
|
-
label:
|
|
817
|
+
label: o(d)("booking.reservation.noNameTitle"),
|
|
822
818
|
value: 1
|
|
823
819
|
},
|
|
824
820
|
{
|
|
825
|
-
label:
|
|
821
|
+
label: o(d)("booking.reservation.nameTitleMr"),
|
|
826
822
|
value: 2
|
|
827
823
|
},
|
|
828
824
|
{
|
|
829
|
-
label:
|
|
825
|
+
label: o(d)("booking.reservation.nameTitleMs"),
|
|
830
826
|
value: 3
|
|
831
827
|
},
|
|
832
828
|
{
|
|
833
|
-
label:
|
|
829
|
+
label: o(d)("booking.reservation.nameTitleMrs"),
|
|
834
830
|
value: 4
|
|
835
831
|
},
|
|
836
832
|
{
|
|
837
|
-
label:
|
|
833
|
+
label: o(d)("booking.reservation.nameTitleDr"),
|
|
838
834
|
value: 5
|
|
839
835
|
}
|
|
840
836
|
],
|
|
841
|
-
readonly:
|
|
837
|
+
readonly: r.readonly,
|
|
842
838
|
"hide-button": "",
|
|
843
|
-
"input-style":
|
|
839
|
+
"input-style": r.inputStyle,
|
|
844
840
|
searchable: !1
|
|
845
841
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
|
|
846
842
|
v(ne, {
|
|
847
|
-
modelValue:
|
|
848
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
843
|
+
modelValue: s.value,
|
|
844
|
+
"onUpdate:modelValue": u[1] || (u[1] = (f) => s.value = f),
|
|
849
845
|
type: "text",
|
|
850
846
|
name: "name",
|
|
851
847
|
autocomplete: "name",
|
|
852
|
-
id:
|
|
853
|
-
icon:
|
|
854
|
-
"icon-color":
|
|
855
|
-
"icon-type":
|
|
856
|
-
placeholder:
|
|
857
|
-
required:
|
|
858
|
-
readonly:
|
|
859
|
-
limit:
|
|
860
|
-
onInput: u[2] || (u[2] = (
|
|
861
|
-
"input-style":
|
|
848
|
+
id: o(a),
|
|
849
|
+
icon: r.excludeTitle ? r.icon : void 0,
|
|
850
|
+
"icon-color": r.iconColor,
|
|
851
|
+
"icon-type": r.iconType,
|
|
852
|
+
placeholder: r.placeholder,
|
|
853
|
+
required: r.required,
|
|
854
|
+
readonly: r.readonly,
|
|
855
|
+
limit: r.limit,
|
|
856
|
+
onInput: u[2] || (u[2] = (f) => m()),
|
|
857
|
+
"input-style": r.inputStyle
|
|
862
858
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
|
|
863
859
|
], 2)
|
|
864
860
|
]),
|
|
865
861
|
_: 1
|
|
866
862
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
867
863
|
}
|
|
868
|
-
}),
|
|
864
|
+
}), Yo = /* @__PURE__ */ ee(Jo, [["__scopeId", "data-v-78b0b319"]]), Zo = { class: "hotel-skeleton" }, Qo = { class: "hotel-skeleton-content" }, Xo = { class: "hotel-skeleton-sidebar" }, el = /* @__PURE__ */ W({
|
|
869
865
|
__name: "HotelSkeleton",
|
|
870
|
-
setup(
|
|
871
|
-
return (e, t) => (
|
|
872
|
-
|
|
873
|
-
v(
|
|
874
|
-
v(
|
|
866
|
+
setup(l) {
|
|
867
|
+
return (e, t) => (p(), h("div", Zo, [
|
|
868
|
+
i("div", Qo, [
|
|
869
|
+
v(no, { hotel: "" }),
|
|
870
|
+
v(Qt)
|
|
875
871
|
]),
|
|
876
|
-
|
|
877
|
-
v(
|
|
872
|
+
i("div", Xo, [
|
|
873
|
+
v(Xt)
|
|
878
874
|
])
|
|
879
875
|
]));
|
|
880
876
|
}
|
|
881
|
-
}),
|
|
882
|
-
const
|
|
877
|
+
}), tl = /* @__PURE__ */ ee(el, [["__scopeId", "data-v-1bb21da4"]]), ol = (l) => (lt("data-v-1c671658"), l = l(), nt(), l), ll = { id: "booking-availability-container" }, nl = { id: "booking-availability-controls" };
|
|
878
|
+
const al = { key: 1 }, il = { key: 0 }, sl = {
|
|
883
879
|
key: 0,
|
|
884
880
|
id: "booking-availability-packages"
|
|
885
|
-
},
|
|
881
|
+
}, rl = {
|
|
886
882
|
key: 0,
|
|
887
883
|
class: "konnectio-hotel-availability-title"
|
|
888
|
-
},
|
|
884
|
+
}, ul = { id: "booking-availability-packages-wrapper" }, dl = { key: 1 }, cl = {
|
|
889
885
|
key: 0,
|
|
890
886
|
class: "konnectio-hotel-availability-title"
|
|
891
|
-
},
|
|
887
|
+
}, pl = { id: "booking-availability-listings" }, ml = {
|
|
892
888
|
key: 2,
|
|
893
889
|
id: "booking-availability-packages"
|
|
894
|
-
},
|
|
890
|
+
}, fl = {
|
|
895
891
|
key: 0,
|
|
896
892
|
class: "konnectio-hotel-availability-title"
|
|
897
|
-
},
|
|
893
|
+
}, hl = { id: "booking-availability-packages-wrapper" }, vl = {
|
|
898
894
|
key: 3,
|
|
899
895
|
id: "booking-availability-no-listings",
|
|
900
896
|
class: "fresh-booking-panel"
|
|
901
|
-
},
|
|
897
|
+
}, gl = {
|
|
902
898
|
key: 1,
|
|
903
899
|
id: "booking-availability-no-listings"
|
|
904
|
-
},
|
|
900
|
+
}, yl = {
|
|
905
901
|
key: 2,
|
|
906
902
|
id: "reservation-availability-next-dates"
|
|
907
|
-
},
|
|
908
|
-
const
|
|
903
|
+
}, bl = { class: "konnectio-hotel-availability-title" }, kl = { class: "reservation-special-offers-grid" }, _l = ["title"];
|
|
904
|
+
const Vl = {
|
|
909
905
|
key: 2,
|
|
910
906
|
class: "konnectio-listing-loading"
|
|
911
|
-
},
|
|
907
|
+
}, $l = { class: "fresh-booking-panel" }, Tl = {
|
|
912
908
|
key: 0,
|
|
913
909
|
id: "konnectio-hotel-addons"
|
|
914
910
|
};
|
|
915
|
-
const
|
|
911
|
+
const Cl = { class: "fresh-booking-event-addons-price" }, wl = { key: 1 }, Pl = /* @__PURE__ */ ol(() => /* @__PURE__ */ i("br", null, null, -1)), Hl = ["onClick"], Sl = { class: "fresh-booking-panel" }, Dl = { key: 0 }, Al = { key: 1 }, Il = { class: "fresh-booking-split-inputs" }, El = ["onClick"], Bl = /* @__PURE__ */ W({
|
|
916
912
|
name: "HotelLayout",
|
|
917
913
|
__name: "Hotel",
|
|
918
914
|
props: {
|
|
919
915
|
accessToken: {},
|
|
920
|
-
headerLayout: { default:
|
|
916
|
+
headerLayout: { default: Ft.Minimal },
|
|
921
917
|
onlyShow: { default: "everything" },
|
|
922
918
|
styling: {}
|
|
923
919
|
},
|
|
924
|
-
setup(
|
|
925
|
-
const { t: e } =
|
|
920
|
+
setup(l) {
|
|
921
|
+
const { t: e } = X(), {
|
|
926
922
|
templateID: t,
|
|
927
923
|
countries: n,
|
|
928
924
|
areListingsLoading: a,
|
|
929
|
-
isPaymentLoading:
|
|
925
|
+
isPaymentLoading: s,
|
|
930
926
|
isReservationFormFilled: c,
|
|
931
|
-
travelingFor:
|
|
927
|
+
travelingFor: m,
|
|
932
928
|
arrivalTime: d,
|
|
933
|
-
departureTime:
|
|
929
|
+
departureTime: r,
|
|
934
930
|
name: u,
|
|
935
|
-
nameTitle:
|
|
936
|
-
email:
|
|
937
|
-
phone:
|
|
938
|
-
firmName:
|
|
939
|
-
postal:
|
|
940
|
-
city:
|
|
941
|
-
address:
|
|
942
|
-
country:
|
|
943
|
-
remark:
|
|
944
|
-
allergies:
|
|
945
|
-
roomSelect:
|
|
946
|
-
roomDisplay:
|
|
931
|
+
nameTitle: f,
|
|
932
|
+
email: k,
|
|
933
|
+
phone: P,
|
|
934
|
+
firmName: $,
|
|
935
|
+
postal: I,
|
|
936
|
+
city: E,
|
|
937
|
+
address: b,
|
|
938
|
+
country: T,
|
|
939
|
+
remark: H,
|
|
940
|
+
allergies: N,
|
|
941
|
+
roomSelect: B,
|
|
942
|
+
roomDisplay: J,
|
|
947
943
|
hasValidRoomSelection: j,
|
|
948
|
-
availabilityData:
|
|
949
|
-
selectionHasNoAddons:
|
|
950
|
-
} =
|
|
951
|
-
arrivalDate:
|
|
952
|
-
departureDate:
|
|
953
|
-
} =
|
|
954
|
-
currency:
|
|
955
|
-
arrivalEarliest:
|
|
956
|
-
arrivalLatest:
|
|
957
|
-
departureEarliest:
|
|
958
|
-
departureLatest:
|
|
959
|
-
enableTracking:
|
|
960
|
-
arrivalDefault:
|
|
961
|
-
departureDefault:
|
|
962
|
-
hideArrivalDepartureInputs:
|
|
963
|
-
disableArrivalUserSelection:
|
|
964
|
-
disableNamePrefix:
|
|
965
|
-
disableDepartureUserSelection:
|
|
944
|
+
availabilityData: A,
|
|
945
|
+
selectionHasNoAddons: Y
|
|
946
|
+
} = z(re()), {
|
|
947
|
+
arrivalDate: De,
|
|
948
|
+
departureDate: de
|
|
949
|
+
} = z(ut()), {
|
|
950
|
+
currency: ce,
|
|
951
|
+
arrivalEarliest: Z,
|
|
952
|
+
arrivalLatest: G,
|
|
953
|
+
departureEarliest: L,
|
|
954
|
+
departureLatest: pe,
|
|
955
|
+
enableTracking: Ae,
|
|
956
|
+
arrivalDefault: ye,
|
|
957
|
+
departureDefault: Ie,
|
|
958
|
+
hideArrivalDepartureInputs: te,
|
|
959
|
+
disableArrivalUserSelection: me,
|
|
960
|
+
disableNamePrefix: Ke,
|
|
961
|
+
disableDepartureUserSelection: Ee,
|
|
966
962
|
disableTravelingFor: gt,
|
|
967
963
|
disableTravelingForBleasure: yt,
|
|
968
964
|
disableCompanyField: bt,
|
|
969
965
|
hasPaymentGateway: kt
|
|
970
|
-
} =
|
|
966
|
+
} = z(ge()), { beginCheckout: _t } = at(), {
|
|
971
967
|
initialize: Vt,
|
|
972
968
|
resetTemplate: $t,
|
|
973
969
|
resetDiscountVoucher: Tt,
|
|
974
970
|
createReservation: Ct
|
|
975
|
-
} = re(), wt =
|
|
976
|
-
const
|
|
971
|
+
} = re(), wt = x(!0), Pt = O(() => {
|
|
972
|
+
const w = [
|
|
977
973
|
{
|
|
978
974
|
label: e("booking.reservation.business"),
|
|
979
975
|
value: "Business"
|
|
@@ -983,182 +979,182 @@ const Pl = { class: "fresh-booking-event-addons-price" }, Hl = { key: 1 }, Sl =
|
|
|
983
979
|
value: "Pleasure"
|
|
984
980
|
}
|
|
985
981
|
];
|
|
986
|
-
return yt.value ||
|
|
982
|
+
return yt.value || w.push({
|
|
987
983
|
label: e("booking.reservation.bleasure"),
|
|
988
984
|
value: "Bleasure"
|
|
989
|
-
}),
|
|
990
|
-
}), Ht =
|
|
991
|
-
const
|
|
992
|
-
function
|
|
993
|
-
return wt.value === !0 ?
|
|
985
|
+
}), w;
|
|
986
|
+
}), Ht = O(() => {
|
|
987
|
+
const w = A.value.roomGroups.slice();
|
|
988
|
+
function C(K, S) {
|
|
989
|
+
return wt.value === !0 ? K.pricesFrom > S.pricesFrom ? -1 : 1 : K.pricesFrom > S.pricesFrom ? 1 : -1;
|
|
994
990
|
}
|
|
995
|
-
return
|
|
996
|
-
}), St =
|
|
997
|
-
parseInt(
|
|
998
|
-
parseInt(
|
|
999
|
-
]]), Dt =
|
|
1000
|
-
parseInt(
|
|
1001
|
-
parseInt(
|
|
991
|
+
return w.sort(C);
|
|
992
|
+
}), St = O(() => [[
|
|
993
|
+
parseInt(Z.value.split(":")[0]),
|
|
994
|
+
parseInt(G.value.split(":")[0])
|
|
995
|
+
]]), Dt = O(() => [[
|
|
996
|
+
parseInt(L.value.split(":")[0]),
|
|
997
|
+
parseInt(pe.value.split(":")[0])
|
|
1002
998
|
]]);
|
|
1003
|
-
function
|
|
1004
|
-
|
|
999
|
+
function ze(w) {
|
|
1000
|
+
Y.value ? w(2) : w(), Tt();
|
|
1005
1001
|
}
|
|
1006
|
-
function At(
|
|
1007
|
-
|
|
1002
|
+
function At(w, C) {
|
|
1003
|
+
de.value = new Date(C), De.value = new Date(w), location.reload();
|
|
1008
1004
|
}
|
|
1009
|
-
async function It(
|
|
1010
|
-
await Ct(
|
|
1005
|
+
async function It(w) {
|
|
1006
|
+
await Ct(w);
|
|
1011
1007
|
}
|
|
1012
|
-
function Et(
|
|
1013
|
-
|
|
1008
|
+
function Et(w) {
|
|
1009
|
+
Ae.value && _t(), Y.value ? w(2) : w();
|
|
1014
1010
|
}
|
|
1015
1011
|
function Bt() {
|
|
1016
|
-
d.value === "" && (d.value =
|
|
1012
|
+
d.value === "" && (d.value = ye.value), r.value === "" && (r.value = Ie.value);
|
|
1017
1013
|
}
|
|
1018
|
-
return
|
|
1014
|
+
return He(() => {
|
|
1019
1015
|
Vt(), Bt();
|
|
1020
|
-
}), (
|
|
1021
|
-
default:
|
|
1022
|
-
(
|
|
1023
|
-
default:
|
|
1024
|
-
v(
|
|
1016
|
+
}), (w, C) => (p(), D(Ot, { styling: w.styling }, {
|
|
1017
|
+
default: V(() => [
|
|
1018
|
+
(p(), D(Nt, null, {
|
|
1019
|
+
default: V(() => [
|
|
1020
|
+
v(Gt, {
|
|
1025
1021
|
id: "fresh-booking-hotel-module",
|
|
1026
|
-
"access-token":
|
|
1022
|
+
"access-token": w.accessToken,
|
|
1027
1023
|
type: "hotel"
|
|
1028
1024
|
}, {
|
|
1029
|
-
default:
|
|
1030
|
-
v(
|
|
1031
|
-
layout:
|
|
1032
|
-
onReset:
|
|
1025
|
+
default: V(() => [
|
|
1026
|
+
v(eo, {
|
|
1027
|
+
layout: w.headerLayout,
|
|
1028
|
+
onReset: o($t)
|
|
1033
1029
|
}, {
|
|
1034
|
-
availability:
|
|
1030
|
+
availability: V(({ next: K }) => [
|
|
1035
1031
|
v(Ue, null, {
|
|
1036
|
-
form:
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
v(
|
|
1032
|
+
form: V(() => [
|
|
1033
|
+
i("div", ll, [
|
|
1034
|
+
i("div", nl, [
|
|
1035
|
+
v(ao, { booking: !0 })
|
|
1040
1036
|
]),
|
|
1041
|
-
|
|
1042
|
-
|
|
1037
|
+
_("", !0),
|
|
1038
|
+
o(a) ? (p(), h("div", Vl, [
|
|
1043
1039
|
v(Re),
|
|
1044
1040
|
v(Re),
|
|
1045
1041
|
v(Re)
|
|
1046
|
-
])) : (
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
v(
|
|
1042
|
+
])) : (p(), h("div", al, [
|
|
1043
|
+
o(A).roomGroups.length > 0 || o(A).templates.length > 0 || o(A).specialTemplates.length > 0 ? (p(), h("div", il, [
|
|
1044
|
+
o(A).templates.length > 0 && w.onlyShow !== "rooms" ? (p(), h("div", sl, [
|
|
1045
|
+
w.onlyShow !== "packages" ? (p(), h("h2", rl, [
|
|
1046
|
+
v(q, {
|
|
1051
1047
|
icon: "box",
|
|
1052
1048
|
type: "fal",
|
|
1053
1049
|
color: "header"
|
|
1054
1050
|
}),
|
|
1055
|
-
|
|
1056
|
-
])) :
|
|
1057
|
-
|
|
1058
|
-
(
|
|
1059
|
-
id:
|
|
1051
|
+
i("span", null, y(o(e)("booking.availability.packagesTitle")), 1)
|
|
1052
|
+
])) : _("", !0),
|
|
1053
|
+
i("ul", ul, [
|
|
1054
|
+
(p(!0), h(M, null, F(o(A).templates, ({
|
|
1055
|
+
id: S,
|
|
1060
1056
|
name: g,
|
|
1061
1057
|
templateRoomGroups: oe,
|
|
1062
|
-
image:
|
|
1063
|
-
description:
|
|
1064
|
-
weekendFee:
|
|
1065
|
-
}) => (
|
|
1066
|
-
key:
|
|
1067
|
-
id:
|
|
1068
|
-
description:
|
|
1058
|
+
image: Q,
|
|
1059
|
+
description: R,
|
|
1060
|
+
weekendFee: fe
|
|
1061
|
+
}) => (p(), D(Uo, {
|
|
1062
|
+
key: S,
|
|
1063
|
+
id: S,
|
|
1064
|
+
description: R,
|
|
1069
1065
|
name: g,
|
|
1070
|
-
image:
|
|
1071
|
-
weekendFee:
|
|
1066
|
+
image: Q,
|
|
1067
|
+
weekendFee: fe,
|
|
1072
1068
|
"room-groups": oe,
|
|
1073
|
-
callback:
|
|
1069
|
+
callback: K
|
|
1074
1070
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1075
1071
|
])
|
|
1076
|
-
])) :
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
v(
|
|
1072
|
+
])) : _("", !0),
|
|
1073
|
+
o(A).roomGroups.length > 0 && w.onlyShow !== "packages" ? (p(), h("div", dl, [
|
|
1074
|
+
o(A).templates.length > 0 && w.onlyShow !== "rooms" ? (p(), h("h2", cl, [
|
|
1075
|
+
v(q, {
|
|
1080
1076
|
icon: "house",
|
|
1081
1077
|
type: "fal",
|
|
1082
1078
|
color: "header"
|
|
1083
1079
|
}),
|
|
1084
|
-
|
|
1085
|
-
])) :
|
|
1086
|
-
|
|
1087
|
-
(
|
|
1088
|
-
room:
|
|
1080
|
+
i("span", null, y(o(e)("booking.availability.roomsTitle")), 1)
|
|
1081
|
+
])) : _("", !0),
|
|
1082
|
+
i("ul", pl, [
|
|
1083
|
+
(p(!0), h(M, null, F(Ht.value, (S, g) => (p(), D(Io, {
|
|
1084
|
+
room: S,
|
|
1089
1085
|
key: g
|
|
1090
1086
|
}, null, 8, ["room"]))), 128))
|
|
1091
1087
|
])
|
|
1092
|
-
])) :
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
v(
|
|
1088
|
+
])) : _("", !0),
|
|
1089
|
+
o(A).specialTemplates.length > 0 && w.onlyShow !== "rooms" ? (p(), h("div", ml, [
|
|
1090
|
+
w.onlyShow !== "packages" ? (p(), h("h2", fl, [
|
|
1091
|
+
v(q, {
|
|
1096
1092
|
icon: "sparkles",
|
|
1097
1093
|
type: "fal",
|
|
1098
1094
|
color: "header"
|
|
1099
1095
|
}),
|
|
1100
|
-
|
|
1101
|
-
])) :
|
|
1102
|
-
|
|
1103
|
-
(
|
|
1104
|
-
id:
|
|
1096
|
+
i("span", null, y(o(e)("hotel.specialOffers")), 1)
|
|
1097
|
+
])) : _("", !0),
|
|
1098
|
+
i("ul", hl, [
|
|
1099
|
+
(p(!0), h(M, null, F(o(A).specialTemplates, ({
|
|
1100
|
+
id: S,
|
|
1105
1101
|
name: g,
|
|
1106
1102
|
templateRoomGroups: oe,
|
|
1107
|
-
image:
|
|
1108
|
-
description:
|
|
1109
|
-
weekendFee:
|
|
1110
|
-
fromDate:
|
|
1111
|
-
toDate:
|
|
1112
|
-
}) => (
|
|
1113
|
-
key:
|
|
1114
|
-
id:
|
|
1115
|
-
description:
|
|
1103
|
+
image: Q,
|
|
1104
|
+
description: R,
|
|
1105
|
+
weekendFee: fe,
|
|
1106
|
+
fromDate: he,
|
|
1107
|
+
toDate: Be
|
|
1108
|
+
}) => (p(), D(jo, {
|
|
1109
|
+
key: S,
|
|
1110
|
+
id: S,
|
|
1111
|
+
description: R,
|
|
1116
1112
|
name: g,
|
|
1117
|
-
image:
|
|
1118
|
-
fromDate:
|
|
1119
|
-
toDate:
|
|
1120
|
-
weekendFee:
|
|
1113
|
+
image: Q,
|
|
1114
|
+
fromDate: he,
|
|
1115
|
+
toDate: Be,
|
|
1116
|
+
weekendFee: fe,
|
|
1121
1117
|
"room-groups": oe,
|
|
1122
|
-
callback:
|
|
1118
|
+
callback: K
|
|
1123
1119
|
}, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1124
1120
|
])
|
|
1125
|
-
])) :
|
|
1126
|
-
(
|
|
1127
|
-
|
|
1128
|
-
])) :
|
|
1129
|
-
])) :
|
|
1130
|
-
|
|
1131
|
-
])) : (
|
|
1132
|
-
|
|
1133
|
-
v(
|
|
1121
|
+
])) : _("", !0),
|
|
1122
|
+
(o(A).templates.length === 0 && w.onlyShow !== "rooms" || o(A).roomGroups.length === 0 && w.onlyShow !== "packages") && (w.onlyShow === "rooms" || w.onlyShow === "packages") ? (p(), h("div", vl, [
|
|
1123
|
+
i("span", null, y(o(e)("booking.availability.nothingAvailable")), 1)
|
|
1124
|
+
])) : _("", !0)
|
|
1125
|
+
])) : o(A).nextAvailableDates.length === 0 ? (p(), h("div", gl, [
|
|
1126
|
+
i("span", null, y(o(e)("booking.availability.nothingAvailable")), 1)
|
|
1127
|
+
])) : (p(), h("div", yl, [
|
|
1128
|
+
i("h2", bl, [
|
|
1129
|
+
v(q, {
|
|
1134
1130
|
icon: "calendar-circle-exclamation",
|
|
1135
1131
|
type: "fal",
|
|
1136
1132
|
color: "header"
|
|
1137
1133
|
}),
|
|
1138
|
-
|
|
1134
|
+
i("span", null, y(o(e)("booking.availability.nextAvailableDates")), 1)
|
|
1139
1135
|
]),
|
|
1140
|
-
|
|
1141
|
-
(
|
|
1142
|
-
|
|
1143
|
-
title: `${
|
|
1136
|
+
i("ul", kl, [
|
|
1137
|
+
(p(!0), h(M, null, F(o(A).nextAvailableDates, (S, g) => (p(), h("li", { key: g }, [
|
|
1138
|
+
i("h3", {
|
|
1139
|
+
title: `${o(ae)(S.fromDate)} - ${o(ae)(S.toDate)}`
|
|
1144
1140
|
}, [
|
|
1145
|
-
|
|
1146
|
-
], 8,
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
v(
|
|
1141
|
+
i("span", null, y(`${o(ae)(S.fromDate)} - ${o(ae)(S.toDate)}`), 1)
|
|
1142
|
+
], 8, _l),
|
|
1143
|
+
i("ul", null, [
|
|
1144
|
+
_("", !0),
|
|
1145
|
+
i("li", null, [
|
|
1146
|
+
v(q, {
|
|
1151
1147
|
icon: "money-bill",
|
|
1152
1148
|
type: "fal",
|
|
1153
1149
|
color: "header"
|
|
1154
1150
|
}),
|
|
1155
|
-
|
|
1151
|
+
i("span", null, y(o(e)("booking.availability.pricesFrom")) + ": " + y(o(ie)(S.priceStartFrom, o(ce))), 1)
|
|
1156
1152
|
])
|
|
1157
1153
|
]),
|
|
1158
1154
|
v(se, {
|
|
1159
|
-
label:
|
|
1155
|
+
label: o(e)("booking.availability.selectDates"),
|
|
1160
1156
|
"full-width": "",
|
|
1161
|
-
onClickEvent: (oe) => At(
|
|
1157
|
+
onClickEvent: (oe) => At(S.fromDate, S.toDate)
|
|
1162
1158
|
}, null, 8, ["label", "onClickEvent"])
|
|
1163
1159
|
]))), 128))
|
|
1164
1160
|
])
|
|
@@ -1166,295 +1162,295 @@ const Pl = { class: "fresh-booking-event-addons-price" }, Hl = { key: 1 }, Sl =
|
|
|
1166
1162
|
]))
|
|
1167
1163
|
])
|
|
1168
1164
|
]),
|
|
1169
|
-
navigation:
|
|
1165
|
+
navigation: V(() => [
|
|
1170
1166
|
v(se, {
|
|
1171
|
-
label:
|
|
1172
|
-
disabled: !
|
|
1167
|
+
label: o(Y) ? o(e)("booking.availability.nextButton") : o(e)("general.chooseAddons"),
|
|
1168
|
+
disabled: !o(j),
|
|
1173
1169
|
"is-loading": !1,
|
|
1174
1170
|
"full-width": "",
|
|
1175
|
-
onClickEvent: (
|
|
1171
|
+
onClickEvent: (S) => Et(K)
|
|
1176
1172
|
}, null, 8, ["label", "disabled", "onClickEvent"])
|
|
1177
1173
|
]),
|
|
1178
1174
|
_: 2
|
|
1179
1175
|
}, 1024)
|
|
1180
1176
|
]),
|
|
1181
|
-
addons:
|
|
1177
|
+
addons: V(({ next: K, prev: S }) => [
|
|
1182
1178
|
v(Ue, null, {
|
|
1183
|
-
form:
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1179
|
+
form: V(() => [
|
|
1180
|
+
i("form", $l, [
|
|
1181
|
+
i("h2", null, [
|
|
1182
|
+
i("span", null, y(o(e)("booking.reservation.addons")), 1)
|
|
1187
1183
|
]),
|
|
1188
|
-
|
|
1189
|
-
isNaN(
|
|
1190
|
-
(
|
|
1184
|
+
i("div", null, [
|
|
1185
|
+
isNaN(o(t)) ? (p(), h("div", Tl, [
|
|
1186
|
+
(p(!0), h(M, null, F(o(J), (g) => (p(), h("ul", {
|
|
1191
1187
|
key: g.roomGroupID
|
|
1192
1188
|
}, [
|
|
1193
|
-
(
|
|
1189
|
+
(p(!0), h(M, null, F(g.variants, (oe, Q) => (p(), h("li", {
|
|
1194
1190
|
key: oe.ratePlanID
|
|
1195
1191
|
}, [
|
|
1196
|
-
|
|
1197
|
-
|
|
1192
|
+
i("h4", null, [
|
|
1193
|
+
i("span", null, y(o(ue)(g.title)), 1)
|
|
1198
1194
|
]),
|
|
1199
|
-
(
|
|
1200
|
-
key:
|
|
1195
|
+
(p(!0), h(M, null, F(oe.rooms, (R, fe) => (p(), h("table", {
|
|
1196
|
+
key: fe,
|
|
1201
1197
|
class: "fresh-booking-table with-lines"
|
|
1202
1198
|
}, [
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1199
|
+
i("thead", null, [
|
|
1200
|
+
i("tr", null, [
|
|
1201
|
+
i("th", null, [
|
|
1202
|
+
i("span", null, y(o(ue)(oe.name)), 1)
|
|
1207
1203
|
]),
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
v(
|
|
1204
|
+
_("", !0),
|
|
1205
|
+
i("th", Cl, [
|
|
1206
|
+
i("b", null, [
|
|
1207
|
+
v(q, {
|
|
1212
1208
|
icon: "male",
|
|
1213
1209
|
type: "fas",
|
|
1214
1210
|
color: "font"
|
|
1215
1211
|
}),
|
|
1216
|
-
|
|
1217
|
-
|
|
1212
|
+
i("span", null, y(R.adultsCount), 1),
|
|
1213
|
+
R.childrenCount > 0 ? (p(), D(q, {
|
|
1218
1214
|
key: 0,
|
|
1219
1215
|
icon: "child",
|
|
1220
1216
|
type: "fas",
|
|
1221
1217
|
color: "font"
|
|
1222
|
-
})) :
|
|
1223
|
-
|
|
1218
|
+
})) : _("", !0),
|
|
1219
|
+
R.childrenCount > 0 ? (p(), h("span", wl, y(R.childrenCount), 1)) : _("", !0)
|
|
1224
1220
|
])
|
|
1225
1221
|
])
|
|
1226
1222
|
])
|
|
1227
1223
|
]),
|
|
1228
|
-
|
|
1229
|
-
(
|
|
1230
|
-
quantityStrategy:
|
|
1231
|
-
maximumNumber:
|
|
1232
|
-
id:
|
|
1224
|
+
i("tbody", null, [
|
|
1225
|
+
(p(!0), h(M, null, F(g.addons, ({
|
|
1226
|
+
quantityStrategy: he,
|
|
1227
|
+
maximumNumber: Be,
|
|
1228
|
+
id: ve,
|
|
1233
1229
|
name: Mt,
|
|
1234
1230
|
price: Lt
|
|
1235
|
-
}) => (
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1231
|
+
}) => (p(), h("tr", { key: ve }, [
|
|
1232
|
+
i("td", null, [
|
|
1233
|
+
i("b", null, y(o(ue)(Mt)), 1),
|
|
1234
|
+
Pl,
|
|
1235
|
+
i("span", null, y(o(ie)(Lt, o(ce))) + " " + y(o(jt)(he)), 1)
|
|
1240
1236
|
]),
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1237
|
+
i("td", null, [
|
|
1238
|
+
o(B)[g.roomGroupID][Q].config[R.configIdx].addons[R.roomIdx] ? (p(), h(M, { key: 0 }, [
|
|
1239
|
+
he === 1 || he === 12 ? (p(), D(it, {
|
|
1244
1240
|
key: 0,
|
|
1245
|
-
modelValue:
|
|
1246
|
-
"onUpdate:modelValue": (
|
|
1241
|
+
modelValue: o(B)[g.roomGroupID][Q].config[R.configIdx].addons[R.roomIdx][ve],
|
|
1242
|
+
"onUpdate:modelValue": (Me) => o(B)[g.roomGroupID][Q].config[R.configIdx].addons[R.roomIdx][ve] = Me,
|
|
1247
1243
|
small: !0,
|
|
1248
1244
|
"min-value": 0,
|
|
1249
|
-
"max-value":
|
|
1250
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (
|
|
1245
|
+
"max-value": Be || 1 / 0
|
|
1246
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (p(), D(Ce, {
|
|
1251
1247
|
key: 1,
|
|
1252
|
-
modelValue:
|
|
1253
|
-
"onUpdate:modelValue": (
|
|
1248
|
+
modelValue: o(B)[g.roomGroupID][Q].config[R.configIdx].addons[R.roomIdx][ve],
|
|
1249
|
+
"onUpdate:modelValue": (Me) => o(B)[g.roomGroupID][Q].config[R.configIdx].addons[R.roomIdx][ve] = Me,
|
|
1254
1250
|
numeric: !0
|
|
1255
1251
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1256
|
-
], 64)) :
|
|
1252
|
+
], 64)) : _("", !0)
|
|
1257
1253
|
])
|
|
1258
1254
|
]))), 128))
|
|
1259
1255
|
])
|
|
1260
1256
|
]))), 128))
|
|
1261
1257
|
]))), 128))
|
|
1262
1258
|
]))), 128))
|
|
1263
|
-
])) :
|
|
1259
|
+
])) : _("", !0)
|
|
1264
1260
|
])
|
|
1265
1261
|
])
|
|
1266
1262
|
]),
|
|
1267
|
-
navigation:
|
|
1263
|
+
navigation: V(() => [
|
|
1268
1264
|
v(se, {
|
|
1269
|
-
label:
|
|
1265
|
+
label: o(e)("general.startReservation"),
|
|
1270
1266
|
"full-width": "",
|
|
1271
|
-
onClickEvent:
|
|
1267
|
+
onClickEvent: K
|
|
1272
1268
|
}, null, 8, ["label", "onClickEvent"]),
|
|
1273
|
-
|
|
1269
|
+
i("button", {
|
|
1274
1270
|
class: "konnectio-abort-reservation link",
|
|
1275
|
-
onClick:
|
|
1271
|
+
onClick: Ve((g) => ze(S), ["prevent"])
|
|
1276
1272
|
}, [
|
|
1277
|
-
|
|
1278
|
-
], 8,
|
|
1273
|
+
i("span", null, y(o(e)("general.goAStepBack")), 1)
|
|
1274
|
+
], 8, Hl)
|
|
1279
1275
|
]),
|
|
1280
1276
|
_: 2
|
|
1281
1277
|
}, 1024)
|
|
1282
1278
|
]),
|
|
1283
|
-
reservation:
|
|
1279
|
+
reservation: V(({ next: K, prev: S }) => [
|
|
1284
1280
|
v(Ue, {
|
|
1285
1281
|
"show-terms-notice": !0,
|
|
1286
1282
|
"show-gift-card": !0
|
|
1287
1283
|
}, {
|
|
1288
|
-
form:
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1284
|
+
form: V(() => [
|
|
1285
|
+
i("form", Sl, [
|
|
1286
|
+
i("h2", null, [
|
|
1287
|
+
i("span", null, y(o(e)("booking.reservation.detailsTitle")), 1)
|
|
1292
1288
|
]),
|
|
1293
|
-
!
|
|
1289
|
+
!o(te) && !(o(me) && o(Ee)) ? (p(), h("ul", {
|
|
1294
1290
|
key: 0,
|
|
1295
|
-
class:
|
|
1291
|
+
class: Te({ "fresh-booking-split-inputs": !o(me) && !o(Ee) })
|
|
1296
1292
|
}, [
|
|
1297
|
-
|
|
1293
|
+
o(me) ? _("", !0) : (p(), h("li", Dl, [
|
|
1298
1294
|
v(Ze, {
|
|
1299
|
-
modelValue:
|
|
1300
|
-
"onUpdate:modelValue":
|
|
1301
|
-
label:
|
|
1295
|
+
modelValue: o(d),
|
|
1296
|
+
"onUpdate:modelValue": C[1] || (C[1] = (g) => U(d) ? d.value = g : null),
|
|
1297
|
+
label: o(e)("booking.reservation.arrivalTime"),
|
|
1302
1298
|
icon: "hourglass-start",
|
|
1303
1299
|
"hour-range": St.value,
|
|
1304
1300
|
required: ""
|
|
1305
1301
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1306
1302
|
])),
|
|
1307
|
-
|
|
1303
|
+
o(Ee) ? _("", !0) : (p(), h("li", Al, [
|
|
1308
1304
|
v(Ze, {
|
|
1309
|
-
modelValue:
|
|
1310
|
-
"onUpdate:modelValue":
|
|
1311
|
-
label:
|
|
1305
|
+
modelValue: o(r),
|
|
1306
|
+
"onUpdate:modelValue": C[2] || (C[2] = (g) => U(r) ? r.value = g : null),
|
|
1307
|
+
label: o(e)("booking.reservation.departureTime"),
|
|
1312
1308
|
icon: "hourglass-end",
|
|
1313
1309
|
"hour-range": Dt.value,
|
|
1314
1310
|
required: ""
|
|
1315
1311
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1316
1312
|
]))
|
|
1317
|
-
], 2)) :
|
|
1318
|
-
v(
|
|
1319
|
-
modelValue:
|
|
1320
|
-
"onUpdate:modelValue":
|
|
1321
|
-
title:
|
|
1322
|
-
"onUpdate:title":
|
|
1323
|
-
"exclude-title":
|
|
1324
|
-
label:
|
|
1313
|
+
], 2)) : _("", !0),
|
|
1314
|
+
v(Yo, {
|
|
1315
|
+
modelValue: o(u),
|
|
1316
|
+
"onUpdate:modelValue": C[3] || (C[3] = (g) => U(u) ? u.value = g : null),
|
|
1317
|
+
title: o(f),
|
|
1318
|
+
"onUpdate:title": C[4] || (C[4] = (g) => U(f) ? f.value = g : null),
|
|
1319
|
+
"exclude-title": o(Ke),
|
|
1320
|
+
label: o(e)("booking.reservation.name"),
|
|
1325
1321
|
icon: "user-alt",
|
|
1326
|
-
placeholder:
|
|
1322
|
+
placeholder: o(e)("booking.reservation.namePlaceholder"),
|
|
1327
1323
|
required: ""
|
|
1328
1324
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1329
1325
|
v(ne, {
|
|
1330
|
-
modelValue:
|
|
1331
|
-
"onUpdate:modelValue":
|
|
1326
|
+
modelValue: o(k),
|
|
1327
|
+
"onUpdate:modelValue": C[5] || (C[5] = (g) => U(k) ? k.value = g : null),
|
|
1332
1328
|
type: "email",
|
|
1333
1329
|
name: "email",
|
|
1334
1330
|
autocomplete: "email",
|
|
1335
|
-
label:
|
|
1331
|
+
label: o(e)("booking.reservation.email"),
|
|
1336
1332
|
icon: "at",
|
|
1337
|
-
placeholder:
|
|
1333
|
+
placeholder: o(e)("booking.reservation.emailPlaceholder"),
|
|
1338
1334
|
required: ""
|
|
1339
1335
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1340
|
-
|
|
1336
|
+
o(bt) ? _("", !0) : (p(), D(ne, {
|
|
1341
1337
|
key: 1,
|
|
1342
|
-
modelValue:
|
|
1343
|
-
"onUpdate:modelValue":
|
|
1338
|
+
modelValue: o($),
|
|
1339
|
+
"onUpdate:modelValue": C[6] || (C[6] = (g) => U($) ? $.value = g : null),
|
|
1344
1340
|
type: "text",
|
|
1345
1341
|
name: "firm",
|
|
1346
1342
|
autocomplete: "firm",
|
|
1347
|
-
label: `${
|
|
1343
|
+
label: `${o(e)("booking.reservation.companyName")} (${o(e)("booking.reservation.optional")})`,
|
|
1348
1344
|
icon: "id-card",
|
|
1349
|
-
placeholder:
|
|
1345
|
+
placeholder: o(e)("booking.reservation.companyNamePlaceholder")
|
|
1350
1346
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1351
|
-
v(
|
|
1352
|
-
modelValue:
|
|
1353
|
-
"onUpdate:modelValue":
|
|
1347
|
+
v(ro, {
|
|
1348
|
+
modelValue: o(P),
|
|
1349
|
+
"onUpdate:modelValue": C[7] || (C[7] = (g) => U(P) ? P.value = g : null),
|
|
1354
1350
|
icon: "phone-office",
|
|
1355
|
-
label:
|
|
1356
|
-
placeholder:
|
|
1351
|
+
label: o(e)("booking.reservation.phone"),
|
|
1352
|
+
placeholder: o(e)("booking.reservation.phonePlaceholder"),
|
|
1357
1353
|
required: ""
|
|
1358
1354
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1359
|
-
v(
|
|
1360
|
-
modelValue:
|
|
1361
|
-
"onUpdate:modelValue":
|
|
1362
|
-
label:
|
|
1363
|
-
placeholder:
|
|
1364
|
-
options:
|
|
1355
|
+
v(Wo, {
|
|
1356
|
+
modelValue: o(T),
|
|
1357
|
+
"onUpdate:modelValue": C[8] || (C[8] = (g) => U(T) ? T.value = g : null),
|
|
1358
|
+
label: o(e)("booking.reservation.country"),
|
|
1359
|
+
placeholder: o(e)("booking.reservation.countryPlaceholder"),
|
|
1360
|
+
options: o(n),
|
|
1365
1361
|
required: ""
|
|
1366
1362
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1367
1363
|
v(ne, {
|
|
1368
|
-
modelValue:
|
|
1369
|
-
"onUpdate:modelValue":
|
|
1364
|
+
modelValue: o(b),
|
|
1365
|
+
"onUpdate:modelValue": C[9] || (C[9] = (g) => U(b) ? b.value = g : null),
|
|
1370
1366
|
type: "textarea",
|
|
1371
1367
|
name: "address",
|
|
1372
1368
|
autocomplete: "street-address",
|
|
1373
|
-
label:
|
|
1369
|
+
label: o(e)("booking.reservation.streetAddress"),
|
|
1374
1370
|
icon: "map-marked",
|
|
1375
|
-
placeholder:
|
|
1371
|
+
placeholder: o(e)("booking.reservation.streetAddressPlaceholder"),
|
|
1376
1372
|
required: ""
|
|
1377
1373
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1378
|
-
|
|
1379
|
-
|
|
1374
|
+
i("ul", Il, [
|
|
1375
|
+
i("li", null, [
|
|
1380
1376
|
v(ne, {
|
|
1381
|
-
modelValue:
|
|
1382
|
-
"onUpdate:modelValue":
|
|
1377
|
+
modelValue: o(I),
|
|
1378
|
+
"onUpdate:modelValue": C[10] || (C[10] = (g) => U(I) ? I.value = g : null),
|
|
1383
1379
|
type: "text",
|
|
1384
1380
|
name: "postal",
|
|
1385
1381
|
autocomplete: "postal-code",
|
|
1386
|
-
label:
|
|
1382
|
+
label: o(e)("booking.reservation.postal"),
|
|
1387
1383
|
icon: "mailbox",
|
|
1388
|
-
placeholder:
|
|
1384
|
+
placeholder: o(e)("booking.reservation.postalPlaceholder"),
|
|
1389
1385
|
required: ""
|
|
1390
1386
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1391
1387
|
]),
|
|
1392
|
-
|
|
1388
|
+
i("li", null, [
|
|
1393
1389
|
v(ne, {
|
|
1394
|
-
modelValue:
|
|
1395
|
-
"onUpdate:modelValue":
|
|
1390
|
+
modelValue: o(E),
|
|
1391
|
+
"onUpdate:modelValue": C[11] || (C[11] = (g) => U(E) ? E.value = g : null),
|
|
1396
1392
|
type: "text",
|
|
1397
1393
|
name: "city",
|
|
1398
1394
|
autocomplete: "address-level2",
|
|
1399
|
-
label:
|
|
1395
|
+
label: o(e)("booking.reservation.city"),
|
|
1400
1396
|
icon: "city",
|
|
1401
|
-
placeholder:
|
|
1397
|
+
placeholder: o(e)("booking.reservation.cityPlaceholder"),
|
|
1402
1398
|
required: ""
|
|
1403
1399
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1404
1400
|
])
|
|
1405
1401
|
]),
|
|
1406
1402
|
v(ne, {
|
|
1407
|
-
modelValue:
|
|
1408
|
-
"onUpdate:modelValue":
|
|
1403
|
+
modelValue: o(H),
|
|
1404
|
+
"onUpdate:modelValue": C[12] || (C[12] = (g) => U(H) ? H.value = g : null),
|
|
1409
1405
|
type: "textarea",
|
|
1410
|
-
label: `${
|
|
1406
|
+
label: `${o(e)("booking.reservation.remark")} (${o(e)("booking.reservation.optional")})`,
|
|
1411
1407
|
icon: "info-circle",
|
|
1412
|
-
placeholder:
|
|
1408
|
+
placeholder: o(e)("booking.reservation.remarkPlaceholder")
|
|
1413
1409
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1414
1410
|
v(ne, {
|
|
1415
|
-
modelValue:
|
|
1416
|
-
"onUpdate:modelValue":
|
|
1411
|
+
modelValue: o(N),
|
|
1412
|
+
"onUpdate:modelValue": C[13] || (C[13] = (g) => U(N) ? N.value = g : null),
|
|
1417
1413
|
type: "textarea",
|
|
1418
|
-
label: `${
|
|
1414
|
+
label: `${o(e)("booking.reservation.allergies")} (${o(e)("booking.reservation.optional")})`,
|
|
1419
1415
|
icon: "allergies",
|
|
1420
|
-
placeholder:
|
|
1416
|
+
placeholder: o(e)("booking.reservation.allergiesPlaceholder")
|
|
1421
1417
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1422
|
-
|
|
1418
|
+
o(gt) ? _("", !0) : (p(), D(xo, {
|
|
1423
1419
|
key: 2,
|
|
1424
|
-
modelValue:
|
|
1425
|
-
"onUpdate:modelValue":
|
|
1426
|
-
label: `${
|
|
1420
|
+
modelValue: o(m),
|
|
1421
|
+
"onUpdate:modelValue": C[14] || (C[14] = (g) => U(m) ? m.value = g : null),
|
|
1422
|
+
label: `${o(e)("booking.reservation.purposeOfStay")} (${o(e)("booking.reservation.optional")})`,
|
|
1427
1423
|
name: "travelingFor",
|
|
1428
1424
|
checkboxes: Pt.value
|
|
1429
1425
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
1430
1426
|
])
|
|
1431
1427
|
]),
|
|
1432
|
-
navigation:
|
|
1433
|
-
|
|
1428
|
+
navigation: V(() => [
|
|
1429
|
+
i("div", null, [
|
|
1434
1430
|
v(se, {
|
|
1435
|
-
label:
|
|
1436
|
-
disabled: !
|
|
1437
|
-
"is-loading":
|
|
1431
|
+
label: o(kt) ? o(e)("booking.reservation.nextButton") : o(e)("general.confirmReservation"),
|
|
1432
|
+
disabled: !o(c),
|
|
1433
|
+
"is-loading": o(s),
|
|
1438
1434
|
"full-width": "",
|
|
1439
|
-
onClickEvent: (g) => It(
|
|
1435
|
+
onClickEvent: (g) => It(K)
|
|
1440
1436
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
1441
|
-
|
|
1437
|
+
i("button", {
|
|
1442
1438
|
class: "konnectio-abort-reservation link",
|
|
1443
|
-
onClick:
|
|
1439
|
+
onClick: Ve((g) => ze(S), ["prevent"])
|
|
1444
1440
|
}, [
|
|
1445
|
-
|
|
1446
|
-
], 8,
|
|
1441
|
+
i("span", null, y(o(e)("general.goAStepBack")), 1)
|
|
1442
|
+
], 8, El)
|
|
1447
1443
|
])
|
|
1448
1444
|
]),
|
|
1449
1445
|
_: 2
|
|
1450
1446
|
}, 1024)
|
|
1451
1447
|
]),
|
|
1452
|
-
payment:
|
|
1453
|
-
v(
|
|
1448
|
+
payment: V(() => [
|
|
1449
|
+
v(uo)
|
|
1454
1450
|
]),
|
|
1455
|
-
confirmation:
|
|
1456
|
-
v(
|
|
1457
|
-
message:
|
|
1451
|
+
confirmation: V(() => [
|
|
1452
|
+
v(to, {
|
|
1453
|
+
message: o(e)("booking.confirmation.thankYou")
|
|
1458
1454
|
}, null, 8, ["message"])
|
|
1459
1455
|
]),
|
|
1460
1456
|
_: 1
|
|
@@ -1463,8 +1459,8 @@ const Pl = { class: "fresh-booking-event-addons-price" }, Hl = { key: 1 }, Sl =
|
|
|
1463
1459
|
_: 1
|
|
1464
1460
|
}, 8, ["access-token"])
|
|
1465
1461
|
]),
|
|
1466
|
-
fallback:
|
|
1467
|
-
v(
|
|
1462
|
+
fallback: V(() => [
|
|
1463
|
+
v(tl)
|
|
1468
1464
|
]),
|
|
1469
1465
|
_: 1
|
|
1470
1466
|
}))
|
|
@@ -1472,31 +1468,31 @@ const Pl = { class: "fresh-booking-event-addons-price" }, Hl = { key: 1 }, Sl =
|
|
|
1472
1468
|
_: 1
|
|
1473
1469
|
}, 8, ["styling"]));
|
|
1474
1470
|
}
|
|
1475
|
-
}),
|
|
1476
|
-
function
|
|
1477
|
-
for (const n in
|
|
1478
|
-
const a =
|
|
1479
|
-
typeof a == "object" && a !== null ?
|
|
1471
|
+
}), be = /* @__PURE__ */ ee(Bl, [["__scopeId", "data-v-1c671658"]]);
|
|
1472
|
+
function Ge(l, e = {}, t) {
|
|
1473
|
+
for (const n in l) {
|
|
1474
|
+
const a = l[n], s = t ? `${t}:${n}` : n;
|
|
1475
|
+
typeof a == "object" && a !== null ? Ge(a, e, s) : typeof a == "function" && (e[s] = a);
|
|
1480
1476
|
}
|
|
1481
1477
|
return e;
|
|
1482
1478
|
}
|
|
1483
|
-
const
|
|
1484
|
-
function
|
|
1485
|
-
const t = e.shift(), n =
|
|
1486
|
-
return
|
|
1487
|
-
(a,
|
|
1479
|
+
const Ml = { run: (l) => l() }, Ll = () => Ml, mt = typeof console.createTask < "u" ? console.createTask : Ll;
|
|
1480
|
+
function Rl(l, e) {
|
|
1481
|
+
const t = e.shift(), n = mt(t);
|
|
1482
|
+
return l.reduce(
|
|
1483
|
+
(a, s) => a.then(() => n.run(() => s(...e))),
|
|
1488
1484
|
Promise.resolve()
|
|
1489
1485
|
);
|
|
1490
1486
|
}
|
|
1491
|
-
function
|
|
1492
|
-
const t = e.shift(), n =
|
|
1493
|
-
return Promise.all(
|
|
1487
|
+
function Ul(l, e) {
|
|
1488
|
+
const t = e.shift(), n = mt(t);
|
|
1489
|
+
return Promise.all(l.map((a) => n.run(() => a(...e))));
|
|
1494
1490
|
}
|
|
1495
|
-
function Fe(
|
|
1496
|
-
for (const t of [...
|
|
1491
|
+
function Fe(l, e) {
|
|
1492
|
+
for (const t of [...l])
|
|
1497
1493
|
t(e);
|
|
1498
1494
|
}
|
|
1499
|
-
class
|
|
1495
|
+
class Fl {
|
|
1500
1496
|
constructor() {
|
|
1501
1497
|
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);
|
|
1502
1498
|
}
|
|
@@ -1505,12 +1501,12 @@ class Nl {
|
|
|
1505
1501
|
return () => {
|
|
1506
1502
|
};
|
|
1507
1503
|
const a = e;
|
|
1508
|
-
let
|
|
1504
|
+
let s;
|
|
1509
1505
|
for (; this._deprecatedHooks[e]; )
|
|
1510
|
-
|
|
1511
|
-
if (
|
|
1512
|
-
let c =
|
|
1513
|
-
c || (c = `${a} hook has been deprecated` + (
|
|
1506
|
+
s = this._deprecatedHooks[e], e = s.to;
|
|
1507
|
+
if (s && !n.allowDeprecated) {
|
|
1508
|
+
let c = s.message;
|
|
1509
|
+
c || (c = `${a} hook has been deprecated` + (s.to ? `, please use ${s.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(c) || (console.warn(c), this._deprecatedMessages.add(c));
|
|
1514
1510
|
}
|
|
1515
1511
|
if (!t.name)
|
|
1516
1512
|
try {
|
|
@@ -1525,7 +1521,7 @@ class Nl {
|
|
|
1525
1521
|
};
|
|
1526
1522
|
}
|
|
1527
1523
|
hookOnce(e, t) {
|
|
1528
|
-
let n, a = (...
|
|
1524
|
+
let n, a = (...s) => (typeof n == "function" && n(), n = void 0, a = void 0, t(...s));
|
|
1529
1525
|
return n = this.hook(e, a), n;
|
|
1530
1526
|
}
|
|
1531
1527
|
removeHook(e, t) {
|
|
@@ -1547,7 +1543,7 @@ class Nl {
|
|
|
1547
1543
|
this.deprecateHook(t, e[t]);
|
|
1548
1544
|
}
|
|
1549
1545
|
addHooks(e) {
|
|
1550
|
-
const t =
|
|
1546
|
+
const t = Ge(e), n = Object.keys(t).map(
|
|
1551
1547
|
(a) => this.hook(a, t[a])
|
|
1552
1548
|
);
|
|
1553
1549
|
return () => {
|
|
@@ -1556,7 +1552,7 @@ class Nl {
|
|
|
1556
1552
|
};
|
|
1557
1553
|
}
|
|
1558
1554
|
removeHooks(e) {
|
|
1559
|
-
const t =
|
|
1555
|
+
const t = Ge(e);
|
|
1560
1556
|
for (const n in t)
|
|
1561
1557
|
this.removeHook(n, t[n]);
|
|
1562
1558
|
}
|
|
@@ -1565,21 +1561,21 @@ class Nl {
|
|
|
1565
1561
|
delete this._hooks[e];
|
|
1566
1562
|
}
|
|
1567
1563
|
callHook(e, ...t) {
|
|
1568
|
-
return t.unshift(e), this.callHookWith(
|
|
1564
|
+
return t.unshift(e), this.callHookWith(Rl, e, ...t);
|
|
1569
1565
|
}
|
|
1570
1566
|
callHookParallel(e, ...t) {
|
|
1571
|
-
return t.unshift(e), this.callHookWith(
|
|
1567
|
+
return t.unshift(e), this.callHookWith(Ul, e, ...t);
|
|
1572
1568
|
}
|
|
1573
1569
|
callHookWith(e, t, ...n) {
|
|
1574
1570
|
const a = this._before || this._after ? { name: t, args: n, context: {} } : void 0;
|
|
1575
1571
|
this._before && Fe(this._before, a);
|
|
1576
|
-
const
|
|
1572
|
+
const s = e(
|
|
1577
1573
|
t in this._hooks ? [...this._hooks[t]] : [],
|
|
1578
1574
|
n
|
|
1579
1575
|
);
|
|
1580
|
-
return
|
|
1576
|
+
return s instanceof Promise ? s.finally(() => {
|
|
1581
1577
|
this._after && a && Fe(this._after, a);
|
|
1582
|
-
}) : (this._after && a && Fe(this._after, a),
|
|
1578
|
+
}) : (this._after && a && Fe(this._after, a), s);
|
|
1583
1579
|
}
|
|
1584
1580
|
beforeEach(e) {
|
|
1585
1581
|
return this._before = this._before || [], this._before.push(e), () => {
|
|
@@ -1598,20 +1594,20 @@ class Nl {
|
|
|
1598
1594
|
};
|
|
1599
1595
|
}
|
|
1600
1596
|
}
|
|
1601
|
-
function
|
|
1602
|
-
return new
|
|
1597
|
+
function Ol() {
|
|
1598
|
+
return new Fl();
|
|
1603
1599
|
}
|
|
1604
|
-
function
|
|
1605
|
-
return Array.isArray(
|
|
1600
|
+
function Nl(l) {
|
|
1601
|
+
return Array.isArray(l) ? l : [l];
|
|
1606
1602
|
}
|
|
1607
|
-
const
|
|
1603
|
+
const jl = ["title", "titleTemplate", "script", "style", "noscript"], ke = [
|
|
1608
1604
|
"base",
|
|
1609
1605
|
"meta",
|
|
1610
1606
|
"link",
|
|
1611
1607
|
"style",
|
|
1612
1608
|
"script",
|
|
1613
1609
|
"noscript"
|
|
1614
|
-
],
|
|
1610
|
+
], Gl = [
|
|
1615
1611
|
"title",
|
|
1616
1612
|
"titleTemplate",
|
|
1617
1613
|
"templateParams",
|
|
@@ -1623,19 +1619,19 @@ const ql = ["title", "titleTemplate", "script", "style", "noscript"], _e = [
|
|
|
1623
1619
|
"style",
|
|
1624
1620
|
"script",
|
|
1625
1621
|
"noscript"
|
|
1626
|
-
],
|
|
1627
|
-
function
|
|
1622
|
+
], ql = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], ft = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Wl = typeof window < "u";
|
|
1623
|
+
function We(l) {
|
|
1628
1624
|
let e = 9;
|
|
1629
|
-
for (let t = 0; t <
|
|
1630
|
-
e = Math.imul(e ^
|
|
1625
|
+
for (let t = 0; t < l.length; )
|
|
1626
|
+
e = Math.imul(e ^ l.charCodeAt(t++), 9 ** 9);
|
|
1631
1627
|
return ((e ^ e >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
1632
1628
|
}
|
|
1633
|
-
function
|
|
1634
|
-
return
|
|
1629
|
+
function Qe(l) {
|
|
1630
|
+
return l._h || We(l._d ? l._d : `${l.tag}:${l.textContent || l.innerHTML || ""}:${Object.entries(l.props).map(([e, t]) => `${e}:${String(t)}`).join(",")}`);
|
|
1635
1631
|
}
|
|
1636
|
-
function
|
|
1637
|
-
const { props: t, tag: n } =
|
|
1638
|
-
if (
|
|
1632
|
+
function ht(l, e) {
|
|
1633
|
+
const { props: t, tag: n } = l;
|
|
1634
|
+
if (ql.includes(n))
|
|
1639
1635
|
return n;
|
|
1640
1636
|
if (n === "link" && t.rel === "canonical")
|
|
1641
1637
|
return "canonical";
|
|
@@ -1643,216 +1639,228 @@ function mt(o, e) {
|
|
|
1643
1639
|
return "charset";
|
|
1644
1640
|
const a = ["id"];
|
|
1645
1641
|
n === "meta" && a.push("name", "property", "http-equiv");
|
|
1646
|
-
for (const
|
|
1647
|
-
if (typeof t[
|
|
1648
|
-
const c = String(t[
|
|
1649
|
-
return e && !e(c) ? !1 : `${n}:${
|
|
1642
|
+
for (const s of a)
|
|
1643
|
+
if (typeof t[s] < "u") {
|
|
1644
|
+
const c = String(t[s]);
|
|
1645
|
+
return e && !e(c) ? !1 : `${n}:${s}:${c}`;
|
|
1650
1646
|
}
|
|
1651
1647
|
return !1;
|
|
1652
1648
|
}
|
|
1653
|
-
function
|
|
1654
|
-
return
|
|
1649
|
+
function Xe(l, e) {
|
|
1650
|
+
return l == null ? e || null : typeof l == "function" ? l(e) : l;
|
|
1655
1651
|
}
|
|
1656
|
-
async function
|
|
1652
|
+
async function Kl(l, e, t) {
|
|
1657
1653
|
const n = {
|
|
1658
|
-
tag:
|
|
1659
|
-
props: await
|
|
1654
|
+
tag: l,
|
|
1655
|
+
props: await vt(
|
|
1660
1656
|
// explicitly check for an object
|
|
1661
1657
|
// @ts-expect-error untyped
|
|
1662
|
-
typeof e == "object" && typeof e != "function" && !(e instanceof Promise) ? { ...e } : { [["script", "noscript", "style"].includes(
|
|
1663
|
-
["templateParams", "titleTemplate"].includes(
|
|
1658
|
+
typeof e == "object" && typeof e != "function" && !(e instanceof Promise) ? { ...e } : { [["script", "noscript", "style"].includes(l) ? "innerHTML" : "textContent"]: e },
|
|
1659
|
+
["templateParams", "titleTemplate"].includes(l)
|
|
1664
1660
|
)
|
|
1665
1661
|
};
|
|
1666
|
-
return
|
|
1667
|
-
const
|
|
1668
|
-
typeof
|
|
1662
|
+
return ft.forEach((a) => {
|
|
1663
|
+
const s = typeof n.props[a] < "u" ? n.props[a] : t[a];
|
|
1664
|
+
typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(a) || jl.includes(n.tag)) && (n[a === "children" ? "innerHTML" : a] = s), delete n.props[a]);
|
|
1669
1665
|
}), 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((a) => ({ ...n, props: { ...n.props, content: a } })) : n;
|
|
1670
1666
|
}
|
|
1671
|
-
function
|
|
1672
|
-
|
|
1667
|
+
function zl(l, e) {
|
|
1668
|
+
const t = l === "class" ? " " : ";";
|
|
1669
|
+
return typeof e == "object" && !Array.isArray(e) && (e = Object.entries(e).filter(([, n]) => n).map(([n, a]) => l === "style" ? `${n}:${a}` : n)), (Array.isArray(e) ? e.join(t) : e).split(t).filter((n) => n.trim()).filter(Boolean).join(t);
|
|
1673
1670
|
}
|
|
1674
|
-
async function
|
|
1675
|
-
for (const t of Object.keys(
|
|
1676
|
-
if (
|
|
1677
|
-
|
|
1671
|
+
async function vt(l, e) {
|
|
1672
|
+
for (const t of Object.keys(l)) {
|
|
1673
|
+
if (["class", "style"].includes(t)) {
|
|
1674
|
+
l[t] = zl(t, l[t]);
|
|
1678
1675
|
continue;
|
|
1679
1676
|
}
|
|
1680
|
-
if (
|
|
1681
|
-
const n = String(
|
|
1682
|
-
n === "true" || n === "" ?
|
|
1677
|
+
if (l[t] instanceof Promise && (l[t] = await l[t]), !e && !ft.includes(t)) {
|
|
1678
|
+
const n = String(l[t]), a = t.startsWith("data-");
|
|
1679
|
+
n === "true" || n === "" ? l[t] = a ? "true" : !0 : l[t] || (a && n === "false" ? l[t] = "false" : delete l[t]);
|
|
1683
1680
|
}
|
|
1684
1681
|
}
|
|
1685
|
-
return
|
|
1682
|
+
return l;
|
|
1686
1683
|
}
|
|
1687
|
-
const
|
|
1688
|
-
async function
|
|
1684
|
+
const xl = 10;
|
|
1685
|
+
async function Jl(l) {
|
|
1689
1686
|
const e = [];
|
|
1690
|
-
return Object.entries(
|
|
1691
|
-
const a =
|
|
1692
|
-
e.push(...a.map((
|
|
1693
|
-
}), (await Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e =
|
|
1687
|
+
return Object.entries(l.resolvedInput).filter(([t, n]) => typeof n < "u" && Gl.includes(t)).forEach(([t, n]) => {
|
|
1688
|
+
const a = Nl(n);
|
|
1689
|
+
e.push(...a.map((s) => Kl(t, s, l)).flat());
|
|
1690
|
+
}), (await Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e = l._i, l.mode && (t._m = l.mode), t._p = (l._i << xl) + n, t));
|
|
1694
1691
|
}
|
|
1695
|
-
const
|
|
1692
|
+
const et = {
|
|
1696
1693
|
// tags
|
|
1697
1694
|
base: -10,
|
|
1698
1695
|
title: 10
|
|
1699
|
-
},
|
|
1696
|
+
}, tt = {
|
|
1700
1697
|
// relative scores to their default values
|
|
1701
1698
|
critical: -80,
|
|
1702
1699
|
high: -10,
|
|
1703
1700
|
low: 20
|
|
1704
1701
|
};
|
|
1705
|
-
function
|
|
1702
|
+
function we(l) {
|
|
1706
1703
|
let e = 100;
|
|
1707
|
-
const t =
|
|
1708
|
-
return typeof t == "number" ? t : (
|
|
1704
|
+
const t = l.tagPriority;
|
|
1705
|
+
return typeof t == "number" ? t : (l.tag === "meta" ? (l.props["http-equiv"] === "content-security-policy" && (e = -30), l.props.charset && (e = -20), l.props.name === "viewport" && (e = -15)) : l.tag === "link" && l.props.rel === "preconnect" ? e = 20 : l.tag in et && (e = et[l.tag]), typeof t == "string" && t in tt ? e + tt[t] : e);
|
|
1709
1706
|
}
|
|
1710
|
-
const
|
|
1711
|
-
function
|
|
1712
|
-
if (typeof
|
|
1713
|
-
return
|
|
1707
|
+
const Yl = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], Oe = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], le = "%separator";
|
|
1708
|
+
function _e(l, e, t) {
|
|
1709
|
+
if (typeof l != "string" || !l.includes("%"))
|
|
1710
|
+
return l;
|
|
1714
1711
|
function n(c) {
|
|
1715
|
-
let
|
|
1716
|
-
return ["s", "pageTitle"].includes(c) ?
|
|
1712
|
+
let m;
|
|
1713
|
+
return ["s", "pageTitle"].includes(c) ? m = e.pageTitle : c.includes(".") ? m = c.split(".").reduce((d, r) => d && d[r] || void 0, e) : m = e[c], typeof m < "u" ? (m || "").replace(/"/g, '\\"') : !1;
|
|
1717
1714
|
}
|
|
1718
|
-
let a =
|
|
1715
|
+
let a = l;
|
|
1719
1716
|
try {
|
|
1720
|
-
a = decodeURI(
|
|
1717
|
+
a = decodeURI(l);
|
|
1721
1718
|
} catch {
|
|
1722
1719
|
}
|
|
1723
1720
|
return (a.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((c) => {
|
|
1724
|
-
const
|
|
1725
|
-
typeof
|
|
1726
|
-
}),
|
|
1727
|
-
}
|
|
1728
|
-
async function xl(o) {
|
|
1729
|
-
const e = {
|
|
1730
|
-
tag: o.tagName.toLowerCase(),
|
|
1731
|
-
props: await ft(
|
|
1732
|
-
o.getAttributeNames().reduce((t, n) => ({ ...t, [n]: o.getAttribute(n) }), {})
|
|
1733
|
-
),
|
|
1734
|
-
innerHTML: o.innerHTML
|
|
1735
|
-
};
|
|
1736
|
-
return e._d = mt(e), e;
|
|
1721
|
+
const m = n(c.slice(1));
|
|
1722
|
+
typeof m == "string" && (l = l.replace(new RegExp(`\\${c}(\\W|$)`, "g"), (d, r) => `${m}${r}`).trim());
|
|
1723
|
+
}), l.includes(le) && (l.endsWith(le) && (l = l.slice(0, -le.length).trim()), l.startsWith(le) && (l = l.slice(le.length).trim()), l = l.replace(new RegExp(`\\${le}\\s*\\${le}`, "g"), le), l = _e(l, { separator: t }, t)), l;
|
|
1737
1724
|
}
|
|
1738
|
-
async function
|
|
1739
|
-
const t = e.document ||
|
|
1740
|
-
if (!t)
|
|
1725
|
+
async function Zl(l, e = {}) {
|
|
1726
|
+
const t = e.document || l.resolvedOptions.document;
|
|
1727
|
+
if (!t || !l.dirty)
|
|
1741
1728
|
return;
|
|
1742
|
-
const n = { shouldRender:
|
|
1743
|
-
if (await
|
|
1729
|
+
const n = { shouldRender: !0, tags: [] };
|
|
1730
|
+
if (await l.hooks.callHook("dom:beforeRender", n), !n.shouldRender)
|
|
1744
1731
|
return;
|
|
1745
|
-
const a = (await
|
|
1732
|
+
const a = (await l.resolveTags()).map((u) => ({
|
|
1746
1733
|
tag: u,
|
|
1747
|
-
id:
|
|
1734
|
+
id: ke.includes(u.tag) ? Qe(u) : u.tag,
|
|
1748
1735
|
shouldRender: !0
|
|
1749
1736
|
}));
|
|
1750
|
-
let
|
|
1751
|
-
if (!
|
|
1752
|
-
|
|
1737
|
+
let s = l._dom;
|
|
1738
|
+
if (!s) {
|
|
1739
|
+
s = {
|
|
1753
1740
|
elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
|
|
1754
1741
|
};
|
|
1755
1742
|
for (const u of ["body", "head"]) {
|
|
1756
|
-
const
|
|
1757
|
-
for (const
|
|
1758
|
-
|
|
1743
|
+
const f = t[u]?.children, k = [];
|
|
1744
|
+
for (const P of [...f].filter(($) => ke.includes($.tagName.toLowerCase()))) {
|
|
1745
|
+
const $ = {
|
|
1746
|
+
tag: P.tagName.toLowerCase(),
|
|
1747
|
+
props: await vt(
|
|
1748
|
+
P.getAttributeNames().reduce((b, T) => ({ ...b, [T]: P.getAttribute(T) }), {})
|
|
1749
|
+
),
|
|
1750
|
+
innerHTML: P.innerHTML
|
|
1751
|
+
};
|
|
1752
|
+
let I = 1, E = ht($);
|
|
1753
|
+
for (; E && k.find((b) => b._d === E); )
|
|
1754
|
+
E = `${E}:${I++}`;
|
|
1755
|
+
$._d = E || void 0, k.push($), s.elMap[P.getAttribute("data-hid") || Qe($)] = P;
|
|
1756
|
+
}
|
|
1759
1757
|
}
|
|
1760
1758
|
}
|
|
1761
|
-
|
|
1762
|
-
function c(u,
|
|
1763
|
-
const
|
|
1764
|
-
|
|
1759
|
+
s.pendingSideEffects = { ...s.sideEffects || {} }, s.sideEffects = {};
|
|
1760
|
+
function c(u, f, k) {
|
|
1761
|
+
const P = `${u}:${f}`;
|
|
1762
|
+
s.sideEffects[P] = k, delete s.pendingSideEffects[P];
|
|
1765
1763
|
}
|
|
1766
|
-
function
|
|
1767
|
-
const
|
|
1768
|
-
|
|
1769
|
-
|
|
1764
|
+
function m({ id: u, $el: f, tag: k }) {
|
|
1765
|
+
const P = k.tag.endsWith("Attrs");
|
|
1766
|
+
s.elMap[u] = f, P || (["textContent", "innerHTML"].forEach(($) => {
|
|
1767
|
+
k[$] && k[$] !== f[$] && (f[$] = k[$]);
|
|
1770
1768
|
}), c(u, "el", () => {
|
|
1771
|
-
|
|
1772
|
-
}))
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1769
|
+
s.elMap[u]?.remove(), delete s.elMap[u];
|
|
1770
|
+
}));
|
|
1771
|
+
for (const [$, I] of Object.entries(k._eventHandlers || {}))
|
|
1772
|
+
f.getAttribute(`data-${$}`) !== "" && ((k.tag === "bodyAttrs" ? t.defaultView : f).addEventListener($.replace("on", ""), I.bind(f)), f.setAttribute(`data-${$}`, ""));
|
|
1773
|
+
Object.entries(k.props).forEach(([$, I]) => {
|
|
1774
|
+
const E = `attr:${$}`;
|
|
1775
|
+
if ($ === "class")
|
|
1776
|
+
for (const b of (I || "").split(" ").filter(Boolean))
|
|
1777
|
+
P && c(u, `${E}:${b}`, () => f.classList.remove(b)), !f.classList.contains(b) && f.classList.add(b);
|
|
1778
|
+
else if ($ === "style")
|
|
1779
|
+
for (const b of (I || "").split(";").filter(Boolean)) {
|
|
1780
|
+
const [T, ...H] = b.split(":").map((N) => N.trim());
|
|
1781
|
+
c(u, `${E}:${b}:${T}`, () => {
|
|
1782
|
+
f.style.removeProperty(T);
|
|
1783
|
+
}), f.style.setProperty(T, H.join(":"));
|
|
1784
|
+
}
|
|
1777
1785
|
else
|
|
1778
|
-
|
|
1786
|
+
f.getAttribute($) !== I && f.setAttribute($, I === !0 ? "" : String(I)), P && c(u, E, () => f.removeAttribute($));
|
|
1779
1787
|
});
|
|
1780
1788
|
}
|
|
1781
|
-
const d = [],
|
|
1789
|
+
const d = [], r = {
|
|
1782
1790
|
bodyClose: void 0,
|
|
1783
1791
|
bodyOpen: void 0,
|
|
1784
1792
|
head: void 0
|
|
1785
1793
|
};
|
|
1786
1794
|
for (const u of a) {
|
|
1787
|
-
const { tag:
|
|
1788
|
-
if (
|
|
1789
|
-
if (
|
|
1790
|
-
t.title =
|
|
1795
|
+
const { tag: f, shouldRender: k, id: P } = u;
|
|
1796
|
+
if (k) {
|
|
1797
|
+
if (f.tag === "title") {
|
|
1798
|
+
t.title = f.textContent;
|
|
1791
1799
|
continue;
|
|
1792
1800
|
}
|
|
1793
|
-
u.$el = u.$el ||
|
|
1801
|
+
u.$el = u.$el || s.elMap[P], u.$el ? m(u) : ke.includes(f.tag) && d.push(u);
|
|
1794
1802
|
}
|
|
1795
1803
|
}
|
|
1796
1804
|
for (const u of d) {
|
|
1797
|
-
const
|
|
1798
|
-
u.$el = t.createElement(u.tag.tag),
|
|
1805
|
+
const f = u.tag.tagPosition || "head";
|
|
1806
|
+
u.$el = t.createElement(u.tag.tag), m(u), r[f] = r[f] || t.createDocumentFragment(), r[f].appendChild(u.$el);
|
|
1799
1807
|
}
|
|
1800
1808
|
for (const u of a)
|
|
1801
|
-
await
|
|
1802
|
-
|
|
1809
|
+
await l.hooks.callHook("dom:renderTag", u, t, c);
|
|
1810
|
+
r.head && t.head.appendChild(r.head), r.bodyOpen && t.body.insertBefore(r.bodyOpen, t.body.firstChild), r.bodyClose && t.body.appendChild(r.bodyClose), Object.values(s.pendingSideEffects).forEach((u) => u()), l._dom = s, l.dirty = !1, await l.hooks.callHook("dom:rendered", { renders: a });
|
|
1803
1811
|
}
|
|
1804
|
-
async function
|
|
1812
|
+
async function Ql(l, e = {}) {
|
|
1805
1813
|
const t = e.delayFn || ((n) => setTimeout(n, 10));
|
|
1806
|
-
return
|
|
1807
|
-
await
|
|
1814
|
+
return l._domUpdatePromise = l._domUpdatePromise || new Promise((n) => t(async () => {
|
|
1815
|
+
await Zl(l, e), delete l._domUpdatePromise, n();
|
|
1808
1816
|
}));
|
|
1809
1817
|
}
|
|
1810
1818
|
// @__NO_SIDE_EFFECTS__
|
|
1811
|
-
function
|
|
1819
|
+
function Xl(l) {
|
|
1812
1820
|
return (e) => {
|
|
1813
1821
|
const t = e.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
|
|
1814
1822
|
return t && e.push(JSON.parse(t)), {
|
|
1815
1823
|
mode: "client",
|
|
1816
1824
|
hooks: {
|
|
1817
1825
|
"entries:updated": function(n) {
|
|
1818
|
-
|
|
1826
|
+
Ql(n, l);
|
|
1819
1827
|
}
|
|
1820
1828
|
}
|
|
1821
1829
|
};
|
|
1822
1830
|
};
|
|
1823
1831
|
}
|
|
1824
|
-
const
|
|
1832
|
+
const en = ["templateParams", "htmlAttrs", "bodyAttrs"], tn = {
|
|
1825
1833
|
hooks: {
|
|
1826
|
-
"tag:normalise": function({ tag:
|
|
1834
|
+
"tag:normalise": function({ tag: l }) {
|
|
1827
1835
|
["hid", "vmid", "key"].forEach((n) => {
|
|
1828
|
-
|
|
1836
|
+
l.props[n] && (l.key = l.props[n], delete l.props[n]);
|
|
1829
1837
|
});
|
|
1830
|
-
const t =
|
|
1831
|
-
t && (
|
|
1838
|
+
const t = ht(l) || (l.key ? `${l.tag}:${l.key}` : !1);
|
|
1839
|
+
t && (l._d = t);
|
|
1832
1840
|
},
|
|
1833
|
-
"tags:resolve": function(
|
|
1841
|
+
"tags:resolve": function(l) {
|
|
1834
1842
|
const e = {};
|
|
1835
|
-
|
|
1836
|
-
const a = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p,
|
|
1837
|
-
if (
|
|
1838
|
-
let
|
|
1839
|
-
if (!
|
|
1840
|
-
const d =
|
|
1841
|
-
["class", "style"].forEach((
|
|
1842
|
-
d[
|
|
1843
|
+
l.tags.forEach((n) => {
|
|
1844
|
+
const a = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p, s = e[a];
|
|
1845
|
+
if (s) {
|
|
1846
|
+
let m = n?.tagDuplicateStrategy;
|
|
1847
|
+
if (!m && en.includes(n.tag) && (m = "merge"), m === "merge") {
|
|
1848
|
+
const d = s.props;
|
|
1849
|
+
["class", "style"].forEach((r) => {
|
|
1850
|
+
d[r] && (n.props[r] ? (r === "style" && !d[r].endsWith(";") && (d[r] += ";"), n.props[r] = `${d[r]} ${n.props[r]}`) : n.props[r] = d[r]);
|
|
1843
1851
|
}), e[a].props = {
|
|
1844
1852
|
...d,
|
|
1845
1853
|
...n.props
|
|
1846
1854
|
};
|
|
1847
1855
|
return;
|
|
1848
|
-
} else if (n._e ===
|
|
1849
|
-
|
|
1856
|
+
} else if (n._e === s._e) {
|
|
1857
|
+
s._duped = s._duped || [], n._d = `${s._d}:${s._duped.length + 1}`, s._duped.push(n);
|
|
1850
1858
|
return;
|
|
1851
|
-
} else if (
|
|
1859
|
+
} else if (we(n) > we(s))
|
|
1852
1860
|
return;
|
|
1853
1861
|
}
|
|
1854
1862
|
const c = Object.keys(n.props).length + (n.innerHTML ? 1 : 0) + (n.textContent ? 1 : 0);
|
|
1855
|
-
if (
|
|
1863
|
+
if (ke.includes(n.tag) && c === 0) {
|
|
1856
1864
|
delete e[a];
|
|
1857
1865
|
return;
|
|
1858
1866
|
}
|
|
@@ -1862,183 +1870,164 @@ const ln = ["templateParams", "htmlAttrs", "bodyAttrs"], nn = {
|
|
|
1862
1870
|
Object.values(e).forEach((n) => {
|
|
1863
1871
|
const a = n._duped;
|
|
1864
1872
|
delete n._duped, t.push(n), a && t.push(...a);
|
|
1865
|
-
}),
|
|
1873
|
+
}), l.tags = t, l.tags = l.tags.filter((n) => !(n.tag === "meta" && (n.props.name || n.props.property) && !n.props.content));
|
|
1866
1874
|
}
|
|
1867
1875
|
}
|
|
1868
|
-
},
|
|
1876
|
+
}, on = {
|
|
1869
1877
|
mode: "server",
|
|
1870
1878
|
hooks: {
|
|
1871
|
-
"tags:resolve": function(
|
|
1879
|
+
"tags:resolve": function(l) {
|
|
1872
1880
|
const e = {};
|
|
1873
|
-
|
|
1881
|
+
l.tags.filter((t) => ["titleTemplate", "templateParams", "title"].includes(t.tag) && t._m === "server").forEach((t) => {
|
|
1874
1882
|
e[t.tag] = t.tag.startsWith("title") ? t.textContent : t.props;
|
|
1875
|
-
}), Object.keys(e).length &&
|
|
1883
|
+
}), Object.keys(e).length && l.tags.push({
|
|
1876
1884
|
tag: "script",
|
|
1877
1885
|
innerHTML: JSON.stringify(e),
|
|
1878
1886
|
props: { id: "unhead:payload", type: "application/json" }
|
|
1879
1887
|
});
|
|
1880
1888
|
}
|
|
1881
1889
|
}
|
|
1882
|
-
},
|
|
1883
|
-
function rn(o) {
|
|
1884
|
-
const e = {}, t = {};
|
|
1885
|
-
return Object.entries(o.props).forEach(([n, a]) => {
|
|
1886
|
-
n.startsWith("on") && typeof a == "function" ? (ht.includes(n) && (e[n] = `this.dataset.${n} = true`), t[n] = a) : e[n] = a;
|
|
1887
|
-
}), { props: e, eventHandlers: t };
|
|
1888
|
-
}
|
|
1889
|
-
const un = (o) => ({
|
|
1890
|
+
}, ln = ["script", "link", "bodyAttrs"], nn = (l) => ({
|
|
1890
1891
|
hooks: {
|
|
1891
1892
|
"tags:resolve": function(e) {
|
|
1892
|
-
for (const t of e.tags)
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
}
|
|
1893
|
+
for (const t of e.tags.filter((n) => ln.includes(n.tag)))
|
|
1894
|
+
Object.entries(t.props).forEach(([n, a]) => {
|
|
1895
|
+
n.startsWith("on") && typeof a == "function" && (l.ssr && Oe.includes(n) ? (t.props[n] = `this.dataset.${n} = true`, t.props["data-unhead-events"] = "") : delete t.props[n], t._eventHandlers = t._eventHandlers || {}, t._eventHandlers[n] = a);
|
|
1896
|
+
}), l.ssr && t._eventHandlers && (t.props.src || t.props.href) && (t.key = t.key || We(t.props.src || t.props.href));
|
|
1897
1897
|
},
|
|
1898
|
-
"dom:renderTag": function(e
|
|
1899
|
-
|
|
1898
|
+
"dom:renderTag": function(e) {
|
|
1899
|
+
const t = e.$el;
|
|
1900
|
+
if (!t?.dataset || !("unheadEvents" in t.dataset))
|
|
1900
1901
|
return;
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
let u;
|
|
1909
|
-
const h = (b) => {
|
|
1910
|
-
c(b), u?.disconnect();
|
|
1911
|
-
};
|
|
1912
|
-
i in e.$el.dataset ? h(new Event(i.replace("on", ""))) : ht.includes(i) && typeof MutationObserver < "u" ? (u = new MutationObserver((b) => {
|
|
1913
|
-
b.some((C) => C.attributeName === `data-${i}`) && (h(new Event(i.replace("on", ""))), u?.disconnect());
|
|
1914
|
-
}), u.observe(e.$el, {
|
|
1915
|
-
attributes: !0
|
|
1916
|
-
})) : a.addEventListener(d, h), n(e.id, p, () => {
|
|
1917
|
-
u?.disconnect(), a.removeEventListener(d, h), e.$el.removeAttribute(s);
|
|
1918
|
-
});
|
|
1919
|
-
});
|
|
1902
|
+
delete t.dataset.unheadEvents;
|
|
1903
|
+
const n = (a) => e.tag._eventHandlers?.[a]?.call(e.$el, new Event(a.replace("on", "")));
|
|
1904
|
+
for (const a of Object.keys(t.dataset).filter((s) => Oe.includes(s)))
|
|
1905
|
+
n(a);
|
|
1906
|
+
typeof MutationObserver < "u" && new MutationObserver((s) => {
|
|
1907
|
+
s.filter((c) => c.attributeName && Oe.includes(c.attributeName.replace("data-", ""))).map((c) => c.attributeName.replace("data-", "")).map(n);
|
|
1908
|
+
}).observe(e.$el, { attributes: !0 });
|
|
1920
1909
|
}
|
|
1921
1910
|
}
|
|
1922
|
-
}),
|
|
1911
|
+
}), an = ["link", "style", "script", "noscript"], sn = {
|
|
1923
1912
|
hooks: {
|
|
1924
|
-
"tag:normalise": ({ tag:
|
|
1925
|
-
|
|
1913
|
+
"tag:normalise": ({ tag: l }) => {
|
|
1914
|
+
l.key && an.includes(l.tag) && (l.props["data-hid"] = l._h = We(l.key));
|
|
1926
1915
|
}
|
|
1927
1916
|
}
|
|
1928
|
-
},
|
|
1917
|
+
}, rn = {
|
|
1929
1918
|
hooks: {
|
|
1930
|
-
"tags:resolve": (
|
|
1931
|
-
const e = (t) =>
|
|
1932
|
-
for (const { prefix: t, offset: n } of
|
|
1933
|
-
for (const a of
|
|
1934
|
-
const
|
|
1919
|
+
"tags:resolve": (l) => {
|
|
1920
|
+
const e = (t) => l.tags.find((n) => n._d === t)?._p;
|
|
1921
|
+
for (const { prefix: t, offset: n } of Yl)
|
|
1922
|
+
for (const a of l.tags.filter((s) => typeof s.tagPriority == "string" && s.tagPriority.startsWith(t))) {
|
|
1923
|
+
const s = e(
|
|
1935
1924
|
a.tagPriority.replace(t, "")
|
|
1936
1925
|
);
|
|
1937
|
-
typeof
|
|
1926
|
+
typeof s < "u" && (a._p = s + n);
|
|
1938
1927
|
}
|
|
1939
|
-
|
|
1928
|
+
l.tags.sort((t, n) => t._p - n._p).sort((t, n) => we(t) - we(n));
|
|
1940
1929
|
}
|
|
1941
1930
|
}
|
|
1942
|
-
},
|
|
1931
|
+
}, un = {
|
|
1943
1932
|
meta: "content",
|
|
1944
1933
|
link: "href",
|
|
1945
1934
|
htmlAttrs: "lang"
|
|
1946
|
-
},
|
|
1935
|
+
}, dn = (l) => ({
|
|
1947
1936
|
hooks: {
|
|
1948
1937
|
"tags:resolve": (e) => {
|
|
1949
|
-
const { tags: t } = e, n = t.find((
|
|
1950
|
-
delete
|
|
1951
|
-
for (const
|
|
1952
|
-
const d =
|
|
1953
|
-
d && typeof
|
|
1954
|
-
typeof
|
|
1938
|
+
const { tags: t } = e, n = t.find((m) => m.tag === "title")?.textContent, a = t.findIndex((m) => m.tag === "templateParams"), s = a !== -1 ? t[a].props : {}, c = s.separator || "|";
|
|
1939
|
+
delete s.separator, s.pageTitle = _e(s.pageTitle || n || "", s, c);
|
|
1940
|
+
for (const m of t.filter((d) => d.processTemplateParams !== !1)) {
|
|
1941
|
+
const d = un[m.tag];
|
|
1942
|
+
d && typeof m.props[d] == "string" ? m.props[d] = _e(m.props[d], s, c) : (m.processTemplateParams === !0 || ["titleTemplate", "title"].includes(m.tag)) && ["innerHTML", "textContent"].forEach((r) => {
|
|
1943
|
+
typeof m[r] == "string" && (m[r] = _e(m[r], s, c));
|
|
1955
1944
|
});
|
|
1956
1945
|
}
|
|
1957
|
-
|
|
1946
|
+
l._templateParams = s, l._separator = c, e.tags = t.filter((m) => m.tag !== "templateParams");
|
|
1958
1947
|
}
|
|
1959
1948
|
}
|
|
1960
|
-
}),
|
|
1949
|
+
}), cn = {
|
|
1961
1950
|
hooks: {
|
|
1962
|
-
"tags:resolve": (
|
|
1963
|
-
const { tags: e } =
|
|
1951
|
+
"tags:resolve": (l) => {
|
|
1952
|
+
const { tags: e } = l;
|
|
1964
1953
|
let t = e.findIndex((a) => a.tag === "titleTemplate");
|
|
1965
1954
|
const n = e.findIndex((a) => a.tag === "title");
|
|
1966
1955
|
if (n !== -1 && t !== -1) {
|
|
1967
|
-
const a =
|
|
1956
|
+
const a = Xe(
|
|
1968
1957
|
e[t].textContent,
|
|
1969
1958
|
e[n].textContent
|
|
1970
1959
|
);
|
|
1971
1960
|
a !== null ? e[n].textContent = a || e[n].textContent : delete e[n];
|
|
1972
1961
|
} else if (t !== -1) {
|
|
1973
|
-
const a =
|
|
1962
|
+
const a = Xe(
|
|
1974
1963
|
e[t].textContent
|
|
1975
1964
|
);
|
|
1976
1965
|
a !== null && (e[t].textContent = a, e[t].tag = "title", t = -1);
|
|
1977
1966
|
}
|
|
1978
|
-
t !== -1 && delete e[t],
|
|
1967
|
+
t !== -1 && delete e[t], l.tags = e.filter(Boolean);
|
|
1979
1968
|
}
|
|
1980
1969
|
}
|
|
1981
|
-
},
|
|
1970
|
+
}, pn = {
|
|
1982
1971
|
hooks: {
|
|
1983
|
-
"tags:afterResolve": function(
|
|
1984
|
-
for (const e of
|
|
1972
|
+
"tags:afterResolve": function(l) {
|
|
1973
|
+
for (const e of l.tags)
|
|
1985
1974
|
typeof e.innerHTML == "string" && (e.innerHTML && ["application/ld+json", "application/json"].includes(e.props.type) ? e.innerHTML = e.innerHTML.replace(/</g, "\\u003C") : e.innerHTML = e.innerHTML.replace(new RegExp(`</${e.tag}`, "g"), `<\\/${e.tag}`));
|
|
1986
1975
|
}
|
|
1987
1976
|
}
|
|
1988
1977
|
};
|
|
1989
1978
|
// @__NO_SIDE_EFFECTS__
|
|
1990
|
-
function
|
|
1991
|
-
const e =
|
|
1992
|
-
return e.use(/* @__PURE__ */
|
|
1979
|
+
function mn(l = {}) {
|
|
1980
|
+
const e = fn(l);
|
|
1981
|
+
return e.use(/* @__PURE__ */ Xl()), e;
|
|
1993
1982
|
}
|
|
1994
|
-
function
|
|
1995
|
-
return !
|
|
1983
|
+
function ot(l, e) {
|
|
1984
|
+
return !l || l === "server" && e || l === "client" && !e;
|
|
1996
1985
|
}
|
|
1997
|
-
function
|
|
1998
|
-
const e =
|
|
1999
|
-
e.addHooks(
|
|
2000
|
-
const t = !
|
|
2001
|
-
|
|
1986
|
+
function fn(l = {}) {
|
|
1987
|
+
const e = Ol();
|
|
1988
|
+
e.addHooks(l.hooks || {}), l.document = l.document || (Wl ? document : void 0);
|
|
1989
|
+
const t = !l.document, n = () => {
|
|
1990
|
+
m.dirty = !0, e.callHook("entries:updated", m);
|
|
2002
1991
|
};
|
|
2003
|
-
let a = 0,
|
|
2004
|
-
const c = [],
|
|
1992
|
+
let a = 0, s = [];
|
|
1993
|
+
const c = [], m = {
|
|
2005
1994
|
plugins: c,
|
|
2006
1995
|
dirty: !1,
|
|
2007
|
-
resolvedOptions:
|
|
1996
|
+
resolvedOptions: l,
|
|
2008
1997
|
hooks: e,
|
|
2009
1998
|
headEntries() {
|
|
2010
|
-
return
|
|
1999
|
+
return s;
|
|
2011
2000
|
},
|
|
2012
2001
|
use(d) {
|
|
2013
|
-
const
|
|
2014
|
-
(!
|
|
2002
|
+
const r = typeof d == "function" ? d(m) : d;
|
|
2003
|
+
(!r.key || !c.some((u) => u.key === r.key)) && (c.push(r), ot(r.mode, t) && e.addHooks(r.hooks || {}));
|
|
2015
2004
|
},
|
|
2016
|
-
push(d,
|
|
2017
|
-
delete
|
|
2005
|
+
push(d, r) {
|
|
2006
|
+
delete r?.head;
|
|
2018
2007
|
const u = {
|
|
2019
2008
|
_i: a++,
|
|
2020
2009
|
input: d,
|
|
2021
|
-
...
|
|
2010
|
+
...r
|
|
2022
2011
|
};
|
|
2023
|
-
return
|
|
2012
|
+
return ot(u.mode, t) && (s.push(u), n()), {
|
|
2024
2013
|
dispose() {
|
|
2025
|
-
|
|
2014
|
+
s = s.filter((f) => f._i !== u._i), e.callHook("entries:updated", m), n();
|
|
2026
2015
|
},
|
|
2027
2016
|
// a patch is the same as creating a new entry, just a nice DX
|
|
2028
|
-
patch(
|
|
2029
|
-
|
|
2017
|
+
patch(f) {
|
|
2018
|
+
s = s.map((k) => (k._i === u._i && (k.input = u.input = f), k)), n();
|
|
2030
2019
|
}
|
|
2031
2020
|
};
|
|
2032
2021
|
},
|
|
2033
2022
|
async resolveTags() {
|
|
2034
|
-
const d = { tags: [], entries: [...
|
|
2023
|
+
const d = { tags: [], entries: [...s] };
|
|
2035
2024
|
await e.callHook("entries:resolve", d);
|
|
2036
|
-
for (const
|
|
2037
|
-
const u =
|
|
2038
|
-
if (
|
|
2039
|
-
for (const
|
|
2040
|
-
const
|
|
2041
|
-
await e.callHook("tag:normalise",
|
|
2025
|
+
for (const r of d.entries) {
|
|
2026
|
+
const u = r.resolvedInput || r.input;
|
|
2027
|
+
if (r.resolvedInput = await (r.transform ? r.transform(u) : u), r.resolvedInput)
|
|
2028
|
+
for (const f of await Jl(r)) {
|
|
2029
|
+
const k = { tag: f, entry: r, resolvedOptions: m.resolvedOptions };
|
|
2030
|
+
await e.callHook("tag:normalise", k), d.tags.push(k.tag);
|
|
2042
2031
|
}
|
|
2043
2032
|
}
|
|
2044
2033
|
return await e.callHook("tags:beforeResolve", d), await e.callHook("tags:resolve", d), await e.callHook("tags:afterResolve", d), d.tags;
|
|
@@ -2046,51 +2035,51 @@ function yn(o = {}) {
|
|
|
2046
2035
|
ssr: t
|
|
2047
2036
|
};
|
|
2048
2037
|
return [
|
|
2038
|
+
tn,
|
|
2039
|
+
on,
|
|
2049
2040
|
nn,
|
|
2050
|
-
|
|
2051
|
-
|
|
2041
|
+
sn,
|
|
2042
|
+
rn,
|
|
2043
|
+
dn,
|
|
2052
2044
|
cn,
|
|
2053
2045
|
pn,
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
vn,
|
|
2057
|
-
...o?.plugins || []
|
|
2058
|
-
].forEach((d) => p.use(d)), p.hooks.callHook("init", p), p;
|
|
2046
|
+
...l?.plugins || []
|
|
2047
|
+
].forEach((d) => m.use(d)), m.hooks.callHook("init", m), m;
|
|
2059
2048
|
}
|
|
2060
|
-
const
|
|
2061
|
-
function
|
|
2062
|
-
return typeof
|
|
2049
|
+
const hn = Wt.startsWith("3");
|
|
2050
|
+
function vn(l) {
|
|
2051
|
+
return typeof l == "function" ? l() : o(l);
|
|
2063
2052
|
}
|
|
2064
|
-
function
|
|
2065
|
-
if (
|
|
2066
|
-
return
|
|
2067
|
-
const t =
|
|
2068
|
-
return !
|
|
2069
|
-
Object.entries(t).map(([n, a]) => n === "titleTemplate" || n.startsWith("on") ? [n,
|
|
2053
|
+
function qe(l, e = "") {
|
|
2054
|
+
if (l instanceof Promise)
|
|
2055
|
+
return l;
|
|
2056
|
+
const t = vn(l);
|
|
2057
|
+
return !l || !t ? t : Array.isArray(t) ? t.map((n) => qe(n, e)) : typeof t == "object" ? Object.fromEntries(
|
|
2058
|
+
Object.entries(t).map(([n, a]) => n === "titleTemplate" || n.startsWith("on") ? [n, o(a)] : [n, qe(a, n)])
|
|
2070
2059
|
) : t;
|
|
2071
2060
|
}
|
|
2072
|
-
const
|
|
2061
|
+
const gn = {
|
|
2073
2062
|
hooks: {
|
|
2074
|
-
"entries:resolve": function(
|
|
2075
|
-
for (const e of
|
|
2076
|
-
e.resolvedInput =
|
|
2063
|
+
"entries:resolve": function(l) {
|
|
2064
|
+
for (const e of l.entries)
|
|
2065
|
+
e.resolvedInput = qe(e.input);
|
|
2077
2066
|
}
|
|
2078
2067
|
}
|
|
2079
|
-
},
|
|
2080
|
-
function
|
|
2068
|
+
}, yn = "usehead";
|
|
2069
|
+
function bn(l) {
|
|
2081
2070
|
return {
|
|
2082
2071
|
install(t) {
|
|
2083
|
-
|
|
2072
|
+
hn && (t.config.globalProperties.$unhead = l, t.config.globalProperties.$head = l, t.provide(yn, l));
|
|
2084
2073
|
}
|
|
2085
2074
|
}.install;
|
|
2086
2075
|
}
|
|
2087
|
-
function
|
|
2088
|
-
|
|
2089
|
-
const e = /* @__PURE__ */
|
|
2090
|
-
return e.use(
|
|
2076
|
+
function kn(l = {}) {
|
|
2077
|
+
l.domDelayFn = l.domDelayFn || ((t) => qt(() => setTimeout(() => t(), 0)));
|
|
2078
|
+
const e = /* @__PURE__ */ mn(l);
|
|
2079
|
+
return e.use(gn), e.install = bn(e), e;
|
|
2091
2080
|
}
|
|
2092
|
-
const
|
|
2093
|
-
class
|
|
2081
|
+
const _n = Kt(), Vn = kn(), $n = Yt();
|
|
2082
|
+
class Tn extends HTMLElement {
|
|
2094
2083
|
vueApp;
|
|
2095
2084
|
constructor() {
|
|
2096
2085
|
super();
|
|
@@ -2099,9 +2088,9 @@ class Hn extends HTMLElement {
|
|
|
2099
2088
|
this.vueApp.unmount();
|
|
2100
2089
|
}
|
|
2101
2090
|
connectedCallback() {
|
|
2102
|
-
const e = typeof
|
|
2091
|
+
const e = typeof be == "function" ? be.options : be;
|
|
2103
2092
|
let t = Array.isArray(e.props) ? e.props : Object.keys(e.props || {});
|
|
2104
|
-
const n = (d) => d.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (
|
|
2093
|
+
const n = (d) => d.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (r, u) => (u ? "-" : "") + r.toLowerCase()), a = (d) => d.replace(/-./g, (r) => r[1].toUpperCase()), s = {};
|
|
2105
2094
|
t = t.map(n);
|
|
2106
2095
|
const c = {};
|
|
2107
2096
|
for (const d of this.attributes) {
|
|
@@ -2109,15 +2098,15 @@ class Hn extends HTMLElement {
|
|
|
2109
2098
|
u.length > 1 && (c[u[0]] || (c[u[0]] = {}), c[u[0]][a(u[1])] = d.value);
|
|
2110
2099
|
}
|
|
2111
2100
|
for (const d of t) {
|
|
2112
|
-
let
|
|
2113
|
-
c.hasOwnProperty(d) && (
|
|
2101
|
+
let r = this.attributes.getNamedItem(d)?.value;
|
|
2102
|
+
c.hasOwnProperty(d) && (r = c[d]), s[d] = r;
|
|
2114
2103
|
}
|
|
2115
|
-
this.vueApp =
|
|
2116
|
-
const
|
|
2117
|
-
this.vueApp.mount(
|
|
2104
|
+
this.vueApp = zt(be, s), this.vueApp.provide("emitter", $n), this.vueApp.use(Vn), this.vueApp.use(_n), this.vueApp.use(oo), this.vueApp.use(xt), this.vueApp.use(lo), this.vueApp.use(Jt, { bootstrap: !0 });
|
|
2105
|
+
const m = document.createElement("div");
|
|
2106
|
+
this.vueApp.mount(m), this.appendChild(m.children[0]);
|
|
2118
2107
|
}
|
|
2119
2108
|
}
|
|
2120
|
-
window.customElements.define("konnectio-hotel",
|
|
2109
|
+
window.customElements.define("konnectio-hotel", Tn);
|
|
2121
2110
|
export {
|
|
2122
|
-
|
|
2111
|
+
Tn as default
|
|
2123
2112
|
};
|