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