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