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