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