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