@konnectio/core 4.0.87 → 4.0.89
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-JyyQhohJ.js → ActionField-pRVpEYbK.js} +13 -13
- package/dist/ActionField-pRVpEYbK.js.br +0 -0
- package/dist/AvailabilitySkeleton-DyueTEga.js +322 -0
- package/dist/AvailabilitySkeleton-DyueTEga.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CyxA0DFl.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.js} +262 -262
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.js.br +0 -0
- package/dist/{CheckoutWindow-BANXRcdP.js → CheckoutWindow-BrwxMXyf.js} +89 -89
- package/dist/CheckoutWindow-BrwxMXyf.js.br +0 -0
- package/dist/{ErrorMessage-BkKT-ltk.js → ErrorMessage-CIU5Cn9y.js} +25 -25
- package/dist/ErrorMessage-CIU5Cn9y.js.br +0 -0
- package/dist/{EventAvailabilityForm-TIP9lliE.js → EventAvailabilityForm-ClaIOEwA.js} +17 -17
- package/dist/EventAvailabilityForm-ClaIOEwA.js.br +0 -0
- package/dist/{Field-W3dyKX_L.js → Field-DuG8W19B.js} +14 -13
- package/dist/Field-DuG8W19B.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-PtGXipvw.js +21 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DghVL0Oa.js → SelectField.vue_vue_type_style_index_0_lang-CDI5Jr8F.js} +5679 -5663
- package/dist/SelectField.vue_vue_type_style_index_0_lang-CDI5Jr8F.js.br +0 -0
- package/dist/{TermsOfService-Ch3BEIIo.js → TermsOfService-D28siuNO.js} +4 -4
- package/dist/_-C-ynrhKu.js +5 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BL9CKMuv.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-CMpwvYsv.js → giftCard-vF2jr39r.js} +19 -19
- package/dist/giftCard-vF2jr39r.js.br +0 -0
- package/dist/hotel.js +1050 -1051
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-DkIwTZE2.js → masonry.plugin-QKZ1Nfp8.js} +606 -605
- package/dist/masonry.plugin-QKZ1Nfp8.js.br +0 -0
- package/dist/mitt-Cg46J41N.js +13059 -0
- package/dist/mitt-Cg46J41N.js.br +0 -0
- package/dist/polyfill.js +91 -91
- 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-JyyQhohJ.js.br +0 -0
- package/dist/AvailabilitySkeleton-DfYTjUoS.js +0 -309
- package/dist/AvailabilitySkeleton-DfYTjUoS.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CyxA0DFl.js.br +0 -0
- package/dist/CheckoutWindow-BANXRcdP.js.br +0 -0
- package/dist/ErrorMessage-BkKT-ltk.js.br +0 -0
- package/dist/EventAvailabilityForm-TIP9lliE.js.br +0 -0
- package/dist/Field-W3dyKX_L.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DghVL0Oa.js.br +0 -0
- package/dist/_-v0hUQXei.js +0 -5
- package/dist/_.vue_vue_type_style_index_0_lang-0ivLN3Ws.js +0 -25
- package/dist/giftCard-CMpwvYsv.js.br +0 -0
- package/dist/masonry.plugin-DkIwTZE2.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 Le, 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-CDI5Jr8F.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 Bo } from "./masonry.plugin-QKZ1Nfp8.js";
|
|
5
|
+
import { A as Ro, H as Lo } from "./AvailabilitySkeleton-DyueTEga.js";
|
|
6
|
+
import { S as Uo } from "./TermsOfService-D28siuNO.js";
|
|
7
|
+
import { C as $e, B as Eo, P as Oo, a as Fo } from "./CheckoutWindow-BrwxMXyf.js";
|
|
8
|
+
import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.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: R,
|
|
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: B }) => he + B, 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] = (B) => F(M) ? M.value = B : 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: B,
|
|
73
|
+
title: Ve,
|
|
74
|
+
variants: Te
|
|
75
|
+
}) => (d(), v("div", { key: B }, [
|
|
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] = (B) => F(_) ? _.value = B : 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(R),
|
|
150
|
+
"onUpdate:modelValue": O[2] || (O[2] = (B) => F(R) ? R.value = B : 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((B) => _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] = (B) => _e.value = B),
|
|
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), (B) => (d(), v("li", {
|
|
257
|
+
key: B.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")} (${B.value})`), 1),
|
|
260
|
+
s("b", null, h(B.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(Le, {
|
|
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((R, Y) => {
|
|
402
|
+
const E = R.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(Le, {
|
|
437
434
|
key: 0,
|
|
438
|
-
modelValue:
|
|
439
|
-
"onUpdate:modelValue": (R) =>
|
|
435
|
+
modelValue: M.id,
|
|
436
|
+
"onUpdate:modelValue": (R) => M.id = R,
|
|
440
437
|
label: e(t)("hotel.roomVariant"),
|
|
441
438
|
placeholder: e(t)("hotel.chooseARoomVariant"),
|
|
442
439
|
options: a.value,
|
|
443
440
|
searchable: !1,
|
|
444
441
|
onChanged: (R) => G(z, R)
|
|
445
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options", "onChanged"])) :
|
|
446
|
-
|
|
447
|
-
(d(!0), v(
|
|
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, ({
|
|
448
445
|
id: R,
|
|
449
446
|
maximumOccupants: Y
|
|
450
447
|
}) => (d(), v("div", {
|
|
451
448
|
key: R,
|
|
452
449
|
class: "konnectio-listing-action-selective-i"
|
|
453
450
|
}, [
|
|
454
|
-
|
|
455
|
-
key:
|
|
451
|
+
M.id === R ? (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(R),
|
|
464
|
+
readonly: !(C(R).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(R, 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(Le, {
|
|
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(Le, {
|
|
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,170 @@ 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(Ro, { 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 }, Bn = { key: 0 }, Rn = {
|
|
906
903
|
key: 0,
|
|
907
904
|
id: "booking-availability-packages"
|
|
908
|
-
},
|
|
905
|
+
}, Ln = {
|
|
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: {},
|
|
951
|
+
sortBy: { default: "default" },
|
|
954
952
|
styling: {}
|
|
955
953
|
},
|
|
956
|
-
setup(
|
|
957
|
-
const t =
|
|
954
|
+
setup(l) {
|
|
955
|
+
const t = fo(() => import("./_-C-ynrhKu.js")), n = l, { t: o } = se(), {
|
|
958
956
|
currentLocation: i,
|
|
959
957
|
templateID: a,
|
|
960
958
|
templateAddons: r,
|
|
961
959
|
countries: f,
|
|
962
960
|
areListingsLoading: u,
|
|
963
|
-
isPaymentLoading:
|
|
964
|
-
isReservationFormFilled:
|
|
961
|
+
isPaymentLoading: c,
|
|
962
|
+
isReservationFormFilled: p,
|
|
965
963
|
travelingFor: m,
|
|
966
|
-
arrivalTime:
|
|
967
|
-
departureTime:
|
|
968
|
-
name:
|
|
969
|
-
nameTitle:
|
|
964
|
+
arrivalTime: g,
|
|
965
|
+
departureTime: w,
|
|
966
|
+
name: C,
|
|
967
|
+
nameTitle: S,
|
|
970
968
|
email: G,
|
|
971
|
-
phone:
|
|
972
|
-
firmName:
|
|
973
|
-
postal:
|
|
974
|
-
city:
|
|
975
|
-
address:
|
|
969
|
+
phone: D,
|
|
970
|
+
firmName: K,
|
|
971
|
+
postal: _,
|
|
972
|
+
city: A,
|
|
973
|
+
address: M,
|
|
976
974
|
country: z,
|
|
977
975
|
remark: R,
|
|
978
976
|
allergies: Y,
|
|
979
|
-
roomSelect:
|
|
980
|
-
roomDisplay:
|
|
981
|
-
hasValidRoomSelection:
|
|
982
|
-
availabilityData:
|
|
983
|
-
selectionHasNoAddons:
|
|
984
|
-
isAvailabilityDataAvailable:
|
|
985
|
-
getSelectedPackageRoom:
|
|
986
|
-
selectedPackage:
|
|
987
|
-
isSearchOutdated:
|
|
988
|
-
currentChildren:
|
|
989
|
-
isTemplateReservation:
|
|
977
|
+
roomSelect: E,
|
|
978
|
+
roomDisplay: ae,
|
|
979
|
+
hasValidRoomSelection: ie,
|
|
980
|
+
availabilityData: j,
|
|
981
|
+
selectionHasNoAddons: Pe,
|
|
982
|
+
isAvailabilityDataAvailable: ge,
|
|
983
|
+
getSelectedPackageRoom: be,
|
|
984
|
+
selectedPackage: _e,
|
|
985
|
+
isSearchOutdated: Ae,
|
|
986
|
+
currentChildren: ee,
|
|
987
|
+
isTemplateReservation: O,
|
|
990
988
|
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
|
-
|
|
989
|
+
} = X(ye()), {
|
|
990
|
+
adults: B,
|
|
991
|
+
children: Ve,
|
|
992
|
+
location: Te,
|
|
993
|
+
arrivalDate: He,
|
|
994
|
+
departureDate: Ee,
|
|
995
|
+
hasHotelLocations: re
|
|
996
|
+
} = X(Ce()), { isValidHotelId: Oe, updateDates: at } = Ce(), {
|
|
997
|
+
currency: Fe,
|
|
998
|
+
enableTracking: Mt,
|
|
999
|
+
disableNamePrefix: Bt,
|
|
1000
|
+
disableTravelingFor: Rt,
|
|
1001
|
+
disableTravelingForBleasure: Lt,
|
|
1002
|
+
disableCompanyField: Ut,
|
|
1003
|
+
hasPaymentGateway: Et,
|
|
1004
|
+
maxAdultAmount: it,
|
|
1005
|
+
maxChildAmount: st,
|
|
1006
|
+
defaultAdultAmount: Ot,
|
|
1007
|
+
defaultChildAmount: Ft,
|
|
1008
|
+
disableNewsletterSignup: Gt
|
|
1009
|
+
} = X(ve()), {
|
|
1010
|
+
hasArrivalDepartureInputs: qt,
|
|
1011
|
+
hasUserArrivalSelection: Ge,
|
|
1012
|
+
hasUserDepartureSelection: qe,
|
|
1013
|
+
earliestArrivalTime: jt,
|
|
1014
|
+
latestArrivalTime: Wt,
|
|
1015
|
+
earliestDepartureTime: xt,
|
|
1016
|
+
latestDepartureTime: Kt
|
|
1017
|
+
} = ve(), { beginCheckout: Jt } = Tt(), { display: Se } = $t(), {
|
|
1018
|
+
resetTemplate: zt,
|
|
1019
|
+
resetDiscountVoucher: Yt,
|
|
1020
|
+
createReservation: Qt,
|
|
1021
|
+
fetchMetadata: Xt,
|
|
1022
|
+
fetchAvailabilityData: rt,
|
|
1023
|
+
filterAddons: dt
|
|
1024
|
+
} = ye(), Zt = le(!0), eo = x(() => [
|
|
1026
1025
|
{
|
|
1027
1026
|
id: "availability",
|
|
1028
1027
|
label: o("booking.availability.title"),
|
|
@@ -1047,8 +1046,8 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1047
1046
|
label: o("booking.confirmation.title"),
|
|
1048
1047
|
icon: "calendar-check"
|
|
1049
1048
|
}
|
|
1050
|
-
]),
|
|
1051
|
-
const
|
|
1049
|
+
]), to = x(() => {
|
|
1050
|
+
const b = [
|
|
1052
1051
|
{
|
|
1053
1052
|
label: o("booking.reservation.business"),
|
|
1054
1053
|
value: "Business"
|
|
@@ -1058,136 +1057,136 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1058
1057
|
value: "Pleasure"
|
|
1059
1058
|
}
|
|
1060
1059
|
];
|
|
1061
|
-
return
|
|
1060
|
+
return Lt.value || b.push({
|
|
1062
1061
|
label: o("booking.reservation.bleasure"),
|
|
1063
1062
|
value: "Bleasure"
|
|
1064
|
-
}),
|
|
1065
|
-
}),
|
|
1066
|
-
const
|
|
1067
|
-
function
|
|
1068
|
-
return
|
|
1063
|
+
}), b;
|
|
1064
|
+
}), oo = x(() => {
|
|
1065
|
+
const b = j.value.roomGroups.slice();
|
|
1066
|
+
function V(J, P) {
|
|
1067
|
+
return Zt.value === !0 ? J.pricesFrom > P.pricesFrom ? -1 : 1 : J.pricesFrom > P.pricesFrom ? 1 : -1;
|
|
1069
1068
|
}
|
|
1070
|
-
return
|
|
1071
|
-
}),
|
|
1072
|
-
function
|
|
1073
|
-
|
|
1069
|
+
return n.sortBy === "price" ? b.sort(V) : b;
|
|
1070
|
+
}), je = x(() => n.hideAddons === "yes" || O.value && n.hideAddons === "packages" || !O.value && n.hideAddons === "rooms");
|
|
1071
|
+
function ut(b) {
|
|
1072
|
+
je.value || Pe.value ? b(2) : b(), Yt();
|
|
1074
1073
|
}
|
|
1075
|
-
async function
|
|
1076
|
-
await
|
|
1074
|
+
async function no(b, V) {
|
|
1075
|
+
await Qt(b, V);
|
|
1077
1076
|
}
|
|
1078
|
-
function
|
|
1079
|
-
if (isNaN(
|
|
1080
|
-
|
|
1077
|
+
function lo() {
|
|
1078
|
+
if (isNaN(Te.value) && re.value) {
|
|
1079
|
+
Se({
|
|
1081
1080
|
message: o("alert.error.selectHotelId"),
|
|
1082
1081
|
type: "error"
|
|
1083
1082
|
});
|
|
1084
1083
|
return;
|
|
1085
1084
|
}
|
|
1086
|
-
|
|
1085
|
+
rt();
|
|
1087
1086
|
}
|
|
1088
|
-
function
|
|
1089
|
-
|
|
1087
|
+
function ao(b) {
|
|
1088
|
+
Mt.value && Jt(), je.value || Pe.value ? b(2) : b();
|
|
1090
1089
|
}
|
|
1091
|
-
function
|
|
1092
|
-
const
|
|
1090
|
+
function io() {
|
|
1091
|
+
const b = $o("history", {
|
|
1093
1092
|
removeNullishValues: !0
|
|
1094
|
-
}),
|
|
1095
|
-
let
|
|
1096
|
-
if (isNaN(
|
|
1093
|
+
}), V = parseInt(b.a), J = parseInt(b.c), P = parseInt(b.hid), I = parseInt(b.n), k = b.ci, L = b.co, N = b.id;
|
|
1094
|
+
let te = !1;
|
|
1095
|
+
if (isNaN(V) || (V > it.value ? B.value = it.value : B.value = V, B.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
1096
|
message: o("alert.error.hotelIdNotFound"),
|
|
1098
1097
|
type: "error"
|
|
1099
|
-
})),
|
|
1100
|
-
if (
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1098
|
+
})), k && L)
|
|
1099
|
+
if (mt(k) && mt(L)) {
|
|
1100
|
+
const ke = new Date(k), de = new Date(L);
|
|
1101
|
+
ke <= de ? (He.value = ke, Ee.value = de) : (b.ci = void 0, b.co = void 0, Se({
|
|
1103
1102
|
message: o("alert.error.invalidDateRange"),
|
|
1104
1103
|
type: "error"
|
|
1105
1104
|
}));
|
|
1106
1105
|
} else
|
|
1107
|
-
|
|
1106
|
+
Se({
|
|
1108
1107
|
message: o("alert.error.wrongDateFormat"),
|
|
1109
1108
|
type: "error"
|
|
1110
1109
|
});
|
|
1111
|
-
let
|
|
1112
|
-
|
|
1110
|
+
let Q = null;
|
|
1111
|
+
N && (Q = N), n.disableDefaultLocation === "yes" && te === !1 ? (Te.value = void 0, i.value = void 0) : rt(Q);
|
|
1113
1112
|
}
|
|
1114
|
-
return (
|
|
1115
|
-
default:
|
|
1116
|
-
(d(),
|
|
1117
|
-
default:
|
|
1113
|
+
return (b, V) => (d(), H(wo, { styling: b.styling }, {
|
|
1114
|
+
default: $(() => [
|
|
1115
|
+
(d(), H(mo, { onResolve: io }, {
|
|
1116
|
+
default: $(() => [
|
|
1118
1117
|
y(e(t), {
|
|
1119
1118
|
id: "konnectio-hotel-module",
|
|
1120
|
-
"access-token":
|
|
1121
|
-
callback: e(
|
|
1119
|
+
"access-token": b.accessToken,
|
|
1120
|
+
callback: e(Xt)
|
|
1122
1121
|
}, {
|
|
1123
|
-
default:
|
|
1124
|
-
y(
|
|
1125
|
-
layout:
|
|
1126
|
-
steps:
|
|
1127
|
-
onReset: e(
|
|
1122
|
+
default: $(() => [
|
|
1123
|
+
y(Do, {
|
|
1124
|
+
layout: b.headerLayout,
|
|
1125
|
+
steps: eo.value,
|
|
1126
|
+
onReset: e(zt)
|
|
1128
1127
|
}, {
|
|
1129
|
-
availability:
|
|
1130
|
-
y(
|
|
1131
|
-
form:
|
|
1132
|
-
s("div",
|
|
1133
|
-
s("div",
|
|
1134
|
-
y(
|
|
1128
|
+
availability: $(({ next: J }) => [
|
|
1129
|
+
y(Ye, null, {
|
|
1130
|
+
form: $(() => [
|
|
1131
|
+
s("div", In, [
|
|
1132
|
+
s("div", Nn, [
|
|
1133
|
+
y(Lo, {
|
|
1135
1134
|
booking: !0,
|
|
1136
|
-
"selected-location": Number(
|
|
1137
|
-
"disable-default-location":
|
|
1135
|
+
"selected-location": Number(b.selectedLocation),
|
|
1136
|
+
"disable-default-location": b.disableDefaultLocation === "yes"
|
|
1138
1137
|
}, null, 8, ["selected-location", "disable-default-location"])
|
|
1139
1138
|
]),
|
|
1140
|
-
|
|
1141
|
-
!e(u) && e(
|
|
1142
|
-
e(
|
|
1143
|
-
e(
|
|
1144
|
-
|
|
1139
|
+
T("", !0),
|
|
1140
|
+
!e(u) && e(ge) ? (d(), v("div", Mn, [
|
|
1141
|
+
e(j).roomGroups.length > 0 || e(j).templates.length > 0 || e(j).specialTemplates.length > 0 ? (d(), v("div", Bn, [
|
|
1142
|
+
e(j).templates.length > 0 && b.onlyShow !== "rooms" ? (d(), v("div", Rn, [
|
|
1143
|
+
b.onlyShow !== "packages" ? (d(), v("h2", Ln, [
|
|
1145
1144
|
y(W, {
|
|
1146
1145
|
icon: "box",
|
|
1147
1146
|
type: "fal",
|
|
1148
1147
|
color: "header"
|
|
1149
1148
|
}),
|
|
1150
1149
|
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":
|
|
1150
|
+
])) : T("", !0),
|
|
1151
|
+
s("ul", Un, [
|
|
1152
|
+
(d(!0), v(U, null, q(e(j).templates, ({
|
|
1153
|
+
id: P,
|
|
1154
|
+
name: I,
|
|
1155
|
+
templateRoomGroups: k,
|
|
1156
|
+
image: L,
|
|
1157
|
+
description: N,
|
|
1158
|
+
weekendFee: te
|
|
1159
|
+
}) => (d(), H(kn, {
|
|
1160
|
+
key: P,
|
|
1161
|
+
id: P,
|
|
1162
|
+
description: N,
|
|
1163
|
+
name: I,
|
|
1164
|
+
image: L,
|
|
1165
|
+
weekendFee: te,
|
|
1166
|
+
"room-groups": k,
|
|
1168
1167
|
callback: J,
|
|
1169
|
-
"hide-addons":
|
|
1168
|
+
"hide-addons": b.hideAddons === "yes" || b.hideAddons === "packages"
|
|
1170
1169
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
1171
1170
|
])
|
|
1172
|
-
])) :
|
|
1173
|
-
e(
|
|
1174
|
-
e(
|
|
1171
|
+
])) : T("", !0),
|
|
1172
|
+
e(j).roomGroups.length > 0 && b.onlyShow !== "packages" ? (d(), v("div", En, [
|
|
1173
|
+
e(j).templates.length > 0 && b.onlyShow !== "rooms" ? (d(), v("h2", On, [
|
|
1175
1174
|
y(W, {
|
|
1176
1175
|
icon: "house",
|
|
1177
1176
|
type: "fal",
|
|
1178
1177
|
color: "header"
|
|
1179
1178
|
}),
|
|
1180
1179
|
s("span", null, h(e(o)("booking.availability.roomsTitle")), 1)
|
|
1181
|
-
])) :
|
|
1182
|
-
s("ul",
|
|
1183
|
-
(d(!0), v(
|
|
1184
|
-
room:
|
|
1185
|
-
key:
|
|
1180
|
+
])) : T("", !0),
|
|
1181
|
+
s("ul", Fn, [
|
|
1182
|
+
(d(!0), v(U, null, q(oo.value, (P, I) => (d(), H(mn, {
|
|
1183
|
+
room: P,
|
|
1184
|
+
key: I
|
|
1186
1185
|
}, null, 8, ["room"]))), 128))
|
|
1187
1186
|
])
|
|
1188
|
-
])) :
|
|
1189
|
-
e(
|
|
1190
|
-
s("h2",
|
|
1187
|
+
])) : T("", !0),
|
|
1188
|
+
e(j).specialTemplates.length > 0 && b.onlyShow !== "rooms" ? (d(), v("div", Gn, [
|
|
1189
|
+
s("h2", qn, [
|
|
1191
1190
|
y(W, {
|
|
1192
1191
|
icon: "sparkles",
|
|
1193
1192
|
type: "fal",
|
|
@@ -1195,37 +1194,37 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1195
1194
|
}),
|
|
1196
1195
|
s("span", null, h(e(o)("hotel.specialOffers")), 1)
|
|
1197
1196
|
]),
|
|
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":
|
|
1197
|
+
s("ul", jn, [
|
|
1198
|
+
(d(!0), v(U, null, q(e(j).specialTemplates, ({
|
|
1199
|
+
id: P,
|
|
1200
|
+
name: I,
|
|
1201
|
+
templateRoomGroups: k,
|
|
1202
|
+
image: L,
|
|
1203
|
+
description: N,
|
|
1204
|
+
weekendFee: te,
|
|
1205
|
+
fromDate: Q,
|
|
1206
|
+
toDate: ke
|
|
1207
|
+
}) => (d(), H(_n, {
|
|
1208
|
+
key: P,
|
|
1209
|
+
id: P,
|
|
1210
|
+
description: N,
|
|
1211
|
+
name: I,
|
|
1212
|
+
image: L,
|
|
1213
|
+
fromDate: Q,
|
|
1214
|
+
toDate: ke,
|
|
1215
|
+
weekendFee: te,
|
|
1216
|
+
"room-groups": k,
|
|
1218
1217
|
callback: J
|
|
1219
1218
|
}, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1220
1219
|
])
|
|
1221
|
-
])) :
|
|
1222
|
-
(e(
|
|
1220
|
+
])) : T("", !0),
|
|
1221
|
+
(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
1222
|
s("span", null, h(e(o)("booking.availability.nothingAvailable")), 1)
|
|
1224
|
-
])) :
|
|
1225
|
-
])) : e(
|
|
1223
|
+
])) : T("", !0)
|
|
1224
|
+
])) : e(j).nextAvailableDates.length === 0 ? (d(), v("div", xn, [
|
|
1226
1225
|
s("span", null, h(e(o)("booking.availability.nothingAvailable")), 1)
|
|
1227
|
-
])) : (d(), v("div",
|
|
1228
|
-
s("h2",
|
|
1226
|
+
])) : (d(), v("div", Kn, [
|
|
1227
|
+
s("h2", Jn, [
|
|
1229
1228
|
y(W, {
|
|
1230
1229
|
icon: "calendar-circle-exclamation",
|
|
1231
1230
|
type: "fal",
|
|
@@ -1233,21 +1232,21 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1233
1232
|
}),
|
|
1234
1233
|
s("span", null, h(e(o)("booking.availability.nextAvailableDates")), 1)
|
|
1235
1234
|
]),
|
|
1236
|
-
s("ul",
|
|
1237
|
-
(d(!0), v(
|
|
1235
|
+
s("ul", zn, [
|
|
1236
|
+
(d(!0), v(U, null, q(e(j).nextAvailableDates, (P, I) => (d(), v("li", { key: I }, [
|
|
1238
1237
|
s("h3", {
|
|
1239
|
-
title: `${e(
|
|
1238
|
+
title: `${e(oe)(P.fromDate, 0, !0)} - ${e(oe)(P.toDate, 0, !0)}`
|
|
1240
1239
|
}, [
|
|
1241
|
-
s("span", null, h(`${e(
|
|
1242
|
-
], 8,
|
|
1240
|
+
s("span", null, h(`${e(oe)(P.fromDate, 0, !0)} - ${e(oe)(P.toDate, 0, !0)}`), 1)
|
|
1241
|
+
], 8, Yn),
|
|
1243
1242
|
s("ul", null, [
|
|
1244
|
-
isNaN(
|
|
1243
|
+
isNaN(P.roomCount) ? T("", !0) : (d(), v("li", Qn, [
|
|
1245
1244
|
y(W, {
|
|
1246
1245
|
icon: "house",
|
|
1247
1246
|
type: "fal",
|
|
1248
1247
|
color: "header"
|
|
1249
1248
|
}),
|
|
1250
|
-
s("span", null, h(e(o)("booking.availability.units")) + ": " + h(
|
|
1249
|
+
s("span", null, h(e(o)("booking.availability.units")) + ": " + h(P.roomCount), 1)
|
|
1251
1250
|
])),
|
|
1252
1251
|
s("li", null, [
|
|
1253
1252
|
y(W, {
|
|
@@ -1255,167 +1254,167 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1255
1254
|
type: "fal",
|
|
1256
1255
|
color: "header"
|
|
1257
1256
|
}),
|
|
1258
|
-
s("span", null, h(e(o)("booking.availability.pricesFrom")) + ": " + h(e(
|
|
1257
|
+
s("span", null, h(e(o)("booking.availability.pricesFrom")) + ": " + h(e(ne)(P.priceStartFrom, e(Fe))) + " " + h(e(o)("general.perNight")), 1)
|
|
1259
1258
|
])
|
|
1260
1259
|
]),
|
|
1261
1260
|
y(me, {
|
|
1262
1261
|
label: e(o)("booking.availability.selectDates"),
|
|
1263
1262
|
"full-width": "",
|
|
1264
|
-
onClickEvent: (
|
|
1263
|
+
onClickEvent: (k) => e(at)(new Date(P.fromDate), new Date(P.toDate))
|
|
1265
1264
|
}, null, 8, ["label", "onClickEvent"])
|
|
1266
1265
|
]))), 128))
|
|
1267
1266
|
])
|
|
1268
1267
|
]))
|
|
1269
|
-
])) : isNaN(e(i)) && !e(u) ? (d(), v("div",
|
|
1268
|
+
])) : isNaN(e(i)) && !e(u) ? (d(), v("div", Xn, [
|
|
1270
1269
|
s("span", null, h(e(o)("alert.info.selectHotelToStart")), 1)
|
|
1271
|
-
])) : (d(), v("div",
|
|
1272
|
-
y(
|
|
1273
|
-
y(
|
|
1274
|
-
y(
|
|
1270
|
+
])) : (d(), v("div", Zn, [
|
|
1271
|
+
y(ze),
|
|
1272
|
+
y(ze),
|
|
1273
|
+
y(ze)
|
|
1275
1274
|
]))
|
|
1276
1275
|
])
|
|
1277
1276
|
]),
|
|
1278
|
-
navigation:
|
|
1279
|
-
e(
|
|
1277
|
+
navigation: $(() => [
|
|
1278
|
+
e(Ae) ? (d(), H(me, {
|
|
1280
1279
|
key: 0,
|
|
1281
1280
|
label: isNaN(e(i)) ? e(o)("availability.buttonLabel") : e(o)("general.searchAgain"),
|
|
1282
1281
|
"is-loading": e(u),
|
|
1283
1282
|
"full-width": "",
|
|
1284
|
-
onClickEvent:
|
|
1285
|
-
}, null, 8, ["label", "is-loading"])) : (d(),
|
|
1283
|
+
onClickEvent: V[1] || (V[1] = (P) => lo())
|
|
1284
|
+
}, null, 8, ["label", "is-loading"])) : (d(), H(me, {
|
|
1286
1285
|
key: 1,
|
|
1287
|
-
label: e(
|
|
1288
|
-
disabled: !e(
|
|
1286
|
+
label: e(Pe) || je.value ? e(o)("booking.availability.nextButton") : e(o)("general.chooseAddons"),
|
|
1287
|
+
disabled: !e(ie),
|
|
1289
1288
|
"full-width": "",
|
|
1290
|
-
onClickEvent: (
|
|
1289
|
+
onClickEvent: (P) => ao(J)
|
|
1291
1290
|
}, null, 8, ["label", "disabled", "onClickEvent"]))
|
|
1292
1291
|
]),
|
|
1293
1292
|
_: 2
|
|
1294
1293
|
}, 1024)
|
|
1295
1294
|
]),
|
|
1296
|
-
addons:
|
|
1297
|
-
e(
|
|
1295
|
+
addons: $(({ next: J, prev: P }) => [
|
|
1296
|
+
e(ge) ? (d(), H(Ye, {
|
|
1298
1297
|
key: 0,
|
|
1299
|
-
"prev-callback": () =>
|
|
1298
|
+
"prev-callback": () => ut(P)
|
|
1300
1299
|
}, {
|
|
1301
|
-
form:
|
|
1302
|
-
s("form",
|
|
1300
|
+
form: $(() => [
|
|
1301
|
+
s("form", el, [
|
|
1303
1302
|
s("h2", null, [
|
|
1304
1303
|
s("span", null, h(e(o)("booking.reservation.addons")), 1)
|
|
1305
1304
|
]),
|
|
1306
1305
|
s("div", null, [
|
|
1307
|
-
isNaN(e(a)) ? (d(), v("div",
|
|
1308
|
-
(d(!0), v(
|
|
1309
|
-
key:
|
|
1306
|
+
isNaN(e(a)) ? (d(), v("div", tl, [
|
|
1307
|
+
(d(!0), v(U, null, q(e(ae), (I) => (d(), v("ul", {
|
|
1308
|
+
key: I.roomGroupID
|
|
1310
1309
|
}, [
|
|
1311
|
-
(d(!0), v(
|
|
1312
|
-
key:
|
|
1310
|
+
(d(!0), v(U, null, q(I.variants, (k, L) => (d(), v("li", {
|
|
1311
|
+
key: k.ratePlanID
|
|
1313
1312
|
}, [
|
|
1314
1313
|
s("h4", null, [
|
|
1315
|
-
s("span", null, h(e(pe)(
|
|
1314
|
+
s("span", null, h(e(pe)(I.title)), 1)
|
|
1316
1315
|
]),
|
|
1317
|
-
(d(!0), v(
|
|
1318
|
-
key:
|
|
1316
|
+
(d(!0), v(U, null, q(k.rooms, (N, te) => (d(), v("table", {
|
|
1317
|
+
key: te,
|
|
1319
1318
|
class: "konnectio-table with-lines"
|
|
1320
1319
|
}, [
|
|
1321
1320
|
s("thead", null, [
|
|
1322
1321
|
s("tr", null, [
|
|
1323
1322
|
s("th", null, [
|
|
1324
|
-
s("span", null, h(e(pe)(
|
|
1323
|
+
s("span", null, h(e(pe)(k.name)), 1)
|
|
1325
1324
|
]),
|
|
1326
|
-
|
|
1327
|
-
s("th",
|
|
1325
|
+
T("", !0),
|
|
1326
|
+
s("th", ol, [
|
|
1328
1327
|
s("b", null, [
|
|
1329
1328
|
y(W, {
|
|
1330
1329
|
icon: "male",
|
|
1331
1330
|
type: "fas",
|
|
1332
1331
|
color: "font"
|
|
1333
1332
|
}),
|
|
1334
|
-
s("span", null, h(
|
|
1335
|
-
|
|
1333
|
+
s("span", null, h(N.adultsCount), 1),
|
|
1334
|
+
N.childrenCount > 0 ? (d(), H(W, {
|
|
1336
1335
|
key: 0,
|
|
1337
1336
|
icon: "child",
|
|
1338
1337
|
type: "fas",
|
|
1339
1338
|
color: "font"
|
|
1340
|
-
})) :
|
|
1341
|
-
|
|
1339
|
+
})) : T("", !0),
|
|
1340
|
+
N.childrenCount > 0 ? (d(), v("span", nl, h(N.childrenCount), 1)) : T("", !0)
|
|
1342
1341
|
])
|
|
1343
1342
|
])
|
|
1344
1343
|
])
|
|
1345
1344
|
]),
|
|
1346
1345
|
s("tbody", null, [
|
|
1347
|
-
(d(!0), v(
|
|
1348
|
-
quantityStrategy:
|
|
1349
|
-
maximumNumber:
|
|
1346
|
+
(d(!0), v(U, null, q(e(dt)(k.addons, N.childrenCount), ({
|
|
1347
|
+
quantityStrategy: Q,
|
|
1348
|
+
maximumNumber: ke,
|
|
1350
1349
|
id: de,
|
|
1351
|
-
name:
|
|
1352
|
-
price:
|
|
1350
|
+
name: so,
|
|
1351
|
+
price: ro
|
|
1353
1352
|
}) => (d(), v("tr", { key: de }, [
|
|
1354
|
-
s("td",
|
|
1355
|
-
s("b", null, h(e(pe)(
|
|
1356
|
-
s("span", null, h(e(
|
|
1353
|
+
s("td", ll, [
|
|
1354
|
+
s("b", null, h(e(pe)(so)), 1),
|
|
1355
|
+
s("span", null, h(e(ne)(ro, e(Fe))) + " " + h(e(pt)(Q)), 1)
|
|
1357
1356
|
]),
|
|
1358
|
-
s("td",
|
|
1359
|
-
e(
|
|
1360
|
-
|
|
1357
|
+
s("td", al, [
|
|
1358
|
+
e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx] ? (d(), v(U, { key: 0 }, [
|
|
1359
|
+
Q === 1 || Q === 12 ? (d(), H(et, {
|
|
1361
1360
|
key: 0,
|
|
1362
|
-
modelValue: e(
|
|
1363
|
-
"onUpdate:modelValue": (
|
|
1361
|
+
modelValue: e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de],
|
|
1362
|
+
"onUpdate:modelValue": (We) => e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de] = We,
|
|
1364
1363
|
small: !0,
|
|
1365
1364
|
"min-value": 0,
|
|
1366
|
-
"max-value":
|
|
1367
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(),
|
|
1365
|
+
"max-value": ke || 1 / 0
|
|
1366
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), H($e, {
|
|
1368
1367
|
key: 1,
|
|
1369
|
-
modelValue: e(
|
|
1370
|
-
"onUpdate:modelValue": (
|
|
1368
|
+
modelValue: e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de],
|
|
1369
|
+
"onUpdate:modelValue": (We) => e(E)[I.roomGroupID][L].config[N.configIdx].addons[N.roomIdx][de] = We,
|
|
1371
1370
|
numeric: !0
|
|
1372
1371
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1373
|
-
], 64)) :
|
|
1372
|
+
], 64)) : T("", !0)
|
|
1374
1373
|
])
|
|
1375
1374
|
]))), 128))
|
|
1376
1375
|
])
|
|
1377
1376
|
]))), 128))
|
|
1378
1377
|
]))), 128))
|
|
1379
1378
|
]))), 128))
|
|
1380
|
-
])) : e(
|
|
1379
|
+
])) : e(be) ? (d(), v("div", il, [
|
|
1381
1380
|
s("div", null, [
|
|
1382
1381
|
s("h4", null, [
|
|
1383
|
-
s("span", null, h(e(
|
|
1382
|
+
s("span", null, h(e(_e).name), 1)
|
|
1384
1383
|
]),
|
|
1385
|
-
s("table",
|
|
1384
|
+
s("table", sl, [
|
|
1386
1385
|
s("thead", null, [
|
|
1387
1386
|
s("tr", null, [
|
|
1388
1387
|
s("th", null, [
|
|
1389
|
-
s("span", null, h(e(pe)(e(
|
|
1388
|
+
s("span", null, h(e(pe)(e(be).title)), 1)
|
|
1390
1389
|
]),
|
|
1391
|
-
|
|
1392
|
-
|
|
1390
|
+
T("", !0),
|
|
1391
|
+
V[19] || (V[19] = s("th", { class: "konnectio-event-addons-price" }, null, -1))
|
|
1393
1392
|
])
|
|
1394
1393
|
]),
|
|
1395
1394
|
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(
|
|
1395
|
+
(d(!0), v(U, null, q(e(dt)(e(be).addons, e(ee)), ({
|
|
1396
|
+
quantityStrategy: I,
|
|
1397
|
+
maximumNumber: k,
|
|
1398
|
+
id: L,
|
|
1399
|
+
name: N,
|
|
1400
|
+
price: te
|
|
1401
|
+
}) => (d(), v("tr", { key: L }, [
|
|
1402
|
+
s("td", rl, [
|
|
1403
|
+
s("b", null, h(e(pe)(N)), 1),
|
|
1404
|
+
s("span", null, h(e(ne)(te, e(Fe))) + " " + h(e(pt)(I)), 1)
|
|
1406
1405
|
]),
|
|
1407
|
-
s("td",
|
|
1408
|
-
|
|
1406
|
+
s("td", dl, [
|
|
1407
|
+
I === 1 || I === 12 ? (d(), H(et, {
|
|
1409
1408
|
key: 0,
|
|
1410
|
-
modelValue: e(r)[
|
|
1411
|
-
"onUpdate:modelValue": (
|
|
1409
|
+
modelValue: e(r)[L],
|
|
1410
|
+
"onUpdate:modelValue": (Q) => e(r)[L] = Q,
|
|
1412
1411
|
small: !0,
|
|
1413
1412
|
"min-value": 0,
|
|
1414
|
-
"max-value":
|
|
1415
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(),
|
|
1413
|
+
"max-value": k || 1 / 0
|
|
1414
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), H($e, {
|
|
1416
1415
|
key: 1,
|
|
1417
|
-
modelValue: e(r)[
|
|
1418
|
-
"onUpdate:modelValue": (
|
|
1416
|
+
modelValue: e(r)[L],
|
|
1417
|
+
"onUpdate:modelValue": (Q) => e(r)[L] = Q,
|
|
1419
1418
|
numeric: !0
|
|
1420
1419
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1421
1420
|
])
|
|
@@ -1423,11 +1422,11 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1423
1422
|
])
|
|
1424
1423
|
])
|
|
1425
1424
|
])
|
|
1426
|
-
])) :
|
|
1425
|
+
])) : T("", !0)
|
|
1427
1426
|
])
|
|
1428
1427
|
])
|
|
1429
1428
|
]),
|
|
1430
|
-
navigation:
|
|
1429
|
+
navigation: $(() => [
|
|
1431
1430
|
y(me, {
|
|
1432
1431
|
label: e(o)("general.startReservation"),
|
|
1433
1432
|
"full-width": "",
|
|
@@ -1435,53 +1434,53 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1435
1434
|
}, null, 8, ["label", "onClickEvent"])
|
|
1436
1435
|
]),
|
|
1437
1436
|
_: 2
|
|
1438
|
-
}, 1032, ["prev-callback"])) :
|
|
1437
|
+
}, 1032, ["prev-callback"])) : T("", !0)
|
|
1439
1438
|
]),
|
|
1440
|
-
reservation:
|
|
1441
|
-
e(
|
|
1439
|
+
reservation: $(({ next: J, prev: P, reset: I }) => [
|
|
1440
|
+
e(ge) ? (d(), H(Ye, {
|
|
1442
1441
|
key: 0,
|
|
1443
|
-
"prev-callback": () =>
|
|
1442
|
+
"prev-callback": () => ut(P),
|
|
1444
1443
|
"show-terms-notice": !0,
|
|
1445
1444
|
"show-gift-card": !0
|
|
1446
1445
|
}, {
|
|
1447
|
-
form:
|
|
1448
|
-
s("form",
|
|
1446
|
+
form: $(() => [
|
|
1447
|
+
s("form", ul, [
|
|
1449
1448
|
s("h2", null, [
|
|
1450
1449
|
s("span", null, h(e(o)("booking.reservation.detailsTitle")), 1)
|
|
1451
1450
|
]),
|
|
1452
|
-
|
|
1451
|
+
e(qt)(e(i)) && e(Ge)(e(i)) && e(qe)(e(i)) ? (d(), v("ul", {
|
|
1453
1452
|
key: 0,
|
|
1454
|
-
class:
|
|
1453
|
+
class: Me(["konnectio-reservation-timepicker", { "konnectio-split-inputs": e(Ge)(e(i)) && e(qe)(e(i)) }])
|
|
1455
1454
|
}, [
|
|
1456
|
-
e(
|
|
1457
|
-
y(
|
|
1458
|
-
modelValue: e(
|
|
1459
|
-
"onUpdate:modelValue":
|
|
1455
|
+
e(Ge)(e(i)) ? (d(), v("li", cl, [
|
|
1456
|
+
y(ft, {
|
|
1457
|
+
modelValue: e(g),
|
|
1458
|
+
"onUpdate:modelValue": V[2] || (V[2] = (k) => F(g) ? g.value = k : null),
|
|
1460
1459
|
label: e(o)("booking.reservation.arrivalTime"),
|
|
1461
1460
|
icon: "hourglass-start",
|
|
1462
|
-
"min-time": e(
|
|
1463
|
-
"max-time": e(
|
|
1461
|
+
"min-time": e(jt)(e(i)),
|
|
1462
|
+
"max-time": e(Wt)(e(i)),
|
|
1464
1463
|
required: ""
|
|
1465
1464
|
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
1466
|
-
])),
|
|
1467
|
-
e(
|
|
1468
|
-
y(
|
|
1469
|
-
modelValue: e(
|
|
1470
|
-
"onUpdate:modelValue":
|
|
1465
|
+
])) : T("", !0),
|
|
1466
|
+
e(qe)(e(i)) ? (d(), v("li", pl, [
|
|
1467
|
+
y(ft, {
|
|
1468
|
+
modelValue: e(w),
|
|
1469
|
+
"onUpdate:modelValue": V[3] || (V[3] = (k) => F(w) ? w.value = k : null),
|
|
1471
1470
|
label: e(o)("booking.reservation.departureTime"),
|
|
1472
1471
|
icon: "hourglass-end",
|
|
1473
|
-
"min-time": e(
|
|
1474
|
-
"max-time": e(
|
|
1472
|
+
"min-time": e(xt)(e(i)),
|
|
1473
|
+
"max-time": e(Kt)(e(i)),
|
|
1475
1474
|
required: ""
|
|
1476
1475
|
}, 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(
|
|
1476
|
+
])) : T("", !0)
|
|
1477
|
+
], 2)) : T("", !0),
|
|
1478
|
+
y(Cn, {
|
|
1479
|
+
modelValue: e(C),
|
|
1480
|
+
"onUpdate:modelValue": V[4] || (V[4] = (k) => F(C) ? C.value = k : null),
|
|
1481
|
+
title: e(S),
|
|
1482
|
+
"onUpdate:title": V[5] || (V[5] = (k) => F(S) ? S.value = k : null),
|
|
1483
|
+
"exclude-title": e(Bt),
|
|
1485
1484
|
label: e(o)("booking.reservation.name"),
|
|
1486
1485
|
icon: "user-alt",
|
|
1487
1486
|
placeholder: e(o)("booking.reservation.namePlaceholder"),
|
|
@@ -1489,7 +1488,7 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1489
1488
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1490
1489
|
y(ue, {
|
|
1491
1490
|
modelValue: e(G),
|
|
1492
|
-
"onUpdate:modelValue":
|
|
1491
|
+
"onUpdate:modelValue": V[6] || (V[6] = (k) => F(G) ? G.value = k : null),
|
|
1493
1492
|
type: "email",
|
|
1494
1493
|
name: "email",
|
|
1495
1494
|
autocomplete: "email",
|
|
@@ -1499,19 +1498,19 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1499
1498
|
placeholder: e(o)("booking.reservation.emailPlaceholder"),
|
|
1500
1499
|
required: ""
|
|
1501
1500
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1502
|
-
e(
|
|
1501
|
+
e(Gt) ? T("", !0) : (d(), v("div", ml, [
|
|
1503
1502
|
y($e, {
|
|
1504
1503
|
modelValue: e(he),
|
|
1505
|
-
"onUpdate:modelValue":
|
|
1504
|
+
"onUpdate:modelValue": V[7] || (V[7] = (k) => F(he) ? he.value = k : null),
|
|
1506
1505
|
type: "checkbox",
|
|
1507
1506
|
name: "newsletter",
|
|
1508
1507
|
label: e(o)("booking.reservation.newsletterSignUp")
|
|
1509
1508
|
}, null, 8, ["modelValue", "label"])
|
|
1510
1509
|
])),
|
|
1511
|
-
e(
|
|
1510
|
+
e(Ut) ? T("", !0) : (d(), H(ue, {
|
|
1512
1511
|
key: 2,
|
|
1513
|
-
modelValue: e(
|
|
1514
|
-
"onUpdate:modelValue":
|
|
1512
|
+
modelValue: e(K),
|
|
1513
|
+
"onUpdate:modelValue": V[8] || (V[8] = (k) => F(K) ? K.value = k : null),
|
|
1515
1514
|
type: "text",
|
|
1516
1515
|
name: "firm",
|
|
1517
1516
|
autocomplete: "firm",
|
|
@@ -1519,25 +1518,25 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1519
1518
|
icon: "id-card",
|
|
1520
1519
|
placeholder: e(o)("booking.reservation.companyNamePlaceholder")
|
|
1521
1520
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1522
|
-
y(
|
|
1523
|
-
modelValue: e(
|
|
1524
|
-
"onUpdate:modelValue":
|
|
1521
|
+
y(Oo, {
|
|
1522
|
+
modelValue: e(D),
|
|
1523
|
+
"onUpdate:modelValue": V[9] || (V[9] = (k) => F(D) ? D.value = k : null),
|
|
1525
1524
|
icon: "phone-office",
|
|
1526
1525
|
label: e(o)("booking.reservation.phone"),
|
|
1527
1526
|
placeholder: e(o)("booking.reservation.phonePlaceholder"),
|
|
1528
1527
|
required: ""
|
|
1529
1528
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1530
|
-
y(
|
|
1529
|
+
y(wn, {
|
|
1531
1530
|
modelValue: e(z),
|
|
1532
|
-
"onUpdate:modelValue":
|
|
1531
|
+
"onUpdate:modelValue": V[10] || (V[10] = (k) => F(z) ? z.value = k : null),
|
|
1533
1532
|
label: e(o)("booking.reservation.country"),
|
|
1534
1533
|
placeholder: e(o)("booking.reservation.countryPlaceholder"),
|
|
1535
1534
|
options: e(f),
|
|
1536
1535
|
required: ""
|
|
1537
1536
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1538
1537
|
y(ue, {
|
|
1539
|
-
modelValue: e(
|
|
1540
|
-
"onUpdate:modelValue":
|
|
1538
|
+
modelValue: e(M),
|
|
1539
|
+
"onUpdate:modelValue": V[11] || (V[11] = (k) => F(M) ? M.value = k : null),
|
|
1541
1540
|
type: "textarea",
|
|
1542
1541
|
name: "address",
|
|
1543
1542
|
autocomplete: "street-address",
|
|
@@ -1546,11 +1545,11 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1546
1545
|
placeholder: e(o)("booking.reservation.streetAddressPlaceholder"),
|
|
1547
1546
|
required: ""
|
|
1548
1547
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1549
|
-
s("ul",
|
|
1548
|
+
s("ul", fl, [
|
|
1550
1549
|
s("li", null, [
|
|
1551
1550
|
y(ue, {
|
|
1552
|
-
modelValue: e(
|
|
1553
|
-
"onUpdate:modelValue":
|
|
1551
|
+
modelValue: e(_),
|
|
1552
|
+
"onUpdate:modelValue": V[12] || (V[12] = (k) => F(_) ? _.value = k : null),
|
|
1554
1553
|
type: "text",
|
|
1555
1554
|
name: "postal",
|
|
1556
1555
|
autocomplete: "postal-code",
|
|
@@ -1562,8 +1561,8 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1562
1561
|
]),
|
|
1563
1562
|
s("li", null, [
|
|
1564
1563
|
y(ue, {
|
|
1565
|
-
modelValue: e(
|
|
1566
|
-
"onUpdate:modelValue":
|
|
1564
|
+
modelValue: e(A),
|
|
1565
|
+
"onUpdate:modelValue": V[13] || (V[13] = (k) => F(A) ? A.value = k : null),
|
|
1567
1566
|
type: "text",
|
|
1568
1567
|
name: "city",
|
|
1569
1568
|
autocomplete: "address-level2",
|
|
@@ -1576,7 +1575,7 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1576
1575
|
]),
|
|
1577
1576
|
y(ue, {
|
|
1578
1577
|
modelValue: e(R),
|
|
1579
|
-
"onUpdate:modelValue":
|
|
1578
|
+
"onUpdate:modelValue": V[14] || (V[14] = (k) => F(R) ? R.value = k : null),
|
|
1580
1579
|
type: "textarea",
|
|
1581
1580
|
label: `${e(o)("booking.reservation.remark")} (${e(o)("booking.reservation.optional")})`,
|
|
1582
1581
|
icon: "info-circle",
|
|
@@ -1584,41 +1583,41 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1584
1583
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1585
1584
|
y(ue, {
|
|
1586
1585
|
modelValue: e(Y),
|
|
1587
|
-
"onUpdate:modelValue":
|
|
1586
|
+
"onUpdate:modelValue": V[15] || (V[15] = (k) => F(Y) ? Y.value = k : null),
|
|
1588
1587
|
type: "textarea",
|
|
1589
1588
|
label: `${e(o)("booking.reservation.allergies")} (${e(o)("booking.reservation.optional")})`,
|
|
1590
1589
|
icon: "allergies",
|
|
1591
1590
|
placeholder: e(o)("booking.reservation.allergiesPlaceholder")
|
|
1592
1591
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1593
|
-
e(
|
|
1592
|
+
e(Rt) ? T("", !0) : (d(), H(Io, {
|
|
1594
1593
|
key: 3,
|
|
1595
1594
|
modelValue: e(m),
|
|
1596
|
-
"onUpdate:modelValue":
|
|
1595
|
+
"onUpdate:modelValue": V[16] || (V[16] = (k) => F(m) ? m.value = k : null),
|
|
1597
1596
|
label: `${e(o)("booking.reservation.purposeOfStay")} (${e(o)("booking.reservation.optional")})`,
|
|
1598
1597
|
name: "travelingFor",
|
|
1599
|
-
checkboxes:
|
|
1598
|
+
checkboxes: to.value
|
|
1600
1599
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
1601
1600
|
])
|
|
1602
1601
|
]),
|
|
1603
|
-
navigation:
|
|
1602
|
+
navigation: $(() => [
|
|
1604
1603
|
s("div", null, [
|
|
1605
1604
|
y(me, {
|
|
1606
|
-
label: e(
|
|
1607
|
-
disabled: !e(
|
|
1608
|
-
"is-loading": e(
|
|
1605
|
+
label: e(Et) ? e(o)("booking.reservation.nextButton") : e(o)("general.confirmReservation"),
|
|
1606
|
+
disabled: !e(p),
|
|
1607
|
+
"is-loading": e(c),
|
|
1609
1608
|
"full-width": "",
|
|
1610
|
-
onClickEvent: (
|
|
1609
|
+
onClickEvent: (k) => no(J, I)
|
|
1611
1610
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
1612
1611
|
])
|
|
1613
1612
|
]),
|
|
1614
1613
|
_: 2
|
|
1615
|
-
}, 1032, ["prev-callback"])) :
|
|
1614
|
+
}, 1032, ["prev-callback"])) : T("", !0)
|
|
1616
1615
|
]),
|
|
1617
|
-
payment:
|
|
1618
|
-
y(
|
|
1616
|
+
payment: $(() => [
|
|
1617
|
+
y(Fo)
|
|
1619
1618
|
]),
|
|
1620
|
-
confirmation:
|
|
1621
|
-
y(
|
|
1619
|
+
confirmation: $(() => [
|
|
1620
|
+
y(No, {
|
|
1622
1621
|
message: e(o)("booking.confirmation.thankYou")
|
|
1623
1622
|
}, null, 8, ["message"])
|
|
1624
1623
|
]),
|
|
@@ -1628,8 +1627,8 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1628
1627
|
_: 1
|
|
1629
1628
|
}, 8, ["access-token", "callback"])
|
|
1630
1629
|
]),
|
|
1631
|
-
fallback:
|
|
1632
|
-
y(
|
|
1630
|
+
fallback: $(() => [
|
|
1631
|
+
y(Dn)
|
|
1633
1632
|
]),
|
|
1634
1633
|
_: 1
|
|
1635
1634
|
}))
|
|
@@ -1637,36 +1636,36 @@ const hl = /* @__PURE__ */ Un(() => /* @__PURE__ */ s("th", { class: "konnectio-
|
|
|
1637
1636
|
_: 1
|
|
1638
1637
|
}, 8, ["styling"]));
|
|
1639
1638
|
}
|
|
1640
|
-
}),
|
|
1641
|
-
function
|
|
1642
|
-
for (const o in
|
|
1643
|
-
const i =
|
|
1644
|
-
typeof i == "object" && i !== null ?
|
|
1639
|
+
}), ht = /* @__PURE__ */ fe(hl, [["__scopeId", "data-v-77d495ab"]]);
|
|
1640
|
+
function tt(l, t = {}, n) {
|
|
1641
|
+
for (const o in l) {
|
|
1642
|
+
const i = l[o], a = n ? `${n}:${o}` : o;
|
|
1643
|
+
typeof i == "object" && i !== null ? tt(i, t, a) : typeof i == "function" && (t[a] = i);
|
|
1645
1644
|
}
|
|
1646
1645
|
return t;
|
|
1647
1646
|
}
|
|
1648
|
-
const
|
|
1649
|
-
function
|
|
1650
|
-
const
|
|
1651
|
-
return
|
|
1647
|
+
const vl = { run: (l) => l() }, yl = () => vl, At = typeof console.createTask < "u" ? console.createTask : yl;
|
|
1648
|
+
function kl(l, t) {
|
|
1649
|
+
const n = t.shift(), o = At(n);
|
|
1650
|
+
return l.reduce(
|
|
1652
1651
|
(i, a) => i.then(() => o.run(() => a(...t))),
|
|
1653
1652
|
Promise.resolve()
|
|
1654
1653
|
);
|
|
1655
1654
|
}
|
|
1656
|
-
function
|
|
1657
|
-
const
|
|
1658
|
-
return Promise.all(
|
|
1655
|
+
function gl(l, t) {
|
|
1656
|
+
const n = t.shift(), o = At(n);
|
|
1657
|
+
return Promise.all(l.map((i) => o.run(() => i(...t))));
|
|
1659
1658
|
}
|
|
1660
|
-
function
|
|
1661
|
-
for (const
|
|
1662
|
-
|
|
1659
|
+
function Qe(l, t) {
|
|
1660
|
+
for (const n of [...l])
|
|
1661
|
+
n(t);
|
|
1663
1662
|
}
|
|
1664
|
-
class
|
|
1663
|
+
class bl {
|
|
1665
1664
|
constructor() {
|
|
1666
1665
|
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
1666
|
}
|
|
1668
|
-
hook(t,
|
|
1669
|
-
if (!t || typeof
|
|
1667
|
+
hook(t, n, o = {}) {
|
|
1668
|
+
if (!t || typeof n != "function")
|
|
1670
1669
|
return () => {
|
|
1671
1670
|
};
|
|
1672
1671
|
const i = t;
|
|
@@ -1677,30 +1676,30 @@ class Al {
|
|
|
1677
1676
|
let r = a.message;
|
|
1678
1677
|
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
1678
|
}
|
|
1680
|
-
if (!
|
|
1679
|
+
if (!n.name)
|
|
1681
1680
|
try {
|
|
1682
|
-
Object.defineProperty(
|
|
1681
|
+
Object.defineProperty(n, "name", {
|
|
1683
1682
|
get: () => "_" + t.replace(/\W+/g, "_") + "_hook_cb",
|
|
1684
1683
|
configurable: !0
|
|
1685
1684
|
});
|
|
1686
1685
|
} catch {
|
|
1687
1686
|
}
|
|
1688
|
-
return this._hooks[t] = this._hooks[t] || [], this._hooks[t].push(
|
|
1689
|
-
|
|
1687
|
+
return this._hooks[t] = this._hooks[t] || [], this._hooks[t].push(n), () => {
|
|
1688
|
+
n && (this.removeHook(t, n), n = void 0);
|
|
1690
1689
|
};
|
|
1691
1690
|
}
|
|
1692
|
-
hookOnce(t,
|
|
1693
|
-
let o, i = (...a) => (typeof o == "function" && o(), o = void 0, i = void 0,
|
|
1691
|
+
hookOnce(t, n) {
|
|
1692
|
+
let o, i = (...a) => (typeof o == "function" && o(), o = void 0, i = void 0, n(...a));
|
|
1694
1693
|
return o = this.hook(t, i), o;
|
|
1695
1694
|
}
|
|
1696
|
-
removeHook(t,
|
|
1695
|
+
removeHook(t, n) {
|
|
1697
1696
|
if (this._hooks[t]) {
|
|
1698
|
-
const o = this._hooks[t].indexOf(
|
|
1697
|
+
const o = this._hooks[t].indexOf(n);
|
|
1699
1698
|
o !== -1 && this._hooks[t].splice(o, 1), this._hooks[t].length === 0 && delete this._hooks[t];
|
|
1700
1699
|
}
|
|
1701
1700
|
}
|
|
1702
|
-
deprecateHook(t,
|
|
1703
|
-
this._deprecatedHooks[t] = typeof
|
|
1701
|
+
deprecateHook(t, n) {
|
|
1702
|
+
this._deprecatedHooks[t] = typeof n == "string" ? { to: n } : n;
|
|
1704
1703
|
const o = this._hooks[t] || [];
|
|
1705
1704
|
delete this._hooks[t];
|
|
1706
1705
|
for (const i of o)
|
|
@@ -1708,12 +1707,12 @@ class Al {
|
|
|
1708
1707
|
}
|
|
1709
1708
|
deprecateHooks(t) {
|
|
1710
1709
|
Object.assign(this._deprecatedHooks, t);
|
|
1711
|
-
for (const
|
|
1712
|
-
this.deprecateHook(
|
|
1710
|
+
for (const n in t)
|
|
1711
|
+
this.deprecateHook(n, t[n]);
|
|
1713
1712
|
}
|
|
1714
1713
|
addHooks(t) {
|
|
1715
|
-
const
|
|
1716
|
-
(i) => this.hook(i,
|
|
1714
|
+
const n = tt(t), o = Object.keys(n).map(
|
|
1715
|
+
(i) => this.hook(i, n[i])
|
|
1717
1716
|
);
|
|
1718
1717
|
return () => {
|
|
1719
1718
|
for (const i of o.splice(0, o.length))
|
|
@@ -1721,59 +1720,59 @@ class Al {
|
|
|
1721
1720
|
};
|
|
1722
1721
|
}
|
|
1723
1722
|
removeHooks(t) {
|
|
1724
|
-
const
|
|
1725
|
-
for (const o in
|
|
1726
|
-
this.removeHook(o,
|
|
1723
|
+
const n = tt(t);
|
|
1724
|
+
for (const o in n)
|
|
1725
|
+
this.removeHook(o, n[o]);
|
|
1727
1726
|
}
|
|
1728
1727
|
removeAllHooks() {
|
|
1729
1728
|
for (const t in this._hooks)
|
|
1730
1729
|
delete this._hooks[t];
|
|
1731
1730
|
}
|
|
1732
|
-
callHook(t, ...
|
|
1733
|
-
return
|
|
1731
|
+
callHook(t, ...n) {
|
|
1732
|
+
return n.unshift(t), this.callHookWith(kl, t, ...n);
|
|
1734
1733
|
}
|
|
1735
|
-
callHookParallel(t, ...
|
|
1736
|
-
return
|
|
1734
|
+
callHookParallel(t, ...n) {
|
|
1735
|
+
return n.unshift(t), this.callHookWith(gl, t, ...n);
|
|
1737
1736
|
}
|
|
1738
|
-
callHookWith(t,
|
|
1739
|
-
const i = this._before || this._after ? { name:
|
|
1740
|
-
this._before &&
|
|
1737
|
+
callHookWith(t, n, ...o) {
|
|
1738
|
+
const i = this._before || this._after ? { name: n, args: o, context: {} } : void 0;
|
|
1739
|
+
this._before && Qe(this._before, i);
|
|
1741
1740
|
const a = t(
|
|
1742
|
-
|
|
1741
|
+
n in this._hooks ? [...this._hooks[n]] : [],
|
|
1743
1742
|
o
|
|
1744
1743
|
);
|
|
1745
1744
|
return a instanceof Promise ? a.finally(() => {
|
|
1746
|
-
this._after && i &&
|
|
1747
|
-
}) : (this._after && i &&
|
|
1745
|
+
this._after && i && Qe(this._after, i);
|
|
1746
|
+
}) : (this._after && i && Qe(this._after, i), a);
|
|
1748
1747
|
}
|
|
1749
1748
|
beforeEach(t) {
|
|
1750
1749
|
return this._before = this._before || [], this._before.push(t), () => {
|
|
1751
1750
|
if (this._before !== void 0) {
|
|
1752
|
-
const
|
|
1753
|
-
|
|
1751
|
+
const n = this._before.indexOf(t);
|
|
1752
|
+
n !== -1 && this._before.splice(n, 1);
|
|
1754
1753
|
}
|
|
1755
1754
|
};
|
|
1756
1755
|
}
|
|
1757
1756
|
afterEach(t) {
|
|
1758
1757
|
return this._after = this._after || [], this._after.push(t), () => {
|
|
1759
1758
|
if (this._after !== void 0) {
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1759
|
+
const n = this._after.indexOf(t);
|
|
1760
|
+
n !== -1 && this._after.splice(n, 1);
|
|
1762
1761
|
}
|
|
1763
1762
|
};
|
|
1764
1763
|
}
|
|
1765
1764
|
}
|
|
1766
|
-
function
|
|
1767
|
-
return new
|
|
1765
|
+
function _l() {
|
|
1766
|
+
return new bl();
|
|
1768
1767
|
}
|
|
1769
|
-
const
|
|
1768
|
+
const Vl = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]), Ie = /* @__PURE__ */ new Set([
|
|
1770
1769
|
"base",
|
|
1771
1770
|
"meta",
|
|
1772
1771
|
"link",
|
|
1773
1772
|
"style",
|
|
1774
1773
|
"script",
|
|
1775
1774
|
"noscript"
|
|
1776
|
-
]),
|
|
1775
|
+
]), Tl = /* @__PURE__ */ new Set([
|
|
1777
1776
|
"title",
|
|
1778
1777
|
"titleTemplate",
|
|
1779
1778
|
"templateParams",
|
|
@@ -1785,301 +1784,301 @@ const Hl = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style",
|
|
|
1785
1784
|
"style",
|
|
1786
1785
|
"script",
|
|
1787
1786
|
"noscript"
|
|
1788
|
-
]),
|
|
1789
|
-
function
|
|
1787
|
+
]), 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";
|
|
1788
|
+
function Be(l) {
|
|
1790
1789
|
let t = 9;
|
|
1791
|
-
for (let
|
|
1792
|
-
t = Math.imul(t ^
|
|
1790
|
+
for (let n = 0; n < l.length; )
|
|
1791
|
+
t = Math.imul(t ^ l.charCodeAt(n++), 9 ** 9);
|
|
1793
1792
|
return ((t ^ t >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
1794
1793
|
}
|
|
1795
|
-
function
|
|
1796
|
-
if (
|
|
1797
|
-
return
|
|
1798
|
-
if (
|
|
1799
|
-
return
|
|
1800
|
-
let t = `${
|
|
1801
|
-
for (const
|
|
1802
|
-
t += `${
|
|
1803
|
-
return
|
|
1794
|
+
function vt(l) {
|
|
1795
|
+
if (l._h)
|
|
1796
|
+
return l._h;
|
|
1797
|
+
if (l._d)
|
|
1798
|
+
return Be(l._d);
|
|
1799
|
+
let t = `${l.tag}:${l.textContent || l.innerHTML || ""}:`;
|
|
1800
|
+
for (const n in l.props)
|
|
1801
|
+
t += `${n}:${l.props[n]},`;
|
|
1802
|
+
return Be(t);
|
|
1804
1803
|
}
|
|
1805
|
-
const
|
|
1806
|
-
function
|
|
1807
|
-
const { props: t, tag:
|
|
1808
|
-
if (
|
|
1809
|
-
return
|
|
1810
|
-
if (
|
|
1804
|
+
const Cl = ["name", "property", "http-equiv"];
|
|
1805
|
+
function St(l) {
|
|
1806
|
+
const { props: t, tag: n } = l;
|
|
1807
|
+
if (wl.has(n))
|
|
1808
|
+
return n;
|
|
1809
|
+
if (n === "link" && t.rel === "canonical")
|
|
1811
1810
|
return "canonical";
|
|
1812
1811
|
if (t.charset)
|
|
1813
1812
|
return "charset";
|
|
1814
1813
|
if (t.id)
|
|
1815
|
-
return `${
|
|
1816
|
-
for (const o of
|
|
1814
|
+
return `${n}:id:${t.id}`;
|
|
1815
|
+
for (const o of Cl)
|
|
1817
1816
|
if (t[o] !== void 0)
|
|
1818
|
-
return `${
|
|
1817
|
+
return `${n}:${o}:${t[o]}`;
|
|
1819
1818
|
return !1;
|
|
1820
1819
|
}
|
|
1821
|
-
function
|
|
1822
|
-
return
|
|
1820
|
+
function yt(l, t) {
|
|
1821
|
+
return l == null ? t || null : typeof l == "function" ? l(t) : l;
|
|
1823
1822
|
}
|
|
1824
|
-
function
|
|
1825
|
-
return
|
|
1823
|
+
function Pl(l, t) {
|
|
1824
|
+
return l instanceof Promise ? l.then(t) : t(l);
|
|
1826
1825
|
}
|
|
1827
|
-
function
|
|
1828
|
-
const i = o ||
|
|
1826
|
+
function ot(l, t, n, o) {
|
|
1827
|
+
const i = o || It(
|
|
1829
1828
|
// explicitly check for an object
|
|
1830
1829
|
// @ts-expect-error untyped
|
|
1831
|
-
typeof t == "object" && typeof t != "function" && !(t instanceof Promise) ? { ...t } : { [
|
|
1832
|
-
|
|
1830
|
+
typeof t == "object" && typeof t != "function" && !(t instanceof Promise) ? { ...t } : { [l === "script" || l === "noscript" || l === "style" ? "innerHTML" : "textContent"]: t },
|
|
1831
|
+
l === "templateParams" || l === "titleTemplate"
|
|
1833
1832
|
);
|
|
1834
1833
|
if (i instanceof Promise)
|
|
1835
|
-
return i.then((r) =>
|
|
1834
|
+
return i.then((r) => ot(l, t, n, r));
|
|
1836
1835
|
const a = {
|
|
1837
|
-
tag:
|
|
1836
|
+
tag: l,
|
|
1838
1837
|
props: i
|
|
1839
1838
|
};
|
|
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") ||
|
|
1839
|
+
for (const r of Ht) {
|
|
1840
|
+
const f = a.props[r] !== void 0 ? a.props[r] : n[r];
|
|
1841
|
+
f !== void 0 && ((!(r === "innerHTML" || r === "textContent" || r === "children") || Vl.has(a.tag)) && (a[r === "children" ? "innerHTML" : r] = f), delete a.props[r]);
|
|
1843
1842
|
}
|
|
1844
1843
|
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
1844
|
}
|
|
1846
|
-
function
|
|
1847
|
-
const
|
|
1848
|
-
return typeof t == "object" && !Array.isArray(t) && (t = Object.entries(t).filter(([, o]) => o).map(([o, i]) =>
|
|
1845
|
+
function Al(l, t) {
|
|
1846
|
+
const n = l === "class" ? " " : ";";
|
|
1847
|
+
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
1848
|
}
|
|
1850
|
-
function
|
|
1851
|
-
for (let i = o; i <
|
|
1852
|
-
const a =
|
|
1849
|
+
function Dt(l, t, n, o) {
|
|
1850
|
+
for (let i = o; i < n.length; i += 1) {
|
|
1851
|
+
const a = n[i];
|
|
1853
1852
|
if (a === "class" || a === "style") {
|
|
1854
|
-
|
|
1853
|
+
l[a] = Al(a, l[a]);
|
|
1855
1854
|
continue;
|
|
1856
1855
|
}
|
|
1857
|
-
if (
|
|
1858
|
-
return
|
|
1859
|
-
if (!t && !
|
|
1860
|
-
const r = String(
|
|
1861
|
-
r === "true" || r === "" ?
|
|
1856
|
+
if (l[a] instanceof Promise)
|
|
1857
|
+
return l[a].then((r) => (l[a] = r, Dt(l, t, n, i)));
|
|
1858
|
+
if (!t && !Ht.has(a)) {
|
|
1859
|
+
const r = String(l[a]), f = a.startsWith("data-");
|
|
1860
|
+
r === "true" || r === "" ? l[a] = f ? "true" : !0 : l[a] || (f && r === "false" ? l[a] = "false" : delete l[a]);
|
|
1862
1861
|
}
|
|
1863
1862
|
}
|
|
1864
1863
|
}
|
|
1865
|
-
function
|
|
1866
|
-
const
|
|
1867
|
-
return
|
|
1864
|
+
function It(l, t = !1) {
|
|
1865
|
+
const n = Dt(l, t, Object.keys(l), 0);
|
|
1866
|
+
return n instanceof Promise ? n.then(() => l) : l;
|
|
1868
1867
|
}
|
|
1869
|
-
const
|
|
1870
|
-
function
|
|
1871
|
-
for (let o =
|
|
1868
|
+
const Hl = 10;
|
|
1869
|
+
function Nt(l, t, n) {
|
|
1870
|
+
for (let o = n; o < t.length; o += 1) {
|
|
1872
1871
|
const i = t[o];
|
|
1873
1872
|
if (i instanceof Promise)
|
|
1874
|
-
return i.then((a) => (t[o] = a,
|
|
1875
|
-
Array.isArray(i) ?
|
|
1873
|
+
return i.then((a) => (t[o] = a, Nt(l, t, o)));
|
|
1874
|
+
Array.isArray(i) ? l.push(...i) : l.push(i);
|
|
1876
1875
|
}
|
|
1877
1876
|
}
|
|
1878
|
-
function
|
|
1879
|
-
const t = [],
|
|
1880
|
-
for (const i in
|
|
1881
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
1877
|
+
function Sl(l) {
|
|
1878
|
+
const t = [], n = l.resolvedInput;
|
|
1879
|
+
for (const i in n) {
|
|
1880
|
+
if (!Object.prototype.hasOwnProperty.call(n, i))
|
|
1882
1881
|
continue;
|
|
1883
|
-
const a =
|
|
1884
|
-
if (!(a === void 0 || !
|
|
1882
|
+
const a = n[i];
|
|
1883
|
+
if (!(a === void 0 || !Tl.has(i))) {
|
|
1885
1884
|
if (Array.isArray(a)) {
|
|
1886
1885
|
for (const r of a)
|
|
1887
|
-
t.push(
|
|
1886
|
+
t.push(ot(i, r, l));
|
|
1888
1887
|
continue;
|
|
1889
1888
|
}
|
|
1890
|
-
t.push(
|
|
1889
|
+
t.push(ot(i, a, l));
|
|
1891
1890
|
}
|
|
1892
1891
|
}
|
|
1893
1892
|
if (t.length === 0)
|
|
1894
1893
|
return [];
|
|
1895
1894
|
const o = [];
|
|
1896
|
-
return
|
|
1895
|
+
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
1896
|
}
|
|
1898
|
-
const
|
|
1897
|
+
const kt = {
|
|
1899
1898
|
// tags
|
|
1900
1899
|
base: -10,
|
|
1901
1900
|
title: 10
|
|
1902
|
-
},
|
|
1901
|
+
}, gt = {
|
|
1903
1902
|
// relative scores to their default values
|
|
1904
1903
|
critical: -80,
|
|
1905
1904
|
high: -10,
|
|
1906
1905
|
low: 20
|
|
1907
1906
|
};
|
|
1908
|
-
function Re(
|
|
1909
|
-
const t =
|
|
1907
|
+
function Re(l) {
|
|
1908
|
+
const t = l.tagPriority;
|
|
1910
1909
|
if (typeof t == "number")
|
|
1911
1910
|
return t;
|
|
1912
|
-
let
|
|
1913
|
-
return
|
|
1911
|
+
let n = 100;
|
|
1912
|
+
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
1913
|
}
|
|
1915
|
-
const
|
|
1916
|
-
function
|
|
1917
|
-
let
|
|
1914
|
+
const Dl = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], bt = /* @__PURE__ */ new Set(["onload", "onerror", "onabort", "onprogress", "onloadstart"]), ce = "%separator";
|
|
1915
|
+
function Il(l, t) {
|
|
1916
|
+
let n;
|
|
1918
1917
|
if (t === "s" || t === "pageTitle")
|
|
1919
|
-
|
|
1918
|
+
n = l.pageTitle;
|
|
1920
1919
|
else if (t.includes(".")) {
|
|
1921
1920
|
const o = t.indexOf(".");
|
|
1922
|
-
|
|
1921
|
+
n = l[t.substring(0, o)]?.[t.substring(o + 1)];
|
|
1923
1922
|
} else
|
|
1924
|
-
|
|
1925
|
-
return
|
|
1923
|
+
n = l[t];
|
|
1924
|
+
return n !== void 0 ? (n || "").replace(/"/g, '\\"') : void 0;
|
|
1926
1925
|
}
|
|
1927
|
-
const
|
|
1928
|
-
function
|
|
1929
|
-
if (typeof
|
|
1930
|
-
return
|
|
1931
|
-
let o =
|
|
1926
|
+
const Nl = new RegExp(`${ce}(?:\\s*${ce})*`, "g");
|
|
1927
|
+
function Xe(l, t, n) {
|
|
1928
|
+
if (typeof l != "string" || !l.includes("%"))
|
|
1929
|
+
return l;
|
|
1930
|
+
let o = l;
|
|
1932
1931
|
try {
|
|
1933
|
-
o = decodeURI(
|
|
1932
|
+
o = decodeURI(l);
|
|
1934
1933
|
} catch {
|
|
1935
1934
|
}
|
|
1936
1935
|
const i = o.match(/%\w+(?:\.\w+)?/g);
|
|
1937
1936
|
if (!i)
|
|
1938
|
-
return
|
|
1939
|
-
const a =
|
|
1940
|
-
return
|
|
1937
|
+
return l;
|
|
1938
|
+
const a = l.includes(ce);
|
|
1939
|
+
return l = l.replace(/%\w+(?:\.\w+)?/g, (r) => {
|
|
1941
1940
|
if (r === ce || !i.includes(r))
|
|
1942
1941
|
return r;
|
|
1943
|
-
const f =
|
|
1942
|
+
const f = Il(t, r.slice(1));
|
|
1944
1943
|
return f !== void 0 ? f : r;
|
|
1945
|
-
}).trim(), a && (
|
|
1944
|
+
}).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
1945
|
}
|
|
1947
|
-
async function
|
|
1948
|
-
const
|
|
1949
|
-
if (!
|
|
1946
|
+
async function Ml(l, t = {}) {
|
|
1947
|
+
const n = t.document || l.resolvedOptions.document;
|
|
1948
|
+
if (!n || !l.dirty)
|
|
1950
1949
|
return;
|
|
1951
1950
|
const o = { shouldRender: !0, tags: [] };
|
|
1952
|
-
if (await
|
|
1951
|
+
if (await l.hooks.callHook("dom:beforeRender", o), !o.shouldRender)
|
|
1953
1952
|
return;
|
|
1954
|
-
const i = (await
|
|
1955
|
-
tag:
|
|
1956
|
-
id: Ie.has(
|
|
1953
|
+
const i = (await l.resolveTags()).map((p) => ({
|
|
1954
|
+
tag: p,
|
|
1955
|
+
id: Ie.has(p.tag) ? vt(p) : p.tag,
|
|
1957
1956
|
shouldRender: !0
|
|
1958
1957
|
}));
|
|
1959
|
-
let a =
|
|
1958
|
+
let a = l._dom;
|
|
1960
1959
|
if (!a) {
|
|
1961
1960
|
a = {
|
|
1962
|
-
elMap: { htmlAttrs:
|
|
1961
|
+
elMap: { htmlAttrs: n.documentElement, bodyAttrs: n.body }
|
|
1963
1962
|
};
|
|
1964
|
-
const
|
|
1963
|
+
const p = /* @__PURE__ */ new Set();
|
|
1965
1964
|
for (const m of ["body", "head"]) {
|
|
1966
|
-
const
|
|
1967
|
-
for (const
|
|
1968
|
-
const
|
|
1969
|
-
if (!Ie.has(
|
|
1965
|
+
const g = n[m]?.children;
|
|
1966
|
+
for (const w of g) {
|
|
1967
|
+
const C = w.tagName.toLowerCase();
|
|
1968
|
+
if (!Ie.has(C))
|
|
1970
1969
|
continue;
|
|
1971
|
-
const
|
|
1972
|
-
tag:
|
|
1973
|
-
props: await
|
|
1974
|
-
|
|
1970
|
+
const S = {
|
|
1971
|
+
tag: C,
|
|
1972
|
+
props: await It(
|
|
1973
|
+
w.getAttributeNames().reduce((_, A) => ({ ..._, [A]: w.getAttribute(A) }), {})
|
|
1975
1974
|
),
|
|
1976
|
-
innerHTML:
|
|
1977
|
-
}, G =
|
|
1978
|
-
let
|
|
1979
|
-
for (;
|
|
1980
|
-
|
|
1981
|
-
|
|
1975
|
+
innerHTML: w.innerHTML
|
|
1976
|
+
}, G = St(S);
|
|
1977
|
+
let D = G, K = 1;
|
|
1978
|
+
for (; D && p.has(D); )
|
|
1979
|
+
D = `${G}:${K++}`;
|
|
1980
|
+
D && (S._d = D, p.add(D)), a.elMap[w.getAttribute("data-hid") || vt(S)] = w;
|
|
1982
1981
|
}
|
|
1983
1982
|
}
|
|
1984
1983
|
}
|
|
1985
1984
|
a.pendingSideEffects = { ...a.sideEffects }, a.sideEffects = {};
|
|
1986
|
-
function r(
|
|
1987
|
-
const
|
|
1988
|
-
a.sideEffects[
|
|
1985
|
+
function r(p, m, g) {
|
|
1986
|
+
const w = `${p}:${m}`;
|
|
1987
|
+
a.sideEffects[w] = g, delete a.pendingSideEffects[w];
|
|
1989
1988
|
}
|
|
1990
|
-
function f({ id:
|
|
1991
|
-
const
|
|
1992
|
-
if (a.elMap[
|
|
1993
|
-
a.elMap[
|
|
1994
|
-
})),
|
|
1995
|
-
for (const
|
|
1996
|
-
Object.prototype.hasOwnProperty.call(
|
|
1989
|
+
function f({ id: p, $el: m, tag: g }) {
|
|
1990
|
+
const w = g.tag.endsWith("Attrs");
|
|
1991
|
+
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", () => {
|
|
1992
|
+
a.elMap[p]?.remove(), delete a.elMap[p];
|
|
1993
|
+
})), g._eventHandlers)
|
|
1994
|
+
for (const C in g._eventHandlers)
|
|
1995
|
+
Object.prototype.hasOwnProperty.call(g._eventHandlers, C) && m.getAttribute(`data-${C}`) !== "" && ((g.tag === "bodyAttrs" ? n.defaultView : m).addEventListener(
|
|
1997
1996
|
// onload -> load
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
), m.setAttribute(`data-${
|
|
2001
|
-
for (const
|
|
2002
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
1997
|
+
C.substring(2),
|
|
1998
|
+
g._eventHandlers[C].bind(m)
|
|
1999
|
+
), m.setAttribute(`data-${C}`, ""));
|
|
2000
|
+
for (const C in g.props) {
|
|
2001
|
+
if (!Object.prototype.hasOwnProperty.call(g.props, C))
|
|
2003
2002
|
continue;
|
|
2004
|
-
const
|
|
2005
|
-
if (
|
|
2006
|
-
if (!
|
|
2003
|
+
const S = g.props[C], G = `attr:${C}`;
|
|
2004
|
+
if (C === "class") {
|
|
2005
|
+
if (!S)
|
|
2007
2006
|
continue;
|
|
2008
|
-
for (const
|
|
2009
|
-
|
|
2010
|
-
} else if (
|
|
2011
|
-
if (!
|
|
2007
|
+
for (const D of S.split(" "))
|
|
2008
|
+
w && r(p, `${G}:${D}`, () => m.classList.remove(D)), !m.classList.contains(D) && m.classList.add(D);
|
|
2009
|
+
} else if (C === "style") {
|
|
2010
|
+
if (!S)
|
|
2012
2011
|
continue;
|
|
2013
|
-
for (const
|
|
2014
|
-
const
|
|
2015
|
-
r(
|
|
2016
|
-
m.style.removeProperty(
|
|
2017
|
-
}), m.style.setProperty(
|
|
2012
|
+
for (const D of S.split(";")) {
|
|
2013
|
+
const K = D.indexOf(":"), _ = D.substring(0, K).trim(), A = D.substring(K + 1).trim();
|
|
2014
|
+
r(p, `${G}:${_}`, () => {
|
|
2015
|
+
m.style.removeProperty(_);
|
|
2016
|
+
}), m.style.setProperty(_, A);
|
|
2018
2017
|
}
|
|
2019
2018
|
} else
|
|
2020
|
-
m.getAttribute(
|
|
2019
|
+
m.getAttribute(C) !== S && m.setAttribute(C, S === !0 ? "" : String(S)), w && r(p, G, () => m.removeAttribute(C));
|
|
2021
2020
|
}
|
|
2022
2021
|
}
|
|
2023
|
-
const u = [],
|
|
2022
|
+
const u = [], c = {
|
|
2024
2023
|
bodyClose: void 0,
|
|
2025
2024
|
bodyOpen: void 0,
|
|
2026
2025
|
head: void 0
|
|
2027
2026
|
};
|
|
2028
|
-
for (const
|
|
2029
|
-
const { tag: m, shouldRender:
|
|
2030
|
-
if (
|
|
2027
|
+
for (const p of i) {
|
|
2028
|
+
const { tag: m, shouldRender: g, id: w } = p;
|
|
2029
|
+
if (g) {
|
|
2031
2030
|
if (m.tag === "title") {
|
|
2032
|
-
|
|
2031
|
+
n.title = m.textContent;
|
|
2033
2032
|
continue;
|
|
2034
2033
|
}
|
|
2035
|
-
|
|
2034
|
+
p.$el = p.$el || a.elMap[w], p.$el ? f(p) : Ie.has(m.tag) && u.push(p);
|
|
2036
2035
|
}
|
|
2037
2036
|
}
|
|
2038
|
-
for (const
|
|
2039
|
-
const m =
|
|
2040
|
-
|
|
2037
|
+
for (const p of u) {
|
|
2038
|
+
const m = p.tag.tagPosition || "head";
|
|
2039
|
+
p.$el = n.createElement(p.tag.tag), f(p), c[m] = c[m] || n.createDocumentFragment(), c[m].appendChild(p.$el);
|
|
2041
2040
|
}
|
|
2042
|
-
for (const
|
|
2043
|
-
await
|
|
2044
|
-
|
|
2045
|
-
for (const
|
|
2046
|
-
a.pendingSideEffects[
|
|
2047
|
-
|
|
2041
|
+
for (const p of i)
|
|
2042
|
+
await l.hooks.callHook("dom:renderTag", p, n, r);
|
|
2043
|
+
c.head && n.head.appendChild(c.head), c.bodyOpen && n.body.insertBefore(c.bodyOpen, n.body.firstChild), c.bodyClose && n.body.appendChild(c.bodyClose);
|
|
2044
|
+
for (const p in a.pendingSideEffects)
|
|
2045
|
+
a.pendingSideEffects[p]();
|
|
2046
|
+
l._dom = a, l.dirty = !1, await l.hooks.callHook("dom:rendered", { renders: i });
|
|
2048
2047
|
}
|
|
2049
|
-
function
|
|
2050
|
-
const
|
|
2051
|
-
return
|
|
2052
|
-
delete
|
|
2048
|
+
function Bl(l, t = {}) {
|
|
2049
|
+
const n = t.delayFn || ((o) => setTimeout(o, 10));
|
|
2050
|
+
return l._domUpdatePromise = l._domUpdatePromise || new Promise((o) => n(() => Ml(l, t).then(() => {
|
|
2051
|
+
delete l._domUpdatePromise, o();
|
|
2053
2052
|
})));
|
|
2054
2053
|
}
|
|
2055
2054
|
// @__NO_SIDE_EFFECTS__
|
|
2056
|
-
function
|
|
2055
|
+
function Rl(l) {
|
|
2057
2056
|
return (t) => {
|
|
2058
|
-
const
|
|
2059
|
-
return
|
|
2057
|
+
const n = t.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
|
|
2058
|
+
return n && t.push(JSON.parse(n)), {
|
|
2060
2059
|
mode: "client",
|
|
2061
2060
|
hooks: {
|
|
2062
2061
|
"entries:updated": (o) => {
|
|
2063
|
-
|
|
2062
|
+
Bl(o, l);
|
|
2064
2063
|
}
|
|
2065
2064
|
}
|
|
2066
2065
|
};
|
|
2067
2066
|
};
|
|
2068
2067
|
}
|
|
2069
|
-
const
|
|
2068
|
+
const Ll = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]), Ul = {
|
|
2070
2069
|
hooks: {
|
|
2071
|
-
"tag:normalise": ({ tag:
|
|
2072
|
-
|
|
2073
|
-
const
|
|
2074
|
-
|
|
2070
|
+
"tag:normalise": ({ tag: l }) => {
|
|
2071
|
+
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);
|
|
2072
|
+
const n = St(l) || (l.key ? `${l.tag}:${l.key}` : !1);
|
|
2073
|
+
n && (l._d = n);
|
|
2075
2074
|
},
|
|
2076
|
-
"tags:resolve": (
|
|
2075
|
+
"tags:resolve": (l) => {
|
|
2077
2076
|
const t = /* @__PURE__ */ Object.create(null);
|
|
2078
|
-
for (const o of
|
|
2077
|
+
for (const o of l.tags) {
|
|
2079
2078
|
const i = (o.key ? `${o.tag}:${o.key}` : o._d) || o._p, a = t[i];
|
|
2080
2079
|
if (a) {
|
|
2081
2080
|
let f = o?.tagDuplicateStrategy;
|
|
2082
|
-
if (!f &&
|
|
2081
|
+
if (!f && Ll.has(o.tag) && (f = "merge"), f === "merge") {
|
|
2083
2082
|
const u = a.props;
|
|
2084
2083
|
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
2084
|
...u,
|
|
@@ -2098,187 +2097,187 @@ const Wl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
2098
2097
|
}
|
|
2099
2098
|
t[i] = o;
|
|
2100
2099
|
}
|
|
2101
|
-
const
|
|
2100
|
+
const n = [];
|
|
2102
2101
|
for (const o in t) {
|
|
2103
2102
|
const i = t[o], a = i._duped;
|
|
2104
|
-
|
|
2103
|
+
n.push(i), a && (delete i._duped, n.push(...a));
|
|
2105
2104
|
}
|
|
2106
|
-
|
|
2105
|
+
l.tags = n, l.tags = l.tags.filter((o) => !(o.tag === "meta" && (o.props.name || o.props.property) && !o.props.content));
|
|
2107
2106
|
}
|
|
2108
2107
|
}
|
|
2109
|
-
},
|
|
2108
|
+
}, El = {
|
|
2110
2109
|
mode: "server",
|
|
2111
2110
|
hooks: {
|
|
2112
|
-
"tags:resolve": (
|
|
2111
|
+
"tags:resolve": (l) => {
|
|
2113
2112
|
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
|
-
|
|
2113
|
+
let n = !1;
|
|
2114
|
+
for (const o of l.tags)
|
|
2115
|
+
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);
|
|
2116
|
+
n && l.tags.push({
|
|
2118
2117
|
tag: "script",
|
|
2119
2118
|
innerHTML: JSON.stringify(t),
|
|
2120
2119
|
props: { id: "unhead:payload", type: "application/json" }
|
|
2121
2120
|
});
|
|
2122
2121
|
}
|
|
2123
2122
|
}
|
|
2124
|
-
},
|
|
2123
|
+
}, Ol = /* @__PURE__ */ new Set(["script", "link", "bodyAttrs"]), Fl = (l) => ({
|
|
2125
2124
|
hooks: {
|
|
2126
2125
|
"tags:resolve": (t) => {
|
|
2127
|
-
for (const
|
|
2128
|
-
if (!
|
|
2126
|
+
for (const n of t.tags) {
|
|
2127
|
+
if (!Ol.has(n.tag))
|
|
2129
2128
|
continue;
|
|
2130
|
-
const o =
|
|
2129
|
+
const o = n.props;
|
|
2131
2130
|
for (const i in o) {
|
|
2132
2131
|
if (i[0] !== "o" || i[1] !== "n" || !Object.prototype.hasOwnProperty.call(o, i))
|
|
2133
2132
|
continue;
|
|
2134
2133
|
const a = o[i];
|
|
2135
|
-
typeof a == "function" && (
|
|
2134
|
+
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
2135
|
}
|
|
2137
|
-
|
|
2136
|
+
l.ssr && n._eventHandlers && (n.props.src || n.props.href) && (n.key = n.key || Be(n.props.src || n.props.href));
|
|
2138
2137
|
}
|
|
2139
2138
|
},
|
|
2140
|
-
"dom:renderTag": ({ $el: t, tag:
|
|
2139
|
+
"dom:renderTag": ({ $el: t, tag: n }) => {
|
|
2141
2140
|
const o = t?.dataset;
|
|
2142
2141
|
if (o)
|
|
2143
2142
|
for (const i in o) {
|
|
2144
2143
|
if (!i.endsWith("fired"))
|
|
2145
2144
|
continue;
|
|
2146
2145
|
const a = i.slice(0, -5);
|
|
2147
|
-
|
|
2146
|
+
bt.has(a) && n._eventHandlers?.[a]?.call(t, new Event(a.substring(2)));
|
|
2148
2147
|
}
|
|
2149
2148
|
}
|
|
2150
2149
|
}
|
|
2151
|
-
}),
|
|
2150
|
+
}), Gl = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), ql = {
|
|
2152
2151
|
hooks: {
|
|
2153
|
-
"tag:normalise": ({ tag:
|
|
2154
|
-
|
|
2152
|
+
"tag:normalise": ({ tag: l }) => {
|
|
2153
|
+
l.key && Gl.has(l.tag) && (l.props["data-hid"] = l._h = Be(l.key));
|
|
2155
2154
|
}
|
|
2156
2155
|
}
|
|
2157
|
-
},
|
|
2156
|
+
}, jl = {
|
|
2158
2157
|
hooks: {
|
|
2159
|
-
"tags:resolve": (
|
|
2160
|
-
for (const t of
|
|
2158
|
+
"tags:resolve": (l) => {
|
|
2159
|
+
for (const t of l.tags)
|
|
2161
2160
|
if (typeof t.tagPriority == "string")
|
|
2162
|
-
for (const { prefix:
|
|
2163
|
-
if (!t.tagPriority.startsWith(
|
|
2161
|
+
for (const { prefix: n, offset: o } of Dl) {
|
|
2162
|
+
if (!t.tagPriority.startsWith(n))
|
|
2164
2163
|
continue;
|
|
2165
|
-
const i = t.tagPriority.substring(
|
|
2164
|
+
const i = t.tagPriority.substring(n.length), a = l.tags.find((r) => r._d === i)?._p;
|
|
2166
2165
|
if (a !== void 0) {
|
|
2167
2166
|
t._p = a + o;
|
|
2168
2167
|
break;
|
|
2169
2168
|
}
|
|
2170
2169
|
}
|
|
2171
|
-
|
|
2172
|
-
const o = Re(t), i = Re(
|
|
2173
|
-
return o < i ? -1 : o > i ? 1 : t._p -
|
|
2170
|
+
l.tags.sort((t, n) => {
|
|
2171
|
+
const o = Re(t), i = Re(n);
|
|
2172
|
+
return o < i ? -1 : o > i ? 1 : t._p - n._p;
|
|
2174
2173
|
});
|
|
2175
2174
|
}
|
|
2176
2175
|
}
|
|
2177
|
-
},
|
|
2176
|
+
}, Wl = {
|
|
2178
2177
|
meta: "content",
|
|
2179
2178
|
link: "href",
|
|
2180
2179
|
htmlAttrs: "lang"
|
|
2181
|
-
},
|
|
2180
|
+
}, xl = ["innerHTML", "textContent"], Kl = (l) => ({
|
|
2182
2181
|
hooks: {
|
|
2183
2182
|
"tags:resolve": (t) => {
|
|
2184
|
-
const { tags:
|
|
2183
|
+
const { tags: n } = t;
|
|
2185
2184
|
let o;
|
|
2186
|
-
for (let r = 0; r <
|
|
2187
|
-
|
|
2185
|
+
for (let r = 0; r < n.length; r += 1)
|
|
2186
|
+
n[r].tag === "templateParams" && (o = t.tags.splice(r, 1)[0].props, r -= 1);
|
|
2188
2187
|
const i = o || {}, a = i.separator || "|";
|
|
2189
|
-
delete i.separator, i.pageTitle =
|
|
2188
|
+
delete i.separator, i.pageTitle = Xe(
|
|
2190
2189
|
// find templateParams
|
|
2191
|
-
i.pageTitle ||
|
|
2190
|
+
i.pageTitle || n.find((r) => r.tag === "title")?.textContent || "",
|
|
2192
2191
|
i,
|
|
2193
2192
|
a
|
|
2194
2193
|
);
|
|
2195
|
-
for (const r of
|
|
2194
|
+
for (const r of n) {
|
|
2196
2195
|
if (r.processTemplateParams === !1)
|
|
2197
2196
|
continue;
|
|
2198
|
-
const f =
|
|
2197
|
+
const f = Wl[r.tag];
|
|
2199
2198
|
if (f && typeof r.props[f] == "string")
|
|
2200
|
-
r.props[f] =
|
|
2199
|
+
r.props[f] = Xe(r.props[f], i, a);
|
|
2201
2200
|
else if (r.processTemplateParams || r.tag === "titleTemplate" || r.tag === "title")
|
|
2202
|
-
for (const u of
|
|
2203
|
-
typeof r[u] == "string" && (r[u] =
|
|
2201
|
+
for (const u of xl)
|
|
2202
|
+
typeof r[u] == "string" && (r[u] = Xe(r[u], i, a));
|
|
2204
2203
|
}
|
|
2205
|
-
|
|
2204
|
+
l._templateParams = i, l._separator = a;
|
|
2206
2205
|
}
|
|
2207
2206
|
}
|
|
2208
|
-
}),
|
|
2207
|
+
}), Jl = {
|
|
2209
2208
|
hooks: {
|
|
2210
|
-
"tags:resolve": (
|
|
2211
|
-
const { tags: t } =
|
|
2212
|
-
let
|
|
2209
|
+
"tags:resolve": (l) => {
|
|
2210
|
+
const { tags: t } = l;
|
|
2211
|
+
let n, o;
|
|
2213
2212
|
for (let i = 0; i < t.length; i += 1) {
|
|
2214
2213
|
const a = t[i];
|
|
2215
|
-
a.tag === "title" ?
|
|
2214
|
+
a.tag === "title" ? n = a : a.tag === "titleTemplate" && (o = a);
|
|
2216
2215
|
}
|
|
2217
|
-
if (o &&
|
|
2218
|
-
const i =
|
|
2216
|
+
if (o && n) {
|
|
2217
|
+
const i = yt(
|
|
2219
2218
|
o.textContent,
|
|
2220
|
-
|
|
2219
|
+
n.textContent
|
|
2221
2220
|
);
|
|
2222
|
-
i !== null ?
|
|
2221
|
+
i !== null ? n.textContent = i || n.textContent : l.tags.splice(l.tags.indexOf(n), 1);
|
|
2223
2222
|
} else if (o) {
|
|
2224
|
-
const i =
|
|
2223
|
+
const i = yt(
|
|
2225
2224
|
o.textContent
|
|
2226
2225
|
);
|
|
2227
2226
|
i !== null && (o.textContent = i, o.tag = "title", o = void 0);
|
|
2228
2227
|
}
|
|
2229
|
-
o &&
|
|
2228
|
+
o && l.tags.splice(l.tags.indexOf(o), 1);
|
|
2230
2229
|
}
|
|
2231
2230
|
}
|
|
2232
|
-
},
|
|
2231
|
+
}, zl = {
|
|
2233
2232
|
hooks: {
|
|
2234
|
-
"tags:afterResolve": (
|
|
2235
|
-
for (const t of
|
|
2233
|
+
"tags:afterResolve": (l) => {
|
|
2234
|
+
for (const t of l.tags)
|
|
2236
2235
|
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
2236
|
}
|
|
2238
2237
|
}
|
|
2239
2238
|
};
|
|
2240
2239
|
// @__NO_SIDE_EFFECTS__
|
|
2241
|
-
function
|
|
2242
|
-
const t =
|
|
2243
|
-
return t.use(/* @__PURE__ */
|
|
2240
|
+
function Yl(l = {}) {
|
|
2241
|
+
const t = Ql(l);
|
|
2242
|
+
return t.use(/* @__PURE__ */ Rl()), t;
|
|
2244
2243
|
}
|
|
2245
|
-
function
|
|
2246
|
-
return !
|
|
2244
|
+
function _t(l, t) {
|
|
2245
|
+
return !l || l === "server" && t || l === "client" && !t;
|
|
2247
2246
|
}
|
|
2248
|
-
function
|
|
2249
|
-
const t =
|
|
2250
|
-
t.addHooks(
|
|
2251
|
-
const
|
|
2247
|
+
function Ql(l = {}) {
|
|
2248
|
+
const t = _l();
|
|
2249
|
+
t.addHooks(l.hooks || {}), l.document = l.document || ($l ? document : void 0);
|
|
2250
|
+
const n = !l.document, o = () => {
|
|
2252
2251
|
f.dirty = !0, t.callHook("entries:updated", f);
|
|
2253
2252
|
};
|
|
2254
2253
|
let i = 0, a = [];
|
|
2255
2254
|
const r = [], f = {
|
|
2256
2255
|
plugins: r,
|
|
2257
2256
|
dirty: !1,
|
|
2258
|
-
resolvedOptions:
|
|
2257
|
+
resolvedOptions: l,
|
|
2259
2258
|
hooks: t,
|
|
2260
2259
|
headEntries() {
|
|
2261
2260
|
return a;
|
|
2262
2261
|
},
|
|
2263
2262
|
use(u) {
|
|
2264
|
-
const
|
|
2265
|
-
(!
|
|
2263
|
+
const c = typeof u == "function" ? u(f) : u;
|
|
2264
|
+
(!c.key || !r.some((p) => p.key === c.key)) && (r.push(c), _t(c.mode, n) && t.addHooks(c.hooks || {}));
|
|
2266
2265
|
},
|
|
2267
|
-
push(u,
|
|
2268
|
-
delete
|
|
2269
|
-
const
|
|
2266
|
+
push(u, c) {
|
|
2267
|
+
delete c?.head;
|
|
2268
|
+
const p = {
|
|
2270
2269
|
_i: i++,
|
|
2271
2270
|
input: u,
|
|
2272
|
-
...
|
|
2271
|
+
...c
|
|
2273
2272
|
};
|
|
2274
|
-
return
|
|
2273
|
+
return _t(p.mode, n) && (a.push(p), o()), {
|
|
2275
2274
|
dispose() {
|
|
2276
|
-
a = a.filter((m) => m._i !==
|
|
2275
|
+
a = a.filter((m) => m._i !== p._i), t.callHook("entries:updated", f), o();
|
|
2277
2276
|
},
|
|
2278
2277
|
// a patch is the same as creating a new entry, just a nice DX
|
|
2279
2278
|
patch(m) {
|
|
2280
|
-
for (const
|
|
2281
|
-
|
|
2279
|
+
for (const g of a)
|
|
2280
|
+
g._i === p._i && (g.input = p.input = m);
|
|
2282
2281
|
o();
|
|
2283
2282
|
}
|
|
2284
2283
|
};
|
|
@@ -2286,78 +2285,78 @@ function aa(n = {}) {
|
|
|
2286
2285
|
async resolveTags() {
|
|
2287
2286
|
const u = { tags: [], entries: [...a] };
|
|
2288
2287
|
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",
|
|
2288
|
+
for (const c of u.entries) {
|
|
2289
|
+
const p = c.resolvedInput || c.input;
|
|
2290
|
+
if (c.resolvedInput = await (c.transform ? c.transform(p) : p), c.resolvedInput)
|
|
2291
|
+
for (const m of await Sl(c)) {
|
|
2292
|
+
const g = { tag: m, entry: c, resolvedOptions: f.resolvedOptions };
|
|
2293
|
+
await t.callHook("tag:normalise", g), u.tags.push(g.tag);
|
|
2295
2294
|
}
|
|
2296
2295
|
}
|
|
2297
2296
|
return await t.callHook("tags:beforeResolve", u), await t.callHook("tags:resolve", u), await t.callHook("tags:afterResolve", u), u.tags;
|
|
2298
2297
|
},
|
|
2299
|
-
ssr:
|
|
2298
|
+
ssr: n
|
|
2300
2299
|
};
|
|
2301
2300
|
return [
|
|
2302
|
-
|
|
2301
|
+
Ul,
|
|
2302
|
+
El,
|
|
2303
|
+
Fl,
|
|
2304
|
+
ql,
|
|
2305
|
+
jl,
|
|
2303
2306
|
Kl,
|
|
2307
|
+
Jl,
|
|
2304
2308
|
zl,
|
|
2305
|
-
|
|
2306
|
-
Xl,
|
|
2307
|
-
ta,
|
|
2308
|
-
oa,
|
|
2309
|
-
na,
|
|
2310
|
-
...n?.plugins || []
|
|
2309
|
+
...l?.plugins || []
|
|
2311
2310
|
].forEach((u) => f.use(u)), f.hooks.callHook("init", f), f;
|
|
2312
2311
|
}
|
|
2313
|
-
const
|
|
2314
|
-
function
|
|
2315
|
-
return typeof
|
|
2312
|
+
const Xl = vo[0] === "3";
|
|
2313
|
+
function Zl(l) {
|
|
2314
|
+
return typeof l == "function" ? l() : e(l);
|
|
2316
2315
|
}
|
|
2317
|
-
function
|
|
2318
|
-
if (
|
|
2319
|
-
return
|
|
2320
|
-
const t =
|
|
2321
|
-
if (!
|
|
2316
|
+
function nt(l) {
|
|
2317
|
+
if (l instanceof Promise)
|
|
2318
|
+
return l;
|
|
2319
|
+
const t = Zl(l);
|
|
2320
|
+
if (!l || !t)
|
|
2322
2321
|
return t;
|
|
2323
2322
|
if (Array.isArray(t))
|
|
2324
|
-
return t.map((
|
|
2323
|
+
return t.map((n) => nt(n));
|
|
2325
2324
|
if (typeof t == "object") {
|
|
2326
|
-
const
|
|
2325
|
+
const n = {};
|
|
2327
2326
|
for (const o in t)
|
|
2328
2327
|
if (Object.prototype.hasOwnProperty.call(t, o)) {
|
|
2329
2328
|
if (o === "titleTemplate" || o[0] === "o" && o[1] === "n") {
|
|
2330
|
-
|
|
2329
|
+
n[o] = e(t[o]);
|
|
2331
2330
|
continue;
|
|
2332
2331
|
}
|
|
2333
|
-
|
|
2332
|
+
n[o] = nt(t[o]);
|
|
2334
2333
|
}
|
|
2335
|
-
return
|
|
2334
|
+
return n;
|
|
2336
2335
|
}
|
|
2337
2336
|
return t;
|
|
2338
2337
|
}
|
|
2339
|
-
const
|
|
2338
|
+
const ea = {
|
|
2340
2339
|
hooks: {
|
|
2341
|
-
"entries:resolve": (
|
|
2342
|
-
for (const t of
|
|
2343
|
-
t.resolvedInput =
|
|
2340
|
+
"entries:resolve": (l) => {
|
|
2341
|
+
for (const t of l.entries)
|
|
2342
|
+
t.resolvedInput = nt(t.input);
|
|
2344
2343
|
}
|
|
2345
2344
|
}
|
|
2346
|
-
},
|
|
2347
|
-
function
|
|
2345
|
+
}, ta = "usehead";
|
|
2346
|
+
function oa(l) {
|
|
2348
2347
|
return {
|
|
2349
|
-
install(
|
|
2350
|
-
|
|
2348
|
+
install(n) {
|
|
2349
|
+
Xl && (n.config.globalProperties.$unhead = l, n.config.globalProperties.$head = l, n.provide(ta, l));
|
|
2351
2350
|
}
|
|
2352
2351
|
}.install;
|
|
2353
2352
|
}
|
|
2354
|
-
function
|
|
2355
|
-
|
|
2356
|
-
const t = /* @__PURE__ */
|
|
2357
|
-
return t.use(
|
|
2353
|
+
function na(l = {}) {
|
|
2354
|
+
l.domDelayFn = l.domDelayFn || ((n) => ho(() => setTimeout(() => n(), 0)));
|
|
2355
|
+
const t = /* @__PURE__ */ Yl(l);
|
|
2356
|
+
return t.use(ea), t.install = oa(t), t;
|
|
2358
2357
|
}
|
|
2359
|
-
const
|
|
2360
|
-
class
|
|
2358
|
+
const la = yo(), aa = na(), ia = _o();
|
|
2359
|
+
class sa extends HTMLElement {
|
|
2361
2360
|
vueApp;
|
|
2362
2361
|
constructor() {
|
|
2363
2362
|
super();
|
|
@@ -2366,14 +2365,14 @@ class ha extends HTMLElement {
|
|
|
2366
2365
|
this.vueApp.unmount();
|
|
2367
2366
|
}
|
|
2368
2367
|
connectedCallback() {
|
|
2369
|
-
const t =
|
|
2370
|
-
this.vueApp =
|
|
2371
|
-
const
|
|
2372
|
-
this.vueApp.mount(
|
|
2368
|
+
const t = ko(ht, this.attributes);
|
|
2369
|
+
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(Bo), this.vueApp.use(Po), this.vueApp.use(Co, { bootstrap: !0 });
|
|
2370
|
+
const n = document.createElement("div");
|
|
2371
|
+
this.vueApp.mount(n), this.appendChild(n.children[0]);
|
|
2373
2372
|
}
|
|
2374
2373
|
}
|
|
2375
|
-
window.customElements.define("konnectio-hotel",
|
|
2374
|
+
window.customElements.define("konnectio-hotel", sa);
|
|
2376
2375
|
export {
|
|
2377
|
-
|
|
2376
|
+
sa as default
|
|
2378
2377
|
};
|
|
2379
2378
|
//# sourceMappingURL=hotel.js.map
|