@konnectio/core 4.0.74 → 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-D8W3NqRF.js → ActionField-CHwplij8.js} +3 -3
- package/dist/ActionField-CHwplij8.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BBDi4x8U.js → AvailabilitySkeleton-Cy0P6NKm.js} +35 -35
- package/dist/AvailabilitySkeleton-Cy0P6NKm.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CIEzLxoU.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-DUjpjYxC.js → CheckoutWindow-Bfhocd4F.js} +4 -4
- package/dist/CheckoutWindow-Bfhocd4F.js.br +0 -0
- package/dist/{ErrorMessage-hjNJgwrs.js → ErrorMessage-CtXOviJv.js} +3 -3
- package/dist/ErrorMessage-CtXOviJv.js.br +0 -0
- package/dist/{EventAvailabilityForm-DUjmm91K.js → EventAvailabilityForm-Bg2tNWol.js} +5 -5
- package/dist/EventAvailabilityForm-Bg2tNWol.js.br +0 -0
- package/dist/{Field-BQPBt3Yl.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-B04XBO4v.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-D6RUoOUV.js → TermsOfService-D7x_WeB9.js} +9 -9
- package/dist/TermsOfService-D7x_WeB9.js.br +0 -0
- package/dist/{_-Dshgs9--.js → _-5d7Am3XD.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-CGVeBj5b.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-B-6sA32f.js → _commonjsHelpers-B13T3-KN.js} +2 -2
- package/dist/_commonjsHelpers-B13T3-KN.js.br +0 -0
- package/dist/{_sentry-release-injection-file-CYoJrL75.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-Cia2eO-w.js → giftCard-C3-VNyzx.js} +4 -4
- package/dist/giftCard-C3-VNyzx.js.br +0 -0
- package/dist/hotel.js +664 -647
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CgYuuVsX.js → masonry.plugin-CqrNqwa8.js} +98 -96
- package/dist/masonry.plugin-CqrNqwa8.js.br +0 -0
- package/dist/{mitt-BOKsNQma.js → mitt-BsDqRQVb.js} +2 -2
- package/dist/mitt-BsDqRQVb.js.br +0 -0
- package/dist/polyfill.js +91 -91
- package/dist/polyfill.js.br +0 -0
- package/dist/{sentry-bc_bi4Og.js → sentry-COtUucgq.js} +2 -2
- package/dist/{style-BMdCLRVb.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-D8W3NqRF.js.br +0 -0
- package/dist/AvailabilitySkeleton-BBDi4x8U.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CIEzLxoU.js.br +0 -0
- package/dist/CheckoutWindow-DUjpjYxC.js.br +0 -0
- package/dist/ErrorMessage-hjNJgwrs.js.br +0 -0
- package/dist/EventAvailabilityForm-DUjmm91K.js.br +0 -0
- package/dist/Field-BQPBt3Yl.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B04XBO4v.js.br +0 -0
- package/dist/TermsOfService-D6RUoOUV.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CGVeBj5b.js.br +0 -0
- package/dist/_commonjsHelpers-B-6sA32f.js.br +0 -0
- package/dist/_sentry-release-injection-file-CYoJrL75.js.br +0 -0
- package/dist/giftCard-Cia2eO-w.js.br +0 -0
- package/dist/masonry.plugin-CgYuuVsX.js.br +0 -0
- package/dist/mitt-BOKsNQma.js.br +0 -0
- package/dist/style-BMdCLRVb.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:
|
|
63
|
-
totalRooms:
|
|
65
|
+
totalTemplateAddonPrice: q,
|
|
66
|
+
totalRooms: ye,
|
|
64
67
|
totalAdults: ge,
|
|
65
68
|
totalChildren: be
|
|
66
|
-
} = Z(
|
|
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(
|
|
190
|
-
modelValue:
|
|
191
|
-
"onUpdate:modelValue":
|
|
192
|
+
Ye(Q.$slots, "actions", {}, void 0, !0),
|
|
193
|
+
y(Mo, {
|
|
194
|
+
modelValue: he.value,
|
|
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(
|
|
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:
|
|
993
|
-
selectionHasNoAddons:
|
|
999
|
+
availabilityData: q,
|
|
1000
|
+
selectionHasNoAddons: ye,
|
|
994
1001
|
isAvailabilityDataAvailable: ge,
|
|
995
1002
|
getSelectedPackageRoom: be,
|
|
996
|
-
selectedPackage:
|
|
1003
|
+
selectedPackage: Le,
|
|
997
1004
|
isSearchOutdated: dt,
|
|
998
|
-
currentChildren:
|
|
999
|
-
isTemplateReservation:
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1005
|
+
currentChildren: Ue,
|
|
1006
|
+
isTemplateReservation: Ae,
|
|
1007
|
+
newsMails: he
|
|
1008
|
+
} = Z(ve()), {
|
|
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
|
-
} =
|
|
1041
|
+
} = ve(), Xt = ae(!0), Zt = x(() => [
|
|
1033
1042
|
{
|
|
1034
1043
|
id: "availability",
|
|
1035
1044
|
label: o("booking.availability.title"),
|
|
@@ -1038,8 +1047,7 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1038
1047
|
{
|
|
1039
1048
|
id: "addons",
|
|
1040
1049
|
label: o("booking.reservation.addons"),
|
|
1041
|
-
icon: "shopping-cart"
|
|
1042
|
-
hidden: he.value
|
|
1050
|
+
icon: "shopping-cart"
|
|
1043
1051
|
},
|
|
1044
1052
|
{
|
|
1045
1053
|
id: "reservation",
|
|
@@ -1055,8 +1063,8 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1055
1063
|
label: o("booking.confirmation.title"),
|
|
1056
1064
|
icon: "calendar-check"
|
|
1057
1065
|
}
|
|
1058
|
-
]),
|
|
1059
|
-
const
|
|
1066
|
+
]), eo = x(() => {
|
|
1067
|
+
const b = [
|
|
1060
1068
|
{
|
|
1061
1069
|
label: o("booking.reservation.business"),
|
|
1062
1070
|
value: "Business"
|
|
@@ -1066,38 +1074,38 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1066
1074
|
value: "Pleasure"
|
|
1067
1075
|
}
|
|
1068
1076
|
];
|
|
1069
|
-
return
|
|
1077
|
+
return Ot.value || b.push({
|
|
1070
1078
|
label: o("booking.reservation.bleasure"),
|
|
1071
1079
|
value: "Bleasure"
|
|
1072
|
-
}),
|
|
1073
|
-
}),
|
|
1074
|
-
const
|
|
1075
|
-
function
|
|
1076
|
-
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;
|
|
1077
1085
|
}
|
|
1078
|
-
return
|
|
1079
|
-
}), Ke = x(() => t.hideAddons === "yes" ||
|
|
1080
|
-
function ht(
|
|
1081
|
-
Ke.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();
|
|
1082
1090
|
}
|
|
1083
|
-
async function
|
|
1084
|
-
await
|
|
1091
|
+
async function oo(b, V) {
|
|
1092
|
+
await Yt(b, V);
|
|
1085
1093
|
}
|
|
1086
|
-
function
|
|
1087
|
-
|
|
1094
|
+
function lo(b) {
|
|
1095
|
+
Rt.value && Kt(), Ke.value || ye.value ? b(2) : b();
|
|
1088
1096
|
}
|
|
1089
|
-
function
|
|
1090
|
-
const
|
|
1097
|
+
function no() {
|
|
1098
|
+
const b = $o("history", {
|
|
1091
1099
|
removeNullishValues: !0
|
|
1092
|
-
}),
|
|
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;
|
|
1093
1101
|
let oe = !1;
|
|
1094
|
-
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({
|
|
1095
1103
|
message: o("alert.error.hotelIdNotFound"),
|
|
1096
1104
|
type: "error"
|
|
1097
|
-
})),
|
|
1098
|
-
if (gt(
|
|
1099
|
-
const
|
|
1100
|
-
|
|
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({
|
|
1101
1109
|
message: o("alert.error.invalidDateRange"),
|
|
1102
1110
|
type: "error"
|
|
1103
1111
|
}));
|
|
@@ -1106,138 +1114,138 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1106
1114
|
message: o("alert.error.wrongDateFormat"),
|
|
1107
1115
|
type: "error"
|
|
1108
1116
|
});
|
|
1109
|
-
let
|
|
1110
|
-
H && (
|
|
1117
|
+
let X = null;
|
|
1118
|
+
H && (X = H), t.disableDefaultLocation === "yes" && oe === !1 ? (K.value = void 0, i.value = void 0) : mt(X);
|
|
1111
1119
|
}
|
|
1112
|
-
return (
|
|
1113
|
-
default:
|
|
1114
|
-
(d(),
|
|
1115
|
-
default:
|
|
1120
|
+
return (b, V) => (d(), A(Vo, { styling: b.styling }, {
|
|
1121
|
+
default: w(() => [
|
|
1122
|
+
(d(), A(uo, { onResolve: no }, {
|
|
1123
|
+
default: w(() => [
|
|
1116
1124
|
y(e(l), {
|
|
1117
1125
|
id: "konnectio-hotel-module",
|
|
1118
|
-
"access-token":
|
|
1119
|
-
callback: e(
|
|
1126
|
+
"access-token": b.accessToken,
|
|
1127
|
+
callback: e(Qt)
|
|
1120
1128
|
}, {
|
|
1121
|
-
default:
|
|
1122
|
-
y(
|
|
1123
|
-
layout:
|
|
1124
|
-
steps:
|
|
1125
|
-
onReset: e(
|
|
1129
|
+
default: w(() => [
|
|
1130
|
+
y(Do, {
|
|
1131
|
+
layout: b.headerLayout,
|
|
1132
|
+
steps: Zt.value,
|
|
1133
|
+
onReset: e(Jt)
|
|
1126
1134
|
}, {
|
|
1127
|
-
availability:
|
|
1135
|
+
availability: w(({ next: J }) => [
|
|
1128
1136
|
y(Ze, null, {
|
|
1129
|
-
form:
|
|
1130
|
-
a("div",
|
|
1131
|
-
a("div",
|
|
1132
|
-
y(
|
|
1137
|
+
form: w(() => [
|
|
1138
|
+
a("div", Bl, [
|
|
1139
|
+
a("div", Nl, [
|
|
1140
|
+
y(No, {
|
|
1133
1141
|
booking: !0,
|
|
1134
|
-
"selected-location": Number(
|
|
1135
|
-
"disable-default-location":
|
|
1142
|
+
"selected-location": Number(b.selectedLocation),
|
|
1143
|
+
"disable-default-location": b.disableDefaultLocation === "yes"
|
|
1136
1144
|
}, null, 8, ["selected-location", "disable-default-location"])
|
|
1137
1145
|
]),
|
|
1138
1146
|
_("", !0),
|
|
1139
|
-
!e(
|
|
1140
|
-
e(
|
|
1141
|
-
e(
|
|
1142
|
-
|
|
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, [
|
|
1143
1151
|
y(W, {
|
|
1144
1152
|
icon: "box",
|
|
1145
1153
|
type: "fal",
|
|
1146
1154
|
color: "header"
|
|
1147
1155
|
}),
|
|
1148
|
-
a("span", null,
|
|
1156
|
+
a("span", null, v(e(o)("booking.availability.packagesTitle")), 1)
|
|
1149
1157
|
])) : _("", !0),
|
|
1150
|
-
a("ul",
|
|
1151
|
-
(d(!0),
|
|
1152
|
-
id:
|
|
1158
|
+
a("ul", Fl, [
|
|
1159
|
+
(d(!0), h(F, null, G(e(q).templates, ({
|
|
1160
|
+
id: P,
|
|
1153
1161
|
name: S,
|
|
1154
|
-
templateRoomGroups:
|
|
1162
|
+
templateRoomGroups: g,
|
|
1155
1163
|
image: U,
|
|
1156
1164
|
description: H,
|
|
1157
1165
|
weekendFee: oe
|
|
1158
|
-
}) => (d(),
|
|
1159
|
-
key:
|
|
1160
|
-
id:
|
|
1166
|
+
}) => (d(), A(bl, {
|
|
1167
|
+
key: P,
|
|
1168
|
+
id: P,
|
|
1161
1169
|
description: H,
|
|
1162
1170
|
name: S,
|
|
1163
1171
|
image: U,
|
|
1164
1172
|
weekendFee: oe,
|
|
1165
|
-
"room-groups":
|
|
1166
|
-
callback:
|
|
1167
|
-
"hide-addons":
|
|
1173
|
+
"room-groups": g,
|
|
1174
|
+
callback: J,
|
|
1175
|
+
"hide-addons": b.hideAddons === "yes" || b.hideAddons === "packages"
|
|
1168
1176
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
1169
1177
|
])
|
|
1170
1178
|
])) : _("", !0),
|
|
1171
|
-
e(
|
|
1172
|
-
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, [
|
|
1173
1181
|
y(W, {
|
|
1174
1182
|
icon: "house",
|
|
1175
1183
|
type: "fal",
|
|
1176
1184
|
color: "header"
|
|
1177
1185
|
}),
|
|
1178
|
-
a("span", null,
|
|
1186
|
+
a("span", null, v(e(o)("booking.availability.roomsTitle")), 1)
|
|
1179
1187
|
])) : _("", !0),
|
|
1180
|
-
a("ul",
|
|
1181
|
-
(d(!0),
|
|
1182
|
-
room:
|
|
1188
|
+
a("ul", ql, [
|
|
1189
|
+
(d(!0), h(F, null, G(to.value, (P, S) => (d(), A(fl, {
|
|
1190
|
+
room: P,
|
|
1183
1191
|
key: S
|
|
1184
1192
|
}, null, 8, ["room"]))), 128))
|
|
1185
1193
|
])
|
|
1186
1194
|
])) : _("", !0),
|
|
1187
|
-
e(
|
|
1188
|
-
a("h2",
|
|
1195
|
+
e(q).specialTemplates.length > 0 && b.onlyShow !== "rooms" ? (d(), h("div", Gl, [
|
|
1196
|
+
a("h2", Wl, [
|
|
1189
1197
|
y(W, {
|
|
1190
1198
|
icon: "sparkles",
|
|
1191
1199
|
type: "fal",
|
|
1192
1200
|
color: "header"
|
|
1193
1201
|
}),
|
|
1194
|
-
a("span", null,
|
|
1202
|
+
a("span", null, v(e(o)("hotel.specialOffers")), 1)
|
|
1195
1203
|
]),
|
|
1196
|
-
a("ul",
|
|
1197
|
-
(d(!0),
|
|
1198
|
-
id:
|
|
1204
|
+
a("ul", xl, [
|
|
1205
|
+
(d(!0), h(F, null, G(e(q).specialTemplates, ({
|
|
1206
|
+
id: P,
|
|
1199
1207
|
name: S,
|
|
1200
|
-
templateRoomGroups:
|
|
1208
|
+
templateRoomGroups: g,
|
|
1201
1209
|
image: U,
|
|
1202
1210
|
description: H,
|
|
1203
1211
|
weekendFee: oe,
|
|
1204
|
-
fromDate:
|
|
1205
|
-
toDate:
|
|
1206
|
-
}) => (d(),
|
|
1207
|
-
key:
|
|
1208
|
-
id:
|
|
1212
|
+
fromDate: X,
|
|
1213
|
+
toDate: Ve
|
|
1214
|
+
}) => (d(), A(Vl, {
|
|
1215
|
+
key: P,
|
|
1216
|
+
id: P,
|
|
1209
1217
|
description: H,
|
|
1210
1218
|
name: S,
|
|
1211
1219
|
image: U,
|
|
1212
|
-
fromDate:
|
|
1213
|
-
toDate:
|
|
1220
|
+
fromDate: X,
|
|
1221
|
+
toDate: Ve,
|
|
1214
1222
|
weekendFee: oe,
|
|
1215
|
-
"room-groups":
|
|
1216
|
-
callback:
|
|
1223
|
+
"room-groups": g,
|
|
1224
|
+
callback: J
|
|
1217
1225
|
}, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1218
1226
|
])
|
|
1219
1227
|
])) : _("", !0),
|
|
1220
|
-
(e(
|
|
1221
|
-
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)
|
|
1222
1230
|
])) : _("", !0)
|
|
1223
|
-
])) : e(
|
|
1224
|
-
a("span", null,
|
|
1225
|
-
])) : (d(),
|
|
1226
|
-
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, [
|
|
1227
1235
|
y(W, {
|
|
1228
1236
|
icon: "calendar-circle-exclamation",
|
|
1229
1237
|
type: "fal",
|
|
1230
1238
|
color: "header"
|
|
1231
1239
|
}),
|
|
1232
|
-
a("span", null,
|
|
1240
|
+
a("span", null, v(e(o)("booking.availability.nextAvailableDates")), 1)
|
|
1233
1241
|
]),
|
|
1234
|
-
a("ul",
|
|
1235
|
-
(d(!0),
|
|
1242
|
+
a("ul", Ql, [
|
|
1243
|
+
(d(!0), h(F, null, G(e(q).nextAvailableDates, (P, S) => (d(), h("li", { key: S }, [
|
|
1236
1244
|
a("h3", {
|
|
1237
|
-
title: `${e(le)(
|
|
1245
|
+
title: `${e(le)(P.fromDate)} - ${e(le)(P.toDate)}`
|
|
1238
1246
|
}, [
|
|
1239
|
-
a("span", null,
|
|
1240
|
-
], 8,
|
|
1247
|
+
a("span", null, v(`${e(le)(P.fromDate)} - ${e(le)(P.toDate)}`), 1)
|
|
1248
|
+
], 8, Xl),
|
|
1241
1249
|
a("ul", null, [
|
|
1242
1250
|
_("", !0),
|
|
1243
1251
|
a("li", null, [
|
|
@@ -1246,116 +1254,116 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1246
1254
|
type: "fal",
|
|
1247
1255
|
color: "header"
|
|
1248
1256
|
}),
|
|
1249
|
-
a("span", null,
|
|
1257
|
+
a("span", null, v(e(o)("booking.availability.pricesFrom")) + ": " + v(e(ne)(P.priceStartFrom, e(_e))), 1)
|
|
1250
1258
|
])
|
|
1251
1259
|
]),
|
|
1252
1260
|
y(me, {
|
|
1253
1261
|
label: e(o)("booking.availability.selectDates"),
|
|
1254
1262
|
"full-width": "",
|
|
1255
|
-
onClickEvent: (
|
|
1263
|
+
onClickEvent: (g) => e(Oe)(new Date(P.fromDate), new Date(P.toDate))
|
|
1256
1264
|
}, null, 8, ["label", "onClickEvent"])
|
|
1257
1265
|
]))), 128))
|
|
1258
1266
|
])
|
|
1259
1267
|
]))
|
|
1260
|
-
])) : isNaN(e(i)) && !e(
|
|
1261
|
-
a("span", null,
|
|
1262
|
-
])) : (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, [
|
|
1263
1271
|
y(Xe),
|
|
1264
1272
|
y(Xe),
|
|
1265
1273
|
y(Xe)
|
|
1266
1274
|
]))
|
|
1267
1275
|
])
|
|
1268
1276
|
]),
|
|
1269
|
-
navigation:
|
|
1270
|
-
e(dt) ? (d(),
|
|
1277
|
+
navigation: w(() => [
|
|
1278
|
+
e(dt) ? (d(), A(me, {
|
|
1271
1279
|
key: 0,
|
|
1272
1280
|
label: isNaN(e(i)) ? e(o)("availability.buttonLabel") : e(o)("general.searchAgain"),
|
|
1273
|
-
"is-loading": e(
|
|
1281
|
+
"is-loading": e(u),
|
|
1274
1282
|
"full-width": "",
|
|
1275
|
-
onClickEvent:
|
|
1276
|
-
}, null, 8, ["label", "is-loading"])) : (d(),
|
|
1283
|
+
onClickEvent: V[1] || (V[1] = (P) => e(mt)())
|
|
1284
|
+
}, null, 8, ["label", "is-loading"])) : (d(), A(me, {
|
|
1277
1285
|
key: 1,
|
|
1278
|
-
label: e(
|
|
1286
|
+
label: e(ye) || Ke.value ? e(o)("booking.availability.nextButton") : e(o)("general.chooseAddons"),
|
|
1279
1287
|
disabled: !e(te),
|
|
1280
1288
|
"full-width": "",
|
|
1281
|
-
onClickEvent: (
|
|
1289
|
+
onClickEvent: (P) => lo(J)
|
|
1282
1290
|
}, null, 8, ["label", "disabled", "onClickEvent"]))
|
|
1283
1291
|
]),
|
|
1284
1292
|
_: 2
|
|
1285
1293
|
}, 1024)
|
|
1286
1294
|
]),
|
|
1287
|
-
addons:
|
|
1288
|
-
e(ge) ? (d(),
|
|
1295
|
+
addons: w(({ next: J, prev: P }) => [
|
|
1296
|
+
e(ge) ? (d(), A(Ze, {
|
|
1289
1297
|
key: 0,
|
|
1290
|
-
"prev-callback": () => ht(
|
|
1298
|
+
"prev-callback": () => ht(P)
|
|
1291
1299
|
}, {
|
|
1292
|
-
form:
|
|
1293
|
-
a("form",
|
|
1300
|
+
form: w(() => [
|
|
1301
|
+
a("form", tn, [
|
|
1294
1302
|
a("h2", null, [
|
|
1295
|
-
a("span", null,
|
|
1303
|
+
a("span", null, v(e(o)("booking.reservation.addons")), 1)
|
|
1296
1304
|
]),
|
|
1297
1305
|
a("div", null, [
|
|
1298
|
-
isNaN(e(s)) ? (d(),
|
|
1299
|
-
(d(!0),
|
|
1306
|
+
isNaN(e(s)) ? (d(), h("div", on, [
|
|
1307
|
+
(d(!0), h(F, null, G(e(se), (S) => (d(), h("ul", {
|
|
1300
1308
|
key: S.roomGroupID
|
|
1301
1309
|
}, [
|
|
1302
|
-
(d(!0),
|
|
1303
|
-
key:
|
|
1310
|
+
(d(!0), h(F, null, G(S.variants, (g, U) => (d(), h("li", {
|
|
1311
|
+
key: g.ratePlanID
|
|
1304
1312
|
}, [
|
|
1305
1313
|
a("h4", null, [
|
|
1306
|
-
a("span", null,
|
|
1314
|
+
a("span", null, v(e(pe)(S.title)), 1)
|
|
1307
1315
|
]),
|
|
1308
|
-
(d(!0),
|
|
1316
|
+
(d(!0), h(F, null, G(g.rooms, (H, oe) => (d(), h("table", {
|
|
1309
1317
|
key: oe,
|
|
1310
1318
|
class: "konnectio-table with-lines"
|
|
1311
1319
|
}, [
|
|
1312
1320
|
a("thead", null, [
|
|
1313
1321
|
a("tr", null, [
|
|
1314
1322
|
a("th", null, [
|
|
1315
|
-
a("span", null,
|
|
1323
|
+
a("span", null, v(e(pe)(g.name)), 1)
|
|
1316
1324
|
]),
|
|
1317
1325
|
_("", !0),
|
|
1318
|
-
a("th",
|
|
1326
|
+
a("th", ln, [
|
|
1319
1327
|
a("b", null, [
|
|
1320
1328
|
y(W, {
|
|
1321
1329
|
icon: "male",
|
|
1322
1330
|
type: "fas",
|
|
1323
1331
|
color: "font"
|
|
1324
1332
|
}),
|
|
1325
|
-
a("span", null,
|
|
1326
|
-
H.childrenCount > 0 ? (d(),
|
|
1333
|
+
a("span", null, v(H.adultsCount), 1),
|
|
1334
|
+
H.childrenCount > 0 ? (d(), A(W, {
|
|
1327
1335
|
key: 0,
|
|
1328
1336
|
icon: "child",
|
|
1329
1337
|
type: "fas",
|
|
1330
1338
|
color: "font"
|
|
1331
1339
|
})) : _("", !0),
|
|
1332
|
-
H.childrenCount > 0 ? (d(),
|
|
1340
|
+
H.childrenCount > 0 ? (d(), h("span", nn, v(H.childrenCount), 1)) : _("", !0)
|
|
1333
1341
|
])
|
|
1334
1342
|
])
|
|
1335
1343
|
])
|
|
1336
1344
|
]),
|
|
1337
1345
|
a("tbody", null, [
|
|
1338
|
-
(d(!0),
|
|
1339
|
-
quantityStrategy:
|
|
1340
|
-
maximumNumber:
|
|
1346
|
+
(d(!0), h(F, null, G(e(ft)(g.addons, H.childrenCount), ({
|
|
1347
|
+
quantityStrategy: X,
|
|
1348
|
+
maximumNumber: Ve,
|
|
1341
1349
|
id: de,
|
|
1342
|
-
name:
|
|
1343
|
-
price:
|
|
1344
|
-
}) => (d(),
|
|
1345
|
-
a("td",
|
|
1346
|
-
a("b", null,
|
|
1347
|
-
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)
|
|
1348
1356
|
]),
|
|
1349
|
-
a("td",
|
|
1350
|
-
e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx] ? (d(),
|
|
1351
|
-
|
|
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, {
|
|
1352
1360
|
key: 0,
|
|
1353
1361
|
modelValue: e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx][de],
|
|
1354
1362
|
"onUpdate:modelValue": (Je) => e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx][de] = Je,
|
|
1355
1363
|
small: !0,
|
|
1356
1364
|
"min-value": 0,
|
|
1357
|
-
"max-value":
|
|
1358
|
-
}, 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, {
|
|
1359
1367
|
key: 1,
|
|
1360
1368
|
modelValue: e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx][de],
|
|
1361
1369
|
"onUpdate:modelValue": (Je) => e(L)[S.roomGroupID][U].config[H.configIdx].addons[H.roomIdx][de] = Je,
|
|
@@ -1368,45 +1376,45 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1368
1376
|
]))), 128))
|
|
1369
1377
|
]))), 128))
|
|
1370
1378
|
]))), 128))
|
|
1371
|
-
])) : e(be) ? (d(),
|
|
1379
|
+
])) : e(be) ? (d(), h("div", rn, [
|
|
1372
1380
|
a("div", null, [
|
|
1373
1381
|
a("h4", null, [
|
|
1374
|
-
a("span", null,
|
|
1382
|
+
a("span", null, v(e(Le).name), 1)
|
|
1375
1383
|
]),
|
|
1376
|
-
a("table",
|
|
1384
|
+
a("table", dn, [
|
|
1377
1385
|
a("thead", null, [
|
|
1378
1386
|
a("tr", null, [
|
|
1379
1387
|
a("th", null, [
|
|
1380
|
-
a("span", null,
|
|
1388
|
+
a("span", null, v(e(pe)(e(be).title)), 1)
|
|
1381
1389
|
]),
|
|
1382
1390
|
_("", !0),
|
|
1383
|
-
|
|
1391
|
+
un
|
|
1384
1392
|
])
|
|
1385
1393
|
]),
|
|
1386
1394
|
a("tbody", null, [
|
|
1387
|
-
(d(!0),
|
|
1395
|
+
(d(!0), h(F, null, G(e(ft)(e(be).addons, e(Ue)), ({
|
|
1388
1396
|
quantityStrategy: S,
|
|
1389
|
-
maximumNumber:
|
|
1397
|
+
maximumNumber: g,
|
|
1390
1398
|
id: U,
|
|
1391
1399
|
name: H,
|
|
1392
1400
|
price: oe
|
|
1393
|
-
}) => (d(),
|
|
1394
|
-
a("td",
|
|
1395
|
-
a("b", null,
|
|
1396
|
-
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)
|
|
1397
1405
|
]),
|
|
1398
|
-
a("td",
|
|
1399
|
-
S === 1 || S === 12 ? (d(),
|
|
1406
|
+
a("td", pn, [
|
|
1407
|
+
S === 1 || S === 12 ? (d(), A(ot, {
|
|
1400
1408
|
key: 0,
|
|
1401
1409
|
modelValue: e(p)[U],
|
|
1402
|
-
"onUpdate:modelValue": (
|
|
1410
|
+
"onUpdate:modelValue": (X) => e(p)[U] = X,
|
|
1403
1411
|
small: !0,
|
|
1404
1412
|
"min-value": 0,
|
|
1405
|
-
"max-value":
|
|
1406
|
-
}, 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, {
|
|
1407
1415
|
key: 1,
|
|
1408
1416
|
modelValue: e(p)[U],
|
|
1409
|
-
"onUpdate:modelValue": (
|
|
1417
|
+
"onUpdate:modelValue": (X) => e(p)[U] = X,
|
|
1410
1418
|
numeric: !0
|
|
1411
1419
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1412
1420
|
])
|
|
@@ -1418,69 +1426,69 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1418
1426
|
])
|
|
1419
1427
|
])
|
|
1420
1428
|
]),
|
|
1421
|
-
navigation:
|
|
1429
|
+
navigation: w(() => [
|
|
1422
1430
|
y(me, {
|
|
1423
1431
|
label: e(o)("general.startReservation"),
|
|
1424
1432
|
"full-width": "",
|
|
1425
|
-
onClickEvent:
|
|
1433
|
+
onClickEvent: J
|
|
1426
1434
|
}, null, 8, ["label", "onClickEvent"])
|
|
1427
1435
|
]),
|
|
1428
1436
|
_: 2
|
|
1429
1437
|
}, 1032, ["prev-callback"])) : _("", !0)
|
|
1430
1438
|
]),
|
|
1431
|
-
reservation:
|
|
1432
|
-
e(ge) ? (d(),
|
|
1439
|
+
reservation: w(({ next: J, prev: P, reset: S }) => [
|
|
1440
|
+
e(ge) ? (d(), A(Ze, {
|
|
1433
1441
|
key: 0,
|
|
1434
|
-
"prev-callback": () => ht(
|
|
1442
|
+
"prev-callback": () => ht(P),
|
|
1435
1443
|
"show-terms-notice": !0,
|
|
1436
1444
|
"show-gift-card": !0
|
|
1437
1445
|
}, {
|
|
1438
|
-
form:
|
|
1439
|
-
a("form",
|
|
1446
|
+
form: w(() => [
|
|
1447
|
+
a("form", mn, [
|
|
1440
1448
|
a("h2", null, [
|
|
1441
|
-
a("span", null,
|
|
1449
|
+
a("span", null, v(e(o)("booking.reservation.detailsTitle")), 1)
|
|
1442
1450
|
]),
|
|
1443
|
-
!e(
|
|
1451
|
+
!e(Lt) && !(e(Ge) && e(We)) ? (d(), h("ul", {
|
|
1444
1452
|
key: 0,
|
|
1445
1453
|
class: Be(["konnectio-reservation-timepicker", { "konnectio-split-inputs": !e(Ge) && !e(We) }])
|
|
1446
1454
|
}, [
|
|
1447
|
-
e(Ge) ? _("", !0) : (d(),
|
|
1455
|
+
e(Ge) ? _("", !0) : (d(), h("li", fn, [
|
|
1448
1456
|
y(bt, {
|
|
1449
|
-
modelValue: e(
|
|
1450
|
-
"onUpdate:modelValue":
|
|
1457
|
+
modelValue: e($),
|
|
1458
|
+
"onUpdate:modelValue": V[2] || (V[2] = (g) => j($) ? $.value = g : null),
|
|
1451
1459
|
label: e(o)("booking.reservation.arrivalTime"),
|
|
1452
1460
|
icon: "hourglass-start",
|
|
1453
|
-
"min-time": e(
|
|
1454
|
-
"max-time": e(
|
|
1461
|
+
"min-time": e(je),
|
|
1462
|
+
"max-time": e(re),
|
|
1455
1463
|
required: ""
|
|
1456
1464
|
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
1457
1465
|
])),
|
|
1458
|
-
e(We) ? _("", !0) : (d(),
|
|
1466
|
+
e(We) ? _("", !0) : (d(), h("li", hn, [
|
|
1459
1467
|
y(bt, {
|
|
1460
|
-
modelValue: e(
|
|
1461
|
-
"onUpdate:modelValue":
|
|
1468
|
+
modelValue: e(T),
|
|
1469
|
+
"onUpdate:modelValue": V[3] || (V[3] = (g) => j(T) ? T.value = g : null),
|
|
1462
1470
|
label: e(o)("booking.reservation.departureTime"),
|
|
1463
1471
|
icon: "hourglass-end",
|
|
1464
|
-
"min-time": e(
|
|
1465
|
-
"max-time": e(
|
|
1472
|
+
"min-time": e(qe),
|
|
1473
|
+
"max-time": e(ut),
|
|
1466
1474
|
required: ""
|
|
1467
1475
|
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
1468
1476
|
]))
|
|
1469
1477
|
], 2)) : _("", !0),
|
|
1470
|
-
y(
|
|
1478
|
+
y(Pl, {
|
|
1471
1479
|
modelValue: e(C),
|
|
1472
|
-
"onUpdate:modelValue":
|
|
1480
|
+
"onUpdate:modelValue": V[4] || (V[4] = (g) => j(C) ? C.value = g : null),
|
|
1473
1481
|
title: e(I),
|
|
1474
|
-
"onUpdate:title":
|
|
1475
|
-
"exclude-title": e(
|
|
1482
|
+
"onUpdate:title": V[5] || (V[5] = (g) => j(I) ? I.value = g : null),
|
|
1483
|
+
"exclude-title": e(Ut),
|
|
1476
1484
|
label: e(o)("booking.reservation.name"),
|
|
1477
1485
|
icon: "user-alt",
|
|
1478
1486
|
placeholder: e(o)("booking.reservation.namePlaceholder"),
|
|
1479
1487
|
required: ""
|
|
1480
1488
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1481
|
-
y(
|
|
1489
|
+
y(ce, {
|
|
1482
1490
|
modelValue: e(M),
|
|
1483
|
-
"onUpdate:modelValue":
|
|
1491
|
+
"onUpdate:modelValue": V[6] || (V[6] = (g) => j(M) ? M.value = g : null),
|
|
1484
1492
|
type: "email",
|
|
1485
1493
|
name: "email",
|
|
1486
1494
|
autocomplete: "email",
|
|
@@ -1489,10 +1497,19 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1489
1497
|
placeholder: e(o)("booking.reservation.emailPlaceholder"),
|
|
1490
1498
|
required: ""
|
|
1491
1499
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1492
|
-
e(
|
|
1493
|
-
|
|
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,
|
|
1494
1511
|
modelValue: e(E),
|
|
1495
|
-
"onUpdate:modelValue":
|
|
1512
|
+
"onUpdate:modelValue": V[8] || (V[8] = (g) => j(E) ? E.value = g : null),
|
|
1496
1513
|
type: "text",
|
|
1497
1514
|
name: "firm",
|
|
1498
1515
|
autocomplete: "firm",
|
|
@@ -1500,25 +1517,25 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1500
1517
|
icon: "id-card",
|
|
1501
1518
|
placeholder: e(o)("booking.reservation.companyNamePlaceholder")
|
|
1502
1519
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1503
|
-
y(
|
|
1520
|
+
y(Lo, {
|
|
1504
1521
|
modelValue: e(N),
|
|
1505
|
-
"onUpdate:modelValue":
|
|
1522
|
+
"onUpdate:modelValue": V[9] || (V[9] = (g) => j(N) ? N.value = g : null),
|
|
1506
1523
|
icon: "phone-office",
|
|
1507
1524
|
label: e(o)("booking.reservation.phone"),
|
|
1508
1525
|
placeholder: e(o)("booking.reservation.phonePlaceholder"),
|
|
1509
1526
|
required: ""
|
|
1510
1527
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1511
|
-
y(
|
|
1512
|
-
modelValue: e(
|
|
1513
|
-
"onUpdate:modelValue":
|
|
1528
|
+
y(Tl, {
|
|
1529
|
+
modelValue: e(z),
|
|
1530
|
+
"onUpdate:modelValue": V[10] || (V[10] = (g) => j(z) ? z.value = g : null),
|
|
1514
1531
|
label: e(o)("booking.reservation.country"),
|
|
1515
1532
|
placeholder: e(o)("booking.reservation.countryPlaceholder"),
|
|
1516
1533
|
options: e(m),
|
|
1517
1534
|
required: ""
|
|
1518
1535
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1519
|
-
y(
|
|
1536
|
+
y(ce, {
|
|
1520
1537
|
modelValue: e(B),
|
|
1521
|
-
"onUpdate:modelValue":
|
|
1538
|
+
"onUpdate:modelValue": V[11] || (V[11] = (g) => j(B) ? B.value = g : null),
|
|
1522
1539
|
type: "textarea",
|
|
1523
1540
|
name: "address",
|
|
1524
1541
|
autocomplete: "street-address",
|
|
@@ -1527,11 +1544,11 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1527
1544
|
placeholder: e(o)("booking.reservation.streetAddressPlaceholder"),
|
|
1528
1545
|
required: ""
|
|
1529
1546
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1530
|
-
a("ul",
|
|
1547
|
+
a("ul", yn, [
|
|
1531
1548
|
a("li", null, [
|
|
1532
|
-
y(
|
|
1549
|
+
y(ce, {
|
|
1533
1550
|
modelValue: e(k),
|
|
1534
|
-
"onUpdate:modelValue":
|
|
1551
|
+
"onUpdate:modelValue": V[12] || (V[12] = (g) => j(k) ? k.value = g : null),
|
|
1535
1552
|
type: "text",
|
|
1536
1553
|
name: "postal",
|
|
1537
1554
|
autocomplete: "postal-code",
|
|
@@ -1542,9 +1559,9 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1542
1559
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1543
1560
|
]),
|
|
1544
1561
|
a("li", null, [
|
|
1545
|
-
y(
|
|
1562
|
+
y(ce, {
|
|
1546
1563
|
modelValue: e(D),
|
|
1547
|
-
"onUpdate:modelValue":
|
|
1564
|
+
"onUpdate:modelValue": V[13] || (V[13] = (g) => j(D) ? D.value = g : null),
|
|
1548
1565
|
type: "text",
|
|
1549
1566
|
name: "city",
|
|
1550
1567
|
autocomplete: "address-level2",
|
|
@@ -1555,51 +1572,51 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1555
1572
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1556
1573
|
])
|
|
1557
1574
|
]),
|
|
1558
|
-
y(
|
|
1575
|
+
y(ce, {
|
|
1559
1576
|
modelValue: e(R),
|
|
1560
|
-
"onUpdate:modelValue":
|
|
1577
|
+
"onUpdate:modelValue": V[14] || (V[14] = (g) => j(R) ? R.value = g : null),
|
|
1561
1578
|
type: "textarea",
|
|
1562
1579
|
label: `${e(o)("booking.reservation.remark")} (${e(o)("booking.reservation.optional")})`,
|
|
1563
1580
|
icon: "info-circle",
|
|
1564
1581
|
placeholder: e(o)("booking.reservation.remarkPlaceholder")
|
|
1565
1582
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1566
|
-
y(
|
|
1583
|
+
y(ce, {
|
|
1567
1584
|
modelValue: e(Y),
|
|
1568
|
-
"onUpdate:modelValue":
|
|
1585
|
+
"onUpdate:modelValue": V[15] || (V[15] = (g) => j(Y) ? Y.value = g : null),
|
|
1569
1586
|
type: "textarea",
|
|
1570
1587
|
label: `${e(o)("booking.reservation.allergies")} (${e(o)("booking.reservation.optional")})`,
|
|
1571
1588
|
icon: "allergies",
|
|
1572
1589
|
placeholder: e(o)("booking.reservation.allergiesPlaceholder")
|
|
1573
1590
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1574
|
-
e(
|
|
1575
|
-
key:
|
|
1591
|
+
e(Ft) ? _("", !0) : (d(), A(So, {
|
|
1592
|
+
key: 3,
|
|
1576
1593
|
modelValue: e(f),
|
|
1577
|
-
"onUpdate:modelValue":
|
|
1594
|
+
"onUpdate:modelValue": V[16] || (V[16] = (g) => j(f) ? f.value = g : null),
|
|
1578
1595
|
label: `${e(o)("booking.reservation.purposeOfStay")} (${e(o)("booking.reservation.optional")})`,
|
|
1579
1596
|
name: "travelingFor",
|
|
1580
|
-
checkboxes:
|
|
1597
|
+
checkboxes: eo.value
|
|
1581
1598
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
1582
1599
|
])
|
|
1583
1600
|
]),
|
|
1584
|
-
navigation:
|
|
1601
|
+
navigation: w(() => [
|
|
1585
1602
|
a("div", null, [
|
|
1586
1603
|
y(me, {
|
|
1587
|
-
label: e(
|
|
1588
|
-
disabled: !e(
|
|
1604
|
+
label: e(qt) ? e(o)("booking.reservation.nextButton") : e(o)("general.confirmReservation"),
|
|
1605
|
+
disabled: !e(c),
|
|
1589
1606
|
"is-loading": e(r),
|
|
1590
1607
|
"full-width": "",
|
|
1591
|
-
onClickEvent: (
|
|
1608
|
+
onClickEvent: (g) => oo(J, S)
|
|
1592
1609
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
1593
1610
|
])
|
|
1594
1611
|
]),
|
|
1595
1612
|
_: 2
|
|
1596
1613
|
}, 1032, ["prev-callback"])) : _("", !0)
|
|
1597
1614
|
]),
|
|
1598
|
-
payment:
|
|
1599
|
-
y(
|
|
1615
|
+
payment: w(() => [
|
|
1616
|
+
y(Uo)
|
|
1600
1617
|
]),
|
|
1601
|
-
confirmation:
|
|
1602
|
-
y(
|
|
1618
|
+
confirmation: w(() => [
|
|
1619
|
+
y(Ho, {
|
|
1603
1620
|
message: e(o)("booking.confirmation.thankYou")
|
|
1604
1621
|
}, null, 8, ["message"])
|
|
1605
1622
|
]),
|
|
@@ -1609,8 +1626,8 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1609
1626
|
_: 1
|
|
1610
1627
|
}, 8, ["access-token", "callback"])
|
|
1611
1628
|
]),
|
|
1612
|
-
fallback:
|
|
1613
|
-
y(
|
|
1629
|
+
fallback: w(() => [
|
|
1630
|
+
y(Il)
|
|
1614
1631
|
]),
|
|
1615
1632
|
_: 1
|
|
1616
1633
|
}))
|
|
@@ -1618,7 +1635,7 @@ const sn = /* @__PURE__ */ Sl(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1618
1635
|
_: 1
|
|
1619
1636
|
}, 8, ["styling"]));
|
|
1620
1637
|
}
|
|
1621
|
-
}), kt = /* @__PURE__ */ fe(
|
|
1638
|
+
}), kt = /* @__PURE__ */ fe(gn, [["__scopeId", "data-v-4ef19623"]]);
|
|
1622
1639
|
function lt(n, l = {}, t) {
|
|
1623
1640
|
for (const o in n) {
|
|
1624
1641
|
const i = n[o], s = t ? `${t}:${o}` : o;
|
|
@@ -1626,15 +1643,15 @@ function lt(n, l = {}, t) {
|
|
|
1626
1643
|
}
|
|
1627
1644
|
return l;
|
|
1628
1645
|
}
|
|
1629
|
-
const
|
|
1630
|
-
function
|
|
1646
|
+
const bn = { run: (n) => n() }, kn = () => bn, Et = typeof console.createTask < "u" ? console.createTask : kn;
|
|
1647
|
+
function _n(n, l) {
|
|
1631
1648
|
const t = l.shift(), o = Et(t);
|
|
1632
1649
|
return n.reduce(
|
|
1633
1650
|
(i, s) => i.then(() => o.run(() => s(...l))),
|
|
1634
1651
|
Promise.resolve()
|
|
1635
1652
|
);
|
|
1636
1653
|
}
|
|
1637
|
-
function
|
|
1654
|
+
function Vn(n, l) {
|
|
1638
1655
|
const t = l.shift(), o = Et(t);
|
|
1639
1656
|
return Promise.all(n.map((i) => o.run(() => i(...l))));
|
|
1640
1657
|
}
|
|
@@ -1642,7 +1659,7 @@ function et(n, l) {
|
|
|
1642
1659
|
for (const t of [...n])
|
|
1643
1660
|
t(l);
|
|
1644
1661
|
}
|
|
1645
|
-
class
|
|
1662
|
+
class $n {
|
|
1646
1663
|
constructor() {
|
|
1647
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);
|
|
1648
1665
|
}
|
|
@@ -1711,10 +1728,10 @@ class bn {
|
|
|
1711
1728
|
delete this._hooks[l];
|
|
1712
1729
|
}
|
|
1713
1730
|
callHook(l, ...t) {
|
|
1714
|
-
return t.unshift(l), this.callHookWith(
|
|
1731
|
+
return t.unshift(l), this.callHookWith(_n, l, ...t);
|
|
1715
1732
|
}
|
|
1716
1733
|
callHookParallel(l, ...t) {
|
|
1717
|
-
return t.unshift(l), this.callHookWith(
|
|
1734
|
+
return t.unshift(l), this.callHookWith(Vn, l, ...t);
|
|
1718
1735
|
}
|
|
1719
1736
|
callHookWith(l, t, ...o) {
|
|
1720
1737
|
const i = this._before || this._after ? { name: t, args: o, context: {} } : void 0;
|
|
@@ -1744,20 +1761,20 @@ class bn {
|
|
|
1744
1761
|
};
|
|
1745
1762
|
}
|
|
1746
1763
|
}
|
|
1747
|
-
function
|
|
1748
|
-
return new
|
|
1764
|
+
function wn() {
|
|
1765
|
+
return new $n();
|
|
1749
1766
|
}
|
|
1750
|
-
function
|
|
1767
|
+
function Tn(n) {
|
|
1751
1768
|
return Array.isArray(n) ? n : [n];
|
|
1752
1769
|
}
|
|
1753
|
-
const
|
|
1770
|
+
const Cn = ["title", "titleTemplate", "script", "style", "noscript"], He = [
|
|
1754
1771
|
"base",
|
|
1755
1772
|
"meta",
|
|
1756
1773
|
"link",
|
|
1757
1774
|
"style",
|
|
1758
1775
|
"script",
|
|
1759
1776
|
"noscript"
|
|
1760
|
-
],
|
|
1777
|
+
], Pn = [
|
|
1761
1778
|
"title",
|
|
1762
1779
|
"titleTemplate",
|
|
1763
1780
|
"templateParams",
|
|
@@ -1769,7 +1786,7 @@ const Vn = ["title", "titleTemplate", "script", "style", "noscript"], He = [
|
|
|
1769
1786
|
"style",
|
|
1770
1787
|
"script",
|
|
1771
1788
|
"noscript"
|
|
1772
|
-
],
|
|
1789
|
+
], An = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], Bt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Dn = typeof window < "u";
|
|
1773
1790
|
function rt(n) {
|
|
1774
1791
|
let l = 9;
|
|
1775
1792
|
for (let t = 0; t < n.length; )
|
|
@@ -1781,7 +1798,7 @@ function _t(n) {
|
|
|
1781
1798
|
}
|
|
1782
1799
|
function Nt(n, l) {
|
|
1783
1800
|
const { props: t, tag: o } = n;
|
|
1784
|
-
if (
|
|
1801
|
+
if (An.includes(o))
|
|
1785
1802
|
return o;
|
|
1786
1803
|
if (o === "link" && t.rel === "canonical")
|
|
1787
1804
|
return "canonical";
|
|
@@ -1799,7 +1816,7 @@ function Nt(n, l) {
|
|
|
1799
1816
|
function Vt(n, l) {
|
|
1800
1817
|
return n == null ? l || null : typeof n == "function" ? n(l) : n;
|
|
1801
1818
|
}
|
|
1802
|
-
async function
|
|
1819
|
+
async function Sn(n, l, t) {
|
|
1803
1820
|
const o = {
|
|
1804
1821
|
tag: n,
|
|
1805
1822
|
props: await Mt(
|
|
@@ -1811,17 +1828,17 @@ async function Cn(n, l, t) {
|
|
|
1811
1828
|
};
|
|
1812
1829
|
return Bt.forEach((i) => {
|
|
1813
1830
|
const s = typeof o.props[i] < "u" ? o.props[i] : t[i];
|
|
1814
|
-
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]);
|
|
1815
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;
|
|
1816
1833
|
}
|
|
1817
|
-
function
|
|
1834
|
+
function Hn(n, l) {
|
|
1818
1835
|
const t = n === "class" ? " " : ";";
|
|
1819
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);
|
|
1820
1837
|
}
|
|
1821
1838
|
async function Mt(n, l) {
|
|
1822
1839
|
for (const t of Object.keys(n)) {
|
|
1823
1840
|
if (["class", "style"].includes(t)) {
|
|
1824
|
-
n[t] =
|
|
1841
|
+
n[t] = Hn(t, n[t]);
|
|
1825
1842
|
continue;
|
|
1826
1843
|
}
|
|
1827
1844
|
if (n[t] instanceof Promise && (n[t] = await n[t]), !l && !Bt.includes(t)) {
|
|
@@ -1831,36 +1848,36 @@ async function Mt(n, l) {
|
|
|
1831
1848
|
}
|
|
1832
1849
|
return n;
|
|
1833
1850
|
}
|
|
1834
|
-
const
|
|
1835
|
-
async function
|
|
1851
|
+
const In = 10;
|
|
1852
|
+
async function En(n) {
|
|
1836
1853
|
const l = [];
|
|
1837
|
-
return Object.entries(n.resolvedInput).filter(([t, o]) => typeof o < "u" &&
|
|
1838
|
-
const i =
|
|
1839
|
-
l.push(...i.map((s) =>
|
|
1840
|
-
}), (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));
|
|
1841
1858
|
}
|
|
1842
1859
|
const $t = {
|
|
1843
1860
|
// tags
|
|
1844
1861
|
base: -10,
|
|
1845
1862
|
title: 10
|
|
1846
|
-
},
|
|
1863
|
+
}, wt = {
|
|
1847
1864
|
// relative scores to their default values
|
|
1848
1865
|
critical: -80,
|
|
1849
1866
|
high: -10,
|
|
1850
1867
|
low: 20
|
|
1851
1868
|
};
|
|
1852
|
-
function
|
|
1869
|
+
function Ne(n) {
|
|
1853
1870
|
let l = 100;
|
|
1854
1871
|
const t = n.tagPriority;
|
|
1855
|
-
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);
|
|
1856
1873
|
}
|
|
1857
|
-
const
|
|
1874
|
+
const Bn = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], Tt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], ue = "%separator";
|
|
1858
1875
|
function Ie(n, l, t) {
|
|
1859
1876
|
if (typeof n != "string" || !n.includes("%"))
|
|
1860
1877
|
return n;
|
|
1861
1878
|
function o(p) {
|
|
1862
1879
|
let m;
|
|
1863
|
-
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;
|
|
1864
1881
|
}
|
|
1865
1882
|
let i = n;
|
|
1866
1883
|
try {
|
|
@@ -1869,19 +1886,19 @@ function Ie(n, l, t) {
|
|
|
1869
1886
|
}
|
|
1870
1887
|
return (i.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((p) => {
|
|
1871
1888
|
const m = o(p.slice(1));
|
|
1872
|
-
typeof m == "string" && (n = n.replace(new RegExp(`\\${p}(\\W|$)`, "g"), (
|
|
1873
|
-
}), 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;
|
|
1874
1891
|
}
|
|
1875
|
-
async function
|
|
1892
|
+
async function Nn(n, l = {}) {
|
|
1876
1893
|
const t = l.document || n.resolvedOptions.document;
|
|
1877
1894
|
if (!t || !n.dirty)
|
|
1878
1895
|
return;
|
|
1879
1896
|
const o = { shouldRender: !0, tags: [] };
|
|
1880
1897
|
if (await n.hooks.callHook("dom:beforeRender", o), !o.shouldRender)
|
|
1881
1898
|
return;
|
|
1882
|
-
const i = (await n.resolveTags()).map((
|
|
1883
|
-
tag:
|
|
1884
|
-
id: He.includes(
|
|
1899
|
+
const i = (await n.resolveTags()).map((c) => ({
|
|
1900
|
+
tag: c,
|
|
1901
|
+
id: He.includes(c.tag) ? _t(c) : c.tag,
|
|
1885
1902
|
shouldRender: !0
|
|
1886
1903
|
}));
|
|
1887
1904
|
let s = n._dom;
|
|
@@ -1889,97 +1906,97 @@ async function Hn(n, l = {}) {
|
|
|
1889
1906
|
s = {
|
|
1890
1907
|
elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
|
|
1891
1908
|
};
|
|
1892
|
-
for (const
|
|
1893
|
-
const f = t[
|
|
1894
|
-
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()))) {
|
|
1895
1912
|
const C = {
|
|
1896
|
-
tag:
|
|
1913
|
+
tag: T.tagName.toLowerCase(),
|
|
1897
1914
|
props: await Mt(
|
|
1898
|
-
|
|
1915
|
+
T.getAttributeNames().reduce((N, E) => ({ ...N, [E]: T.getAttribute(E) }), {})
|
|
1899
1916
|
),
|
|
1900
|
-
innerHTML:
|
|
1917
|
+
innerHTML: T.innerHTML
|
|
1901
1918
|
};
|
|
1902
1919
|
let I = 1, M = Nt(C);
|
|
1903
|
-
for (; M &&
|
|
1920
|
+
for (; M && $.find((N) => N._d === M); )
|
|
1904
1921
|
M = `${M}:${I++}`;
|
|
1905
|
-
C._d = M || void 0,
|
|
1922
|
+
C._d = M || void 0, $.push(C), s.elMap[T.getAttribute("data-hid") || _t(C)] = T;
|
|
1906
1923
|
}
|
|
1907
1924
|
}
|
|
1908
1925
|
}
|
|
1909
1926
|
s.pendingSideEffects = { ...s.sideEffects || {} }, s.sideEffects = {};
|
|
1910
|
-
function p(
|
|
1911
|
-
const
|
|
1912
|
-
s.sideEffects[
|
|
1927
|
+
function p(c, f, $) {
|
|
1928
|
+
const T = `${c}:${f}`;
|
|
1929
|
+
s.sideEffects[T] = $, delete s.pendingSideEffects[T];
|
|
1913
1930
|
}
|
|
1914
|
-
function m({ id:
|
|
1915
|
-
const
|
|
1916
|
-
s.elMap[
|
|
1917
|
-
|
|
1918
|
-
}), p(
|
|
1919
|
-
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];
|
|
1920
1937
|
}));
|
|
1921
|
-
for (const [C, I] of Object.entries(
|
|
1922
|
-
f.getAttribute(`data-${C}`) !== "" && ((
|
|
1923
|
-
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]) => {
|
|
1924
1941
|
const M = `attr:${C}`;
|
|
1925
1942
|
if (C === "class")
|
|
1926
1943
|
for (const N of (I || "").split(" ").filter(Boolean))
|
|
1927
|
-
|
|
1944
|
+
T && p(c, `${M}:${N}`, () => f.classList.remove(N)), !f.classList.contains(N) && f.classList.add(N);
|
|
1928
1945
|
else if (C === "style")
|
|
1929
1946
|
for (const N of (I || "").split(";").filter(Boolean)) {
|
|
1930
1947
|
const [E, ...k] = N.split(":").map((D) => D.trim());
|
|
1931
|
-
p(
|
|
1948
|
+
p(c, `${M}:${E}`, () => {
|
|
1932
1949
|
f.style.removeProperty(E);
|
|
1933
1950
|
}), f.style.setProperty(E, k.join(":"));
|
|
1934
1951
|
}
|
|
1935
1952
|
else
|
|
1936
|
-
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));
|
|
1937
1954
|
});
|
|
1938
1955
|
}
|
|
1939
|
-
const
|
|
1956
|
+
const u = [], r = {
|
|
1940
1957
|
bodyClose: void 0,
|
|
1941
1958
|
bodyOpen: void 0,
|
|
1942
1959
|
head: void 0
|
|
1943
1960
|
};
|
|
1944
|
-
for (const
|
|
1945
|
-
const { tag: f, shouldRender:
|
|
1946
|
-
if (
|
|
1961
|
+
for (const c of i) {
|
|
1962
|
+
const { tag: f, shouldRender: $, id: T } = c;
|
|
1963
|
+
if ($) {
|
|
1947
1964
|
if (f.tag === "title") {
|
|
1948
1965
|
t.title = f.textContent;
|
|
1949
1966
|
continue;
|
|
1950
1967
|
}
|
|
1951
|
-
|
|
1968
|
+
c.$el = c.$el || s.elMap[T], c.$el ? m(c) : He.includes(f.tag) && u.push(c);
|
|
1952
1969
|
}
|
|
1953
1970
|
}
|
|
1954
|
-
for (const
|
|
1955
|
-
const f =
|
|
1956
|
-
|
|
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);
|
|
1957
1974
|
}
|
|
1958
|
-
for (const
|
|
1959
|
-
await n.hooks.callHook("dom:renderTag",
|
|
1960
|
-
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 });
|
|
1961
1978
|
}
|
|
1962
|
-
async function
|
|
1979
|
+
async function Mn(n, l = {}) {
|
|
1963
1980
|
const t = l.delayFn || ((o) => setTimeout(o, 10));
|
|
1964
1981
|
return n._domUpdatePromise = n._domUpdatePromise || new Promise((o) => t(async () => {
|
|
1965
|
-
await
|
|
1982
|
+
await Nn(n, l), delete n._domUpdatePromise, o();
|
|
1966
1983
|
}));
|
|
1967
1984
|
}
|
|
1968
1985
|
// @__NO_SIDE_EFFECTS__
|
|
1969
|
-
function
|
|
1986
|
+
function Rn(n) {
|
|
1970
1987
|
return (l) => {
|
|
1971
1988
|
const t = l.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
|
|
1972
1989
|
return t && l.push(JSON.parse(t)), {
|
|
1973
1990
|
mode: "client",
|
|
1974
1991
|
hooks: {
|
|
1975
1992
|
"entries:updated": function(o) {
|
|
1976
|
-
|
|
1993
|
+
Mn(o, n);
|
|
1977
1994
|
}
|
|
1978
1995
|
}
|
|
1979
1996
|
};
|
|
1980
1997
|
};
|
|
1981
1998
|
}
|
|
1982
|
-
const
|
|
1999
|
+
const Ln = ["templateParams", "htmlAttrs", "bodyAttrs"], Un = {
|
|
1983
2000
|
hooks: {
|
|
1984
2001
|
"tag:normalise": function({ tag: n }) {
|
|
1985
2002
|
["hid", "vmid", "key"].forEach((o) => {
|
|
@@ -1994,19 +2011,19 @@ const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
|
|
|
1994
2011
|
const i = (o.key ? `${o.tag}:${o.key}` : o._d) || o._p, s = l[i];
|
|
1995
2012
|
if (s) {
|
|
1996
2013
|
let m = o?.tagDuplicateStrategy;
|
|
1997
|
-
if (!m &&
|
|
1998
|
-
const
|
|
2014
|
+
if (!m && Ln.includes(o.tag) && (m = "merge"), m === "merge") {
|
|
2015
|
+
const u = s.props;
|
|
1999
2016
|
["class", "style"].forEach((r) => {
|
|
2000
|
-
|
|
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]);
|
|
2001
2018
|
}), l[i].props = {
|
|
2002
|
-
...
|
|
2019
|
+
...u,
|
|
2003
2020
|
...o.props
|
|
2004
2021
|
};
|
|
2005
2022
|
return;
|
|
2006
2023
|
} else if (o._e === s._e) {
|
|
2007
2024
|
s._duped = s._duped || [], o._d = `${s._d}:${s._duped.length + 1}`, s._duped.push(o);
|
|
2008
2025
|
return;
|
|
2009
|
-
} else if (
|
|
2026
|
+
} else if (Ne(o) > Ne(s))
|
|
2010
2027
|
return;
|
|
2011
2028
|
}
|
|
2012
2029
|
const p = Object.keys(o.props).length + (o.innerHTML ? 1 : 0) + (o.textContent ? 1 : 0);
|
|
@@ -2023,7 +2040,7 @@ const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
|
|
|
2023
2040
|
}), n.tags = t, n.tags = n.tags.filter((o) => !(o.tag === "meta" && (o.props.name || o.props.property) && !o.props.content));
|
|
2024
2041
|
}
|
|
2025
2042
|
}
|
|
2026
|
-
},
|
|
2043
|
+
}, Fn = {
|
|
2027
2044
|
mode: "server",
|
|
2028
2045
|
hooks: {
|
|
2029
2046
|
"tags:resolve": function(n) {
|
|
@@ -2037,60 +2054,60 @@ const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
|
|
|
2037
2054
|
});
|
|
2038
2055
|
}
|
|
2039
2056
|
}
|
|
2040
|
-
},
|
|
2057
|
+
}, On = ["script", "link", "bodyAttrs"], jn = (n) => ({
|
|
2041
2058
|
hooks: {
|
|
2042
2059
|
"tags:resolve": function(l) {
|
|
2043
|
-
for (const t of l.tags.filter((o) =>
|
|
2060
|
+
for (const t of l.tags.filter((o) => On.includes(o.tag)))
|
|
2044
2061
|
Object.entries(t.props).forEach(([o, i]) => {
|
|
2045
|
-
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);
|
|
2046
2063
|
}), n.ssr && t._eventHandlers && (t.props.src || t.props.href) && (t.key = t.key || rt(t.props.src || t.props.href));
|
|
2047
2064
|
},
|
|
2048
2065
|
"dom:renderTag": function({ $el: l, tag: t }) {
|
|
2049
|
-
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))) {
|
|
2050
2067
|
const i = o.replace("fired", "");
|
|
2051
2068
|
t._eventHandlers?.[i]?.call(l, new Event(i.replace("on", "")));
|
|
2052
2069
|
}
|
|
2053
2070
|
}
|
|
2054
2071
|
}
|
|
2055
|
-
}),
|
|
2072
|
+
}), qn = ["link", "style", "script", "noscript"], Gn = {
|
|
2056
2073
|
hooks: {
|
|
2057
2074
|
"tag:normalise": ({ tag: n }) => {
|
|
2058
|
-
n.key &&
|
|
2075
|
+
n.key && qn.includes(n.tag) && (n.props["data-hid"] = n._h = rt(n.key));
|
|
2059
2076
|
}
|
|
2060
2077
|
}
|
|
2061
|
-
},
|
|
2078
|
+
}, Wn = {
|
|
2062
2079
|
hooks: {
|
|
2063
2080
|
"tags:resolve": (n) => {
|
|
2064
2081
|
const l = (t) => n.tags.find((o) => o._d === t)?._p;
|
|
2065
|
-
for (const { prefix: t, offset: o } of
|
|
2082
|
+
for (const { prefix: t, offset: o } of Bn)
|
|
2066
2083
|
for (const i of n.tags.filter((s) => typeof s.tagPriority == "string" && s.tagPriority.startsWith(t))) {
|
|
2067
2084
|
const s = l(
|
|
2068
2085
|
i.tagPriority.replace(t, "")
|
|
2069
2086
|
);
|
|
2070
2087
|
typeof s < "u" && (i._p = s + o);
|
|
2071
2088
|
}
|
|
2072
|
-
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));
|
|
2073
2090
|
}
|
|
2074
2091
|
}
|
|
2075
|
-
},
|
|
2092
|
+
}, xn = {
|
|
2076
2093
|
meta: "content",
|
|
2077
2094
|
link: "href",
|
|
2078
2095
|
htmlAttrs: "lang"
|
|
2079
|
-
},
|
|
2096
|
+
}, Kn = (n) => ({
|
|
2080
2097
|
hooks: {
|
|
2081
2098
|
"tags:resolve": (l) => {
|
|
2082
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 || "|";
|
|
2083
2100
|
delete s.separator, s.pageTitle = Ie(s.pageTitle || o || "", s, p);
|
|
2084
|
-
for (const m of t.filter((
|
|
2085
|
-
const
|
|
2086
|
-
|
|
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) => {
|
|
2087
2104
|
typeof m[r] == "string" && (m[r] = Ie(m[r], s, p));
|
|
2088
2105
|
});
|
|
2089
2106
|
}
|
|
2090
2107
|
n._templateParams = s, n._separator = p, l.tags = t.filter((m) => m.tag !== "templateParams");
|
|
2091
2108
|
}
|
|
2092
2109
|
}
|
|
2093
|
-
}),
|
|
2110
|
+
}), Jn = {
|
|
2094
2111
|
hooks: {
|
|
2095
2112
|
"tags:resolve": (n) => {
|
|
2096
2113
|
const { tags: l } = n;
|
|
@@ -2111,7 +2128,7 @@ const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
|
|
|
2111
2128
|
t !== -1 && delete l[t], n.tags = l.filter(Boolean);
|
|
2112
2129
|
}
|
|
2113
2130
|
}
|
|
2114
|
-
},
|
|
2131
|
+
}, zn = {
|
|
2115
2132
|
hooks: {
|
|
2116
2133
|
"tags:afterResolve": function(n) {
|
|
2117
2134
|
for (const l of n.tags)
|
|
@@ -2120,16 +2137,16 @@ const Bn = ["templateParams", "htmlAttrs", "bodyAttrs"], Nn = {
|
|
|
2120
2137
|
}
|
|
2121
2138
|
};
|
|
2122
2139
|
// @__NO_SIDE_EFFECTS__
|
|
2123
|
-
function
|
|
2124
|
-
const l =
|
|
2125
|
-
return l.use(/* @__PURE__ */
|
|
2140
|
+
function Yn(n = {}) {
|
|
2141
|
+
const l = Qn(n);
|
|
2142
|
+
return l.use(/* @__PURE__ */ Rn()), l;
|
|
2126
2143
|
}
|
|
2127
2144
|
function Ct(n, l) {
|
|
2128
2145
|
return !n || n === "server" && l || n === "client" && !l;
|
|
2129
2146
|
}
|
|
2130
|
-
function
|
|
2131
|
-
const l =
|
|
2132
|
-
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);
|
|
2133
2150
|
const t = !n.document, o = () => {
|
|
2134
2151
|
m.dirty = !0, l.callHook("entries:updated", m);
|
|
2135
2152
|
};
|
|
@@ -2142,88 +2159,88 @@ function Kn(n = {}) {
|
|
|
2142
2159
|
headEntries() {
|
|
2143
2160
|
return s;
|
|
2144
2161
|
},
|
|
2145
|
-
use(
|
|
2146
|
-
const r = typeof
|
|
2147
|
-
(!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 || {}));
|
|
2148
2165
|
},
|
|
2149
|
-
push(
|
|
2166
|
+
push(u, r) {
|
|
2150
2167
|
delete r?.head;
|
|
2151
|
-
const
|
|
2168
|
+
const c = {
|
|
2152
2169
|
_i: i++,
|
|
2153
|
-
input:
|
|
2170
|
+
input: u,
|
|
2154
2171
|
...r
|
|
2155
2172
|
};
|
|
2156
|
-
return Ct(
|
|
2173
|
+
return Ct(c.mode, t) && (s.push(c), o()), {
|
|
2157
2174
|
dispose() {
|
|
2158
|
-
s = s.filter((f) => f._i !==
|
|
2175
|
+
s = s.filter((f) => f._i !== c._i), l.callHook("entries:updated", m), o();
|
|
2159
2176
|
},
|
|
2160
2177
|
// a patch is the same as creating a new entry, just a nice DX
|
|
2161
2178
|
patch(f) {
|
|
2162
|
-
s = s.map((
|
|
2179
|
+
s = s.map(($) => ($._i === c._i && ($.input = c.input = f), $)), o();
|
|
2163
2180
|
}
|
|
2164
2181
|
};
|
|
2165
2182
|
},
|
|
2166
2183
|
async resolveTags() {
|
|
2167
|
-
const
|
|
2168
|
-
await l.callHook("entries:resolve",
|
|
2169
|
-
for (const r of
|
|
2170
|
-
const
|
|
2171
|
-
if (r.resolvedInput = await (r.transform ? r.transform(
|
|
2172
|
-
for (const f of await
|
|
2173
|
-
const
|
|
2174
|
-
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);
|
|
2175
2192
|
}
|
|
2176
2193
|
}
|
|
2177
|
-
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;
|
|
2178
2195
|
},
|
|
2179
2196
|
ssr: t
|
|
2180
2197
|
};
|
|
2181
2198
|
return [
|
|
2182
|
-
|
|
2183
|
-
Mn,
|
|
2184
|
-
Ln,
|
|
2199
|
+
Un,
|
|
2185
2200
|
Fn,
|
|
2186
|
-
|
|
2187
|
-
qn,
|
|
2201
|
+
jn,
|
|
2188
2202
|
Gn,
|
|
2189
2203
|
Wn,
|
|
2204
|
+
Kn,
|
|
2205
|
+
Jn,
|
|
2206
|
+
zn,
|
|
2190
2207
|
...n?.plugins || []
|
|
2191
|
-
].forEach((
|
|
2208
|
+
].forEach((u) => m.use(u)), m.hooks.callHook("init", m), m;
|
|
2192
2209
|
}
|
|
2193
|
-
const
|
|
2194
|
-
function
|
|
2210
|
+
const Xn = mo.startsWith("3");
|
|
2211
|
+
function Zn(n) {
|
|
2195
2212
|
return typeof n == "function" ? n() : e(n);
|
|
2196
2213
|
}
|
|
2197
2214
|
function nt(n, l = "") {
|
|
2198
2215
|
if (n instanceof Promise)
|
|
2199
2216
|
return n;
|
|
2200
|
-
const t =
|
|
2217
|
+
const t = Zn(n);
|
|
2201
2218
|
return !n || !t ? t : Array.isArray(t) ? t.map((o) => nt(o, l)) : typeof t == "object" ? Object.fromEntries(
|
|
2202
2219
|
Object.entries(t).map(([o, i]) => o === "titleTemplate" || o.startsWith("on") ? [o, e(i)] : [o, nt(i, o)])
|
|
2203
2220
|
) : t;
|
|
2204
2221
|
}
|
|
2205
|
-
const
|
|
2222
|
+
const ea = {
|
|
2206
2223
|
hooks: {
|
|
2207
2224
|
"entries:resolve": function(n) {
|
|
2208
2225
|
for (const l of n.entries)
|
|
2209
2226
|
l.resolvedInput = nt(l.input);
|
|
2210
2227
|
}
|
|
2211
2228
|
}
|
|
2212
|
-
},
|
|
2213
|
-
function
|
|
2229
|
+
}, ta = "usehead";
|
|
2230
|
+
function oa(n) {
|
|
2214
2231
|
return {
|
|
2215
2232
|
install(t) {
|
|
2216
|
-
|
|
2233
|
+
Xn && (t.config.globalProperties.$unhead = n, t.config.globalProperties.$head = n, t.provide(ta, n));
|
|
2217
2234
|
}
|
|
2218
2235
|
}.install;
|
|
2219
2236
|
}
|
|
2220
|
-
function
|
|
2221
|
-
n.domDelayFn = n.domDelayFn || ((t) =>
|
|
2222
|
-
const l = /* @__PURE__ */
|
|
2223
|
-
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;
|
|
2224
2241
|
}
|
|
2225
|
-
const
|
|
2226
|
-
class
|
|
2242
|
+
const na = vo(), aa = la(), ia = bo();
|
|
2243
|
+
class sa extends HTMLElement {
|
|
2227
2244
|
vueApp;
|
|
2228
2245
|
constructor() {
|
|
2229
2246
|
super();
|
|
@@ -2232,14 +2249,14 @@ class la extends HTMLElement {
|
|
|
2232
2249
|
this.vueApp.unmount();
|
|
2233
2250
|
}
|
|
2234
2251
|
connectedCallback() {
|
|
2235
|
-
const l =
|
|
2236
|
-
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 });
|
|
2237
2254
|
const t = document.createElement("div");
|
|
2238
2255
|
this.vueApp.mount(t), this.appendChild(t.children[0]);
|
|
2239
2256
|
}
|
|
2240
2257
|
}
|
|
2241
|
-
window.customElements.define("konnectio-hotel",
|
|
2258
|
+
window.customElements.define("konnectio-hotel", sa);
|
|
2242
2259
|
export {
|
|
2243
|
-
|
|
2260
|
+
sa as default
|
|
2244
2261
|
};
|
|
2245
2262
|
//# sourceMappingURL=hotel.js.map
|