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