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