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