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