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