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