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