@konnectio/core 4.0.79 → 4.0.81
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-BxsfN3m3.js → ActionField-CTdoYeCb.js} +3 -3
- package/dist/ActionField-CTdoYeCb.js.br +0 -0
- package/dist/{AvailabilitySkeleton-zKa2gP2l.js → AvailabilitySkeleton-goa9gs9v.js} +8 -8
- package/dist/AvailabilitySkeleton-goa9gs9v.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-8Jsgq-zd.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-b67PURkf.js} +443 -447
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-b67PURkf.js.br +0 -0
- package/dist/{CheckoutWindow-Cxqsa0Y7.js → CheckoutWindow-CiImalcO.js} +4 -4
- package/dist/CheckoutWindow-CiImalcO.js.br +0 -0
- package/dist/{ErrorMessage-BkEVeYjJ.js → ErrorMessage-noDYCPm1.js} +3 -3
- package/dist/ErrorMessage-noDYCPm1.js.br +0 -0
- package/dist/{EventAvailabilityForm-C0bAjzem.js → EventAvailabilityForm-9NeWNNcp.js} +22 -22
- package/dist/EventAvailabilityForm-9NeWNNcp.js.br +0 -0
- package/dist/{Field-DRNnN5iQ.js → Field-BWYA1VPD.js} +3 -3
- package/dist/Field-BWYA1VPD.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-bDUzTFlG.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DYwA6hiM.js} +2123 -2137
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DYwA6hiM.js.br +0 -0
- package/dist/{TermsOfService-B9J_dCWC.js → TermsOfService-Ck17xk9Q.js} +5 -5
- package/dist/TermsOfService-Ck17xk9Q.js.br +0 -0
- package/dist/{_-CwfDey89.js → _-Cd2-tqPM.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-CznuOQGN.js → _.vue_vue_type_style_index_0_lang-NE_Zq7Js.js} +3 -3
- package/dist/_.vue_vue_type_style_index_0_lang-NE_Zq7Js.js.br +0 -0
- package/dist/{_commonjsHelpers-BRsHMJes.js → _commonjsHelpers-wQPQJtsq.js} +2 -2
- package/dist/_commonjsHelpers-wQPQJtsq.js.br +0 -0
- package/dist/{_sentry-release-injection-file-BE1hINUq.js → _sentry-release-injection-file-DNUh2Gjq.js} +654 -654
- package/dist/_sentry-release-injection-file-DNUh2Gjq.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 +210 -210
- 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-BkTcitpm.js → giftCard-DrwsQrjA.js} +4 -4
- package/dist/giftCard-DrwsQrjA.js.br +0 -0
- package/dist/hotel.js +428 -422
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-hjq7KkQz.js → masonry.plugin-DD0W9fy2.js} +41 -45
- package/dist/masonry.plugin-DD0W9fy2.js.br +0 -0
- package/dist/{mitt-B6gLpXoo.js → mitt-BeqJ2MFv.js} +440 -440
- package/dist/mitt-BeqJ2MFv.js.br +0 -0
- package/dist/polyfill.js +9 -14
- package/dist/polyfill.js.br +0 -0
- package/dist/{sentry-D0iIPSOj.js → sentry-Bmg62TCa.js} +3 -3
- package/dist/{style-Bn_aipu4.js → style-DcfCYaKA.js} +2 -2
- package/dist/style-DcfCYaKA.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/{tracing-BVguX61l.js → tracing-nJlxVqd0.js} +39 -39
- package/dist/tracing-nJlxVqd0.js.br +0 -0
- package/package.json +6 -6
- package/dist/ActionField-BxsfN3m3.js.br +0 -0
- package/dist/AvailabilitySkeleton-zKa2gP2l.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-8Jsgq-zd.js.br +0 -0
- package/dist/CheckoutWindow-Cxqsa0Y7.js.br +0 -0
- package/dist/ErrorMessage-BkEVeYjJ.js.br +0 -0
- package/dist/EventAvailabilityForm-C0bAjzem.js.br +0 -0
- package/dist/Field-DRNnN5iQ.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-bDUzTFlG.js.br +0 -0
- package/dist/TermsOfService-B9J_dCWC.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CznuOQGN.js.br +0 -0
- package/dist/_commonjsHelpers-BRsHMJes.js.br +0 -0
- package/dist/_sentry-release-injection-file-BE1hINUq.js.br +0 -0
- package/dist/giftCard-BkTcitpm.js.br +0 -0
- package/dist/masonry.plugin-hjq7KkQz.js.br +0 -0
- package/dist/mitt-B6gLpXoo.js.br +0 -0
- package/dist/style-Bn_aipu4.js.br +0 -0
- package/dist/tracing-BVguX61l.js.br +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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
|
|
2
|
-
import { u as ie, s as Z, T as ho, c as vo, l as yo, i as
|
|
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
|
|
4
|
-
import { G as To } from "./style-
|
|
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-
|
|
6
|
-
import { A as
|
|
7
|
-
import { S as
|
|
8
|
-
import { C as Te, B as Ro, P as Lo, a as Uo } from "./CheckoutWindow-
|
|
9
|
-
import { _ as Ht } from "./AvailabilitySkeleton.
|
|
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 v, e as a, t as h, A as Se, B as ze, f as y, i as _, s as G, F, l as Ye, x as tt, v as j, h as Pt, p as at, j as it, c as x, o as st, z as Ee, n as Ne, S as uo, D as co, E as po, G as mo, k as fo } from "./_sentry-release-injection-file-DNUh2Gjq.js";
|
|
2
|
+
import { u as ie, s as Z, T as ho, c as vo, l as yo, i as bo, m as go } from "./mitt-BeqJ2MFv.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 Be, 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 bt, m as wo } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DYwA6hiM.js";
|
|
4
|
+
import { G as To } from "./style-DcfCYaKA.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-DD0W9fy2.js";
|
|
6
|
+
import { A as No, H as Mo } from "./AvailabilitySkeleton-goa9gs9v.js";
|
|
7
|
+
import { S as Bo } from "./TermsOfService-Ck17xk9Q.js";
|
|
8
|
+
import { C as Te, B as Ro, P as Lo, a as Uo } from "./CheckoutWindow-CiImalcO.js";
|
|
9
|
+
import { _ as Ht } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-b67PURkf.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] = "d2072542-099d-4305-a5de-6947b8795451", n._sentryDebugIdIdentifier = "sentry-dbid-d2072542-099d-4305-a5de-6947b8795451");
|
|
14
14
|
} catch {
|
|
15
15
|
}
|
|
16
16
|
})();
|
|
@@ -39,8 +39,8 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
39
39
|
disableArrivalUserSelection: o,
|
|
40
40
|
disableDepartureUserSelection: i,
|
|
41
41
|
arrivalDefault: s,
|
|
42
|
-
departureDefault:
|
|
43
|
-
disableNewsletterSignup:
|
|
42
|
+
departureDefault: m,
|
|
43
|
+
disableNewsletterSignup: p,
|
|
44
44
|
currency: u
|
|
45
45
|
} = Z(Pe()), {
|
|
46
46
|
arrivalTime: r,
|
|
@@ -50,12 +50,12 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
50
50
|
totalPrice: T,
|
|
51
51
|
areListingsLoading: C,
|
|
52
52
|
getSelectedPackageRoom: I,
|
|
53
|
-
selectedPackage:
|
|
54
|
-
discountVouchers:
|
|
53
|
+
selectedPackage: B,
|
|
54
|
+
discountVouchers: M,
|
|
55
55
|
currentArrivalDate: E,
|
|
56
56
|
currentDepartureDate: k,
|
|
57
57
|
datesMismatch: D,
|
|
58
|
-
currentLocation:
|
|
58
|
+
currentLocation: N,
|
|
59
59
|
locationMismatch: z,
|
|
60
60
|
newsMails: R,
|
|
61
61
|
termsOfService: Y,
|
|
@@ -64,8 +64,8 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
64
64
|
acceptTerms: te,
|
|
65
65
|
totalTemplateAddonPrice: q,
|
|
66
66
|
totalRooms: ye,
|
|
67
|
-
totalAdults:
|
|
68
|
-
totalChildren:
|
|
67
|
+
totalAdults: be,
|
|
68
|
+
totalChildren: ge
|
|
69
69
|
} = Z(ve()), { hasHotelLocations: Le } = Z(Ce()), { removeRoom: dt, validateDiscountCode: Ue } = ve(), { getHotelLocationName: Ae } = Ce(), he = ae(!1);
|
|
70
70
|
function ke(Q) {
|
|
71
71
|
return Q.reduce(($e, { totalPrice: O }) => $e + O, 0);
|
|
@@ -87,66 +87,66 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
87
87
|
Ye(Q.$slots, "form", {}, void 0, !0)
|
|
88
88
|
]),
|
|
89
89
|
"price-summary": w(() => [
|
|
90
|
-
isNaN(e($)) && e(f).length > 0 ? (d(!0),
|
|
90
|
+
isNaN(e($)) && e(f).length > 0 ? (d(!0), v(F, { key: 0 }, G(e(f), ({
|
|
91
91
|
roomGroupID: O,
|
|
92
92
|
title: Fe,
|
|
93
93
|
variants: Oe
|
|
94
|
-
}) => (d(),
|
|
94
|
+
}) => (d(), v("div", { key: O }, [
|
|
95
95
|
a("h6", null, [
|
|
96
|
-
a("span", null,
|
|
96
|
+
a("span", null, h(Fe), 1)
|
|
97
97
|
]),
|
|
98
|
-
(d(!0),
|
|
99
|
-
(d(!0),
|
|
98
|
+
(d(!0), v(F, null, G(Oe, (_e, je) => (d(), v("div", { key: je }, [
|
|
99
|
+
(d(!0), v(F, null, G(_e.rooms, (re, qe) => (d(), v("ul", { key: qe }, [
|
|
100
100
|
a("li", null, [
|
|
101
101
|
a("span", null, [
|
|
102
102
|
a("span", null, [
|
|
103
|
-
tt(
|
|
103
|
+
tt(h(e(pe)(_e.name)) + " ( ", 1),
|
|
104
104
|
y(W, {
|
|
105
105
|
icon: "male",
|
|
106
106
|
type: "fas",
|
|
107
107
|
color: "font"
|
|
108
108
|
}),
|
|
109
|
-
a("span", null,
|
|
110
|
-
re.childrenCount > 0 ? (d(),
|
|
109
|
+
a("span", null, h(re.adultsCount), 1),
|
|
110
|
+
re.childrenCount > 0 ? (d(), v(F, { key: 0 }, [
|
|
111
111
|
y(W, {
|
|
112
112
|
icon: "child",
|
|
113
113
|
type: "fas",
|
|
114
114
|
color: "font"
|
|
115
115
|
}),
|
|
116
|
-
a("span", null,
|
|
116
|
+
a("span", null, h(re.childrenCount), 1)
|
|
117
117
|
], 64)) : _("", !0),
|
|
118
118
|
tt(") ")
|
|
119
119
|
])
|
|
120
120
|
]),
|
|
121
121
|
a("b", null, [
|
|
122
|
-
a("span", null,
|
|
122
|
+
a("span", null, h(e(ne)(re.totalPrice, e(u))), 1),
|
|
123
123
|
_("", !0)
|
|
124
124
|
])
|
|
125
125
|
]),
|
|
126
|
-
ke(re.roomAddons) > 0 ? (d(),
|
|
127
|
-
a("span", null,
|
|
128
|
-
a("b", null,
|
|
126
|
+
ke(re.roomAddons) > 0 ? (d(), v("li", Wo, [
|
|
127
|
+
a("span", null, h(e(l)("general.addons")), 1),
|
|
128
|
+
a("b", null, h(e(ne)(ke(re.roomAddons), e(u))), 1)
|
|
129
129
|
])) : _("", !0)
|
|
130
130
|
]))), 128))
|
|
131
131
|
]))), 128))
|
|
132
132
|
]))), 128)) : _("", !0),
|
|
133
|
-
e(I) && e(
|
|
133
|
+
e(I) && e(B) ? (d(), v("div", xo, [
|
|
134
134
|
a("h6", null, [
|
|
135
|
-
a("span", null,
|
|
135
|
+
a("span", null, h(e(pe)(e(B).name)), 1)
|
|
136
136
|
]),
|
|
137
137
|
a("div", null, [
|
|
138
138
|
a("ul", null, [
|
|
139
139
|
a("li", null, [
|
|
140
140
|
a("span", null, [
|
|
141
|
-
a("span", null,
|
|
141
|
+
a("span", null, h(e(pe)(e(I).title)), 1)
|
|
142
142
|
]),
|
|
143
143
|
a("b", null, [
|
|
144
|
-
a("span", null,
|
|
144
|
+
a("span", null, h(e(ne)(e(I).extraPrice, e(u))), 1)
|
|
145
145
|
])
|
|
146
146
|
]),
|
|
147
|
-
e(q) ? (d(),
|
|
148
|
-
a("span", null,
|
|
149
|
-
a("b", null,
|
|
147
|
+
e(q) ? (d(), v("li", Ko, [
|
|
148
|
+
a("span", null, h(e(l)("general.addons")), 1),
|
|
149
|
+
a("b", null, h(e(ne)(e(q), e(u))), 1)
|
|
150
150
|
])) : _("", !0)
|
|
151
151
|
])
|
|
152
152
|
])
|
|
@@ -154,7 +154,7 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
154
154
|
]),
|
|
155
155
|
actions: w(() => [
|
|
156
156
|
a("ul", Jo, [
|
|
157
|
-
e(
|
|
157
|
+
e(p) ? _("", !0) : (d(), v("div", zo, [
|
|
158
158
|
y(Te, {
|
|
159
159
|
modelValue: e(R),
|
|
160
160
|
"onUpdate:modelValue": K[0] || (K[0] = (O) => j(R) ? R.value = O : null),
|
|
@@ -181,7 +181,7 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
181
181
|
class: "konnectio-accept-terms-link",
|
|
182
182
|
onClick: K[1] || (K[1] = Pt((O) => he.value = !0, ["prevent"]))
|
|
183
183
|
}, [
|
|
184
|
-
a("span", null,
|
|
184
|
+
a("span", null, h(e(Qe)(e(l)("general.termsAndConditions"))), 1)
|
|
185
185
|
])
|
|
186
186
|
]),
|
|
187
187
|
_: 1
|
|
@@ -190,7 +190,7 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
190
190
|
_: 1
|
|
191
191
|
}, 8, ["modelValue"])) : _("", !0),
|
|
192
192
|
Ye(Q.$slots, "actions", {}, void 0, !0),
|
|
193
|
-
y(
|
|
193
|
+
y(Bo, {
|
|
194
194
|
modelValue: he.value,
|
|
195
195
|
"onUpdate:modelValue": K[3] || (K[3] = (O) => he.value = O),
|
|
196
196
|
description: e(Y)
|
|
@@ -202,8 +202,8 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
202
202
|
]),
|
|
203
203
|
"mobile-under-price": w(() => [
|
|
204
204
|
Yo,
|
|
205
|
-
a("b", null,
|
|
206
|
-
Se((d(),
|
|
205
|
+
a("b", null, h(e(we)(e(E), e(k))) + " " + h(e(Qe)(e(we)(e(E), e(k)) === 1 ? e(l)("booking.reservation.night") : e(l)("booking.reservation.nights"))), 1),
|
|
206
|
+
Se((d(), v("span", Qo, [
|
|
207
207
|
y(W, {
|
|
208
208
|
icon: "circle-info",
|
|
209
209
|
type: "fas"
|
|
@@ -217,19 +217,19 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
217
217
|
])
|
|
218
218
|
]),
|
|
219
219
|
"mobile-summary": w(() => [
|
|
220
|
-
a("span", null,
|
|
221
|
-
a("span", null,
|
|
222
|
-
a("span", null,
|
|
220
|
+
a("span", null, h(`${e(be)} ${e(be) === 1 ? e(l)("general.adult") : e(l)("general.adults")}`), 1),
|
|
221
|
+
a("span", null, h(`${e(ge)} ${e(ge) === 1 ? e(l)("general.child") : e(l)("general.children")}`), 1),
|
|
222
|
+
a("span", null, h(`${e(ye)} ${e(ye) === 1 ? e(l)("booking.reservation.room") : e(l)("booking.reservation.rooms")}`), 1)
|
|
223
223
|
]),
|
|
224
224
|
_: 2
|
|
225
225
|
}, [
|
|
226
|
-
isNaN(e(
|
|
226
|
+
isNaN(e(N)) ? void 0 : {
|
|
227
227
|
name: "reservation-summary",
|
|
228
228
|
fn: w(() => [
|
|
229
|
-
e(Le) ? (d(),
|
|
230
|
-
a("span", null,
|
|
229
|
+
e(Le) ? (d(), v("li", Oo, [
|
|
230
|
+
a("span", null, h(e(l)("general.location")), 1),
|
|
231
231
|
a("b", null, [
|
|
232
|
-
a("span", null,
|
|
232
|
+
a("span", null, h(e(Ae)(e(N))), 1),
|
|
233
233
|
Se(a("span", jo, [
|
|
234
234
|
y(W, {
|
|
235
235
|
icon: "exclamation-triangle",
|
|
@@ -241,9 +241,9 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
241
241
|
])
|
|
242
242
|
])) : _("", !0),
|
|
243
243
|
a("li", null, [
|
|
244
|
-
a("span", null,
|
|
244
|
+
a("span", null, h(e(l)("booking.reservation.arrival")), 1),
|
|
245
245
|
a("b", null, [
|
|
246
|
-
a("span", null,
|
|
246
|
+
a("span", null, h(e(t) ? e(le)(e(E)) : `${e(le)(e(E))}, ${e(o) ? e(s) : e(r)}`), 1),
|
|
247
247
|
Se(a("span", qo, [
|
|
248
248
|
y(W, {
|
|
249
249
|
icon: "exclamation-triangle",
|
|
@@ -255,9 +255,9 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
255
255
|
])
|
|
256
256
|
]),
|
|
257
257
|
a("li", null, [
|
|
258
|
-
a("span", null,
|
|
258
|
+
a("span", null, h(e(l)("booking.reservation.departure")), 1),
|
|
259
259
|
a("b", null, [
|
|
260
|
-
a("span", null,
|
|
260
|
+
a("span", null, h(e(t) ? e(le)(e(k)) : `${e(le)(e(k))}, ${e(i) ? e(m) : e(c)}`), 1),
|
|
261
261
|
Se(a("span", Go, [
|
|
262
262
|
y(W, {
|
|
263
263
|
icon: "exclamation-triangle",
|
|
@@ -269,14 +269,14 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
269
269
|
])
|
|
270
270
|
]),
|
|
271
271
|
a("li", null, [
|
|
272
|
-
a("span", null,
|
|
273
|
-
a("b", null,
|
|
272
|
+
a("span", null, h(e(l)("booking.reservation.nights")), 1),
|
|
273
|
+
a("b", null, h(e(we)(e(E), e(k))) + " " + h(e(Qe)(e(we)(e(E), e(k)) === 1 ? e(l)("booking.reservation.night") : e(l)("booking.reservation.nights"))), 1)
|
|
274
274
|
]),
|
|
275
|
-
e(
|
|
275
|
+
e(M) ? (d(!0), v(F, { key: 1 }, G(e(M), (O) => (d(), v("li", {
|
|
276
276
|
key: O.id
|
|
277
277
|
}, [
|
|
278
|
-
a("span", null,
|
|
279
|
-
a("b", null,
|
|
278
|
+
a("span", null, h(`${e(l)("general.discountCode")} (${O.value})`), 1),
|
|
279
|
+
a("b", null, h(O.key), 1)
|
|
280
280
|
]))), 128)) : _("", !0)
|
|
281
281
|
]),
|
|
282
282
|
key: "0"
|
|
@@ -296,16 +296,16 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
296
296
|
emits: ["update:modelValue"],
|
|
297
297
|
setup(n, { emit: l }) {
|
|
298
298
|
const { t } = ie(), { currency: o } = Z(Pe()), i = l, s = n;
|
|
299
|
-
function
|
|
299
|
+
function m(u) {
|
|
300
300
|
i("update:modelValue", u);
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const p = x({
|
|
303
303
|
get: () => s.modelValue,
|
|
304
|
-
set: (u) =>
|
|
304
|
+
set: (u) => m(u)
|
|
305
305
|
});
|
|
306
|
-
return (u, r) => (d(), A(
|
|
307
|
-
modelValue:
|
|
308
|
-
"onUpdate:modelValue": r[0] || (r[0] = (c) =>
|
|
306
|
+
return (u, r) => (d(), A(Be, {
|
|
307
|
+
modelValue: p.value,
|
|
308
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => p.value = c),
|
|
309
309
|
label: u.label,
|
|
310
310
|
placeholder: "Select guest configuration",
|
|
311
311
|
labelKey: "label",
|
|
@@ -324,17 +324,17 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
324
324
|
type: "fas",
|
|
325
325
|
color: "font"
|
|
326
326
|
}),
|
|
327
|
-
a("span", null,
|
|
328
|
-
c.children > 0 ? (d(),
|
|
327
|
+
a("span", null, h(`${c.adults}`), 1),
|
|
328
|
+
c.children > 0 ? (d(), v("span", tl, [
|
|
329
329
|
y(W, {
|
|
330
330
|
icon: "child",
|
|
331
331
|
type: "fas",
|
|
332
332
|
color: "font"
|
|
333
333
|
}),
|
|
334
|
-
a("span", null,
|
|
334
|
+
a("span", null, h(`${c.children}`), 1)
|
|
335
335
|
])) : _("", !0)
|
|
336
336
|
]),
|
|
337
|
-
a("span", null,
|
|
337
|
+
a("span", null, h(`(${e(ne)(c.price, e(o))})`), 1)
|
|
338
338
|
])
|
|
339
339
|
]),
|
|
340
340
|
"selected-option": w(({ data: c }) => [
|
|
@@ -342,16 +342,16 @@ const Wo = { key: 0 }, xo = { key: 1 }, Ko = { key: 0 }, Jo = { class: "konnecti
|
|
|
342
342
|
a("div", ll, [
|
|
343
343
|
a("div", null, [
|
|
344
344
|
_("", !0),
|
|
345
|
-
a("span", null,
|
|
345
|
+
a("span", null, h(`${c.adults} ${c.adults === 1 ? e(t)("general.adult") : e(t)("general.adults")}`), 1)
|
|
346
346
|
]),
|
|
347
|
-
c.children > 0 ? (d(),
|
|
347
|
+
c.children > 0 ? (d(), v("div", nl, [
|
|
348
348
|
_("", !0),
|
|
349
|
-
a("span", null,
|
|
349
|
+
a("span", null, h(`& ${c.children} ${c.children === 1 ? e(t)("general.child") : e(t)("general.children")}`), 1)
|
|
350
350
|
])) : _("", !0)
|
|
351
351
|
]),
|
|
352
352
|
a("div", al, [
|
|
353
353
|
il,
|
|
354
|
-
tt(" " +
|
|
354
|
+
tt(" " + h(`(${e(ne)(c.price, e(o))})`), 1)
|
|
355
355
|
])
|
|
356
356
|
])
|
|
357
357
|
]),
|
|
@@ -377,18 +377,18 @@ const ml = /* @__PURE__ */ ee({
|
|
|
377
377
|
const s = x(() => t.room.rates.map((k) => ({
|
|
378
378
|
label: k.name,
|
|
379
379
|
value: k.id
|
|
380
|
-
}))), { hideAvailableRoomAmount:
|
|
380
|
+
}))), { hideAvailableRoomAmount: m, autoSelectRateId: p } = Z(Pe()), { roomSelect: u } = Z(ve()), { addToCart: r, removeFromCart: c } = At(), f = (k, D) => t.room.rates.find((N) => N.id === k)?.occupantRates.find((N) => N.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) => ({
|
|
381
381
|
value: D.index,
|
|
382
382
|
price: D.totalPrice,
|
|
383
383
|
adults: D.adultsCount,
|
|
384
384
|
children: D.childrenCount,
|
|
385
385
|
hasBreakfast: D.hasBreakfast
|
|
386
386
|
})) || [] : [], I = x(() => t.room.rates.length > 1);
|
|
387
|
-
function
|
|
388
|
-
o.value[k].config[0].id = t.room.rates.find((
|
|
387
|
+
function B(k, D) {
|
|
388
|
+
o.value[k].config[0].id = t.room.rates.find((N) => N.id === D.value)?.occupantRateIndex || NaN;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
I.value ?
|
|
390
|
+
function M() {
|
|
391
|
+
I.value ? p.value ? o.value.push({
|
|
392
392
|
id: t.room.bestRateMatch || void 0,
|
|
393
393
|
config: [{
|
|
394
394
|
id: t.room.bestRateMatch && !isNaN(t.room.bestRateMatch) ? t.room.rates.find((k) => k.id === t.room.bestRateMatch)?.occupantRateIndex : NaN,
|
|
@@ -412,12 +412,12 @@ const ml = /* @__PURE__ */ ee({
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
st(() => {
|
|
415
|
-
|
|
415
|
+
M();
|
|
416
416
|
});
|
|
417
417
|
const E = x(() => JSON.parse(JSON.stringify(o.value)));
|
|
418
418
|
return Ee(E, (k, D) => {
|
|
419
|
-
D.length > 0 && k.forEach((
|
|
420
|
-
|
|
419
|
+
D.length > 0 && k.forEach((N, z) => {
|
|
420
|
+
N.config.forEach((R, Y) => {
|
|
421
421
|
const L = R.units, se = D[z].config[Y].units;
|
|
422
422
|
L !== se && (L > se ? (o.value[z].config[Y].addons.push({}), r({
|
|
423
423
|
id: t.room.id,
|
|
@@ -445,29 +445,29 @@ const ml = /* @__PURE__ */ ee({
|
|
|
445
445
|
}, {
|
|
446
446
|
action: w(() => [
|
|
447
447
|
a("div", dl, [
|
|
448
|
-
(d(!0),
|
|
449
|
-
key:
|
|
448
|
+
(d(!0), v(F, null, G(o.value, (N, z) => (d(), v("div", {
|
|
449
|
+
key: N.id,
|
|
450
450
|
class: "konnectio-hotel-room"
|
|
451
451
|
}, [
|
|
452
|
-
I.value ? (d(), A(
|
|
452
|
+
I.value ? (d(), A(Be, {
|
|
453
453
|
key: 0,
|
|
454
|
-
modelValue:
|
|
455
|
-
"onUpdate:modelValue": (R) =>
|
|
454
|
+
modelValue: N.id,
|
|
455
|
+
"onUpdate:modelValue": (R) => N.id = R,
|
|
456
456
|
label: e(l)("hotel.roomVariant"),
|
|
457
457
|
placeholder: e(l)("hotel.chooseARoomVariant"),
|
|
458
458
|
options: s.value,
|
|
459
459
|
searchable: !1,
|
|
460
|
-
onChanged: (R) =>
|
|
460
|
+
onChanged: (R) => B(z, R)
|
|
461
461
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options", "onChanged"])) : _("", !0),
|
|
462
|
-
|
|
463
|
-
(d(!0),
|
|
462
|
+
N.id ? (d(), v("div", ul, [
|
|
463
|
+
(d(!0), v(F, null, G(k.room.rates, ({
|
|
464
464
|
id: R,
|
|
465
465
|
maximumOccupants: Y
|
|
466
|
-
}) => (d(),
|
|
466
|
+
}) => (d(), v("div", {
|
|
467
467
|
key: R,
|
|
468
468
|
class: "konnectio-listing-action-selective-i"
|
|
469
469
|
}, [
|
|
470
|
-
|
|
470
|
+
N.id === R ? (d(!0), v(F, { key: 0 }, G(N.config, (L, se) => (d(), v("div", {
|
|
471
471
|
key: se,
|
|
472
472
|
class: "konnectio-listing-action-selective"
|
|
473
473
|
}, [
|
|
@@ -487,7 +487,7 @@ const ml = /* @__PURE__ */ ee({
|
|
|
487
487
|
y(ot, {
|
|
488
488
|
modelValue: L.units,
|
|
489
489
|
"onUpdate:modelValue": (te) => L.units = te,
|
|
490
|
-
description: e(
|
|
490
|
+
description: e(m) ? void 0 : `${e(l)("booking.availability.availableUnits")}: ${T(N.id, L.id)}`,
|
|
491
491
|
icon: "house",
|
|
492
492
|
"icon-type": "fas",
|
|
493
493
|
"icon-placement": "label",
|
|
@@ -516,14 +516,14 @@ const ml = /* @__PURE__ */ ee({
|
|
|
516
516
|
callback: { type: Function }
|
|
517
517
|
},
|
|
518
518
|
setup(n) {
|
|
519
|
-
const { t: l } = ie(), { templateID: t, roomGroupID: o, selectionHasNoAddons: i } = Z(ve()), { currency: s } = Z(Pe()), { clearRoomSelection:
|
|
519
|
+
const { t: l } = ie(), { templateID: t, roomGroupID: o, selectionHasNoAddons: i } = Z(ve()), { currency: s } = Z(Pe()), { clearRoomSelection: m } = ve(), p = n, u = ae(!0), r = x(() => {
|
|
520
520
|
function f($, T) {
|
|
521
521
|
return u.value === !0 ? $.extraPrice > T.extraPrice ? -1 : 1 : $.extraPrice > T.extraPrice ? 1 : -1;
|
|
522
522
|
}
|
|
523
|
-
return
|
|
523
|
+
return p.roomGroups?.slice().sort(f);
|
|
524
524
|
});
|
|
525
525
|
function c(f) {
|
|
526
|
-
t.value =
|
|
526
|
+
t.value = p.templateId, o.value = f, m(), p.hideAddons === !0 || i.value ? p.callback(2) : p.callback(1);
|
|
527
527
|
}
|
|
528
528
|
return (f, $) => (d(), A(Ro, {
|
|
529
529
|
title: f.title,
|
|
@@ -532,20 +532,20 @@ const ml = /* @__PURE__ */ ee({
|
|
|
532
532
|
default: w(() => [
|
|
533
533
|
a("div", hl, [
|
|
534
534
|
a("div", vl, [
|
|
535
|
-
(d(!0),
|
|
535
|
+
(d(!0), v(F, null, G(r.value, ({
|
|
536
536
|
id: T,
|
|
537
537
|
title: C,
|
|
538
538
|
description: I,
|
|
539
|
-
images:
|
|
540
|
-
facilities:
|
|
539
|
+
images: B,
|
|
540
|
+
facilities: M,
|
|
541
541
|
extraPrice: E
|
|
542
542
|
}) => (d(), A(Re, {
|
|
543
543
|
key: T,
|
|
544
544
|
"listing-id": T,
|
|
545
545
|
name: C,
|
|
546
546
|
description: I,
|
|
547
|
-
facilities:
|
|
548
|
-
gallery:
|
|
547
|
+
facilities: M,
|
|
548
|
+
gallery: B,
|
|
549
549
|
"includes-breakfast": !1,
|
|
550
550
|
"hide-info-button": !0
|
|
551
551
|
}, {
|
|
@@ -566,7 +566,7 @@ const ml = /* @__PURE__ */ ee({
|
|
|
566
566
|
_: 1
|
|
567
567
|
}, 8, ["title", "subtitle"]));
|
|
568
568
|
}
|
|
569
|
-
}), It = /* @__PURE__ */ fe(yl, [["__scopeId", "data-v-7424de30"]]),
|
|
569
|
+
}), It = /* @__PURE__ */ fe(yl, [["__scopeId", "data-v-7424de30"]]), bl = { class: "konnectio-template-select-package" }, gl = /* @__PURE__ */ ee({
|
|
570
570
|
__name: "Template",
|
|
571
571
|
props: {
|
|
572
572
|
id: {},
|
|
@@ -591,10 +591,10 @@ const ml = /* @__PURE__ */ ee({
|
|
|
591
591
|
url: t.image.url
|
|
592
592
|
}];
|
|
593
593
|
}), s = ae(!1);
|
|
594
|
-
function
|
|
594
|
+
function m() {
|
|
595
595
|
s.value = !0;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function p(u) {
|
|
598
598
|
t.callback(u), s.value = !1;
|
|
599
599
|
}
|
|
600
600
|
return (u, r) => (d(), A(Re, {
|
|
@@ -609,9 +609,9 @@ const ml = /* @__PURE__ */ ee({
|
|
|
609
609
|
"prices-from": o.value
|
|
610
610
|
}, {
|
|
611
611
|
action: w(() => [
|
|
612
|
-
a("div",
|
|
612
|
+
a("div", bl, [
|
|
613
613
|
y(me, {
|
|
614
|
-
onClickEvent:
|
|
614
|
+
onClickEvent: m,
|
|
615
615
|
label: e(l)("booking.availability.selectPackage"),
|
|
616
616
|
"full-width": ""
|
|
617
617
|
}, null, 8, ["label"])
|
|
@@ -625,7 +625,7 @@ const ml = /* @__PURE__ */ ee({
|
|
|
625
625
|
"template-id": u.id,
|
|
626
626
|
"room-groups": u.roomGroups,
|
|
627
627
|
"hide-addons": u.hideAddons,
|
|
628
|
-
callback:
|
|
628
|
+
callback: p
|
|
629
629
|
}, null, 8, ["modelValue", "title", "template-id", "room-groups", "hide-addons"])
|
|
630
630
|
]),
|
|
631
631
|
_: 1
|
|
@@ -645,7 +645,7 @@ const ml = /* @__PURE__ */ ee({
|
|
|
645
645
|
callback: { type: Function }
|
|
646
646
|
},
|
|
647
647
|
setup(n) {
|
|
648
|
-
const { t: l } = ie(), { updateDates: t } = Ce(), { display: o } = St(), i = n, s = ae([]),
|
|
648
|
+
const { t: l } = ie(), { updateDates: t } = Ce(), { display: o } = St(), i = n, s = ae([]), m = x(() => we(i.fromDate, i.toDate) === 1), p = x(() => [{
|
|
649
649
|
large: i.image.url,
|
|
650
650
|
medium: i.image.url,
|
|
651
651
|
thumb: i.image.url,
|
|
@@ -661,13 +661,13 @@ const ml = /* @__PURE__ */ ee({
|
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
return st(() => {
|
|
664
|
-
|
|
664
|
+
m.value && (s.value = [new Date(i.fromDate), new Date(i.toDate)]);
|
|
665
665
|
}), (f, $) => (d(), A(Re, {
|
|
666
666
|
type: "template",
|
|
667
667
|
"listing-id": f.id,
|
|
668
668
|
name: f.name,
|
|
669
669
|
description: f.description,
|
|
670
|
-
gallery:
|
|
670
|
+
gallery: p.value,
|
|
671
671
|
layout: e(Dt).Template,
|
|
672
672
|
"includes-breakfast": !1,
|
|
673
673
|
"hide-info-button": !1,
|
|
@@ -687,7 +687,7 @@ const ml = /* @__PURE__ */ ee({
|
|
|
687
687
|
"start-date": new Date(f.fromDate),
|
|
688
688
|
"min-date": new Date(f.fromDate),
|
|
689
689
|
"max-date": new Date(f.toDate),
|
|
690
|
-
readonly:
|
|
690
|
+
readonly: m.value,
|
|
691
691
|
range: ""
|
|
692
692
|
}, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
|
|
693
693
|
a("div", _l, [
|
|
@@ -711,7 +711,7 @@ const ml = /* @__PURE__ */ ee({
|
|
|
711
711
|
_: 1
|
|
712
712
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
|
|
713
713
|
}
|
|
714
|
-
}),
|
|
714
|
+
}), gt = /* @__PURE__ */ ee({
|
|
715
715
|
__name: "TimeField",
|
|
716
716
|
props: {
|
|
717
717
|
modelValue: {},
|
|
@@ -730,27 +730,27 @@ const ml = /* @__PURE__ */ ee({
|
|
|
730
730
|
emits: ["update:modelValue"],
|
|
731
731
|
setup(n, { emit: l }) {
|
|
732
732
|
const t = l, o = n;
|
|
733
|
-
function i(
|
|
734
|
-
t("update:modelValue",
|
|
733
|
+
function i(m) {
|
|
734
|
+
t("update:modelValue", m);
|
|
735
735
|
}
|
|
736
736
|
const s = ae(o.modelValue);
|
|
737
|
-
return Ee(s, (
|
|
738
|
-
i(
|
|
739
|
-
}), (
|
|
737
|
+
return Ee(s, (m) => {
|
|
738
|
+
i(m);
|
|
739
|
+
}), (m, p) => (d(), A(Ht, {
|
|
740
740
|
modelValue: s.value,
|
|
741
|
-
"onUpdate:modelValue":
|
|
741
|
+
"onUpdate:modelValue": p[0] || (p[0] = (u) => s.value = u),
|
|
742
742
|
type: "time",
|
|
743
|
-
label:
|
|
744
|
-
id:
|
|
745
|
-
name:
|
|
746
|
-
icon:
|
|
747
|
-
"icon-type":
|
|
748
|
-
"icon-color":
|
|
743
|
+
label: m.label,
|
|
744
|
+
id: m.id,
|
|
745
|
+
name: m.name,
|
|
746
|
+
icon: m.icon,
|
|
747
|
+
"icon-type": m.iconType,
|
|
748
|
+
"icon-color": m.iconColor,
|
|
749
749
|
"auto-apply": !0,
|
|
750
|
-
required:
|
|
751
|
-
readonly:
|
|
752
|
-
"min-time":
|
|
753
|
-
"max-time":
|
|
750
|
+
required: m.required,
|
|
751
|
+
readonly: m.readonly,
|
|
752
|
+
"min-time": m.minTime,
|
|
753
|
+
"max-time": m.maxTime
|
|
754
754
|
}, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly", "min-time", "max-time"]));
|
|
755
755
|
}
|
|
756
756
|
}), $l = { style: { display: "flex", "align-items": "baseline" } }, wl = /* @__PURE__ */ ee({
|
|
@@ -766,35 +766,35 @@ const ml = /* @__PURE__ */ ee({
|
|
|
766
766
|
emits: ["update:modelValue"],
|
|
767
767
|
setup(n, { emit: l }) {
|
|
768
768
|
const { t } = ie(), o = l, i = n;
|
|
769
|
-
function s(
|
|
770
|
-
o("update:modelValue",
|
|
769
|
+
function s(p) {
|
|
770
|
+
o("update:modelValue", p);
|
|
771
771
|
}
|
|
772
|
-
const
|
|
772
|
+
const m = x({
|
|
773
773
|
get: () => i.modelValue,
|
|
774
|
-
set: (
|
|
774
|
+
set: (p) => s(p)
|
|
775
775
|
});
|
|
776
|
-
return (
|
|
777
|
-
modelValue:
|
|
778
|
-
"onUpdate:modelValue": u[0] || (u[0] = (r) =>
|
|
779
|
-
label:
|
|
776
|
+
return (p, u) => (d(), A(Be, {
|
|
777
|
+
modelValue: m.value,
|
|
778
|
+
"onUpdate:modelValue": u[0] || (u[0] = (r) => m.value = r),
|
|
779
|
+
label: p.label,
|
|
780
780
|
placeholder: e(t)("booking.reservation.countryPlaceholder"),
|
|
781
781
|
labelKey: "name",
|
|
782
782
|
valueKey: "id",
|
|
783
|
-
options:
|
|
784
|
-
required:
|
|
783
|
+
options: p.options,
|
|
784
|
+
required: p.required
|
|
785
785
|
}, {
|
|
786
786
|
option: w(({ data: r }) => [
|
|
787
787
|
a("i", {
|
|
788
|
-
class:
|
|
788
|
+
class: Ne(["konnectio-flag-icon", r.iso])
|
|
789
789
|
}, null, 2),
|
|
790
|
-
a("span", null,
|
|
790
|
+
a("span", null, h(r.name), 1)
|
|
791
791
|
]),
|
|
792
792
|
"selected-option": w(({ data: r }) => [
|
|
793
793
|
a("div", $l, [
|
|
794
794
|
a("i", {
|
|
795
|
-
class:
|
|
795
|
+
class: Ne(["konnectio-flag-icon", r.iso])
|
|
796
796
|
}, null, 2),
|
|
797
|
-
a("span", null,
|
|
797
|
+
a("span", null, h(r.name), 1)
|
|
798
798
|
])
|
|
799
799
|
]),
|
|
800
800
|
_: 1
|
|
@@ -822,16 +822,16 @@ const ml = /* @__PURE__ */ ee({
|
|
|
822
822
|
},
|
|
823
823
|
emits: ["update:modelValue", "update:title"],
|
|
824
824
|
setup(n, { emit: l }) {
|
|
825
|
-
const t = n, o = l, i = t.id || vt(), s = ae(""),
|
|
826
|
-
function
|
|
825
|
+
const t = n, o = l, i = t.id || vt(), s = ae(""), m = ae(2);
|
|
826
|
+
function p() {
|
|
827
827
|
o("update:modelValue", s.value);
|
|
828
828
|
}
|
|
829
|
-
Ee(
|
|
829
|
+
Ee(m, (r) => {
|
|
830
830
|
o("update:title", r);
|
|
831
831
|
});
|
|
832
832
|
const { t: u } = ie();
|
|
833
833
|
return st(() => {
|
|
834
|
-
t.modelValue && (s.value = t.modelValue), t.title && (
|
|
834
|
+
t.modelValue && (s.value = t.modelValue), t.title && (m.value = t.title);
|
|
835
835
|
}), (r, c) => (d(), A(ko, {
|
|
836
836
|
label: r.label,
|
|
837
837
|
id: e(i),
|
|
@@ -842,15 +842,15 @@ const ml = /* @__PURE__ */ ee({
|
|
|
842
842
|
}, {
|
|
843
843
|
default: w(() => [
|
|
844
844
|
a("div", {
|
|
845
|
-
class:
|
|
845
|
+
class: Ne([
|
|
846
846
|
"konnectio-name-input",
|
|
847
847
|
{ "no-title": r.excludeTitle }
|
|
848
848
|
])
|
|
849
849
|
}, [
|
|
850
|
-
r.excludeTitle ? _("", !0) : (d(), A(
|
|
850
|
+
r.excludeTitle ? _("", !0) : (d(), A(Be, {
|
|
851
851
|
key: 0,
|
|
852
|
-
modelValue:
|
|
853
|
-
"onUpdate:modelValue": c[0] || (c[0] = (f) =>
|
|
852
|
+
modelValue: m.value,
|
|
853
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => m.value = f),
|
|
854
854
|
id: e(vt)(),
|
|
855
855
|
icon: r.icon,
|
|
856
856
|
"icon-color": r.iconColor,
|
|
@@ -896,7 +896,7 @@ const ml = /* @__PURE__ */ ee({
|
|
|
896
896
|
required: r.required,
|
|
897
897
|
readonly: r.readonly,
|
|
898
898
|
limit: r.limit,
|
|
899
|
-
onInput: c[2] || (c[2] = (f) =>
|
|
899
|
+
onInput: c[2] || (c[2] = (f) => p()),
|
|
900
900
|
"input-style": r.inputStyle
|
|
901
901
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
|
|
902
902
|
], 2)
|
|
@@ -907,9 +907,9 @@ const ml = /* @__PURE__ */ ee({
|
|
|
907
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({
|
|
908
908
|
__name: "HotelSkeleton",
|
|
909
909
|
setup(n) {
|
|
910
|
-
return (l, t) => (d(),
|
|
910
|
+
return (l, t) => (d(), v("div", Al, [
|
|
911
911
|
a("div", Dl, [
|
|
912
|
-
y(
|
|
912
|
+
y(No, { hotel: "" }),
|
|
913
913
|
y(Po)
|
|
914
914
|
]),
|
|
915
915
|
a("div", Sl, [
|
|
@@ -917,8 +917,8 @@ const ml = /* @__PURE__ */ ee({
|
|
|
917
917
|
])
|
|
918
918
|
]));
|
|
919
919
|
}
|
|
920
|
-
}), Il = /* @__PURE__ */ fe(Hl, [["__scopeId", "data-v-1bb21da4"]]), El = (n) => (at("data-v-
|
|
921
|
-
const
|
|
920
|
+
}), Il = /* @__PURE__ */ fe(Hl, [["__scopeId", "data-v-1bb21da4"]]), El = (n) => (at("data-v-72435bab"), n = n(), it(), n), Nl = { id: "booking-availability-container" }, Ml = { id: "booking-availability-controls" };
|
|
921
|
+
const Bl = { key: 1 }, Rl = { key: 0 }, Ll = {
|
|
922
922
|
key: 0,
|
|
923
923
|
id: "booking-availability-packages"
|
|
924
924
|
}, Ul = {
|
|
@@ -940,25 +940,24 @@ const Ml = { key: 1 }, Rl = { key: 0 }, Ll = {
|
|
|
940
940
|
}, zl = {
|
|
941
941
|
key: 2,
|
|
942
942
|
id: "reservation-availability-next-dates"
|
|
943
|
-
}, Yl = { class: "konnectio-hotel-availability-title" }, Ql = { class: "reservation-special-offers-grid" }, Xl = ["title"]
|
|
944
|
-
const Zl = {
|
|
943
|
+
}, Yl = { class: "konnectio-hotel-availability-title" }, Ql = { class: "reservation-special-offers-grid" }, Xl = ["title"], Zl = { key: 0 }, en = {
|
|
945
944
|
key: 2,
|
|
946
945
|
class: "konnectio-panel"
|
|
947
|
-
},
|
|
946
|
+
}, tn = {
|
|
948
947
|
key: 3,
|
|
949
948
|
class: "konnectio-listing-loading"
|
|
950
|
-
},
|
|
949
|
+
}, on = { class: "konnectio-panel" }, ln = {
|
|
951
950
|
key: 0,
|
|
952
951
|
id: "konnectio-hotel-addons"
|
|
953
952
|
};
|
|
954
|
-
const
|
|
953
|
+
const nn = { class: "konnectio-event-addons-price" }, an = { key: 1 }, sn = { class: "konnectio-table-addons-information" }, rn = { class: "konnectio-table-addons-option" }, dn = {
|
|
955
954
|
key: 1,
|
|
956
955
|
id: "konnectio-hotel-addons"
|
|
957
|
-
},
|
|
958
|
-
const
|
|
956
|
+
}, un = { class: "konnectio-table with-lines" };
|
|
957
|
+
const cn = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-event-addons-price" }, null, -1)), pn = { class: "konnectio-table-addons-information" }, mn = { class: "konnectio-table-addons-option" }, fn = { class: "konnectio-panel" }, hn = { key: 0 }, vn = { key: 1 }, yn = {
|
|
959
958
|
key: 1,
|
|
960
959
|
class: "konnectio-show-on-mobile"
|
|
961
|
-
},
|
|
960
|
+
}, bn = { class: "konnectio-split-inputs" }, gn = /* @__PURE__ */ ee({
|
|
962
961
|
name: "HotelLayout",
|
|
963
962
|
__name: "Hotel",
|
|
964
963
|
props: {
|
|
@@ -971,11 +970,11 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
971
970
|
styling: {}
|
|
972
971
|
},
|
|
973
972
|
setup(n) {
|
|
974
|
-
const l = co(() => import("./_-
|
|
973
|
+
const l = co(() => import("./_-Cd2-tqPM.js")), t = n, { t: o } = ie(), {
|
|
975
974
|
currentLocation: i,
|
|
976
975
|
templateID: s,
|
|
977
|
-
templateAddons:
|
|
978
|
-
countries:
|
|
976
|
+
templateAddons: m,
|
|
977
|
+
countries: p,
|
|
979
978
|
areListingsLoading: u,
|
|
980
979
|
isPaymentLoading: r,
|
|
981
980
|
isReservationFormFilled: c,
|
|
@@ -984,12 +983,12 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
984
983
|
departureTime: T,
|
|
985
984
|
name: C,
|
|
986
985
|
nameTitle: I,
|
|
987
|
-
email:
|
|
988
|
-
phone:
|
|
986
|
+
email: B,
|
|
987
|
+
phone: M,
|
|
989
988
|
firmName: E,
|
|
990
989
|
postal: k,
|
|
991
990
|
city: D,
|
|
992
|
-
address:
|
|
991
|
+
address: N,
|
|
993
992
|
country: z,
|
|
994
993
|
remark: R,
|
|
995
994
|
allergies: Y,
|
|
@@ -998,8 +997,8 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
998
997
|
hasValidRoomSelection: te,
|
|
999
998
|
availabilityData: q,
|
|
1000
999
|
selectionHasNoAddons: ye,
|
|
1001
|
-
isAvailabilityDataAvailable:
|
|
1002
|
-
getSelectedPackageRoom:
|
|
1000
|
+
isAvailabilityDataAvailable: be,
|
|
1001
|
+
getSelectedPackageRoom: ge,
|
|
1003
1002
|
selectedPackage: Le,
|
|
1004
1003
|
isSearchOutdated: dt,
|
|
1005
1004
|
currentChildren: Ue,
|
|
@@ -1064,7 +1063,7 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1064
1063
|
icon: "calendar-check"
|
|
1065
1064
|
}
|
|
1066
1065
|
]), eo = x(() => {
|
|
1067
|
-
const
|
|
1066
|
+
const g = [
|
|
1068
1067
|
{
|
|
1069
1068
|
label: o("booking.reservation.business"),
|
|
1070
1069
|
value: "Business"
|
|
@@ -1074,38 +1073,38 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1074
1073
|
value: "Pleasure"
|
|
1075
1074
|
}
|
|
1076
1075
|
];
|
|
1077
|
-
return Ot.value ||
|
|
1076
|
+
return Ot.value || g.push({
|
|
1078
1077
|
label: o("booking.reservation.bleasure"),
|
|
1079
1078
|
value: "Bleasure"
|
|
1080
|
-
}),
|
|
1079
|
+
}), g;
|
|
1081
1080
|
}), to = x(() => {
|
|
1082
|
-
const
|
|
1081
|
+
const g = q.value.roomGroups.slice();
|
|
1083
1082
|
function V(J, P) {
|
|
1084
1083
|
return Xt.value === !0 ? J.pricesFrom > P.pricesFrom ? -1 : 1 : J.pricesFrom > P.pricesFrom ? 1 : -1;
|
|
1085
1084
|
}
|
|
1086
|
-
return
|
|
1085
|
+
return g.sort(V);
|
|
1087
1086
|
}), Ke = x(() => t.hideAddons === "yes" || Ae.value && t.hideAddons === "packages" || !Ae.value && t.hideAddons === "rooms");
|
|
1088
|
-
function ht(
|
|
1089
|
-
Ke.value || ye.value ?
|
|
1087
|
+
function ht(g) {
|
|
1088
|
+
Ke.value || ye.value ? g(2) : g(), zt();
|
|
1090
1089
|
}
|
|
1091
|
-
async function oo(
|
|
1092
|
-
await Yt(
|
|
1090
|
+
async function oo(g, V) {
|
|
1091
|
+
await Yt(g, V);
|
|
1093
1092
|
}
|
|
1094
|
-
function lo(
|
|
1095
|
-
Rt.value && Kt(), Ke.value || ye.value ?
|
|
1093
|
+
function lo(g) {
|
|
1094
|
+
Rt.value && Kt(), Ke.value || ye.value ? g(2) : g();
|
|
1096
1095
|
}
|
|
1097
1096
|
function no() {
|
|
1098
|
-
const
|
|
1097
|
+
const g = $o("history", {
|
|
1099
1098
|
removeNullishValues: !0
|
|
1100
|
-
}), V = parseInt(
|
|
1099
|
+
}), V = parseInt(g.a), J = parseInt(g.c), P = parseInt(g.hid), S = parseInt(g.n), b = g.ci, U = g.co, H = g.id;
|
|
1101
1100
|
let oe = !1;
|
|
1102
|
-
if (isNaN(V) || (V > ct.value ? ke.value = ct.value : ke.value = V, ke.value === Gt.value && (
|
|
1101
|
+
if (isNaN(V) || (V > ct.value ? ke.value = ct.value : ke.value = V, ke.value === Gt.value && (g.a = void 0)), isNaN(J) || (J > pt.value ? Q.value = pt.value : Q.value = J, Q.value === Wt.value && (g.c = void 0)), isNaN(S) || S > 0 && (g.n = void 0), isNaN(P) || (Fe(P) ? (K.value = P, oe = !0) : xe({
|
|
1103
1102
|
message: o("alert.error.hotelIdNotFound"),
|
|
1104
1103
|
type: "error"
|
|
1105
|
-
})),
|
|
1106
|
-
if (
|
|
1107
|
-
const Ve = new Date(
|
|
1108
|
-
Ve <= de ? ($e.value = Ve, O.value = de) : (
|
|
1104
|
+
})), b && U)
|
|
1105
|
+
if (bt(b) && bt(U)) {
|
|
1106
|
+
const Ve = new Date(b), de = new Date(U);
|
|
1107
|
+
Ve <= de ? ($e.value = Ve, O.value = de) : (g.ci = void 0, g.co = void 0, xe({
|
|
1109
1108
|
message: o("alert.error.invalidDateRange"),
|
|
1110
1109
|
type: "error"
|
|
1111
1110
|
}));
|
|
@@ -1117,95 +1116,95 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1117
1116
|
let X = null;
|
|
1118
1117
|
H && (X = H), t.disableDefaultLocation === "yes" && oe === !1 ? (K.value = void 0, i.value = void 0) : mt(X);
|
|
1119
1118
|
}
|
|
1120
|
-
return (
|
|
1119
|
+
return (g, V) => (d(), A(Vo, { styling: g.styling }, {
|
|
1121
1120
|
default: w(() => [
|
|
1122
1121
|
(d(), A(uo, { onResolve: no }, {
|
|
1123
1122
|
default: w(() => [
|
|
1124
1123
|
y(e(l), {
|
|
1125
1124
|
id: "konnectio-hotel-module",
|
|
1126
|
-
"access-token":
|
|
1125
|
+
"access-token": g.accessToken,
|
|
1127
1126
|
callback: e(Qt)
|
|
1128
1127
|
}, {
|
|
1129
1128
|
default: w(() => [
|
|
1130
1129
|
y(Do, {
|
|
1131
|
-
layout:
|
|
1130
|
+
layout: g.headerLayout,
|
|
1132
1131
|
steps: Zt.value,
|
|
1133
1132
|
onReset: e(Jt)
|
|
1134
1133
|
}, {
|
|
1135
1134
|
availability: w(({ next: J }) => [
|
|
1136
1135
|
y(Ze, null, {
|
|
1137
1136
|
form: w(() => [
|
|
1138
|
-
a("div",
|
|
1139
|
-
a("div",
|
|
1140
|
-
y(
|
|
1137
|
+
a("div", Nl, [
|
|
1138
|
+
a("div", Ml, [
|
|
1139
|
+
y(Mo, {
|
|
1141
1140
|
booking: !0,
|
|
1142
|
-
"selected-location": Number(
|
|
1143
|
-
"disable-default-location":
|
|
1141
|
+
"selected-location": Number(g.selectedLocation),
|
|
1142
|
+
"disable-default-location": g.disableDefaultLocation === "yes"
|
|
1144
1143
|
}, null, 8, ["selected-location", "disable-default-location"])
|
|
1145
1144
|
]),
|
|
1146
1145
|
_("", !0),
|
|
1147
|
-
!e(u) && e(
|
|
1148
|
-
e(q).roomGroups.length > 0 || e(q).templates.length > 0 || e(q).specialTemplates.length > 0 ? (d(),
|
|
1149
|
-
e(q).templates.length > 0 &&
|
|
1150
|
-
|
|
1146
|
+
!e(u) && e(be) ? (d(), v("div", Bl, [
|
|
1147
|
+
e(q).roomGroups.length > 0 || e(q).templates.length > 0 || e(q).specialTemplates.length > 0 ? (d(), v("div", Rl, [
|
|
1148
|
+
e(q).templates.length > 0 && g.onlyShow !== "rooms" ? (d(), v("div", Ll, [
|
|
1149
|
+
g.onlyShow !== "packages" ? (d(), v("h2", Ul, [
|
|
1151
1150
|
y(W, {
|
|
1152
1151
|
icon: "box",
|
|
1153
1152
|
type: "fal",
|
|
1154
1153
|
color: "header"
|
|
1155
1154
|
}),
|
|
1156
|
-
a("span", null,
|
|
1155
|
+
a("span", null, h(e(o)("booking.availability.packagesTitle")), 1)
|
|
1157
1156
|
])) : _("", !0),
|
|
1158
1157
|
a("ul", Fl, [
|
|
1159
|
-
(d(!0),
|
|
1158
|
+
(d(!0), v(F, null, G(e(q).templates, ({
|
|
1160
1159
|
id: P,
|
|
1161
1160
|
name: S,
|
|
1162
|
-
templateRoomGroups:
|
|
1161
|
+
templateRoomGroups: b,
|
|
1163
1162
|
image: U,
|
|
1164
1163
|
description: H,
|
|
1165
1164
|
weekendFee: oe
|
|
1166
|
-
}) => (d(), A(
|
|
1165
|
+
}) => (d(), A(gl, {
|
|
1167
1166
|
key: P,
|
|
1168
1167
|
id: P,
|
|
1169
1168
|
description: H,
|
|
1170
1169
|
name: S,
|
|
1171
1170
|
image: U,
|
|
1172
1171
|
weekendFee: oe,
|
|
1173
|
-
"room-groups":
|
|
1172
|
+
"room-groups": b,
|
|
1174
1173
|
callback: J,
|
|
1175
|
-
"hide-addons":
|
|
1174
|
+
"hide-addons": g.hideAddons === "yes" || g.hideAddons === "packages"
|
|
1176
1175
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
1177
1176
|
])
|
|
1178
1177
|
])) : _("", !0),
|
|
1179
|
-
e(q).roomGroups.length > 0 &&
|
|
1180
|
-
e(q).templates.length > 0 &&
|
|
1178
|
+
e(q).roomGroups.length > 0 && g.onlyShow !== "packages" ? (d(), v("div", Ol, [
|
|
1179
|
+
e(q).templates.length > 0 && g.onlyShow !== "rooms" ? (d(), v("h2", jl, [
|
|
1181
1180
|
y(W, {
|
|
1182
1181
|
icon: "house",
|
|
1183
1182
|
type: "fal",
|
|
1184
1183
|
color: "header"
|
|
1185
1184
|
}),
|
|
1186
|
-
a("span", null,
|
|
1185
|
+
a("span", null, h(e(o)("booking.availability.roomsTitle")), 1)
|
|
1187
1186
|
])) : _("", !0),
|
|
1188
1187
|
a("ul", ql, [
|
|
1189
|
-
(d(!0),
|
|
1188
|
+
(d(!0), v(F, null, G(to.value, (P, S) => (d(), A(fl, {
|
|
1190
1189
|
room: P,
|
|
1191
1190
|
key: S
|
|
1192
1191
|
}, null, 8, ["room"]))), 128))
|
|
1193
1192
|
])
|
|
1194
1193
|
])) : _("", !0),
|
|
1195
|
-
e(q).specialTemplates.length > 0 &&
|
|
1194
|
+
e(q).specialTemplates.length > 0 && g.onlyShow !== "rooms" ? (d(), v("div", Gl, [
|
|
1196
1195
|
a("h2", Wl, [
|
|
1197
1196
|
y(W, {
|
|
1198
1197
|
icon: "sparkles",
|
|
1199
1198
|
type: "fal",
|
|
1200
1199
|
color: "header"
|
|
1201
1200
|
}),
|
|
1202
|
-
a("span", null,
|
|
1201
|
+
a("span", null, h(e(o)("hotel.specialOffers")), 1)
|
|
1203
1202
|
]),
|
|
1204
1203
|
a("ul", xl, [
|
|
1205
|
-
(d(!0),
|
|
1204
|
+
(d(!0), v(F, null, G(e(q).specialTemplates, ({
|
|
1206
1205
|
id: P,
|
|
1207
1206
|
name: S,
|
|
1208
|
-
templateRoomGroups:
|
|
1207
|
+
templateRoomGroups: b,
|
|
1209
1208
|
image: U,
|
|
1210
1209
|
description: H,
|
|
1211
1210
|
weekendFee: oe,
|
|
@@ -1220,54 +1219,61 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1220
1219
|
fromDate: X,
|
|
1221
1220
|
toDate: Ve,
|
|
1222
1221
|
weekendFee: oe,
|
|
1223
|
-
"room-groups":
|
|
1222
|
+
"room-groups": b,
|
|
1224
1223
|
callback: J
|
|
1225
1224
|
}, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1226
1225
|
])
|
|
1227
1226
|
])) : _("", !0),
|
|
1228
|
-
(e(q).templates.length === 0 &&
|
|
1229
|
-
a("span", null,
|
|
1227
|
+
(e(q).templates.length === 0 && g.onlyShow !== "rooms" || e(q).roomGroups.length === 0 && g.onlyShow !== "packages") && (g.onlyShow === "rooms" || g.onlyShow === "packages") ? (d(), v("div", Kl, [
|
|
1228
|
+
a("span", null, h(e(o)("booking.availability.nothingAvailable")), 1)
|
|
1230
1229
|
])) : _("", !0)
|
|
1231
|
-
])) : e(q).nextAvailableDates.length === 0 ? (d(),
|
|
1232
|
-
a("span", null,
|
|
1233
|
-
])) : (d(),
|
|
1230
|
+
])) : e(q).nextAvailableDates.length === 0 ? (d(), v("div", Jl, [
|
|
1231
|
+
a("span", null, h(e(o)("booking.availability.nothingAvailable")), 1)
|
|
1232
|
+
])) : (d(), v("div", zl, [
|
|
1234
1233
|
a("h2", Yl, [
|
|
1235
1234
|
y(W, {
|
|
1236
1235
|
icon: "calendar-circle-exclamation",
|
|
1237
1236
|
type: "fal",
|
|
1238
1237
|
color: "header"
|
|
1239
1238
|
}),
|
|
1240
|
-
a("span", null,
|
|
1239
|
+
a("span", null, h(e(o)("booking.availability.nextAvailableDates")), 1)
|
|
1241
1240
|
]),
|
|
1242
1241
|
a("ul", Ql, [
|
|
1243
|
-
(d(!0),
|
|
1242
|
+
(d(!0), v(F, null, G(e(q).nextAvailableDates, (P, S) => (d(), v("li", { key: S }, [
|
|
1244
1243
|
a("h3", {
|
|
1245
|
-
title: `${e(le)(P.fromDate)} - ${e(le)(P.toDate)}`
|
|
1244
|
+
title: `${e(le)(P.fromDate, 0, !0)} - ${e(le)(P.toDate, 0, !0)}`
|
|
1246
1245
|
}, [
|
|
1247
|
-
a("span", null,
|
|
1246
|
+
a("span", null, h(`${e(le)(P.fromDate, 0, !0)} - ${e(le)(P.toDate, 0, !0)}`), 1)
|
|
1248
1247
|
], 8, Xl),
|
|
1249
1248
|
a("ul", null, [
|
|
1250
|
-
_("", !0),
|
|
1249
|
+
isNaN(P.roomCount) ? _("", !0) : (d(), v("li", Zl, [
|
|
1250
|
+
y(W, {
|
|
1251
|
+
icon: "house",
|
|
1252
|
+
type: "fal",
|
|
1253
|
+
color: "header"
|
|
1254
|
+
}),
|
|
1255
|
+
a("span", null, h(e(o)("booking.availability.units")) + ": " + h(P.roomCount), 1)
|
|
1256
|
+
])),
|
|
1251
1257
|
a("li", null, [
|
|
1252
1258
|
y(W, {
|
|
1253
1259
|
icon: "money-bill",
|
|
1254
1260
|
type: "fal",
|
|
1255
1261
|
color: "header"
|
|
1256
1262
|
}),
|
|
1257
|
-
a("span", null,
|
|
1263
|
+
a("span", null, h(e(o)("booking.availability.pricesFrom")) + ": " + h(e(ne)(P.priceStartFrom, e(_e))) + " " + h(e(o)("general.perNight")), 1)
|
|
1258
1264
|
])
|
|
1259
1265
|
]),
|
|
1260
1266
|
y(me, {
|
|
1261
1267
|
label: e(o)("booking.availability.selectDates"),
|
|
1262
1268
|
"full-width": "",
|
|
1263
|
-
onClickEvent: (
|
|
1269
|
+
onClickEvent: (b) => e(Oe)(new Date(P.fromDate), new Date(P.toDate))
|
|
1264
1270
|
}, null, 8, ["label", "onClickEvent"])
|
|
1265
1271
|
]))), 128))
|
|
1266
1272
|
])
|
|
1267
1273
|
]))
|
|
1268
|
-
])) : isNaN(e(i)) && !e(u) ? (d(),
|
|
1269
|
-
a("span", null,
|
|
1270
|
-
])) : (d(),
|
|
1274
|
+
])) : isNaN(e(i)) && !e(u) ? (d(), v("div", en, [
|
|
1275
|
+
a("span", null, h(e(o)("alert.info.selectHotelToStart")), 1)
|
|
1276
|
+
])) : (d(), v("div", tn, [
|
|
1271
1277
|
y(Xe),
|
|
1272
1278
|
y(Xe),
|
|
1273
1279
|
y(Xe)
|
|
@@ -1293,69 +1299,69 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1293
1299
|
}, 1024)
|
|
1294
1300
|
]),
|
|
1295
1301
|
addons: w(({ next: J, prev: P }) => [
|
|
1296
|
-
e(
|
|
1302
|
+
e(be) ? (d(), A(Ze, {
|
|
1297
1303
|
key: 0,
|
|
1298
1304
|
"prev-callback": () => ht(P)
|
|
1299
1305
|
}, {
|
|
1300
1306
|
form: w(() => [
|
|
1301
|
-
a("form",
|
|
1307
|
+
a("form", on, [
|
|
1302
1308
|
a("h2", null, [
|
|
1303
|
-
a("span", null,
|
|
1309
|
+
a("span", null, h(e(o)("booking.reservation.addons")), 1)
|
|
1304
1310
|
]),
|
|
1305
1311
|
a("div", null, [
|
|
1306
|
-
isNaN(e(s)) ? (d(),
|
|
1307
|
-
(d(!0),
|
|
1312
|
+
isNaN(e(s)) ? (d(), v("div", ln, [
|
|
1313
|
+
(d(!0), v(F, null, G(e(se), (S) => (d(), v("ul", {
|
|
1308
1314
|
key: S.roomGroupID
|
|
1309
1315
|
}, [
|
|
1310
|
-
(d(!0),
|
|
1311
|
-
key:
|
|
1316
|
+
(d(!0), v(F, null, G(S.variants, (b, U) => (d(), v("li", {
|
|
1317
|
+
key: b.ratePlanID
|
|
1312
1318
|
}, [
|
|
1313
1319
|
a("h4", null, [
|
|
1314
|
-
a("span", null,
|
|
1320
|
+
a("span", null, h(e(pe)(S.title)), 1)
|
|
1315
1321
|
]),
|
|
1316
|
-
(d(!0),
|
|
1322
|
+
(d(!0), v(F, null, G(b.rooms, (H, oe) => (d(), v("table", {
|
|
1317
1323
|
key: oe,
|
|
1318
1324
|
class: "konnectio-table with-lines"
|
|
1319
1325
|
}, [
|
|
1320
1326
|
a("thead", null, [
|
|
1321
1327
|
a("tr", null, [
|
|
1322
1328
|
a("th", null, [
|
|
1323
|
-
a("span", null,
|
|
1329
|
+
a("span", null, h(e(pe)(b.name)), 1)
|
|
1324
1330
|
]),
|
|
1325
1331
|
_("", !0),
|
|
1326
|
-
a("th",
|
|
1332
|
+
a("th", nn, [
|
|
1327
1333
|
a("b", null, [
|
|
1328
1334
|
y(W, {
|
|
1329
1335
|
icon: "male",
|
|
1330
1336
|
type: "fas",
|
|
1331
1337
|
color: "font"
|
|
1332
1338
|
}),
|
|
1333
|
-
a("span", null,
|
|
1339
|
+
a("span", null, h(H.adultsCount), 1),
|
|
1334
1340
|
H.childrenCount > 0 ? (d(), A(W, {
|
|
1335
1341
|
key: 0,
|
|
1336
1342
|
icon: "child",
|
|
1337
1343
|
type: "fas",
|
|
1338
1344
|
color: "font"
|
|
1339
1345
|
})) : _("", !0),
|
|
1340
|
-
H.childrenCount > 0 ? (d(),
|
|
1346
|
+
H.childrenCount > 0 ? (d(), v("span", an, h(H.childrenCount), 1)) : _("", !0)
|
|
1341
1347
|
])
|
|
1342
1348
|
])
|
|
1343
1349
|
])
|
|
1344
1350
|
]),
|
|
1345
1351
|
a("tbody", null, [
|
|
1346
|
-
(d(!0),
|
|
1352
|
+
(d(!0), v(F, null, G(e(ft)(b.addons, H.childrenCount), ({
|
|
1347
1353
|
quantityStrategy: X,
|
|
1348
1354
|
maximumNumber: Ve,
|
|
1349
1355
|
id: de,
|
|
1350
1356
|
name: ao,
|
|
1351
1357
|
price: io
|
|
1352
|
-
}) => (d(),
|
|
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)
|
|
1356
|
-
]),
|
|
1358
|
+
}) => (d(), v("tr", { key: de }, [
|
|
1357
1359
|
a("td", sn, [
|
|
1358
|
-
|
|
1360
|
+
a("b", null, h(e(pe)(ao)), 1),
|
|
1361
|
+
a("span", null, h(e(ne)(io, e(_e))) + " " + h(e(yt)(X)), 1)
|
|
1362
|
+
]),
|
|
1363
|
+
a("td", rn, [
|
|
1364
|
+
e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx] ? (d(), v(F, { key: 0 }, [
|
|
1359
1365
|
X === 1 || X === 12 ? (d(), A(ot, {
|
|
1360
1366
|
key: 0,
|
|
1361
1367
|
modelValue: e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx][de],
|
|
@@ -1376,45 +1382,45 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1376
1382
|
]))), 128))
|
|
1377
1383
|
]))), 128))
|
|
1378
1384
|
]))), 128))
|
|
1379
|
-
])) : e(
|
|
1385
|
+
])) : e(ge) ? (d(), v("div", dn, [
|
|
1380
1386
|
a("div", null, [
|
|
1381
1387
|
a("h4", null, [
|
|
1382
|
-
a("span", null,
|
|
1388
|
+
a("span", null, h(e(Le).name), 1)
|
|
1383
1389
|
]),
|
|
1384
|
-
a("table",
|
|
1390
|
+
a("table", un, [
|
|
1385
1391
|
a("thead", null, [
|
|
1386
1392
|
a("tr", null, [
|
|
1387
1393
|
a("th", null, [
|
|
1388
|
-
a("span", null,
|
|
1394
|
+
a("span", null, h(e(pe)(e(ge).title)), 1)
|
|
1389
1395
|
]),
|
|
1390
1396
|
_("", !0),
|
|
1391
|
-
|
|
1397
|
+
cn
|
|
1392
1398
|
])
|
|
1393
1399
|
]),
|
|
1394
1400
|
a("tbody", null, [
|
|
1395
|
-
(d(!0),
|
|
1401
|
+
(d(!0), v(F, null, G(e(ft)(e(ge).addons, e(Ue)), ({
|
|
1396
1402
|
quantityStrategy: S,
|
|
1397
|
-
maximumNumber:
|
|
1403
|
+
maximumNumber: b,
|
|
1398
1404
|
id: U,
|
|
1399
1405
|
name: H,
|
|
1400
1406
|
price: oe
|
|
1401
|
-
}) => (d(),
|
|
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)
|
|
1405
|
-
]),
|
|
1407
|
+
}) => (d(), v("tr", { key: U }, [
|
|
1406
1408
|
a("td", pn, [
|
|
1409
|
+
a("b", null, h(e(pe)(H)), 1),
|
|
1410
|
+
a("span", null, h(e(ne)(oe, e(_e))) + " " + h(e(yt)(S)), 1)
|
|
1411
|
+
]),
|
|
1412
|
+
a("td", mn, [
|
|
1407
1413
|
S === 1 || S === 12 ? (d(), A(ot, {
|
|
1408
1414
|
key: 0,
|
|
1409
|
-
modelValue: e(
|
|
1410
|
-
"onUpdate:modelValue": (X) => e(
|
|
1415
|
+
modelValue: e(m)[U],
|
|
1416
|
+
"onUpdate:modelValue": (X) => e(m)[U] = X,
|
|
1411
1417
|
small: !0,
|
|
1412
1418
|
"min-value": 0,
|
|
1413
|
-
"max-value":
|
|
1419
|
+
"max-value": b || 1 / 0
|
|
1414
1420
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (d(), A(Te, {
|
|
1415
1421
|
key: 1,
|
|
1416
|
-
modelValue: e(
|
|
1417
|
-
"onUpdate:modelValue": (X) => e(
|
|
1422
|
+
modelValue: e(m)[U],
|
|
1423
|
+
"onUpdate:modelValue": (X) => e(m)[U] = X,
|
|
1418
1424
|
numeric: !0
|
|
1419
1425
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1420
1426
|
])
|
|
@@ -1437,25 +1443,25 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1437
1443
|
}, 1032, ["prev-callback"])) : _("", !0)
|
|
1438
1444
|
]),
|
|
1439
1445
|
reservation: w(({ next: J, prev: P, reset: S }) => [
|
|
1440
|
-
e(
|
|
1446
|
+
e(be) ? (d(), A(Ze, {
|
|
1441
1447
|
key: 0,
|
|
1442
1448
|
"prev-callback": () => ht(P),
|
|
1443
1449
|
"show-terms-notice": !0,
|
|
1444
1450
|
"show-gift-card": !0
|
|
1445
1451
|
}, {
|
|
1446
1452
|
form: w(() => [
|
|
1447
|
-
a("form",
|
|
1453
|
+
a("form", fn, [
|
|
1448
1454
|
a("h2", null, [
|
|
1449
|
-
a("span", null,
|
|
1455
|
+
a("span", null, h(e(o)("booking.reservation.detailsTitle")), 1)
|
|
1450
1456
|
]),
|
|
1451
|
-
!e(Lt) && !(e(Ge) && e(We)) ? (d(),
|
|
1457
|
+
!e(Lt) && !(e(Ge) && e(We)) ? (d(), v("ul", {
|
|
1452
1458
|
key: 0,
|
|
1453
|
-
class:
|
|
1459
|
+
class: Ne(["konnectio-reservation-timepicker", { "konnectio-split-inputs": !e(Ge) && !e(We) }])
|
|
1454
1460
|
}, [
|
|
1455
|
-
e(Ge) ? _("", !0) : (d(),
|
|
1456
|
-
y(
|
|
1461
|
+
e(Ge) ? _("", !0) : (d(), v("li", hn, [
|
|
1462
|
+
y(gt, {
|
|
1457
1463
|
modelValue: e($),
|
|
1458
|
-
"onUpdate:modelValue": V[2] || (V[2] = (
|
|
1464
|
+
"onUpdate:modelValue": V[2] || (V[2] = (b) => j($) ? $.value = b : null),
|
|
1459
1465
|
label: e(o)("booking.reservation.arrivalTime"),
|
|
1460
1466
|
icon: "hourglass-start",
|
|
1461
1467
|
"min-time": e(je),
|
|
@@ -1463,10 +1469,10 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1463
1469
|
required: ""
|
|
1464
1470
|
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
1465
1471
|
])),
|
|
1466
|
-
e(We) ? _("", !0) : (d(),
|
|
1467
|
-
y(
|
|
1472
|
+
e(We) ? _("", !0) : (d(), v("li", vn, [
|
|
1473
|
+
y(gt, {
|
|
1468
1474
|
modelValue: e(T),
|
|
1469
|
-
"onUpdate:modelValue": V[3] || (V[3] = (
|
|
1475
|
+
"onUpdate:modelValue": V[3] || (V[3] = (b) => j(T) ? T.value = b : null),
|
|
1470
1476
|
label: e(o)("booking.reservation.departureTime"),
|
|
1471
1477
|
icon: "hourglass-end",
|
|
1472
1478
|
"min-time": e(qe),
|
|
@@ -1477,9 +1483,9 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1477
1483
|
], 2)) : _("", !0),
|
|
1478
1484
|
y(Pl, {
|
|
1479
1485
|
modelValue: e(C),
|
|
1480
|
-
"onUpdate:modelValue": V[4] || (V[4] = (
|
|
1486
|
+
"onUpdate:modelValue": V[4] || (V[4] = (b) => j(C) ? C.value = b : null),
|
|
1481
1487
|
title: e(I),
|
|
1482
|
-
"onUpdate:title": V[5] || (V[5] = (
|
|
1488
|
+
"onUpdate:title": V[5] || (V[5] = (b) => j(I) ? I.value = b : null),
|
|
1483
1489
|
"exclude-title": e(Ut),
|
|
1484
1490
|
label: e(o)("booking.reservation.name"),
|
|
1485
1491
|
icon: "user-alt",
|
|
@@ -1487,8 +1493,8 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1487
1493
|
required: ""
|
|
1488
1494
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1489
1495
|
y(ce, {
|
|
1490
|
-
modelValue: e(
|
|
1491
|
-
"onUpdate:modelValue": V[6] || (V[6] = (
|
|
1496
|
+
modelValue: e(B),
|
|
1497
|
+
"onUpdate:modelValue": V[6] || (V[6] = (b) => j(B) ? B.value = b : null),
|
|
1492
1498
|
type: "email",
|
|
1493
1499
|
name: "email",
|
|
1494
1500
|
autocomplete: "email",
|
|
@@ -1497,10 +1503,10 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1497
1503
|
placeholder: e(o)("booking.reservation.emailPlaceholder"),
|
|
1498
1504
|
required: ""
|
|
1499
1505
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1500
|
-
e(xt) ? _("", !0) : (d(),
|
|
1506
|
+
e(xt) ? _("", !0) : (d(), v("div", yn, [
|
|
1501
1507
|
y(Te, {
|
|
1502
1508
|
modelValue: e(he),
|
|
1503
|
-
"onUpdate:modelValue": V[7] || (V[7] = (
|
|
1509
|
+
"onUpdate:modelValue": V[7] || (V[7] = (b) => j(he) ? he.value = b : null),
|
|
1504
1510
|
type: "checkbox",
|
|
1505
1511
|
name: "newsletter",
|
|
1506
1512
|
label: e(o)("booking.reservation.newsletterSignUp")
|
|
@@ -1509,7 +1515,7 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1509
1515
|
e(jt) ? _("", !0) : (d(), A(ce, {
|
|
1510
1516
|
key: 2,
|
|
1511
1517
|
modelValue: e(E),
|
|
1512
|
-
"onUpdate:modelValue": V[8] || (V[8] = (
|
|
1518
|
+
"onUpdate:modelValue": V[8] || (V[8] = (b) => j(E) ? E.value = b : null),
|
|
1513
1519
|
type: "text",
|
|
1514
1520
|
name: "firm",
|
|
1515
1521
|
autocomplete: "firm",
|
|
@@ -1518,8 +1524,8 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1518
1524
|
placeholder: e(o)("booking.reservation.companyNamePlaceholder")
|
|
1519
1525
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1520
1526
|
y(Lo, {
|
|
1521
|
-
modelValue: e(
|
|
1522
|
-
"onUpdate:modelValue": V[9] || (V[9] = (
|
|
1527
|
+
modelValue: e(M),
|
|
1528
|
+
"onUpdate:modelValue": V[9] || (V[9] = (b) => j(M) ? M.value = b : null),
|
|
1523
1529
|
icon: "phone-office",
|
|
1524
1530
|
label: e(o)("booking.reservation.phone"),
|
|
1525
1531
|
placeholder: e(o)("booking.reservation.phonePlaceholder"),
|
|
@@ -1527,15 +1533,15 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1527
1533
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1528
1534
|
y(Tl, {
|
|
1529
1535
|
modelValue: e(z),
|
|
1530
|
-
"onUpdate:modelValue": V[10] || (V[10] = (
|
|
1536
|
+
"onUpdate:modelValue": V[10] || (V[10] = (b) => j(z) ? z.value = b : null),
|
|
1531
1537
|
label: e(o)("booking.reservation.country"),
|
|
1532
1538
|
placeholder: e(o)("booking.reservation.countryPlaceholder"),
|
|
1533
|
-
options: e(
|
|
1539
|
+
options: e(p),
|
|
1534
1540
|
required: ""
|
|
1535
1541
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1536
1542
|
y(ce, {
|
|
1537
|
-
modelValue: e(
|
|
1538
|
-
"onUpdate:modelValue": V[11] || (V[11] = (
|
|
1543
|
+
modelValue: e(N),
|
|
1544
|
+
"onUpdate:modelValue": V[11] || (V[11] = (b) => j(N) ? N.value = b : null),
|
|
1539
1545
|
type: "textarea",
|
|
1540
1546
|
name: "address",
|
|
1541
1547
|
autocomplete: "street-address",
|
|
@@ -1544,11 +1550,11 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1544
1550
|
placeholder: e(o)("booking.reservation.streetAddressPlaceholder"),
|
|
1545
1551
|
required: ""
|
|
1546
1552
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1547
|
-
a("ul",
|
|
1553
|
+
a("ul", bn, [
|
|
1548
1554
|
a("li", null, [
|
|
1549
1555
|
y(ce, {
|
|
1550
1556
|
modelValue: e(k),
|
|
1551
|
-
"onUpdate:modelValue": V[12] || (V[12] = (
|
|
1557
|
+
"onUpdate:modelValue": V[12] || (V[12] = (b) => j(k) ? k.value = b : null),
|
|
1552
1558
|
type: "text",
|
|
1553
1559
|
name: "postal",
|
|
1554
1560
|
autocomplete: "postal-code",
|
|
@@ -1561,7 +1567,7 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1561
1567
|
a("li", null, [
|
|
1562
1568
|
y(ce, {
|
|
1563
1569
|
modelValue: e(D),
|
|
1564
|
-
"onUpdate:modelValue": V[13] || (V[13] = (
|
|
1570
|
+
"onUpdate:modelValue": V[13] || (V[13] = (b) => j(D) ? D.value = b : null),
|
|
1565
1571
|
type: "text",
|
|
1566
1572
|
name: "city",
|
|
1567
1573
|
autocomplete: "address-level2",
|
|
@@ -1574,7 +1580,7 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1574
1580
|
]),
|
|
1575
1581
|
y(ce, {
|
|
1576
1582
|
modelValue: e(R),
|
|
1577
|
-
"onUpdate:modelValue": V[14] || (V[14] = (
|
|
1583
|
+
"onUpdate:modelValue": V[14] || (V[14] = (b) => j(R) ? R.value = b : null),
|
|
1578
1584
|
type: "textarea",
|
|
1579
1585
|
label: `${e(o)("booking.reservation.remark")} (${e(o)("booking.reservation.optional")})`,
|
|
1580
1586
|
icon: "info-circle",
|
|
@@ -1582,7 +1588,7 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1582
1588
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1583
1589
|
y(ce, {
|
|
1584
1590
|
modelValue: e(Y),
|
|
1585
|
-
"onUpdate:modelValue": V[15] || (V[15] = (
|
|
1591
|
+
"onUpdate:modelValue": V[15] || (V[15] = (b) => j(Y) ? Y.value = b : null),
|
|
1586
1592
|
type: "textarea",
|
|
1587
1593
|
label: `${e(o)("booking.reservation.allergies")} (${e(o)("booking.reservation.optional")})`,
|
|
1588
1594
|
icon: "allergies",
|
|
@@ -1591,7 +1597,7 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1591
1597
|
e(Ft) ? _("", !0) : (d(), A(So, {
|
|
1592
1598
|
key: 3,
|
|
1593
1599
|
modelValue: e(f),
|
|
1594
|
-
"onUpdate:modelValue": V[16] || (V[16] = (
|
|
1600
|
+
"onUpdate:modelValue": V[16] || (V[16] = (b) => j(f) ? f.value = b : null),
|
|
1595
1601
|
label: `${e(o)("booking.reservation.purposeOfStay")} (${e(o)("booking.reservation.optional")})`,
|
|
1596
1602
|
name: "travelingFor",
|
|
1597
1603
|
checkboxes: eo.value
|
|
@@ -1605,7 +1611,7 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1605
1611
|
disabled: !e(c),
|
|
1606
1612
|
"is-loading": e(r),
|
|
1607
1613
|
"full-width": "",
|
|
1608
|
-
onClickEvent: (
|
|
1614
|
+
onClickEvent: (b) => oo(J, S)
|
|
1609
1615
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
1610
1616
|
])
|
|
1611
1617
|
]),
|
|
@@ -1635,7 +1641,7 @@ const un = /* @__PURE__ */ El(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1635
1641
|
_: 1
|
|
1636
1642
|
}, 8, ["styling"]));
|
|
1637
1643
|
}
|
|
1638
|
-
}), kt = /* @__PURE__ */ fe(gn, [["__scopeId", "data-v-
|
|
1644
|
+
}), kt = /* @__PURE__ */ fe(gn, [["__scopeId", "data-v-72435bab"]]);
|
|
1639
1645
|
function lt(n, l = {}, t) {
|
|
1640
1646
|
for (const o in n) {
|
|
1641
1647
|
const i = n[o], s = t ? `${t}:${o}` : o;
|
|
@@ -1643,15 +1649,15 @@ function lt(n, l = {}, t) {
|
|
|
1643
1649
|
}
|
|
1644
1650
|
return l;
|
|
1645
1651
|
}
|
|
1646
|
-
const
|
|
1647
|
-
function
|
|
1652
|
+
const kn = { run: (n) => n() }, _n = () => kn, Et = typeof console.createTask < "u" ? console.createTask : _n;
|
|
1653
|
+
function Vn(n, l) {
|
|
1648
1654
|
const t = l.shift(), o = Et(t);
|
|
1649
1655
|
return n.reduce(
|
|
1650
1656
|
(i, s) => i.then(() => o.run(() => s(...l))),
|
|
1651
1657
|
Promise.resolve()
|
|
1652
1658
|
);
|
|
1653
1659
|
}
|
|
1654
|
-
function
|
|
1660
|
+
function $n(n, l) {
|
|
1655
1661
|
const t = l.shift(), o = Et(t);
|
|
1656
1662
|
return Promise.all(n.map((i) => o.run(() => i(...l))));
|
|
1657
1663
|
}
|
|
@@ -1659,7 +1665,7 @@ function et(n, l) {
|
|
|
1659
1665
|
for (const t of [...n])
|
|
1660
1666
|
t(l);
|
|
1661
1667
|
}
|
|
1662
|
-
class
|
|
1668
|
+
class wn {
|
|
1663
1669
|
constructor() {
|
|
1664
1670
|
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);
|
|
1665
1671
|
}
|
|
@@ -1672,8 +1678,8 @@ class $n {
|
|
|
1672
1678
|
for (; this._deprecatedHooks[l]; )
|
|
1673
1679
|
s = this._deprecatedHooks[l], l = s.to;
|
|
1674
1680
|
if (s && !o.allowDeprecated) {
|
|
1675
|
-
let
|
|
1676
|
-
|
|
1681
|
+
let m = s.message;
|
|
1682
|
+
m || (m = `${i} hook has been deprecated` + (s.to ? `, please use ${s.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(m) || (console.warn(m), this._deprecatedMessages.add(m));
|
|
1677
1683
|
}
|
|
1678
1684
|
if (!t.name)
|
|
1679
1685
|
try {
|
|
@@ -1728,10 +1734,10 @@ class $n {
|
|
|
1728
1734
|
delete this._hooks[l];
|
|
1729
1735
|
}
|
|
1730
1736
|
callHook(l, ...t) {
|
|
1731
|
-
return t.unshift(l), this.callHookWith(
|
|
1737
|
+
return t.unshift(l), this.callHookWith(Vn, l, ...t);
|
|
1732
1738
|
}
|
|
1733
1739
|
callHookParallel(l, ...t) {
|
|
1734
|
-
return t.unshift(l), this.callHookWith(
|
|
1740
|
+
return t.unshift(l), this.callHookWith($n, l, ...t);
|
|
1735
1741
|
}
|
|
1736
1742
|
callHookWith(l, t, ...o) {
|
|
1737
1743
|
const i = this._before || this._after ? { name: t, args: o, context: {} } : void 0;
|
|
@@ -1761,20 +1767,20 @@ class $n {
|
|
|
1761
1767
|
};
|
|
1762
1768
|
}
|
|
1763
1769
|
}
|
|
1764
|
-
function
|
|
1765
|
-
return new
|
|
1770
|
+
function Tn() {
|
|
1771
|
+
return new wn();
|
|
1766
1772
|
}
|
|
1767
|
-
function
|
|
1773
|
+
function Cn(n) {
|
|
1768
1774
|
return Array.isArray(n) ? n : [n];
|
|
1769
1775
|
}
|
|
1770
|
-
const
|
|
1776
|
+
const Pn = ["title", "titleTemplate", "script", "style", "noscript"], He = [
|
|
1771
1777
|
"base",
|
|
1772
1778
|
"meta",
|
|
1773
1779
|
"link",
|
|
1774
1780
|
"style",
|
|
1775
1781
|
"script",
|
|
1776
1782
|
"noscript"
|
|
1777
|
-
],
|
|
1783
|
+
], An = [
|
|
1778
1784
|
"title",
|
|
1779
1785
|
"titleTemplate",
|
|
1780
1786
|
"templateParams",
|
|
@@ -1786,7 +1792,7 @@ const Cn = ["title", "titleTemplate", "script", "style", "noscript"], He = [
|
|
|
1786
1792
|
"style",
|
|
1787
1793
|
"script",
|
|
1788
1794
|
"noscript"
|
|
1789
|
-
],
|
|
1795
|
+
], Dn = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], Nt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Sn = typeof window < "u";
|
|
1790
1796
|
function rt(n) {
|
|
1791
1797
|
let l = 9;
|
|
1792
1798
|
for (let t = 0; t < n.length; )
|
|
@@ -1796,9 +1802,9 @@ function rt(n) {
|
|
|
1796
1802
|
function _t(n) {
|
|
1797
1803
|
return n._h || rt(n._d ? n._d : `${n.tag}:${n.textContent || n.innerHTML || ""}:${Object.entries(n.props).map(([l, t]) => `${l}:${String(t)}`).join(",")}`);
|
|
1798
1804
|
}
|
|
1799
|
-
function
|
|
1805
|
+
function Mt(n, l) {
|
|
1800
1806
|
const { props: t, tag: o } = n;
|
|
1801
|
-
if (
|
|
1807
|
+
if (Dn.includes(o))
|
|
1802
1808
|
return o;
|
|
1803
1809
|
if (o === "link" && t.rel === "canonical")
|
|
1804
1810
|
return "canonical";
|
|
@@ -1808,53 +1814,53 @@ function Nt(n, l) {
|
|
|
1808
1814
|
o === "meta" && i.push("name", "property", "http-equiv");
|
|
1809
1815
|
for (const s of i)
|
|
1810
1816
|
if (typeof t[s] < "u") {
|
|
1811
|
-
const
|
|
1812
|
-
return
|
|
1817
|
+
const m = String(t[s]);
|
|
1818
|
+
return `${o}:${s}:${m}`;
|
|
1813
1819
|
}
|
|
1814
1820
|
return !1;
|
|
1815
1821
|
}
|
|
1816
1822
|
function Vt(n, l) {
|
|
1817
1823
|
return n == null ? l || null : typeof n == "function" ? n(l) : n;
|
|
1818
1824
|
}
|
|
1819
|
-
async function
|
|
1825
|
+
async function Hn(n, l, t) {
|
|
1820
1826
|
const o = {
|
|
1821
1827
|
tag: n,
|
|
1822
|
-
props: await
|
|
1828
|
+
props: await Bt(
|
|
1823
1829
|
// explicitly check for an object
|
|
1824
1830
|
// @ts-expect-error untyped
|
|
1825
1831
|
typeof l == "object" && typeof l != "function" && !(l instanceof Promise) ? { ...l } : { [["script", "noscript", "style"].includes(n) ? "innerHTML" : "textContent"]: l },
|
|
1826
1832
|
["templateParams", "titleTemplate"].includes(n)
|
|
1827
1833
|
)
|
|
1828
1834
|
};
|
|
1829
|
-
return
|
|
1835
|
+
return Nt.forEach((i) => {
|
|
1830
1836
|
const s = typeof o.props[i] < "u" ? o.props[i] : t[i];
|
|
1831
|
-
typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) ||
|
|
1837
|
+
typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) || Pn.includes(o.tag)) && (o[i === "children" ? "innerHTML" : i] = s), delete o.props[i]);
|
|
1832
1838
|
}), 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;
|
|
1833
1839
|
}
|
|
1834
|
-
function
|
|
1840
|
+
function In(n, l) {
|
|
1835
1841
|
const t = n === "class" ? " " : ";";
|
|
1836
1842
|
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);
|
|
1837
1843
|
}
|
|
1838
|
-
async function
|
|
1844
|
+
async function Bt(n, l) {
|
|
1839
1845
|
for (const t of Object.keys(n)) {
|
|
1840
1846
|
if (["class", "style"].includes(t)) {
|
|
1841
|
-
n[t] =
|
|
1847
|
+
n[t] = In(t, n[t]);
|
|
1842
1848
|
continue;
|
|
1843
1849
|
}
|
|
1844
|
-
if (n[t] instanceof Promise && (n[t] = await n[t]), !l && !
|
|
1850
|
+
if (n[t] instanceof Promise && (n[t] = await n[t]), !l && !Nt.includes(t)) {
|
|
1845
1851
|
const o = String(n[t]), i = t.startsWith("data-");
|
|
1846
1852
|
o === "true" || o === "" ? n[t] = i ? "true" : !0 : n[t] || (i && o === "false" ? n[t] = "false" : delete n[t]);
|
|
1847
1853
|
}
|
|
1848
1854
|
}
|
|
1849
1855
|
return n;
|
|
1850
1856
|
}
|
|
1851
|
-
const
|
|
1852
|
-
async function
|
|
1857
|
+
const En = 10;
|
|
1858
|
+
async function Nn(n) {
|
|
1853
1859
|
const l = [];
|
|
1854
|
-
return Object.entries(n.resolvedInput).filter(([t, o]) => typeof o < "u" &&
|
|
1855
|
-
const i =
|
|
1856
|
-
l.push(...i.map((s) =>
|
|
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 <<
|
|
1860
|
+
return Object.entries(n.resolvedInput).filter(([t, o]) => typeof o < "u" && An.includes(t)).forEach(([t, o]) => {
|
|
1861
|
+
const i = Cn(o);
|
|
1862
|
+
l.push(...i.map((s) => Hn(t, s, n)).flat());
|
|
1863
|
+
}), (await Promise.all(l)).flat().filter(Boolean).map((t, o) => (t._e = n._i, n.mode && (t._m = n.mode), t._p = (n._i << En) + o, t));
|
|
1858
1864
|
}
|
|
1859
1865
|
const $t = {
|
|
1860
1866
|
// tags
|
|
@@ -1866,30 +1872,30 @@ const $t = {
|
|
|
1866
1872
|
high: -10,
|
|
1867
1873
|
low: 20
|
|
1868
1874
|
};
|
|
1869
|
-
function
|
|
1875
|
+
function Me(n) {
|
|
1870
1876
|
let l = 100;
|
|
1871
1877
|
const t = n.tagPriority;
|
|
1872
1878
|
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);
|
|
1873
1879
|
}
|
|
1874
|
-
const
|
|
1880
|
+
const Mn = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], Tt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], ue = "%separator";
|
|
1875
1881
|
function Ie(n, l, t) {
|
|
1876
1882
|
if (typeof n != "string" || !n.includes("%"))
|
|
1877
1883
|
return n;
|
|
1878
|
-
function o(
|
|
1879
|
-
let
|
|
1880
|
-
return ["s", "pageTitle"].includes(
|
|
1884
|
+
function o(m) {
|
|
1885
|
+
let p;
|
|
1886
|
+
return ["s", "pageTitle"].includes(m) ? p = l.pageTitle : m.includes(".") ? p = m.split(".").reduce((u, r) => u && u[r] || void 0, l) : p = l[m], typeof p < "u" ? (p || "").replace(/"/g, '\\"') : !1;
|
|
1881
1887
|
}
|
|
1882
1888
|
let i = n;
|
|
1883
1889
|
try {
|
|
1884
1890
|
i = decodeURI(n);
|
|
1885
1891
|
} catch {
|
|
1886
1892
|
}
|
|
1887
|
-
return (i.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((
|
|
1888
|
-
const
|
|
1889
|
-
typeof
|
|
1893
|
+
return (i.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((m) => {
|
|
1894
|
+
const p = o(m.slice(1));
|
|
1895
|
+
typeof p == "string" && (n = n.replace(new RegExp(`\\${m}(\\W|$)`, "g"), (u, r) => `${p}${r}`).trim());
|
|
1890
1896
|
}), 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;
|
|
1891
1897
|
}
|
|
1892
|
-
async function
|
|
1898
|
+
async function Bn(n, l = {}) {
|
|
1893
1899
|
const t = l.document || n.resolvedOptions.document;
|
|
1894
1900
|
if (!t || !n.dirty)
|
|
1895
1901
|
return;
|
|
@@ -1911,46 +1917,46 @@ async function Nn(n, l = {}) {
|
|
|
1911
1917
|
for (const T of [...f].filter((C) => He.includes(C.tagName.toLowerCase()))) {
|
|
1912
1918
|
const C = {
|
|
1913
1919
|
tag: T.tagName.toLowerCase(),
|
|
1914
|
-
props: await
|
|
1915
|
-
T.getAttributeNames().reduce((
|
|
1920
|
+
props: await Bt(
|
|
1921
|
+
T.getAttributeNames().reduce((M, E) => ({ ...M, [E]: T.getAttribute(E) }), {})
|
|
1916
1922
|
),
|
|
1917
1923
|
innerHTML: T.innerHTML
|
|
1918
1924
|
};
|
|
1919
|
-
let I = 1,
|
|
1920
|
-
for (;
|
|
1921
|
-
|
|
1922
|
-
C._d =
|
|
1925
|
+
let I = 1, B = Mt(C);
|
|
1926
|
+
for (; B && $.find((M) => M._d === B); )
|
|
1927
|
+
B = `${B}:${I++}`;
|
|
1928
|
+
C._d = B || void 0, $.push(C), s.elMap[T.getAttribute("data-hid") || _t(C)] = T;
|
|
1923
1929
|
}
|
|
1924
1930
|
}
|
|
1925
1931
|
}
|
|
1926
1932
|
s.pendingSideEffects = { ...s.sideEffects || {} }, s.sideEffects = {};
|
|
1927
|
-
function
|
|
1933
|
+
function m(c, f, $) {
|
|
1928
1934
|
const T = `${c}:${f}`;
|
|
1929
1935
|
s.sideEffects[T] = $, delete s.pendingSideEffects[T];
|
|
1930
1936
|
}
|
|
1931
|
-
function
|
|
1937
|
+
function p({ id: c, $el: f, tag: $ }) {
|
|
1932
1938
|
const T = $.tag.endsWith("Attrs");
|
|
1933
1939
|
s.elMap[c] = f, T || (["textContent", "innerHTML"].forEach((C) => {
|
|
1934
1940
|
$[C] && $[C] !== f[C] && (f[C] = $[C]);
|
|
1935
|
-
}),
|
|
1941
|
+
}), m(c, "el", () => {
|
|
1936
1942
|
s.elMap[c]?.remove(), delete s.elMap[c];
|
|
1937
1943
|
}));
|
|
1938
1944
|
for (const [C, I] of Object.entries($._eventHandlers || {}))
|
|
1939
1945
|
f.getAttribute(`data-${C}`) !== "" && (($.tag === "bodyAttrs" ? t.defaultView : f).addEventListener(C.replace("on", ""), I.bind(f)), f.setAttribute(`data-${C}`, ""));
|
|
1940
1946
|
Object.entries($.props).forEach(([C, I]) => {
|
|
1941
|
-
const
|
|
1947
|
+
const B = `attr:${C}`;
|
|
1942
1948
|
if (C === "class")
|
|
1943
|
-
for (const
|
|
1944
|
-
T &&
|
|
1949
|
+
for (const M of (I || "").split(" ").filter(Boolean))
|
|
1950
|
+
T && m(c, `${B}:${M}`, () => f.classList.remove(M)), !f.classList.contains(M) && f.classList.add(M);
|
|
1945
1951
|
else if (C === "style")
|
|
1946
|
-
for (const
|
|
1947
|
-
const [E, ...k] =
|
|
1948
|
-
|
|
1952
|
+
for (const M of (I || "").split(";").filter(Boolean)) {
|
|
1953
|
+
const [E, ...k] = M.split(":").map((D) => D.trim());
|
|
1954
|
+
m(c, `${B}:${E}`, () => {
|
|
1949
1955
|
f.style.removeProperty(E);
|
|
1950
1956
|
}), f.style.setProperty(E, k.join(":"));
|
|
1951
1957
|
}
|
|
1952
1958
|
else
|
|
1953
|
-
f.getAttribute(C) !== I && f.setAttribute(C, I === !0 ? "" : String(I)), T &&
|
|
1959
|
+
f.getAttribute(C) !== I && f.setAttribute(C, I === !0 ? "" : String(I)), T && m(c, B, () => f.removeAttribute(C));
|
|
1954
1960
|
});
|
|
1955
1961
|
}
|
|
1956
1962
|
const u = [], r = {
|
|
@@ -1965,44 +1971,44 @@ async function Nn(n, l = {}) {
|
|
|
1965
1971
|
t.title = f.textContent;
|
|
1966
1972
|
continue;
|
|
1967
1973
|
}
|
|
1968
|
-
c.$el = c.$el || s.elMap[T], c.$el ?
|
|
1974
|
+
c.$el = c.$el || s.elMap[T], c.$el ? p(c) : He.includes(f.tag) && u.push(c);
|
|
1969
1975
|
}
|
|
1970
1976
|
}
|
|
1971
1977
|
for (const c of u) {
|
|
1972
1978
|
const f = c.tag.tagPosition || "head";
|
|
1973
|
-
c.$el = t.createElement(c.tag.tag),
|
|
1979
|
+
c.$el = t.createElement(c.tag.tag), p(c), r[f] = r[f] || t.createDocumentFragment(), r[f].appendChild(c.$el);
|
|
1974
1980
|
}
|
|
1975
1981
|
for (const c of i)
|
|
1976
|
-
await n.hooks.callHook("dom:renderTag", c, t,
|
|
1982
|
+
await n.hooks.callHook("dom:renderTag", c, t, m);
|
|
1977
1983
|
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 });
|
|
1978
1984
|
}
|
|
1979
|
-
async function
|
|
1985
|
+
async function Rn(n, l = {}) {
|
|
1980
1986
|
const t = l.delayFn || ((o) => setTimeout(o, 10));
|
|
1981
1987
|
return n._domUpdatePromise = n._domUpdatePromise || new Promise((o) => t(async () => {
|
|
1982
|
-
await
|
|
1988
|
+
await Bn(n, l), delete n._domUpdatePromise, o();
|
|
1983
1989
|
}));
|
|
1984
1990
|
}
|
|
1985
1991
|
// @__NO_SIDE_EFFECTS__
|
|
1986
|
-
function
|
|
1992
|
+
function Ln(n) {
|
|
1987
1993
|
return (l) => {
|
|
1988
1994
|
const t = l.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
|
|
1989
1995
|
return t && l.push(JSON.parse(t)), {
|
|
1990
1996
|
mode: "client",
|
|
1991
1997
|
hooks: {
|
|
1992
1998
|
"entries:updated": function(o) {
|
|
1993
|
-
|
|
1999
|
+
Rn(o, n);
|
|
1994
2000
|
}
|
|
1995
2001
|
}
|
|
1996
2002
|
};
|
|
1997
2003
|
};
|
|
1998
2004
|
}
|
|
1999
|
-
const
|
|
2005
|
+
const Un = ["templateParams", "htmlAttrs", "bodyAttrs"], Fn = {
|
|
2000
2006
|
hooks: {
|
|
2001
2007
|
"tag:normalise": function({ tag: n }) {
|
|
2002
2008
|
["hid", "vmid", "key"].forEach((o) => {
|
|
2003
2009
|
n.props[o] && (n.key = n.props[o], delete n.props[o]);
|
|
2004
2010
|
});
|
|
2005
|
-
const t =
|
|
2011
|
+
const t = Mt(n) || (n.key ? `${n.tag}:${n.key}` : !1);
|
|
2006
2012
|
t && (n._d = t);
|
|
2007
2013
|
},
|
|
2008
2014
|
"tags:resolve": function(n) {
|
|
@@ -2010,8 +2016,8 @@ const Ln = ["templateParams", "htmlAttrs", "bodyAttrs"], Un = {
|
|
|
2010
2016
|
n.tags.forEach((o) => {
|
|
2011
2017
|
const i = (o.key ? `${o.tag}:${o.key}` : o._d) || o._p, s = l[i];
|
|
2012
2018
|
if (s) {
|
|
2013
|
-
let
|
|
2014
|
-
if (!
|
|
2019
|
+
let p = o?.tagDuplicateStrategy;
|
|
2020
|
+
if (!p && Un.includes(o.tag) && (p = "merge"), p === "merge") {
|
|
2015
2021
|
const u = s.props;
|
|
2016
2022
|
["class", "style"].forEach((r) => {
|
|
2017
2023
|
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]);
|
|
@@ -2023,11 +2029,11 @@ const Ln = ["templateParams", "htmlAttrs", "bodyAttrs"], Un = {
|
|
|
2023
2029
|
} else if (o._e === s._e) {
|
|
2024
2030
|
s._duped = s._duped || [], o._d = `${s._d}:${s._duped.length + 1}`, s._duped.push(o);
|
|
2025
2031
|
return;
|
|
2026
|
-
} else if (
|
|
2032
|
+
} else if (Me(o) > Me(s))
|
|
2027
2033
|
return;
|
|
2028
2034
|
}
|
|
2029
|
-
const
|
|
2030
|
-
if (He.includes(o.tag) &&
|
|
2035
|
+
const m = Object.keys(o.props).length + (o.innerHTML ? 1 : 0) + (o.textContent ? 1 : 0);
|
|
2036
|
+
if (He.includes(o.tag) && m === 0) {
|
|
2031
2037
|
delete l[i];
|
|
2032
2038
|
return;
|
|
2033
2039
|
}
|
|
@@ -2040,7 +2046,7 @@ const Ln = ["templateParams", "htmlAttrs", "bodyAttrs"], Un = {
|
|
|
2040
2046
|
}), n.tags = t, n.tags = n.tags.filter((o) => !(o.tag === "meta" && (o.props.name || o.props.property) && !o.props.content));
|
|
2041
2047
|
}
|
|
2042
2048
|
}
|
|
2043
|
-
},
|
|
2049
|
+
}, On = {
|
|
2044
2050
|
mode: "server",
|
|
2045
2051
|
hooks: {
|
|
2046
2052
|
"tags:resolve": function(n) {
|
|
@@ -2054,10 +2060,10 @@ const Ln = ["templateParams", "htmlAttrs", "bodyAttrs"], Un = {
|
|
|
2054
2060
|
});
|
|
2055
2061
|
}
|
|
2056
2062
|
}
|
|
2057
|
-
},
|
|
2063
|
+
}, jn = ["script", "link", "bodyAttrs"], qn = (n) => ({
|
|
2058
2064
|
hooks: {
|
|
2059
2065
|
"tags:resolve": function(l) {
|
|
2060
|
-
for (const t of l.tags.filter((o) =>
|
|
2066
|
+
for (const t of l.tags.filter((o) => jn.includes(o.tag)))
|
|
2061
2067
|
Object.entries(t.props).forEach(([o, i]) => {
|
|
2062
2068
|
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);
|
|
2063
2069
|
}), n.ssr && t._eventHandlers && (t.props.src || t.props.href) && (t.key = t.key || rt(t.props.src || t.props.href));
|
|
@@ -2069,45 +2075,45 @@ const Ln = ["templateParams", "htmlAttrs", "bodyAttrs"], Un = {
|
|
|
2069
2075
|
}
|
|
2070
2076
|
}
|
|
2071
2077
|
}
|
|
2072
|
-
}),
|
|
2078
|
+
}), Gn = ["link", "style", "script", "noscript"], Wn = {
|
|
2073
2079
|
hooks: {
|
|
2074
2080
|
"tag:normalise": ({ tag: n }) => {
|
|
2075
|
-
n.key &&
|
|
2081
|
+
n.key && Gn.includes(n.tag) && (n.props["data-hid"] = n._h = rt(n.key));
|
|
2076
2082
|
}
|
|
2077
2083
|
}
|
|
2078
|
-
},
|
|
2084
|
+
}, xn = {
|
|
2079
2085
|
hooks: {
|
|
2080
2086
|
"tags:resolve": (n) => {
|
|
2081
2087
|
const l = (t) => n.tags.find((o) => o._d === t)?._p;
|
|
2082
|
-
for (const { prefix: t, offset: o } of
|
|
2088
|
+
for (const { prefix: t, offset: o } of Mn)
|
|
2083
2089
|
for (const i of n.tags.filter((s) => typeof s.tagPriority == "string" && s.tagPriority.startsWith(t))) {
|
|
2084
2090
|
const s = l(
|
|
2085
2091
|
i.tagPriority.replace(t, "")
|
|
2086
2092
|
);
|
|
2087
2093
|
typeof s < "u" && (i._p = s + o);
|
|
2088
2094
|
}
|
|
2089
|
-
n.tags.sort((t, o) => t._p - o._p).sort((t, o) =>
|
|
2095
|
+
n.tags.sort((t, o) => t._p - o._p).sort((t, o) => Me(t) - Me(o));
|
|
2090
2096
|
}
|
|
2091
2097
|
}
|
|
2092
|
-
},
|
|
2098
|
+
}, Kn = {
|
|
2093
2099
|
meta: "content",
|
|
2094
2100
|
link: "href",
|
|
2095
2101
|
htmlAttrs: "lang"
|
|
2096
|
-
},
|
|
2102
|
+
}, Jn = (n) => ({
|
|
2097
2103
|
hooks: {
|
|
2098
2104
|
"tags:resolve": (l) => {
|
|
2099
|
-
const { tags: t } = l, o = t.find((
|
|
2100
|
-
delete s.separator, s.pageTitle = Ie(s.pageTitle || o || "", s,
|
|
2101
|
-
for (const
|
|
2102
|
-
const u =
|
|
2103
|
-
u && typeof
|
|
2104
|
-
typeof
|
|
2105
|
+
const { tags: t } = l, o = t.find((p) => p.tag === "title")?.textContent, i = t.findIndex((p) => p.tag === "templateParams"), s = i !== -1 ? t[i].props : {}, m = s.separator || "|";
|
|
2106
|
+
delete s.separator, s.pageTitle = Ie(s.pageTitle || o || "", s, m);
|
|
2107
|
+
for (const p of t.filter((u) => u.processTemplateParams !== !1)) {
|
|
2108
|
+
const u = Kn[p.tag];
|
|
2109
|
+
u && typeof p.props[u] == "string" ? p.props[u] = Ie(p.props[u], s, m) : (p.processTemplateParams === !0 || ["titleTemplate", "title"].includes(p.tag)) && ["innerHTML", "textContent"].forEach((r) => {
|
|
2110
|
+
typeof p[r] == "string" && (p[r] = Ie(p[r], s, m));
|
|
2105
2111
|
});
|
|
2106
2112
|
}
|
|
2107
|
-
n._templateParams = s, n._separator =
|
|
2113
|
+
n._templateParams = s, n._separator = m, l.tags = t.filter((p) => p.tag !== "templateParams");
|
|
2108
2114
|
}
|
|
2109
2115
|
}
|
|
2110
|
-
}),
|
|
2116
|
+
}), zn = {
|
|
2111
2117
|
hooks: {
|
|
2112
2118
|
"tags:resolve": (n) => {
|
|
2113
2119
|
const { tags: l } = n;
|
|
@@ -2128,7 +2134,7 @@ const Ln = ["templateParams", "htmlAttrs", "bodyAttrs"], Un = {
|
|
|
2128
2134
|
t !== -1 && delete l[t], n.tags = l.filter(Boolean);
|
|
2129
2135
|
}
|
|
2130
2136
|
}
|
|
2131
|
-
},
|
|
2137
|
+
}, Yn = {
|
|
2132
2138
|
hooks: {
|
|
2133
2139
|
"tags:afterResolve": function(n) {
|
|
2134
2140
|
for (const l of n.tags)
|
|
@@ -2137,22 +2143,22 @@ const Ln = ["templateParams", "htmlAttrs", "bodyAttrs"], Un = {
|
|
|
2137
2143
|
}
|
|
2138
2144
|
};
|
|
2139
2145
|
// @__NO_SIDE_EFFECTS__
|
|
2140
|
-
function
|
|
2141
|
-
const l =
|
|
2142
|
-
return l.use(/* @__PURE__ */
|
|
2146
|
+
function Qn(n = {}) {
|
|
2147
|
+
const l = Xn(n);
|
|
2148
|
+
return l.use(/* @__PURE__ */ Ln()), l;
|
|
2143
2149
|
}
|
|
2144
2150
|
function Ct(n, l) {
|
|
2145
2151
|
return !n || n === "server" && l || n === "client" && !l;
|
|
2146
2152
|
}
|
|
2147
|
-
function
|
|
2148
|
-
const l =
|
|
2149
|
-
l.addHooks(n.hooks || {}), n.document = n.document || (
|
|
2153
|
+
function Xn(n = {}) {
|
|
2154
|
+
const l = Tn();
|
|
2155
|
+
l.addHooks(n.hooks || {}), n.document = n.document || (Sn ? document : void 0);
|
|
2150
2156
|
const t = !n.document, o = () => {
|
|
2151
|
-
|
|
2157
|
+
p.dirty = !0, l.callHook("entries:updated", p);
|
|
2152
2158
|
};
|
|
2153
2159
|
let i = 0, s = [];
|
|
2154
|
-
const
|
|
2155
|
-
plugins:
|
|
2160
|
+
const m = [], p = {
|
|
2161
|
+
plugins: m,
|
|
2156
2162
|
dirty: !1,
|
|
2157
2163
|
resolvedOptions: n,
|
|
2158
2164
|
hooks: l,
|
|
@@ -2160,8 +2166,8 @@ function Qn(n = {}) {
|
|
|
2160
2166
|
return s;
|
|
2161
2167
|
},
|
|
2162
2168
|
use(u) {
|
|
2163
|
-
const r = typeof u == "function" ? u(
|
|
2164
|
-
(!r.key || !
|
|
2169
|
+
const r = typeof u == "function" ? u(p) : u;
|
|
2170
|
+
(!r.key || !m.some((c) => c.key === r.key)) && (m.push(r), Ct(r.mode, t) && l.addHooks(r.hooks || {}));
|
|
2165
2171
|
},
|
|
2166
2172
|
push(u, r) {
|
|
2167
2173
|
delete r?.head;
|
|
@@ -2172,7 +2178,7 @@ function Qn(n = {}) {
|
|
|
2172
2178
|
};
|
|
2173
2179
|
return Ct(c.mode, t) && (s.push(c), o()), {
|
|
2174
2180
|
dispose() {
|
|
2175
|
-
s = s.filter((f) => f._i !== c._i), l.callHook("entries:updated",
|
|
2181
|
+
s = s.filter((f) => f._i !== c._i), l.callHook("entries:updated", p), o();
|
|
2176
2182
|
},
|
|
2177
2183
|
// a patch is the same as creating a new entry, just a nice DX
|
|
2178
2184
|
patch(f) {
|
|
@@ -2186,8 +2192,8 @@ function Qn(n = {}) {
|
|
|
2186
2192
|
for (const r of u.entries) {
|
|
2187
2193
|
const c = r.resolvedInput || r.input;
|
|
2188
2194
|
if (r.resolvedInput = await (r.transform ? r.transform(c) : c), r.resolvedInput)
|
|
2189
|
-
for (const f of await
|
|
2190
|
-
const $ = { tag: f, entry: r, resolvedOptions:
|
|
2195
|
+
for (const f of await Nn(r)) {
|
|
2196
|
+
const $ = { tag: f, entry: r, resolvedOptions: p.resolvedOptions };
|
|
2191
2197
|
await l.callHook("tag:normalise", $), u.tags.push($.tag);
|
|
2192
2198
|
}
|
|
2193
2199
|
}
|
|
@@ -2196,51 +2202,51 @@ function Qn(n = {}) {
|
|
|
2196
2202
|
ssr: t
|
|
2197
2203
|
};
|
|
2198
2204
|
return [
|
|
2199
|
-
Un,
|
|
2200
2205
|
Fn,
|
|
2201
|
-
|
|
2202
|
-
|
|
2206
|
+
On,
|
|
2207
|
+
qn,
|
|
2203
2208
|
Wn,
|
|
2204
|
-
|
|
2209
|
+
xn,
|
|
2205
2210
|
Jn,
|
|
2206
2211
|
zn,
|
|
2212
|
+
Yn,
|
|
2207
2213
|
...n?.plugins || []
|
|
2208
|
-
].forEach((u) =>
|
|
2214
|
+
].forEach((u) => p.use(u)), p.hooks.callHook("init", p), p;
|
|
2209
2215
|
}
|
|
2210
|
-
const
|
|
2211
|
-
function
|
|
2216
|
+
const Zn = mo.startsWith("3");
|
|
2217
|
+
function ea(n) {
|
|
2212
2218
|
return typeof n == "function" ? n() : e(n);
|
|
2213
2219
|
}
|
|
2214
2220
|
function nt(n, l = "") {
|
|
2215
2221
|
if (n instanceof Promise)
|
|
2216
2222
|
return n;
|
|
2217
|
-
const t =
|
|
2223
|
+
const t = ea(n);
|
|
2218
2224
|
return !n || !t ? t : Array.isArray(t) ? t.map((o) => nt(o, l)) : typeof t == "object" ? Object.fromEntries(
|
|
2219
2225
|
Object.entries(t).map(([o, i]) => o === "titleTemplate" || o.startsWith("on") ? [o, e(i)] : [o, nt(i, o)])
|
|
2220
2226
|
) : t;
|
|
2221
2227
|
}
|
|
2222
|
-
const
|
|
2228
|
+
const ta = {
|
|
2223
2229
|
hooks: {
|
|
2224
2230
|
"entries:resolve": function(n) {
|
|
2225
2231
|
for (const l of n.entries)
|
|
2226
2232
|
l.resolvedInput = nt(l.input);
|
|
2227
2233
|
}
|
|
2228
2234
|
}
|
|
2229
|
-
},
|
|
2230
|
-
function
|
|
2235
|
+
}, oa = "usehead";
|
|
2236
|
+
function la(n) {
|
|
2231
2237
|
return {
|
|
2232
2238
|
install(t) {
|
|
2233
|
-
|
|
2239
|
+
Zn && (t.config.globalProperties.$unhead = n, t.config.globalProperties.$head = n, t.provide(oa, n));
|
|
2234
2240
|
}
|
|
2235
2241
|
}.install;
|
|
2236
2242
|
}
|
|
2237
|
-
function
|
|
2243
|
+
function na(n = {}) {
|
|
2238
2244
|
n.domDelayFn = n.domDelayFn || ((t) => po(() => setTimeout(() => t(), 0)));
|
|
2239
|
-
const l = /* @__PURE__ */
|
|
2240
|
-
return l.use(
|
|
2245
|
+
const l = /* @__PURE__ */ Qn(n);
|
|
2246
|
+
return l.use(ta), l.install = la(l), l;
|
|
2241
2247
|
}
|
|
2242
|
-
const
|
|
2243
|
-
class
|
|
2248
|
+
const aa = vo(), ia = na(), sa = go();
|
|
2249
|
+
class ra extends HTMLElement {
|
|
2244
2250
|
vueApp;
|
|
2245
2251
|
constructor() {
|
|
2246
2252
|
super();
|
|
@@ -2250,13 +2256,13 @@ class sa extends HTMLElement {
|
|
|
2250
2256
|
}
|
|
2251
2257
|
connectedCallback() {
|
|
2252
2258
|
const l = yo(kt, this.attributes);
|
|
2253
|
-
this.vueApp = fo(kt, l), this.vueApp.provide("emitter",
|
|
2259
|
+
this.vueApp = fo(kt, l), this.vueApp.provide("emitter", sa), this.vueApp.use(ia), this.vueApp.use(aa), this.vueApp.use(Io), this.vueApp.use(bo), this.vueApp.use(Eo), this.vueApp.use(To), this.vueApp.use(wo, { bootstrap: !0 });
|
|
2254
2260
|
const t = document.createElement("div");
|
|
2255
2261
|
this.vueApp.mount(t), this.appendChild(t.children[0]);
|
|
2256
2262
|
}
|
|
2257
2263
|
}
|
|
2258
|
-
window.customElements.define("konnectio-hotel",
|
|
2264
|
+
window.customElements.define("konnectio-hotel", ra);
|
|
2259
2265
|
export {
|
|
2260
|
-
|
|
2266
|
+
ra as default
|
|
2261
2267
|
};
|
|
2262
2268
|
//# sourceMappingURL=hotel.js.map
|