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