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