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