@konnectio/core 4.0.68 → 4.0.70
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-B2nkVHpm.js} +4 -4
- package/dist/ActionField-B2nkVHpm.js.br +0 -0
- package/dist/{AvailabilitySkeleton-CHDZOB_s.js → AvailabilitySkeleton-B861c-E-.js} +7 -7
- package/dist/AvailabilitySkeleton-B861c-E-.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-C7LESH9d.js} +725 -727
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C7LESH9d.js.br +0 -0
- package/dist/{CheckoutWindow-BzoYJ5v5.js → CheckoutWindow-DM8NiuXR.js} +5 -5
- package/dist/CheckoutWindow-DM8NiuXR.js.br +0 -0
- package/dist/{ErrorMessage-Cc8QanBP.js → ErrorMessage-DHi8BQ6u.js} +4 -4
- package/dist/ErrorMessage-DHi8BQ6u.js.br +0 -0
- package/dist/{EventAvailabilityForm-CdmiDieo.js → EventAvailabilityForm-DPn-Gce_.js} +25 -25
- package/dist/EventAvailabilityForm-DPn-Gce_.js.br +0 -0
- package/dist/{Field-DMMbo6LE.js → Field-DxsuquwZ.js} +9 -9
- package/dist/Field-DxsuquwZ.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-CvsS3MPq.js} +6 -6
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CvsS3MPq.js.br +0 -0
- package/dist/{TermsOfService-YxQsHH5-.js → TermsOfService-D_Jn5Zg_.js} +13 -13
- package/dist/TermsOfService-D_Jn5Zg_.js.br +0 -0
- package/dist/{_-DZrN6t_6.js → _-DvTtY1Ya.js} +3 -3
- package/dist/{_.vue_vue_type_style_index_0_lang-C4mV4F7L.js → _.vue_vue_type_style_index_0_lang-B9P9xmGD.js} +4 -4
- package/dist/_.vue_vue_type_style_index_0_lang-B9P9xmGD.js.br +0 -0
- package/dist/{_commonjsHelpers-BqFuLgLz.js → _commonjsHelpers-zI2TZkyo.js} +2 -2
- package/dist/_commonjsHelpers-zI2TZkyo.js.br +0 -0
- package/dist/{_sentry-release-injection-file-Bgn3HK9h.js → _sentry-release-injection-file-DvEZJp-B.js} +3 -3
- package/dist/_sentry-release-injection-file-DvEZJp-B.js.br +0 -0
- package/dist/availability.js +39 -40
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +27 -21
- 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 +18 -19
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +63 -64
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-D-wdGVBh.js → giftCard-awGtNaxi.js} +15 -15
- package/dist/giftCard-awGtNaxi.js.br +0 -0
- package/dist/hotel.js +708 -715
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-D3cbfEtC.js → masonry.plugin-BrevVGLo.js} +10 -10
- package/dist/masonry.plugin-BrevVGLo.js.br +0 -0
- package/dist/{mitt-BWKhoTz3.js → mitt-CHkQwqe3.js} +2 -2
- package/dist/mitt-CHkQwqe3.js.br +0 -0
- package/dist/polyfill.js +13681 -4661
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-B8UHQIzP.js → style-CTJOBGnG.js} +195 -188
- package/dist/style-CTJOBGnG.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/tracing-1TgukAt0.js +2643 -0
- package/dist/tracing-1TgukAt0.js.br +0 -0
- package/package.json +5 -5
- 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.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 {
|
|
5
|
-
import { A as
|
|
6
|
-
import { R as
|
|
7
|
-
import { S as
|
|
8
|
-
import { C as
|
|
9
|
-
import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-
|
|
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 We, B as xe, f as y, i as _, s as G, F as O, l as Ke, x as Qe, v as q, h as Se, c as J, p as Vt, j as Tt, o as ot, 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-DvEZJp-B.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-CHkQwqe3.js";
|
|
3
|
+
import { c as vo, G as yo } from "./style-CTJOBGnG.js";
|
|
4
|
+
import { d as Te, x as he, u as Ve, I as K, s as me, y as Xe, l as ut, i as ce, g as le, _ as fe, n as Ne, z as wt, b as Ze, c as pe, B as $t, A as ct, T as ue, p as go, D as bo, a as ko, C as _o, h as pt, j as Vo, k as mt, m as To } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CvsS3MPq.js";
|
|
5
|
+
import { A as wo, H as $o } from "./AvailabilitySkeleton-B861c-E-.js";
|
|
6
|
+
import { R as Co, B as Me, L as Ao, S as Po, M as Do, a as Je, C as So, T as Ho, V as Io } from "./masonry.plugin-BrevVGLo.js";
|
|
7
|
+
import { S as Eo } from "./TermsOfService-D_Jn5Zg_.js";
|
|
8
|
+
import { C as Ee, B as Bo, P as No, a as Mo } from "./CheckoutWindow-DM8NiuXR.js";
|
|
9
|
+
import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C7LESH9d.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] = "df787e01-d77c-4f62-a085-7d0635710c6a", n._sentryDebugIdIdentifier = "sentry-dbid-df787e01-d77c-4f62-a085-7d0635710c6a");
|
|
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, W) => (u(), A(Co, {
|
|
67
|
+
"discount-code": e(U),
|
|
68
|
+
"onUpdate:discountCode": W[4] || (W[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
|
+
Ke(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,15 +90,15 @@ 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
|
-
Qe(v(
|
|
94
|
-
y(
|
|
93
|
+
Qe(v(e(ce)(Ce.name)) + " ( ", 1),
|
|
94
|
+
y(K, {
|
|
95
95
|
icon: "male",
|
|
96
96
|
type: "fas",
|
|
97
97
|
color: "font"
|
|
98
98
|
}),
|
|
99
99
|
a("span", null, v(se.adultsCount), 1),
|
|
100
100
|
se.childrenCount > 0 ? (u(), h(O, { key: 0 }, [
|
|
101
|
-
y(
|
|
101
|
+
y(K, {
|
|
102
102
|
icon: "child",
|
|
103
103
|
type: "fas",
|
|
104
104
|
color: "font"
|
|
@@ -109,58 +109,58 @@ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnecti
|
|
|
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": W[0] || (W[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": W[2] || (W[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: W[1] || (W[1] = Se((M) => ke.value = !0, ["prevent"]))
|
|
172
172
|
}, [
|
|
173
|
-
a("span", null, v(
|
|
173
|
+
a("span", null, v(e(ut)(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
|
+
Ke(te.$slots, "actions", {}, void 0, !0),
|
|
182
|
+
y(Eo, {
|
|
183
183
|
modelValue: ke.value,
|
|
184
|
-
"onUpdate:modelValue":
|
|
185
|
-
description:
|
|
184
|
+
"onUpdate:modelValue": W[3] || (W[3] = (M) => ke.value = M),
|
|
185
|
+
description: e(Y)
|
|
186
186
|
}, null, 8, ["modelValue", "description"])
|
|
187
187
|
])
|
|
188
188
|
]),
|
|
189
189
|
navigation: $(() => [
|
|
190
|
-
|
|
190
|
+
Ke(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
|
-
We(a("span",
|
|
202
|
-
y(
|
|
200
|
+
a("span", null, v(e(Re)(e(E))), 1),
|
|
201
|
+
We(a("span", Lo, [
|
|
202
|
+
y(K, {
|
|
203
203
|
icon: "exclamation-triangle",
|
|
204
204
|
type: "fas"
|
|
205
205
|
})
|
|
206
206
|
], 512), [
|
|
207
|
-
[
|
|
207
|
+
[xe, 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
|
-
We(a("span",
|
|
216
|
-
y(
|
|
214
|
+
a("span", null, v(e(t) ? e(me)(e(R)) : `${e(me)(e(R))}, ${e(o) ? e(s) : e(r)}`), 1),
|
|
215
|
+
We(a("span", Uo, [
|
|
216
|
+
y(K, {
|
|
217
217
|
icon: "exclamation-triangle",
|
|
218
218
|
type: "fas"
|
|
219
219
|
})
|
|
220
220
|
], 512), [
|
|
221
|
-
[
|
|
221
|
+
[xe, 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
|
-
We(a("span",
|
|
230
|
-
y(
|
|
228
|
+
a("span", null, v(e(t) ? e(me)(e(k)) : `${e(me)(e(k))}, ${e(i) ? e(m) : e(d)}`), 1),
|
|
229
|
+
We(a("span", Fo, [
|
|
230
|
+
y(K, {
|
|
231
231
|
icon: "exclamation-triangle",
|
|
232
232
|
type: "fas"
|
|
233
233
|
})
|
|
234
234
|
], 512), [
|
|
235
|
-
[
|
|
235
|
+
[xe, 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(Xe)(e(R), e(k))) + " " + v(e(ut)(e(Xe)(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
|
-
}), ze = /* @__PURE__ */ fe(
|
|
254
|
+
}), ze = /* @__PURE__ */ fe(Wo, [["__scopeId", "data-v-4bc6b7bc"]]), xo = (n) => (Vt("data-v-69fe83d8"), n = n(), Tt(), n), Ko = { class: "konnectio-room-config-option" }, Jo = { key: 0 }, zo = { class: "konnectio-selected-room-config" }, Yo = { class: "konnectio-selected-room-config-people" }, Qo = { key: 0 }, Xo = { class: "konnectio-selected-room-config-price" }, Zo = /* @__PURE__ */ xo(() => /* @__PURE__ */ a("span", null, null, -1)), el = /* @__PURE__ */ Z({
|
|
255
255
|
__name: "RoomConfigField",
|
|
256
256
|
props: {
|
|
257
257
|
modelValue: {},
|
|
@@ -262,15 +262,15 @@ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnecti
|
|
|
262
262
|
},
|
|
263
263
|
emits: ["update:modelValue"],
|
|
264
264
|
setup(n, { emit: l }) {
|
|
265
|
-
const { t
|
|
265
|
+
const { t } = ae(), { currency: o } = X(Te()), i = l, s = n;
|
|
266
266
|
function m(c) {
|
|
267
267
|
i("update:modelValue", c);
|
|
268
268
|
}
|
|
269
|
-
const p =
|
|
269
|
+
const p = J({
|
|
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,
|
|
@@ -286,14 +286,14 @@ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnecti
|
|
|
286
286
|
option: $(({ data: d }) => [
|
|
287
287
|
a("span", Ko, [
|
|
288
288
|
a("div", null, [
|
|
289
|
-
y(
|
|
289
|
+
y(K, {
|
|
290
290
|
icon: "male",
|
|
291
291
|
type: "fas",
|
|
292
292
|
color: "font"
|
|
293
293
|
}),
|
|
294
294
|
a("span", null, v(`${d.adults}`), 1),
|
|
295
|
-
d.children > 0 ? (u(), h("span",
|
|
296
|
-
y(
|
|
295
|
+
d.children > 0 ? (u(), h("span", Jo, [
|
|
296
|
+
y(K, {
|
|
297
297
|
icon: "child",
|
|
298
298
|
type: "fas",
|
|
299
299
|
color: "font"
|
|
@@ -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
|
-
Qe(" " + v(`(${
|
|
319
|
+
a("div", Xo, [
|
|
320
|
+
Zo,
|
|
321
|
+
Qe(" " + 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 =
|
|
344
|
+
const s = J(() => 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 } = wt(), f = (k, D) =>
|
|
347
|
+
}))), { hideAvailableRoomAmount: m, autoSelectRateId: p } = X(Te()), { roomSelect: c } = X(he()), { addToCart: r, removeFromCart: d } = wt(), f = (k, D) => t.room.rates.find((E) => E.id === k)?.occupantRates.find((E) => E.index === D), T = J(() => 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 =
|
|
353
|
+
})) || [] : [], I = J(() => 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
381
|
ot(() => {
|
|
382
|
-
|
|
382
|
+
B();
|
|
383
383
|
});
|
|
384
|
-
const R =
|
|
384
|
+
const R = J(() => 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",
|
|
453
|
+
a("ul", al, [
|
|
454
454
|
y(Ze, {
|
|
455
|
-
modelValue:
|
|
456
|
-
"onUpdate:modelValue": (ee) =>
|
|
457
|
-
description:
|
|
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 = J(() => {
|
|
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
|
+
}), At = /* @__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 = J(() => t.roomGroups.reduce(
|
|
550
550
|
(c, r) => c < r.extraPrice ? c : r.extraPrice,
|
|
551
551
|
1 / 0
|
|
552
|
-
)), i =
|
|
553
|
-
if (
|
|
552
|
+
)), i = J(() => {
|
|
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($t).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(At, {
|
|
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 = J(() => Xe(o.fromDate, o.toDate) === 1), m = J(() => [{
|
|
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
627
|
return ot(() => {
|
|
628
|
-
s.value && (i.value = [new Date(
|
|
629
|
-
}), (d, f) => (u(),
|
|
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($t).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",
|
|
642
|
+
a("div", ml, [
|
|
643
643
|
y(Ct, {
|
|
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(At, {
|
|
667
667
|
modelValue: p.value,
|
|
668
668
|
"onUpdate:modelValue": f[1] || (f[1] = (T) => p.value = T),
|
|
669
669
|
title: d.name,
|
|
@@ -682,32 +682,25 @@ const al = /* @__PURE__ */ Z({
|
|
|
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(Ct, {
|
|
711
704
|
modelValue: s.value,
|
|
712
705
|
"onUpdate:modelValue": p[0] || (p[0] = (c) => s.value = c),
|
|
713
706
|
type: "time",
|
|
@@ -719,10 +712,12 @@ const al = /* @__PURE__ */ Z({
|
|
|
719
712
|
"icon-color": m.iconColor,
|
|
720
713
|
"auto-apply": !0,
|
|
721
714
|
required: m.required,
|
|
722
|
-
readonly: m.readonly
|
|
723
|
-
|
|
715
|
+
readonly: m.readonly,
|
|
716
|
+
"min-time": m.minTime,
|
|
717
|
+
"max-time": m.maxTime
|
|
718
|
+
}, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly", "min-time", "max-time"]));
|
|
724
719
|
}
|
|
725
|
-
}),
|
|
720
|
+
}), vl = { style: { display: "flex", "align-items": "baseline" } }, yl = /* @__PURE__ */ Z({
|
|
726
721
|
__name: "CountryField",
|
|
727
722
|
props: {
|
|
728
723
|
modelValue: {},
|
|
@@ -734,19 +729,19 @@ const al = /* @__PURE__ */ Z({
|
|
|
734
729
|
},
|
|
735
730
|
emits: ["update:modelValue"],
|
|
736
731
|
setup(n, { emit: l }) {
|
|
737
|
-
const { t
|
|
732
|
+
const { t } = ae(), o = l, i = n;
|
|
738
733
|
function s(p) {
|
|
739
|
-
|
|
734
|
+
o("update:modelValue", p);
|
|
740
735
|
}
|
|
741
|
-
const m =
|
|
736
|
+
const m = J({
|
|
742
737
|
get: () => i.modelValue,
|
|
743
738
|
set: (p) => s(p)
|
|
744
739
|
});
|
|
745
|
-
return (p, c) => (u(),
|
|
740
|
+
return (p, c) => (u(), A(Ne, {
|
|
746
741
|
modelValue: m.value,
|
|
747
742
|
"onUpdate:modelValue": c[0] || (c[0] = (r) => m.value = r),
|
|
748
743
|
label: p.label,
|
|
749
|
-
placeholder:
|
|
744
|
+
placeholder: e(t)("booking.reservation.countryPlaceholder"),
|
|
750
745
|
labelKey: "name",
|
|
751
746
|
valueKey: "id",
|
|
752
747
|
options: p.options,
|
|
@@ -759,7 +754,7 @@ const al = /* @__PURE__ */ Z({
|
|
|
759
754
|
a("span", null, v(r.name), 1)
|
|
760
755
|
]),
|
|
761
756
|
"selected-option": $(({ data: r }) => [
|
|
762
|
-
a("div",
|
|
757
|
+
a("div", vl, [
|
|
763
758
|
a("i", {
|
|
764
759
|
class: Ie(["konnectio-flag-icon", r.iso])
|
|
765
760
|
}, null, 2),
|
|
@@ -769,7 +764,7 @@ const al = /* @__PURE__ */ Z({
|
|
|
769
764
|
_: 1
|
|
770
765
|
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
771
766
|
}
|
|
772
|
-
}),
|
|
767
|
+
}), gl = /* @__PURE__ */ fe(yl, [["__scopeId", "data-v-1462612d"]]), bl = /* @__PURE__ */ Z({
|
|
773
768
|
__name: "NameField",
|
|
774
769
|
props: {
|
|
775
770
|
modelValue: {},
|
|
@@ -791,19 +786,19 @@ const al = /* @__PURE__ */ Z({
|
|
|
791
786
|
},
|
|
792
787
|
emits: ["update:modelValue", "update:title"],
|
|
793
788
|
setup(n, { emit: l }) {
|
|
794
|
-
const
|
|
789
|
+
const t = n, o = l, i = t.id || ct(), s = ne(""), m = ne(2);
|
|
795
790
|
function p() {
|
|
796
|
-
|
|
791
|
+
o("update:modelValue", s.value);
|
|
797
792
|
}
|
|
798
793
|
He(m, (r) => {
|
|
799
|
-
|
|
794
|
+
o("update:title", r);
|
|
800
795
|
});
|
|
801
796
|
const { t: c } = ae();
|
|
802
797
|
return ot(() => {
|
|
803
|
-
|
|
804
|
-
}), (r, d) => (u(),
|
|
798
|
+
t.modelValue && (s.value = t.modelValue), t.title && (m.value = t.title);
|
|
799
|
+
}), (r, d) => (u(), A(go, {
|
|
805
800
|
label: r.label,
|
|
806
|
-
id:
|
|
801
|
+
id: e(i),
|
|
807
802
|
required: r.required,
|
|
808
803
|
type: "fresh-booking-name-field",
|
|
809
804
|
readonly: r.readonly,
|
|
@@ -816,33 +811,33 @@ const al = /* @__PURE__ */ Z({
|
|
|
816
811
|
{ "no-title": r.excludeTitle }
|
|
817
812
|
])
|
|
818
813
|
}, [
|
|
819
|
-
r.excludeTitle ? _("", !0) : (u(),
|
|
814
|
+
r.excludeTitle ? _("", !0) : (u(), A(Ne, {
|
|
820
815
|
key: 0,
|
|
821
816
|
modelValue: m.value,
|
|
822
817
|
"onUpdate:modelValue": d[0] || (d[0] = (f) => m.value = f),
|
|
823
|
-
id:
|
|
818
|
+
id: e(ct)(),
|
|
824
819
|
icon: r.icon,
|
|
825
820
|
"icon-color": r.iconColor,
|
|
826
821
|
"icon-type": r.iconType,
|
|
827
822
|
options: [
|
|
828
823
|
{
|
|
829
|
-
label:
|
|
824
|
+
label: e(c)("booking.reservation.noNameTitle"),
|
|
830
825
|
value: 1
|
|
831
826
|
},
|
|
832
827
|
{
|
|
833
|
-
label:
|
|
828
|
+
label: e(c)("booking.reservation.nameTitleMr"),
|
|
834
829
|
value: 2
|
|
835
830
|
},
|
|
836
831
|
{
|
|
837
|
-
label:
|
|
832
|
+
label: e(c)("booking.reservation.nameTitleMs"),
|
|
838
833
|
value: 3
|
|
839
834
|
},
|
|
840
835
|
{
|
|
841
|
-
label:
|
|
836
|
+
label: e(c)("booking.reservation.nameTitleMrs"),
|
|
842
837
|
value: 4
|
|
843
838
|
},
|
|
844
839
|
{
|
|
845
|
-
label:
|
|
840
|
+
label: e(c)("booking.reservation.nameTitleDr"),
|
|
846
841
|
value: 5
|
|
847
842
|
}
|
|
848
843
|
],
|
|
@@ -857,7 +852,7 @@ const al = /* @__PURE__ */ Z({
|
|
|
857
852
|
type: "text",
|
|
858
853
|
name: "name",
|
|
859
854
|
autocomplete: "name",
|
|
860
|
-
id:
|
|
855
|
+
id: e(i),
|
|
861
856
|
icon: r.excludeTitle ? r.icon : void 0,
|
|
862
857
|
"icon-color": r.iconColor,
|
|
863
858
|
"icon-type": r.iconType,
|
|
@@ -873,63 +868,63 @@ const al = /* @__PURE__ */ Z({
|
|
|
873
868
|
_: 1
|
|
874
869
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
875
870
|
}
|
|
876
|
-
}),
|
|
871
|
+
}), 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
872
|
__name: "HotelSkeleton",
|
|
878
873
|
setup(n) {
|
|
879
|
-
return (l,
|
|
880
|
-
a("div", _l, [
|
|
881
|
-
y(To, { hotel: "" }),
|
|
882
|
-
y(Co)
|
|
883
|
-
]),
|
|
874
|
+
return (l, t) => (u(), h("div", _l, [
|
|
884
875
|
a("div", Vl, [
|
|
876
|
+
y(wo, { hotel: "" }),
|
|
877
|
+
y(Ao)
|
|
878
|
+
]),
|
|
879
|
+
a("div", Tl, [
|
|
885
880
|
y(Po)
|
|
886
881
|
])
|
|
887
882
|
]));
|
|
888
883
|
}
|
|
889
|
-
}),
|
|
890
|
-
const
|
|
884
|
+
}), $l = /* @__PURE__ */ fe(wl, [["__scopeId", "data-v-1bb21da4"]]), Cl = (n) => (Vt("data-v-8e803f2d"), n = n(), Tt(), n), Al = { id: "booking-availability-container" }, Pl = { id: "booking-availability-controls" };
|
|
885
|
+
const Dl = { key: 1 }, Sl = { key: 0 }, Hl = {
|
|
891
886
|
key: 0,
|
|
892
887
|
id: "booking-availability-packages"
|
|
893
|
-
},
|
|
888
|
+
}, Il = {
|
|
894
889
|
key: 0,
|
|
895
890
|
class: "konnectio-hotel-availability-title"
|
|
896
|
-
},
|
|
891
|
+
}, El = { id: "booking-availability-packages-wrapper" }, Bl = { key: 1 }, Nl = {
|
|
897
892
|
key: 0,
|
|
898
893
|
class: "konnectio-hotel-availability-title"
|
|
899
|
-
},
|
|
894
|
+
}, Ml = { id: "konnectio-listings" }, Rl = {
|
|
900
895
|
key: 2,
|
|
901
896
|
id: "booking-availability-packages"
|
|
902
|
-
},
|
|
897
|
+
}, Ll = { class: "konnectio-hotel-availability-title" }, Ul = { id: "booking-availability-packages-wrapper" }, Fl = {
|
|
903
898
|
key: 3,
|
|
904
899
|
id: "booking-availability-no-listings",
|
|
905
900
|
class: "konnectio-panel"
|
|
906
|
-
},
|
|
901
|
+
}, Ol = {
|
|
907
902
|
key: 1,
|
|
908
903
|
id: "booking-availability-no-listings"
|
|
909
|
-
},
|
|
904
|
+
}, jl = {
|
|
910
905
|
key: 2,
|
|
911
906
|
id: "reservation-availability-next-dates"
|
|
912
|
-
},
|
|
913
|
-
const
|
|
907
|
+
}, ql = { class: "konnectio-hotel-availability-title" }, Gl = { class: "reservation-special-offers-grid" }, Wl = ["title"];
|
|
908
|
+
const xl = {
|
|
914
909
|
key: 2,
|
|
915
910
|
class: "konnectio-panel"
|
|
916
911
|
}, Kl = {
|
|
917
912
|
key: 3,
|
|
918
913
|
class: "konnectio-listing-loading"
|
|
919
|
-
},
|
|
914
|
+
}, Jl = { class: "konnectio-panel" }, zl = {
|
|
920
915
|
key: 0,
|
|
921
916
|
id: "konnectio-hotel-addons"
|
|
922
917
|
};
|
|
923
|
-
const
|
|
918
|
+
const Yl = { class: "konnectio-event-addons-price" }, Ql = { key: 1 }, Xl = { class: "konnectio-table-addons-information" }, Zl = { class: "konnectio-table-addons-option" }, en = {
|
|
924
919
|
key: 1,
|
|
925
920
|
id: "konnectio-hotel-addons"
|
|
926
|
-
},
|
|
927
|
-
const
|
|
921
|
+
}, tn = { class: "konnectio-table with-lines" };
|
|
922
|
+
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
923
|
name: "HotelLayout",
|
|
929
924
|
__name: "Hotel",
|
|
930
925
|
props: {
|
|
931
926
|
accessToken: {},
|
|
932
|
-
headerLayout: { default:
|
|
927
|
+
headerLayout: { default: bo.Minimal },
|
|
933
928
|
onlyShow: { default: "everything" },
|
|
934
929
|
hideAddons: { default: "no" },
|
|
935
930
|
disableDefaultLocation: { default: "no" },
|
|
@@ -937,7 +932,7 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
937
932
|
styling: {}
|
|
938
933
|
},
|
|
939
934
|
setup(n) {
|
|
940
|
-
const l = io(() => import("./_-
|
|
935
|
+
const l = io(() => import("./_-DvTtY1Ya.js")), t = n, { t: o } = ae(), {
|
|
941
936
|
currentLocation: i,
|
|
942
937
|
templateID: s,
|
|
943
938
|
templateAddons: m,
|
|
@@ -951,28 +946,28 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
951
946
|
name: w,
|
|
952
947
|
nameTitle: I,
|
|
953
948
|
email: N,
|
|
954
|
-
phone:
|
|
949
|
+
phone: B,
|
|
955
950
|
firmName: R,
|
|
956
951
|
postal: k,
|
|
957
952
|
city: D,
|
|
958
|
-
address:
|
|
953
|
+
address: E,
|
|
959
954
|
country: z,
|
|
960
|
-
remark:
|
|
955
|
+
remark: L,
|
|
961
956
|
allergies: Y,
|
|
962
|
-
roomSelect:
|
|
957
|
+
roomSelect: U,
|
|
963
958
|
roomDisplay: ie,
|
|
964
959
|
hasValidRoomSelection: ee,
|
|
965
960
|
availabilityData: j,
|
|
966
961
|
selectionHasNoAddons: ve,
|
|
967
962
|
isAvailabilityDataAvailable: we,
|
|
968
963
|
getSelectedPackageRoom: be,
|
|
969
|
-
selectedPackage:
|
|
964
|
+
selectedPackage: Re,
|
|
970
965
|
isSearchOutdated: ke,
|
|
971
966
|
currentChildren: $e,
|
|
972
967
|
isTemplateReservation: te
|
|
973
968
|
} = X(he()), {
|
|
974
|
-
adults:
|
|
975
|
-
children:
|
|
969
|
+
adults: W,
|
|
970
|
+
children: M,
|
|
976
971
|
location: ye,
|
|
977
972
|
arrivalDate: Le,
|
|
978
973
|
departureDate: Ce
|
|
@@ -980,41 +975,43 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
980
975
|
currency: _e,
|
|
981
976
|
arrivalEarliest: nt,
|
|
982
977
|
arrivalLatest: It,
|
|
983
|
-
departureEarliest:
|
|
984
|
-
departureLatest:
|
|
978
|
+
departureEarliest: Et,
|
|
979
|
+
departureLatest: Bt,
|
|
985
980
|
enableTracking: Nt,
|
|
986
|
-
hideArrivalDepartureInputs:
|
|
981
|
+
hideArrivalDepartureInputs: Mt,
|
|
987
982
|
disableArrivalUserSelection: Fe,
|
|
988
|
-
disableNamePrefix:
|
|
983
|
+
disableNamePrefix: Rt,
|
|
989
984
|
disableDepartureUserSelection: Oe,
|
|
990
985
|
disableTravelingFor: Lt,
|
|
991
986
|
disableTravelingForBleasure: Ut,
|
|
992
987
|
disableCompanyField: Ft,
|
|
993
988
|
hasPaymentGateway: Ot,
|
|
994
989
|
maxAdultAmount: at,
|
|
995
|
-
maxChildAmount: it
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
990
|
+
maxChildAmount: it,
|
|
991
|
+
defaultAdultAmount: jt,
|
|
992
|
+
defaultChildAmount: qt
|
|
993
|
+
} = X(Te()), { beginCheckout: Gt } = wt(), { display: je } = ko(), {
|
|
994
|
+
resetTemplate: Wt,
|
|
995
|
+
resetDiscountVoucher: xt,
|
|
996
|
+
createReservation: Kt,
|
|
997
|
+
fetchMetadata: Jt,
|
|
1001
998
|
fetchAvailabilityData: st,
|
|
1002
999
|
filterAddons: rt
|
|
1003
|
-
} = he(),
|
|
1000
|
+
} = he(), zt = ne(!0), Yt = [
|
|
1004
1001
|
{
|
|
1005
1002
|
id: "availability",
|
|
1006
|
-
label:
|
|
1003
|
+
label: o("booking.availability.title"),
|
|
1007
1004
|
icon: "search"
|
|
1008
1005
|
},
|
|
1009
1006
|
{
|
|
1010
1007
|
id: "addons",
|
|
1011
|
-
label:
|
|
1008
|
+
label: o("booking.reservation.title"),
|
|
1012
1009
|
icon: "concierge-bell",
|
|
1013
1010
|
hidden: ve.value
|
|
1014
1011
|
},
|
|
1015
1012
|
{
|
|
1016
1013
|
id: "reservation",
|
|
1017
|
-
label:
|
|
1014
|
+
label: o("booking.reservation.title"),
|
|
1018
1015
|
icon: "concierge-bell"
|
|
1019
1016
|
},
|
|
1020
1017
|
{
|
|
@@ -1023,118 +1020,112 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1023
1020
|
},
|
|
1024
1021
|
{
|
|
1025
1022
|
id: "confirmation",
|
|
1026
|
-
label:
|
|
1023
|
+
label: o("booking.confirmation.title"),
|
|
1027
1024
|
icon: "calendar-check"
|
|
1028
1025
|
}
|
|
1029
|
-
],
|
|
1026
|
+
], Qt = J(() => {
|
|
1030
1027
|
const b = [
|
|
1031
1028
|
{
|
|
1032
|
-
label:
|
|
1029
|
+
label: o("booking.reservation.business"),
|
|
1033
1030
|
value: "Business"
|
|
1034
1031
|
},
|
|
1035
1032
|
{
|
|
1036
|
-
label:
|
|
1033
|
+
label: o("booking.reservation.pleasure"),
|
|
1037
1034
|
value: "Pleasure"
|
|
1038
1035
|
}
|
|
1039
1036
|
];
|
|
1040
1037
|
return Ut.value || b.push({
|
|
1041
|
-
label:
|
|
1038
|
+
label: o("booking.reservation.bleasure"),
|
|
1042
1039
|
value: "Bleasure"
|
|
1043
1040
|
}), b;
|
|
1044
|
-
}),
|
|
1041
|
+
}), Xt = J(() => {
|
|
1045
1042
|
const b = j.value.roomGroups.slice();
|
|
1046
|
-
function V(x,
|
|
1047
|
-
return
|
|
1043
|
+
function V(x, P) {
|
|
1044
|
+
return zt.value === !0 ? x.pricesFrom > P.pricesFrom ? -1 : 1 : x.pricesFrom > P.pricesFrom ? 1 : -1;
|
|
1048
1045
|
}
|
|
1049
1046
|
return b.sort(V);
|
|
1050
|
-
}),
|
|
1051
|
-
parseInt(nt.value.split(":")[0]),
|
|
1052
|
-
parseInt(It.value.split(":")[0])
|
|
1053
|
-
]]), Xt = W(() => [[
|
|
1054
|
-
parseInt(Bt.value.split(":")[0]),
|
|
1055
|
-
parseInt(Et.value.split(":")[0])
|
|
1056
|
-
]]), qe = W(() => e.hideAddons === "yes" || te.value && e.hideAddons === "packages" || !te.value && e.hideAddons === "rooms");
|
|
1047
|
+
}), qe = J(() => t.hideAddons === "yes" || te.value && t.hideAddons === "packages" || !te.value && t.hideAddons === "rooms");
|
|
1057
1048
|
function dt(b) {
|
|
1058
|
-
qe.value || ve.value ? b(2) : b(),
|
|
1049
|
+
qe.value || ve.value ? b(2) : b(), xt();
|
|
1059
1050
|
}
|
|
1060
1051
|
async function Zt(b, V) {
|
|
1061
|
-
await
|
|
1052
|
+
await Kt(b, V);
|
|
1062
1053
|
}
|
|
1063
1054
|
function eo(b) {
|
|
1064
|
-
Nt.value &&
|
|
1055
|
+
Nt.value && Gt(), qe.value || ve.value ? b(2) : b();
|
|
1065
1056
|
}
|
|
1066
1057
|
function to() {
|
|
1067
|
-
const b =
|
|
1058
|
+
const b = Vo("history", {
|
|
1068
1059
|
removeNullishValues: !0
|
|
1069
|
-
}), V = parseInt(b.a), x = parseInt(b.c),
|
|
1060
|
+
}), V = parseInt(b.a), x = parseInt(b.c), P = parseInt(b.hid), S = parseInt(b.n), g = b.ci, F = b.co, H = b.id;
|
|
1070
1061
|
let oe = !1;
|
|
1071
|
-
if (isNaN(V) || (V > at.value ?
|
|
1072
|
-
message:
|
|
1062
|
+
if (isNaN(V) || (V > at.value ? W.value = at.value : W.value = V, W.value === jt.value && (b.a = void 0)), isNaN(x) || (x > it.value ? M.value = it.value : M.value = x, 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) : je({
|
|
1063
|
+
message: o("alert.error.hotelIdNotFound"),
|
|
1073
1064
|
type: "error"
|
|
1074
1065
|
})), g && F)
|
|
1075
1066
|
if (mt(g) && mt(F)) {
|
|
1076
1067
|
const ge = new Date(g), re = new Date(F);
|
|
1077
1068
|
ge <= re ? (Le.value = ge, Ce.value = re) : (b.ci = void 0, b.co = void 0, je({
|
|
1078
|
-
message:
|
|
1069
|
+
message: o("alert.error.invalidDateRange"),
|
|
1079
1070
|
type: "error"
|
|
1080
1071
|
}));
|
|
1081
1072
|
} else
|
|
1082
1073
|
je({
|
|
1083
|
-
message:
|
|
1074
|
+
message: o("alert.error.wrongDateFormat"),
|
|
1084
1075
|
type: "error"
|
|
1085
1076
|
});
|
|
1086
1077
|
let Q = null;
|
|
1087
|
-
H && (Q = H),
|
|
1078
|
+
H && (Q = H), t.disableDefaultLocation === "yes" && oe === !1 ? (ye.value = void 0, i.value = void 0) : st(Q);
|
|
1088
1079
|
}
|
|
1089
|
-
return (b, V) => (u(),
|
|
1080
|
+
return (b, V) => (u(), A(_o, { styling: b.styling }, {
|
|
1090
1081
|
default: $(() => [
|
|
1091
|
-
(u(),
|
|
1082
|
+
(u(), A(ao, { onResolve: to }, {
|
|
1092
1083
|
default: $(() => [
|
|
1093
|
-
y(
|
|
1084
|
+
y(e(l), {
|
|
1094
1085
|
id: "konnectio-hotel-module",
|
|
1095
1086
|
"access-token": b.accessToken,
|
|
1096
|
-
callback:
|
|
1087
|
+
callback: e(Jt)
|
|
1097
1088
|
}, {
|
|
1098
1089
|
default: $(() => [
|
|
1099
|
-
y(
|
|
1090
|
+
y(Do, {
|
|
1100
1091
|
layout: b.headerLayout,
|
|
1101
|
-
steps:
|
|
1102
|
-
onReset:
|
|
1092
|
+
steps: Yt,
|
|
1093
|
+
onReset: e(Wt)
|
|
1103
1094
|
}, {
|
|
1104
1095
|
availability: $(({ next: x }) => [
|
|
1105
1096
|
y(ze, null, {
|
|
1106
1097
|
form: $(() => [
|
|
1107
|
-
a("div",
|
|
1098
|
+
a("div", Al, [
|
|
1108
1099
|
a("div", Pl, [
|
|
1109
|
-
y(
|
|
1100
|
+
y($o, {
|
|
1110
1101
|
booking: !0,
|
|
1111
1102
|
"selected-location": Number(b.selectedLocation),
|
|
1112
1103
|
"disable-default-location": b.disableDefaultLocation === "yes"
|
|
1113
1104
|
}, null, 8, ["selected-location", "disable-default-location"])
|
|
1114
1105
|
]),
|
|
1115
1106
|
_("", !0),
|
|
1116
|
-
!
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
b.onlyShow !== "packages" ? (u(), h("h2",
|
|
1120
|
-
y(
|
|
1107
|
+
!e(c) && e(we) ? (u(), h("div", Dl, [
|
|
1108
|
+
e(j).roomGroups.length > 0 || e(j).templates.length > 0 || e(j).specialTemplates.length > 0 ? (u(), h("div", Sl, [
|
|
1109
|
+
e(j).templates.length > 0 && b.onlyShow !== "rooms" ? (u(), h("div", Hl, [
|
|
1110
|
+
b.onlyShow !== "packages" ? (u(), h("h2", Il, [
|
|
1111
|
+
y(K, {
|
|
1121
1112
|
icon: "box",
|
|
1122
1113
|
type: "fal",
|
|
1123
1114
|
color: "header"
|
|
1124
1115
|
}),
|
|
1125
|
-
a("span", null, v(o
|
|
1116
|
+
a("span", null, v(e(o)("booking.availability.packagesTitle")), 1)
|
|
1126
1117
|
])) : _("", !0),
|
|
1127
|
-
a("ul",
|
|
1128
|
-
(u(!0), h(O, null, G(
|
|
1129
|
-
id:
|
|
1118
|
+
a("ul", El, [
|
|
1119
|
+
(u(!0), h(O, null, G(e(j).templates, ({
|
|
1120
|
+
id: P,
|
|
1130
1121
|
name: S,
|
|
1131
1122
|
templateRoomGroups: g,
|
|
1132
1123
|
image: F,
|
|
1133
1124
|
description: H,
|
|
1134
1125
|
weekendFee: oe
|
|
1135
|
-
}) => (u(),
|
|
1136
|
-
key:
|
|
1137
|
-
id:
|
|
1126
|
+
}) => (u(), A(pl, {
|
|
1127
|
+
key: P,
|
|
1128
|
+
id: P,
|
|
1138
1129
|
description: H,
|
|
1139
1130
|
name: S,
|
|
1140
1131
|
image: F,
|
|
@@ -1145,34 +1136,34 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1145
1136
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
1146
1137
|
])
|
|
1147
1138
|
])) : _("", !0),
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
y(
|
|
1139
|
+
e(j).roomGroups.length > 0 && b.onlyShow !== "packages" ? (u(), h("div", Bl, [
|
|
1140
|
+
e(j).templates.length > 0 && b.onlyShow !== "rooms" ? (u(), h("h2", Nl, [
|
|
1141
|
+
y(K, {
|
|
1151
1142
|
icon: "house",
|
|
1152
1143
|
type: "fal",
|
|
1153
1144
|
color: "header"
|
|
1154
1145
|
}),
|
|
1155
|
-
a("span", null, v(o
|
|
1146
|
+
a("span", null, v(e(o)("booking.availability.roomsTitle")), 1)
|
|
1156
1147
|
])) : _("", !0),
|
|
1157
|
-
a("ul",
|
|
1158
|
-
(u(!0), h(O, null, G(
|
|
1159
|
-
room:
|
|
1148
|
+
a("ul", Ml, [
|
|
1149
|
+
(u(!0), h(O, null, G(Xt.value, (P, S) => (u(), A(sl, {
|
|
1150
|
+
room: P,
|
|
1160
1151
|
key: S
|
|
1161
1152
|
}, null, 8, ["room"]))), 128))
|
|
1162
1153
|
])
|
|
1163
1154
|
])) : _("", !0),
|
|
1164
|
-
|
|
1165
|
-
a("h2",
|
|
1166
|
-
y(
|
|
1155
|
+
e(j).specialTemplates.length > 0 && b.onlyShow !== "rooms" ? (u(), h("div", Rl, [
|
|
1156
|
+
a("h2", Ll, [
|
|
1157
|
+
y(K, {
|
|
1167
1158
|
icon: "sparkles",
|
|
1168
1159
|
type: "fal",
|
|
1169
1160
|
color: "header"
|
|
1170
1161
|
}),
|
|
1171
|
-
a("span", null, v(o
|
|
1162
|
+
a("span", null, v(e(o)("hotel.specialOffers")), 1)
|
|
1172
1163
|
]),
|
|
1173
|
-
a("ul",
|
|
1174
|
-
(u(!0), h(O, null, G(
|
|
1175
|
-
id:
|
|
1164
|
+
a("ul", Ul, [
|
|
1165
|
+
(u(!0), h(O, null, G(e(j).specialTemplates, ({
|
|
1166
|
+
id: P,
|
|
1176
1167
|
name: S,
|
|
1177
1168
|
templateRoomGroups: g,
|
|
1178
1169
|
image: F,
|
|
@@ -1180,9 +1171,9 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1180
1171
|
weekendFee: oe,
|
|
1181
1172
|
fromDate: Q,
|
|
1182
1173
|
toDate: ge
|
|
1183
|
-
}) => (u(),
|
|
1184
|
-
key:
|
|
1185
|
-
id:
|
|
1174
|
+
}) => (u(), A(hl, {
|
|
1175
|
+
key: P,
|
|
1176
|
+
id: P,
|
|
1186
1177
|
description: H,
|
|
1187
1178
|
name: S,
|
|
1188
1179
|
image: F,
|
|
@@ -1194,48 +1185,48 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1194
1185
|
}, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1195
1186
|
])
|
|
1196
1187
|
])) : _("", !0),
|
|
1197
|
-
(
|
|
1198
|
-
a("span", null, v(o
|
|
1188
|
+
(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, [
|
|
1189
|
+
a("span", null, v(e(o)("booking.availability.nothingAvailable")), 1)
|
|
1199
1190
|
])) : _("", !0)
|
|
1200
|
-
])) :
|
|
1201
|
-
a("span", null, v(o
|
|
1202
|
-
])) : (u(), h("div",
|
|
1203
|
-
a("h2",
|
|
1204
|
-
y(
|
|
1191
|
+
])) : e(j).nextAvailableDates.length === 0 ? (u(), h("div", Ol, [
|
|
1192
|
+
a("span", null, v(e(o)("booking.availability.nothingAvailable")), 1)
|
|
1193
|
+
])) : (u(), h("div", jl, [
|
|
1194
|
+
a("h2", ql, [
|
|
1195
|
+
y(K, {
|
|
1205
1196
|
icon: "calendar-circle-exclamation",
|
|
1206
1197
|
type: "fal",
|
|
1207
1198
|
color: "header"
|
|
1208
1199
|
}),
|
|
1209
|
-
a("span", null, v(o
|
|
1200
|
+
a("span", null, v(e(o)("booking.availability.nextAvailableDates")), 1)
|
|
1210
1201
|
]),
|
|
1211
|
-
a("ul",
|
|
1212
|
-
(u(!0), h(O, null, G(
|
|
1202
|
+
a("ul", Gl, [
|
|
1203
|
+
(u(!0), h(O, null, G(e(j).nextAvailableDates, (P, S) => (u(), h("li", { key: S }, [
|
|
1213
1204
|
a("h3", {
|
|
1214
|
-
title: `${
|
|
1205
|
+
title: `${e(me)(P.fromDate)} - ${e(me)(P.toDate)}`
|
|
1215
1206
|
}, [
|
|
1216
|
-
a("span", null, v(`${
|
|
1217
|
-
], 8,
|
|
1207
|
+
a("span", null, v(`${e(me)(P.fromDate)} - ${e(me)(P.toDate)}`), 1)
|
|
1208
|
+
], 8, Wl),
|
|
1218
1209
|
a("ul", null, [
|
|
1219
1210
|
_("", !0),
|
|
1220
1211
|
a("li", null, [
|
|
1221
|
-
y(
|
|
1212
|
+
y(K, {
|
|
1222
1213
|
icon: "money-bill",
|
|
1223
1214
|
type: "fal",
|
|
1224
1215
|
color: "header"
|
|
1225
1216
|
}),
|
|
1226
|
-
a("span", null, v(o
|
|
1217
|
+
a("span", null, v(e(o)("booking.availability.pricesFrom")) + ": " + v(e(le)(P.priceStartFrom, e(_e))), 1)
|
|
1227
1218
|
])
|
|
1228
1219
|
]),
|
|
1229
1220
|
y(pe, {
|
|
1230
|
-
label: o
|
|
1221
|
+
label: e(o)("booking.availability.selectDates"),
|
|
1231
1222
|
"full-width": "",
|
|
1232
|
-
onClickEvent: (g) =>
|
|
1223
|
+
onClickEvent: (g) => e(se)(new Date(P.fromDate), new Date(P.toDate))
|
|
1233
1224
|
}, null, 8, ["label", "onClickEvent"])
|
|
1234
1225
|
]))), 128))
|
|
1235
1226
|
])
|
|
1236
1227
|
]))
|
|
1237
|
-
])) : isNaN(
|
|
1238
|
-
a("span", null, v(o
|
|
1228
|
+
])) : isNaN(e(i)) && !e(c) ? (u(), h("div", xl, [
|
|
1229
|
+
a("span", null, v(e(o)("alert.info.selectHotelToStart")), 1)
|
|
1239
1230
|
])) : (u(), h("div", Kl, [
|
|
1240
1231
|
y(Je),
|
|
1241
1232
|
y(Je),
|
|
@@ -1244,40 +1235,40 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1244
1235
|
])
|
|
1245
1236
|
]),
|
|
1246
1237
|
navigation: $(() => [
|
|
1247
|
-
|
|
1238
|
+
e(ke) ? (u(), A(pe, {
|
|
1248
1239
|
key: 0,
|
|
1249
|
-
label: isNaN(
|
|
1250
|
-
"is-loading":
|
|
1240
|
+
label: isNaN(e(i)) ? e(o)("availability.buttonLabel") : e(o)("general.searchAgain"),
|
|
1241
|
+
"is-loading": e(c),
|
|
1251
1242
|
"full-width": "",
|
|
1252
|
-
onClickEvent: V[1] || (V[1] = (
|
|
1253
|
-
}, null, 8, ["label", "is-loading"])) : (u(),
|
|
1243
|
+
onClickEvent: V[1] || (V[1] = (P) => e(st)())
|
|
1244
|
+
}, null, 8, ["label", "is-loading"])) : (u(), A(pe, {
|
|
1254
1245
|
key: 1,
|
|
1255
|
-
label:
|
|
1256
|
-
disabled: !
|
|
1246
|
+
label: e(ve) || qe.value ? e(o)("booking.availability.nextButton") : e(o)("general.chooseAddons"),
|
|
1247
|
+
disabled: !e(ee),
|
|
1257
1248
|
"full-width": "",
|
|
1258
|
-
onClickEvent: (
|
|
1249
|
+
onClickEvent: (P) => eo(x)
|
|
1259
1250
|
}, null, 8, ["label", "disabled", "onClickEvent"]))
|
|
1260
1251
|
]),
|
|
1261
1252
|
_: 2
|
|
1262
1253
|
}, 1024)
|
|
1263
1254
|
]),
|
|
1264
|
-
addons: $(({ next: x, prev:
|
|
1265
|
-
|
|
1255
|
+
addons: $(({ next: x, prev: P }) => [
|
|
1256
|
+
e(we) ? (u(), A(ze, { key: 0 }, {
|
|
1266
1257
|
form: $(() => [
|
|
1267
|
-
a("form",
|
|
1258
|
+
a("form", Jl, [
|
|
1268
1259
|
a("h2", null, [
|
|
1269
|
-
a("span", null, v(o
|
|
1260
|
+
a("span", null, v(e(o)("booking.reservation.addons")), 1)
|
|
1270
1261
|
]),
|
|
1271
1262
|
a("div", null, [
|
|
1272
|
-
isNaN(
|
|
1273
|
-
(u(!0), h(O, null, G(
|
|
1263
|
+
isNaN(e(s)) ? (u(), h("div", zl, [
|
|
1264
|
+
(u(!0), h(O, null, G(e(ie), (S) => (u(), h("ul", {
|
|
1274
1265
|
key: S.roomGroupID
|
|
1275
1266
|
}, [
|
|
1276
1267
|
(u(!0), h(O, null, G(S.variants, (g, F) => (u(), h("li", {
|
|
1277
1268
|
key: g.ratePlanID
|
|
1278
1269
|
}, [
|
|
1279
1270
|
a("h4", null, [
|
|
1280
|
-
a("span", null, v(
|
|
1271
|
+
a("span", null, v(e(ce)(S.title)), 1)
|
|
1281
1272
|
]),
|
|
1282
1273
|
(u(!0), h(O, null, G(g.rooms, (H, oe) => (u(), h("table", {
|
|
1283
1274
|
key: oe,
|
|
@@ -1286,53 +1277,53 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1286
1277
|
a("thead", null, [
|
|
1287
1278
|
a("tr", null, [
|
|
1288
1279
|
a("th", null, [
|
|
1289
|
-
a("span", null, v(
|
|
1280
|
+
a("span", null, v(e(ce)(g.name)), 1)
|
|
1290
1281
|
]),
|
|
1291
1282
|
_("", !0),
|
|
1292
|
-
a("th",
|
|
1283
|
+
a("th", Yl, [
|
|
1293
1284
|
a("b", null, [
|
|
1294
|
-
y(
|
|
1285
|
+
y(K, {
|
|
1295
1286
|
icon: "male",
|
|
1296
1287
|
type: "fas",
|
|
1297
1288
|
color: "font"
|
|
1298
1289
|
}),
|
|
1299
1290
|
a("span", null, v(H.adultsCount), 1),
|
|
1300
|
-
H.childrenCount > 0 ? (u(),
|
|
1291
|
+
H.childrenCount > 0 ? (u(), A(K, {
|
|
1301
1292
|
key: 0,
|
|
1302
1293
|
icon: "child",
|
|
1303
1294
|
type: "fas",
|
|
1304
1295
|
color: "font"
|
|
1305
1296
|
})) : _("", !0),
|
|
1306
|
-
H.childrenCount > 0 ? (u(), h("span",
|
|
1297
|
+
H.childrenCount > 0 ? (u(), h("span", Ql, v(H.childrenCount), 1)) : _("", !0)
|
|
1307
1298
|
])
|
|
1308
1299
|
])
|
|
1309
1300
|
])
|
|
1310
1301
|
]),
|
|
1311
1302
|
a("tbody", null, [
|
|
1312
|
-
(u(!0), h(O, null, G(
|
|
1303
|
+
(u(!0), h(O, null, G(e(rt)(g.addons, H.childrenCount), ({
|
|
1313
1304
|
quantityStrategy: Q,
|
|
1314
1305
|
maximumNumber: ge,
|
|
1315
1306
|
id: re,
|
|
1316
1307
|
name: oo,
|
|
1317
1308
|
price: lo
|
|
1318
1309
|
}) => (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
1310
|
a("td", Xl, [
|
|
1324
|
-
|
|
1325
|
-
|
|
1311
|
+
a("b", null, v(e(ce)(oo)), 1),
|
|
1312
|
+
a("span", null, v(e(le)(lo, e(_e))) + " " + v(e(pt)(Q)), 1)
|
|
1313
|
+
]),
|
|
1314
|
+
a("td", Zl, [
|
|
1315
|
+
e(U)[S.roomGroupID][F].config[H.configIdx].addons[H.roomIdx] ? (u(), h(O, { key: 0 }, [
|
|
1316
|
+
Q === 1 || Q === 12 ? (u(), A(Ze, {
|
|
1326
1317
|
key: 0,
|
|
1327
|
-
modelValue:
|
|
1328
|
-
"onUpdate:modelValue": (Ge) =>
|
|
1318
|
+
modelValue: e(U)[S.roomGroupID][F].config[H.configIdx].addons[H.roomIdx][re],
|
|
1319
|
+
"onUpdate:modelValue": (Ge) => e(U)[S.roomGroupID][F].config[H.configIdx].addons[H.roomIdx][re] = Ge,
|
|
1329
1320
|
small: !0,
|
|
1330
1321
|
"min-value": 0,
|
|
1331
1322
|
"max-value": ge || 1 / 0
|
|
1332
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (u(),
|
|
1323
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (u(), A(Ee, {
|
|
1333
1324
|
key: 1,
|
|
1334
|
-
modelValue:
|
|
1335
|
-
"onUpdate:modelValue": (Ge) =>
|
|
1325
|
+
modelValue: e(U)[S.roomGroupID][F].config[H.configIdx].addons[H.roomIdx][re],
|
|
1326
|
+
"onUpdate:modelValue": (Ge) => e(U)[S.roomGroupID][F].config[H.configIdx].addons[H.roomIdx][re] = Ge,
|
|
1336
1327
|
numeric: !0
|
|
1337
1328
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1338
1329
|
], 64)) : _("", !0)
|
|
@@ -1342,45 +1333,45 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1342
1333
|
]))), 128))
|
|
1343
1334
|
]))), 128))
|
|
1344
1335
|
]))), 128))
|
|
1345
|
-
])) :
|
|
1336
|
+
])) : e(be) ? (u(), h("div", en, [
|
|
1346
1337
|
a("div", null, [
|
|
1347
1338
|
a("h4", null, [
|
|
1348
|
-
a("span", null, v(
|
|
1339
|
+
a("span", null, v(e(Re).name), 1)
|
|
1349
1340
|
]),
|
|
1350
|
-
a("table",
|
|
1341
|
+
a("table", tn, [
|
|
1351
1342
|
a("thead", null, [
|
|
1352
1343
|
a("tr", null, [
|
|
1353
1344
|
a("th", null, [
|
|
1354
|
-
a("span", null, v(
|
|
1345
|
+
a("span", null, v(e(ce)(e(be).title)), 1)
|
|
1355
1346
|
]),
|
|
1356
1347
|
_("", !0),
|
|
1357
|
-
|
|
1348
|
+
on
|
|
1358
1349
|
])
|
|
1359
1350
|
]),
|
|
1360
1351
|
a("tbody", null, [
|
|
1361
|
-
(u(!0), h(O, null, G(
|
|
1352
|
+
(u(!0), h(O, null, G(e(rt)(e(be).addons, e($e)), ({
|
|
1362
1353
|
quantityStrategy: S,
|
|
1363
1354
|
maximumNumber: g,
|
|
1364
1355
|
id: F,
|
|
1365
1356
|
name: H,
|
|
1366
1357
|
price: oe
|
|
1367
1358
|
}) => (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
1359
|
a("td", ln, [
|
|
1373
|
-
|
|
1360
|
+
a("b", null, v(e(ce)(H)), 1),
|
|
1361
|
+
a("span", null, v(e(le)(oe, e(_e))) + " " + v(e(pt)(S)), 1)
|
|
1362
|
+
]),
|
|
1363
|
+
a("td", nn, [
|
|
1364
|
+
S === 1 || S === 12 ? (u(), A(Ze, {
|
|
1374
1365
|
key: 0,
|
|
1375
|
-
modelValue:
|
|
1376
|
-
"onUpdate:modelValue": (Q) =>
|
|
1366
|
+
modelValue: e(m)[F],
|
|
1367
|
+
"onUpdate:modelValue": (Q) => e(m)[F] = Q,
|
|
1377
1368
|
small: !0,
|
|
1378
1369
|
"min-value": 0,
|
|
1379
1370
|
"max-value": g || 1 / 0
|
|
1380
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (u(),
|
|
1371
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (u(), A(Ee, {
|
|
1381
1372
|
key: 1,
|
|
1382
|
-
modelValue:
|
|
1383
|
-
"onUpdate:modelValue": (Q) =>
|
|
1373
|
+
modelValue: e(m)[F],
|
|
1374
|
+
"onUpdate:modelValue": (Q) => e(m)[F] = Q,
|
|
1384
1375
|
numeric: !0
|
|
1385
1376
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1386
1377
|
])
|
|
@@ -1394,196 +1385,198 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1394
1385
|
]),
|
|
1395
1386
|
navigation: $(() => [
|
|
1396
1387
|
y(pe, {
|
|
1397
|
-
label: o
|
|
1388
|
+
label: e(o)("general.startReservation"),
|
|
1398
1389
|
"full-width": "",
|
|
1399
1390
|
onClickEvent: x
|
|
1400
1391
|
}, null, 8, ["label", "onClickEvent"]),
|
|
1401
1392
|
a("button", {
|
|
1402
1393
|
class: "konnectio-abort-reservation link",
|
|
1403
|
-
onClick: Se((S) => dt(
|
|
1394
|
+
onClick: Se((S) => dt(P), ["prevent"])
|
|
1404
1395
|
}, [
|
|
1405
|
-
a("span", null, v(o
|
|
1406
|
-
], 8,
|
|
1396
|
+
a("span", null, v(e(o)("general.goAStepBack")), 1)
|
|
1397
|
+
], 8, an)
|
|
1407
1398
|
]),
|
|
1408
1399
|
_: 2
|
|
1409
1400
|
}, 1024)) : _("", !0)
|
|
1410
1401
|
]),
|
|
1411
|
-
reservation: $(({ next: x, prev:
|
|
1412
|
-
|
|
1402
|
+
reservation: $(({ next: x, prev: P, reset: S }) => [
|
|
1403
|
+
e(we) ? (u(), A(ze, {
|
|
1413
1404
|
key: 0,
|
|
1414
1405
|
"show-terms-notice": !0,
|
|
1415
1406
|
"show-gift-card": !0
|
|
1416
1407
|
}, {
|
|
1417
1408
|
form: $(() => [
|
|
1418
|
-
a("form",
|
|
1409
|
+
a("form", sn, [
|
|
1419
1410
|
a("h2", null, [
|
|
1420
|
-
a("span", null, v(o
|
|
1411
|
+
a("span", null, v(e(o)("booking.reservation.detailsTitle")), 1)
|
|
1421
1412
|
]),
|
|
1422
|
-
!
|
|
1413
|
+
!e(Mt) && !(e(Fe) && e(Oe)) ? (u(), h("ul", {
|
|
1423
1414
|
key: 0,
|
|
1424
|
-
class: Ie(["konnectio-reservation-timepicker", { "konnectio-split-inputs": !
|
|
1415
|
+
class: Ie(["konnectio-reservation-timepicker", { "konnectio-split-inputs": !e(Fe) && !e(Oe) }])
|
|
1425
1416
|
}, [
|
|
1426
|
-
|
|
1417
|
+
e(Fe) ? _("", !0) : (u(), h("li", rn, [
|
|
1427
1418
|
y(ft, {
|
|
1428
|
-
modelValue:
|
|
1419
|
+
modelValue: e(T),
|
|
1429
1420
|
"onUpdate:modelValue": V[2] || (V[2] = (g) => q(T) ? T.value = g : null),
|
|
1430
|
-
label: o
|
|
1421
|
+
label: e(o)("booking.reservation.arrivalTime"),
|
|
1431
1422
|
icon: "hourglass-start",
|
|
1432
|
-
"
|
|
1423
|
+
"min-time": e(nt),
|
|
1424
|
+
"max-time": e(It),
|
|
1433
1425
|
required: ""
|
|
1434
|
-
}, null, 8, ["modelValue", "label", "
|
|
1426
|
+
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
1435
1427
|
])),
|
|
1436
|
-
|
|
1428
|
+
e(Oe) ? _("", !0) : (u(), h("li", dn, [
|
|
1437
1429
|
y(ft, {
|
|
1438
|
-
modelValue:
|
|
1430
|
+
modelValue: e(C),
|
|
1439
1431
|
"onUpdate:modelValue": V[3] || (V[3] = (g) => q(C) ? C.value = g : null),
|
|
1440
|
-
label: o
|
|
1432
|
+
label: e(o)("booking.reservation.departureTime"),
|
|
1441
1433
|
icon: "hourglass-end",
|
|
1442
|
-
"
|
|
1434
|
+
"min-time": e(Et),
|
|
1435
|
+
"max-time": e(Bt),
|
|
1443
1436
|
required: ""
|
|
1444
|
-
}, null, 8, ["modelValue", "label", "
|
|
1437
|
+
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
1445
1438
|
]))
|
|
1446
1439
|
], 2)) : _("", !0),
|
|
1447
|
-
y(
|
|
1448
|
-
modelValue:
|
|
1440
|
+
y(kl, {
|
|
1441
|
+
modelValue: e(w),
|
|
1449
1442
|
"onUpdate:modelValue": V[4] || (V[4] = (g) => q(w) ? w.value = g : null),
|
|
1450
|
-
title:
|
|
1443
|
+
title: e(I),
|
|
1451
1444
|
"onUpdate:title": V[5] || (V[5] = (g) => q(I) ? I.value = g : null),
|
|
1452
|
-
"exclude-title":
|
|
1453
|
-
label: o
|
|
1445
|
+
"exclude-title": e(Rt),
|
|
1446
|
+
label: e(o)("booking.reservation.name"),
|
|
1454
1447
|
icon: "user-alt",
|
|
1455
|
-
placeholder: o
|
|
1448
|
+
placeholder: e(o)("booking.reservation.namePlaceholder"),
|
|
1456
1449
|
required: ""
|
|
1457
1450
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1458
1451
|
y(ue, {
|
|
1459
|
-
modelValue:
|
|
1452
|
+
modelValue: e(N),
|
|
1460
1453
|
"onUpdate:modelValue": V[6] || (V[6] = (g) => q(N) ? N.value = g : null),
|
|
1461
1454
|
type: "email",
|
|
1462
1455
|
name: "email",
|
|
1463
1456
|
autocomplete: "email",
|
|
1464
|
-
label: o
|
|
1457
|
+
label: e(o)("booking.reservation.email"),
|
|
1465
1458
|
icon: "at",
|
|
1466
|
-
placeholder: o
|
|
1459
|
+
placeholder: e(o)("booking.reservation.emailPlaceholder"),
|
|
1467
1460
|
required: ""
|
|
1468
1461
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1469
|
-
|
|
1462
|
+
e(Ft) ? _("", !0) : (u(), A(ue, {
|
|
1470
1463
|
key: 1,
|
|
1471
|
-
modelValue:
|
|
1464
|
+
modelValue: e(R),
|
|
1472
1465
|
"onUpdate:modelValue": V[7] || (V[7] = (g) => q(R) ? R.value = g : null),
|
|
1473
1466
|
type: "text",
|
|
1474
1467
|
name: "firm",
|
|
1475
1468
|
autocomplete: "firm",
|
|
1476
|
-
label: `${o
|
|
1469
|
+
label: `${e(o)("booking.reservation.companyName")} (${e(o)("booking.reservation.optional")})`,
|
|
1477
1470
|
icon: "id-card",
|
|
1478
|
-
placeholder: o
|
|
1471
|
+
placeholder: e(o)("booking.reservation.companyNamePlaceholder")
|
|
1479
1472
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1480
|
-
y(
|
|
1481
|
-
modelValue:
|
|
1482
|
-
"onUpdate:modelValue": V[8] || (V[8] = (g) => q(
|
|
1473
|
+
y(No, {
|
|
1474
|
+
modelValue: e(B),
|
|
1475
|
+
"onUpdate:modelValue": V[8] || (V[8] = (g) => q(B) ? B.value = g : null),
|
|
1483
1476
|
icon: "phone-office",
|
|
1484
|
-
label: o
|
|
1485
|
-
placeholder: o
|
|
1477
|
+
label: e(o)("booking.reservation.phone"),
|
|
1478
|
+
placeholder: e(o)("booking.reservation.phonePlaceholder"),
|
|
1486
1479
|
required: ""
|
|
1487
1480
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1488
|
-
y(
|
|
1489
|
-
modelValue:
|
|
1481
|
+
y(gl, {
|
|
1482
|
+
modelValue: e(z),
|
|
1490
1483
|
"onUpdate:modelValue": V[9] || (V[9] = (g) => q(z) ? z.value = g : null),
|
|
1491
|
-
label: o
|
|
1492
|
-
placeholder: o
|
|
1493
|
-
options:
|
|
1484
|
+
label: e(o)("booking.reservation.country"),
|
|
1485
|
+
placeholder: e(o)("booking.reservation.countryPlaceholder"),
|
|
1486
|
+
options: e(p),
|
|
1494
1487
|
required: ""
|
|
1495
1488
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1496
1489
|
y(ue, {
|
|
1497
|
-
modelValue:
|
|
1498
|
-
"onUpdate:modelValue": V[10] || (V[10] = (g) => q(
|
|
1490
|
+
modelValue: e(E),
|
|
1491
|
+
"onUpdate:modelValue": V[10] || (V[10] = (g) => q(E) ? E.value = g : null),
|
|
1499
1492
|
type: "textarea",
|
|
1500
1493
|
name: "address",
|
|
1501
1494
|
autocomplete: "street-address",
|
|
1502
|
-
label: o
|
|
1495
|
+
label: e(o)("booking.reservation.streetAddress"),
|
|
1503
1496
|
icon: "map-marked",
|
|
1504
|
-
placeholder: o
|
|
1497
|
+
placeholder: e(o)("booking.reservation.streetAddressPlaceholder"),
|
|
1505
1498
|
required: ""
|
|
1506
1499
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1507
|
-
a("ul",
|
|
1500
|
+
a("ul", un, [
|
|
1508
1501
|
a("li", null, [
|
|
1509
1502
|
y(ue, {
|
|
1510
|
-
modelValue:
|
|
1503
|
+
modelValue: e(k),
|
|
1511
1504
|
"onUpdate:modelValue": V[11] || (V[11] = (g) => q(k) ? k.value = g : null),
|
|
1512
1505
|
type: "text",
|
|
1513
1506
|
name: "postal",
|
|
1514
1507
|
autocomplete: "postal-code",
|
|
1515
|
-
label: o
|
|
1508
|
+
label: e(o)("booking.reservation.postal"),
|
|
1516
1509
|
icon: "mailbox",
|
|
1517
|
-
placeholder: o
|
|
1510
|
+
placeholder: e(o)("booking.reservation.postalPlaceholder"),
|
|
1518
1511
|
required: ""
|
|
1519
1512
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1520
1513
|
]),
|
|
1521
1514
|
a("li", null, [
|
|
1522
1515
|
y(ue, {
|
|
1523
|
-
modelValue:
|
|
1516
|
+
modelValue: e(D),
|
|
1524
1517
|
"onUpdate:modelValue": V[12] || (V[12] = (g) => q(D) ? D.value = g : null),
|
|
1525
1518
|
type: "text",
|
|
1526
1519
|
name: "city",
|
|
1527
1520
|
autocomplete: "address-level2",
|
|
1528
|
-
label: o
|
|
1521
|
+
label: e(o)("booking.reservation.city"),
|
|
1529
1522
|
icon: "city",
|
|
1530
|
-
placeholder: o
|
|
1523
|
+
placeholder: e(o)("booking.reservation.cityPlaceholder"),
|
|
1531
1524
|
required: ""
|
|
1532
1525
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1533
1526
|
])
|
|
1534
1527
|
]),
|
|
1535
1528
|
y(ue, {
|
|
1536
|
-
modelValue:
|
|
1537
|
-
"onUpdate:modelValue": V[13] || (V[13] = (g) => q(
|
|
1529
|
+
modelValue: e(L),
|
|
1530
|
+
"onUpdate:modelValue": V[13] || (V[13] = (g) => q(L) ? L.value = g : null),
|
|
1538
1531
|
type: "textarea",
|
|
1539
|
-
label: `${o
|
|
1532
|
+
label: `${e(o)("booking.reservation.remark")} (${e(o)("booking.reservation.optional")})`,
|
|
1540
1533
|
icon: "info-circle",
|
|
1541
|
-
placeholder: o
|
|
1534
|
+
placeholder: e(o)("booking.reservation.remarkPlaceholder")
|
|
1542
1535
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1543
1536
|
y(ue, {
|
|
1544
|
-
modelValue:
|
|
1537
|
+
modelValue: e(Y),
|
|
1545
1538
|
"onUpdate:modelValue": V[14] || (V[14] = (g) => q(Y) ? Y.value = g : null),
|
|
1546
1539
|
type: "textarea",
|
|
1547
|
-
label: `${o
|
|
1540
|
+
label: `${e(o)("booking.reservation.allergies")} (${e(o)("booking.reservation.optional")})`,
|
|
1548
1541
|
icon: "allergies",
|
|
1549
|
-
placeholder: o
|
|
1542
|
+
placeholder: e(o)("booking.reservation.allergiesPlaceholder")
|
|
1550
1543
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1551
|
-
|
|
1544
|
+
e(Lt) ? _("", !0) : (u(), A(So, {
|
|
1552
1545
|
key: 2,
|
|
1553
|
-
modelValue:
|
|
1546
|
+
modelValue: e(f),
|
|
1554
1547
|
"onUpdate:modelValue": V[15] || (V[15] = (g) => q(f) ? f.value = g : null),
|
|
1555
|
-
label: `${o
|
|
1548
|
+
label: `${e(o)("booking.reservation.purposeOfStay")} (${e(o)("booking.reservation.optional")})`,
|
|
1556
1549
|
name: "travelingFor",
|
|
1557
|
-
checkboxes:
|
|
1550
|
+
checkboxes: Qt.value
|
|
1558
1551
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
1559
1552
|
])
|
|
1560
1553
|
]),
|
|
1561
1554
|
navigation: $(() => [
|
|
1562
1555
|
a("div", null, [
|
|
1563
1556
|
y(pe, {
|
|
1564
|
-
label:
|
|
1565
|
-
disabled: !
|
|
1566
|
-
"is-loading":
|
|
1557
|
+
label: e(Ot) ? e(o)("booking.reservation.nextButton") : e(o)("general.confirmReservation"),
|
|
1558
|
+
disabled: !e(d),
|
|
1559
|
+
"is-loading": e(r),
|
|
1567
1560
|
"full-width": "",
|
|
1568
1561
|
onClickEvent: (g) => Zt(x, S)
|
|
1569
1562
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
1570
1563
|
a("button", {
|
|
1571
1564
|
class: "konnectio-abort-reservation link",
|
|
1572
|
-
onClick: Se((g) => dt(
|
|
1565
|
+
onClick: Se((g) => dt(P), ["prevent"])
|
|
1573
1566
|
}, [
|
|
1574
|
-
a("span", null, v(o
|
|
1575
|
-
], 8,
|
|
1567
|
+
a("span", null, v(e(o)("general.goAStepBack")), 1)
|
|
1568
|
+
], 8, cn)
|
|
1576
1569
|
])
|
|
1577
1570
|
]),
|
|
1578
1571
|
_: 2
|
|
1579
1572
|
}, 1024)) : _("", !0)
|
|
1580
1573
|
]),
|
|
1581
1574
|
payment: $(() => [
|
|
1582
|
-
y(
|
|
1575
|
+
y(Mo)
|
|
1583
1576
|
]),
|
|
1584
1577
|
confirmation: $(() => [
|
|
1585
|
-
y(
|
|
1586
|
-
message: o
|
|
1578
|
+
y(Ho, {
|
|
1579
|
+
message: e(o)("booking.confirmation.thankYou")
|
|
1587
1580
|
}, null, 8, ["message"])
|
|
1588
1581
|
]),
|
|
1589
1582
|
_: 1
|
|
@@ -1593,7 +1586,7 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1593
1586
|
}, 8, ["access-token", "callback"])
|
|
1594
1587
|
]),
|
|
1595
1588
|
fallback: $(() => [
|
|
1596
|
-
y(
|
|
1589
|
+
y($l)
|
|
1597
1590
|
]),
|
|
1598
1591
|
_: 1
|
|
1599
1592
|
}))
|
|
@@ -1601,110 +1594,110 @@ const tn = /* @__PURE__ */ $l(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1601
1594
|
_: 1
|
|
1602
1595
|
}, 8, ["styling"]));
|
|
1603
1596
|
}
|
|
1604
|
-
}), ht = /* @__PURE__ */ fe(
|
|
1605
|
-
function et(n, l = {},
|
|
1606
|
-
for (const
|
|
1607
|
-
const i = n[
|
|
1597
|
+
}), ht = /* @__PURE__ */ fe(pn, [["__scopeId", "data-v-8e803f2d"]]);
|
|
1598
|
+
function et(n, l = {}, t) {
|
|
1599
|
+
for (const o in n) {
|
|
1600
|
+
const i = n[o], s = t ? `${t}:${o}` : o;
|
|
1608
1601
|
typeof i == "object" && i !== null ? et(i, l, s) : typeof i == "function" && (l[s] = i);
|
|
1609
1602
|
}
|
|
1610
1603
|
return l;
|
|
1611
1604
|
}
|
|
1612
|
-
const
|
|
1613
|
-
function
|
|
1614
|
-
const
|
|
1605
|
+
const mn = { run: (n) => n() }, fn = () => mn, Pt = typeof console.createTask < "u" ? console.createTask : fn;
|
|
1606
|
+
function hn(n, l) {
|
|
1607
|
+
const t = l.shift(), o = Pt(t);
|
|
1615
1608
|
return n.reduce(
|
|
1616
|
-
(i, s) => i.then(() =>
|
|
1609
|
+
(i, s) => i.then(() => o.run(() => s(...l))),
|
|
1617
1610
|
Promise.resolve()
|
|
1618
1611
|
);
|
|
1619
1612
|
}
|
|
1620
|
-
function
|
|
1621
|
-
const
|
|
1622
|
-
return Promise.all(n.map((i) =>
|
|
1613
|
+
function vn(n, l) {
|
|
1614
|
+
const t = l.shift(), o = Pt(t);
|
|
1615
|
+
return Promise.all(n.map((i) => o.run(() => i(...l))));
|
|
1623
1616
|
}
|
|
1624
1617
|
function Ye(n, l) {
|
|
1625
|
-
for (const
|
|
1626
|
-
|
|
1618
|
+
for (const t of [...n])
|
|
1619
|
+
t(l);
|
|
1627
1620
|
}
|
|
1628
|
-
class
|
|
1621
|
+
class yn {
|
|
1629
1622
|
constructor() {
|
|
1630
1623
|
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
1624
|
}
|
|
1632
|
-
hook(l,
|
|
1633
|
-
if (!l || typeof
|
|
1625
|
+
hook(l, t, o = {}) {
|
|
1626
|
+
if (!l || typeof t != "function")
|
|
1634
1627
|
return () => {
|
|
1635
1628
|
};
|
|
1636
1629
|
const i = l;
|
|
1637
1630
|
let s;
|
|
1638
1631
|
for (; this._deprecatedHooks[l]; )
|
|
1639
1632
|
s = this._deprecatedHooks[l], l = s.to;
|
|
1640
|
-
if (s && !
|
|
1633
|
+
if (s && !o.allowDeprecated) {
|
|
1641
1634
|
let m = s.message;
|
|
1642
1635
|
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
1636
|
}
|
|
1644
|
-
if (!
|
|
1637
|
+
if (!t.name)
|
|
1645
1638
|
try {
|
|
1646
|
-
Object.defineProperty(
|
|
1639
|
+
Object.defineProperty(t, "name", {
|
|
1647
1640
|
get: () => "_" + l.replace(/\W+/g, "_") + "_hook_cb",
|
|
1648
1641
|
configurable: !0
|
|
1649
1642
|
});
|
|
1650
1643
|
} catch {
|
|
1651
1644
|
}
|
|
1652
|
-
return this._hooks[l] = this._hooks[l] || [], this._hooks[l].push(
|
|
1653
|
-
|
|
1645
|
+
return this._hooks[l] = this._hooks[l] || [], this._hooks[l].push(t), () => {
|
|
1646
|
+
t && (this.removeHook(l, t), t = void 0);
|
|
1654
1647
|
};
|
|
1655
1648
|
}
|
|
1656
|
-
hookOnce(l,
|
|
1657
|
-
let
|
|
1658
|
-
return
|
|
1649
|
+
hookOnce(l, t) {
|
|
1650
|
+
let o, i = (...s) => (typeof o == "function" && o(), o = void 0, i = void 0, t(...s));
|
|
1651
|
+
return o = this.hook(l, i), o;
|
|
1659
1652
|
}
|
|
1660
|
-
removeHook(l,
|
|
1653
|
+
removeHook(l, t) {
|
|
1661
1654
|
if (this._hooks[l]) {
|
|
1662
|
-
const
|
|
1663
|
-
|
|
1655
|
+
const o = this._hooks[l].indexOf(t);
|
|
1656
|
+
o !== -1 && this._hooks[l].splice(o, 1), this._hooks[l].length === 0 && delete this._hooks[l];
|
|
1664
1657
|
}
|
|
1665
1658
|
}
|
|
1666
|
-
deprecateHook(l,
|
|
1667
|
-
this._deprecatedHooks[l] = typeof
|
|
1668
|
-
const
|
|
1659
|
+
deprecateHook(l, t) {
|
|
1660
|
+
this._deprecatedHooks[l] = typeof t == "string" ? { to: t } : t;
|
|
1661
|
+
const o = this._hooks[l] || [];
|
|
1669
1662
|
delete this._hooks[l];
|
|
1670
|
-
for (const i of
|
|
1663
|
+
for (const i of o)
|
|
1671
1664
|
this.hook(l, i);
|
|
1672
1665
|
}
|
|
1673
1666
|
deprecateHooks(l) {
|
|
1674
1667
|
Object.assign(this._deprecatedHooks, l);
|
|
1675
|
-
for (const
|
|
1676
|
-
this.deprecateHook(
|
|
1668
|
+
for (const t in l)
|
|
1669
|
+
this.deprecateHook(t, l[t]);
|
|
1677
1670
|
}
|
|
1678
1671
|
addHooks(l) {
|
|
1679
|
-
const
|
|
1680
|
-
(i) => this.hook(i,
|
|
1672
|
+
const t = et(l), o = Object.keys(t).map(
|
|
1673
|
+
(i) => this.hook(i, t[i])
|
|
1681
1674
|
);
|
|
1682
1675
|
return () => {
|
|
1683
|
-
for (const i of
|
|
1676
|
+
for (const i of o.splice(0, o.length))
|
|
1684
1677
|
i();
|
|
1685
1678
|
};
|
|
1686
1679
|
}
|
|
1687
1680
|
removeHooks(l) {
|
|
1688
|
-
const
|
|
1689
|
-
for (const
|
|
1690
|
-
this.removeHook(
|
|
1681
|
+
const t = et(l);
|
|
1682
|
+
for (const o in t)
|
|
1683
|
+
this.removeHook(o, t[o]);
|
|
1691
1684
|
}
|
|
1692
1685
|
removeAllHooks() {
|
|
1693
1686
|
for (const l in this._hooks)
|
|
1694
1687
|
delete this._hooks[l];
|
|
1695
1688
|
}
|
|
1696
|
-
callHook(l, ...
|
|
1697
|
-
return
|
|
1689
|
+
callHook(l, ...t) {
|
|
1690
|
+
return t.unshift(l), this.callHookWith(hn, l, ...t);
|
|
1698
1691
|
}
|
|
1699
|
-
callHookParallel(l, ...
|
|
1700
|
-
return
|
|
1692
|
+
callHookParallel(l, ...t) {
|
|
1693
|
+
return t.unshift(l), this.callHookWith(vn, l, ...t);
|
|
1701
1694
|
}
|
|
1702
|
-
callHookWith(l,
|
|
1703
|
-
const i = this._before || this._after ? { name:
|
|
1695
|
+
callHookWith(l, t, ...o) {
|
|
1696
|
+
const i = this._before || this._after ? { name: t, args: o, context: {} } : void 0;
|
|
1704
1697
|
this._before && Ye(this._before, i);
|
|
1705
1698
|
const s = l(
|
|
1706
|
-
|
|
1707
|
-
|
|
1699
|
+
t in this._hooks ? [...this._hooks[t]] : [],
|
|
1700
|
+
o
|
|
1708
1701
|
);
|
|
1709
1702
|
return s instanceof Promise ? s.finally(() => {
|
|
1710
1703
|
this._after && i && Ye(this._after, i);
|
|
@@ -1713,34 +1706,34 @@ class vn {
|
|
|
1713
1706
|
beforeEach(l) {
|
|
1714
1707
|
return this._before = this._before || [], this._before.push(l), () => {
|
|
1715
1708
|
if (this._before !== void 0) {
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1709
|
+
const t = this._before.indexOf(l);
|
|
1710
|
+
t !== -1 && this._before.splice(t, 1);
|
|
1718
1711
|
}
|
|
1719
1712
|
};
|
|
1720
1713
|
}
|
|
1721
1714
|
afterEach(l) {
|
|
1722
1715
|
return this._after = this._after || [], this._after.push(l), () => {
|
|
1723
1716
|
if (this._after !== void 0) {
|
|
1724
|
-
const
|
|
1725
|
-
|
|
1717
|
+
const t = this._after.indexOf(l);
|
|
1718
|
+
t !== -1 && this._after.splice(t, 1);
|
|
1726
1719
|
}
|
|
1727
1720
|
};
|
|
1728
1721
|
}
|
|
1729
1722
|
}
|
|
1730
|
-
function
|
|
1731
|
-
return new
|
|
1723
|
+
function gn() {
|
|
1724
|
+
return new yn();
|
|
1732
1725
|
}
|
|
1733
|
-
function
|
|
1726
|
+
function bn(n) {
|
|
1734
1727
|
return Array.isArray(n) ? n : [n];
|
|
1735
1728
|
}
|
|
1736
|
-
const
|
|
1729
|
+
const kn = ["title", "titleTemplate", "script", "style", "noscript"], Pe = [
|
|
1737
1730
|
"base",
|
|
1738
1731
|
"meta",
|
|
1739
1732
|
"link",
|
|
1740
1733
|
"style",
|
|
1741
1734
|
"script",
|
|
1742
1735
|
"noscript"
|
|
1743
|
-
],
|
|
1736
|
+
], _n = [
|
|
1744
1737
|
"title",
|
|
1745
1738
|
"titleTemplate",
|
|
1746
1739
|
"templateParams",
|
|
@@ -1752,38 +1745,38 @@ const bn = ["title", "titleTemplate", "script", "style", "noscript"], Ae = [
|
|
|
1752
1745
|
"style",
|
|
1753
1746
|
"script",
|
|
1754
1747
|
"noscript"
|
|
1755
|
-
],
|
|
1748
|
+
], Vn = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], Dt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Tn = typeof window < "u";
|
|
1756
1749
|
function lt(n) {
|
|
1757
1750
|
let l = 9;
|
|
1758
|
-
for (let
|
|
1759
|
-
l = Math.imul(l ^ n.charCodeAt(
|
|
1751
|
+
for (let t = 0; t < n.length; )
|
|
1752
|
+
l = Math.imul(l ^ n.charCodeAt(t++), 9 ** 9);
|
|
1760
1753
|
return ((l ^ l >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
1761
1754
|
}
|
|
1762
1755
|
function vt(n) {
|
|
1763
|
-
return n._h || lt(n._d ? n._d : `${n.tag}:${n.textContent || n.innerHTML || ""}:${Object.entries(n.props).map(([l,
|
|
1756
|
+
return n._h || lt(n._d ? n._d : `${n.tag}:${n.textContent || n.innerHTML || ""}:${Object.entries(n.props).map(([l, t]) => `${l}:${String(t)}`).join(",")}`);
|
|
1764
1757
|
}
|
|
1765
1758
|
function St(n, l) {
|
|
1766
|
-
const { props:
|
|
1767
|
-
if (
|
|
1768
|
-
return
|
|
1769
|
-
if (
|
|
1759
|
+
const { props: t, tag: o } = n;
|
|
1760
|
+
if (Vn.includes(o))
|
|
1761
|
+
return o;
|
|
1762
|
+
if (o === "link" && t.rel === "canonical")
|
|
1770
1763
|
return "canonical";
|
|
1771
|
-
if (
|
|
1764
|
+
if (t.charset)
|
|
1772
1765
|
return "charset";
|
|
1773
1766
|
const i = ["id"];
|
|
1774
|
-
|
|
1767
|
+
o === "meta" && i.push("name", "property", "http-equiv");
|
|
1775
1768
|
for (const s of i)
|
|
1776
|
-
if (typeof
|
|
1777
|
-
const m = String(
|
|
1778
|
-
return l && !l(m) ? !1 : `${
|
|
1769
|
+
if (typeof t[s] < "u") {
|
|
1770
|
+
const m = String(t[s]);
|
|
1771
|
+
return l && !l(m) ? !1 : `${o}:${s}:${m}`;
|
|
1779
1772
|
}
|
|
1780
1773
|
return !1;
|
|
1781
1774
|
}
|
|
1782
1775
|
function yt(n, l) {
|
|
1783
1776
|
return n == null ? l || null : typeof n == "function" ? n(l) : n;
|
|
1784
1777
|
}
|
|
1785
|
-
async function
|
|
1786
|
-
const
|
|
1778
|
+
async function wn(n, l, t) {
|
|
1779
|
+
const o = {
|
|
1787
1780
|
tag: n,
|
|
1788
1781
|
props: await Ht(
|
|
1789
1782
|
// explicitly check for an object
|
|
@@ -1793,34 +1786,34 @@ async function Tn(n, l, e) {
|
|
|
1793
1786
|
)
|
|
1794
1787
|
};
|
|
1795
1788
|
return Dt.forEach((i) => {
|
|
1796
|
-
const s = typeof
|
|
1797
|
-
typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) ||
|
|
1798
|
-
}),
|
|
1789
|
+
const s = typeof o.props[i] < "u" ? o.props[i] : t[i];
|
|
1790
|
+
typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) || kn.includes(o.tag)) && (o[i === "children" ? "innerHTML" : i] = s), delete o.props[i]);
|
|
1791
|
+
}), 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
1792
|
}
|
|
1800
|
-
function
|
|
1801
|
-
const
|
|
1802
|
-
return typeof l == "object" && !Array.isArray(l) && (l = Object.entries(l).filter(([,
|
|
1793
|
+
function $n(n, l) {
|
|
1794
|
+
const t = n === "class" ? " " : ";";
|
|
1795
|
+
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
1796
|
}
|
|
1804
1797
|
async function Ht(n, l) {
|
|
1805
|
-
for (const
|
|
1806
|
-
if (["class", "style"].includes(
|
|
1807
|
-
n[
|
|
1798
|
+
for (const t of Object.keys(n)) {
|
|
1799
|
+
if (["class", "style"].includes(t)) {
|
|
1800
|
+
n[t] = $n(t, n[t]);
|
|
1808
1801
|
continue;
|
|
1809
1802
|
}
|
|
1810
|
-
if (n[
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1803
|
+
if (n[t] instanceof Promise && (n[t] = await n[t]), !l && !Dt.includes(t)) {
|
|
1804
|
+
const o = String(n[t]), i = t.startsWith("data-");
|
|
1805
|
+
o === "true" || o === "" ? n[t] = i ? "true" : !0 : n[t] || (i && o === "false" ? n[t] = "false" : delete n[t]);
|
|
1813
1806
|
}
|
|
1814
1807
|
}
|
|
1815
1808
|
return n;
|
|
1816
1809
|
}
|
|
1817
|
-
const
|
|
1818
|
-
async function
|
|
1810
|
+
const Cn = 10;
|
|
1811
|
+
async function An(n) {
|
|
1819
1812
|
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((
|
|
1813
|
+
return Object.entries(n.resolvedInput).filter(([t, o]) => typeof o < "u" && _n.includes(t)).forEach(([t, o]) => {
|
|
1814
|
+
const i = bn(o);
|
|
1815
|
+
l.push(...i.map((s) => wn(t, s, n)).flat());
|
|
1816
|
+
}), (await Promise.all(l)).flat().filter(Boolean).map((t, o) => (t._e = n._i, n.mode && (t._m = n.mode), t._p = (n._i << Cn) + o, t));
|
|
1824
1817
|
}
|
|
1825
1818
|
const gt = {
|
|
1826
1819
|
// tags
|
|
@@ -1832,16 +1825,16 @@ const gt = {
|
|
|
1832
1825
|
high: -10,
|
|
1833
1826
|
low: 20
|
|
1834
1827
|
};
|
|
1835
|
-
function
|
|
1828
|
+
function Be(n) {
|
|
1836
1829
|
let l = 100;
|
|
1837
|
-
const
|
|
1838
|
-
return typeof
|
|
1830
|
+
const t = n.tagPriority;
|
|
1831
|
+
return typeof t == "number" ? t : (n.tag === "meta" ? (n.props["http-equiv"] === "content-security-policy" && (l = -30), n.props.charset && (l = -20), n.props.name === "viewport" && (l = -15)) : n.tag === "link" && n.props.rel === "preconnect" ? l = 20 : n.tag in gt && (l = gt[n.tag]), typeof t == "string" && t in bt ? l + bt[t] : l);
|
|
1839
1832
|
}
|
|
1840
1833
|
const Pn = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], kt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], de = "%separator";
|
|
1841
|
-
function De(n, l,
|
|
1834
|
+
function De(n, l, t) {
|
|
1842
1835
|
if (typeof n != "string" || !n.includes("%"))
|
|
1843
1836
|
return n;
|
|
1844
|
-
function
|
|
1837
|
+
function o(m) {
|
|
1845
1838
|
let p;
|
|
1846
1839
|
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
1840
|
}
|
|
@@ -1851,39 +1844,39 @@ function De(n, l, e) {
|
|
|
1851
1844
|
} catch {
|
|
1852
1845
|
}
|
|
1853
1846
|
return (i.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((m) => {
|
|
1854
|
-
const p =
|
|
1847
|
+
const p = o(m.slice(1));
|
|
1855
1848
|
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:
|
|
1849
|
+
}), 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
1850
|
}
|
|
1858
|
-
async function
|
|
1859
|
-
const
|
|
1860
|
-
if (!
|
|
1851
|
+
async function Dn(n, l = {}) {
|
|
1852
|
+
const t = l.document || n.resolvedOptions.document;
|
|
1853
|
+
if (!t || !n.dirty)
|
|
1861
1854
|
return;
|
|
1862
|
-
const
|
|
1863
|
-
if (await n.hooks.callHook("dom:beforeRender",
|
|
1855
|
+
const o = { shouldRender: !0, tags: [] };
|
|
1856
|
+
if (await n.hooks.callHook("dom:beforeRender", o), !o.shouldRender)
|
|
1864
1857
|
return;
|
|
1865
1858
|
const i = (await n.resolveTags()).map((d) => ({
|
|
1866
1859
|
tag: d,
|
|
1867
|
-
id:
|
|
1860
|
+
id: Pe.includes(d.tag) ? vt(d) : d.tag,
|
|
1868
1861
|
shouldRender: !0
|
|
1869
1862
|
}));
|
|
1870
1863
|
let s = n._dom;
|
|
1871
1864
|
if (!s) {
|
|
1872
1865
|
s = {
|
|
1873
|
-
elMap: { htmlAttrs:
|
|
1866
|
+
elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
|
|
1874
1867
|
};
|
|
1875
1868
|
for (const d of ["body", "head"]) {
|
|
1876
|
-
const f =
|
|
1877
|
-
for (const C of [...f].filter((w) =>
|
|
1869
|
+
const f = t[d]?.children, T = [];
|
|
1870
|
+
for (const C of [...f].filter((w) => Pe.includes(w.tagName.toLowerCase()))) {
|
|
1878
1871
|
const w = {
|
|
1879
1872
|
tag: C.tagName.toLowerCase(),
|
|
1880
1873
|
props: await Ht(
|
|
1881
|
-
C.getAttributeNames().reduce((
|
|
1874
|
+
C.getAttributeNames().reduce((B, R) => ({ ...B, [R]: C.getAttribute(R) }), {})
|
|
1882
1875
|
),
|
|
1883
1876
|
innerHTML: C.innerHTML
|
|
1884
1877
|
};
|
|
1885
1878
|
let I = 1, N = St(w);
|
|
1886
|
-
for (; N && T.find((
|
|
1879
|
+
for (; N && T.find((B) => B._d === N); )
|
|
1887
1880
|
N = `${N}:${I++}`;
|
|
1888
1881
|
w._d = N || void 0, T.push(w), s.elMap[C.getAttribute("data-hid") || vt(w)] = C;
|
|
1889
1882
|
}
|
|
@@ -1902,15 +1895,15 @@ async function An(n, l = {}) {
|
|
|
1902
1895
|
s.elMap[d]?.remove(), delete s.elMap[d];
|
|
1903
1896
|
}));
|
|
1904
1897
|
for (const [w, I] of Object.entries(T._eventHandlers || {}))
|
|
1905
|
-
f.getAttribute(`data-${w}`) !== "" && ((T.tag === "bodyAttrs" ?
|
|
1898
|
+
f.getAttribute(`data-${w}`) !== "" && ((T.tag === "bodyAttrs" ? t.defaultView : f).addEventListener(w.replace("on", ""), I.bind(f)), f.setAttribute(`data-${w}`, ""));
|
|
1906
1899
|
Object.entries(T.props).forEach(([w, I]) => {
|
|
1907
1900
|
const N = `attr:${w}`;
|
|
1908
1901
|
if (w === "class")
|
|
1909
|
-
for (const
|
|
1910
|
-
C && m(d, `${N}:${
|
|
1902
|
+
for (const B of (I || "").split(" ").filter(Boolean))
|
|
1903
|
+
C && m(d, `${N}:${B}`, () => f.classList.remove(B)), !f.classList.contains(B) && f.classList.add(B);
|
|
1911
1904
|
else if (w === "style")
|
|
1912
|
-
for (const
|
|
1913
|
-
const [R, ...k] =
|
|
1905
|
+
for (const B of (I || "").split(";").filter(Boolean)) {
|
|
1906
|
+
const [R, ...k] = B.split(":").map((D) => D.trim());
|
|
1914
1907
|
m(d, `${N}:${R}`, () => {
|
|
1915
1908
|
f.style.removeProperty(R);
|
|
1916
1909
|
}), f.style.setProperty(R, k.join(":"));
|
|
@@ -1928,82 +1921,82 @@ async function An(n, l = {}) {
|
|
|
1928
1921
|
const { tag: f, shouldRender: T, id: C } = d;
|
|
1929
1922
|
if (T) {
|
|
1930
1923
|
if (f.tag === "title") {
|
|
1931
|
-
|
|
1924
|
+
t.title = f.textContent;
|
|
1932
1925
|
continue;
|
|
1933
1926
|
}
|
|
1934
|
-
d.$el = d.$el || s.elMap[C], d.$el ? p(d) :
|
|
1927
|
+
d.$el = d.$el || s.elMap[C], d.$el ? p(d) : Pe.includes(f.tag) && c.push(d);
|
|
1935
1928
|
}
|
|
1936
1929
|
}
|
|
1937
1930
|
for (const d of c) {
|
|
1938
1931
|
const f = d.tag.tagPosition || "head";
|
|
1939
|
-
d.$el =
|
|
1932
|
+
d.$el = t.createElement(d.tag.tag), p(d), r[f] = r[f] || t.createDocumentFragment(), r[f].appendChild(d.$el);
|
|
1940
1933
|
}
|
|
1941
1934
|
for (const d of i)
|
|
1942
|
-
await n.hooks.callHook("dom:renderTag", d,
|
|
1943
|
-
r.head &&
|
|
1935
|
+
await n.hooks.callHook("dom:renderTag", d, t, m);
|
|
1936
|
+
r.head && t.head.appendChild(r.head), r.bodyOpen && t.body.insertBefore(r.bodyOpen, t.body.firstChild), r.bodyClose && t.body.appendChild(r.bodyClose), Object.values(s.pendingSideEffects).forEach((d) => d()), n._dom = s, n.dirty = !1, await n.hooks.callHook("dom:rendered", { renders: i });
|
|
1944
1937
|
}
|
|
1945
|
-
async function
|
|
1946
|
-
const
|
|
1947
|
-
return n._domUpdatePromise = n._domUpdatePromise || new Promise((
|
|
1948
|
-
await
|
|
1938
|
+
async function Sn(n, l = {}) {
|
|
1939
|
+
const t = l.delayFn || ((o) => setTimeout(o, 10));
|
|
1940
|
+
return n._domUpdatePromise = n._domUpdatePromise || new Promise((o) => t(async () => {
|
|
1941
|
+
await Dn(n, l), delete n._domUpdatePromise, o();
|
|
1949
1942
|
}));
|
|
1950
1943
|
}
|
|
1951
1944
|
// @__NO_SIDE_EFFECTS__
|
|
1952
|
-
function
|
|
1945
|
+
function Hn(n) {
|
|
1953
1946
|
return (l) => {
|
|
1954
|
-
const
|
|
1955
|
-
return
|
|
1947
|
+
const t = l.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
|
|
1948
|
+
return t && l.push(JSON.parse(t)), {
|
|
1956
1949
|
mode: "client",
|
|
1957
1950
|
hooks: {
|
|
1958
|
-
"entries:updated": function(
|
|
1959
|
-
|
|
1951
|
+
"entries:updated": function(o) {
|
|
1952
|
+
Sn(o, n);
|
|
1960
1953
|
}
|
|
1961
1954
|
}
|
|
1962
1955
|
};
|
|
1963
1956
|
};
|
|
1964
1957
|
}
|
|
1965
|
-
const
|
|
1958
|
+
const In = ["templateParams", "htmlAttrs", "bodyAttrs"], En = {
|
|
1966
1959
|
hooks: {
|
|
1967
1960
|
"tag:normalise": function({ tag: n }) {
|
|
1968
|
-
["hid", "vmid", "key"].forEach((
|
|
1969
|
-
n.props[
|
|
1961
|
+
["hid", "vmid", "key"].forEach((o) => {
|
|
1962
|
+
n.props[o] && (n.key = n.props[o], delete n.props[o]);
|
|
1970
1963
|
});
|
|
1971
|
-
const
|
|
1972
|
-
|
|
1964
|
+
const t = St(n) || (n.key ? `${n.tag}:${n.key}` : !1);
|
|
1965
|
+
t && (n._d = t);
|
|
1973
1966
|
},
|
|
1974
1967
|
"tags:resolve": function(n) {
|
|
1975
1968
|
const l = {};
|
|
1976
|
-
n.tags.forEach((
|
|
1977
|
-
const i = (
|
|
1969
|
+
n.tags.forEach((o) => {
|
|
1970
|
+
const i = (o.key ? `${o.tag}:${o.key}` : o._d) || o._p, s = l[i];
|
|
1978
1971
|
if (s) {
|
|
1979
|
-
let p =
|
|
1980
|
-
if (!p &&
|
|
1972
|
+
let p = o?.tagDuplicateStrategy;
|
|
1973
|
+
if (!p && In.includes(o.tag) && (p = "merge"), p === "merge") {
|
|
1981
1974
|
const c = s.props;
|
|
1982
1975
|
["class", "style"].forEach((r) => {
|
|
1983
|
-
c[r] && (
|
|
1976
|
+
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
1977
|
}), l[i].props = {
|
|
1985
1978
|
...c,
|
|
1986
|
-
...
|
|
1979
|
+
...o.props
|
|
1987
1980
|
};
|
|
1988
1981
|
return;
|
|
1989
|
-
} else if (
|
|
1990
|
-
s._duped = s._duped || [],
|
|
1982
|
+
} else if (o._e === s._e) {
|
|
1983
|
+
s._duped = s._duped || [], o._d = `${s._d}:${s._duped.length + 1}`, s._duped.push(o);
|
|
1991
1984
|
return;
|
|
1992
|
-
} else if (
|
|
1985
|
+
} else if (Be(o) > Be(s))
|
|
1993
1986
|
return;
|
|
1994
1987
|
}
|
|
1995
|
-
const m = Object.keys(
|
|
1996
|
-
if (
|
|
1988
|
+
const m = Object.keys(o.props).length + (o.innerHTML ? 1 : 0) + (o.textContent ? 1 : 0);
|
|
1989
|
+
if (Pe.includes(o.tag) && m === 0) {
|
|
1997
1990
|
delete l[i];
|
|
1998
1991
|
return;
|
|
1999
1992
|
}
|
|
2000
|
-
l[i] =
|
|
1993
|
+
l[i] = o;
|
|
2001
1994
|
});
|
|
2002
|
-
const
|
|
2003
|
-
Object.values(l).forEach((
|
|
2004
|
-
const i =
|
|
2005
|
-
delete
|
|
2006
|
-
}), n.tags =
|
|
1995
|
+
const t = [];
|
|
1996
|
+
Object.values(l).forEach((o) => {
|
|
1997
|
+
const i = o._duped;
|
|
1998
|
+
delete o._duped, t.push(o), i && t.push(...i);
|
|
1999
|
+
}), n.tags = t, n.tags = n.tags.filter((o) => !(o.tag === "meta" && (o.props.name || o.props.property) && !o.props.content));
|
|
2007
2000
|
}
|
|
2008
2001
|
}
|
|
2009
2002
|
}, Bn = {
|
|
@@ -2011,8 +2004,8 @@ const Hn = ["templateParams", "htmlAttrs", "bodyAttrs"], In = {
|
|
|
2011
2004
|
hooks: {
|
|
2012
2005
|
"tags:resolve": function(n) {
|
|
2013
2006
|
const l = {};
|
|
2014
|
-
n.tags.filter((
|
|
2015
|
-
l[
|
|
2007
|
+
n.tags.filter((t) => ["titleTemplate", "templateParams", "title"].includes(t.tag) && t._m === "server").forEach((t) => {
|
|
2008
|
+
l[t.tag] = t.tag.startsWith("title") ? t.textContent : t.props;
|
|
2016
2009
|
}), Object.keys(l).length && n.tags.push({
|
|
2017
2010
|
tag: "script",
|
|
2018
2011
|
innerHTML: JSON.stringify(l),
|
|
@@ -2020,81 +2013,81 @@ const Hn = ["templateParams", "htmlAttrs", "bodyAttrs"], In = {
|
|
|
2020
2013
|
});
|
|
2021
2014
|
}
|
|
2022
2015
|
}
|
|
2023
|
-
},
|
|
2016
|
+
}, Nn = ["script", "link", "bodyAttrs"], Mn = (n) => ({
|
|
2024
2017
|
hooks: {
|
|
2025
2018
|
"tags:resolve": function(l) {
|
|
2026
|
-
for (const
|
|
2027
|
-
Object.entries(
|
|
2028
|
-
|
|
2029
|
-
}), n.ssr &&
|
|
2019
|
+
for (const t of l.tags.filter((o) => Nn.includes(o.tag)))
|
|
2020
|
+
Object.entries(t.props).forEach(([o, i]) => {
|
|
2021
|
+
o.startsWith("on") && typeof i == "function" && (n.ssr && kt.includes(o) ? t.props[o] = `this.dataset.${o}fired = true` : delete t.props[o], t._eventHandlers = t._eventHandlers || {}, t._eventHandlers[o] = i);
|
|
2022
|
+
}), n.ssr && t._eventHandlers && (t.props.src || t.props.href) && (t.key = t.key || lt(t.props.src || t.props.href));
|
|
2030
2023
|
},
|
|
2031
|
-
"dom:renderTag": function({ $el: l, tag:
|
|
2032
|
-
for (const
|
|
2033
|
-
const i =
|
|
2034
|
-
|
|
2024
|
+
"dom:renderTag": function({ $el: l, tag: t }) {
|
|
2025
|
+
for (const o of Object.keys(l?.dataset || {}).filter((i) => kt.some((s) => `${s}fired` === i))) {
|
|
2026
|
+
const i = o.replace("fired", "");
|
|
2027
|
+
t._eventHandlers?.[i]?.call(l, new Event(i.replace("on", "")));
|
|
2035
2028
|
}
|
|
2036
2029
|
}
|
|
2037
2030
|
}
|
|
2038
|
-
}), Rn = ["link", "style", "script", "noscript"],
|
|
2031
|
+
}), Rn = ["link", "style", "script", "noscript"], Ln = {
|
|
2039
2032
|
hooks: {
|
|
2040
2033
|
"tag:normalise": ({ tag: n }) => {
|
|
2041
2034
|
n.key && Rn.includes(n.tag) && (n.props["data-hid"] = n._h = lt(n.key));
|
|
2042
2035
|
}
|
|
2043
2036
|
}
|
|
2044
|
-
},
|
|
2037
|
+
}, Un = {
|
|
2045
2038
|
hooks: {
|
|
2046
2039
|
"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(
|
|
2040
|
+
const l = (t) => n.tags.find((o) => o._d === t)?._p;
|
|
2041
|
+
for (const { prefix: t, offset: o } of Pn)
|
|
2042
|
+
for (const i of n.tags.filter((s) => typeof s.tagPriority == "string" && s.tagPriority.startsWith(t))) {
|
|
2050
2043
|
const s = l(
|
|
2051
|
-
i.tagPriority.replace(
|
|
2044
|
+
i.tagPriority.replace(t, "")
|
|
2052
2045
|
);
|
|
2053
|
-
typeof s < "u" && (i._p = s +
|
|
2046
|
+
typeof s < "u" && (i._p = s + o);
|
|
2054
2047
|
}
|
|
2055
|
-
n.tags.sort((
|
|
2048
|
+
n.tags.sort((t, o) => t._p - o._p).sort((t, o) => Be(t) - Be(o));
|
|
2056
2049
|
}
|
|
2057
2050
|
}
|
|
2058
|
-
},
|
|
2051
|
+
}, Fn = {
|
|
2059
2052
|
meta: "content",
|
|
2060
2053
|
link: "href",
|
|
2061
2054
|
htmlAttrs: "lang"
|
|
2062
|
-
},
|
|
2055
|
+
}, On = (n) => ({
|
|
2063
2056
|
hooks: {
|
|
2064
2057
|
"tags:resolve": (l) => {
|
|
2065
|
-
const { tags:
|
|
2066
|
-
delete s.separator, s.pageTitle = De(s.pageTitle ||
|
|
2067
|
-
for (const p of
|
|
2068
|
-
const c =
|
|
2058
|
+
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 || "|";
|
|
2059
|
+
delete s.separator, s.pageTitle = De(s.pageTitle || o || "", s, m);
|
|
2060
|
+
for (const p of t.filter((c) => c.processTemplateParams !== !1)) {
|
|
2061
|
+
const c = Fn[p.tag];
|
|
2069
2062
|
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
2063
|
typeof p[r] == "string" && (p[r] = De(p[r], s, m));
|
|
2071
2064
|
});
|
|
2072
2065
|
}
|
|
2073
|
-
n._templateParams = s, n._separator = m, l.tags =
|
|
2066
|
+
n._templateParams = s, n._separator = m, l.tags = t.filter((p) => p.tag !== "templateParams");
|
|
2074
2067
|
}
|
|
2075
2068
|
}
|
|
2076
|
-
}),
|
|
2069
|
+
}), jn = {
|
|
2077
2070
|
hooks: {
|
|
2078
2071
|
"tags:resolve": (n) => {
|
|
2079
2072
|
const { tags: l } = n;
|
|
2080
|
-
let
|
|
2081
|
-
const
|
|
2082
|
-
if (
|
|
2073
|
+
let t = l.findIndex((i) => i.tag === "titleTemplate");
|
|
2074
|
+
const o = l.findIndex((i) => i.tag === "title");
|
|
2075
|
+
if (o !== -1 && t !== -1) {
|
|
2083
2076
|
const i = yt(
|
|
2084
|
-
l[
|
|
2085
|
-
l[
|
|
2077
|
+
l[t].textContent,
|
|
2078
|
+
l[o].textContent
|
|
2086
2079
|
);
|
|
2087
|
-
i !== null ? l[
|
|
2088
|
-
} else if (
|
|
2080
|
+
i !== null ? l[o].textContent = i || l[o].textContent : delete l[o];
|
|
2081
|
+
} else if (t !== -1) {
|
|
2089
2082
|
const i = yt(
|
|
2090
|
-
l[
|
|
2083
|
+
l[t].textContent
|
|
2091
2084
|
);
|
|
2092
|
-
i !== null && (l[
|
|
2085
|
+
i !== null && (l[t].textContent = i, l[t].tag = "title", t = -1);
|
|
2093
2086
|
}
|
|
2094
|
-
|
|
2087
|
+
t !== -1 && delete l[t], n.tags = l.filter(Boolean);
|
|
2095
2088
|
}
|
|
2096
2089
|
}
|
|
2097
|
-
},
|
|
2090
|
+
}, qn = {
|
|
2098
2091
|
hooks: {
|
|
2099
2092
|
"tags:afterResolve": function(n) {
|
|
2100
2093
|
for (const l of n.tags)
|
|
@@ -2103,17 +2096,17 @@ const Hn = ["templateParams", "htmlAttrs", "bodyAttrs"], In = {
|
|
|
2103
2096
|
}
|
|
2104
2097
|
};
|
|
2105
2098
|
// @__NO_SIDE_EFFECTS__
|
|
2106
|
-
function
|
|
2107
|
-
const l =
|
|
2108
|
-
return l.use(/* @__PURE__ */
|
|
2099
|
+
function Gn(n = {}) {
|
|
2100
|
+
const l = Wn(n);
|
|
2101
|
+
return l.use(/* @__PURE__ */ Hn()), l;
|
|
2109
2102
|
}
|
|
2110
2103
|
function _t(n, l) {
|
|
2111
2104
|
return !n || n === "server" && l || n === "client" && !l;
|
|
2112
2105
|
}
|
|
2113
|
-
function
|
|
2114
|
-
const l =
|
|
2115
|
-
l.addHooks(n.hooks || {}), n.document = n.document || (
|
|
2116
|
-
const
|
|
2106
|
+
function Wn(n = {}) {
|
|
2107
|
+
const l = gn();
|
|
2108
|
+
l.addHooks(n.hooks || {}), n.document = n.document || (Tn ? document : void 0);
|
|
2109
|
+
const t = !n.document, o = () => {
|
|
2117
2110
|
p.dirty = !0, l.callHook("entries:updated", p);
|
|
2118
2111
|
};
|
|
2119
2112
|
let i = 0, s = [];
|
|
@@ -2127,7 +2120,7 @@ function Gn(n = {}) {
|
|
|
2127
2120
|
},
|
|
2128
2121
|
use(c) {
|
|
2129
2122
|
const r = typeof c == "function" ? c(p) : c;
|
|
2130
|
-
(!r.key || !m.some((d) => d.key === r.key)) && (m.push(r), _t(r.mode,
|
|
2123
|
+
(!r.key || !m.some((d) => d.key === r.key)) && (m.push(r), _t(r.mode, t) && l.addHooks(r.hooks || {}));
|
|
2131
2124
|
},
|
|
2132
2125
|
push(c, r) {
|
|
2133
2126
|
delete r?.head;
|
|
@@ -2136,13 +2129,13 @@ function Gn(n = {}) {
|
|
|
2136
2129
|
input: c,
|
|
2137
2130
|
...r
|
|
2138
2131
|
};
|
|
2139
|
-
return _t(d.mode,
|
|
2132
|
+
return _t(d.mode, t) && (s.push(d), o()), {
|
|
2140
2133
|
dispose() {
|
|
2141
|
-
s = s.filter((f) => f._i !== d._i), l.callHook("entries:updated", p),
|
|
2134
|
+
s = s.filter((f) => f._i !== d._i), l.callHook("entries:updated", p), o();
|
|
2142
2135
|
},
|
|
2143
2136
|
// a patch is the same as creating a new entry, just a nice DX
|
|
2144
2137
|
patch(f) {
|
|
2145
|
-
s = s.map((T) => (T._i === d._i && (T.input = d.input = f), T)),
|
|
2138
|
+
s = s.map((T) => (T._i === d._i && (T.input = d.input = f), T)), o();
|
|
2146
2139
|
}
|
|
2147
2140
|
};
|
|
2148
2141
|
},
|
|
@@ -2152,61 +2145,61 @@ function Gn(n = {}) {
|
|
|
2152
2145
|
for (const r of c.entries) {
|
|
2153
2146
|
const d = r.resolvedInput || r.input;
|
|
2154
2147
|
if (r.resolvedInput = await (r.transform ? r.transform(d) : d), r.resolvedInput)
|
|
2155
|
-
for (const f of await
|
|
2148
|
+
for (const f of await An(r)) {
|
|
2156
2149
|
const T = { tag: f, entry: r, resolvedOptions: p.resolvedOptions };
|
|
2157
2150
|
await l.callHook("tag:normalise", T), c.tags.push(T.tag);
|
|
2158
2151
|
}
|
|
2159
2152
|
}
|
|
2160
2153
|
return await l.callHook("tags:beforeResolve", c), await l.callHook("tags:resolve", c), await l.callHook("tags:afterResolve", c), c.tags;
|
|
2161
2154
|
},
|
|
2162
|
-
ssr:
|
|
2155
|
+
ssr: t
|
|
2163
2156
|
};
|
|
2164
2157
|
return [
|
|
2165
|
-
|
|
2158
|
+
En,
|
|
2166
2159
|
Bn,
|
|
2167
|
-
Nn,
|
|
2168
2160
|
Mn,
|
|
2169
2161
|
Ln,
|
|
2170
|
-
|
|
2162
|
+
Un,
|
|
2171
2163
|
On,
|
|
2172
2164
|
jn,
|
|
2165
|
+
qn,
|
|
2173
2166
|
...n?.plugins || []
|
|
2174
2167
|
].forEach((c) => p.use(c)), p.hooks.callHook("init", p), p;
|
|
2175
2168
|
}
|
|
2176
|
-
const
|
|
2169
|
+
const xn = ro.startsWith("3");
|
|
2177
2170
|
function Kn(n) {
|
|
2178
|
-
return typeof n == "function" ? n() :
|
|
2171
|
+
return typeof n == "function" ? n() : e(n);
|
|
2179
2172
|
}
|
|
2180
2173
|
function tt(n, l = "") {
|
|
2181
2174
|
if (n instanceof Promise)
|
|
2182
2175
|
return n;
|
|
2183
|
-
const
|
|
2184
|
-
return !n || !
|
|
2185
|
-
Object.entries(
|
|
2186
|
-
) :
|
|
2176
|
+
const t = Kn(n);
|
|
2177
|
+
return !n || !t ? t : Array.isArray(t) ? t.map((o) => tt(o, l)) : typeof t == "object" ? Object.fromEntries(
|
|
2178
|
+
Object.entries(t).map(([o, i]) => o === "titleTemplate" || o.startsWith("on") ? [o, e(i)] : [o, tt(i, o)])
|
|
2179
|
+
) : t;
|
|
2187
2180
|
}
|
|
2188
|
-
const
|
|
2181
|
+
const Jn = {
|
|
2189
2182
|
hooks: {
|
|
2190
2183
|
"entries:resolve": function(n) {
|
|
2191
2184
|
for (const l of n.entries)
|
|
2192
2185
|
l.resolvedInput = tt(l.input);
|
|
2193
2186
|
}
|
|
2194
2187
|
}
|
|
2195
|
-
},
|
|
2196
|
-
function
|
|
2188
|
+
}, zn = "usehead";
|
|
2189
|
+
function Yn(n) {
|
|
2197
2190
|
return {
|
|
2198
|
-
install(
|
|
2199
|
-
|
|
2191
|
+
install(t) {
|
|
2192
|
+
xn && (t.config.globalProperties.$unhead = n, t.config.globalProperties.$head = n, t.provide(zn, n));
|
|
2200
2193
|
}
|
|
2201
2194
|
}.install;
|
|
2202
2195
|
}
|
|
2203
|
-
function
|
|
2204
|
-
n.domDelayFn = n.domDelayFn || ((
|
|
2205
|
-
const l = /* @__PURE__ */
|
|
2206
|
-
return l.use(
|
|
2196
|
+
function Qn(n = {}) {
|
|
2197
|
+
n.domDelayFn = n.domDelayFn || ((t) => so(() => setTimeout(() => t(), 0)));
|
|
2198
|
+
const l = /* @__PURE__ */ Gn(n);
|
|
2199
|
+
return l.use(Jn), l.install = Yn(l), l;
|
|
2207
2200
|
}
|
|
2208
|
-
const
|
|
2209
|
-
class
|
|
2201
|
+
const Xn = po(), Zn = Qn(), ea = ho();
|
|
2202
|
+
class ta extends HTMLElement {
|
|
2210
2203
|
vueApp;
|
|
2211
2204
|
constructor() {
|
|
2212
2205
|
super();
|
|
@@ -2216,13 +2209,13 @@ class ea extends HTMLElement {
|
|
|
2216
2209
|
}
|
|
2217
2210
|
connectedCallback() {
|
|
2218
2211
|
const l = mo(ht, this.attributes);
|
|
2219
|
-
this.vueApp = uo(ht, l), this.vueApp.provide("emitter",
|
|
2220
|
-
const
|
|
2221
|
-
this.vueApp.mount(
|
|
2212
|
+
this.vueApp = uo(ht, l), vo(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(yo), this.vueApp.use(To, { bootstrap: !0 });
|
|
2213
|
+
const t = document.createElement("div");
|
|
2214
|
+
this.vueApp.mount(t), this.appendChild(t.children[0]);
|
|
2222
2215
|
}
|
|
2223
2216
|
}
|
|
2224
|
-
window.customElements.define("konnectio-hotel",
|
|
2217
|
+
window.customElements.define("konnectio-hotel", ta);
|
|
2225
2218
|
export {
|
|
2226
|
-
|
|
2219
|
+
ta as default
|
|
2227
2220
|
};
|
|
2228
2221
|
//# sourceMappingURL=hotel.js.map
|