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