@konnectio/core 4.0.65 → 4.0.67
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-D5c9yQMq.js → ActionField-CT_apby-.js} +15 -15
- package/dist/ActionField-CT_apby-.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BfyLbK2o.js → AvailabilitySkeleton-CZ8yMhKx.js} +17 -17
- package/dist/AvailabilitySkeleton-CZ8yMhKx.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-L3G7fjJr.js} +253 -253
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-L3G7fjJr.js.br +0 -0
- package/dist/{CheckoutWindow-B74NMuGr.js → CheckoutWindow-B5_4BaaS.js} +5 -5
- package/dist/CheckoutWindow-B5_4BaaS.js.br +0 -0
- package/dist/{ErrorMessage-CWR5rjTx.js → ErrorMessage-M78h-mvR.js} +3 -3
- package/dist/ErrorMessage-M78h-mvR.js.br +0 -0
- package/dist/{EventAvailabilityForm-lFAnwVMX.js → EventAvailabilityForm-HdD0h2K-.js} +6 -6
- package/dist/EventAvailabilityForm-HdD0h2K-.js.br +0 -0
- package/dist/{Field-C4DyN4XC.js → Field-B8yANlQ6.js} +3 -3
- package/dist/Field-B8yANlQ6.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-rrYg4a8F.js} +1940 -1901
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-rrYg4a8F.js.br +0 -0
- package/dist/{TermsOfService-Bx4b2VxT.js → TermsOfService-BJKKDCJG.js} +13 -13
- package/dist/TermsOfService-BJKKDCJG.js.br +0 -0
- package/dist/{_-DmU4JLX1.js → _-yypsiI8V.js} +2 -2
- package/dist/_.vue_vue_type_style_index_0_lang-CyUM1wWD.js +40 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CyUM1wWD.js.br +0 -0
- package/dist/{tracing-B1Jp160Y.js → _commonjsHelpers-Dn7n5RRb.js} +204 -197
- package/dist/_commonjsHelpers-Dn7n5RRb.js.br +0 -0
- package/dist/{_sentry-release-injection-file-tJBg8sGS.js → _sentry-release-injection-file-gSWd_6hD.js} +3 -3
- package/dist/_sentry-release-injection-file-gSWd_6hD.js.br +0 -0
- package/dist/availability.js +44 -44
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +2 -2
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +19 -19
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +41 -41
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +20 -20
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-SDJGsDep.js → giftCard-Baweqc3Y.js} +5 -5
- package/dist/giftCard-Baweqc3Y.js.br +0 -0
- package/dist/hotel.js +563 -559
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-BhK5XQta.js → masonry.plugin-HPRfkQvp.js} +48 -46
- package/dist/masonry.plugin-HPRfkQvp.js.br +0 -0
- package/dist/{mitt-CGFh35r5.js → mitt-CayBWWiP.js} +2 -2
- package/dist/mitt-CayBWWiP.js.br +0 -0
- package/dist/polyfill.js +5 -6
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-BQlIFUN3.js → style-B31Ox_CN.js} +153 -160
- package/dist/style-B31Ox_CN.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-D5c9yQMq.js.br +0 -0
- package/dist/AvailabilitySkeleton-BfyLbK2o.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js.br +0 -0
- package/dist/CheckoutWindow-B74NMuGr.js.br +0 -0
- package/dist/ErrorMessage-CWR5rjTx.js.br +0 -0
- package/dist/EventAvailabilityForm-lFAnwVMX.js.br +0 -0
- package/dist/Field-C4DyN4XC.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js.br +0 -0
- package/dist/TermsOfService-Bx4b2VxT.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js +0 -77
- package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js.br +0 -0
- package/dist/_commonjsHelpers-BbdZelfp.js +0 -25
- package/dist/_commonjsHelpers-BbdZelfp.js.br +0 -0
- package/dist/_sentry-release-injection-file-tJBg8sGS.js.br +0 -0
- package/dist/giftCard-SDJGsDep.js.br +0 -0
- package/dist/masonry.plugin-BhK5XQta.js.br +0 -0
- package/dist/mitt-CGFh35r5.js.br +0 -0
- package/dist/style-BQlIFUN3.js.br +0 -0
- package/dist/tracing-B1Jp160Y.js.br +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { A as To, H as wo } from "./AvailabilitySkeleton-
|
|
6
|
-
import { R as Co, B as
|
|
7
|
-
import { S as Io } from "./TermsOfService-
|
|
8
|
-
import { C as
|
|
9
|
-
import { _ as $t } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-
|
|
1
|
+
import { d as X, r as le, a as u, b as A, q as no, u as t, w as C, g as h, e as a, t as v, A as Ke, B as xe, f as g, i as _, s as F, F as M, l as ze, x as Qe, v as U, h as He, c as O, p as Vt, j as Tt, o as lt, z as Ie, n as Be, S as ao, C as io, D as so, E as ro, k as co } from "./_sentry-release-injection-file-gSWd_6hD.js";
|
|
2
|
+
import { u as ne, s as Q, T as uo, c as po, i as mo, m as fo } from "./mitt-CayBWWiP.js";
|
|
3
|
+
import { e as Te, y as fe, u as Ve, I as J, s as pe, z as Xe, l as ut, j as ce, h as oe, _ as me, o as Le, A as wt, b as et, d as ue, B as Ct, D as pt, T as de, q as ho, F as vo, a as yo, C as go, i as mt, k as bo, m as ft, c as ko, n as _o } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-rrYg4a8F.js";
|
|
4
|
+
import { G as Vo } from "./style-B31Ox_CN.js";
|
|
5
|
+
import { A as To, H as wo } from "./AvailabilitySkeleton-CZ8yMhKx.js";
|
|
6
|
+
import { R as Co, B as Me, L as $o, S as Ao, M as Po, a as Je, C as Do, T as So, V as Ho } from "./masonry.plugin-HPRfkQvp.js";
|
|
7
|
+
import { S as Io } from "./TermsOfService-BJKKDCJG.js";
|
|
8
|
+
import { C as Ee, B as Bo, P as Eo, a as No } from "./CheckoutWindow-B5_4BaaS.js";
|
|
9
|
+
import { _ as $t } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-L3G7fjJr.js";
|
|
10
10
|
(function() {
|
|
11
11
|
try {
|
|
12
12
|
var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
|
|
13
|
-
l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "
|
|
13
|
+
l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "b9fdd209-de41-4300-b33c-3a4c08c0ba17", n._sentryDebugIdIdentifier = "sentry-dbid-b9fdd209-de41-4300-b33c-3a4c08c0ba17");
|
|
14
14
|
} catch {
|
|
15
15
|
}
|
|
16
16
|
})();
|
|
17
17
|
{
|
|
18
|
-
var
|
|
19
|
-
|
|
18
|
+
var Ae = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
19
|
+
Ae._sentryModuleMetadata = Ae._sentryModuleMetadata || {}, Ae._sentryModuleMetadata[new Error().stack] = Object.assign(
|
|
20
20
|
{},
|
|
21
|
-
|
|
21
|
+
Ae._sentryModuleMetadata[new Error().stack],
|
|
22
22
|
{ "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
const Lo = { key: 0 }, Mo = { class: "konnectio-hotel-reservation-warning" }, Ro = { class: "konnectio-hotel-reservation-warning" }, Uo = { class: "konnectio-hotel-reservation-warning" };
|
|
26
|
-
const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnectio-reservation-actions" }, Go = /* @__PURE__ */
|
|
26
|
+
const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnectio-reservation-actions" }, Go = /* @__PURE__ */ X({
|
|
27
27
|
__name: "HotelReservationForm",
|
|
28
28
|
props: {
|
|
29
29
|
showGiftCard: { type: Boolean, default: !1 },
|
|
30
30
|
showTermsNotice: { type: Boolean, default: !1 }
|
|
31
31
|
},
|
|
32
32
|
setup(n) {
|
|
33
|
-
const { t: l } =
|
|
33
|
+
const { t: l } = ne(), {
|
|
34
34
|
hideArrivalDepartureInputs: o,
|
|
35
35
|
disableArrivalUserSelection: e,
|
|
36
36
|
disableDepartureUserSelection: i,
|
|
37
37
|
arrivalDefault: s,
|
|
38
38
|
departureDefault: m,
|
|
39
39
|
disableNewsletterSignup: p,
|
|
40
|
-
currency:
|
|
41
|
-
} =
|
|
40
|
+
currency: c
|
|
41
|
+
} = Q(Te()), {
|
|
42
42
|
arrivalTime: r,
|
|
43
43
|
departureTime: d,
|
|
44
|
-
roomDisplay:
|
|
44
|
+
roomDisplay: f,
|
|
45
45
|
templateID: V,
|
|
46
46
|
totalPrice: $,
|
|
47
47
|
areListingsLoading: w,
|
|
@@ -51,146 +51,92 @@ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnecti
|
|
|
51
51
|
currentArrivalDate: k,
|
|
52
52
|
currentDepartureDate: D,
|
|
53
53
|
datesMismatch: I,
|
|
54
|
-
currentLocation:
|
|
54
|
+
currentLocation: Y,
|
|
55
55
|
locationMismatch: j,
|
|
56
56
|
newsMails: W,
|
|
57
57
|
termsOfService: q,
|
|
58
|
-
discountCode:
|
|
59
|
-
hasTermOfService:
|
|
60
|
-
acceptTerms:
|
|
61
|
-
totalTemplateAddonPrice:
|
|
62
|
-
} =
|
|
63
|
-
function Ce(
|
|
64
|
-
return
|
|
58
|
+
discountCode: K,
|
|
59
|
+
hasTermOfService: ae,
|
|
60
|
+
acceptTerms: ge,
|
|
61
|
+
totalTemplateAddonPrice: R
|
|
62
|
+
} = Q(fe()), { hasHotelLocations: he } = Q(Ve()), { removeRoom: we, validateDiscountCode: be } = fe(), { getHotelLocationName: Re } = Ve(), ke = le(!1);
|
|
63
|
+
function Ce(ee) {
|
|
64
|
+
return ee.reduce((N, { totalPrice: ve }) => N + ve, 0);
|
|
65
65
|
}
|
|
66
|
-
return (
|
|
67
|
-
"discount-code": t(
|
|
68
|
-
"onUpdate:discountCode":
|
|
66
|
+
return (ee, x) => (u(), A(Co, {
|
|
67
|
+
"discount-code": t(K),
|
|
68
|
+
"onUpdate:discountCode": x[4] || (x[4] = (N) => U(K) ? K.value = N : null),
|
|
69
69
|
"validate-discount-code": t(be),
|
|
70
70
|
"total-price": t($),
|
|
71
|
-
"show-gift-card":
|
|
72
|
-
"show-terms-notice":
|
|
71
|
+
"show-gift-card": ee.showGiftCard,
|
|
72
|
+
"show-terms-notice": ee.showTermsNotice,
|
|
73
73
|
"is-sidebar-loading": t(w),
|
|
74
74
|
notice: t(l)("hotel.reservationNotice")
|
|
75
|
-
}, {
|
|
75
|
+
}, no({
|
|
76
76
|
form: C(() => [
|
|
77
|
-
|
|
78
|
-
]),
|
|
79
|
-
"reservation-summary": C(() => [
|
|
80
|
-
t(F) && !isNaN(t(J)) ? (c(), f("li", Lo, [
|
|
81
|
-
a("span", null, h(t(l)("general.location")), 1),
|
|
82
|
-
a("b", null, [
|
|
83
|
-
a("span", null, h(t(ke)(t(J))), 1),
|
|
84
|
-
ze(a("span", Mo, [
|
|
85
|
-
g(z, {
|
|
86
|
-
icon: "exclamation-triangle",
|
|
87
|
-
type: "fas"
|
|
88
|
-
})
|
|
89
|
-
], 512), [
|
|
90
|
-
[Je, t(j)]
|
|
91
|
-
])
|
|
92
|
-
])
|
|
93
|
-
])) : _("", !0),
|
|
94
|
-
a("li", null, [
|
|
95
|
-
a("span", null, h(t(l)("booking.reservation.arrival")), 1),
|
|
96
|
-
a("b", null, [
|
|
97
|
-
a("span", null, h(t(o) ? t(pe)(t(k)) : `${t(pe)(t(k))}, ${t(e) ? t(s) : t(r)}`), 1),
|
|
98
|
-
ze(a("span", Ro, [
|
|
99
|
-
g(z, {
|
|
100
|
-
icon: "exclamation-triangle",
|
|
101
|
-
type: "fas"
|
|
102
|
-
})
|
|
103
|
-
], 512), [
|
|
104
|
-
[Je, t(I)]
|
|
105
|
-
])
|
|
106
|
-
])
|
|
107
|
-
]),
|
|
108
|
-
a("li", null, [
|
|
109
|
-
a("span", null, h(t(l)("booking.reservation.departure")), 1),
|
|
110
|
-
a("b", null, [
|
|
111
|
-
a("span", null, h(t(o) ? t(pe)(t(D)) : `${t(pe)(t(D))}, ${t(i) ? t(m) : t(d)}`), 1),
|
|
112
|
-
ze(a("span", Uo, [
|
|
113
|
-
g(z, {
|
|
114
|
-
icon: "exclamation-triangle",
|
|
115
|
-
type: "fas"
|
|
116
|
-
})
|
|
117
|
-
], 512), [
|
|
118
|
-
[Je, t(I)]
|
|
119
|
-
])
|
|
120
|
-
])
|
|
121
|
-
]),
|
|
122
|
-
a("li", null, [
|
|
123
|
-
a("span", null, h(t(l)("booking.reservation.nights")), 1),
|
|
124
|
-
a("b", null, h(t(et)(t(k), t(D))) + " " + h(t(ct)(t(et)(t(k), t(D)) === 1 ? t(l)("booking.reservation.night") : t(l)("booking.reservation.nights"))), 1)
|
|
125
|
-
]),
|
|
126
|
-
t(B) ? (c(!0), f(M, { key: 1 }, U(t(B), (N) => (c(), f("li", {
|
|
127
|
-
key: N.id
|
|
128
|
-
}, [
|
|
129
|
-
a("span", null, h(`${t(l)("general.discountCode")} (${N.value})`), 1),
|
|
130
|
-
a("b", null, h(N.key), 1)
|
|
131
|
-
]))), 128)) : _("", !0)
|
|
77
|
+
ze(ee.$slots, "form", {}, void 0, !0)
|
|
132
78
|
]),
|
|
133
79
|
"price-summary": C(() => [
|
|
134
|
-
isNaN(t(V)) && t(
|
|
80
|
+
isNaN(t(V)) && t(f).length > 0 ? (u(!0), h(M, { key: 0 }, F(t(f), ({
|
|
135
81
|
roomGroupID: N,
|
|
136
|
-
title:
|
|
137
|
-
variants:
|
|
138
|
-
}) => (
|
|
82
|
+
title: ve,
|
|
83
|
+
variants: Ue
|
|
84
|
+
}) => (u(), h("div", { key: N }, [
|
|
139
85
|
a("h6", null, [
|
|
140
|
-
a("span", null,
|
|
86
|
+
a("span", null, v(ve), 1)
|
|
141
87
|
]),
|
|
142
|
-
(
|
|
143
|
-
(
|
|
88
|
+
(u(!0), h(M, null, F(Ue, ($e, Fe) => (u(), h("div", { key: Fe }, [
|
|
89
|
+
(u(!0), h(M, null, F($e.rooms, (ie, _e) => (u(), h("ul", { key: _e }, [
|
|
144
90
|
a("li", null, [
|
|
145
91
|
a("span", null, [
|
|
146
92
|
a("span", null, [
|
|
147
|
-
|
|
148
|
-
g(
|
|
93
|
+
Qe(v(t(ce)($e.name)) + " ( ", 1),
|
|
94
|
+
g(J, {
|
|
149
95
|
icon: "male",
|
|
150
96
|
type: "fas",
|
|
151
97
|
color: "font"
|
|
152
98
|
}),
|
|
153
|
-
a("span", null,
|
|
154
|
-
ie.childrenCount > 0 ? (
|
|
155
|
-
g(
|
|
99
|
+
a("span", null, v(ie.adultsCount), 1),
|
|
100
|
+
ie.childrenCount > 0 ? (u(), h(M, { key: 0 }, [
|
|
101
|
+
g(J, {
|
|
156
102
|
icon: "child",
|
|
157
103
|
type: "fas",
|
|
158
104
|
color: "font"
|
|
159
105
|
}),
|
|
160
|
-
a("span", null,
|
|
106
|
+
a("span", null, v(ie.childrenCount), 1)
|
|
161
107
|
], 64)) : _("", !0),
|
|
162
|
-
|
|
108
|
+
Qe(") ")
|
|
163
109
|
])
|
|
164
110
|
]),
|
|
165
111
|
a("b", null, [
|
|
166
|
-
a("span", null,
|
|
112
|
+
a("span", null, v(t(oe)(ie.totalPrice, t(c))), 1),
|
|
167
113
|
_("", !0)
|
|
168
114
|
])
|
|
169
115
|
]),
|
|
170
|
-
Ce(ie.roomAddons) > 0 ? (
|
|
171
|
-
a("span", null,
|
|
172
|
-
a("b", null,
|
|
116
|
+
Ce(ie.roomAddons) > 0 ? (u(), h("li", Fo, [
|
|
117
|
+
a("span", null, v(t(l)("general.addons")), 1),
|
|
118
|
+
a("b", null, v(t(oe)(Ce(ie.roomAddons), t(c))), 1)
|
|
173
119
|
])) : _("", !0)
|
|
174
120
|
]))), 128))
|
|
175
121
|
]))), 128))
|
|
176
122
|
]))), 128)) : _("", !0),
|
|
177
|
-
t(H) && t(E) ? (
|
|
123
|
+
t(H) && t(E) ? (u(), h("div", Oo, [
|
|
178
124
|
a("h6", null, [
|
|
179
|
-
a("span", null,
|
|
125
|
+
a("span", null, v(t(ce)(t(E).name)), 1)
|
|
180
126
|
]),
|
|
181
127
|
a("div", null, [
|
|
182
128
|
a("ul", null, [
|
|
183
129
|
a("li", null, [
|
|
184
130
|
a("span", null, [
|
|
185
|
-
a("span", null,
|
|
131
|
+
a("span", null, v(t(ce)(t(H).title)), 1)
|
|
186
132
|
]),
|
|
187
133
|
a("b", null, [
|
|
188
|
-
a("span", null,
|
|
134
|
+
a("span", null, v(t(oe)(t(H).extraPrice, t(c))), 1)
|
|
189
135
|
])
|
|
190
136
|
]),
|
|
191
|
-
t(
|
|
192
|
-
a("span", null,
|
|
193
|
-
a("b", null,
|
|
137
|
+
t(R) ? (u(), h("li", jo, [
|
|
138
|
+
a("span", null, v(t(l)("general.addons")), 1),
|
|
139
|
+
a("b", null, v(t(oe)(t(R), t(c))), 1)
|
|
194
140
|
])) : _("", !0)
|
|
195
141
|
])
|
|
196
142
|
])
|
|
@@ -198,23 +144,23 @@ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnecti
|
|
|
198
144
|
]),
|
|
199
145
|
actions: C(() => [
|
|
200
146
|
a("ul", qo, [
|
|
201
|
-
t(p) ? _("", !0) : (
|
|
147
|
+
t(p) ? _("", !0) : (u(), A(Ee, {
|
|
202
148
|
key: 0,
|
|
203
149
|
modelValue: t(W),
|
|
204
|
-
"onUpdate:modelValue":
|
|
150
|
+
"onUpdate:modelValue": x[0] || (x[0] = (N) => U(W) ? W.value = N : null),
|
|
205
151
|
type: "checkbox",
|
|
206
152
|
name: "newsletter",
|
|
207
153
|
label: t(l)("booking.reservation.newsletterSignUp")
|
|
208
154
|
}, null, 8, ["modelValue", "label"])),
|
|
209
|
-
t(
|
|
155
|
+
t(ae) ? (u(), A(Ee, {
|
|
210
156
|
key: 1,
|
|
211
|
-
modelValue: t(
|
|
212
|
-
"onUpdate:modelValue":
|
|
157
|
+
modelValue: t(ge),
|
|
158
|
+
"onUpdate:modelValue": x[2] || (x[2] = (N) => U(ge) ? ge.value = N : null),
|
|
213
159
|
type: "checkbox",
|
|
214
160
|
name: "terms"
|
|
215
161
|
}, {
|
|
216
162
|
default: C(() => [
|
|
217
|
-
g(t(
|
|
163
|
+
g(t(uo), {
|
|
218
164
|
keypath: "general.termsAndConditionsCheckbox",
|
|
219
165
|
tag: "span",
|
|
220
166
|
scope: "global"
|
|
@@ -222,9 +168,9 @@ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnecti
|
|
|
222
168
|
terms: C(() => [
|
|
223
169
|
a("a", {
|
|
224
170
|
class: "konnectio-accept-terms-link",
|
|
225
|
-
onClick:
|
|
171
|
+
onClick: x[1] || (x[1] = He((N) => ke.value = !0, ["prevent"]))
|
|
226
172
|
}, [
|
|
227
|
-
a("span", null,
|
|
173
|
+
a("span", null, v(t(ut)(t(l)("general.termsAndConditions"))), 1)
|
|
228
174
|
])
|
|
229
175
|
]),
|
|
230
176
|
_: 1
|
|
@@ -232,21 +178,80 @@ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnecti
|
|
|
232
178
|
]),
|
|
233
179
|
_: 1
|
|
234
180
|
}, 8, ["modelValue"])) : _("", !0),
|
|
235
|
-
|
|
181
|
+
ze(ee.$slots, "actions", {}, void 0, !0),
|
|
236
182
|
g(Io, {
|
|
237
|
-
modelValue:
|
|
238
|
-
"onUpdate:modelValue":
|
|
183
|
+
modelValue: ke.value,
|
|
184
|
+
"onUpdate:modelValue": x[3] || (x[3] = (N) => ke.value = N),
|
|
239
185
|
description: t(q)
|
|
240
186
|
}, null, 8, ["modelValue", "description"])
|
|
241
187
|
])
|
|
242
188
|
]),
|
|
243
189
|
navigation: C(() => [
|
|
244
|
-
|
|
190
|
+
ze(ee.$slots, "navigation", {}, void 0, !0)
|
|
245
191
|
]),
|
|
246
|
-
_:
|
|
247
|
-
},
|
|
192
|
+
_: 2
|
|
193
|
+
}, [
|
|
194
|
+
isNaN(t(Y)) ? void 0 : {
|
|
195
|
+
name: "reservation-summary",
|
|
196
|
+
fn: C(() => [
|
|
197
|
+
t(he) ? (u(), h("li", Lo, [
|
|
198
|
+
a("span", null, v(t(l)("general.location")), 1),
|
|
199
|
+
a("b", null, [
|
|
200
|
+
a("span", null, v(t(Re)(t(Y))), 1),
|
|
201
|
+
Ke(a("span", Mo, [
|
|
202
|
+
g(J, {
|
|
203
|
+
icon: "exclamation-triangle",
|
|
204
|
+
type: "fas"
|
|
205
|
+
})
|
|
206
|
+
], 512), [
|
|
207
|
+
[xe, t(j)]
|
|
208
|
+
])
|
|
209
|
+
])
|
|
210
|
+
])) : _("", !0),
|
|
211
|
+
a("li", null, [
|
|
212
|
+
a("span", null, v(t(l)("booking.reservation.arrival")), 1),
|
|
213
|
+
a("b", null, [
|
|
214
|
+
a("span", null, v(t(o) ? t(pe)(t(k)) : `${t(pe)(t(k))}, ${t(e) ? t(s) : t(r)}`), 1),
|
|
215
|
+
Ke(a("span", Ro, [
|
|
216
|
+
g(J, {
|
|
217
|
+
icon: "exclamation-triangle",
|
|
218
|
+
type: "fas"
|
|
219
|
+
})
|
|
220
|
+
], 512), [
|
|
221
|
+
[xe, t(I)]
|
|
222
|
+
])
|
|
223
|
+
])
|
|
224
|
+
]),
|
|
225
|
+
a("li", null, [
|
|
226
|
+
a("span", null, v(t(l)("booking.reservation.departure")), 1),
|
|
227
|
+
a("b", null, [
|
|
228
|
+
a("span", null, v(t(o) ? t(pe)(t(D)) : `${t(pe)(t(D))}, ${t(i) ? t(m) : t(d)}`), 1),
|
|
229
|
+
Ke(a("span", Uo, [
|
|
230
|
+
g(J, {
|
|
231
|
+
icon: "exclamation-triangle",
|
|
232
|
+
type: "fas"
|
|
233
|
+
})
|
|
234
|
+
], 512), [
|
|
235
|
+
[xe, t(I)]
|
|
236
|
+
])
|
|
237
|
+
])
|
|
238
|
+
]),
|
|
239
|
+
a("li", null, [
|
|
240
|
+
a("span", null, v(t(l)("booking.reservation.nights")), 1),
|
|
241
|
+
a("b", null, v(t(Xe)(t(k), t(D))) + " " + v(t(ut)(t(Xe)(t(k), t(D)) === 1 ? t(l)("booking.reservation.night") : t(l)("booking.reservation.nights"))), 1)
|
|
242
|
+
]),
|
|
243
|
+
t(B) ? (u(!0), h(M, { key: 1 }, F(t(B), (N) => (u(), h("li", {
|
|
244
|
+
key: N.id
|
|
245
|
+
}, [
|
|
246
|
+
a("span", null, v(`${t(l)("general.discountCode")} (${N.value})`), 1),
|
|
247
|
+
a("b", null, v(N.key), 1)
|
|
248
|
+
]))), 128)) : _("", !0)
|
|
249
|
+
]),
|
|
250
|
+
key: "0"
|
|
251
|
+
}
|
|
252
|
+
]), 1032, ["discount-code", "validate-discount-code", "total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
|
|
248
253
|
}
|
|
249
|
-
}),
|
|
254
|
+
}), Ye = /* @__PURE__ */ me(Go, [["__scopeId", "data-v-4bc6b7bc"]]), Wo = (n) => (Vt("data-v-69fe83d8"), n = n(), Tt(), n), Ko = { class: "konnectio-room-config-option" }, xo = { key: 0 }, zo = { class: "konnectio-selected-room-config" }, Jo = { class: "konnectio-selected-room-config-people" }, Yo = { key: 0 }, Zo = { class: "konnectio-selected-room-config-price" }, Qo = /* @__PURE__ */ Wo(() => /* @__PURE__ */ a("span", null, null, -1)), Xo = /* @__PURE__ */ X({
|
|
250
255
|
__name: "RoomConfigField",
|
|
251
256
|
props: {
|
|
252
257
|
modelValue: {},
|
|
@@ -257,46 +262,46 @@ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnecti
|
|
|
257
262
|
},
|
|
258
263
|
emits: ["update:modelValue"],
|
|
259
264
|
setup(n, { emit: l }) {
|
|
260
|
-
const { t: o } =
|
|
261
|
-
function m(
|
|
262
|
-
i("update:modelValue",
|
|
265
|
+
const { t: o } = ne(), { currency: e } = Q(Te()), i = l, s = n;
|
|
266
|
+
function m(c) {
|
|
267
|
+
i("update:modelValue", c);
|
|
263
268
|
}
|
|
264
269
|
const p = O({
|
|
265
270
|
get: () => s.modelValue,
|
|
266
|
-
set: (
|
|
271
|
+
set: (c) => m(c)
|
|
267
272
|
});
|
|
268
|
-
return (
|
|
273
|
+
return (c, r) => (u(), A(Le, {
|
|
269
274
|
modelValue: p.value,
|
|
270
275
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => p.value = d),
|
|
271
|
-
label:
|
|
276
|
+
label: c.label,
|
|
272
277
|
placeholder: "Select guest configuration",
|
|
273
278
|
labelKey: "label",
|
|
274
279
|
valueKey: "value",
|
|
275
280
|
"icon-placement": "label",
|
|
276
|
-
options:
|
|
277
|
-
readonly:
|
|
278
|
-
required:
|
|
281
|
+
options: c.options,
|
|
282
|
+
readonly: c.readonly,
|
|
283
|
+
required: c.required,
|
|
279
284
|
searchable: !1
|
|
280
285
|
}, {
|
|
281
286
|
option: C(({ data: d }) => [
|
|
282
287
|
a("span", Ko, [
|
|
283
288
|
a("div", null, [
|
|
284
|
-
g(
|
|
289
|
+
g(J, {
|
|
285
290
|
icon: "male",
|
|
286
291
|
type: "fas",
|
|
287
292
|
color: "font"
|
|
288
293
|
}),
|
|
289
|
-
a("span", null,
|
|
290
|
-
d.children > 0 ? (
|
|
291
|
-
g(
|
|
294
|
+
a("span", null, v(`${d.adults}`), 1),
|
|
295
|
+
d.children > 0 ? (u(), h("span", xo, [
|
|
296
|
+
g(J, {
|
|
292
297
|
icon: "child",
|
|
293
298
|
type: "fas",
|
|
294
299
|
color: "font"
|
|
295
300
|
}),
|
|
296
|
-
a("span", null,
|
|
301
|
+
a("span", null, v(`${d.children}`), 1)
|
|
297
302
|
])) : _("", !0)
|
|
298
303
|
]),
|
|
299
|
-
a("span", null,
|
|
304
|
+
a("span", null, v(`(${t(oe)(d.price, t(e))})`), 1)
|
|
300
305
|
])
|
|
301
306
|
]),
|
|
302
307
|
"selected-option": C(({ data: d }) => [
|
|
@@ -304,16 +309,16 @@ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnecti
|
|
|
304
309
|
a("div", Jo, [
|
|
305
310
|
a("div", null, [
|
|
306
311
|
_("", !0),
|
|
307
|
-
a("span", null,
|
|
312
|
+
a("span", null, v(`${d.adults} ${d.adults === 1 ? t(o)("general.adult") : t(o)("general.adults")}`), 1)
|
|
308
313
|
]),
|
|
309
|
-
d.children > 0 ? (
|
|
314
|
+
d.children > 0 ? (u(), h("div", Yo, [
|
|
310
315
|
_("", !0),
|
|
311
|
-
a("span", null,
|
|
316
|
+
a("span", null, v(`& ${d.children} ${d.children === 1 ? t(o)("general.child") : t(o)("general.children")}`), 1)
|
|
312
317
|
])) : _("", !0)
|
|
313
318
|
]),
|
|
314
319
|
a("div", Zo, [
|
|
315
320
|
Qo,
|
|
316
|
-
|
|
321
|
+
Qe(" " + v(`(${t(oe)(d.price, t(e))})`), 1)
|
|
317
322
|
])
|
|
318
323
|
])
|
|
319
324
|
]),
|
|
@@ -321,14 +326,14 @@ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnecti
|
|
|
321
326
|
}, 8, ["modelValue", "label", "options", "readonly", "required"]));
|
|
322
327
|
}
|
|
323
328
|
}), el = /* @__PURE__ */ me(Xo, [["__scopeId", "data-v-69fe83d8"]]), tl = { class: "konnectio-availability-listing-selection" }, ol = { key: 1 }, ll = { class: "konnectio-listing-config-body" }, nl = { class: "konnectio-listing-units-body" };
|
|
324
|
-
const al = /* @__PURE__ */
|
|
329
|
+
const al = /* @__PURE__ */ X({
|
|
325
330
|
__name: "Hotel",
|
|
326
331
|
props: {
|
|
327
332
|
room: {},
|
|
328
333
|
layout: {}
|
|
329
334
|
},
|
|
330
335
|
setup(n) {
|
|
331
|
-
const { t: l } =
|
|
336
|
+
const { t: l } = ne(), o = n, e = le([]);
|
|
332
337
|
function i(k) {
|
|
333
338
|
e.value[k].config.push({
|
|
334
339
|
id: NaN,
|
|
@@ -339,7 +344,7 @@ const al = /* @__PURE__ */ ee({
|
|
|
339
344
|
const s = O(() => o.room.rates.map((k) => ({
|
|
340
345
|
label: k.name,
|
|
341
346
|
value: k.id
|
|
342
|
-
}))), { hideAvailableRoomAmount: m, autoSelectRateId: p } =
|
|
347
|
+
}))), { hideAvailableRoomAmount: m, autoSelectRateId: p } = Q(Te()), { roomSelect: c } = Q(fe()), { addToCart: r, removeFromCart: d } = wt(), f = (k, D) => o.room.rates.find((I) => I.id === k)?.occupantRates.find((I) => I.index === D), V = O(() => o.room.rates.every((k) => k.isBreakfastIncluded === !0)), $ = (k, D) => f(k, D) ? f(k, D)?.rooms : null, w = (k) => o.room.rates.length > 0 ? o.room.rates.find((D) => D.id === k)?.occupantRates.map((D) => ({
|
|
343
348
|
value: D.index,
|
|
344
349
|
price: D.totalPrice,
|
|
345
350
|
adults: D.adultsCount,
|
|
@@ -370,28 +375,28 @@ const al = /* @__PURE__ */ ee({
|
|
|
370
375
|
}]
|
|
371
376
|
});
|
|
372
377
|
}
|
|
373
|
-
|
|
378
|
+
lt(() => {
|
|
374
379
|
E();
|
|
375
380
|
});
|
|
376
381
|
const B = O(() => JSON.parse(JSON.stringify(e.value)));
|
|
377
|
-
return
|
|
378
|
-
D.length > 0 && k.forEach((I,
|
|
382
|
+
return Ie(B, (k, D) => {
|
|
383
|
+
D.length > 0 && k.forEach((I, Y) => {
|
|
379
384
|
I.config.forEach((j, W) => {
|
|
380
|
-
const q = j.units,
|
|
381
|
-
q !==
|
|
385
|
+
const q = j.units, K = D[Y].config[W].units;
|
|
386
|
+
q !== K && (q > K ? (e.value[Y].config[W].addons.push({}), r({
|
|
382
387
|
id: o.room.id,
|
|
383
388
|
name: o.room.title,
|
|
384
|
-
value: o.room.rates[
|
|
385
|
-
})) : (e.value[
|
|
389
|
+
value: o.room.rates[Y].rackRate
|
|
390
|
+
})) : (e.value[Y].config[W].addons.pop(), d({
|
|
386
391
|
id: o.room.id,
|
|
387
392
|
name: o.room.title,
|
|
388
|
-
value: o.room.rates[
|
|
393
|
+
value: o.room.rates[Y].rackRate
|
|
389
394
|
})));
|
|
390
395
|
});
|
|
391
396
|
});
|
|
392
|
-
}, { deep: !0 }),
|
|
393
|
-
|
|
394
|
-
}, { deep: !0 }), (k, D) => (
|
|
397
|
+
}, { deep: !0 }), Ie(e, () => {
|
|
398
|
+
c.value[o.room.id] = e.value;
|
|
399
|
+
}, { deep: !0 }), (k, D) => (u(), A(Me, {
|
|
395
400
|
type: "hotel",
|
|
396
401
|
"listing-id": k.room.id,
|
|
397
402
|
gallery: k.room.images,
|
|
@@ -404,11 +409,11 @@ const al = /* @__PURE__ */ ee({
|
|
|
404
409
|
}, {
|
|
405
410
|
action: C(() => [
|
|
406
411
|
a("div", tl, [
|
|
407
|
-
(
|
|
412
|
+
(u(!0), h(M, null, F(e.value, (I, Y) => (u(), h("div", {
|
|
408
413
|
key: I.id,
|
|
409
414
|
class: "konnectio-hotel-room"
|
|
410
415
|
}, [
|
|
411
|
-
H.value ? (
|
|
416
|
+
H.value ? (u(), A(Le, {
|
|
412
417
|
key: 0,
|
|
413
418
|
modelValue: I.id,
|
|
414
419
|
"onUpdate:modelValue": (j) => I.id = j,
|
|
@@ -417,22 +422,22 @@ const al = /* @__PURE__ */ ee({
|
|
|
417
422
|
options: s.value,
|
|
418
423
|
searchable: !1
|
|
419
424
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : _("", !0),
|
|
420
|
-
I.id ? (
|
|
421
|
-
(
|
|
425
|
+
I.id ? (u(), h("div", ol, [
|
|
426
|
+
(u(!0), h(M, null, F(k.room.rates, ({
|
|
422
427
|
id: j,
|
|
423
428
|
maximumOccupants: W
|
|
424
|
-
}) => (
|
|
429
|
+
}) => (u(), h("div", {
|
|
425
430
|
key: j,
|
|
426
431
|
class: "konnectio-listing-action-selective-i"
|
|
427
432
|
}, [
|
|
428
|
-
I.id === j ? (
|
|
429
|
-
key:
|
|
433
|
+
I.id === j ? (u(!0), h(M, { key: 0 }, F(I.config, (q, K) => (u(), h("div", {
|
|
434
|
+
key: K,
|
|
430
435
|
class: "konnectio-listing-action-selective"
|
|
431
436
|
}, [
|
|
432
437
|
a("ul", ll, [
|
|
433
438
|
g(el, {
|
|
434
439
|
modelValue: q.id,
|
|
435
|
-
"onUpdate:modelValue": (
|
|
440
|
+
"onUpdate:modelValue": (ae) => q.id = ae,
|
|
436
441
|
icon: "male",
|
|
437
442
|
"icon-type": "fas",
|
|
438
443
|
label: t(l)("general.guests"),
|
|
@@ -442,9 +447,9 @@ const al = /* @__PURE__ */ ee({
|
|
|
442
447
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
|
|
443
448
|
]),
|
|
444
449
|
a("ul", nl, [
|
|
445
|
-
g(
|
|
450
|
+
g(et, {
|
|
446
451
|
modelValue: q.units,
|
|
447
|
-
"onUpdate:modelValue": (
|
|
452
|
+
"onUpdate:modelValue": (ae) => q.units = ae,
|
|
448
453
|
description: t(m) ? void 0 : `${t(l)("booking.availability.availableUnits")}: ${$(I.id, q.id)}`,
|
|
449
454
|
icon: "house",
|
|
450
455
|
"icon-type": "fas",
|
|
@@ -464,7 +469,7 @@ const al = /* @__PURE__ */ ee({
|
|
|
464
469
|
_: 1
|
|
465
470
|
}, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
|
|
466
471
|
}
|
|
467
|
-
}), il = /* @__PURE__ */ me(al, [["__scopeId", "data-v-bac82644"]]), sl = { class: "konnectio-template-side-panel" }, rl = { class: "konnectio-template-side-panel-listings" }, dl = /* @__PURE__ */
|
|
472
|
+
}), il = /* @__PURE__ */ me(al, [["__scopeId", "data-v-bac82644"]]), sl = { class: "konnectio-template-side-panel" }, rl = { class: "konnectio-template-side-panel-listings" }, dl = /* @__PURE__ */ X({
|
|
468
473
|
__name: "Template",
|
|
469
474
|
props: {
|
|
470
475
|
title: {},
|
|
@@ -474,30 +479,30 @@ const al = /* @__PURE__ */ ee({
|
|
|
474
479
|
callback: { type: Function }
|
|
475
480
|
},
|
|
476
481
|
setup(n) {
|
|
477
|
-
const { t: l } =
|
|
478
|
-
function
|
|
479
|
-
return
|
|
482
|
+
const { t: l } = ne(), { templateID: o, roomGroupID: e, selectionHasNoAddons: i } = Q(fe()), { currency: s } = Q(Te()), { clearRoomSelection: m } = fe(), p = n, c = le(!0), r = O(() => {
|
|
483
|
+
function f(V, $) {
|
|
484
|
+
return c.value === !0 ? V.extraPrice > $.extraPrice ? -1 : 1 : V.extraPrice > $.extraPrice ? 1 : -1;
|
|
480
485
|
}
|
|
481
|
-
return p.roomGroups?.slice().sort(
|
|
486
|
+
return p.roomGroups?.slice().sort(f);
|
|
482
487
|
});
|
|
483
|
-
function d(
|
|
484
|
-
o.value = p.templateId, e.value =
|
|
488
|
+
function d(f) {
|
|
489
|
+
o.value = p.templateId, e.value = f, m(), p.hideAddons === !0 || i.value ? p.callback(2) : p.callback(1);
|
|
485
490
|
}
|
|
486
|
-
return (
|
|
487
|
-
title:
|
|
491
|
+
return (f, V) => (u(), A(Bo, {
|
|
492
|
+
title: f.title,
|
|
488
493
|
subtitle: t(l)("booking.availability.selectATemplateRoom")
|
|
489
494
|
}, {
|
|
490
495
|
default: C(() => [
|
|
491
496
|
a("div", sl, [
|
|
492
497
|
a("div", rl, [
|
|
493
|
-
(
|
|
498
|
+
(u(!0), h(M, null, F(r.value, ({
|
|
494
499
|
id: $,
|
|
495
500
|
title: w,
|
|
496
501
|
description: H,
|
|
497
502
|
images: E,
|
|
498
503
|
facilities: B,
|
|
499
504
|
extraPrice: k
|
|
500
|
-
}) => (
|
|
505
|
+
}) => (u(), A(Me, {
|
|
501
506
|
key: $,
|
|
502
507
|
"listing-id": $,
|
|
503
508
|
name: w,
|
|
@@ -509,7 +514,7 @@ const al = /* @__PURE__ */ ee({
|
|
|
509
514
|
}, {
|
|
510
515
|
action: C(() => [
|
|
511
516
|
a("div", null, [
|
|
512
|
-
g(
|
|
517
|
+
g(ue, {
|
|
513
518
|
onClickEvent: (D) => d($),
|
|
514
519
|
label: `${t(l)("booking.availability.selectThisRoom")} (${t(oe)(k, t(s))})`,
|
|
515
520
|
"full-width": ""
|
|
@@ -524,7 +529,7 @@ const al = /* @__PURE__ */ ee({
|
|
|
524
529
|
_: 1
|
|
525
530
|
}, 8, ["title", "subtitle"]));
|
|
526
531
|
}
|
|
527
|
-
}), At = /* @__PURE__ */ me(dl, [["__scopeId", "data-v-7424de30"]]),
|
|
532
|
+
}), At = /* @__PURE__ */ me(dl, [["__scopeId", "data-v-7424de30"]]), cl = { class: "konnectio-template-select-package" }, ul = /* @__PURE__ */ X({
|
|
528
533
|
__name: "Template",
|
|
529
534
|
props: {
|
|
530
535
|
id: {},
|
|
@@ -537,8 +542,8 @@ const al = /* @__PURE__ */ ee({
|
|
|
537
542
|
callback: { type: Function }
|
|
538
543
|
},
|
|
539
544
|
setup(n) {
|
|
540
|
-
const { t: l } =
|
|
541
|
-
(
|
|
545
|
+
const { t: l } = ne(), o = n, e = O(() => o.roomGroups.reduce(
|
|
546
|
+
(c, r) => c < r.extraPrice ? c : r.extraPrice,
|
|
542
547
|
1 / 0
|
|
543
548
|
)), i = O(() => {
|
|
544
549
|
if (o.image)
|
|
@@ -552,14 +557,14 @@ const al = /* @__PURE__ */ ee({
|
|
|
552
557
|
function m() {
|
|
553
558
|
s.value = !0;
|
|
554
559
|
}
|
|
555
|
-
function p(
|
|
556
|
-
o.callback(
|
|
560
|
+
function p(c) {
|
|
561
|
+
o.callback(c), s.value = !1;
|
|
557
562
|
}
|
|
558
|
-
return (
|
|
563
|
+
return (c, r) => (u(), A(Me, {
|
|
559
564
|
type: "template",
|
|
560
|
-
"listing-id":
|
|
561
|
-
name:
|
|
562
|
-
description:
|
|
565
|
+
"listing-id": c.id,
|
|
566
|
+
name: c.name,
|
|
567
|
+
description: c.description,
|
|
563
568
|
gallery: i.value,
|
|
564
569
|
layout: t(Ct).Template,
|
|
565
570
|
"includes-breakfast": !1,
|
|
@@ -567,8 +572,8 @@ const al = /* @__PURE__ */ ee({
|
|
|
567
572
|
"prices-from": e.value
|
|
568
573
|
}, {
|
|
569
574
|
action: C(() => [
|
|
570
|
-
a("div",
|
|
571
|
-
g(
|
|
575
|
+
a("div", cl, [
|
|
576
|
+
g(ue, {
|
|
572
577
|
onClickEvent: m,
|
|
573
578
|
label: t(l)("booking.availability.selectPackage"),
|
|
574
579
|
"full-width": ""
|
|
@@ -579,17 +584,17 @@ const al = /* @__PURE__ */ ee({
|
|
|
579
584
|
g(At, {
|
|
580
585
|
modelValue: s.value,
|
|
581
586
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => s.value = d),
|
|
582
|
-
title:
|
|
583
|
-
"template-id":
|
|
584
|
-
"room-groups":
|
|
585
|
-
"hide-addons":
|
|
587
|
+
title: c.name,
|
|
588
|
+
"template-id": c.id,
|
|
589
|
+
"room-groups": c.roomGroups,
|
|
590
|
+
"hide-addons": c.hideAddons,
|
|
586
591
|
callback: p
|
|
587
592
|
}, null, 8, ["modelValue", "title", "template-id", "room-groups", "hide-addons"])
|
|
588
593
|
]),
|
|
589
594
|
_: 1
|
|
590
595
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
|
|
591
596
|
}
|
|
592
|
-
}), pl = { class: "konnectio-special-offer-availability" }, ml = { class: "konnectio-special-offer-availability-button" }, fl = /* @__PURE__ */
|
|
597
|
+
}), pl = { class: "konnectio-special-offer-availability" }, ml = { class: "konnectio-special-offer-availability-button" }, fl = /* @__PURE__ */ X({
|
|
593
598
|
__name: "SpecialOffer",
|
|
594
599
|
props: {
|
|
595
600
|
id: {},
|
|
@@ -603,21 +608,21 @@ const al = /* @__PURE__ */ ee({
|
|
|
603
608
|
callback: { type: Function }
|
|
604
609
|
},
|
|
605
610
|
setup(n) {
|
|
606
|
-
const { t: l } =
|
|
611
|
+
const { t: l } = ne(), { updateDates: o } = Ve(), e = n, i = le([]), s = O(() => Xe(e.fromDate, e.toDate) === 1), m = O(() => [{
|
|
607
612
|
large: e.image.url,
|
|
608
613
|
medium: e.image.url,
|
|
609
614
|
thumb: e.image.url,
|
|
610
615
|
url: e.image.url
|
|
611
616
|
}]), p = le(!1);
|
|
612
|
-
function
|
|
617
|
+
function c(d) {
|
|
613
618
|
e.callback(d), p.value = !1;
|
|
614
619
|
}
|
|
615
620
|
function r() {
|
|
616
621
|
o(i.value[0], i.value[1]);
|
|
617
622
|
}
|
|
618
|
-
return
|
|
623
|
+
return lt(() => {
|
|
619
624
|
s.value && (i.value = [new Date(e.fromDate), new Date(e.toDate)]);
|
|
620
|
-
}), (d,
|
|
625
|
+
}), (d, f) => (u(), A(Me, {
|
|
621
626
|
type: "template",
|
|
622
627
|
"listing-id": d.id,
|
|
623
628
|
name: d.name,
|
|
@@ -633,7 +638,7 @@ const al = /* @__PURE__ */ ee({
|
|
|
633
638
|
a("div", pl, [
|
|
634
639
|
g($t, {
|
|
635
640
|
modelValue: i.value,
|
|
636
|
-
"onUpdate:modelValue":
|
|
641
|
+
"onUpdate:modelValue": f[0] || (f[0] = (V) => i.value = V),
|
|
637
642
|
label: t(l)("availability.checkInOut"),
|
|
638
643
|
placeholder: t(l)("booking.availability.selectDates"),
|
|
639
644
|
"icon-type": "fas",
|
|
@@ -646,9 +651,9 @@ const al = /* @__PURE__ */ ee({
|
|
|
646
651
|
range: ""
|
|
647
652
|
}, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
|
|
648
653
|
a("div", ml, [
|
|
649
|
-
g(
|
|
654
|
+
g(ue, {
|
|
650
655
|
label: t(l)("availability.buttonLabel"),
|
|
651
|
-
onClick:
|
|
656
|
+
onClick: He(r, ["prevent"])
|
|
652
657
|
}, null, 8, ["label"])
|
|
653
658
|
])
|
|
654
659
|
])
|
|
@@ -656,17 +661,17 @@ const al = /* @__PURE__ */ ee({
|
|
|
656
661
|
default: C(() => [
|
|
657
662
|
g(At, {
|
|
658
663
|
modelValue: p.value,
|
|
659
|
-
"onUpdate:modelValue":
|
|
664
|
+
"onUpdate:modelValue": f[1] || (f[1] = (V) => p.value = V),
|
|
660
665
|
title: d.name,
|
|
661
666
|
"template-id": d.id,
|
|
662
667
|
roomGroups: d.roomGroups,
|
|
663
|
-
callback:
|
|
668
|
+
callback: c
|
|
664
669
|
}, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
|
|
665
670
|
]),
|
|
666
671
|
_: 1
|
|
667
672
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
|
|
668
673
|
}
|
|
669
|
-
}), ht = /* @__PURE__ */
|
|
674
|
+
}), ht = /* @__PURE__ */ X({
|
|
670
675
|
__name: "TimeField",
|
|
671
676
|
props: {
|
|
672
677
|
modelValue: {},
|
|
@@ -696,11 +701,11 @@ const al = /* @__PURE__ */ ee({
|
|
|
696
701
|
o("update:modelValue", m);
|
|
697
702
|
}
|
|
698
703
|
const s = le(e.modelValue);
|
|
699
|
-
return
|
|
704
|
+
return Ie(s, (m) => {
|
|
700
705
|
i(m);
|
|
701
|
-
}), (m, p) => (
|
|
706
|
+
}), (m, p) => (u(), A($t, {
|
|
702
707
|
modelValue: s.value,
|
|
703
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
708
|
+
"onUpdate:modelValue": p[0] || (p[0] = (c) => s.value = c),
|
|
704
709
|
type: "time",
|
|
705
710
|
label: m.label,
|
|
706
711
|
id: m.id,
|
|
@@ -713,7 +718,7 @@ const al = /* @__PURE__ */ ee({
|
|
|
713
718
|
readonly: m.readonly
|
|
714
719
|
}, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
|
|
715
720
|
}
|
|
716
|
-
}), hl = { style: { display: "flex", "align-items": "baseline" } }, vl = /* @__PURE__ */
|
|
721
|
+
}), hl = { style: { display: "flex", "align-items": "baseline" } }, vl = /* @__PURE__ */ X({
|
|
717
722
|
__name: "CountryField",
|
|
718
723
|
props: {
|
|
719
724
|
modelValue: {},
|
|
@@ -725,7 +730,7 @@ const al = /* @__PURE__ */ ee({
|
|
|
725
730
|
},
|
|
726
731
|
emits: ["update:modelValue"],
|
|
727
732
|
setup(n, { emit: l }) {
|
|
728
|
-
const { t: o } =
|
|
733
|
+
const { t: o } = ne(), e = l, i = n;
|
|
729
734
|
function s(p) {
|
|
730
735
|
e("update:modelValue", p);
|
|
731
736
|
}
|
|
@@ -733,9 +738,9 @@ const al = /* @__PURE__ */ ee({
|
|
|
733
738
|
get: () => i.modelValue,
|
|
734
739
|
set: (p) => s(p)
|
|
735
740
|
});
|
|
736
|
-
return (p,
|
|
741
|
+
return (p, c) => (u(), A(Le, {
|
|
737
742
|
modelValue: m.value,
|
|
738
|
-
"onUpdate:modelValue":
|
|
743
|
+
"onUpdate:modelValue": c[0] || (c[0] = (r) => m.value = r),
|
|
739
744
|
label: p.label,
|
|
740
745
|
placeholder: t(o)("booking.reservation.countryPlaceholder"),
|
|
741
746
|
labelKey: "name",
|
|
@@ -745,22 +750,22 @@ const al = /* @__PURE__ */ ee({
|
|
|
745
750
|
}, {
|
|
746
751
|
option: C(({ data: r }) => [
|
|
747
752
|
a("i", {
|
|
748
|
-
class:
|
|
753
|
+
class: Be(["konnectio-flag-icon", r.iso])
|
|
749
754
|
}, null, 2),
|
|
750
|
-
a("span", null,
|
|
755
|
+
a("span", null, v(r.name), 1)
|
|
751
756
|
]),
|
|
752
757
|
"selected-option": C(({ data: r }) => [
|
|
753
758
|
a("div", hl, [
|
|
754
759
|
a("i", {
|
|
755
|
-
class:
|
|
760
|
+
class: Be(["konnectio-flag-icon", r.iso])
|
|
756
761
|
}, null, 2),
|
|
757
|
-
a("span", null,
|
|
762
|
+
a("span", null, v(r.name), 1)
|
|
758
763
|
])
|
|
759
764
|
]),
|
|
760
765
|
_: 1
|
|
761
766
|
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
762
767
|
}
|
|
763
|
-
}), yl = /* @__PURE__ */ me(vl, [["__scopeId", "data-v-1462612d"]]), gl = /* @__PURE__ */
|
|
768
|
+
}), yl = /* @__PURE__ */ me(vl, [["__scopeId", "data-v-1462612d"]]), gl = /* @__PURE__ */ X({
|
|
764
769
|
__name: "NameField",
|
|
765
770
|
props: {
|
|
766
771
|
modelValue: {},
|
|
@@ -786,13 +791,13 @@ const al = /* @__PURE__ */ ee({
|
|
|
786
791
|
function p() {
|
|
787
792
|
e("update:modelValue", s.value);
|
|
788
793
|
}
|
|
789
|
-
|
|
794
|
+
Ie(m, (r) => {
|
|
790
795
|
e("update:title", r);
|
|
791
796
|
});
|
|
792
|
-
const { t:
|
|
793
|
-
return
|
|
797
|
+
const { t: c } = ne();
|
|
798
|
+
return lt(() => {
|
|
794
799
|
o.modelValue && (s.value = o.modelValue), o.title && (m.value = o.title);
|
|
795
|
-
}), (r, d) => (
|
|
800
|
+
}), (r, d) => (u(), A(ho, {
|
|
796
801
|
label: r.label,
|
|
797
802
|
id: t(i),
|
|
798
803
|
required: r.required,
|
|
@@ -802,38 +807,38 @@ const al = /* @__PURE__ */ ee({
|
|
|
802
807
|
}, {
|
|
803
808
|
default: C(() => [
|
|
804
809
|
a("div", {
|
|
805
|
-
class:
|
|
810
|
+
class: Be([
|
|
806
811
|
"fresh-booking-name-input",
|
|
807
812
|
{ "no-title": r.excludeTitle }
|
|
808
813
|
])
|
|
809
814
|
}, [
|
|
810
|
-
r.excludeTitle ? _("", !0) : (
|
|
815
|
+
r.excludeTitle ? _("", !0) : (u(), A(Le, {
|
|
811
816
|
key: 0,
|
|
812
817
|
modelValue: m.value,
|
|
813
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
818
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => m.value = f),
|
|
814
819
|
id: t(pt)(),
|
|
815
820
|
icon: r.icon,
|
|
816
821
|
"icon-color": r.iconColor,
|
|
817
822
|
"icon-type": r.iconType,
|
|
818
823
|
options: [
|
|
819
824
|
{
|
|
820
|
-
label: t(
|
|
825
|
+
label: t(c)("booking.reservation.noNameTitle"),
|
|
821
826
|
value: 1
|
|
822
827
|
},
|
|
823
828
|
{
|
|
824
|
-
label: t(
|
|
829
|
+
label: t(c)("booking.reservation.nameTitleMr"),
|
|
825
830
|
value: 2
|
|
826
831
|
},
|
|
827
832
|
{
|
|
828
|
-
label: t(
|
|
833
|
+
label: t(c)("booking.reservation.nameTitleMs"),
|
|
829
834
|
value: 3
|
|
830
835
|
},
|
|
831
836
|
{
|
|
832
|
-
label: t(
|
|
837
|
+
label: t(c)("booking.reservation.nameTitleMrs"),
|
|
833
838
|
value: 4
|
|
834
839
|
},
|
|
835
840
|
{
|
|
836
|
-
label: t(
|
|
841
|
+
label: t(c)("booking.reservation.nameTitleDr"),
|
|
837
842
|
value: 5
|
|
838
843
|
}
|
|
839
844
|
],
|
|
@@ -844,7 +849,7 @@ const al = /* @__PURE__ */ ee({
|
|
|
844
849
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
|
|
845
850
|
g(de, {
|
|
846
851
|
modelValue: s.value,
|
|
847
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
852
|
+
"onUpdate:modelValue": d[1] || (d[1] = (f) => s.value = f),
|
|
848
853
|
type: "text",
|
|
849
854
|
name: "name",
|
|
850
855
|
autocomplete: "name",
|
|
@@ -856,7 +861,7 @@ const al = /* @__PURE__ */ ee({
|
|
|
856
861
|
required: r.required,
|
|
857
862
|
readonly: r.readonly,
|
|
858
863
|
limit: r.limit,
|
|
859
|
-
onInput: d[2] || (d[2] = (
|
|
864
|
+
onInput: d[2] || (d[2] = (f) => p()),
|
|
860
865
|
"input-style": r.inputStyle
|
|
861
866
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
|
|
862
867
|
], 2)
|
|
@@ -864,10 +869,10 @@ const al = /* @__PURE__ */ ee({
|
|
|
864
869
|
_: 1
|
|
865
870
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
866
871
|
}
|
|
867
|
-
}), bl = /* @__PURE__ */ me(gl, [["__scopeId", "data-v-78b0b319"]]), kl = { class: "hotel-skeleton" }, _l = { class: "hotel-skeleton-content" }, Vl = { class: "hotel-skeleton-sidebar" }, Tl = /* @__PURE__ */
|
|
872
|
+
}), bl = /* @__PURE__ */ me(gl, [["__scopeId", "data-v-78b0b319"]]), kl = { class: "hotel-skeleton" }, _l = { class: "hotel-skeleton-content" }, Vl = { class: "hotel-skeleton-sidebar" }, Tl = /* @__PURE__ */ X({
|
|
868
873
|
__name: "HotelSkeleton",
|
|
869
874
|
setup(n) {
|
|
870
|
-
return (l, o) => (
|
|
875
|
+
return (l, o) => (u(), h("div", kl, [
|
|
871
876
|
a("div", _l, [
|
|
872
877
|
g(To, { hotel: "" }),
|
|
873
878
|
g($o)
|
|
@@ -877,7 +882,7 @@ const al = /* @__PURE__ */ ee({
|
|
|
877
882
|
])
|
|
878
883
|
]));
|
|
879
884
|
}
|
|
880
|
-
}), wl = /* @__PURE__ */ me(Tl, [["__scopeId", "data-v-1bb21da4"]]), Cl = (n) => (Vt("data-v-
|
|
885
|
+
}), wl = /* @__PURE__ */ me(Tl, [["__scopeId", "data-v-1bb21da4"]]), Cl = (n) => (Vt("data-v-ab11f496"), n = n(), Tt(), n), $l = { id: "booking-availability-container" }, Al = { id: "booking-availability-controls" };
|
|
881
886
|
const Pl = { key: 1 }, Dl = { key: 0 }, Sl = {
|
|
882
887
|
key: 0,
|
|
883
888
|
id: "booking-availability-packages"
|
|
@@ -915,12 +920,12 @@ const Jl = { class: "konnectio-event-addons-price" }, Yl = { key: 1 }, Zl = { cl
|
|
|
915
920
|
key: 1,
|
|
916
921
|
id: "konnectio-hotel-addons"
|
|
917
922
|
}, en = { class: "konnectio-table with-lines" };
|
|
918
|
-
const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-event-addons-price" }, null, -1)), on = { class: "konnectio-table-addons-information" }, ln = { class: "konnectio-table-addons-option" }, nn = ["onClick"], an = { class: "konnectio-panel" }, sn = { key: 0 }, rn = { key: 1 }, dn = { class: "konnectio-split-inputs" },
|
|
923
|
+
const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-event-addons-price" }, null, -1)), on = { class: "konnectio-table-addons-information" }, ln = { class: "konnectio-table-addons-option" }, nn = ["onClick"], an = { class: "konnectio-panel" }, sn = { key: 0 }, rn = { key: 1 }, dn = { class: "konnectio-split-inputs" }, cn = ["onClick"], un = /* @__PURE__ */ X({
|
|
919
924
|
name: "HotelLayout",
|
|
920
925
|
__name: "Hotel",
|
|
921
926
|
props: {
|
|
922
927
|
accessToken: {},
|
|
923
|
-
headerLayout: { default:
|
|
928
|
+
headerLayout: { default: vo.Minimal },
|
|
924
929
|
onlyShow: { default: "everything" },
|
|
925
930
|
hideAddons: { default: "no" },
|
|
926
931
|
disableDefaultLocation: { default: "no" },
|
|
@@ -928,71 +933,70 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
928
933
|
styling: {}
|
|
929
934
|
},
|
|
930
935
|
setup(n) {
|
|
931
|
-
const l = io(() => import("./_-
|
|
936
|
+
const l = io(() => import("./_-yypsiI8V.js")), o = n, { t: e } = ne(), {
|
|
932
937
|
currentLocation: i,
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
hasPaymentGateway: jt,
|
|
938
|
+
templateID: s,
|
|
939
|
+
templateAddons: m,
|
|
940
|
+
countries: p,
|
|
941
|
+
areListingsLoading: c,
|
|
942
|
+
isPaymentLoading: r,
|
|
943
|
+
isReservationFormFilled: d,
|
|
944
|
+
travelingFor: f,
|
|
945
|
+
arrivalTime: V,
|
|
946
|
+
departureTime: $,
|
|
947
|
+
name: w,
|
|
948
|
+
nameTitle: H,
|
|
949
|
+
email: E,
|
|
950
|
+
phone: B,
|
|
951
|
+
firmName: k,
|
|
952
|
+
postal: D,
|
|
953
|
+
city: I,
|
|
954
|
+
address: Y,
|
|
955
|
+
country: j,
|
|
956
|
+
remark: W,
|
|
957
|
+
allergies: q,
|
|
958
|
+
roomSelect: K,
|
|
959
|
+
roomDisplay: ae,
|
|
960
|
+
hasValidRoomSelection: ge,
|
|
961
|
+
availabilityData: R,
|
|
962
|
+
selectionHasNoAddons: he,
|
|
963
|
+
isAvailabilityDataAvailable: we,
|
|
964
|
+
getSelectedPackageRoom: be,
|
|
965
|
+
selectedPackage: Re,
|
|
966
|
+
isSearchOutdated: ke,
|
|
967
|
+
currentChildren: Ce,
|
|
968
|
+
isTemplateReservation: ee
|
|
969
|
+
} = Q(fe()), {
|
|
970
|
+
adults: x,
|
|
971
|
+
children: N,
|
|
972
|
+
location: ve,
|
|
973
|
+
arrivalDate: Ue,
|
|
974
|
+
departureDate: $e
|
|
975
|
+
} = Q(Ve()), { isValidHotelId: Fe, updateDates: ie } = Ve(), {
|
|
976
|
+
currency: _e,
|
|
977
|
+
arrivalEarliest: at,
|
|
978
|
+
arrivalLatest: It,
|
|
979
|
+
departureEarliest: Bt,
|
|
980
|
+
departureLatest: Et,
|
|
981
|
+
enableTracking: Nt,
|
|
982
|
+
hideArrivalDepartureInputs: Lt,
|
|
983
|
+
disableArrivalUserSelection: Oe,
|
|
984
|
+
disableNamePrefix: Mt,
|
|
985
|
+
disableDepartureUserSelection: je,
|
|
986
|
+
disableTravelingFor: Rt,
|
|
987
|
+
disableTravelingForBleasure: Ut,
|
|
988
|
+
disableCompanyField: Ft,
|
|
989
|
+
hasPaymentGateway: Ot,
|
|
986
990
|
maxAdultAmount: it,
|
|
987
991
|
maxChildAmount: st
|
|
988
|
-
} =
|
|
989
|
-
resetTemplate:
|
|
990
|
-
resetDiscountVoucher:
|
|
991
|
-
createReservation:
|
|
992
|
-
fetchMetadata:
|
|
992
|
+
} = Q(Te()), { beginCheckout: jt } = wt(), { display: qe } = yo(), {
|
|
993
|
+
resetTemplate: qt,
|
|
994
|
+
resetDiscountVoucher: Gt,
|
|
995
|
+
createReservation: Wt,
|
|
996
|
+
fetchMetadata: Kt,
|
|
993
997
|
fetchAvailabilityData: rt,
|
|
994
998
|
filterAddons: dt
|
|
995
|
-
} = fe(),
|
|
999
|
+
} = fe(), xt = le(!0), zt = [
|
|
996
1000
|
{
|
|
997
1001
|
id: "availability",
|
|
998
1002
|
label: e("booking.availability.title"),
|
|
@@ -1002,7 +1006,7 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1002
1006
|
id: "addons",
|
|
1003
1007
|
label: e("booking.reservation.title"),
|
|
1004
1008
|
icon: "concierge-bell",
|
|
1005
|
-
hidden:
|
|
1009
|
+
hidden: he.value
|
|
1006
1010
|
},
|
|
1007
1011
|
{
|
|
1008
1012
|
id: "reservation",
|
|
@@ -1018,7 +1022,7 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1018
1022
|
label: e("booking.confirmation.title"),
|
|
1019
1023
|
icon: "calendar-check"
|
|
1020
1024
|
}
|
|
1021
|
-
],
|
|
1025
|
+
], Jt = O(() => {
|
|
1022
1026
|
const b = [
|
|
1023
1027
|
{
|
|
1024
1028
|
label: e("booking.reservation.business"),
|
|
@@ -1029,72 +1033,72 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1029
1033
|
value: "Pleasure"
|
|
1030
1034
|
}
|
|
1031
1035
|
];
|
|
1032
|
-
return
|
|
1036
|
+
return Ut.value || b.push({
|
|
1033
1037
|
label: e("booking.reservation.bleasure"),
|
|
1034
1038
|
value: "Bleasure"
|
|
1035
1039
|
}), b;
|
|
1036
|
-
}),
|
|
1037
|
-
const b =
|
|
1038
|
-
function T(
|
|
1039
|
-
return
|
|
1040
|
+
}), Yt = O(() => {
|
|
1041
|
+
const b = R.value.roomGroups.slice();
|
|
1042
|
+
function T(z, P) {
|
|
1043
|
+
return xt.value === !0 ? z.pricesFrom > P.pricesFrom ? -1 : 1 : z.pricesFrom > P.pricesFrom ? 1 : -1;
|
|
1040
1044
|
}
|
|
1041
1045
|
return b.sort(T);
|
|
1042
|
-
}),
|
|
1043
|
-
parseInt(
|
|
1044
|
-
parseInt(
|
|
1045
|
-
]]),
|
|
1046
|
-
parseInt(
|
|
1047
|
-
parseInt(
|
|
1048
|
-
]]),
|
|
1049
|
-
function
|
|
1050
|
-
|
|
1046
|
+
}), Zt = O(() => [[
|
|
1047
|
+
parseInt(at.value.split(":")[0]),
|
|
1048
|
+
parseInt(It.value.split(":")[0])
|
|
1049
|
+
]]), Qt = O(() => [[
|
|
1050
|
+
parseInt(Bt.value.split(":")[0]),
|
|
1051
|
+
parseInt(Et.value.split(":")[0])
|
|
1052
|
+
]]), Ge = O(() => o.hideAddons === "yes" || ee.value && o.hideAddons === "packages" || !ee.value && o.hideAddons === "rooms");
|
|
1053
|
+
function ct(b) {
|
|
1054
|
+
Ge.value || he.value ? b(2) : b(), Gt();
|
|
1051
1055
|
}
|
|
1052
|
-
async function
|
|
1053
|
-
await
|
|
1056
|
+
async function Xt(b) {
|
|
1057
|
+
await Wt(b);
|
|
1054
1058
|
}
|
|
1055
|
-
function
|
|
1056
|
-
|
|
1059
|
+
function eo(b) {
|
|
1060
|
+
Nt.value && jt(), Ge.value || he.value ? b(2) : b();
|
|
1057
1061
|
}
|
|
1058
|
-
function
|
|
1059
|
-
const b =
|
|
1062
|
+
function to() {
|
|
1063
|
+
const b = bo("hash-params", {
|
|
1060
1064
|
removeNullishValues: !0
|
|
1061
|
-
}), T = parseInt(b.a),
|
|
1065
|
+
}), T = parseInt(b.a), z = parseInt(b.c), P = parseInt(b.hid), y = parseInt(b.n), G = b.ci, L = b.co, S = b.id;
|
|
1062
1066
|
let te = !1;
|
|
1063
|
-
if (isNaN(T) || (T > it.value ?
|
|
1067
|
+
if (isNaN(T) || (T > it.value ? x.value = it.value : x.value = T, b.a = void 0), isNaN(z) || (z > st.value ? N.value = st.value : N.value = z, b.c = void 0), isNaN(y) || y > 0 && (b.n = void 0), isNaN(P) || (Fe(P) ? (ve.value = P, te = !0) : qe({
|
|
1064
1068
|
message: e("alert.error.hotelIdNotFound"),
|
|
1065
1069
|
type: "error"
|
|
1066
1070
|
})), G && L)
|
|
1067
1071
|
if (ft(G) && ft(L)) {
|
|
1068
|
-
const
|
|
1069
|
-
|
|
1072
|
+
const ye = new Date(G), se = new Date(L);
|
|
1073
|
+
ye <= se ? (Ue.value = ye, $e.value = se) : (b.ci = void 0, b.co = void 0, qe({
|
|
1070
1074
|
message: e("alert.error.invalidDateRange"),
|
|
1071
1075
|
type: "error"
|
|
1072
1076
|
}));
|
|
1073
1077
|
} else
|
|
1074
|
-
|
|
1078
|
+
qe({
|
|
1075
1079
|
message: e("alert.error.wrongDateFormat"),
|
|
1076
1080
|
type: "error"
|
|
1077
1081
|
});
|
|
1078
|
-
let
|
|
1079
|
-
S && (
|
|
1082
|
+
let Z = null;
|
|
1083
|
+
S && (Z = S), o.disableDefaultLocation === "yes" && te === !1 ? (ve.value = void 0, i.value = void 0) : rt(Z);
|
|
1080
1084
|
}
|
|
1081
|
-
return (b, T) => (
|
|
1085
|
+
return (b, T) => (u(), A(go, { styling: b.styling }, {
|
|
1082
1086
|
default: C(() => [
|
|
1083
|
-
(
|
|
1087
|
+
(u(), A(ao, { onResolve: to }, {
|
|
1084
1088
|
default: C(() => [
|
|
1085
1089
|
g(t(l), {
|
|
1086
1090
|
id: "konnectio-hotel-module",
|
|
1087
1091
|
"access-token": b.accessToken,
|
|
1088
|
-
callback: t(
|
|
1092
|
+
callback: t(Kt)
|
|
1089
1093
|
}, {
|
|
1090
1094
|
default: C(() => [
|
|
1091
1095
|
g(Po, {
|
|
1092
1096
|
layout: b.headerLayout,
|
|
1093
|
-
steps:
|
|
1094
|
-
onReset: t(
|
|
1097
|
+
steps: zt,
|
|
1098
|
+
onReset: t(qt)
|
|
1095
1099
|
}, {
|
|
1096
|
-
availability: C(({ next:
|
|
1097
|
-
g(
|
|
1100
|
+
availability: C(({ next: z }) => [
|
|
1101
|
+
g(Ye, null, {
|
|
1098
1102
|
form: C(() => [
|
|
1099
1103
|
a("div", $l, [
|
|
1100
1104
|
a("div", Al, [
|
|
@@ -1105,26 +1109,26 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1105
1109
|
}, null, 8, ["selected-location", "disable-default-location"])
|
|
1106
1110
|
]),
|
|
1107
1111
|
_("", !0),
|
|
1108
|
-
!t(
|
|
1109
|
-
t(
|
|
1110
|
-
t(
|
|
1111
|
-
b.onlyShow !== "packages" ? (
|
|
1112
|
-
g(
|
|
1112
|
+
!t(c) && t(we) ? (u(), h("div", Pl, [
|
|
1113
|
+
t(R).roomGroups.length > 0 || t(R).templates.length > 0 || t(R).specialTemplates.length > 0 ? (u(), h("div", Dl, [
|
|
1114
|
+
t(R).templates.length > 0 && b.onlyShow !== "rooms" ? (u(), h("div", Sl, [
|
|
1115
|
+
b.onlyShow !== "packages" ? (u(), h("h2", Hl, [
|
|
1116
|
+
g(J, {
|
|
1113
1117
|
icon: "box",
|
|
1114
1118
|
type: "fal",
|
|
1115
1119
|
color: "header"
|
|
1116
1120
|
}),
|
|
1117
|
-
a("span", null,
|
|
1121
|
+
a("span", null, v(t(e)("booking.availability.packagesTitle")), 1)
|
|
1118
1122
|
])) : _("", !0),
|
|
1119
1123
|
a("ul", Il, [
|
|
1120
|
-
(
|
|
1124
|
+
(u(!0), h(M, null, F(t(R).templates, ({
|
|
1121
1125
|
id: P,
|
|
1122
1126
|
name: y,
|
|
1123
1127
|
templateRoomGroups: G,
|
|
1124
1128
|
image: L,
|
|
1125
1129
|
description: S,
|
|
1126
1130
|
weekendFee: te
|
|
1127
|
-
}) => (
|
|
1131
|
+
}) => (u(), A(ul, {
|
|
1128
1132
|
key: P,
|
|
1129
1133
|
id: P,
|
|
1130
1134
|
description: S,
|
|
@@ -1132,199 +1136,199 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1132
1136
|
image: L,
|
|
1133
1137
|
weekendFee: te,
|
|
1134
1138
|
"room-groups": G,
|
|
1135
|
-
callback:
|
|
1139
|
+
callback: z,
|
|
1136
1140
|
"hide-addons": b.hideAddons === "yes" || b.hideAddons === "packages"
|
|
1137
1141
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
1138
1142
|
])
|
|
1139
1143
|
])) : _("", !0),
|
|
1140
|
-
t(
|
|
1141
|
-
t(
|
|
1142
|
-
g(
|
|
1144
|
+
t(R).roomGroups.length > 0 && b.onlyShow !== "packages" ? (u(), h("div", Bl, [
|
|
1145
|
+
t(R).templates.length > 0 && b.onlyShow !== "rooms" ? (u(), h("h2", El, [
|
|
1146
|
+
g(J, {
|
|
1143
1147
|
icon: "house",
|
|
1144
1148
|
type: "fal",
|
|
1145
1149
|
color: "header"
|
|
1146
1150
|
}),
|
|
1147
|
-
a("span", null,
|
|
1151
|
+
a("span", null, v(t(e)("booking.availability.roomsTitle")), 1)
|
|
1148
1152
|
])) : _("", !0),
|
|
1149
1153
|
a("ul", Nl, [
|
|
1150
|
-
(
|
|
1154
|
+
(u(!0), h(M, null, F(Yt.value, (P, y) => (u(), A(il, {
|
|
1151
1155
|
room: P,
|
|
1152
1156
|
key: y
|
|
1153
1157
|
}, null, 8, ["room"]))), 128))
|
|
1154
1158
|
])
|
|
1155
1159
|
])) : _("", !0),
|
|
1156
|
-
t(
|
|
1160
|
+
t(R).specialTemplates.length > 0 && b.onlyShow !== "rooms" ? (u(), h("div", Ll, [
|
|
1157
1161
|
a("h2", Ml, [
|
|
1158
|
-
g(
|
|
1162
|
+
g(J, {
|
|
1159
1163
|
icon: "sparkles",
|
|
1160
1164
|
type: "fal",
|
|
1161
1165
|
color: "header"
|
|
1162
1166
|
}),
|
|
1163
|
-
a("span", null,
|
|
1167
|
+
a("span", null, v(t(e)("hotel.specialOffers")), 1)
|
|
1164
1168
|
]),
|
|
1165
1169
|
a("ul", Rl, [
|
|
1166
|
-
(
|
|
1170
|
+
(u(!0), h(M, null, F(t(R).specialTemplates, ({
|
|
1167
1171
|
id: P,
|
|
1168
1172
|
name: y,
|
|
1169
1173
|
templateRoomGroups: G,
|
|
1170
1174
|
image: L,
|
|
1171
1175
|
description: S,
|
|
1172
1176
|
weekendFee: te,
|
|
1173
|
-
fromDate:
|
|
1174
|
-
toDate:
|
|
1175
|
-
}) => (
|
|
1177
|
+
fromDate: Z,
|
|
1178
|
+
toDate: ye
|
|
1179
|
+
}) => (u(), A(fl, {
|
|
1176
1180
|
key: P,
|
|
1177
1181
|
id: P,
|
|
1178
1182
|
description: S,
|
|
1179
1183
|
name: y,
|
|
1180
1184
|
image: L,
|
|
1181
|
-
fromDate:
|
|
1182
|
-
toDate:
|
|
1185
|
+
fromDate: Z,
|
|
1186
|
+
toDate: ye,
|
|
1183
1187
|
weekendFee: te,
|
|
1184
1188
|
"room-groups": G,
|
|
1185
|
-
callback:
|
|
1189
|
+
callback: z
|
|
1186
1190
|
}, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1187
1191
|
])
|
|
1188
1192
|
])) : _("", !0),
|
|
1189
|
-
(t(
|
|
1190
|
-
a("span", null,
|
|
1193
|
+
(t(R).templates.length === 0 && b.onlyShow !== "rooms" || t(R).roomGroups.length === 0 && b.onlyShow !== "packages") && (b.onlyShow === "rooms" || b.onlyShow === "packages") ? (u(), h("div", Ul, [
|
|
1194
|
+
a("span", null, v(t(e)("booking.availability.nothingAvailable")), 1)
|
|
1191
1195
|
])) : _("", !0)
|
|
1192
|
-
])) : t(
|
|
1193
|
-
a("span", null,
|
|
1194
|
-
])) : (
|
|
1196
|
+
])) : t(R).nextAvailableDates.length === 0 ? (u(), h("div", Fl, [
|
|
1197
|
+
a("span", null, v(t(e)("booking.availability.nothingAvailable")), 1)
|
|
1198
|
+
])) : (u(), h("div", Ol, [
|
|
1195
1199
|
a("h2", jl, [
|
|
1196
|
-
g(
|
|
1200
|
+
g(J, {
|
|
1197
1201
|
icon: "calendar-circle-exclamation",
|
|
1198
1202
|
type: "fal",
|
|
1199
1203
|
color: "header"
|
|
1200
1204
|
}),
|
|
1201
|
-
a("span", null,
|
|
1205
|
+
a("span", null, v(t(e)("booking.availability.nextAvailableDates")), 1)
|
|
1202
1206
|
]),
|
|
1203
1207
|
a("ul", ql, [
|
|
1204
|
-
(
|
|
1208
|
+
(u(!0), h(M, null, F(t(R).nextAvailableDates, (P, y) => (u(), h("li", { key: y }, [
|
|
1205
1209
|
a("h3", {
|
|
1206
1210
|
title: `${t(pe)(P.fromDate)} - ${t(pe)(P.toDate)}`
|
|
1207
1211
|
}, [
|
|
1208
|
-
a("span", null,
|
|
1212
|
+
a("span", null, v(`${t(pe)(P.fromDate)} - ${t(pe)(P.toDate)}`), 1)
|
|
1209
1213
|
], 8, Gl),
|
|
1210
1214
|
a("ul", null, [
|
|
1211
1215
|
_("", !0),
|
|
1212
1216
|
a("li", null, [
|
|
1213
|
-
g(
|
|
1217
|
+
g(J, {
|
|
1214
1218
|
icon: "money-bill",
|
|
1215
1219
|
type: "fal",
|
|
1216
1220
|
color: "header"
|
|
1217
1221
|
}),
|
|
1218
|
-
a("span", null,
|
|
1222
|
+
a("span", null, v(t(e)("booking.availability.pricesFrom")) + ": " + v(t(oe)(P.priceStartFrom, t(_e))), 1)
|
|
1219
1223
|
])
|
|
1220
1224
|
]),
|
|
1221
|
-
g(
|
|
1225
|
+
g(ue, {
|
|
1222
1226
|
label: t(e)("booking.availability.selectDates"),
|
|
1223
1227
|
"full-width": "",
|
|
1224
|
-
onClickEvent: (G) => t(
|
|
1228
|
+
onClickEvent: (G) => t(ie)(new Date(P.fromDate), new Date(P.toDate))
|
|
1225
1229
|
}, null, 8, ["label", "onClickEvent"])
|
|
1226
1230
|
]))), 128))
|
|
1227
1231
|
])
|
|
1228
1232
|
]))
|
|
1229
|
-
])) : isNaN(t(i)) && !t(
|
|
1230
|
-
a("span", null,
|
|
1231
|
-
])) : (
|
|
1232
|
-
g(
|
|
1233
|
-
g(
|
|
1234
|
-
g(
|
|
1233
|
+
])) : isNaN(t(i)) && !t(c) ? (u(), h("div", Wl, [
|
|
1234
|
+
a("span", null, v(t(e)("alert.info.selectHotelToStart")), 1)
|
|
1235
|
+
])) : (u(), h("div", Kl, [
|
|
1236
|
+
g(Je),
|
|
1237
|
+
g(Je),
|
|
1238
|
+
g(Je)
|
|
1235
1239
|
]))
|
|
1236
1240
|
])
|
|
1237
1241
|
]),
|
|
1238
1242
|
navigation: C(() => [
|
|
1239
|
-
t(
|
|
1243
|
+
t(ke) ? (u(), A(ue, {
|
|
1240
1244
|
key: 0,
|
|
1241
1245
|
label: isNaN(t(i)) ? t(e)("availability.buttonLabel") : t(e)("general.searchAgain"),
|
|
1242
|
-
"is-loading": t(
|
|
1246
|
+
"is-loading": t(c),
|
|
1243
1247
|
"full-width": "",
|
|
1244
1248
|
onClickEvent: T[1] || (T[1] = (P) => t(rt)())
|
|
1245
|
-
}, null, 8, ["label", "is-loading"])) : (
|
|
1249
|
+
}, null, 8, ["label", "is-loading"])) : (u(), A(ue, {
|
|
1246
1250
|
key: 1,
|
|
1247
|
-
label: t(
|
|
1248
|
-
disabled: !t(
|
|
1251
|
+
label: t(he) || Ge.value ? t(e)("booking.availability.nextButton") : t(e)("general.chooseAddons"),
|
|
1252
|
+
disabled: !t(ge),
|
|
1249
1253
|
"full-width": "",
|
|
1250
|
-
onClickEvent: (P) =>
|
|
1254
|
+
onClickEvent: (P) => eo(z)
|
|
1251
1255
|
}, null, 8, ["label", "disabled", "onClickEvent"]))
|
|
1252
1256
|
]),
|
|
1253
1257
|
_: 2
|
|
1254
1258
|
}, 1024)
|
|
1255
1259
|
]),
|
|
1256
|
-
addons: C(({ next:
|
|
1257
|
-
t(
|
|
1260
|
+
addons: C(({ next: z, prev: P }) => [
|
|
1261
|
+
t(we) ? (u(), A(Ye, { key: 0 }, {
|
|
1258
1262
|
form: C(() => [
|
|
1259
1263
|
a("form", xl, [
|
|
1260
1264
|
a("h2", null, [
|
|
1261
|
-
a("span", null,
|
|
1265
|
+
a("span", null, v(t(e)("booking.reservation.addons")), 1)
|
|
1262
1266
|
]),
|
|
1263
1267
|
a("div", null, [
|
|
1264
|
-
isNaN(t(
|
|
1265
|
-
(
|
|
1268
|
+
isNaN(t(s)) ? (u(), h("div", zl, [
|
|
1269
|
+
(u(!0), h(M, null, F(t(ae), (y) => (u(), h("ul", {
|
|
1266
1270
|
key: y.roomGroupID
|
|
1267
1271
|
}, [
|
|
1268
|
-
(
|
|
1272
|
+
(u(!0), h(M, null, F(y.variants, (G, L) => (u(), h("li", {
|
|
1269
1273
|
key: G.ratePlanID
|
|
1270
1274
|
}, [
|
|
1271
1275
|
a("h4", null, [
|
|
1272
|
-
a("span", null,
|
|
1276
|
+
a("span", null, v(t(ce)(y.title)), 1)
|
|
1273
1277
|
]),
|
|
1274
|
-
(
|
|
1278
|
+
(u(!0), h(M, null, F(G.rooms, (S, te) => (u(), h("table", {
|
|
1275
1279
|
key: te,
|
|
1276
1280
|
class: "konnectio-table with-lines"
|
|
1277
1281
|
}, [
|
|
1278
1282
|
a("thead", null, [
|
|
1279
1283
|
a("tr", null, [
|
|
1280
1284
|
a("th", null, [
|
|
1281
|
-
a("span", null,
|
|
1285
|
+
a("span", null, v(t(ce)(G.name)), 1)
|
|
1282
1286
|
]),
|
|
1283
1287
|
_("", !0),
|
|
1284
1288
|
a("th", Jl, [
|
|
1285
1289
|
a("b", null, [
|
|
1286
|
-
g(
|
|
1290
|
+
g(J, {
|
|
1287
1291
|
icon: "male",
|
|
1288
1292
|
type: "fas",
|
|
1289
1293
|
color: "font"
|
|
1290
1294
|
}),
|
|
1291
|
-
a("span", null,
|
|
1292
|
-
S.childrenCount > 0 ? (
|
|
1295
|
+
a("span", null, v(S.adultsCount), 1),
|
|
1296
|
+
S.childrenCount > 0 ? (u(), A(J, {
|
|
1293
1297
|
key: 0,
|
|
1294
1298
|
icon: "child",
|
|
1295
1299
|
type: "fas",
|
|
1296
1300
|
color: "font"
|
|
1297
1301
|
})) : _("", !0),
|
|
1298
|
-
S.childrenCount > 0 ? (
|
|
1302
|
+
S.childrenCount > 0 ? (u(), h("span", Yl, v(S.childrenCount), 1)) : _("", !0)
|
|
1299
1303
|
])
|
|
1300
1304
|
])
|
|
1301
1305
|
])
|
|
1302
1306
|
]),
|
|
1303
1307
|
a("tbody", null, [
|
|
1304
|
-
(
|
|
1305
|
-
quantityStrategy:
|
|
1306
|
-
maximumNumber:
|
|
1308
|
+
(u(!0), h(M, null, F(t(dt)(G.addons, S.childrenCount), ({
|
|
1309
|
+
quantityStrategy: Z,
|
|
1310
|
+
maximumNumber: ye,
|
|
1307
1311
|
id: se,
|
|
1308
|
-
name:
|
|
1309
|
-
price:
|
|
1310
|
-
}) => (
|
|
1312
|
+
name: oo,
|
|
1313
|
+
price: lo
|
|
1314
|
+
}) => (u(), h("tr", { key: se }, [
|
|
1311
1315
|
a("td", Zl, [
|
|
1312
|
-
a("b", null,
|
|
1313
|
-
a("span", null,
|
|
1316
|
+
a("b", null, v(t(ce)(oo)), 1),
|
|
1317
|
+
a("span", null, v(t(oe)(lo, t(_e))) + " " + v(t(mt)(Z)), 1)
|
|
1314
1318
|
]),
|
|
1315
1319
|
a("td", Ql, [
|
|
1316
|
-
t(
|
|
1317
|
-
|
|
1320
|
+
t(K)[y.roomGroupID][L].config[S.configIdx].addons[S.roomIdx] ? (u(), h(M, { key: 0 }, [
|
|
1321
|
+
Z === 1 || Z === 12 ? (u(), A(et, {
|
|
1318
1322
|
key: 0,
|
|
1319
|
-
modelValue: t(
|
|
1320
|
-
"onUpdate:modelValue": (
|
|
1323
|
+
modelValue: t(K)[y.roomGroupID][L].config[S.configIdx].addons[S.roomIdx][se],
|
|
1324
|
+
"onUpdate:modelValue": (We) => t(K)[y.roomGroupID][L].config[S.configIdx].addons[S.roomIdx][se] = We,
|
|
1321
1325
|
small: !0,
|
|
1322
1326
|
"min-value": 0,
|
|
1323
|
-
"max-value":
|
|
1324
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (
|
|
1327
|
+
"max-value": ye || 1 / 0
|
|
1328
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (u(), A(Ee, {
|
|
1325
1329
|
key: 1,
|
|
1326
|
-
modelValue: t(
|
|
1327
|
-
"onUpdate:modelValue": (
|
|
1330
|
+
modelValue: t(K)[y.roomGroupID][L].config[S.configIdx].addons[S.roomIdx][se],
|
|
1331
|
+
"onUpdate:modelValue": (We) => t(K)[y.roomGroupID][L].config[S.configIdx].addons[S.roomIdx][se] = We,
|
|
1328
1332
|
numeric: !0
|
|
1329
1333
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1330
1334
|
], 64)) : _("", !0)
|
|
@@ -1334,45 +1338,45 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1334
1338
|
]))), 128))
|
|
1335
1339
|
]))), 128))
|
|
1336
1340
|
]))), 128))
|
|
1337
|
-
])) : t(
|
|
1341
|
+
])) : t(be) ? (u(), h("div", Xl, [
|
|
1338
1342
|
a("div", null, [
|
|
1339
1343
|
a("h4", null, [
|
|
1340
|
-
a("span", null,
|
|
1344
|
+
a("span", null, v(t(Re).name), 1)
|
|
1341
1345
|
]),
|
|
1342
1346
|
a("table", en, [
|
|
1343
1347
|
a("thead", null, [
|
|
1344
1348
|
a("tr", null, [
|
|
1345
1349
|
a("th", null, [
|
|
1346
|
-
a("span", null,
|
|
1350
|
+
a("span", null, v(t(ce)(t(be).title)), 1)
|
|
1347
1351
|
]),
|
|
1348
1352
|
_("", !0),
|
|
1349
1353
|
tn
|
|
1350
1354
|
])
|
|
1351
1355
|
]),
|
|
1352
1356
|
a("tbody", null, [
|
|
1353
|
-
(
|
|
1357
|
+
(u(!0), h(M, null, F(t(dt)(t(be).addons, t(Ce)), ({
|
|
1354
1358
|
quantityStrategy: y,
|
|
1355
1359
|
maximumNumber: G,
|
|
1356
1360
|
id: L,
|
|
1357
1361
|
name: S,
|
|
1358
1362
|
price: te
|
|
1359
|
-
}) => (
|
|
1363
|
+
}) => (u(), h("tr", { key: L }, [
|
|
1360
1364
|
a("td", on, [
|
|
1361
|
-
a("b", null,
|
|
1362
|
-
a("span", null,
|
|
1365
|
+
a("b", null, v(t(ce)(S)), 1),
|
|
1366
|
+
a("span", null, v(t(oe)(te, t(_e))) + " " + v(t(mt)(y)), 1)
|
|
1363
1367
|
]),
|
|
1364
1368
|
a("td", ln, [
|
|
1365
|
-
y === 1 || y === 12 ? (
|
|
1369
|
+
y === 1 || y === 12 ? (u(), A(et, {
|
|
1366
1370
|
key: 0,
|
|
1367
|
-
modelValue: t(
|
|
1368
|
-
"onUpdate:modelValue": (
|
|
1371
|
+
modelValue: t(m)[L],
|
|
1372
|
+
"onUpdate:modelValue": (Z) => t(m)[L] = Z,
|
|
1369
1373
|
small: !0,
|
|
1370
1374
|
"min-value": 0,
|
|
1371
1375
|
"max-value": G || 1 / 0
|
|
1372
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (
|
|
1376
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (u(), A(Ee, {
|
|
1373
1377
|
key: 1,
|
|
1374
|
-
modelValue: t(
|
|
1375
|
-
"onUpdate:modelValue": (
|
|
1378
|
+
modelValue: t(m)[L],
|
|
1379
|
+
"onUpdate:modelValue": (Z) => t(m)[L] = Z,
|
|
1376
1380
|
numeric: !0
|
|
1377
1381
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1378
1382
|
])
|
|
@@ -1385,23 +1389,23 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1385
1389
|
])
|
|
1386
1390
|
]),
|
|
1387
1391
|
navigation: C(() => [
|
|
1388
|
-
g(
|
|
1392
|
+
g(ue, {
|
|
1389
1393
|
label: t(e)("general.startReservation"),
|
|
1390
1394
|
"full-width": "",
|
|
1391
|
-
onClickEvent:
|
|
1395
|
+
onClickEvent: z
|
|
1392
1396
|
}, null, 8, ["label", "onClickEvent"]),
|
|
1393
1397
|
a("button", {
|
|
1394
1398
|
class: "konnectio-abort-reservation link",
|
|
1395
|
-
onClick:
|
|
1399
|
+
onClick: He((y) => ct(P), ["prevent"])
|
|
1396
1400
|
}, [
|
|
1397
|
-
a("span", null,
|
|
1401
|
+
a("span", null, v(t(e)("general.goAStepBack")), 1)
|
|
1398
1402
|
], 8, nn)
|
|
1399
1403
|
]),
|
|
1400
1404
|
_: 2
|
|
1401
1405
|
}, 1024)) : _("", !0)
|
|
1402
1406
|
]),
|
|
1403
|
-
reservation: C(({ next:
|
|
1404
|
-
t(
|
|
1407
|
+
reservation: C(({ next: z, prev: P }) => [
|
|
1408
|
+
t(we) ? (u(), A(Ye, {
|
|
1405
1409
|
key: 0,
|
|
1406
1410
|
"show-terms-notice": !0,
|
|
1407
1411
|
"show-gift-card": !0
|
|
@@ -1409,47 +1413,47 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1409
1413
|
form: C(() => [
|
|
1410
1414
|
a("form", an, [
|
|
1411
1415
|
a("h2", null, [
|
|
1412
|
-
a("span", null,
|
|
1416
|
+
a("span", null, v(t(e)("booking.reservation.detailsTitle")), 1)
|
|
1413
1417
|
]),
|
|
1414
|
-
!t(
|
|
1418
|
+
!t(Lt) && !(t(Oe) && t(je)) ? (u(), h("ul", {
|
|
1415
1419
|
key: 0,
|
|
1416
|
-
class:
|
|
1420
|
+
class: Be({ "konnectio-split-inputs": !t(Oe) && !t(je) })
|
|
1417
1421
|
}, [
|
|
1418
|
-
t(
|
|
1422
|
+
t(Oe) ? _("", !0) : (u(), h("li", sn, [
|
|
1419
1423
|
g(ht, {
|
|
1420
|
-
modelValue: t(
|
|
1421
|
-
"onUpdate:modelValue": T[2] || (T[2] = (y) =>
|
|
1424
|
+
modelValue: t(V),
|
|
1425
|
+
"onUpdate:modelValue": T[2] || (T[2] = (y) => U(V) ? V.value = y : null),
|
|
1422
1426
|
label: t(e)("booking.reservation.arrivalTime"),
|
|
1423
1427
|
icon: "hourglass-start",
|
|
1424
|
-
"hour-range":
|
|
1428
|
+
"hour-range": Zt.value,
|
|
1425
1429
|
required: ""
|
|
1426
1430
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1427
1431
|
])),
|
|
1428
|
-
t(
|
|
1432
|
+
t(je) ? _("", !0) : (u(), h("li", rn, [
|
|
1429
1433
|
g(ht, {
|
|
1430
|
-
modelValue: t(
|
|
1431
|
-
"onUpdate:modelValue": T[3] || (T[3] = (y) =>
|
|
1434
|
+
modelValue: t($),
|
|
1435
|
+
"onUpdate:modelValue": T[3] || (T[3] = (y) => U($) ? $.value = y : null),
|
|
1432
1436
|
label: t(e)("booking.reservation.departureTime"),
|
|
1433
1437
|
icon: "hourglass-end",
|
|
1434
|
-
"hour-range":
|
|
1438
|
+
"hour-range": Qt.value,
|
|
1435
1439
|
required: ""
|
|
1436
1440
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1437
1441
|
]))
|
|
1438
1442
|
], 2)) : _("", !0),
|
|
1439
1443
|
g(bl, {
|
|
1440
|
-
modelValue: t(
|
|
1441
|
-
"onUpdate:modelValue": T[4] || (T[4] = (y) =>
|
|
1442
|
-
title: t(
|
|
1443
|
-
"onUpdate:title": T[5] || (T[5] = (y) =>
|
|
1444
|
-
"exclude-title": t(
|
|
1444
|
+
modelValue: t(w),
|
|
1445
|
+
"onUpdate:modelValue": T[4] || (T[4] = (y) => U(w) ? w.value = y : null),
|
|
1446
|
+
title: t(H),
|
|
1447
|
+
"onUpdate:title": T[5] || (T[5] = (y) => U(H) ? H.value = y : null),
|
|
1448
|
+
"exclude-title": t(Mt),
|
|
1445
1449
|
label: t(e)("booking.reservation.name"),
|
|
1446
1450
|
icon: "user-alt",
|
|
1447
1451
|
placeholder: t(e)("booking.reservation.namePlaceholder"),
|
|
1448
1452
|
required: ""
|
|
1449
1453
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1450
1454
|
g(de, {
|
|
1451
|
-
modelValue: t(
|
|
1452
|
-
"onUpdate:modelValue": T[6] || (T[6] = (y) =>
|
|
1455
|
+
modelValue: t(E),
|
|
1456
|
+
"onUpdate:modelValue": T[6] || (T[6] = (y) => U(E) ? E.value = y : null),
|
|
1453
1457
|
type: "email",
|
|
1454
1458
|
name: "email",
|
|
1455
1459
|
autocomplete: "email",
|
|
@@ -1458,10 +1462,10 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1458
1462
|
placeholder: t(e)("booking.reservation.emailPlaceholder"),
|
|
1459
1463
|
required: ""
|
|
1460
1464
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1461
|
-
t(
|
|
1465
|
+
t(Ft) ? _("", !0) : (u(), A(de, {
|
|
1462
1466
|
key: 1,
|
|
1463
|
-
modelValue: t(
|
|
1464
|
-
"onUpdate:modelValue": T[7] || (T[7] = (y) =>
|
|
1467
|
+
modelValue: t(k),
|
|
1468
|
+
"onUpdate:modelValue": T[7] || (T[7] = (y) => U(k) ? k.value = y : null),
|
|
1465
1469
|
type: "text",
|
|
1466
1470
|
name: "firm",
|
|
1467
1471
|
autocomplete: "firm",
|
|
@@ -1470,24 +1474,24 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1470
1474
|
placeholder: t(e)("booking.reservation.companyNamePlaceholder")
|
|
1471
1475
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1472
1476
|
g(Eo, {
|
|
1473
|
-
modelValue: t(
|
|
1474
|
-
"onUpdate:modelValue": T[8] || (T[8] = (y) =>
|
|
1477
|
+
modelValue: t(B),
|
|
1478
|
+
"onUpdate:modelValue": T[8] || (T[8] = (y) => U(B) ? B.value = y : null),
|
|
1475
1479
|
icon: "phone-office",
|
|
1476
1480
|
label: t(e)("booking.reservation.phone"),
|
|
1477
1481
|
placeholder: t(e)("booking.reservation.phonePlaceholder"),
|
|
1478
1482
|
required: ""
|
|
1479
1483
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1480
1484
|
g(yl, {
|
|
1481
|
-
modelValue: t(
|
|
1482
|
-
"onUpdate:modelValue": T[9] || (T[9] = (y) =>
|
|
1485
|
+
modelValue: t(j),
|
|
1486
|
+
"onUpdate:modelValue": T[9] || (T[9] = (y) => U(j) ? j.value = y : null),
|
|
1483
1487
|
label: t(e)("booking.reservation.country"),
|
|
1484
1488
|
placeholder: t(e)("booking.reservation.countryPlaceholder"),
|
|
1485
|
-
options: t(
|
|
1489
|
+
options: t(p),
|
|
1486
1490
|
required: ""
|
|
1487
1491
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1488
1492
|
g(de, {
|
|
1489
|
-
modelValue: t(
|
|
1490
|
-
"onUpdate:modelValue": T[10] || (T[10] = (y) =>
|
|
1493
|
+
modelValue: t(Y),
|
|
1494
|
+
"onUpdate:modelValue": T[10] || (T[10] = (y) => U(Y) ? Y.value = y : null),
|
|
1491
1495
|
type: "textarea",
|
|
1492
1496
|
name: "address",
|
|
1493
1497
|
autocomplete: "street-address",
|
|
@@ -1499,8 +1503,8 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1499
1503
|
a("ul", dn, [
|
|
1500
1504
|
a("li", null, [
|
|
1501
1505
|
g(de, {
|
|
1502
|
-
modelValue: t(
|
|
1503
|
-
"onUpdate:modelValue": T[11] || (T[11] = (y) =>
|
|
1506
|
+
modelValue: t(D),
|
|
1507
|
+
"onUpdate:modelValue": T[11] || (T[11] = (y) => U(D) ? D.value = y : null),
|
|
1504
1508
|
type: "text",
|
|
1505
1509
|
name: "postal",
|
|
1506
1510
|
autocomplete: "postal-code",
|
|
@@ -1512,8 +1516,8 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1512
1516
|
]),
|
|
1513
1517
|
a("li", null, [
|
|
1514
1518
|
g(de, {
|
|
1515
|
-
modelValue: t(
|
|
1516
|
-
"onUpdate:modelValue": T[12] || (T[12] = (y) =>
|
|
1519
|
+
modelValue: t(I),
|
|
1520
|
+
"onUpdate:modelValue": T[12] || (T[12] = (y) => U(I) ? I.value = y : null),
|
|
1517
1521
|
type: "text",
|
|
1518
1522
|
name: "city",
|
|
1519
1523
|
autocomplete: "address-level2",
|
|
@@ -1525,46 +1529,46 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1525
1529
|
])
|
|
1526
1530
|
]),
|
|
1527
1531
|
g(de, {
|
|
1528
|
-
modelValue: t(
|
|
1529
|
-
"onUpdate:modelValue": T[13] || (T[13] = (y) =>
|
|
1532
|
+
modelValue: t(W),
|
|
1533
|
+
"onUpdate:modelValue": T[13] || (T[13] = (y) => U(W) ? W.value = y : null),
|
|
1530
1534
|
type: "textarea",
|
|
1531
1535
|
label: `${t(e)("booking.reservation.remark")} (${t(e)("booking.reservation.optional")})`,
|
|
1532
1536
|
icon: "info-circle",
|
|
1533
1537
|
placeholder: t(e)("booking.reservation.remarkPlaceholder")
|
|
1534
1538
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1535
1539
|
g(de, {
|
|
1536
|
-
modelValue: t(
|
|
1537
|
-
"onUpdate:modelValue": T[14] || (T[14] = (y) =>
|
|
1540
|
+
modelValue: t(q),
|
|
1541
|
+
"onUpdate:modelValue": T[14] || (T[14] = (y) => U(q) ? q.value = y : null),
|
|
1538
1542
|
type: "textarea",
|
|
1539
1543
|
label: `${t(e)("booking.reservation.allergies")} (${t(e)("booking.reservation.optional")})`,
|
|
1540
1544
|
icon: "allergies",
|
|
1541
1545
|
placeholder: t(e)("booking.reservation.allergiesPlaceholder")
|
|
1542
1546
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1543
|
-
t(
|
|
1547
|
+
t(Rt) ? _("", !0) : (u(), A(Do, {
|
|
1544
1548
|
key: 2,
|
|
1545
|
-
modelValue: t(
|
|
1546
|
-
"onUpdate:modelValue": T[15] || (T[15] = (y) =>
|
|
1549
|
+
modelValue: t(f),
|
|
1550
|
+
"onUpdate:modelValue": T[15] || (T[15] = (y) => U(f) ? f.value = y : null),
|
|
1547
1551
|
label: `${t(e)("booking.reservation.purposeOfStay")} (${t(e)("booking.reservation.optional")})`,
|
|
1548
1552
|
name: "travelingFor",
|
|
1549
|
-
checkboxes:
|
|
1553
|
+
checkboxes: Jt.value
|
|
1550
1554
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
1551
1555
|
])
|
|
1552
1556
|
]),
|
|
1553
1557
|
navigation: C(() => [
|
|
1554
1558
|
a("div", null, [
|
|
1555
|
-
g(
|
|
1556
|
-
label: t(
|
|
1557
|
-
disabled: !t(
|
|
1558
|
-
"is-loading": t(
|
|
1559
|
+
g(ue, {
|
|
1560
|
+
label: t(Ot) ? t(e)("booking.reservation.nextButton") : t(e)("general.confirmReservation"),
|
|
1561
|
+
disabled: !t(d),
|
|
1562
|
+
"is-loading": t(r),
|
|
1559
1563
|
"full-width": "",
|
|
1560
|
-
onClickEvent: (y) =>
|
|
1564
|
+
onClickEvent: (y) => Xt(z)
|
|
1561
1565
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
1562
1566
|
a("button", {
|
|
1563
1567
|
class: "konnectio-abort-reservation link",
|
|
1564
|
-
onClick:
|
|
1568
|
+
onClick: He((y) => ct(P), ["prevent"])
|
|
1565
1569
|
}, [
|
|
1566
|
-
a("span", null,
|
|
1567
|
-
], 8,
|
|
1570
|
+
a("span", null, v(t(e)("general.goAStepBack")), 1)
|
|
1571
|
+
], 8, cn)
|
|
1568
1572
|
])
|
|
1569
1573
|
]),
|
|
1570
1574
|
_: 2
|
|
@@ -1593,11 +1597,11 @@ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1593
1597
|
_: 1
|
|
1594
1598
|
}, 8, ["styling"]));
|
|
1595
1599
|
}
|
|
1596
|
-
}),
|
|
1597
|
-
function
|
|
1600
|
+
}), Pe = /* @__PURE__ */ me(un, [["__scopeId", "data-v-ab11f496"]]);
|
|
1601
|
+
function tt(n, l = {}, o) {
|
|
1598
1602
|
for (const e in n) {
|
|
1599
1603
|
const i = n[e], s = o ? `${o}:${e}` : e;
|
|
1600
|
-
typeof i == "object" && i !== null ?
|
|
1604
|
+
typeof i == "object" && i !== null ? tt(i, l, s) : typeof i == "function" && (l[s] = i);
|
|
1601
1605
|
}
|
|
1602
1606
|
return l;
|
|
1603
1607
|
}
|
|
@@ -1613,7 +1617,7 @@ function hn(n, l) {
|
|
|
1613
1617
|
const o = l.shift(), e = Pt(o);
|
|
1614
1618
|
return Promise.all(n.map((i) => e.run(() => i(...l))));
|
|
1615
1619
|
}
|
|
1616
|
-
function
|
|
1620
|
+
function Ze(n, l) {
|
|
1617
1621
|
for (const o of [...n])
|
|
1618
1622
|
o(l);
|
|
1619
1623
|
}
|
|
@@ -1668,7 +1672,7 @@ class vn {
|
|
|
1668
1672
|
this.deprecateHook(o, l[o]);
|
|
1669
1673
|
}
|
|
1670
1674
|
addHooks(l) {
|
|
1671
|
-
const o =
|
|
1675
|
+
const o = tt(l), e = Object.keys(o).map(
|
|
1672
1676
|
(i) => this.hook(i, o[i])
|
|
1673
1677
|
);
|
|
1674
1678
|
return () => {
|
|
@@ -1677,7 +1681,7 @@ class vn {
|
|
|
1677
1681
|
};
|
|
1678
1682
|
}
|
|
1679
1683
|
removeHooks(l) {
|
|
1680
|
-
const o =
|
|
1684
|
+
const o = tt(l);
|
|
1681
1685
|
for (const e in o)
|
|
1682
1686
|
this.removeHook(e, o[e]);
|
|
1683
1687
|
}
|
|
@@ -1693,14 +1697,14 @@ class vn {
|
|
|
1693
1697
|
}
|
|
1694
1698
|
callHookWith(l, o, ...e) {
|
|
1695
1699
|
const i = this._before || this._after ? { name: o, args: e, context: {} } : void 0;
|
|
1696
|
-
this._before &&
|
|
1700
|
+
this._before && Ze(this._before, i);
|
|
1697
1701
|
const s = l(
|
|
1698
1702
|
o in this._hooks ? [...this._hooks[o]] : [],
|
|
1699
1703
|
e
|
|
1700
1704
|
);
|
|
1701
1705
|
return s instanceof Promise ? s.finally(() => {
|
|
1702
|
-
this._after && i &&
|
|
1703
|
-
}) : (this._after && i &&
|
|
1706
|
+
this._after && i && Ze(this._after, i);
|
|
1707
|
+
}) : (this._after && i && Ze(this._after, i), s);
|
|
1704
1708
|
}
|
|
1705
1709
|
beforeEach(l) {
|
|
1706
1710
|
return this._before = this._before || [], this._before.push(l), () => {
|
|
@@ -1725,7 +1729,7 @@ function yn() {
|
|
|
1725
1729
|
function gn(n) {
|
|
1726
1730
|
return Array.isArray(n) ? n : [n];
|
|
1727
1731
|
}
|
|
1728
|
-
const bn = ["title", "titleTemplate", "script", "style", "noscript"],
|
|
1732
|
+
const bn = ["title", "titleTemplate", "script", "style", "noscript"], De = [
|
|
1729
1733
|
"base",
|
|
1730
1734
|
"meta",
|
|
1731
1735
|
"link",
|
|
@@ -1745,14 +1749,14 @@ const bn = ["title", "titleTemplate", "script", "style", "noscript"], He = [
|
|
|
1745
1749
|
"script",
|
|
1746
1750
|
"noscript"
|
|
1747
1751
|
], _n = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], Dt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Vn = typeof window < "u";
|
|
1748
|
-
function
|
|
1752
|
+
function nt(n) {
|
|
1749
1753
|
let l = 9;
|
|
1750
1754
|
for (let o = 0; o < n.length; )
|
|
1751
1755
|
l = Math.imul(l ^ n.charCodeAt(o++), 9 ** 9);
|
|
1752
1756
|
return ((l ^ l >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
1753
1757
|
}
|
|
1754
1758
|
function vt(n) {
|
|
1755
|
-
return n._h ||
|
|
1759
|
+
return n._h || nt(n._d ? n._d : `${n.tag}:${n.textContent || n.innerHTML || ""}:${Object.entries(n.props).map(([l, o]) => `${l}:${String(o)}`).join(",")}`);
|
|
1756
1760
|
}
|
|
1757
1761
|
function St(n, l) {
|
|
1758
1762
|
const { props: o, tag: e } = n;
|
|
@@ -1824,18 +1828,18 @@ const gt = {
|
|
|
1824
1828
|
high: -10,
|
|
1825
1829
|
low: 20
|
|
1826
1830
|
};
|
|
1827
|
-
function
|
|
1831
|
+
function Ne(n) {
|
|
1828
1832
|
let l = 100;
|
|
1829
1833
|
const o = n.tagPriority;
|
|
1830
1834
|
return typeof o == "number" ? o : (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 gt && (l = gt[n.tag]), typeof o == "string" && o in bt ? l + bt[o] : l);
|
|
1831
1835
|
}
|
|
1832
1836
|
const An = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], kt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], re = "%separator";
|
|
1833
|
-
function
|
|
1837
|
+
function Se(n, l, o) {
|
|
1834
1838
|
if (typeof n != "string" || !n.includes("%"))
|
|
1835
1839
|
return n;
|
|
1836
1840
|
function e(m) {
|
|
1837
1841
|
let p;
|
|
1838
|
-
return ["s", "pageTitle"].includes(m) ? p = l.pageTitle : m.includes(".") ? p = m.split(".").reduce((
|
|
1842
|
+
return ["s", "pageTitle"].includes(m) ? p = l.pageTitle : m.includes(".") ? p = m.split(".").reduce((c, r) => c && c[r] || void 0, l) : p = l[m], typeof p < "u" ? (p || "").replace(/"/g, '\\"') : !1;
|
|
1839
1843
|
}
|
|
1840
1844
|
let i = n;
|
|
1841
1845
|
try {
|
|
@@ -1844,8 +1848,8 @@ function Ie(n, l, o) {
|
|
|
1844
1848
|
}
|
|
1845
1849
|
return (i.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((m) => {
|
|
1846
1850
|
const p = e(m.slice(1));
|
|
1847
|
-
typeof p == "string" && (n = n.replace(new RegExp(`\\${m}(\\W|$)`, "g"), (
|
|
1848
|
-
}), n.includes(re) && (n.endsWith(re) && (n = n.slice(0, -re.length).trim()), n.startsWith(re) && (n = n.slice(re.length).trim()), n = n.replace(new RegExp(`\\${re}\\s*\\${re}`, "g"), re), n =
|
|
1851
|
+
typeof p == "string" && (n = n.replace(new RegExp(`\\${m}(\\W|$)`, "g"), (c, r) => `${p}${r}`).trim());
|
|
1852
|
+
}), n.includes(re) && (n.endsWith(re) && (n = n.slice(0, -re.length).trim()), n.startsWith(re) && (n = n.slice(re.length).trim()), n = n.replace(new RegExp(`\\${re}\\s*\\${re}`, "g"), re), n = Se(n, { separator: o }, o)), n;
|
|
1849
1853
|
}
|
|
1850
1854
|
async function Pn(n, l = {}) {
|
|
1851
1855
|
const o = l.document || n.resolvedOptions.document;
|
|
@@ -1856,7 +1860,7 @@ async function Pn(n, l = {}) {
|
|
|
1856
1860
|
return;
|
|
1857
1861
|
const i = (await n.resolveTags()).map((d) => ({
|
|
1858
1862
|
tag: d,
|
|
1859
|
-
id:
|
|
1863
|
+
id: De.includes(d.tag) ? vt(d) : d.tag,
|
|
1860
1864
|
shouldRender: !0
|
|
1861
1865
|
}));
|
|
1862
1866
|
let s = n._dom;
|
|
@@ -1865,8 +1869,8 @@ async function Pn(n, l = {}) {
|
|
|
1865
1869
|
elMap: { htmlAttrs: o.documentElement, bodyAttrs: o.body }
|
|
1866
1870
|
};
|
|
1867
1871
|
for (const d of ["body", "head"]) {
|
|
1868
|
-
const
|
|
1869
|
-
for (const $ of [...
|
|
1872
|
+
const f = o[d]?.children, V = [];
|
|
1873
|
+
for (const $ of [...f].filter((w) => De.includes(w.tagName.toLowerCase()))) {
|
|
1870
1874
|
const w = {
|
|
1871
1875
|
tag: $.tagName.toLowerCase(),
|
|
1872
1876
|
props: await Ht(
|
|
@@ -1882,53 +1886,53 @@ async function Pn(n, l = {}) {
|
|
|
1882
1886
|
}
|
|
1883
1887
|
}
|
|
1884
1888
|
s.pendingSideEffects = { ...s.sideEffects || {} }, s.sideEffects = {};
|
|
1885
|
-
function m(d,
|
|
1886
|
-
const $ = `${d}:${
|
|
1889
|
+
function m(d, f, V) {
|
|
1890
|
+
const $ = `${d}:${f}`;
|
|
1887
1891
|
s.sideEffects[$] = V, delete s.pendingSideEffects[$];
|
|
1888
1892
|
}
|
|
1889
|
-
function p({ id: d, $el:
|
|
1893
|
+
function p({ id: d, $el: f, tag: V }) {
|
|
1890
1894
|
const $ = V.tag.endsWith("Attrs");
|
|
1891
|
-
s.elMap[d] =
|
|
1892
|
-
V[w] && V[w] !==
|
|
1895
|
+
s.elMap[d] = f, $ || (["textContent", "innerHTML"].forEach((w) => {
|
|
1896
|
+
V[w] && V[w] !== f[w] && (f[w] = V[w]);
|
|
1893
1897
|
}), m(d, "el", () => {
|
|
1894
1898
|
s.elMap[d]?.remove(), delete s.elMap[d];
|
|
1895
1899
|
}));
|
|
1896
1900
|
for (const [w, H] of Object.entries(V._eventHandlers || {}))
|
|
1897
|
-
|
|
1901
|
+
f.getAttribute(`data-${w}`) !== "" && ((V.tag === "bodyAttrs" ? o.defaultView : f).addEventListener(w.replace("on", ""), H.bind(f)), f.setAttribute(`data-${w}`, ""));
|
|
1898
1902
|
Object.entries(V.props).forEach(([w, H]) => {
|
|
1899
1903
|
const E = `attr:${w}`;
|
|
1900
1904
|
if (w === "class")
|
|
1901
1905
|
for (const B of (H || "").split(" ").filter(Boolean))
|
|
1902
|
-
$ && m(d, `${E}:${B}`, () =>
|
|
1906
|
+
$ && m(d, `${E}:${B}`, () => f.classList.remove(B)), !f.classList.contains(B) && f.classList.add(B);
|
|
1903
1907
|
else if (w === "style")
|
|
1904
1908
|
for (const B of (H || "").split(";").filter(Boolean)) {
|
|
1905
1909
|
const [k, ...D] = B.split(":").map((I) => I.trim());
|
|
1906
1910
|
m(d, `${E}:${k}`, () => {
|
|
1907
|
-
|
|
1908
|
-
}),
|
|
1911
|
+
f.style.removeProperty(k);
|
|
1912
|
+
}), f.style.setProperty(k, D.join(":"));
|
|
1909
1913
|
}
|
|
1910
1914
|
else
|
|
1911
|
-
|
|
1915
|
+
f.getAttribute(w) !== H && f.setAttribute(w, H === !0 ? "" : String(H)), $ && m(d, E, () => f.removeAttribute(w));
|
|
1912
1916
|
});
|
|
1913
1917
|
}
|
|
1914
|
-
const
|
|
1918
|
+
const c = [], r = {
|
|
1915
1919
|
bodyClose: void 0,
|
|
1916
1920
|
bodyOpen: void 0,
|
|
1917
1921
|
head: void 0
|
|
1918
1922
|
};
|
|
1919
1923
|
for (const d of i) {
|
|
1920
|
-
const { tag:
|
|
1924
|
+
const { tag: f, shouldRender: V, id: $ } = d;
|
|
1921
1925
|
if (V) {
|
|
1922
|
-
if (
|
|
1923
|
-
o.title =
|
|
1926
|
+
if (f.tag === "title") {
|
|
1927
|
+
o.title = f.textContent;
|
|
1924
1928
|
continue;
|
|
1925
1929
|
}
|
|
1926
|
-
d.$el = d.$el || s.elMap[$], d.$el ? p(d) :
|
|
1930
|
+
d.$el = d.$el || s.elMap[$], d.$el ? p(d) : De.includes(f.tag) && c.push(d);
|
|
1927
1931
|
}
|
|
1928
1932
|
}
|
|
1929
|
-
for (const d of
|
|
1930
|
-
const
|
|
1931
|
-
d.$el = o.createElement(d.tag.tag), p(d), r[
|
|
1933
|
+
for (const d of c) {
|
|
1934
|
+
const f = d.tag.tagPosition || "head";
|
|
1935
|
+
d.$el = o.createElement(d.tag.tag), p(d), r[f] = r[f] || o.createDocumentFragment(), r[f].appendChild(d.$el);
|
|
1932
1936
|
}
|
|
1933
1937
|
for (const d of i)
|
|
1934
1938
|
await n.hooks.callHook("dom:renderTag", d, o, m);
|
|
@@ -1970,22 +1974,22 @@ const Hn = ["templateParams", "htmlAttrs", "bodyAttrs"], In = {
|
|
|
1970
1974
|
if (s) {
|
|
1971
1975
|
let p = e?.tagDuplicateStrategy;
|
|
1972
1976
|
if (!p && Hn.includes(e.tag) && (p = "merge"), p === "merge") {
|
|
1973
|
-
const
|
|
1977
|
+
const c = s.props;
|
|
1974
1978
|
["class", "style"].forEach((r) => {
|
|
1975
|
-
|
|
1979
|
+
c[r] && (e.props[r] ? (r === "style" && !c[r].endsWith(";") && (c[r] += ";"), e.props[r] = `${c[r]} ${e.props[r]}`) : e.props[r] = c[r]);
|
|
1976
1980
|
}), l[i].props = {
|
|
1977
|
-
...
|
|
1981
|
+
...c,
|
|
1978
1982
|
...e.props
|
|
1979
1983
|
};
|
|
1980
1984
|
return;
|
|
1981
1985
|
} else if (e._e === s._e) {
|
|
1982
1986
|
s._duped = s._duped || [], e._d = `${s._d}:${s._duped.length + 1}`, s._duped.push(e);
|
|
1983
1987
|
return;
|
|
1984
|
-
} else if (
|
|
1988
|
+
} else if (Ne(e) > Ne(s))
|
|
1985
1989
|
return;
|
|
1986
1990
|
}
|
|
1987
1991
|
const m = Object.keys(e.props).length + (e.innerHTML ? 1 : 0) + (e.textContent ? 1 : 0);
|
|
1988
|
-
if (
|
|
1992
|
+
if (De.includes(e.tag) && m === 0) {
|
|
1989
1993
|
delete l[i];
|
|
1990
1994
|
return;
|
|
1991
1995
|
}
|
|
@@ -2018,7 +2022,7 @@ const Hn = ["templateParams", "htmlAttrs", "bodyAttrs"], In = {
|
|
|
2018
2022
|
for (const o of l.tags.filter((e) => En.includes(e.tag)))
|
|
2019
2023
|
Object.entries(o.props).forEach(([e, i]) => {
|
|
2020
2024
|
e.startsWith("on") && typeof i == "function" && (n.ssr && kt.includes(e) ? o.props[e] = `this.dataset.${e}fired = true` : delete o.props[e], o._eventHandlers = o._eventHandlers || {}, o._eventHandlers[e] = i);
|
|
2021
|
-
}), n.ssr && o._eventHandlers && (o.props.src || o.props.href) && (o.key = o.key ||
|
|
2025
|
+
}), n.ssr && o._eventHandlers && (o.props.src || o.props.href) && (o.key = o.key || nt(o.props.src || o.props.href));
|
|
2022
2026
|
},
|
|
2023
2027
|
"dom:renderTag": function({ $el: l, tag: o }) {
|
|
2024
2028
|
for (const e of Object.keys(l?.dataset || {}).filter((i) => kt.some((s) => `${s}fired` === i))) {
|
|
@@ -2030,7 +2034,7 @@ const Hn = ["templateParams", "htmlAttrs", "bodyAttrs"], In = {
|
|
|
2030
2034
|
}), Ln = ["link", "style", "script", "noscript"], Mn = {
|
|
2031
2035
|
hooks: {
|
|
2032
2036
|
"tag:normalise": ({ tag: n }) => {
|
|
2033
|
-
n.key && Ln.includes(n.tag) && (n.props["data-hid"] = n._h =
|
|
2037
|
+
n.key && Ln.includes(n.tag) && (n.props["data-hid"] = n._h = nt(n.key));
|
|
2034
2038
|
}
|
|
2035
2039
|
}
|
|
2036
2040
|
}, Rn = {
|
|
@@ -2044,7 +2048,7 @@ const Hn = ["templateParams", "htmlAttrs", "bodyAttrs"], In = {
|
|
|
2044
2048
|
);
|
|
2045
2049
|
typeof s < "u" && (i._p = s + e);
|
|
2046
2050
|
}
|
|
2047
|
-
n.tags.sort((o, e) => o._p - e._p).sort((o, e) =>
|
|
2051
|
+
n.tags.sort((o, e) => o._p - e._p).sort((o, e) => Ne(o) - Ne(e));
|
|
2048
2052
|
}
|
|
2049
2053
|
}
|
|
2050
2054
|
}, Un = {
|
|
@@ -2055,11 +2059,11 @@ const Hn = ["templateParams", "htmlAttrs", "bodyAttrs"], In = {
|
|
|
2055
2059
|
hooks: {
|
|
2056
2060
|
"tags:resolve": (l) => {
|
|
2057
2061
|
const { tags: o } = l, e = o.find((p) => p.tag === "title")?.textContent, i = o.findIndex((p) => p.tag === "templateParams"), s = i !== -1 ? o[i].props : {}, m = s.separator || "|";
|
|
2058
|
-
delete s.separator, s.pageTitle =
|
|
2059
|
-
for (const p of o.filter((
|
|
2060
|
-
const
|
|
2061
|
-
|
|
2062
|
-
typeof p[r] == "string" && (p[r] =
|
|
2062
|
+
delete s.separator, s.pageTitle = Se(s.pageTitle || e || "", s, m);
|
|
2063
|
+
for (const p of o.filter((c) => c.processTemplateParams !== !1)) {
|
|
2064
|
+
const c = Un[p.tag];
|
|
2065
|
+
c && typeof p.props[c] == "string" ? p.props[c] = Se(p.props[c], s, m) : (p.processTemplateParams === !0 || ["titleTemplate", "title"].includes(p.tag)) && ["innerHTML", "textContent"].forEach((r) => {
|
|
2066
|
+
typeof p[r] == "string" && (p[r] = Se(p[r], s, m));
|
|
2063
2067
|
});
|
|
2064
2068
|
}
|
|
2065
2069
|
n._templateParams = s, n._separator = m, l.tags = o.filter((p) => p.tag !== "templateParams");
|
|
@@ -2117,39 +2121,39 @@ function Gn(n = {}) {
|
|
|
2117
2121
|
headEntries() {
|
|
2118
2122
|
return s;
|
|
2119
2123
|
},
|
|
2120
|
-
use(
|
|
2121
|
-
const r = typeof
|
|
2124
|
+
use(c) {
|
|
2125
|
+
const r = typeof c == "function" ? c(p) : c;
|
|
2122
2126
|
(!r.key || !m.some((d) => d.key === r.key)) && (m.push(r), _t(r.mode, o) && l.addHooks(r.hooks || {}));
|
|
2123
2127
|
},
|
|
2124
|
-
push(
|
|
2128
|
+
push(c, r) {
|
|
2125
2129
|
delete r?.head;
|
|
2126
2130
|
const d = {
|
|
2127
2131
|
_i: i++,
|
|
2128
|
-
input:
|
|
2132
|
+
input: c,
|
|
2129
2133
|
...r
|
|
2130
2134
|
};
|
|
2131
2135
|
return _t(d.mode, o) && (s.push(d), e()), {
|
|
2132
2136
|
dispose() {
|
|
2133
|
-
s = s.filter((
|
|
2137
|
+
s = s.filter((f) => f._i !== d._i), l.callHook("entries:updated", p), e();
|
|
2134
2138
|
},
|
|
2135
2139
|
// a patch is the same as creating a new entry, just a nice DX
|
|
2136
|
-
patch(
|
|
2137
|
-
s = s.map((V) => (V._i === d._i && (V.input = d.input =
|
|
2140
|
+
patch(f) {
|
|
2141
|
+
s = s.map((V) => (V._i === d._i && (V.input = d.input = f), V)), e();
|
|
2138
2142
|
}
|
|
2139
2143
|
};
|
|
2140
2144
|
},
|
|
2141
2145
|
async resolveTags() {
|
|
2142
|
-
const
|
|
2143
|
-
await l.callHook("entries:resolve",
|
|
2144
|
-
for (const r of
|
|
2146
|
+
const c = { tags: [], entries: [...s] };
|
|
2147
|
+
await l.callHook("entries:resolve", c);
|
|
2148
|
+
for (const r of c.entries) {
|
|
2145
2149
|
const d = r.resolvedInput || r.input;
|
|
2146
2150
|
if (r.resolvedInput = await (r.transform ? r.transform(d) : d), r.resolvedInput)
|
|
2147
|
-
for (const
|
|
2148
|
-
const V = { tag:
|
|
2149
|
-
await l.callHook("tag:normalise", V),
|
|
2151
|
+
for (const f of await $n(r)) {
|
|
2152
|
+
const V = { tag: f, entry: r, resolvedOptions: p.resolvedOptions };
|
|
2153
|
+
await l.callHook("tag:normalise", V), c.tags.push(V.tag);
|
|
2150
2154
|
}
|
|
2151
2155
|
}
|
|
2152
|
-
return await l.callHook("tags:beforeResolve",
|
|
2156
|
+
return await l.callHook("tags:beforeResolve", c), await l.callHook("tags:resolve", c), await l.callHook("tags:afterResolve", c), c.tags;
|
|
2153
2157
|
},
|
|
2154
2158
|
ssr: o
|
|
2155
2159
|
};
|
|
@@ -2163,25 +2167,25 @@ function Gn(n = {}) {
|
|
|
2163
2167
|
On,
|
|
2164
2168
|
jn,
|
|
2165
2169
|
...n?.plugins || []
|
|
2166
|
-
].forEach((
|
|
2170
|
+
].forEach((c) => p.use(c)), p.hooks.callHook("init", p), p;
|
|
2167
2171
|
}
|
|
2168
2172
|
const Wn = ro.startsWith("3");
|
|
2169
2173
|
function Kn(n) {
|
|
2170
2174
|
return typeof n == "function" ? n() : t(n);
|
|
2171
2175
|
}
|
|
2172
|
-
function
|
|
2176
|
+
function ot(n, l = "") {
|
|
2173
2177
|
if (n instanceof Promise)
|
|
2174
2178
|
return n;
|
|
2175
2179
|
const o = Kn(n);
|
|
2176
|
-
return !n || !o ? o : Array.isArray(o) ? o.map((e) =>
|
|
2177
|
-
Object.entries(o).map(([e, i]) => e === "titleTemplate" || e.startsWith("on") ? [e, t(i)] : [e,
|
|
2180
|
+
return !n || !o ? o : Array.isArray(o) ? o.map((e) => ot(e, l)) : typeof o == "object" ? Object.fromEntries(
|
|
2181
|
+
Object.entries(o).map(([e, i]) => e === "titleTemplate" || e.startsWith("on") ? [e, t(i)] : [e, ot(i, e)])
|
|
2178
2182
|
) : o;
|
|
2179
2183
|
}
|
|
2180
2184
|
const xn = {
|
|
2181
2185
|
hooks: {
|
|
2182
2186
|
"entries:resolve": function(n) {
|
|
2183
2187
|
for (const l of n.entries)
|
|
2184
|
-
l.resolvedInput =
|
|
2188
|
+
l.resolvedInput = ot(l.input);
|
|
2185
2189
|
}
|
|
2186
2190
|
}
|
|
2187
2191
|
}, zn = "usehead";
|
|
@@ -2207,20 +2211,20 @@ class ea extends HTMLElement {
|
|
|
2207
2211
|
this.vueApp.unmount();
|
|
2208
2212
|
}
|
|
2209
2213
|
connectedCallback() {
|
|
2210
|
-
const l = typeof
|
|
2214
|
+
const l = typeof Pe == "function" ? Pe.options : Pe;
|
|
2211
2215
|
let o = Array.isArray(l.props) ? l.props : Object.keys(l.props || {});
|
|
2212
|
-
const e = (
|
|
2216
|
+
const e = (c) => c.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (r, d) => (d ? "-" : "") + r.toLowerCase()), i = (c) => c.replace(/-./g, (r) => r[1].toUpperCase()), s = {};
|
|
2213
2217
|
o = o.map(e);
|
|
2214
2218
|
const m = {};
|
|
2215
|
-
for (const
|
|
2216
|
-
const d =
|
|
2217
|
-
d.length > 1 && (m[d[0]] || (m[d[0]] = {}), m[d[0]][i(d[1])] =
|
|
2219
|
+
for (const c of this.attributes) {
|
|
2220
|
+
const d = c.name.split(".");
|
|
2221
|
+
d.length > 1 && (m[d[0]] || (m[d[0]] = {}), m[d[0]][i(d[1])] = c.value);
|
|
2218
2222
|
}
|
|
2219
|
-
for (const
|
|
2220
|
-
let r = this.attributes.getNamedItem(
|
|
2221
|
-
m.hasOwnProperty(
|
|
2223
|
+
for (const c of o) {
|
|
2224
|
+
let r = this.attributes.getNamedItem(c)?.value;
|
|
2225
|
+
m.hasOwnProperty(c) && (r = m[c]), s[c] = r;
|
|
2222
2226
|
}
|
|
2223
|
-
this.vueApp =
|
|
2227
|
+
this.vueApp = co(Pe, s), ko(this.vueApp), this.vueApp.provide("emitter", Xn), this.vueApp.use(Qn), this.vueApp.use(Zn), this.vueApp.use(Ho), this.vueApp.use(mo), this.vueApp.use(Vo), this.vueApp.use(_o, { bootstrap: !0 });
|
|
2224
2228
|
const p = document.createElement("div");
|
|
2225
2229
|
this.vueApp.mount(p), this.appendChild(p.children[0]);
|
|
2226
2230
|
}
|