@konnectio/core 4.0.56-rc47 → 4.0.56-rc49
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-Ck8cxR78.js → ActionField-B9sCmWFD.js} +11 -11
- package/dist/ActionField-B9sCmWFD.js.br +0 -0
- package/dist/{AvailabilitySkeleton-C_OWp8Fq.js → AvailabilitySkeleton-sGz2nSbb.js} +35 -35
- package/dist/AvailabilitySkeleton-sGz2nSbb.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C2xXzeRY.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js} +4 -4
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js.br +0 -0
- package/dist/{CheckoutWindow-DcaNMI9K.js → CheckoutWindow-CrzoIK1a.js} +14 -14
- package/dist/CheckoutWindow-CrzoIK1a.js.br +0 -0
- package/dist/{ErrorMessage-DH5q_ieB.js → ErrorMessage-SZPwCpu-.js} +4 -4
- package/dist/ErrorMessage-SZPwCpu-.js.br +0 -0
- package/dist/{EventAvailabilityForm-DphCQOMO.js → EventAvailabilityForm-DFuang-b.js} +138 -138
- package/dist/EventAvailabilityForm-DFuang-b.js.br +0 -0
- package/dist/{Field-Dg8W7a_X.js → Field-CLXqVSAA.js} +12 -12
- package/dist/Field-CLXqVSAA.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DxwVk__I.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js} +2151 -2132
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js.br +0 -0
- package/dist/{TermsOfService-DenzWB_O.js → TermsOfService-DBwm3BP2.js} +7 -7
- package/dist/TermsOfService-DBwm3BP2.js.br +0 -0
- package/dist/_-BOjhcjBA.js +12 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-VOXCSp8f.js → _.vue_vue_type_style_index_0_lang-BNx_Z1PF.js} +11 -11
- package/dist/_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js.br +0 -0
- package/dist/availability.js +40 -41
- package/dist/availability.js.br +0 -0
- package/dist/event.js +155 -153
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +26 -27
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +127 -127
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-BpIUm5ol.js → giftCard-hEwcI_Rx.js} +11 -11
- package/dist/giftCard-hEwcI_Rx.js.br +0 -0
- package/dist/hotel.js +620 -618
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-Bo5QRvUz.js → masonry.plugin-C474cwA-.js} +1026 -1009
- package/dist/masonry.plugin-C474cwA-.js.br +0 -0
- package/dist/navigation.js +2 -2
- package/dist/polyfill.js +726 -726
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/tracing-pAUg9FFo.js +11818 -0
- package/dist/tracing-pAUg9FFo.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-Ck8cxR78.js.br +0 -0
- package/dist/AvailabilitySkeleton-C_OWp8Fq.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C2xXzeRY.js.br +0 -0
- package/dist/CheckoutWindow-DcaNMI9K.js.br +0 -0
- package/dist/ErrorMessage-DH5q_ieB.js.br +0 -0
- package/dist/EventAvailabilityForm-DphCQOMO.js.br +0 -0
- package/dist/Field-Dg8W7a_X.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DxwVk__I.js.br +0 -0
- package/dist/TermsOfService-DenzWB_O.js.br +0 -0
- package/dist/_-DgexTosT.js +0 -12
- package/dist/_.vue_vue_type_style_index_0_lang-VOXCSp8f.js.br +0 -0
- package/dist/_commonjsHelpers-ytV6SVHa.js +0 -9541
- package/dist/_commonjsHelpers-ytV6SVHa.js.br +0 -0
- package/dist/giftCard-BpIUm5ol.js.br +0 -0
- package/dist/masonry.plugin-Bo5QRvUz.js.br +0 -0
- package/dist/sentry-D1A53_C5.js +0 -18
- package/dist/tracing-wxeFiHIa.js +0 -2287
- package/dist/tracing-wxeFiHIa.js.br +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { h as ae, s as
|
|
3
|
-
import { R as
|
|
4
|
-
import { A as
|
|
5
|
-
import { S as
|
|
6
|
-
import { a as Ae, B as
|
|
7
|
-
import { _ as
|
|
1
|
+
import { d as Z, r as le, o as c, b as D, w as T, v as Le, g as a, t as y, u as o, y as et, z as tt, f as g, a as h, A as F, F as M, e as _, D as je, x as N, i as we, c as G, p as pt, j as mt, h as Je, q as Ce, n as Pe, S as Yt, N as Zt, K as Qt, O as eo, k as to } from "./tracing-pAUg9FFo.js";
|
|
2
|
+
import { h as ae, s as oe, b as ke, z as me, D as de, A as z, R as Ge, J as ot, U as re, B as te, F as oo, _ as ue, k as He, V as ft, l as qe, C as pe, j as ht, K as vt, m as We, r as lt, T as se, I as lo, W as no, n as ao, P as nt, X as io, o as so, p as ro, q as uo, H as co, t as po } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js";
|
|
3
|
+
import { R as mo, B as Se, L as fo, S as ho, M as vo, a as Ne, C as yo, T as go, V as ko, G as bo } from "./masonry.plugin-C474cwA-.js";
|
|
4
|
+
import { A as _o, H as Vo } from "./AvailabilitySkeleton-sGz2nSbb.js";
|
|
5
|
+
import { S as To } from "./TermsOfService-DBwm3BP2.js";
|
|
6
|
+
import { a as Ae, B as $o, P as wo, C as Co } from "./CheckoutWindow-CrzoIK1a.js";
|
|
7
|
+
import { _ as yt } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js";
|
|
8
8
|
import "./navigation.js";
|
|
9
9
|
(function() {
|
|
10
10
|
try {
|
|
11
11
|
var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
|
|
12
|
-
l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "
|
|
12
|
+
l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "d05fd798-298d-4bab-af9c-74ded099bc1b", n._sentryDebugIdIdentifier = "sentry-dbid-d05fd798-298d-4bab-af9c-74ded099bc1b");
|
|
13
13
|
} catch {
|
|
14
14
|
}
|
|
15
15
|
})();
|
|
16
|
-
const
|
|
17
|
-
const
|
|
16
|
+
const Po = { class: "konnectio-hotel-reservation-warning" }, Ao = { class: "konnectio-hotel-reservation-warning" };
|
|
17
|
+
const Do = { key: 0 }, Ho = { key: 1 }, So = { key: 0 }, Io = { class: "konnectio-reservation-actions" }, Bo = /* @__PURE__ */ Z({
|
|
18
18
|
__name: "HotelReservationForm",
|
|
19
19
|
props: {
|
|
20
20
|
showGiftCard: { type: Boolean, default: !1 },
|
|
@@ -23,13 +23,13 @@ const At = { key: 0 }, Dt = { key: 1 }, Ht = { key: 0 }, St = { class: "konnecti
|
|
|
23
23
|
setup(n) {
|
|
24
24
|
const { t: l } = ae(), {
|
|
25
25
|
hideArrivalDepartureInputs: e,
|
|
26
|
-
disableArrivalUserSelection:
|
|
26
|
+
disableArrivalUserSelection: t,
|
|
27
27
|
disableDepartureUserSelection: i,
|
|
28
28
|
arrivalDefault: s,
|
|
29
29
|
departureDefault: m,
|
|
30
30
|
disableNewsletterSignup: p,
|
|
31
31
|
currency: u
|
|
32
|
-
} =
|
|
32
|
+
} = oe(ke()), {
|
|
33
33
|
arrivalTime: r,
|
|
34
34
|
departureTime: d,
|
|
35
35
|
roomDisplay: f,
|
|
@@ -42,154 +42,154 @@ const At = { key: 0 }, Dt = { key: 1 }, Ht = { key: 0 }, St = { class: "konnecti
|
|
|
42
42
|
currentArrivalDate: C,
|
|
43
43
|
currentDepartureDate: H,
|
|
44
44
|
datesMismatch: O,
|
|
45
|
-
newsMails:
|
|
45
|
+
newsMails: R,
|
|
46
46
|
termsOfService: x,
|
|
47
|
-
discountCode:
|
|
47
|
+
discountCode: L,
|
|
48
48
|
hasTermOfService: J,
|
|
49
|
-
acceptTerms:
|
|
49
|
+
acceptTerms: Q,
|
|
50
50
|
totalTemplateAddonPrice: be
|
|
51
|
-
} =
|
|
52
|
-
function fe(
|
|
53
|
-
return
|
|
51
|
+
} = oe(me()), { removeRoom: j, validateDiscountCode: he } = me(), ce = le(!1);
|
|
52
|
+
function fe(ne) {
|
|
53
|
+
return ne.reduce((U, { totalPrice: ve }) => U + ve, 0);
|
|
54
54
|
}
|
|
55
|
-
return (
|
|
56
|
-
"discount-code":
|
|
57
|
-
"onUpdate:discountCode": W[4] || (W[4] = (
|
|
58
|
-
"validate-discount-code":
|
|
59
|
-
"total-price":
|
|
60
|
-
"show-gift-card":
|
|
61
|
-
"show-terms-notice":
|
|
62
|
-
"is-sidebar-loading":
|
|
63
|
-
notice:
|
|
55
|
+
return (ne, W) => (c(), D(mo, {
|
|
56
|
+
"discount-code": o(L),
|
|
57
|
+
"onUpdate:discountCode": W[4] || (W[4] = (U) => N(L) ? L.value = U : null),
|
|
58
|
+
"validate-discount-code": o(he),
|
|
59
|
+
"total-price": o(P),
|
|
60
|
+
"show-gift-card": ne.showGiftCard,
|
|
61
|
+
"show-terms-notice": ne.showTermsNotice,
|
|
62
|
+
"is-sidebar-loading": o(w),
|
|
63
|
+
notice: o(l)("hotel.reservationNotice")
|
|
64
64
|
}, {
|
|
65
65
|
form: T(() => [
|
|
66
|
-
Le(
|
|
66
|
+
Le(ne.$slots, "form", {}, void 0, !0)
|
|
67
67
|
]),
|
|
68
68
|
"reservation-summary": T(() => [
|
|
69
69
|
a("li", null, [
|
|
70
|
-
a("span", null, y(
|
|
70
|
+
a("span", null, y(o(l)("booking.reservation.arrival")), 1),
|
|
71
71
|
a("b", null, [
|
|
72
|
-
a("span", null, y(
|
|
73
|
-
|
|
72
|
+
a("span", null, y(o(e) ? o(de)(o(C)) : `${o(de)(o(C))}, ${o(t) ? o(s) : o(r)}`), 1),
|
|
73
|
+
et(a("span", Po, [
|
|
74
74
|
g(z, {
|
|
75
75
|
icon: "exclamation-triangle",
|
|
76
76
|
type: "fas"
|
|
77
77
|
})
|
|
78
78
|
], 512), [
|
|
79
|
-
[
|
|
79
|
+
[tt, o(O)]
|
|
80
80
|
])
|
|
81
81
|
])
|
|
82
82
|
]),
|
|
83
83
|
a("li", null, [
|
|
84
|
-
a("span", null, y(
|
|
84
|
+
a("span", null, y(o(l)("booking.reservation.departure")), 1),
|
|
85
85
|
a("b", null, [
|
|
86
|
-
a("span", null, y(
|
|
87
|
-
|
|
86
|
+
a("span", null, y(o(e) ? o(de)(o(H)) : `${o(de)(o(H))}, ${o(i) ? o(m) : o(d)}`), 1),
|
|
87
|
+
et(a("span", Ao, [
|
|
88
88
|
g(z, {
|
|
89
89
|
icon: "exclamation-triangle",
|
|
90
90
|
type: "fas"
|
|
91
91
|
})
|
|
92
92
|
], 512), [
|
|
93
|
-
[
|
|
93
|
+
[tt, o(O)]
|
|
94
94
|
])
|
|
95
95
|
])
|
|
96
96
|
]),
|
|
97
97
|
a("li", null, [
|
|
98
|
-
a("span", null, y(
|
|
99
|
-
a("b", null, y(
|
|
98
|
+
a("span", null, y(o(l)("booking.reservation.nights")), 1),
|
|
99
|
+
a("b", null, y(o(Ge)(o(C), o(H))) + " " + y(o(ot)(o(Ge)(o(C), o(H)) === 1 ? o(l)("booking.reservation.night") : o(l)("booking.reservation.nights"))), 1)
|
|
100
100
|
]),
|
|
101
|
-
|
|
102
|
-
key:
|
|
101
|
+
o(k) ? (c(!0), h(M, { key: 0 }, F(o(k), (U) => (c(), h("li", {
|
|
102
|
+
key: U.id
|
|
103
103
|
}, [
|
|
104
|
-
a("span", null, y(`${
|
|
105
|
-
a("b", null, y(
|
|
104
|
+
a("span", null, y(`${o(l)("general.discountCode")} (${U.value})`), 1),
|
|
105
|
+
a("b", null, y(U.key), 1)
|
|
106
106
|
]))), 128)) : _("", !0)
|
|
107
107
|
]),
|
|
108
108
|
"price-summary": T(() => [
|
|
109
|
-
isNaN(
|
|
110
|
-
roomGroupID:
|
|
109
|
+
isNaN(o(V)) && o(f).length > 0 ? (c(!0), h(M, { key: 0 }, F(o(f), ({
|
|
110
|
+
roomGroupID: U,
|
|
111
111
|
title: ve,
|
|
112
112
|
variants: _e
|
|
113
|
-
}) => (c(), h("div", { key:
|
|
113
|
+
}) => (c(), h("div", { key: U }, [
|
|
114
114
|
a("h6", null, [
|
|
115
115
|
a("span", null, y(ve), 1)
|
|
116
116
|
]),
|
|
117
|
-
(c(!0), h(
|
|
118
|
-
(c(!0), h(
|
|
117
|
+
(c(!0), h(M, null, F(_e, (ye, Ie) => (c(), h("div", { key: Ie }, [
|
|
118
|
+
(c(!0), h(M, null, F(ye.rooms, (ee, Be) => (c(), h("ul", { key: Be }, [
|
|
119
119
|
a("li", null, [
|
|
120
120
|
a("span", null, [
|
|
121
121
|
a("span", null, [
|
|
122
|
-
je(y(
|
|
122
|
+
je(y(o(re)(ye.name)) + " ( ", 1),
|
|
123
123
|
g(z, {
|
|
124
124
|
icon: "male",
|
|
125
125
|
type: "fas",
|
|
126
126
|
color: "font"
|
|
127
127
|
}),
|
|
128
|
-
a("span", null, y(
|
|
129
|
-
|
|
128
|
+
a("span", null, y(ee.adultsCount), 1),
|
|
129
|
+
ee.childrenCount > 0 ? (c(), h(M, { key: 0 }, [
|
|
130
130
|
g(z, {
|
|
131
131
|
icon: "child",
|
|
132
132
|
type: "fas",
|
|
133
133
|
color: "font"
|
|
134
134
|
}),
|
|
135
|
-
a("span", null, y(
|
|
135
|
+
a("span", null, y(ee.childrenCount), 1)
|
|
136
136
|
], 64)) : _("", !0),
|
|
137
137
|
je(") ")
|
|
138
138
|
])
|
|
139
139
|
]),
|
|
140
140
|
a("b", null, [
|
|
141
|
-
a("span", null, y(
|
|
141
|
+
a("span", null, y(o(te)(ee.totalPrice, o(u))), 1),
|
|
142
142
|
_("", !0)
|
|
143
143
|
])
|
|
144
144
|
]),
|
|
145
|
-
fe(
|
|
146
|
-
a("span", null, y(
|
|
147
|
-
a("b", null, y(
|
|
145
|
+
fe(ee.roomAddons) > 0 ? (c(), h("li", Do, [
|
|
146
|
+
a("span", null, y(o(l)("general.addons")), 1),
|
|
147
|
+
a("b", null, y(o(te)(fe(ee.roomAddons), o(u))), 1)
|
|
148
148
|
])) : _("", !0)
|
|
149
149
|
]))), 128))
|
|
150
150
|
]))), 128))
|
|
151
151
|
]))), 128)) : _("", !0),
|
|
152
|
-
|
|
152
|
+
o(I) && o(B) ? (c(), h("div", Ho, [
|
|
153
153
|
a("h6", null, [
|
|
154
|
-
a("span", null, y(
|
|
154
|
+
a("span", null, y(o(re)(o(B).name)), 1)
|
|
155
155
|
]),
|
|
156
156
|
a("div", null, [
|
|
157
157
|
a("ul", null, [
|
|
158
158
|
a("li", null, [
|
|
159
159
|
a("span", null, [
|
|
160
|
-
a("span", null, y(
|
|
160
|
+
a("span", null, y(o(re)(o(I).title)), 1)
|
|
161
161
|
]),
|
|
162
162
|
a("b", null, [
|
|
163
|
-
a("span", null, y(
|
|
163
|
+
a("span", null, y(o(te)(o(I).extraPrice, o(u))), 1)
|
|
164
164
|
])
|
|
165
165
|
]),
|
|
166
|
-
|
|
167
|
-
a("span", null, y(
|
|
168
|
-
a("b", null, y(
|
|
166
|
+
o(be) ? (c(), h("li", So, [
|
|
167
|
+
a("span", null, y(o(l)("general.addons")), 1),
|
|
168
|
+
a("b", null, y(o(te)(o(be), o(u))), 1)
|
|
169
169
|
])) : _("", !0)
|
|
170
170
|
])
|
|
171
171
|
])
|
|
172
172
|
])) : _("", !0)
|
|
173
173
|
]),
|
|
174
174
|
actions: T(() => [
|
|
175
|
-
a("ul",
|
|
176
|
-
|
|
175
|
+
a("ul", Io, [
|
|
176
|
+
o(p) ? _("", !0) : (c(), D(Ae, {
|
|
177
177
|
key: 0,
|
|
178
|
-
modelValue:
|
|
179
|
-
"onUpdate:modelValue": W[0] || (W[0] = (
|
|
178
|
+
modelValue: o(R),
|
|
179
|
+
"onUpdate:modelValue": W[0] || (W[0] = (U) => N(R) ? R.value = U : null),
|
|
180
180
|
type: "checkbox",
|
|
181
181
|
name: "newsletter",
|
|
182
|
-
label:
|
|
182
|
+
label: o(l)("booking.reservation.newsletterSignUp")
|
|
183
183
|
}, null, 8, ["modelValue", "label"])),
|
|
184
|
-
|
|
184
|
+
o(J) ? (c(), D(Ae, {
|
|
185
185
|
key: 1,
|
|
186
|
-
modelValue:
|
|
187
|
-
"onUpdate:modelValue": W[2] || (W[2] = (
|
|
186
|
+
modelValue: o(Q),
|
|
187
|
+
"onUpdate:modelValue": W[2] || (W[2] = (U) => N(Q) ? Q.value = U : null),
|
|
188
188
|
type: "checkbox",
|
|
189
189
|
name: "terms"
|
|
190
190
|
}, {
|
|
191
191
|
default: T(() => [
|
|
192
|
-
g(
|
|
192
|
+
g(o(oo), {
|
|
193
193
|
keypath: "general.termsAndConditionsCheckbox",
|
|
194
194
|
tag: "span",
|
|
195
195
|
scope: "global"
|
|
@@ -197,9 +197,9 @@ const At = { key: 0 }, Dt = { key: 1 }, Ht = { key: 0 }, St = { class: "konnecti
|
|
|
197
197
|
terms: T(() => [
|
|
198
198
|
a("a", {
|
|
199
199
|
class: "konnectio-accept-terms-link",
|
|
200
|
-
onClick: W[1] || (W[1] = we((
|
|
200
|
+
onClick: W[1] || (W[1] = we((U) => ce.value = !0, ["prevent"]))
|
|
201
201
|
}, [
|
|
202
|
-
a("span", null, y(
|
|
202
|
+
a("span", null, y(o(ot)(o(l)("general.termsAndConditions"))), 1)
|
|
203
203
|
])
|
|
204
204
|
]),
|
|
205
205
|
_: 1
|
|
@@ -207,21 +207,21 @@ const At = { key: 0 }, Dt = { key: 1 }, Ht = { key: 0 }, St = { class: "konnecti
|
|
|
207
207
|
]),
|
|
208
208
|
_: 1
|
|
209
209
|
}, 8, ["modelValue"])) : _("", !0),
|
|
210
|
-
Le(
|
|
211
|
-
g(
|
|
210
|
+
Le(ne.$slots, "actions", {}, void 0, !0),
|
|
211
|
+
g(To, {
|
|
212
212
|
modelValue: ce.value,
|
|
213
|
-
"onUpdate:modelValue": W[3] || (W[3] = (
|
|
214
|
-
description:
|
|
213
|
+
"onUpdate:modelValue": W[3] || (W[3] = (U) => ce.value = U),
|
|
214
|
+
description: o(x)
|
|
215
215
|
}, null, 8, ["modelValue", "description"])
|
|
216
216
|
])
|
|
217
217
|
]),
|
|
218
218
|
navigation: T(() => [
|
|
219
|
-
Le(
|
|
219
|
+
Le(ne.$slots, "navigation", {}, void 0, !0)
|
|
220
220
|
]),
|
|
221
221
|
_: 3
|
|
222
222
|
}, 8, ["discount-code", "validate-discount-code", "total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
|
|
223
223
|
}
|
|
224
|
-
}), Fe = /* @__PURE__ */ ue(
|
|
224
|
+
}), Fe = /* @__PURE__ */ ue(Bo, [["__scopeId", "data-v-f47e4ac5"]]), Eo = (n) => (pt("data-v-69fe83d8"), n = n(), mt(), n), Mo = { class: "konnectio-room-config-option" }, Uo = { key: 0 }, Ro = { class: "konnectio-selected-room-config" }, Lo = { class: "konnectio-selected-room-config-people" }, No = { key: 0 }, Fo = { class: "konnectio-selected-room-config-price" }, Oo = /* @__PURE__ */ Eo(() => /* @__PURE__ */ a("span", null, null, -1)), jo = /* @__PURE__ */ Z({
|
|
225
225
|
__name: "RoomConfigField",
|
|
226
226
|
props: {
|
|
227
227
|
modelValue: {},
|
|
@@ -232,11 +232,11 @@ const At = { key: 0 }, Dt = { key: 1 }, Ht = { key: 0 }, St = { class: "konnecti
|
|
|
232
232
|
},
|
|
233
233
|
emits: ["update:modelValue"],
|
|
234
234
|
setup(n, { emit: l }) {
|
|
235
|
-
const { t: e } = ae(), { currency:
|
|
235
|
+
const { t: e } = ae(), { currency: t } = oe(ke()), i = l, s = n;
|
|
236
236
|
function m(u) {
|
|
237
237
|
i("update:modelValue", u);
|
|
238
238
|
}
|
|
239
|
-
const p =
|
|
239
|
+
const p = G({
|
|
240
240
|
get: () => s.modelValue,
|
|
241
241
|
set: (u) => m(u)
|
|
242
242
|
});
|
|
@@ -254,7 +254,7 @@ const At = { key: 0 }, Dt = { key: 1 }, Ht = { key: 0 }, St = { class: "konnecti
|
|
|
254
254
|
searchable: !1
|
|
255
255
|
}, {
|
|
256
256
|
option: T(({ data: d }) => [
|
|
257
|
-
a("span",
|
|
257
|
+
a("span", Mo, [
|
|
258
258
|
a("div", null, [
|
|
259
259
|
g(z, {
|
|
260
260
|
icon: "male",
|
|
@@ -262,7 +262,7 @@ const At = { key: 0 }, Dt = { key: 1 }, Ht = { key: 0 }, St = { class: "konnecti
|
|
|
262
262
|
color: "font"
|
|
263
263
|
}),
|
|
264
264
|
a("span", null, y(`${d.adults}`), 1),
|
|
265
|
-
d.children > 0 ? (c(), h("span",
|
|
265
|
+
d.children > 0 ? (c(), h("span", Uo, [
|
|
266
266
|
g(z, {
|
|
267
267
|
icon: "child",
|
|
268
268
|
type: "fas",
|
|
@@ -271,65 +271,65 @@ const At = { key: 0 }, Dt = { key: 1 }, Ht = { key: 0 }, St = { class: "konnecti
|
|
|
271
271
|
a("span", null, y(`${d.children}`), 1)
|
|
272
272
|
])) : _("", !0)
|
|
273
273
|
]),
|
|
274
|
-
a("span", null, y(`(${
|
|
274
|
+
a("span", null, y(`(${o(te)(d.price, o(t))})`), 1)
|
|
275
275
|
])
|
|
276
276
|
]),
|
|
277
277
|
"selected-option": T(({ data: d }) => [
|
|
278
|
-
a("div",
|
|
279
|
-
a("div",
|
|
278
|
+
a("div", Ro, [
|
|
279
|
+
a("div", Lo, [
|
|
280
280
|
a("div", null, [
|
|
281
281
|
_("", !0),
|
|
282
|
-
a("span", null, y(`${d.adults} ${d.adults === 1 ?
|
|
282
|
+
a("span", null, y(`${d.adults} ${d.adults === 1 ? o(e)("general.adult") : o(e)("general.adults")}`), 1)
|
|
283
283
|
]),
|
|
284
|
-
d.children > 0 ? (c(), h("div",
|
|
284
|
+
d.children > 0 ? (c(), h("div", No, [
|
|
285
285
|
_("", !0),
|
|
286
|
-
a("span", null, y(`& ${d.children} ${d.children === 1 ?
|
|
286
|
+
a("span", null, y(`& ${d.children} ${d.children === 1 ? o(e)("general.child") : o(e)("general.children")}`), 1)
|
|
287
287
|
])) : _("", !0)
|
|
288
288
|
]),
|
|
289
|
-
a("div",
|
|
290
|
-
|
|
291
|
-
je(" " + y(`(${
|
|
289
|
+
a("div", Fo, [
|
|
290
|
+
Oo,
|
|
291
|
+
je(" " + y(`(${o(te)(d.price, o(t))})`), 1)
|
|
292
292
|
])
|
|
293
293
|
])
|
|
294
294
|
]),
|
|
295
295
|
_: 1
|
|
296
296
|
}, 8, ["modelValue", "label", "options", "readonly", "required"]));
|
|
297
297
|
}
|
|
298
|
-
}),
|
|
299
|
-
const
|
|
298
|
+
}), Go = /* @__PURE__ */ ue(jo, [["__scopeId", "data-v-69fe83d8"]]), qo = { class: "konnectio-availability-listing-selection" }, Wo = { key: 1 }, Ko = { class: "konnectio-listing-config-body" }, zo = { class: "konnectio-listing-units-body" };
|
|
299
|
+
const Jo = /* @__PURE__ */ Z({
|
|
300
300
|
__name: "Hotel",
|
|
301
301
|
props: {
|
|
302
302
|
room: {},
|
|
303
303
|
layout: {}
|
|
304
304
|
},
|
|
305
305
|
setup(n) {
|
|
306
|
-
const { t: l } = ae(), e = n,
|
|
306
|
+
const { t: l } = ae(), e = n, t = le([]);
|
|
307
307
|
function i(k) {
|
|
308
|
-
|
|
308
|
+
t.value[k].config.push({
|
|
309
309
|
id: NaN,
|
|
310
310
|
units: 0,
|
|
311
311
|
addons: []
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
const s =
|
|
314
|
+
const s = G(() => e.room.rates.map((k) => ({
|
|
315
315
|
label: k.name,
|
|
316
316
|
value: k.id
|
|
317
|
-
}))), { hideAvailableRoomAmount: m } =
|
|
317
|
+
}))), { hideAvailableRoomAmount: m } = oe(ke()), { roomSelect: p } = oe(me()), { addToCart: u, removeFromCart: r } = ft(), d = (k, C) => e.room.rates.find((H) => H.id === k)?.occupantRates.find((H) => H.index === C), f = G(() => e.room.rates.every((k) => k.isBreakfastIncluded === !0)), V = (k, C) => d(k, C) ? d(k, C)?.rooms : null, P = (k) => e.room.rates.length > 0 ? e.room.rates.find((C) => C.id === k)?.occupantRates.map((C) => ({
|
|
318
318
|
value: C.index,
|
|
319
319
|
price: C.totalPrice,
|
|
320
320
|
adults: C.adultsCount,
|
|
321
321
|
children: C.childrenCount,
|
|
322
322
|
hasBreakfast: C.hasBreakfast
|
|
323
|
-
})) || [] : [], w =
|
|
323
|
+
})) || [] : [], w = G(() => e.room.rates.length > 1);
|
|
324
324
|
function I() {
|
|
325
|
-
w.value ?
|
|
325
|
+
w.value ? t.value.push({
|
|
326
326
|
id: void 0,
|
|
327
327
|
config: [{
|
|
328
328
|
id: e.room.rates[0].occupantRateIndex || NaN,
|
|
329
329
|
units: 0,
|
|
330
330
|
addons: []
|
|
331
331
|
}]
|
|
332
|
-
}) :
|
|
332
|
+
}) : t.value.push({
|
|
333
333
|
id: e.room.rates[0].id,
|
|
334
334
|
config: [{
|
|
335
335
|
id: e.room.rates[0].occupantRateIndex || NaN,
|
|
@@ -341,24 +341,24 @@ const zt = /* @__PURE__ */ Q({
|
|
|
341
341
|
Je(() => {
|
|
342
342
|
I();
|
|
343
343
|
});
|
|
344
|
-
const B =
|
|
344
|
+
const B = G(() => JSON.parse(JSON.stringify(t.value)));
|
|
345
345
|
return Ce(B, (k, C) => {
|
|
346
346
|
C.length > 0 && k.forEach((H, O) => {
|
|
347
|
-
H.config.forEach((
|
|
348
|
-
const
|
|
349
|
-
|
|
347
|
+
H.config.forEach((R, x) => {
|
|
348
|
+
const L = R.units, J = C[O].config[x].units;
|
|
349
|
+
L !== J && (L > J ? (t.value[O].config[x].addons.push({}), u({
|
|
350
350
|
id: e.room.id,
|
|
351
351
|
name: e.room.title,
|
|
352
352
|
value: e.room.rates[O].rackRate
|
|
353
|
-
})) : (
|
|
353
|
+
})) : (t.value[O].config[x].addons.pop(), r({
|
|
354
354
|
id: e.room.id,
|
|
355
355
|
name: e.room.title,
|
|
356
356
|
value: e.room.rates[O].rackRate
|
|
357
357
|
})));
|
|
358
358
|
});
|
|
359
359
|
});
|
|
360
|
-
}, { deep: !0 }), Ce(
|
|
361
|
-
p.value[e.room.id] =
|
|
360
|
+
}, { deep: !0 }), Ce(t, () => {
|
|
361
|
+
p.value[e.room.id] = t.value;
|
|
362
362
|
}, { deep: !0 }), (k, C) => (c(), D(Se, {
|
|
363
363
|
type: "hotel",
|
|
364
364
|
"listing-id": k.room.id,
|
|
@@ -371,55 +371,55 @@ const zt = /* @__PURE__ */ Q({
|
|
|
371
371
|
"includes-breakfast": f.value
|
|
372
372
|
}, {
|
|
373
373
|
action: T(() => [
|
|
374
|
-
a("div",
|
|
375
|
-
(c(!0), h(
|
|
374
|
+
a("div", qo, [
|
|
375
|
+
(c(!0), h(M, null, F(t.value, (H, O) => (c(), h("div", {
|
|
376
376
|
key: H.id,
|
|
377
377
|
class: "freshbooking-hotel-room"
|
|
378
378
|
}, [
|
|
379
379
|
w.value ? (c(), D(He, {
|
|
380
380
|
key: 0,
|
|
381
381
|
modelValue: H.id,
|
|
382
|
-
"onUpdate:modelValue": (
|
|
383
|
-
label:
|
|
384
|
-
placeholder:
|
|
382
|
+
"onUpdate:modelValue": (R) => H.id = R,
|
|
383
|
+
label: o(l)("hotel.roomVariant"),
|
|
384
|
+
placeholder: o(l)("hotel.chooseARoomVariant"),
|
|
385
385
|
options: s.value,
|
|
386
386
|
searchable: !1
|
|
387
387
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : _("", !0),
|
|
388
|
-
H.id ? (c(), h("div",
|
|
389
|
-
(c(!0), h(
|
|
390
|
-
id:
|
|
388
|
+
H.id ? (c(), h("div", Wo, [
|
|
389
|
+
(c(!0), h(M, null, F(k.room.rates, ({
|
|
390
|
+
id: R,
|
|
391
391
|
maximumOccupants: x
|
|
392
392
|
}) => (c(), h("div", {
|
|
393
|
-
key:
|
|
393
|
+
key: R,
|
|
394
394
|
class: "konnectio-listing-action-selective-i"
|
|
395
395
|
}, [
|
|
396
|
-
H.id ===
|
|
396
|
+
H.id === R ? (c(!0), h(M, { key: 0 }, F(H.config, (L, J) => (c(), h("div", {
|
|
397
397
|
key: J,
|
|
398
398
|
class: "konnectio-listing-action-selective"
|
|
399
399
|
}, [
|
|
400
|
-
a("ul",
|
|
401
|
-
g(
|
|
402
|
-
modelValue:
|
|
403
|
-
"onUpdate:modelValue": (
|
|
400
|
+
a("ul", Ko, [
|
|
401
|
+
g(Go, {
|
|
402
|
+
modelValue: L.id,
|
|
403
|
+
"onUpdate:modelValue": (Q) => L.id = Q,
|
|
404
404
|
icon: "male",
|
|
405
405
|
"icon-type": "fas",
|
|
406
|
-
label:
|
|
407
|
-
description: `${
|
|
408
|
-
options: P(
|
|
409
|
-
readonly: !(P(
|
|
406
|
+
label: o(l)("general.guests"),
|
|
407
|
+
description: `${o(l)("general.maximumGuests")}: ${x}`,
|
|
408
|
+
options: P(R),
|
|
409
|
+
readonly: !(P(R).length > 1)
|
|
410
410
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
|
|
411
411
|
]),
|
|
412
|
-
a("ul",
|
|
412
|
+
a("ul", zo, [
|
|
413
413
|
g(qe, {
|
|
414
|
-
modelValue:
|
|
415
|
-
"onUpdate:modelValue": (
|
|
416
|
-
description:
|
|
414
|
+
modelValue: L.units,
|
|
415
|
+
"onUpdate:modelValue": (Q) => L.units = Q,
|
|
416
|
+
description: o(m) ? void 0 : `${o(l)("booking.availability.availableUnits")}: ${V(H.id, L.id)}`,
|
|
417
417
|
icon: "house",
|
|
418
418
|
"icon-type": "fas",
|
|
419
419
|
"icon-placement": "label",
|
|
420
|
-
label:
|
|
420
|
+
label: o(l)("booking.availability.units"),
|
|
421
421
|
minValue: 0,
|
|
422
|
-
"max-value": V(
|
|
422
|
+
"max-value": V(R, L.id) || 1 / 0
|
|
423
423
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
|
|
424
424
|
]),
|
|
425
425
|
_("", !0)
|
|
@@ -432,7 +432,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
432
432
|
_: 1
|
|
433
433
|
}, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
|
|
434
434
|
}
|
|
435
|
-
}),
|
|
435
|
+
}), xo = /* @__PURE__ */ ue(Jo, [["__scopeId", "data-v-090cdca2"]]), Xo = { class: "konnectio-template-side-panel" }, Yo = { class: "konnectio-template-side-panel-listings" }, Zo = /* @__PURE__ */ Z({
|
|
436
436
|
__name: "Template",
|
|
437
437
|
props: {
|
|
438
438
|
title: {},
|
|
@@ -442,23 +442,23 @@ const zt = /* @__PURE__ */ Q({
|
|
|
442
442
|
callback: { type: Function }
|
|
443
443
|
},
|
|
444
444
|
setup(n) {
|
|
445
|
-
const { t: l } = ae(), { templateID: e, roomGroupID:
|
|
445
|
+
const { t: l } = ae(), { templateID: e, roomGroupID: t, selectionHasNoAddons: i } = oe(me()), { currency: s } = oe(ke()), { clearRoomSelection: m } = me(), p = n, u = le(!0), r = G(() => {
|
|
446
446
|
function f(V, P) {
|
|
447
447
|
return u.value === !0 ? V.extraPrice > P.extraPrice ? -1 : 1 : V.extraPrice > P.extraPrice ? 1 : -1;
|
|
448
448
|
}
|
|
449
449
|
return p.roomGroups?.slice().sort(f);
|
|
450
450
|
});
|
|
451
451
|
function d(f) {
|
|
452
|
-
e.value = p.templateId,
|
|
452
|
+
e.value = p.templateId, t.value = f, m(), p.hideAddons === "yes" || i.value ? p.callback(2) : p.callback(1);
|
|
453
453
|
}
|
|
454
|
-
return (f, V) => (c(), D(
|
|
454
|
+
return (f, V) => (c(), D($o, {
|
|
455
455
|
title: f.title,
|
|
456
|
-
subtitle:
|
|
456
|
+
subtitle: o(l)("booking.availability.selectATemplateRoom")
|
|
457
457
|
}, {
|
|
458
458
|
default: T(() => [
|
|
459
|
-
a("div",
|
|
460
|
-
a("div",
|
|
461
|
-
(c(!0), h(
|
|
459
|
+
a("div", Xo, [
|
|
460
|
+
a("div", Yo, [
|
|
461
|
+
(c(!0), h(M, null, F(r.value, ({
|
|
462
462
|
id: P,
|
|
463
463
|
title: w,
|
|
464
464
|
description: I,
|
|
@@ -479,7 +479,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
479
479
|
a("div", null, [
|
|
480
480
|
g(pe, {
|
|
481
481
|
onClickEvent: (H) => d(P),
|
|
482
|
-
label: `${
|
|
482
|
+
label: `${o(l)("booking.availability.selectThisRoom")} (${o(te)(C, o(s))})`,
|
|
483
483
|
"full-width": ""
|
|
484
484
|
}, null, 8, ["onClickEvent", "label"])
|
|
485
485
|
])
|
|
@@ -492,7 +492,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
492
492
|
_: 1
|
|
493
493
|
}, 8, ["title", "subtitle"]));
|
|
494
494
|
}
|
|
495
|
-
}),
|
|
495
|
+
}), gt = /* @__PURE__ */ ue(Zo, [["__scopeId", "data-v-35a96ba4"]]), Qo = ["innerHTML"], el = { class: "konnectio-template-select-package" }, tl = /* @__PURE__ */ Z({
|
|
496
496
|
__name: "Template",
|
|
497
497
|
props: {
|
|
498
498
|
id: {},
|
|
@@ -505,10 +505,10 @@ const zt = /* @__PURE__ */ Q({
|
|
|
505
505
|
callback: { type: Function }
|
|
506
506
|
},
|
|
507
507
|
setup(n) {
|
|
508
|
-
const { t: l } = ae(), e = n,
|
|
508
|
+
const { t: l } = ae(), e = n, t = G(() => e.roomGroups.reduce(
|
|
509
509
|
(u, r) => u < r.extraPrice ? u : r.extraPrice,
|
|
510
510
|
1 / 0
|
|
511
|
-
)), i =
|
|
511
|
+
)), i = G(() => {
|
|
512
512
|
if (e.image)
|
|
513
513
|
return [{
|
|
514
514
|
large: e.image.url,
|
|
@@ -516,7 +516,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
516
516
|
thumb: e.image.url,
|
|
517
517
|
url: e.image.url
|
|
518
518
|
}];
|
|
519
|
-
}), s =
|
|
519
|
+
}), s = le(!1);
|
|
520
520
|
function m() {
|
|
521
521
|
s.value = !0;
|
|
522
522
|
}
|
|
@@ -528,28 +528,28 @@ const zt = /* @__PURE__ */ Q({
|
|
|
528
528
|
name: u.name,
|
|
529
529
|
description: u.description,
|
|
530
530
|
gallery: i.value,
|
|
531
|
-
layout:
|
|
531
|
+
layout: o(vt).Template,
|
|
532
532
|
"includes-breakfast": !1,
|
|
533
533
|
"hide-info-button": !1,
|
|
534
|
-
"prices-from":
|
|
534
|
+
"prices-from": t.value
|
|
535
535
|
}, {
|
|
536
536
|
description: T(() => [
|
|
537
537
|
u.description ? (c(), h("p", {
|
|
538
538
|
key: 0,
|
|
539
|
-
innerHTML:
|
|
540
|
-
}, null, 8,
|
|
539
|
+
innerHTML: o(ht)(u.description)
|
|
540
|
+
}, null, 8, Qo)) : _("", !0)
|
|
541
541
|
]),
|
|
542
542
|
action: T(() => [
|
|
543
|
-
a("div",
|
|
543
|
+
a("div", el, [
|
|
544
544
|
g(pe, {
|
|
545
545
|
onClickEvent: m,
|
|
546
|
-
label:
|
|
546
|
+
label: o(l)("booking.availability.selectPackage"),
|
|
547
547
|
"full-width": ""
|
|
548
548
|
}, null, 8, ["label"])
|
|
549
549
|
])
|
|
550
550
|
]),
|
|
551
551
|
default: T(() => [
|
|
552
|
-
g(
|
|
552
|
+
g(gt, {
|
|
553
553
|
modelValue: s.value,
|
|
554
554
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => s.value = d),
|
|
555
555
|
title: u.name,
|
|
@@ -562,7 +562,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
562
562
|
_: 1
|
|
563
563
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
|
|
564
564
|
}
|
|
565
|
-
}), ol = ["innerHTML"],
|
|
565
|
+
}), ol = ["innerHTML"], ll = { class: "konnectio-special-offer-availability" }, nl = { class: "konnectio-special-offer-availability-button" }, al = /* @__PURE__ */ Z({
|
|
566
566
|
__name: "SpecialOffer",
|
|
567
567
|
props: {
|
|
568
568
|
id: {},
|
|
@@ -576,26 +576,26 @@ const zt = /* @__PURE__ */ Q({
|
|
|
576
576
|
callback: { type: Function }
|
|
577
577
|
},
|
|
578
578
|
setup(n) {
|
|
579
|
-
const { t: l } = ae(), { updateDates: e } = We(),
|
|
580
|
-
large:
|
|
581
|
-
medium:
|
|
582
|
-
thumb:
|
|
583
|
-
url:
|
|
584
|
-
}]), p =
|
|
579
|
+
const { t: l } = ae(), { updateDates: e } = We(), t = n, i = le([]), s = G(() => Ge(t.fromDate, t.toDate) === 1), m = G(() => [{
|
|
580
|
+
large: t.image.url,
|
|
581
|
+
medium: t.image.url,
|
|
582
|
+
thumb: t.image.url,
|
|
583
|
+
url: t.image.url
|
|
584
|
+
}]), p = le(!1);
|
|
585
585
|
function u(d) {
|
|
586
|
-
|
|
586
|
+
t.callback(d), p.value = !1;
|
|
587
587
|
}
|
|
588
588
|
function r() {
|
|
589
589
|
e(i.value[0], i.value[1]);
|
|
590
590
|
}
|
|
591
591
|
return Je(() => {
|
|
592
|
-
s.value && (i.value = [new Date(
|
|
592
|
+
s.value && (i.value = [new Date(t.fromDate), new Date(t.toDate)]);
|
|
593
593
|
}), (d, f) => (c(), D(Se, {
|
|
594
594
|
"listing-id": d.id,
|
|
595
595
|
name: d.name,
|
|
596
596
|
description: d.description,
|
|
597
597
|
gallery: m.value,
|
|
598
|
-
layout:
|
|
598
|
+
layout: o(vt).Template,
|
|
599
599
|
"includes-breakfast": !1,
|
|
600
600
|
"hide-info-button": !1,
|
|
601
601
|
"to-date": d.toDate,
|
|
@@ -604,16 +604,16 @@ const zt = /* @__PURE__ */ Q({
|
|
|
604
604
|
description: T(() => [
|
|
605
605
|
d.description ? (c(), h("p", {
|
|
606
606
|
key: 0,
|
|
607
|
-
innerHTML:
|
|
607
|
+
innerHTML: o(ht)(d.description)
|
|
608
608
|
}, null, 8, ol)) : _("", !0)
|
|
609
609
|
]),
|
|
610
610
|
action: T(() => [
|
|
611
|
-
a("div",
|
|
612
|
-
g(
|
|
611
|
+
a("div", ll, [
|
|
612
|
+
g(yt, {
|
|
613
613
|
modelValue: i.value,
|
|
614
614
|
"onUpdate:modelValue": f[0] || (f[0] = (V) => i.value = V),
|
|
615
|
-
label:
|
|
616
|
-
placeholder:
|
|
615
|
+
label: o(l)("availability.checkInOut"),
|
|
616
|
+
placeholder: o(l)("booking.availability.selectDates"),
|
|
617
617
|
"icon-type": "fas",
|
|
618
618
|
"icon-placement": "label",
|
|
619
619
|
"min-range": 1,
|
|
@@ -623,16 +623,16 @@ const zt = /* @__PURE__ */ Q({
|
|
|
623
623
|
readonly: s.value,
|
|
624
624
|
range: ""
|
|
625
625
|
}, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
|
|
626
|
-
a("div",
|
|
626
|
+
a("div", nl, [
|
|
627
627
|
g(pe, {
|
|
628
|
-
label:
|
|
628
|
+
label: o(l)("availability.buttonLabel"),
|
|
629
629
|
onClick: we(r, ["prevent"])
|
|
630
630
|
}, null, 8, ["label"])
|
|
631
631
|
])
|
|
632
632
|
])
|
|
633
633
|
]),
|
|
634
634
|
default: T(() => [
|
|
635
|
-
g(
|
|
635
|
+
g(gt, {
|
|
636
636
|
modelValue: p.value,
|
|
637
637
|
"onUpdate:modelValue": f[1] || (f[1] = (V) => p.value = V),
|
|
638
638
|
title: d.name,
|
|
@@ -644,7 +644,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
644
644
|
_: 1
|
|
645
645
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
|
|
646
646
|
}
|
|
647
|
-
}),
|
|
647
|
+
}), at = /* @__PURE__ */ Z({
|
|
648
648
|
__name: "TimeField",
|
|
649
649
|
props: {
|
|
650
650
|
modelValue: {},
|
|
@@ -669,14 +669,14 @@ const zt = /* @__PURE__ */ Q({
|
|
|
669
669
|
},
|
|
670
670
|
emits: ["update:modelValue"],
|
|
671
671
|
setup(n, { emit: l }) {
|
|
672
|
-
const e = l,
|
|
672
|
+
const e = l, t = n;
|
|
673
673
|
function i(m) {
|
|
674
674
|
e("update:modelValue", m);
|
|
675
675
|
}
|
|
676
|
-
const s =
|
|
676
|
+
const s = le(t.modelValue);
|
|
677
677
|
return Ce(s, (m) => {
|
|
678
678
|
i(m);
|
|
679
|
-
}), (m, p) => (c(), D(
|
|
679
|
+
}), (m, p) => (c(), D(yt, {
|
|
680
680
|
modelValue: s.value,
|
|
681
681
|
"onUpdate:modelValue": p[0] || (p[0] = (u) => s.value = u),
|
|
682
682
|
type: "time",
|
|
@@ -691,7 +691,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
691
691
|
readonly: m.readonly
|
|
692
692
|
}, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
|
|
693
693
|
}
|
|
694
|
-
}),
|
|
694
|
+
}), il = { style: { display: "flex", "align-items": "baseline" } }, sl = /* @__PURE__ */ Z({
|
|
695
695
|
__name: "CountryField",
|
|
696
696
|
props: {
|
|
697
697
|
modelValue: {},
|
|
@@ -703,11 +703,11 @@ const zt = /* @__PURE__ */ Q({
|
|
|
703
703
|
},
|
|
704
704
|
emits: ["update:modelValue"],
|
|
705
705
|
setup(n, { emit: l }) {
|
|
706
|
-
const { t: e } = ae(),
|
|
706
|
+
const { t: e } = ae(), t = l, i = n;
|
|
707
707
|
function s(p) {
|
|
708
|
-
|
|
708
|
+
t("update:modelValue", p);
|
|
709
709
|
}
|
|
710
|
-
const m =
|
|
710
|
+
const m = G({
|
|
711
711
|
get: () => i.modelValue,
|
|
712
712
|
set: (p) => s(p)
|
|
713
713
|
});
|
|
@@ -715,7 +715,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
715
715
|
modelValue: m.value,
|
|
716
716
|
"onUpdate:modelValue": u[0] || (u[0] = (r) => m.value = r),
|
|
717
717
|
label: p.label,
|
|
718
|
-
placeholder:
|
|
718
|
+
placeholder: o(e)("booking.reservation.countryPlaceholder"),
|
|
719
719
|
labelKey: "name",
|
|
720
720
|
valueKey: "id",
|
|
721
721
|
options: p.options,
|
|
@@ -728,7 +728,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
728
728
|
a("span", null, y(r.name), 1)
|
|
729
729
|
]),
|
|
730
730
|
"selected-option": T(({ data: r }) => [
|
|
731
|
-
a("div",
|
|
731
|
+
a("div", il, [
|
|
732
732
|
a("i", {
|
|
733
733
|
class: Pe(["konnectio-flag-icon", r.iso])
|
|
734
734
|
}, null, 2),
|
|
@@ -738,7 +738,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
738
738
|
_: 1
|
|
739
739
|
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
740
740
|
}
|
|
741
|
-
}),
|
|
741
|
+
}), rl = /* @__PURE__ */ ue(sl, [["__scopeId", "data-v-1462612d"]]), dl = /* @__PURE__ */ Z({
|
|
742
742
|
__name: "NameField",
|
|
743
743
|
props: {
|
|
744
744
|
modelValue: {},
|
|
@@ -760,19 +760,19 @@ const zt = /* @__PURE__ */ Q({
|
|
|
760
760
|
},
|
|
761
761
|
emits: ["update:modelValue", "update:title"],
|
|
762
762
|
setup(n, { emit: l }) {
|
|
763
|
-
const e = n,
|
|
763
|
+
const e = n, t = l, i = e.id || lt(), s = le(""), m = le(2);
|
|
764
764
|
function p() {
|
|
765
|
-
|
|
765
|
+
t("update:modelValue", s.value);
|
|
766
766
|
}
|
|
767
767
|
Ce(m, (r) => {
|
|
768
|
-
|
|
768
|
+
t("update:title", r);
|
|
769
769
|
});
|
|
770
770
|
const { t: u } = ae();
|
|
771
771
|
return Je(() => {
|
|
772
772
|
e.modelValue && (s.value = e.modelValue), e.title && (m.value = e.title);
|
|
773
|
-
}), (r, d) => (c(), D(
|
|
773
|
+
}), (r, d) => (c(), D(lo, {
|
|
774
774
|
label: r.label,
|
|
775
|
-
id:
|
|
775
|
+
id: o(i),
|
|
776
776
|
required: r.required,
|
|
777
777
|
type: "fresh-booking-name-field",
|
|
778
778
|
readonly: r.readonly,
|
|
@@ -789,29 +789,29 @@ const zt = /* @__PURE__ */ Q({
|
|
|
789
789
|
key: 0,
|
|
790
790
|
modelValue: m.value,
|
|
791
791
|
"onUpdate:modelValue": d[0] || (d[0] = (f) => m.value = f),
|
|
792
|
-
id:
|
|
792
|
+
id: o(lt)(),
|
|
793
793
|
icon: r.icon,
|
|
794
794
|
"icon-color": r.iconColor,
|
|
795
795
|
"icon-type": r.iconType,
|
|
796
796
|
options: [
|
|
797
797
|
{
|
|
798
|
-
label:
|
|
798
|
+
label: o(u)("booking.reservation.noNameTitle"),
|
|
799
799
|
value: 1
|
|
800
800
|
},
|
|
801
801
|
{
|
|
802
|
-
label:
|
|
802
|
+
label: o(u)("booking.reservation.nameTitleMr"),
|
|
803
803
|
value: 2
|
|
804
804
|
},
|
|
805
805
|
{
|
|
806
|
-
label:
|
|
806
|
+
label: o(u)("booking.reservation.nameTitleMs"),
|
|
807
807
|
value: 3
|
|
808
808
|
},
|
|
809
809
|
{
|
|
810
|
-
label:
|
|
810
|
+
label: o(u)("booking.reservation.nameTitleMrs"),
|
|
811
811
|
value: 4
|
|
812
812
|
},
|
|
813
813
|
{
|
|
814
|
-
label:
|
|
814
|
+
label: o(u)("booking.reservation.nameTitleDr"),
|
|
815
815
|
value: 5
|
|
816
816
|
}
|
|
817
817
|
],
|
|
@@ -826,7 +826,7 @@ const zt = /* @__PURE__ */ Q({
|
|
|
826
826
|
type: "text",
|
|
827
827
|
name: "name",
|
|
828
828
|
autocomplete: "name",
|
|
829
|
-
id:
|
|
829
|
+
id: o(i),
|
|
830
830
|
icon: r.excludeTitle ? r.icon : void 0,
|
|
831
831
|
"icon-color": r.iconColor,
|
|
832
832
|
"icon-type": r.iconType,
|
|
@@ -842,69 +842,69 @@ const zt = /* @__PURE__ */ Q({
|
|
|
842
842
|
_: 1
|
|
843
843
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
844
844
|
}
|
|
845
|
-
}),
|
|
845
|
+
}), ul = /* @__PURE__ */ ue(dl, [["__scopeId", "data-v-78b0b319"]]), cl = { class: "hotel-skeleton" }, pl = { class: "hotel-skeleton-content" }, ml = { class: "hotel-skeleton-sidebar" }, fl = /* @__PURE__ */ Z({
|
|
846
846
|
__name: "HotelSkeleton",
|
|
847
847
|
setup(n) {
|
|
848
|
-
return (l, e) => (c(), h("div",
|
|
849
|
-
a("div", cl, [
|
|
850
|
-
g(bt, { hotel: "" }),
|
|
851
|
-
g(mt)
|
|
852
|
-
]),
|
|
848
|
+
return (l, e) => (c(), h("div", cl, [
|
|
853
849
|
a("div", pl, [
|
|
854
|
-
g(
|
|
850
|
+
g(_o, { hotel: "" }),
|
|
851
|
+
g(fo)
|
|
852
|
+
]),
|
|
853
|
+
a("div", ml, [
|
|
854
|
+
g(ho)
|
|
855
855
|
])
|
|
856
856
|
]));
|
|
857
857
|
}
|
|
858
|
-
}),
|
|
859
|
-
const
|
|
858
|
+
}), hl = /* @__PURE__ */ ue(fl, [["__scopeId", "data-v-1bb21da4"]]), xe = (n) => (pt("data-v-295d18f5"), n = n(), mt(), n), vl = { id: "booking-availability-container" }, yl = { id: "booking-availability-controls" };
|
|
859
|
+
const gl = { key: 1 }, kl = { key: 0 }, bl = {
|
|
860
860
|
key: 0,
|
|
861
861
|
id: "booking-availability-packages"
|
|
862
|
-
},
|
|
862
|
+
}, _l = {
|
|
863
863
|
key: 0,
|
|
864
864
|
class: "konnectio-hotel-availability-title"
|
|
865
|
-
},
|
|
865
|
+
}, Vl = { id: "booking-availability-packages-wrapper" }, Tl = { key: 1 }, $l = {
|
|
866
866
|
key: 0,
|
|
867
867
|
class: "konnectio-hotel-availability-title"
|
|
868
|
-
},
|
|
868
|
+
}, wl = { id: "konnectio-listings" }, Cl = {
|
|
869
869
|
key: 2,
|
|
870
870
|
id: "booking-availability-packages"
|
|
871
|
-
},
|
|
871
|
+
}, Pl = {
|
|
872
872
|
key: 0,
|
|
873
873
|
class: "konnectio-hotel-availability-title"
|
|
874
|
-
},
|
|
874
|
+
}, Al = { id: "booking-availability-packages-wrapper" }, Dl = {
|
|
875
875
|
key: 3,
|
|
876
876
|
id: "booking-availability-no-listings",
|
|
877
877
|
class: "konnectio-panel"
|
|
878
|
-
},
|
|
878
|
+
}, Hl = {
|
|
879
879
|
key: 1,
|
|
880
880
|
id: "booking-availability-no-listings"
|
|
881
|
-
},
|
|
881
|
+
}, Sl = {
|
|
882
882
|
key: 2,
|
|
883
883
|
id: "reservation-availability-next-dates"
|
|
884
|
-
},
|
|
885
|
-
const
|
|
884
|
+
}, Il = { class: "konnectio-hotel-availability-title" }, Bl = { class: "reservation-special-offers-grid" }, El = ["title"];
|
|
885
|
+
const Ml = {
|
|
886
886
|
key: 2,
|
|
887
887
|
class: "konnectio-listing-loading"
|
|
888
|
-
},
|
|
888
|
+
}, Ul = { class: "konnectio-panel" }, Rl = {
|
|
889
889
|
key: 0,
|
|
890
890
|
id: "konnectio-hotel-addons"
|
|
891
891
|
};
|
|
892
|
-
const
|
|
892
|
+
const Ll = { class: "konnectio-event-addons-price" }, Nl = { key: 1 }, Fl = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("br", null, null, -1)), Ol = { class: "konnectio-hotel-addons-option" }, jl = {
|
|
893
893
|
key: 1,
|
|
894
894
|
id: "konnectio-hotel-addons"
|
|
895
|
-
},
|
|
896
|
-
const
|
|
895
|
+
}, Gl = { class: "konnectio-table with-lines" };
|
|
896
|
+
const ql = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("th", { class: "konnectio-event-addons-price" }, null, -1)), Wl = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("br", null, null, -1)), Kl = { class: "konnectio-hotel-addons-option" }, zl = ["onClick"], Jl = { class: "konnectio-panel" }, xl = { key: 0 }, Xl = { key: 1 }, Yl = { class: "konnectio-split-inputs" }, Zl = ["onClick"], Ql = /* @__PURE__ */ Z({
|
|
897
897
|
name: "HotelLayout",
|
|
898
898
|
__name: "Hotel",
|
|
899
899
|
props: {
|
|
900
900
|
accessToken: {},
|
|
901
|
-
headerLayout: { default:
|
|
901
|
+
headerLayout: { default: no.Minimal },
|
|
902
902
|
onlyShow: { default: "everything" },
|
|
903
903
|
hideAddons: { default: "no" },
|
|
904
904
|
styling: {}
|
|
905
905
|
},
|
|
906
906
|
setup(n) {
|
|
907
|
-
const l =
|
|
907
|
+
const l = Zt(() => import("./_-BOjhcjBA.js")), e = n, { t } = ae(), {
|
|
908
908
|
templateID: i,
|
|
909
909
|
templateAddons: s,
|
|
910
910
|
countries: m,
|
|
@@ -922,223 +922,225 @@ const Gl = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
922
922
|
postal: C,
|
|
923
923
|
city: H,
|
|
924
924
|
address: O,
|
|
925
|
-
country:
|
|
925
|
+
country: R,
|
|
926
926
|
remark: x,
|
|
927
|
-
allergies:
|
|
927
|
+
allergies: L,
|
|
928
928
|
roomSelect: J,
|
|
929
|
-
roomDisplay:
|
|
929
|
+
roomDisplay: Q,
|
|
930
930
|
hasValidRoomSelection: be,
|
|
931
931
|
availabilityData: j,
|
|
932
932
|
selectionHasNoAddons: he,
|
|
933
933
|
isAvailabilityDataAvailable: ce,
|
|
934
934
|
getSelectedPackageRoom: fe,
|
|
935
|
-
selectedPackage:
|
|
936
|
-
} =
|
|
935
|
+
selectedPackage: ne
|
|
936
|
+
} = oe(me()), {
|
|
937
937
|
adults: W,
|
|
938
|
-
children:
|
|
938
|
+
children: U,
|
|
939
939
|
location: ve,
|
|
940
940
|
arrivalDate: _e,
|
|
941
941
|
departureDate: ye
|
|
942
|
-
} =
|
|
943
|
-
currency:
|
|
942
|
+
} = oe(We()), { isValidHotelId: Ie } = We(), {
|
|
943
|
+
currency: ee,
|
|
944
944
|
arrivalEarliest: Be,
|
|
945
945
|
arrivalLatest: Ye,
|
|
946
|
-
departureEarliest:
|
|
947
|
-
departureLatest:
|
|
948
|
-
enableTracking:
|
|
949
|
-
arrivalDefault:
|
|
950
|
-
departureDefault:
|
|
951
|
-
hideArrivalDepartureInputs:
|
|
946
|
+
departureEarliest: Tt,
|
|
947
|
+
departureLatest: $t,
|
|
948
|
+
enableTracking: wt,
|
|
949
|
+
arrivalDefault: Ct,
|
|
950
|
+
departureDefault: Pt,
|
|
951
|
+
hideArrivalDepartureInputs: At,
|
|
952
952
|
disableArrivalUserSelection: Ee,
|
|
953
|
-
disableNamePrefix:
|
|
953
|
+
disableNamePrefix: Dt,
|
|
954
954
|
disableDepartureUserSelection: Me,
|
|
955
|
-
disableTravelingFor:
|
|
956
|
-
disableTravelingForBleasure:
|
|
957
|
-
disableCompanyField:
|
|
958
|
-
hasPaymentGateway:
|
|
959
|
-
} =
|
|
960
|
-
resetTemplate:
|
|
961
|
-
resetDiscountVoucher:
|
|
962
|
-
createReservation:
|
|
963
|
-
fetchMetadata:
|
|
955
|
+
disableTravelingFor: Ht,
|
|
956
|
+
disableTravelingForBleasure: St,
|
|
957
|
+
disableCompanyField: It,
|
|
958
|
+
hasPaymentGateway: Bt
|
|
959
|
+
} = oe(ke()), { beginCheckout: Et } = ft(), {
|
|
960
|
+
resetTemplate: Mt,
|
|
961
|
+
resetDiscountVoucher: Ut,
|
|
962
|
+
createReservation: Rt,
|
|
963
|
+
fetchMetadata: Lt,
|
|
964
964
|
fetchAvailabilityData: Ze
|
|
965
|
-
} = me(),
|
|
965
|
+
} = me(), Nt = le(!0), Ft = G(() => {
|
|
966
966
|
const b = [
|
|
967
967
|
{
|
|
968
|
-
label:
|
|
968
|
+
label: t("booking.reservation.business"),
|
|
969
969
|
value: "Business"
|
|
970
970
|
},
|
|
971
971
|
{
|
|
972
|
-
label:
|
|
972
|
+
label: t("booking.reservation.pleasure"),
|
|
973
973
|
value: "Pleasure"
|
|
974
974
|
}
|
|
975
975
|
];
|
|
976
|
-
return
|
|
977
|
-
label:
|
|
976
|
+
return St.value || b.push({
|
|
977
|
+
label: t("booking.reservation.bleasure"),
|
|
978
978
|
value: "Bleasure"
|
|
979
979
|
}), b;
|
|
980
|
-
}),
|
|
980
|
+
}), Ot = G(() => {
|
|
981
981
|
const b = j.value.roomGroups.slice();
|
|
982
982
|
function $(K, A) {
|
|
983
|
-
return
|
|
983
|
+
return Nt.value === !0 ? K.pricesFrom > A.pricesFrom ? -1 : 1 : K.pricesFrom > A.pricesFrom ? 1 : -1;
|
|
984
984
|
}
|
|
985
985
|
return b.sort($);
|
|
986
|
-
}),
|
|
986
|
+
}), jt = G(() => [[
|
|
987
987
|
parseInt(Be.value.split(":")[0]),
|
|
988
988
|
parseInt(Ye.value.split(":")[0])
|
|
989
|
-
]]),
|
|
990
|
-
parseInt(
|
|
991
|
-
parseInt(
|
|
989
|
+
]]), Gt = G(() => [[
|
|
990
|
+
parseInt(Tt.value.split(":")[0]),
|
|
991
|
+
parseInt($t.value.split(":")[0])
|
|
992
992
|
]]);
|
|
993
|
-
function
|
|
994
|
-
e.hideAddons === "yes" || he.value ? b(2) : b(),
|
|
993
|
+
function Qe(b) {
|
|
994
|
+
e.hideAddons === "yes" || he.value ? b(2) : b(), Ut();
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function qt(b, $) {
|
|
997
997
|
ye.value = new Date($), _e.value = new Date(b), Ze();
|
|
998
998
|
}
|
|
999
|
-
async function
|
|
1000
|
-
await
|
|
999
|
+
async function Wt(b) {
|
|
1000
|
+
await Rt(b);
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1003
|
-
|
|
1002
|
+
function Kt(b) {
|
|
1003
|
+
wt.value && Et(), e.hideAddons === "yes" || he.value ? b(2) : b();
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
f.value === "" && (f.value =
|
|
1005
|
+
function zt() {
|
|
1006
|
+
f.value === "" && (f.value = Ct.value), V.value === "" && (V.value = Pt.value);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1009
|
-
const b =
|
|
1008
|
+
function Jt() {
|
|
1009
|
+
const b = io("hash-params", {
|
|
1010
1010
|
removeNullishValues: !0
|
|
1011
|
-
}), $ = parseInt(b.adults), K = parseInt(b.children), A = parseInt(b.location), v = b.checkin,
|
|
1012
|
-
isNaN($) || (W.value = $, b.adults = void 0), isNaN(K) || (
|
|
1013
|
-
function S(
|
|
1014
|
-
return !isNaN(new Date(
|
|
1011
|
+
}), $ = parseInt(b.adults), K = parseInt(b.children), A = parseInt(b.location), v = b.checkin, q = b.checkout, E = b.roomGroupId;
|
|
1012
|
+
isNaN($) || (W.value = $, b.adults = void 0), isNaN(K) || (U.value = K, b.children = void 0), isNaN(A) || (Ie(A) ? (ve.value = A, b.location = void 0) : console.log("Hotel ID: not found"));
|
|
1013
|
+
function S(Y) {
|
|
1014
|
+
return !isNaN(new Date(Y));
|
|
1015
1015
|
}
|
|
1016
|
-
v &&
|
|
1016
|
+
v && q && (S(v) && S(q) ? (_e.value = new Date(v), ye.value = new Date(q), b.checkin = void 0, b.checkout = void 0) : console.log("Check-in or check-out illformed"));
|
|
1017
|
+
let X = null;
|
|
1018
|
+
E && (X = E), console.log(X, E), zt(), Ze(X);
|
|
1017
1019
|
}
|
|
1018
|
-
return (b, $) => (c(), D(
|
|
1020
|
+
return (b, $) => (c(), D(ao, { styling: b.styling }, {
|
|
1019
1021
|
default: T(() => [
|
|
1020
|
-
(c(), D(
|
|
1022
|
+
(c(), D(Yt, { onResolve: Jt }, {
|
|
1021
1023
|
default: T(() => [
|
|
1022
|
-
g(
|
|
1024
|
+
g(o(l), {
|
|
1023
1025
|
id: "konnectio-hotel-module",
|
|
1024
1026
|
"access-token": b.accessToken,
|
|
1025
|
-
callback:
|
|
1027
|
+
callback: o(Lt)
|
|
1026
1028
|
}, {
|
|
1027
1029
|
default: T(() => [
|
|
1028
|
-
g(
|
|
1030
|
+
g(vo, {
|
|
1029
1031
|
layout: b.headerLayout,
|
|
1030
|
-
onReset:
|
|
1032
|
+
onReset: o(Mt)
|
|
1031
1033
|
}, {
|
|
1032
1034
|
availability: T(({ next: K }) => [
|
|
1033
1035
|
g(Fe, null, {
|
|
1034
1036
|
form: T(() => [
|
|
1035
|
-
a("div",
|
|
1036
|
-
a("div",
|
|
1037
|
-
g(
|
|
1037
|
+
a("div", vl, [
|
|
1038
|
+
a("div", yl, [
|
|
1039
|
+
g(Vo, { booking: !0 })
|
|
1038
1040
|
]),
|
|
1039
1041
|
_("", !0),
|
|
1040
|
-
!
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
b.onlyShow !== "packages" ? (c(), h("h2",
|
|
1042
|
+
!o(p) && o(ce) ? (c(), h("div", gl, [
|
|
1043
|
+
o(j).roomGroups.length > 0 || o(j).templates.length > 0 || o(j).specialTemplates.length > 0 ? (c(), h("div", kl, [
|
|
1044
|
+
o(j).templates.length > 0 && b.onlyShow !== "rooms" ? (c(), h("div", bl, [
|
|
1045
|
+
b.onlyShow !== "packages" ? (c(), h("h2", _l, [
|
|
1044
1046
|
g(z, {
|
|
1045
1047
|
icon: "box",
|
|
1046
1048
|
type: "fal",
|
|
1047
1049
|
color: "header"
|
|
1048
1050
|
}),
|
|
1049
|
-
a("span", null, y(t
|
|
1051
|
+
a("span", null, y(o(t)("booking.availability.packagesTitle")), 1)
|
|
1050
1052
|
])) : _("", !0),
|
|
1051
|
-
a("ul",
|
|
1052
|
-
(c(!0), h(
|
|
1053
|
+
a("ul", Vl, [
|
|
1054
|
+
(c(!0), h(M, null, F(o(j).templates, ({
|
|
1053
1055
|
id: A,
|
|
1054
1056
|
name: v,
|
|
1055
|
-
templateRoomGroups:
|
|
1056
|
-
image:
|
|
1057
|
+
templateRoomGroups: q,
|
|
1058
|
+
image: E,
|
|
1057
1059
|
description: S,
|
|
1058
|
-
weekendFee:
|
|
1059
|
-
}) => (c(), D(
|
|
1060
|
+
weekendFee: X
|
|
1061
|
+
}) => (c(), D(tl, {
|
|
1060
1062
|
key: A,
|
|
1061
1063
|
id: A,
|
|
1062
1064
|
description: S,
|
|
1063
1065
|
name: v,
|
|
1064
|
-
image:
|
|
1065
|
-
weekendFee:
|
|
1066
|
-
"room-groups":
|
|
1066
|
+
image: E,
|
|
1067
|
+
weekendFee: X,
|
|
1068
|
+
"room-groups": q,
|
|
1067
1069
|
callback: K,
|
|
1068
1070
|
"hide-addons": b.hideAddons
|
|
1069
1071
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
1070
1072
|
])
|
|
1071
1073
|
])) : _("", !0),
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
+
o(j).roomGroups.length > 0 && b.onlyShow !== "packages" ? (c(), h("div", Tl, [
|
|
1075
|
+
o(j).templates.length > 0 && b.onlyShow !== "rooms" ? (c(), h("h2", $l, [
|
|
1074
1076
|
g(z, {
|
|
1075
1077
|
icon: "house",
|
|
1076
1078
|
type: "fal",
|
|
1077
1079
|
color: "header"
|
|
1078
1080
|
}),
|
|
1079
|
-
a("span", null, y(t
|
|
1081
|
+
a("span", null, y(o(t)("booking.availability.roomsTitle")), 1)
|
|
1080
1082
|
])) : _("", !0),
|
|
1081
|
-
a("ul",
|
|
1082
|
-
(c(!0), h(
|
|
1083
|
+
a("ul", wl, [
|
|
1084
|
+
(c(!0), h(M, null, F(Ot.value, (A, v) => (c(), D(xo, {
|
|
1083
1085
|
room: A,
|
|
1084
1086
|
key: v
|
|
1085
1087
|
}, null, 8, ["room"]))), 128))
|
|
1086
1088
|
])
|
|
1087
1089
|
])) : _("", !0),
|
|
1088
|
-
|
|
1089
|
-
b.onlyShow !== "packages" ? (c(), h("h2",
|
|
1090
|
+
o(j).specialTemplates.length > 0 && b.onlyShow !== "rooms" ? (c(), h("div", Cl, [
|
|
1091
|
+
b.onlyShow !== "packages" ? (c(), h("h2", Pl, [
|
|
1090
1092
|
g(z, {
|
|
1091
1093
|
icon: "sparkles",
|
|
1092
1094
|
type: "fal",
|
|
1093
1095
|
color: "header"
|
|
1094
1096
|
}),
|
|
1095
|
-
a("span", null, y(t
|
|
1097
|
+
a("span", null, y(o(t)("hotel.specialOffers")), 1)
|
|
1096
1098
|
])) : _("", !0),
|
|
1097
|
-
a("ul",
|
|
1098
|
-
(c(!0), h(
|
|
1099
|
+
a("ul", Al, [
|
|
1100
|
+
(c(!0), h(M, null, F(o(j).specialTemplates, ({
|
|
1099
1101
|
id: A,
|
|
1100
1102
|
name: v,
|
|
1101
|
-
templateRoomGroups:
|
|
1102
|
-
image:
|
|
1103
|
+
templateRoomGroups: q,
|
|
1104
|
+
image: E,
|
|
1103
1105
|
description: S,
|
|
1104
|
-
weekendFee:
|
|
1105
|
-
fromDate:
|
|
1106
|
+
weekendFee: X,
|
|
1107
|
+
fromDate: Y,
|
|
1106
1108
|
toDate: Ue
|
|
1107
|
-
}) => (c(), D(
|
|
1109
|
+
}) => (c(), D(al, {
|
|
1108
1110
|
key: A,
|
|
1109
1111
|
id: A,
|
|
1110
1112
|
description: S,
|
|
1111
1113
|
name: v,
|
|
1112
|
-
image:
|
|
1113
|
-
fromDate:
|
|
1114
|
+
image: E,
|
|
1115
|
+
fromDate: Y,
|
|
1114
1116
|
toDate: Ue,
|
|
1115
|
-
weekendFee:
|
|
1116
|
-
"room-groups":
|
|
1117
|
+
weekendFee: X,
|
|
1118
|
+
"room-groups": q,
|
|
1117
1119
|
callback: K
|
|
1118
1120
|
}, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1119
1121
|
])
|
|
1120
1122
|
])) : _("", !0),
|
|
1121
|
-
(
|
|
1122
|
-
a("span", null, y(t
|
|
1123
|
+
(o(j).templates.length === 0 && b.onlyShow !== "rooms" || o(j).roomGroups.length === 0 && b.onlyShow !== "packages") && (b.onlyShow === "rooms" || b.onlyShow === "packages") ? (c(), h("div", Dl, [
|
|
1124
|
+
a("span", null, y(o(t)("booking.availability.nothingAvailable")), 1)
|
|
1123
1125
|
])) : _("", !0)
|
|
1124
|
-
])) :
|
|
1125
|
-
a("span", null, y(t
|
|
1126
|
-
])) : (c(), h("div",
|
|
1127
|
-
a("h2",
|
|
1126
|
+
])) : o(j).nextAvailableDates.length === 0 ? (c(), h("div", Hl, [
|
|
1127
|
+
a("span", null, y(o(t)("booking.availability.nothingAvailable")), 1)
|
|
1128
|
+
])) : (c(), h("div", Sl, [
|
|
1129
|
+
a("h2", Il, [
|
|
1128
1130
|
g(z, {
|
|
1129
1131
|
icon: "calendar-circle-exclamation",
|
|
1130
1132
|
type: "fal",
|
|
1131
1133
|
color: "header"
|
|
1132
1134
|
}),
|
|
1133
|
-
a("span", null, y(t
|
|
1135
|
+
a("span", null, y(o(t)("booking.availability.nextAvailableDates")), 1)
|
|
1134
1136
|
]),
|
|
1135
|
-
a("ul",
|
|
1136
|
-
(c(!0), h(
|
|
1137
|
+
a("ul", Bl, [
|
|
1138
|
+
(c(!0), h(M, null, F(o(j).nextAvailableDates, (A, v) => (c(), h("li", { key: v }, [
|
|
1137
1139
|
a("h3", {
|
|
1138
|
-
title: `${
|
|
1140
|
+
title: `${o(de)(A.fromDate)} - ${o(de)(A.toDate)}`
|
|
1139
1141
|
}, [
|
|
1140
|
-
a("span", null, y(`${
|
|
1141
|
-
], 8,
|
|
1142
|
+
a("span", null, y(`${o(de)(A.fromDate)} - ${o(de)(A.toDate)}`), 1)
|
|
1143
|
+
], 8, El),
|
|
1142
1144
|
a("ul", null, [
|
|
1143
1145
|
_("", !0),
|
|
1144
1146
|
a("li", null, [
|
|
@@ -1147,18 +1149,18 @@ const Gl = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1147
1149
|
type: "fal",
|
|
1148
1150
|
color: "header"
|
|
1149
1151
|
}),
|
|
1150
|
-
a("span", null, y(t
|
|
1152
|
+
a("span", null, y(o(t)("booking.availability.pricesFrom")) + ": " + y(o(te)(A.priceStartFrom, o(ee))), 1)
|
|
1151
1153
|
])
|
|
1152
1154
|
]),
|
|
1153
1155
|
g(pe, {
|
|
1154
|
-
label: t
|
|
1156
|
+
label: o(t)("booking.availability.selectDates"),
|
|
1155
1157
|
"full-width": "",
|
|
1156
|
-
onClickEvent: (
|
|
1158
|
+
onClickEvent: (q) => qt(A.fromDate, A.toDate)
|
|
1157
1159
|
}, null, 8, ["label", "onClickEvent"])
|
|
1158
1160
|
]))), 128))
|
|
1159
1161
|
])
|
|
1160
1162
|
]))
|
|
1161
|
-
])) : (c(), h("div",
|
|
1163
|
+
])) : (c(), h("div", Ml, [
|
|
1162
1164
|
g(Ne),
|
|
1163
1165
|
g(Ne),
|
|
1164
1166
|
g(Ne)
|
|
@@ -1167,45 +1169,45 @@ const Gl = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1167
1169
|
]),
|
|
1168
1170
|
navigation: T(() => [
|
|
1169
1171
|
g(pe, {
|
|
1170
|
-
label:
|
|
1171
|
-
disabled: !
|
|
1172
|
+
label: o(he) || b.hideAddons === "yes" ? o(t)("booking.availability.nextButton") : o(t)("general.chooseAddons"),
|
|
1173
|
+
disabled: !o(be),
|
|
1172
1174
|
"is-loading": !1,
|
|
1173
1175
|
"full-width": "",
|
|
1174
|
-
onClickEvent: (A) =>
|
|
1176
|
+
onClickEvent: (A) => Kt(K)
|
|
1175
1177
|
}, null, 8, ["label", "disabled", "onClickEvent"])
|
|
1176
1178
|
]),
|
|
1177
1179
|
_: 2
|
|
1178
1180
|
}, 1024)
|
|
1179
1181
|
]),
|
|
1180
1182
|
addons: T(({ next: K, prev: A }) => [
|
|
1181
|
-
|
|
1183
|
+
o(ce) ? (c(), D(Fe, { key: 0 }, {
|
|
1182
1184
|
form: T(() => [
|
|
1183
|
-
a("form",
|
|
1185
|
+
a("form", Ul, [
|
|
1184
1186
|
a("h2", null, [
|
|
1185
|
-
a("span", null, y(t
|
|
1187
|
+
a("span", null, y(o(t)("booking.reservation.addons")), 1)
|
|
1186
1188
|
]),
|
|
1187
1189
|
a("div", null, [
|
|
1188
|
-
isNaN(
|
|
1189
|
-
(c(!0), h(
|
|
1190
|
+
isNaN(o(i)) ? (c(), h("div", Rl, [
|
|
1191
|
+
(c(!0), h(M, null, F(o(Q), (v) => (c(), h("ul", {
|
|
1190
1192
|
key: v.roomGroupID
|
|
1191
1193
|
}, [
|
|
1192
|
-
(c(!0), h(
|
|
1193
|
-
key:
|
|
1194
|
+
(c(!0), h(M, null, F(v.variants, (q, E) => (c(), h("li", {
|
|
1195
|
+
key: q.ratePlanID
|
|
1194
1196
|
}, [
|
|
1195
1197
|
a("h4", null, [
|
|
1196
|
-
a("span", null, y(
|
|
1198
|
+
a("span", null, y(o(re)(v.title)), 1)
|
|
1197
1199
|
]),
|
|
1198
|
-
(c(!0), h(
|
|
1199
|
-
key:
|
|
1200
|
+
(c(!0), h(M, null, F(q.rooms, (S, X) => (c(), h("table", {
|
|
1201
|
+
key: X,
|
|
1200
1202
|
class: "konnectio-table with-lines"
|
|
1201
1203
|
}, [
|
|
1202
1204
|
a("thead", null, [
|
|
1203
1205
|
a("tr", null, [
|
|
1204
1206
|
a("th", null, [
|
|
1205
|
-
a("span", null, y(
|
|
1207
|
+
a("span", null, y(o(re)(q.name)), 1)
|
|
1206
1208
|
]),
|
|
1207
1209
|
_("", !0),
|
|
1208
|
-
a("th",
|
|
1210
|
+
a("th", Ll, [
|
|
1209
1211
|
a("b", null, [
|
|
1210
1212
|
g(z, {
|
|
1211
1213
|
icon: "male",
|
|
@@ -1219,37 +1221,37 @@ const Gl = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1219
1221
|
type: "fas",
|
|
1220
1222
|
color: "font"
|
|
1221
1223
|
})) : _("", !0),
|
|
1222
|
-
S.childrenCount > 0 ? (c(), h("span",
|
|
1224
|
+
S.childrenCount > 0 ? (c(), h("span", Nl, y(S.childrenCount), 1)) : _("", !0)
|
|
1223
1225
|
])
|
|
1224
1226
|
])
|
|
1225
1227
|
])
|
|
1226
1228
|
]),
|
|
1227
1229
|
a("tbody", null, [
|
|
1228
|
-
(c(!0), h(
|
|
1229
|
-
quantityStrategy:
|
|
1230
|
+
(c(!0), h(M, null, F(v.addons, ({
|
|
1231
|
+
quantityStrategy: Y,
|
|
1230
1232
|
maximumNumber: Ue,
|
|
1231
1233
|
id: ge,
|
|
1232
|
-
name:
|
|
1233
|
-
price:
|
|
1234
|
+
name: xt,
|
|
1235
|
+
price: Xt
|
|
1234
1236
|
}) => (c(), h("tr", { key: ge }, [
|
|
1235
1237
|
a("td", null, [
|
|
1236
|
-
a("b", null, y(
|
|
1237
|
-
|
|
1238
|
-
a("span", null, y(
|
|
1238
|
+
a("b", null, y(o(re)(xt)), 1),
|
|
1239
|
+
Fl,
|
|
1240
|
+
a("span", null, y(o(te)(Xt, o(ee))) + " " + y(o(nt)(Y)), 1)
|
|
1239
1241
|
]),
|
|
1240
|
-
a("td",
|
|
1241
|
-
|
|
1242
|
-
|
|
1242
|
+
a("td", Ol, [
|
|
1243
|
+
o(J)[v.roomGroupID][E].config[S.configIdx].addons[S.roomIdx] ? (c(), h(M, { key: 0 }, [
|
|
1244
|
+
Y === 1 || Y === 12 ? (c(), D(qe, {
|
|
1243
1245
|
key: 0,
|
|
1244
|
-
modelValue:
|
|
1245
|
-
"onUpdate:modelValue": (Re) =>
|
|
1246
|
+
modelValue: o(J)[v.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][ge],
|
|
1247
|
+
"onUpdate:modelValue": (Re) => o(J)[v.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][ge] = Re,
|
|
1246
1248
|
small: !0,
|
|
1247
1249
|
"min-value": 0,
|
|
1248
1250
|
"max-value": Ue || 1 / 0
|
|
1249
1251
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (c(), D(Ae, {
|
|
1250
1252
|
key: 1,
|
|
1251
|
-
modelValue:
|
|
1252
|
-
"onUpdate:modelValue": (Re) =>
|
|
1253
|
+
modelValue: o(J)[v.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][ge],
|
|
1254
|
+
"onUpdate:modelValue": (Re) => o(J)[v.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][ge] = Re,
|
|
1253
1255
|
numeric: !0
|
|
1254
1256
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1255
1257
|
], 64)) : _("", !0)
|
|
@@ -1259,46 +1261,46 @@ const Gl = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1259
1261
|
]))), 128))
|
|
1260
1262
|
]))), 128))
|
|
1261
1263
|
]))), 128))
|
|
1262
|
-
])) :
|
|
1264
|
+
])) : o(fe) ? (c(), h("div", jl, [
|
|
1263
1265
|
a("div", null, [
|
|
1264
1266
|
a("h4", null, [
|
|
1265
|
-
a("span", null, y(
|
|
1267
|
+
a("span", null, y(o(ne).name), 1)
|
|
1266
1268
|
]),
|
|
1267
|
-
a("table",
|
|
1269
|
+
a("table", Gl, [
|
|
1268
1270
|
a("thead", null, [
|
|
1269
1271
|
a("tr", null, [
|
|
1270
1272
|
a("th", null, [
|
|
1271
|
-
a("span", null, y(
|
|
1273
|
+
a("span", null, y(o(re)(o(fe).title)), 1)
|
|
1272
1274
|
]),
|
|
1273
1275
|
_("", !0),
|
|
1274
|
-
|
|
1276
|
+
ql
|
|
1275
1277
|
])
|
|
1276
1278
|
]),
|
|
1277
1279
|
a("tbody", null, [
|
|
1278
|
-
(c(!0), h(
|
|
1280
|
+
(c(!0), h(M, null, F(o(fe).addons, ({
|
|
1279
1281
|
quantityStrategy: v,
|
|
1280
|
-
maximumNumber:
|
|
1281
|
-
id:
|
|
1282
|
+
maximumNumber: q,
|
|
1283
|
+
id: E,
|
|
1282
1284
|
name: S,
|
|
1283
|
-
price:
|
|
1284
|
-
}) => (c(), h("tr", { key:
|
|
1285
|
+
price: X
|
|
1286
|
+
}) => (c(), h("tr", { key: E }, [
|
|
1285
1287
|
a("td", null, [
|
|
1286
|
-
a("b", null, y(
|
|
1287
|
-
|
|
1288
|
-
a("span", null, y(
|
|
1288
|
+
a("b", null, y(o(re)(S)), 1),
|
|
1289
|
+
Wl,
|
|
1290
|
+
a("span", null, y(o(te)(X, o(ee))) + " " + y(o(nt)(v)), 1)
|
|
1289
1291
|
]),
|
|
1290
|
-
a("td",
|
|
1292
|
+
a("td", Kl, [
|
|
1291
1293
|
v === 1 || v === 12 ? (c(), D(qe, {
|
|
1292
1294
|
key: 0,
|
|
1293
|
-
modelValue:
|
|
1294
|
-
"onUpdate:modelValue": (
|
|
1295
|
+
modelValue: o(s)[E],
|
|
1296
|
+
"onUpdate:modelValue": (Y) => o(s)[E] = Y,
|
|
1295
1297
|
small: !0,
|
|
1296
1298
|
"min-value": 0,
|
|
1297
|
-
"max-value":
|
|
1299
|
+
"max-value": q || 1 / 0
|
|
1298
1300
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (c(), D(Ae, {
|
|
1299
1301
|
key: 1,
|
|
1300
|
-
modelValue:
|
|
1301
|
-
"onUpdate:modelValue": (
|
|
1302
|
+
modelValue: o(s)[E],
|
|
1303
|
+
"onUpdate:modelValue": (Y) => o(s)[E] = Y,
|
|
1302
1304
|
numeric: !0
|
|
1303
1305
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1304
1306
|
])
|
|
@@ -1312,196 +1314,196 @@ const Gl = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1312
1314
|
]),
|
|
1313
1315
|
navigation: T(() => [
|
|
1314
1316
|
g(pe, {
|
|
1315
|
-
label: t
|
|
1317
|
+
label: o(t)("general.startReservation"),
|
|
1316
1318
|
"full-width": "",
|
|
1317
1319
|
onClickEvent: K
|
|
1318
1320
|
}, null, 8, ["label", "onClickEvent"]),
|
|
1319
1321
|
a("button", {
|
|
1320
1322
|
class: "konnectio-abort-reservation link",
|
|
1321
|
-
onClick: we((v) =>
|
|
1323
|
+
onClick: we((v) => Qe(A), ["prevent"])
|
|
1322
1324
|
}, [
|
|
1323
|
-
a("span", null, y(t
|
|
1324
|
-
], 8,
|
|
1325
|
+
a("span", null, y(o(t)("general.goAStepBack")), 1)
|
|
1326
|
+
], 8, zl)
|
|
1325
1327
|
]),
|
|
1326
1328
|
_: 2
|
|
1327
1329
|
}, 1024)) : _("", !0)
|
|
1328
1330
|
]),
|
|
1329
1331
|
reservation: T(({ next: K, prev: A }) => [
|
|
1330
|
-
|
|
1332
|
+
o(ce) ? (c(), D(Fe, {
|
|
1331
1333
|
key: 0,
|
|
1332
1334
|
"show-terms-notice": !0,
|
|
1333
1335
|
"show-gift-card": !0
|
|
1334
1336
|
}, {
|
|
1335
1337
|
form: T(() => [
|
|
1336
|
-
a("form",
|
|
1338
|
+
a("form", Jl, [
|
|
1337
1339
|
a("h2", null, [
|
|
1338
|
-
a("span", null, y(t
|
|
1340
|
+
a("span", null, y(o(t)("booking.reservation.detailsTitle")), 1)
|
|
1339
1341
|
]),
|
|
1340
|
-
!
|
|
1342
|
+
!o(At) && !(o(Ee) && o(Me)) ? (c(), h("ul", {
|
|
1341
1343
|
key: 0,
|
|
1342
|
-
class: Pe({ "konnectio-split-inputs": !
|
|
1344
|
+
class: Pe({ "konnectio-split-inputs": !o(Ee) && !o(Me) })
|
|
1343
1345
|
}, [
|
|
1344
|
-
|
|
1345
|
-
g(
|
|
1346
|
-
modelValue:
|
|
1346
|
+
o(Ee) ? _("", !0) : (c(), h("li", xl, [
|
|
1347
|
+
g(at, {
|
|
1348
|
+
modelValue: o(f),
|
|
1347
1349
|
"onUpdate:modelValue": $[1] || ($[1] = (v) => N(f) ? f.value = v : null),
|
|
1348
|
-
label: t
|
|
1350
|
+
label: o(t)("booking.reservation.arrivalTime"),
|
|
1349
1351
|
icon: "hourglass-start",
|
|
1350
|
-
"hour-range":
|
|
1352
|
+
"hour-range": jt.value,
|
|
1351
1353
|
required: ""
|
|
1352
1354
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1353
1355
|
])),
|
|
1354
|
-
|
|
1355
|
-
g(
|
|
1356
|
-
modelValue:
|
|
1356
|
+
o(Me) ? _("", !0) : (c(), h("li", Xl, [
|
|
1357
|
+
g(at, {
|
|
1358
|
+
modelValue: o(V),
|
|
1357
1359
|
"onUpdate:modelValue": $[2] || ($[2] = (v) => N(V) ? V.value = v : null),
|
|
1358
|
-
label: t
|
|
1360
|
+
label: o(t)("booking.reservation.departureTime"),
|
|
1359
1361
|
icon: "hourglass-end",
|
|
1360
|
-
"hour-range":
|
|
1362
|
+
"hour-range": Gt.value,
|
|
1361
1363
|
required: ""
|
|
1362
1364
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1363
1365
|
]))
|
|
1364
1366
|
], 2)) : _("", !0),
|
|
1365
|
-
g(
|
|
1366
|
-
modelValue:
|
|
1367
|
+
g(ul, {
|
|
1368
|
+
modelValue: o(P),
|
|
1367
1369
|
"onUpdate:modelValue": $[3] || ($[3] = (v) => N(P) ? P.value = v : null),
|
|
1368
|
-
title:
|
|
1370
|
+
title: o(w),
|
|
1369
1371
|
"onUpdate:title": $[4] || ($[4] = (v) => N(w) ? w.value = v : null),
|
|
1370
|
-
"exclude-title":
|
|
1371
|
-
label: t
|
|
1372
|
+
"exclude-title": o(Dt),
|
|
1373
|
+
label: o(t)("booking.reservation.name"),
|
|
1372
1374
|
icon: "user-alt",
|
|
1373
|
-
placeholder: t
|
|
1375
|
+
placeholder: o(t)("booking.reservation.namePlaceholder"),
|
|
1374
1376
|
required: ""
|
|
1375
1377
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1376
1378
|
g(se, {
|
|
1377
|
-
modelValue:
|
|
1379
|
+
modelValue: o(I),
|
|
1378
1380
|
"onUpdate:modelValue": $[5] || ($[5] = (v) => N(I) ? I.value = v : null),
|
|
1379
1381
|
type: "email",
|
|
1380
1382
|
name: "email",
|
|
1381
1383
|
autocomplete: "email",
|
|
1382
|
-
label: t
|
|
1384
|
+
label: o(t)("booking.reservation.email"),
|
|
1383
1385
|
icon: "at",
|
|
1384
|
-
placeholder: t
|
|
1386
|
+
placeholder: o(t)("booking.reservation.emailPlaceholder"),
|
|
1385
1387
|
required: ""
|
|
1386
1388
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1387
|
-
|
|
1389
|
+
o(It) ? _("", !0) : (c(), D(se, {
|
|
1388
1390
|
key: 1,
|
|
1389
|
-
modelValue:
|
|
1391
|
+
modelValue: o(k),
|
|
1390
1392
|
"onUpdate:modelValue": $[6] || ($[6] = (v) => N(k) ? k.value = v : null),
|
|
1391
1393
|
type: "text",
|
|
1392
1394
|
name: "firm",
|
|
1393
1395
|
autocomplete: "firm",
|
|
1394
|
-
label: `${t
|
|
1396
|
+
label: `${o(t)("booking.reservation.companyName")} (${o(t)("booking.reservation.optional")})`,
|
|
1395
1397
|
icon: "id-card",
|
|
1396
|
-
placeholder: t
|
|
1398
|
+
placeholder: o(t)("booking.reservation.companyNamePlaceholder")
|
|
1397
1399
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1398
|
-
g(
|
|
1399
|
-
modelValue:
|
|
1400
|
+
g(wo, {
|
|
1401
|
+
modelValue: o(B),
|
|
1400
1402
|
"onUpdate:modelValue": $[7] || ($[7] = (v) => N(B) ? B.value = v : null),
|
|
1401
1403
|
icon: "phone-office",
|
|
1402
|
-
label: t
|
|
1403
|
-
placeholder: t
|
|
1404
|
+
label: o(t)("booking.reservation.phone"),
|
|
1405
|
+
placeholder: o(t)("booking.reservation.phonePlaceholder"),
|
|
1404
1406
|
required: ""
|
|
1405
1407
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1406
|
-
g(
|
|
1407
|
-
modelValue:
|
|
1408
|
-
"onUpdate:modelValue": $[8] || ($[8] = (v) => N(
|
|
1409
|
-
label: t
|
|
1410
|
-
placeholder: t
|
|
1411
|
-
options:
|
|
1408
|
+
g(rl, {
|
|
1409
|
+
modelValue: o(R),
|
|
1410
|
+
"onUpdate:modelValue": $[8] || ($[8] = (v) => N(R) ? R.value = v : null),
|
|
1411
|
+
label: o(t)("booking.reservation.country"),
|
|
1412
|
+
placeholder: o(t)("booking.reservation.countryPlaceholder"),
|
|
1413
|
+
options: o(m),
|
|
1412
1414
|
required: ""
|
|
1413
1415
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1414
1416
|
g(se, {
|
|
1415
|
-
modelValue:
|
|
1417
|
+
modelValue: o(O),
|
|
1416
1418
|
"onUpdate:modelValue": $[9] || ($[9] = (v) => N(O) ? O.value = v : null),
|
|
1417
1419
|
type: "textarea",
|
|
1418
1420
|
name: "address",
|
|
1419
1421
|
autocomplete: "street-address",
|
|
1420
|
-
label: t
|
|
1422
|
+
label: o(t)("booking.reservation.streetAddress"),
|
|
1421
1423
|
icon: "map-marked",
|
|
1422
|
-
placeholder: t
|
|
1424
|
+
placeholder: o(t)("booking.reservation.streetAddressPlaceholder"),
|
|
1423
1425
|
required: ""
|
|
1424
1426
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1425
|
-
a("ul",
|
|
1427
|
+
a("ul", Yl, [
|
|
1426
1428
|
a("li", null, [
|
|
1427
1429
|
g(se, {
|
|
1428
|
-
modelValue:
|
|
1430
|
+
modelValue: o(C),
|
|
1429
1431
|
"onUpdate:modelValue": $[10] || ($[10] = (v) => N(C) ? C.value = v : null),
|
|
1430
1432
|
type: "text",
|
|
1431
1433
|
name: "postal",
|
|
1432
1434
|
autocomplete: "postal-code",
|
|
1433
|
-
label: t
|
|
1435
|
+
label: o(t)("booking.reservation.postal"),
|
|
1434
1436
|
icon: "mailbox",
|
|
1435
|
-
placeholder: t
|
|
1437
|
+
placeholder: o(t)("booking.reservation.postalPlaceholder"),
|
|
1436
1438
|
required: ""
|
|
1437
1439
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1438
1440
|
]),
|
|
1439
1441
|
a("li", null, [
|
|
1440
1442
|
g(se, {
|
|
1441
|
-
modelValue:
|
|
1443
|
+
modelValue: o(H),
|
|
1442
1444
|
"onUpdate:modelValue": $[11] || ($[11] = (v) => N(H) ? H.value = v : null),
|
|
1443
1445
|
type: "text",
|
|
1444
1446
|
name: "city",
|
|
1445
1447
|
autocomplete: "address-level2",
|
|
1446
|
-
label: t
|
|
1448
|
+
label: o(t)("booking.reservation.city"),
|
|
1447
1449
|
icon: "city",
|
|
1448
|
-
placeholder: t
|
|
1450
|
+
placeholder: o(t)("booking.reservation.cityPlaceholder"),
|
|
1449
1451
|
required: ""
|
|
1450
1452
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1451
1453
|
])
|
|
1452
1454
|
]),
|
|
1453
1455
|
g(se, {
|
|
1454
|
-
modelValue:
|
|
1456
|
+
modelValue: o(x),
|
|
1455
1457
|
"onUpdate:modelValue": $[12] || ($[12] = (v) => N(x) ? x.value = v : null),
|
|
1456
1458
|
type: "textarea",
|
|
1457
|
-
label: `${t
|
|
1459
|
+
label: `${o(t)("booking.reservation.remark")} (${o(t)("booking.reservation.optional")})`,
|
|
1458
1460
|
icon: "info-circle",
|
|
1459
|
-
placeholder: t
|
|
1461
|
+
placeholder: o(t)("booking.reservation.remarkPlaceholder")
|
|
1460
1462
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1461
1463
|
g(se, {
|
|
1462
|
-
modelValue:
|
|
1463
|
-
"onUpdate:modelValue": $[13] || ($[13] = (v) => N(
|
|
1464
|
+
modelValue: o(L),
|
|
1465
|
+
"onUpdate:modelValue": $[13] || ($[13] = (v) => N(L) ? L.value = v : null),
|
|
1464
1466
|
type: "textarea",
|
|
1465
|
-
label: `${t
|
|
1467
|
+
label: `${o(t)("booking.reservation.allergies")} (${o(t)("booking.reservation.optional")})`,
|
|
1466
1468
|
icon: "allergies",
|
|
1467
|
-
placeholder: t
|
|
1469
|
+
placeholder: o(t)("booking.reservation.allergiesPlaceholder")
|
|
1468
1470
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1469
|
-
|
|
1471
|
+
o(Ht) ? _("", !0) : (c(), D(yo, {
|
|
1470
1472
|
key: 2,
|
|
1471
|
-
modelValue:
|
|
1473
|
+
modelValue: o(d),
|
|
1472
1474
|
"onUpdate:modelValue": $[14] || ($[14] = (v) => N(d) ? d.value = v : null),
|
|
1473
|
-
label: `${t
|
|
1475
|
+
label: `${o(t)("booking.reservation.purposeOfStay")} (${o(t)("booking.reservation.optional")})`,
|
|
1474
1476
|
name: "travelingFor",
|
|
1475
|
-
checkboxes:
|
|
1477
|
+
checkboxes: Ft.value
|
|
1476
1478
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
1477
1479
|
])
|
|
1478
1480
|
]),
|
|
1479
1481
|
navigation: T(() => [
|
|
1480
1482
|
a("div", null, [
|
|
1481
1483
|
g(pe, {
|
|
1482
|
-
label:
|
|
1483
|
-
disabled: !
|
|
1484
|
-
"is-loading":
|
|
1484
|
+
label: o(Bt) ? o(t)("booking.reservation.nextButton") : o(t)("general.confirmReservation"),
|
|
1485
|
+
disabled: !o(r),
|
|
1486
|
+
"is-loading": o(u),
|
|
1485
1487
|
"full-width": "",
|
|
1486
|
-
onClickEvent: (v) =>
|
|
1488
|
+
onClickEvent: (v) => Wt(K)
|
|
1487
1489
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
1488
1490
|
a("button", {
|
|
1489
1491
|
class: "konnectio-abort-reservation link",
|
|
1490
|
-
onClick: we((v) =>
|
|
1492
|
+
onClick: we((v) => Qe(A), ["prevent"])
|
|
1491
1493
|
}, [
|
|
1492
|
-
a("span", null, y(t
|
|
1493
|
-
], 8,
|
|
1494
|
+
a("span", null, y(o(t)("general.goAStepBack")), 1)
|
|
1495
|
+
], 8, Zl)
|
|
1494
1496
|
])
|
|
1495
1497
|
]),
|
|
1496
1498
|
_: 2
|
|
1497
1499
|
}, 1024)) : _("", !0)
|
|
1498
1500
|
]),
|
|
1499
1501
|
payment: T(() => [
|
|
1500
|
-
g(
|
|
1502
|
+
g(Co)
|
|
1501
1503
|
]),
|
|
1502
1504
|
confirmation: T(() => [
|
|
1503
|
-
g(
|
|
1504
|
-
message: t
|
|
1505
|
+
g(go, {
|
|
1506
|
+
message: o(t)("booking.confirmation.thankYou")
|
|
1505
1507
|
}, null, 8, ["message"])
|
|
1506
1508
|
]),
|
|
1507
1509
|
_: 1
|
|
@@ -1511,7 +1513,7 @@ const Gl = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1511
1513
|
}, 8, ["access-token", "callback"])
|
|
1512
1514
|
]),
|
|
1513
1515
|
fallback: T(() => [
|
|
1514
|
-
g(
|
|
1516
|
+
g(hl)
|
|
1515
1517
|
]),
|
|
1516
1518
|
_: 1
|
|
1517
1519
|
}))
|
|
@@ -1519,35 +1521,35 @@ const Gl = /* @__PURE__ */ xe(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1519
1521
|
_: 1
|
|
1520
1522
|
}, 8, ["styling"]));
|
|
1521
1523
|
}
|
|
1522
|
-
}), Ve = /* @__PURE__ */ ue(
|
|
1524
|
+
}), Ve = /* @__PURE__ */ ue(Ql, [["__scopeId", "data-v-295d18f5"]]);
|
|
1523
1525
|
function Ke(n, l = {}, e) {
|
|
1524
|
-
for (const
|
|
1525
|
-
const i = n[
|
|
1526
|
+
for (const t in n) {
|
|
1527
|
+
const i = n[t], s = e ? `${e}:${t}` : t;
|
|
1526
1528
|
typeof i == "object" && i !== null ? Ke(i, l, s) : typeof i == "function" && (l[s] = i);
|
|
1527
1529
|
}
|
|
1528
1530
|
return l;
|
|
1529
1531
|
}
|
|
1530
|
-
const
|
|
1532
|
+
const en = { run: (n) => n() }, tn = () => en, kt = typeof console.createTask < "u" ? console.createTask : tn;
|
|
1531
1533
|
function on(n, l) {
|
|
1532
|
-
const e = l.shift(),
|
|
1534
|
+
const e = l.shift(), t = kt(e);
|
|
1533
1535
|
return n.reduce(
|
|
1534
|
-
(i, s) => i.then(() =>
|
|
1536
|
+
(i, s) => i.then(() => t.run(() => s(...l))),
|
|
1535
1537
|
Promise.resolve()
|
|
1536
1538
|
);
|
|
1537
1539
|
}
|
|
1538
|
-
function
|
|
1539
|
-
const e = l.shift(),
|
|
1540
|
-
return Promise.all(n.map((i) =>
|
|
1540
|
+
function ln(n, l) {
|
|
1541
|
+
const e = l.shift(), t = kt(e);
|
|
1542
|
+
return Promise.all(n.map((i) => t.run(() => i(...l))));
|
|
1541
1543
|
}
|
|
1542
1544
|
function Oe(n, l) {
|
|
1543
1545
|
for (const e of [...n])
|
|
1544
1546
|
e(l);
|
|
1545
1547
|
}
|
|
1546
|
-
class
|
|
1548
|
+
class nn {
|
|
1547
1549
|
constructor() {
|
|
1548
1550
|
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);
|
|
1549
1551
|
}
|
|
1550
|
-
hook(l, e,
|
|
1552
|
+
hook(l, e, t = {}) {
|
|
1551
1553
|
if (!l || typeof e != "function")
|
|
1552
1554
|
return () => {
|
|
1553
1555
|
};
|
|
@@ -1555,7 +1557,7 @@ class ln {
|
|
|
1555
1557
|
let s;
|
|
1556
1558
|
for (; this._deprecatedHooks[l]; )
|
|
1557
1559
|
s = this._deprecatedHooks[l], l = s.to;
|
|
1558
|
-
if (s && !
|
|
1560
|
+
if (s && !t.allowDeprecated) {
|
|
1559
1561
|
let m = s.message;
|
|
1560
1562
|
m || (m = `${i} hook has been deprecated` + (s.to ? `, please use ${s.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(m) || (console.warn(m), this._deprecatedMessages.add(m));
|
|
1561
1563
|
}
|
|
@@ -1572,20 +1574,20 @@ class ln {
|
|
|
1572
1574
|
};
|
|
1573
1575
|
}
|
|
1574
1576
|
hookOnce(l, e) {
|
|
1575
|
-
let
|
|
1576
|
-
return
|
|
1577
|
+
let t, i = (...s) => (typeof t == "function" && t(), t = void 0, i = void 0, e(...s));
|
|
1578
|
+
return t = this.hook(l, i), t;
|
|
1577
1579
|
}
|
|
1578
1580
|
removeHook(l, e) {
|
|
1579
1581
|
if (this._hooks[l]) {
|
|
1580
|
-
const
|
|
1581
|
-
|
|
1582
|
+
const t = this._hooks[l].indexOf(e);
|
|
1583
|
+
t !== -1 && this._hooks[l].splice(t, 1), this._hooks[l].length === 0 && delete this._hooks[l];
|
|
1582
1584
|
}
|
|
1583
1585
|
}
|
|
1584
1586
|
deprecateHook(l, e) {
|
|
1585
1587
|
this._deprecatedHooks[l] = typeof e == "string" ? { to: e } : e;
|
|
1586
|
-
const
|
|
1588
|
+
const t = this._hooks[l] || [];
|
|
1587
1589
|
delete this._hooks[l];
|
|
1588
|
-
for (const i of
|
|
1590
|
+
for (const i of t)
|
|
1589
1591
|
this.hook(l, i);
|
|
1590
1592
|
}
|
|
1591
1593
|
deprecateHooks(l) {
|
|
@@ -1594,18 +1596,18 @@ class ln {
|
|
|
1594
1596
|
this.deprecateHook(e, l[e]);
|
|
1595
1597
|
}
|
|
1596
1598
|
addHooks(l) {
|
|
1597
|
-
const e = Ke(l),
|
|
1599
|
+
const e = Ke(l), t = Object.keys(e).map(
|
|
1598
1600
|
(i) => this.hook(i, e[i])
|
|
1599
1601
|
);
|
|
1600
1602
|
return () => {
|
|
1601
|
-
for (const i of
|
|
1603
|
+
for (const i of t.splice(0, t.length))
|
|
1602
1604
|
i();
|
|
1603
1605
|
};
|
|
1604
1606
|
}
|
|
1605
1607
|
removeHooks(l) {
|
|
1606
1608
|
const e = Ke(l);
|
|
1607
|
-
for (const
|
|
1608
|
-
this.removeHook(
|
|
1609
|
+
for (const t in e)
|
|
1610
|
+
this.removeHook(t, e[t]);
|
|
1609
1611
|
}
|
|
1610
1612
|
removeAllHooks() {
|
|
1611
1613
|
for (const l in this._hooks)
|
|
@@ -1615,14 +1617,14 @@ class ln {
|
|
|
1615
1617
|
return e.unshift(l), this.callHookWith(on, l, ...e);
|
|
1616
1618
|
}
|
|
1617
1619
|
callHookParallel(l, ...e) {
|
|
1618
|
-
return e.unshift(l), this.callHookWith(
|
|
1620
|
+
return e.unshift(l), this.callHookWith(ln, l, ...e);
|
|
1619
1621
|
}
|
|
1620
|
-
callHookWith(l, e, ...
|
|
1621
|
-
const i = this._before || this._after ? { name: e, args:
|
|
1622
|
+
callHookWith(l, e, ...t) {
|
|
1623
|
+
const i = this._before || this._after ? { name: e, args: t, context: {} } : void 0;
|
|
1622
1624
|
this._before && Oe(this._before, i);
|
|
1623
1625
|
const s = l(
|
|
1624
1626
|
e in this._hooks ? [...this._hooks[e]] : [],
|
|
1625
|
-
|
|
1627
|
+
t
|
|
1626
1628
|
);
|
|
1627
1629
|
return s instanceof Promise ? s.finally(() => {
|
|
1628
1630
|
this._after && i && Oe(this._after, i);
|
|
@@ -1645,20 +1647,20 @@ class ln {
|
|
|
1645
1647
|
};
|
|
1646
1648
|
}
|
|
1647
1649
|
}
|
|
1648
|
-
function
|
|
1649
|
-
return new
|
|
1650
|
+
function an() {
|
|
1651
|
+
return new nn();
|
|
1650
1652
|
}
|
|
1651
|
-
function
|
|
1653
|
+
function sn(n) {
|
|
1652
1654
|
return Array.isArray(n) ? n : [n];
|
|
1653
1655
|
}
|
|
1654
|
-
const
|
|
1656
|
+
const rn = ["title", "titleTemplate", "script", "style", "noscript"], Te = [
|
|
1655
1657
|
"base",
|
|
1656
1658
|
"meta",
|
|
1657
1659
|
"link",
|
|
1658
1660
|
"style",
|
|
1659
1661
|
"script",
|
|
1660
1662
|
"noscript"
|
|
1661
|
-
],
|
|
1663
|
+
], dn = [
|
|
1662
1664
|
"title",
|
|
1663
1665
|
"titleTemplate",
|
|
1664
1666
|
"templateParams",
|
|
@@ -1670,81 +1672,81 @@ const sn = ["title", "titleTemplate", "script", "style", "noscript"], Te = [
|
|
|
1670
1672
|
"style",
|
|
1671
1673
|
"script",
|
|
1672
1674
|
"noscript"
|
|
1673
|
-
],
|
|
1674
|
-
function
|
|
1675
|
+
], un = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], bt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], cn = typeof window < "u";
|
|
1676
|
+
function Xe(n) {
|
|
1675
1677
|
let l = 9;
|
|
1676
1678
|
for (let e = 0; e < n.length; )
|
|
1677
1679
|
l = Math.imul(l ^ n.charCodeAt(e++), 9 ** 9);
|
|
1678
1680
|
return ((l ^ l >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
1679
1681
|
}
|
|
1680
|
-
function
|
|
1681
|
-
return n._h ||
|
|
1682
|
+
function it(n) {
|
|
1683
|
+
return n._h || Xe(n._d ? n._d : `${n.tag}:${n.textContent || n.innerHTML || ""}:${Object.entries(n.props).map(([l, e]) => `${l}:${String(e)}`).join(",")}`);
|
|
1682
1684
|
}
|
|
1683
|
-
function
|
|
1684
|
-
const { props: e, tag:
|
|
1685
|
-
if (
|
|
1686
|
-
return
|
|
1687
|
-
if (
|
|
1685
|
+
function _t(n, l) {
|
|
1686
|
+
const { props: e, tag: t } = n;
|
|
1687
|
+
if (un.includes(t))
|
|
1688
|
+
return t;
|
|
1689
|
+
if (t === "link" && e.rel === "canonical")
|
|
1688
1690
|
return "canonical";
|
|
1689
1691
|
if (e.charset)
|
|
1690
1692
|
return "charset";
|
|
1691
1693
|
const i = ["id"];
|
|
1692
|
-
|
|
1694
|
+
t === "meta" && i.push("name", "property", "http-equiv");
|
|
1693
1695
|
for (const s of i)
|
|
1694
1696
|
if (typeof e[s] < "u") {
|
|
1695
1697
|
const m = String(e[s]);
|
|
1696
|
-
return l && !l(m) ? !1 : `${
|
|
1698
|
+
return l && !l(m) ? !1 : `${t}:${s}:${m}`;
|
|
1697
1699
|
}
|
|
1698
1700
|
return !1;
|
|
1699
1701
|
}
|
|
1700
|
-
function
|
|
1702
|
+
function st(n, l) {
|
|
1701
1703
|
return n == null ? l || null : typeof n == "function" ? n(l) : n;
|
|
1702
1704
|
}
|
|
1703
|
-
async function
|
|
1704
|
-
const
|
|
1705
|
+
async function pn(n, l, e) {
|
|
1706
|
+
const t = {
|
|
1705
1707
|
tag: n,
|
|
1706
|
-
props: await
|
|
1708
|
+
props: await Vt(
|
|
1707
1709
|
// explicitly check for an object
|
|
1708
1710
|
// @ts-expect-error untyped
|
|
1709
1711
|
typeof l == "object" && typeof l != "function" && !(l instanceof Promise) ? { ...l } : { [["script", "noscript", "style"].includes(n) ? "innerHTML" : "textContent"]: l },
|
|
1710
1712
|
["templateParams", "titleTemplate"].includes(n)
|
|
1711
1713
|
)
|
|
1712
1714
|
};
|
|
1713
|
-
return
|
|
1714
|
-
const s = typeof
|
|
1715
|
-
typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) ||
|
|
1716
|
-
}),
|
|
1715
|
+
return bt.forEach((i) => {
|
|
1716
|
+
const s = typeof t.props[i] < "u" ? t.props[i] : e[i];
|
|
1717
|
+
typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) || rn.includes(t.tag)) && (t[i === "children" ? "innerHTML" : i] = s), delete t.props[i]);
|
|
1718
|
+
}), t.props.body && (t.tagPosition = "bodyClose", delete t.props.body), t.tag === "script" && typeof t.innerHTML == "object" && (t.innerHTML = JSON.stringify(t.innerHTML), t.props.type = t.props.type || "application/json"), Array.isArray(t.props.content) ? t.props.content.map((i) => ({ ...t, props: { ...t.props, content: i } })) : t;
|
|
1717
1719
|
}
|
|
1718
|
-
function
|
|
1720
|
+
function mn(n, l) {
|
|
1719
1721
|
const e = n === "class" ? " " : ";";
|
|
1720
|
-
return typeof l == "object" && !Array.isArray(l) && (l = Object.entries(l).filter(([,
|
|
1722
|
+
return typeof l == "object" && !Array.isArray(l) && (l = Object.entries(l).filter(([, t]) => t).map(([t, i]) => n === "style" ? `${t}:${i}` : t)), (Array.isArray(l) ? l.join(e) : l)?.split(e).filter((t) => t.trim()).filter(Boolean).join(e);
|
|
1721
1723
|
}
|
|
1722
|
-
async function
|
|
1724
|
+
async function Vt(n, l) {
|
|
1723
1725
|
for (const e of Object.keys(n)) {
|
|
1724
1726
|
if (["class", "style"].includes(e)) {
|
|
1725
|
-
n[e] =
|
|
1727
|
+
n[e] = mn(e, n[e]);
|
|
1726
1728
|
continue;
|
|
1727
1729
|
}
|
|
1728
|
-
if (n[e] instanceof Promise && (n[e] = await n[e]), !l && !
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1730
|
+
if (n[e] instanceof Promise && (n[e] = await n[e]), !l && !bt.includes(e)) {
|
|
1731
|
+
const t = String(n[e]), i = e.startsWith("data-");
|
|
1732
|
+
t === "true" || t === "" ? n[e] = i ? "true" : !0 : n[e] || (i && t === "false" ? n[e] = "false" : delete n[e]);
|
|
1731
1733
|
}
|
|
1732
1734
|
}
|
|
1733
1735
|
return n;
|
|
1734
1736
|
}
|
|
1735
|
-
const
|
|
1736
|
-
async function
|
|
1737
|
+
const fn = 10;
|
|
1738
|
+
async function hn(n) {
|
|
1737
1739
|
const l = [];
|
|
1738
|
-
return Object.entries(n.resolvedInput).filter(([e,
|
|
1739
|
-
const i =
|
|
1740
|
-
l.push(...i.map((s) =>
|
|
1741
|
-
}), (await Promise.all(l)).flat().filter(Boolean).map((e,
|
|
1740
|
+
return Object.entries(n.resolvedInput).filter(([e, t]) => typeof t < "u" && dn.includes(e)).forEach(([e, t]) => {
|
|
1741
|
+
const i = sn(t);
|
|
1742
|
+
l.push(...i.map((s) => pn(e, s, n)).flat());
|
|
1743
|
+
}), (await Promise.all(l)).flat().filter(Boolean).map((e, t) => (e._e = n._i, n.mode && (e._m = n.mode), e._p = (n._i << fn) + t, e));
|
|
1742
1744
|
}
|
|
1743
|
-
const
|
|
1745
|
+
const rt = {
|
|
1744
1746
|
// tags
|
|
1745
1747
|
base: -10,
|
|
1746
1748
|
title: 10
|
|
1747
|
-
},
|
|
1749
|
+
}, dt = {
|
|
1748
1750
|
// relative scores to their default values
|
|
1749
1751
|
critical: -80,
|
|
1750
1752
|
high: -10,
|
|
@@ -1753,13 +1755,13 @@ const ro = {
|
|
|
1753
1755
|
function De(n) {
|
|
1754
1756
|
let l = 100;
|
|
1755
1757
|
const e = n.tagPriority;
|
|
1756
|
-
return typeof e == "number" ? e : (n.tag === "meta" ? (n.props["http-equiv"] === "content-security-policy" && (l = -30), n.props.charset && (l = -20), n.props.name === "viewport" && (l = -15)) : n.tag === "link" && n.props.rel === "preconnect" ? l = 20 : n.tag in
|
|
1758
|
+
return typeof e == "number" ? e : (n.tag === "meta" ? (n.props["http-equiv"] === "content-security-policy" && (l = -30), n.props.charset && (l = -20), n.props.name === "viewport" && (l = -15)) : n.tag === "link" && n.props.rel === "preconnect" ? l = 20 : n.tag in rt && (l = rt[n.tag]), typeof e == "string" && e in dt ? l + dt[e] : l);
|
|
1757
1759
|
}
|
|
1758
|
-
const
|
|
1760
|
+
const vn = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], ut = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], ie = "%separator";
|
|
1759
1761
|
function $e(n, l, e) {
|
|
1760
1762
|
if (typeof n != "string" || !n.includes("%"))
|
|
1761
1763
|
return n;
|
|
1762
|
-
function
|
|
1764
|
+
function t(m) {
|
|
1763
1765
|
let p;
|
|
1764
1766
|
return ["s", "pageTitle"].includes(m) ? p = l.pageTitle : m.includes(".") ? p = m.split(".").reduce((u, r) => u && u[r] || void 0, l) : p = l[m], typeof p < "u" ? (p || "").replace(/"/g, '\\"') : !1;
|
|
1765
1767
|
}
|
|
@@ -1769,20 +1771,20 @@ function $e(n, l, e) {
|
|
|
1769
1771
|
} catch {
|
|
1770
1772
|
}
|
|
1771
1773
|
return (i.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((m) => {
|
|
1772
|
-
const p =
|
|
1774
|
+
const p = t(m.slice(1));
|
|
1773
1775
|
typeof p == "string" && (n = n.replace(new RegExp(`\\${m}(\\W|$)`, "g"), (u, r) => `${p}${r}`).trim());
|
|
1774
1776
|
}), n.includes(ie) && (n.endsWith(ie) && (n = n.slice(0, -ie.length).trim()), n.startsWith(ie) && (n = n.slice(ie.length).trim()), n = n.replace(new RegExp(`\\${ie}\\s*\\${ie}`, "g"), ie), n = $e(n, { separator: e }, e)), n;
|
|
1775
1777
|
}
|
|
1776
|
-
async function
|
|
1778
|
+
async function yn(n, l = {}) {
|
|
1777
1779
|
const e = l.document || n.resolvedOptions.document;
|
|
1778
1780
|
if (!e || !n.dirty)
|
|
1779
1781
|
return;
|
|
1780
|
-
const
|
|
1781
|
-
if (await n.hooks.callHook("dom:beforeRender",
|
|
1782
|
+
const t = { shouldRender: !0, tags: [] };
|
|
1783
|
+
if (await n.hooks.callHook("dom:beforeRender", t), !t.shouldRender)
|
|
1782
1784
|
return;
|
|
1783
1785
|
const i = (await n.resolveTags()).map((d) => ({
|
|
1784
1786
|
tag: d,
|
|
1785
|
-
id: Te.includes(d.tag) ?
|
|
1787
|
+
id: Te.includes(d.tag) ? it(d) : d.tag,
|
|
1786
1788
|
shouldRender: !0
|
|
1787
1789
|
}));
|
|
1788
1790
|
let s = n._dom;
|
|
@@ -1795,15 +1797,15 @@ async function vn(n, l = {}) {
|
|
|
1795
1797
|
for (const P of [...f].filter((w) => Te.includes(w.tagName.toLowerCase()))) {
|
|
1796
1798
|
const w = {
|
|
1797
1799
|
tag: P.tagName.toLowerCase(),
|
|
1798
|
-
props: await
|
|
1800
|
+
props: await Vt(
|
|
1799
1801
|
P.getAttributeNames().reduce((k, C) => ({ ...k, [C]: P.getAttribute(C) }), {})
|
|
1800
1802
|
),
|
|
1801
1803
|
innerHTML: P.innerHTML
|
|
1802
1804
|
};
|
|
1803
|
-
let I = 1, B =
|
|
1805
|
+
let I = 1, B = _t(w);
|
|
1804
1806
|
for (; B && V.find((k) => k._d === B); )
|
|
1805
1807
|
B = `${B}:${I++}`;
|
|
1806
|
-
w._d = B || void 0, V.push(w), s.elMap[P.getAttribute("data-hid") ||
|
|
1808
|
+
w._d = B || void 0, V.push(w), s.elMap[P.getAttribute("data-hid") || it(w)] = P;
|
|
1807
1809
|
}
|
|
1808
1810
|
}
|
|
1809
1811
|
}
|
|
@@ -1860,71 +1862,71 @@ async function vn(n, l = {}) {
|
|
|
1860
1862
|
await n.hooks.callHook("dom:renderTag", d, e, m);
|
|
1861
1863
|
r.head && e.head.appendChild(r.head), r.bodyOpen && e.body.insertBefore(r.bodyOpen, e.body.firstChild), r.bodyClose && e.body.appendChild(r.bodyClose), Object.values(s.pendingSideEffects).forEach((d) => d()), n._dom = s, n.dirty = !1, await n.hooks.callHook("dom:rendered", { renders: i });
|
|
1862
1864
|
}
|
|
1863
|
-
async function
|
|
1864
|
-
const e = l.delayFn || ((
|
|
1865
|
-
return n._domUpdatePromise = n._domUpdatePromise || new Promise((
|
|
1866
|
-
await
|
|
1865
|
+
async function gn(n, l = {}) {
|
|
1866
|
+
const e = l.delayFn || ((t) => setTimeout(t, 10));
|
|
1867
|
+
return n._domUpdatePromise = n._domUpdatePromise || new Promise((t) => e(async () => {
|
|
1868
|
+
await yn(n, l), delete n._domUpdatePromise, t();
|
|
1867
1869
|
}));
|
|
1868
1870
|
}
|
|
1869
1871
|
// @__NO_SIDE_EFFECTS__
|
|
1870
|
-
function
|
|
1872
|
+
function kn(n) {
|
|
1871
1873
|
return (l) => {
|
|
1872
1874
|
const e = l.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
|
|
1873
1875
|
return e && l.push(JSON.parse(e)), {
|
|
1874
1876
|
mode: "client",
|
|
1875
1877
|
hooks: {
|
|
1876
|
-
"entries:updated": function(
|
|
1877
|
-
|
|
1878
|
+
"entries:updated": function(t) {
|
|
1879
|
+
gn(t, n);
|
|
1878
1880
|
}
|
|
1879
1881
|
}
|
|
1880
1882
|
};
|
|
1881
1883
|
};
|
|
1882
1884
|
}
|
|
1883
|
-
const
|
|
1885
|
+
const bn = ["templateParams", "htmlAttrs", "bodyAttrs"], _n = {
|
|
1884
1886
|
hooks: {
|
|
1885
1887
|
"tag:normalise": function({ tag: n }) {
|
|
1886
|
-
["hid", "vmid", "key"].forEach((
|
|
1887
|
-
n.props[
|
|
1888
|
+
["hid", "vmid", "key"].forEach((t) => {
|
|
1889
|
+
n.props[t] && (n.key = n.props[t], delete n.props[t]);
|
|
1888
1890
|
});
|
|
1889
|
-
const e =
|
|
1891
|
+
const e = _t(n) || (n.key ? `${n.tag}:${n.key}` : !1);
|
|
1890
1892
|
e && (n._d = e);
|
|
1891
1893
|
},
|
|
1892
1894
|
"tags:resolve": function(n) {
|
|
1893
1895
|
const l = {};
|
|
1894
|
-
n.tags.forEach((
|
|
1895
|
-
const i = (
|
|
1896
|
+
n.tags.forEach((t) => {
|
|
1897
|
+
const i = (t.key ? `${t.tag}:${t.key}` : t._d) || t._p, s = l[i];
|
|
1896
1898
|
if (s) {
|
|
1897
|
-
let p =
|
|
1898
|
-
if (!p &&
|
|
1899
|
+
let p = t?.tagDuplicateStrategy;
|
|
1900
|
+
if (!p && bn.includes(t.tag) && (p = "merge"), p === "merge") {
|
|
1899
1901
|
const u = s.props;
|
|
1900
1902
|
["class", "style"].forEach((r) => {
|
|
1901
|
-
u[r] && (
|
|
1903
|
+
u[r] && (t.props[r] ? (r === "style" && !u[r].endsWith(";") && (u[r] += ";"), t.props[r] = `${u[r]} ${t.props[r]}`) : t.props[r] = u[r]);
|
|
1902
1904
|
}), l[i].props = {
|
|
1903
1905
|
...u,
|
|
1904
|
-
...
|
|
1906
|
+
...t.props
|
|
1905
1907
|
};
|
|
1906
1908
|
return;
|
|
1907
|
-
} else if (
|
|
1908
|
-
s._duped = s._duped || [],
|
|
1909
|
+
} else if (t._e === s._e) {
|
|
1910
|
+
s._duped = s._duped || [], t._d = `${s._d}:${s._duped.length + 1}`, s._duped.push(t);
|
|
1909
1911
|
return;
|
|
1910
|
-
} else if (De(
|
|
1912
|
+
} else if (De(t) > De(s))
|
|
1911
1913
|
return;
|
|
1912
1914
|
}
|
|
1913
|
-
const m = Object.keys(
|
|
1914
|
-
if (Te.includes(
|
|
1915
|
+
const m = Object.keys(t.props).length + (t.innerHTML ? 1 : 0) + (t.textContent ? 1 : 0);
|
|
1916
|
+
if (Te.includes(t.tag) && m === 0) {
|
|
1915
1917
|
delete l[i];
|
|
1916
1918
|
return;
|
|
1917
1919
|
}
|
|
1918
|
-
l[i] =
|
|
1920
|
+
l[i] = t;
|
|
1919
1921
|
});
|
|
1920
1922
|
const e = [];
|
|
1921
|
-
Object.values(l).forEach((
|
|
1922
|
-
const i =
|
|
1923
|
-
delete
|
|
1924
|
-
}), n.tags = e, n.tags = n.tags.filter((
|
|
1923
|
+
Object.values(l).forEach((t) => {
|
|
1924
|
+
const i = t._duped;
|
|
1925
|
+
delete t._duped, e.push(t), i && e.push(...i);
|
|
1926
|
+
}), n.tags = e, n.tags = n.tags.filter((t) => !(t.tag === "meta" && (t.props.name || t.props.property) && !t.props.content));
|
|
1925
1927
|
}
|
|
1926
1928
|
}
|
|
1927
|
-
},
|
|
1929
|
+
}, Vn = {
|
|
1928
1930
|
mode: "server",
|
|
1929
1931
|
hooks: {
|
|
1930
1932
|
"tags:resolve": function(n) {
|
|
@@ -1938,52 +1940,52 @@ const kn = ["templateParams", "htmlAttrs", "bodyAttrs"], bn = {
|
|
|
1938
1940
|
});
|
|
1939
1941
|
}
|
|
1940
1942
|
}
|
|
1941
|
-
},
|
|
1943
|
+
}, Tn = ["script", "link", "bodyAttrs"], $n = (n) => ({
|
|
1942
1944
|
hooks: {
|
|
1943
1945
|
"tags:resolve": function(l) {
|
|
1944
|
-
for (const e of l.tags.filter((
|
|
1945
|
-
Object.entries(e.props).forEach(([
|
|
1946
|
-
|
|
1947
|
-
}), n.ssr && e._eventHandlers && (e.props.src || e.props.href) && (e.key = e.key ||
|
|
1946
|
+
for (const e of l.tags.filter((t) => Tn.includes(t.tag)))
|
|
1947
|
+
Object.entries(e.props).forEach(([t, i]) => {
|
|
1948
|
+
t.startsWith("on") && typeof i == "function" && (n.ssr && ut.includes(t) ? e.props[t] = `this.dataset.${t}fired = true` : delete e.props[t], e._eventHandlers = e._eventHandlers || {}, e._eventHandlers[t] = i);
|
|
1949
|
+
}), n.ssr && e._eventHandlers && (e.props.src || e.props.href) && (e.key = e.key || Xe(e.props.src || e.props.href));
|
|
1948
1950
|
},
|
|
1949
1951
|
"dom:renderTag": function({ $el: l, tag: e }) {
|
|
1950
|
-
for (const
|
|
1951
|
-
const i =
|
|
1952
|
+
for (const t of Object.keys(l?.dataset || {}).filter((i) => ut.some((s) => `${s}fired` === i))) {
|
|
1953
|
+
const i = t.replace("fired", "");
|
|
1952
1954
|
e._eventHandlers?.[i]?.call(l, new Event(i.replace("on", "")));
|
|
1953
1955
|
}
|
|
1954
1956
|
}
|
|
1955
1957
|
}
|
|
1956
|
-
}),
|
|
1958
|
+
}), wn = ["link", "style", "script", "noscript"], Cn = {
|
|
1957
1959
|
hooks: {
|
|
1958
1960
|
"tag:normalise": ({ tag: n }) => {
|
|
1959
|
-
n.key &&
|
|
1961
|
+
n.key && wn.includes(n.tag) && (n.props["data-hid"] = n._h = Xe(n.key));
|
|
1960
1962
|
}
|
|
1961
1963
|
}
|
|
1962
|
-
},
|
|
1964
|
+
}, Pn = {
|
|
1963
1965
|
hooks: {
|
|
1964
1966
|
"tags:resolve": (n) => {
|
|
1965
|
-
const l = (e) => n.tags.find((
|
|
1966
|
-
for (const { prefix: e, offset:
|
|
1967
|
+
const l = (e) => n.tags.find((t) => t._d === e)?._p;
|
|
1968
|
+
for (const { prefix: e, offset: t } of vn)
|
|
1967
1969
|
for (const i of n.tags.filter((s) => typeof s.tagPriority == "string" && s.tagPriority.startsWith(e))) {
|
|
1968
1970
|
const s = l(
|
|
1969
1971
|
i.tagPriority.replace(e, "")
|
|
1970
1972
|
);
|
|
1971
|
-
typeof s < "u" && (i._p = s +
|
|
1973
|
+
typeof s < "u" && (i._p = s + t);
|
|
1972
1974
|
}
|
|
1973
|
-
n.tags.sort((e,
|
|
1975
|
+
n.tags.sort((e, t) => e._p - t._p).sort((e, t) => De(e) - De(t));
|
|
1974
1976
|
}
|
|
1975
1977
|
}
|
|
1976
|
-
},
|
|
1978
|
+
}, An = {
|
|
1977
1979
|
meta: "content",
|
|
1978
1980
|
link: "href",
|
|
1979
1981
|
htmlAttrs: "lang"
|
|
1980
|
-
},
|
|
1982
|
+
}, Dn = (n) => ({
|
|
1981
1983
|
hooks: {
|
|
1982
1984
|
"tags:resolve": (l) => {
|
|
1983
|
-
const { tags: e } = l,
|
|
1984
|
-
delete s.separator, s.pageTitle = $e(s.pageTitle ||
|
|
1985
|
+
const { tags: e } = l, t = e.find((p) => p.tag === "title")?.textContent, i = e.findIndex((p) => p.tag === "templateParams"), s = i !== -1 ? e[i].props : {}, m = s.separator || "|";
|
|
1986
|
+
delete s.separator, s.pageTitle = $e(s.pageTitle || t || "", s, m);
|
|
1985
1987
|
for (const p of e.filter((u) => u.processTemplateParams !== !1)) {
|
|
1986
|
-
const u =
|
|
1988
|
+
const u = An[p.tag];
|
|
1987
1989
|
u && typeof p.props[u] == "string" ? p.props[u] = $e(p.props[u], s, m) : (p.processTemplateParams === !0 || ["titleTemplate", "title"].includes(p.tag)) && ["innerHTML", "textContent"].forEach((r) => {
|
|
1988
1990
|
typeof p[r] == "string" && (p[r] = $e(p[r], s, m));
|
|
1989
1991
|
});
|
|
@@ -1991,20 +1993,20 @@ const kn = ["templateParams", "htmlAttrs", "bodyAttrs"], bn = {
|
|
|
1991
1993
|
n._templateParams = s, n._separator = m, l.tags = e.filter((p) => p.tag !== "templateParams");
|
|
1992
1994
|
}
|
|
1993
1995
|
}
|
|
1994
|
-
}),
|
|
1996
|
+
}), Hn = {
|
|
1995
1997
|
hooks: {
|
|
1996
1998
|
"tags:resolve": (n) => {
|
|
1997
1999
|
const { tags: l } = n;
|
|
1998
2000
|
let e = l.findIndex((i) => i.tag === "titleTemplate");
|
|
1999
|
-
const
|
|
2000
|
-
if (
|
|
2001
|
-
const i =
|
|
2001
|
+
const t = l.findIndex((i) => i.tag === "title");
|
|
2002
|
+
if (t !== -1 && e !== -1) {
|
|
2003
|
+
const i = st(
|
|
2002
2004
|
l[e].textContent,
|
|
2003
|
-
l[
|
|
2005
|
+
l[t].textContent
|
|
2004
2006
|
);
|
|
2005
|
-
i !== null ? l[
|
|
2007
|
+
i !== null ? l[t].textContent = i || l[t].textContent : delete l[t];
|
|
2006
2008
|
} else if (e !== -1) {
|
|
2007
|
-
const i =
|
|
2009
|
+
const i = st(
|
|
2008
2010
|
l[e].textContent
|
|
2009
2011
|
);
|
|
2010
2012
|
i !== null && (l[e].textContent = i, l[e].tag = "title", e = -1);
|
|
@@ -2012,7 +2014,7 @@ const kn = ["templateParams", "htmlAttrs", "bodyAttrs"], bn = {
|
|
|
2012
2014
|
e !== -1 && delete l[e], n.tags = l.filter(Boolean);
|
|
2013
2015
|
}
|
|
2014
2016
|
}
|
|
2015
|
-
},
|
|
2017
|
+
}, Sn = {
|
|
2016
2018
|
hooks: {
|
|
2017
2019
|
"tags:afterResolve": function(n) {
|
|
2018
2020
|
for (const l of n.tags)
|
|
@@ -2021,17 +2023,17 @@ const kn = ["templateParams", "htmlAttrs", "bodyAttrs"], bn = {
|
|
|
2021
2023
|
}
|
|
2022
2024
|
};
|
|
2023
2025
|
// @__NO_SIDE_EFFECTS__
|
|
2024
|
-
function
|
|
2025
|
-
const l =
|
|
2026
|
-
return l.use(/* @__PURE__ */
|
|
2026
|
+
function In(n = {}) {
|
|
2027
|
+
const l = Bn(n);
|
|
2028
|
+
return l.use(/* @__PURE__ */ kn()), l;
|
|
2027
2029
|
}
|
|
2028
|
-
function
|
|
2030
|
+
function ct(n, l) {
|
|
2029
2031
|
return !n || n === "server" && l || n === "client" && !l;
|
|
2030
2032
|
}
|
|
2031
|
-
function
|
|
2032
|
-
const l =
|
|
2033
|
-
l.addHooks(n.hooks || {}), n.document = n.document || (
|
|
2034
|
-
const e = !n.document,
|
|
2033
|
+
function Bn(n = {}) {
|
|
2034
|
+
const l = an();
|
|
2035
|
+
l.addHooks(n.hooks || {}), n.document = n.document || (cn ? document : void 0);
|
|
2036
|
+
const e = !n.document, t = () => {
|
|
2035
2037
|
p.dirty = !0, l.callHook("entries:updated", p);
|
|
2036
2038
|
};
|
|
2037
2039
|
let i = 0, s = [];
|
|
@@ -2045,7 +2047,7 @@ function In(n = {}) {
|
|
|
2045
2047
|
},
|
|
2046
2048
|
use(u) {
|
|
2047
2049
|
const r = typeof u == "function" ? u(p) : u;
|
|
2048
|
-
(!r.key || !m.some((d) => d.key === r.key)) && (m.push(r),
|
|
2050
|
+
(!r.key || !m.some((d) => d.key === r.key)) && (m.push(r), ct(r.mode, e) && l.addHooks(r.hooks || {}));
|
|
2049
2051
|
},
|
|
2050
2052
|
push(u, r) {
|
|
2051
2053
|
delete r?.head;
|
|
@@ -2054,13 +2056,13 @@ function In(n = {}) {
|
|
|
2054
2056
|
input: u,
|
|
2055
2057
|
...r
|
|
2056
2058
|
};
|
|
2057
|
-
return
|
|
2059
|
+
return ct(d.mode, e) && (s.push(d), t()), {
|
|
2058
2060
|
dispose() {
|
|
2059
|
-
s = s.filter((f) => f._i !== d._i), l.callHook("entries:updated", p),
|
|
2061
|
+
s = s.filter((f) => f._i !== d._i), l.callHook("entries:updated", p), t();
|
|
2060
2062
|
},
|
|
2061
2063
|
// a patch is the same as creating a new entry, just a nice DX
|
|
2062
2064
|
patch(f) {
|
|
2063
|
-
s = s.map((V) => (V._i === d._i && (V.input = d.input = f), V)),
|
|
2065
|
+
s = s.map((V) => (V._i === d._i && (V.input = d.input = f), V)), t();
|
|
2064
2066
|
}
|
|
2065
2067
|
};
|
|
2066
2068
|
},
|
|
@@ -2070,7 +2072,7 @@ function In(n = {}) {
|
|
|
2070
2072
|
for (const r of u.entries) {
|
|
2071
2073
|
const d = r.resolvedInput || r.input;
|
|
2072
2074
|
if (r.resolvedInput = await (r.transform ? r.transform(d) : d), r.resolvedInput)
|
|
2073
|
-
for (const f of await
|
|
2075
|
+
for (const f of await hn(r)) {
|
|
2074
2076
|
const V = { tag: f, entry: r, resolvedOptions: p.resolvedOptions };
|
|
2075
2077
|
await l.callHook("tag:normalise", V), u.tags.push(V.tag);
|
|
2076
2078
|
}
|
|
@@ -2080,51 +2082,51 @@ function In(n = {}) {
|
|
|
2080
2082
|
ssr: e
|
|
2081
2083
|
};
|
|
2082
2084
|
return [
|
|
2083
|
-
bn,
|
|
2084
2085
|
_n,
|
|
2085
|
-
|
|
2086
|
-
|
|
2086
|
+
Vn,
|
|
2087
|
+
$n,
|
|
2087
2088
|
Cn,
|
|
2088
|
-
|
|
2089
|
+
Pn,
|
|
2089
2090
|
Dn,
|
|
2090
2091
|
Hn,
|
|
2092
|
+
Sn,
|
|
2091
2093
|
...n?.plugins || []
|
|
2092
2094
|
].forEach((u) => p.use(u)), p.hooks.callHook("init", p), p;
|
|
2093
2095
|
}
|
|
2094
|
-
const
|
|
2095
|
-
function
|
|
2096
|
-
return typeof n == "function" ? n() :
|
|
2096
|
+
const En = eo.startsWith("3");
|
|
2097
|
+
function Mn(n) {
|
|
2098
|
+
return typeof n == "function" ? n() : o(n);
|
|
2097
2099
|
}
|
|
2098
2100
|
function ze(n, l = "") {
|
|
2099
2101
|
if (n instanceof Promise)
|
|
2100
2102
|
return n;
|
|
2101
|
-
const e =
|
|
2102
|
-
return !n || !e ? e : Array.isArray(e) ? e.map((
|
|
2103
|
-
Object.entries(e).map(([
|
|
2103
|
+
const e = Mn(n);
|
|
2104
|
+
return !n || !e ? e : Array.isArray(e) ? e.map((t) => ze(t, l)) : typeof e == "object" ? Object.fromEntries(
|
|
2105
|
+
Object.entries(e).map(([t, i]) => t === "titleTemplate" || t.startsWith("on") ? [t, o(i)] : [t, ze(i, t)])
|
|
2104
2106
|
) : e;
|
|
2105
2107
|
}
|
|
2106
|
-
const
|
|
2108
|
+
const Un = {
|
|
2107
2109
|
hooks: {
|
|
2108
2110
|
"entries:resolve": function(n) {
|
|
2109
2111
|
for (const l of n.entries)
|
|
2110
2112
|
l.resolvedInput = ze(l.input);
|
|
2111
2113
|
}
|
|
2112
2114
|
}
|
|
2113
|
-
},
|
|
2114
|
-
function
|
|
2115
|
+
}, Rn = "usehead";
|
|
2116
|
+
function Ln(n) {
|
|
2115
2117
|
return {
|
|
2116
2118
|
install(e) {
|
|
2117
|
-
|
|
2119
|
+
En && (e.config.globalProperties.$unhead = n, e.config.globalProperties.$head = n, e.provide(Rn, n));
|
|
2118
2120
|
}
|
|
2119
2121
|
}.install;
|
|
2120
2122
|
}
|
|
2121
|
-
function
|
|
2122
|
-
n.domDelayFn = n.domDelayFn || ((e) =>
|
|
2123
|
-
const l = /* @__PURE__ */
|
|
2124
|
-
return l.use(
|
|
2123
|
+
function Nn(n = {}) {
|
|
2124
|
+
n.domDelayFn = n.domDelayFn || ((e) => Qt(() => setTimeout(() => e(), 0)));
|
|
2125
|
+
const l = /* @__PURE__ */ In(n);
|
|
2126
|
+
return l.use(Un), l.install = Ln(l), l;
|
|
2125
2127
|
}
|
|
2126
|
-
const
|
|
2127
|
-
class
|
|
2128
|
+
const Fn = so(), On = Nn(), jn = po();
|
|
2129
|
+
class Gn extends HTMLElement {
|
|
2128
2130
|
vueApp;
|
|
2129
2131
|
constructor() {
|
|
2130
2132
|
super();
|
|
@@ -2135,8 +2137,8 @@ class jn extends HTMLElement {
|
|
|
2135
2137
|
connectedCallback() {
|
|
2136
2138
|
const l = typeof Ve == "function" ? Ve.options : Ve;
|
|
2137
2139
|
let e = Array.isArray(l.props) ? l.props : Object.keys(l.props || {});
|
|
2138
|
-
const
|
|
2139
|
-
e = e.map(
|
|
2140
|
+
const t = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (r, d) => (d ? "-" : "") + r.toLowerCase()), i = (u) => u.replace(/-./g, (r) => r[1].toUpperCase()), s = {};
|
|
2141
|
+
e = e.map(t);
|
|
2140
2142
|
const m = {};
|
|
2141
2143
|
for (const u of this.attributes) {
|
|
2142
2144
|
const d = u.name.split(".");
|
|
@@ -2146,13 +2148,13 @@ class jn extends HTMLElement {
|
|
|
2146
2148
|
let r = this.attributes.getNamedItem(u)?.value;
|
|
2147
2149
|
m.hasOwnProperty(u) && (r = m[u]), s[u] = r;
|
|
2148
2150
|
}
|
|
2149
|
-
this.vueApp =
|
|
2151
|
+
this.vueApp = to(Ve, s), ro(this.vueApp), this.vueApp.provide("emitter", jn), this.vueApp.use(On), this.vueApp.use(Fn), this.vueApp.use(ko), this.vueApp.use(uo), this.vueApp.use(bo), this.vueApp.use(co, { bootstrap: !0 });
|
|
2150
2152
|
const p = document.createElement("div");
|
|
2151
2153
|
this.vueApp.mount(p), this.appendChild(p.children[0]);
|
|
2152
2154
|
}
|
|
2153
2155
|
}
|
|
2154
|
-
window.customElements.define("konnectio-hotel",
|
|
2156
|
+
window.customElements.define("konnectio-hotel", Gn);
|
|
2155
2157
|
export {
|
|
2156
|
-
|
|
2158
|
+
Gn as default
|
|
2157
2159
|
};
|
|
2158
2160
|
//# sourceMappingURL=hotel.js.map
|