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