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