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