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