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