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