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