@konnectio/core 4.0.56-rc3 → 4.0.56-rc31
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-9I-yAskc.js → ActionField-qP-3ktN4.js} +25 -26
- package/dist/ActionField-qP-3ktN4.js.br +0 -0
- package/dist/AvailabilitySkeleton-uaCnfwHM.js +7665 -0
- package/dist/AvailabilitySkeleton-uaCnfwHM.js.br +0 -0
- package/dist/CheckoutWindow-RWkSWvbk.js +659 -0
- package/dist/CheckoutWindow-RWkSWvbk.js.br +0 -0
- package/dist/ErrorMessage-z0JJ8Q3W.js +36 -0
- package/dist/ErrorMessage-z0JJ8Q3W.js.br +0 -0
- package/dist/EventAvailabilityForm-LIgUj1t3.js +325 -0
- package/dist/EventAvailabilityForm-LIgUj1t3.js.br +0 -0
- package/dist/Field-C9r1d8IB.js +30985 -0
- package/dist/Field-C9r1d8IB.js.br +0 -0
- package/dist/HotelAvailabilityForm-AQ4VA15t.js +212 -0
- package/dist/HotelAvailabilityForm-AQ4VA15t.js.br +0 -0
- package/dist/TermsOfService-oZz-B-KI.js +26 -0
- package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
- package/dist/availability.js +85 -147
- package/dist/availability.js.br +0 -0
- package/dist/event.js +540 -453
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +90 -56
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +368 -336
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +1259 -2264
- package/dist/hotel.js.br +0 -0
- package/dist/masonry.plugin-fa0tia29.js +12714 -0
- package/dist/masonry.plugin-fa0tia29.js.br +0 -0
- package/dist/polyfill.js +3358 -3315
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +32 -28
- package/dist/ActionField-9I-yAskc.js.br +0 -0
- package/dist/AvailabilitySkeleton-hoauL0os.js +0 -242
- package/dist/AvailabilitySkeleton-hoauL0os.js.br +0 -0
- package/dist/CheckoutWindow-31th413C.js +0 -206
- package/dist/CheckoutWindow-31th413C.js.br +0 -0
- package/dist/Container-gHSYMY7q.js +0 -69
- package/dist/Container-gHSYMY7q.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js +0 -8567
- package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js.br +0 -0
- package/dist/Field-QHvFgmEq.js +0 -43
- package/dist/Field-QHvFgmEq.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js +0 -21472
- package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js.br +0 -0
- package/dist/ThankYou-SQ_bbgj4.js +0 -13316
- package/dist/ThankYou-SQ_bbgj4.js.br +0 -0
- package/dist/_-FedWhJCw.js +0 -20
- package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
- package/dist/assets/typescript/mixins.d.ts +0 -34
- package/dist/availability.d.ts +0 -3
- package/dist/components/Alert.vue.d.ts +0 -28
- package/dist/components/Alert.vue.d.ts.map +0 -1
- package/dist/components/Clickable.vue.d.ts +0 -60
- package/dist/components/Clickable.vue.d.ts.map +0 -1
- package/dist/components/Container.vue.d.ts +0 -23
- package/dist/components/Container.vue.d.ts.map +0 -1
- package/dist/components/ErrorMessage.vue.d.ts +0 -15
- package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
- package/dist/components/Gallery.vue.d.ts +0 -31
- package/dist/components/Gallery.vue.d.ts.map +0 -1
- package/dist/components/GoogleNotice.vue.d.ts +0 -2
- package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
- package/dist/components/Icon.vue.d.ts +0 -38
- package/dist/components/Icon.vue.d.ts.map +0 -1
- package/dist/components/Loading.vue.d.ts +0 -29
- package/dist/components/Loading.vue.d.ts.map +0 -1
- package/dist/components/Spinner.vue.d.ts +0 -2
- package/dist/components/Spinner.vue.d.ts.map +0 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
- package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
- package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
- package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/_.vue.d.ts +0 -42
- package/dist/components/forms/_.vue.d.ts.map +0 -1
- package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
- package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
- package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
- package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
- package/dist/components/inputs/DateField.vue.d.ts +0 -104
- package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
- package/dist/components/inputs/InputField.vue.d.ts +0 -62
- package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
- package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
- package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
- package/dist/components/inputs/NumberField.vue.d.ts +0 -87
- package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
- package/dist/components/inputs/SelectField.vue.d.ts +0 -90
- package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TextField.vue.d.ts +0 -68
- package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TimeField.vue.d.ts +0 -44
- package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
- package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
- package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
- package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
- package/dist/components/listings/Base.vue.d.ts +0 -56
- package/dist/components/listings/Base.vue.d.ts.map +0 -1
- package/dist/components/listings/Event.vue.d.ts +0 -47
- package/dist/components/listings/Event.vue.d.ts.map +0 -1
- package/dist/components/listings/Hotel.vue.d.ts +0 -16
- package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
- package/dist/components/listings/Template.vue.d.ts +0 -21
- package/dist/components/listings/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Base.vue.d.ts +0 -61
- package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
- package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
- package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Template.vue.d.ts +0 -18
- package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
- package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Field.vue.d.ts +0 -36
- package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Listing.vue.d.ts +0 -2
- package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
- package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
- package/dist/components/skeletons/_.vue.d.ts +0 -36
- package/dist/components/skeletons/_.vue.d.ts.map +0 -1
- package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
- package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
- package/dist/components/views/TermsOfService.vue.d.ts +0 -2
- package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/views/ThankYou.vue.d.ts +0 -15
- package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
- package/dist/entries/availability.d.ts +0 -5
- package/dist/entries/event.d.ts +0 -2
- package/dist/entries/gift-card-validation.d.ts +0 -5
- package/dist/entries/gift-card.d.ts +0 -5
- package/dist/entries/hotel.d.ts +0 -5
- package/dist/entries/navigation.d.ts +0 -1
- package/dist/entries/polyfill.d.ts +0 -0
- package/dist/event-4kCWoqDL.js +0 -359
- package/dist/event-4kCWoqDL.js.br +0 -0
- package/dist/event.d.ts +0 -3
- package/dist/gift-card-validation.d.ts +0 -3
- package/dist/gift-card.d.ts +0 -3
- package/dist/hotel.d.ts +0 -3
- package/dist/layouts/Availability.vue.d.ts +0 -25
- package/dist/layouts/Event.vue.d.ts +0 -18
- package/dist/layouts/GiftCard.vue.d.ts +0 -32
- package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
- package/dist/layouts/Hotel.vue.d.ts +0 -36
- package/dist/layouts/_.vue.d.ts +0 -39
- package/dist/navigation.d.ts +0 -1
- package/dist/plugins/i18n.d.ts +0 -5
- package/dist/polyfill.d.ts +0 -1
- package/dist/store/alert.d.ts +0 -28
- package/dist/store/applyGiftCard.d.ts +0 -28
- package/dist/store/availability.d.ts +0 -40
- package/dist/store/event.d.ts +0 -683
- package/dist/store/giftCard.d.ts +0 -83
- package/dist/store/payment.d.ts +0 -139
- package/dist/store/recaptcha.d.ts +0 -28
- package/dist/store/tracking.d.ts +0 -57
- package/dist/store/utilities.d.ts +0 -350
- package/dist/types/index.d.ts +0 -976
package/dist/hotel.js
CHANGED
|
@@ -1,181 +1,215 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
for (var t of Ze(e))
|
|
10
|
-
yo.call(e, t) && et(o, t, e[t]);
|
|
11
|
-
return o;
|
|
12
|
-
}, ve = (o, e) => mo(o, go(e));
|
|
13
|
-
var Q = (o, e, t) => new Promise((n, l) => {
|
|
14
|
-
var u = (d) => {
|
|
15
|
-
try {
|
|
16
|
-
h(t.next(d));
|
|
17
|
-
} catch (c) {
|
|
18
|
-
l(c);
|
|
19
|
-
}
|
|
20
|
-
}, p = (d) => {
|
|
21
|
-
try {
|
|
22
|
-
h(t.throw(d));
|
|
23
|
-
} catch (c) {
|
|
24
|
-
l(c);
|
|
25
|
-
}
|
|
26
|
-
}, h = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(u, p);
|
|
27
|
-
h((t = t.apply(o, e)).next());
|
|
28
|
-
});
|
|
29
|
-
import { defineComponent as N, useSlots as bo, openBlock as E, createBlock as A, unref as s, createSlots as ko, withCtx as H, renderSlot as xe, createElementVNode as v, toDisplayString as L, createElementBlock as $, Fragment as M, renderList as z, createCommentVNode as x, createTextVNode as qe, createVNode as I, computed as q, pushScopeId as yt, popScopeId as bt, ref as fe, onMounted as je, watch as Ee, normalizeClass as Te, Suspense as _o, withModifiers as ot, isRef as B, nextTick as kt, version as Eo, createApp as To } from "vue";
|
|
30
|
-
import { l as re, s as K, c as ge, F as _t, G as ae, p as ne, w as nt, K as Io, M as pe, n as J, o as ie, j as Ce, _ as X, N as Et, k as Tt, C as ce, B as Co, Q as $o, I as It, r as it, T as oe, R as So, m as Lo, z as Vo, q as Po, t as xo, D as wo } from "./SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js";
|
|
31
|
-
import { R as Ho, B as Ye, a as Oo, S as Ro, M as Do, T as Ao, x as Mo } from "./ThankYou-SQ_bbgj4.js";
|
|
32
|
-
import { C as zo } from "./Container-gHSYMY7q.js";
|
|
33
|
-
import { A as Wo, H as Bo } from "./AvailabilitySkeleton-hoauL0os.js";
|
|
34
|
-
import { _ as Fo } from "./DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js";
|
|
35
|
-
import { C as Ue, P as qo, a as Uo } from "./CheckoutWindow-31th413C.js";
|
|
36
|
-
import { E as Y } from "./_-FedWhJCw.js";
|
|
37
|
-
import { c as Ct, g as $t } from "./_commonjsHelpers-FF1eOqK0.js";
|
|
38
|
-
import "./ActionField-9I-yAskc.js";
|
|
39
|
-
import "./Field-QHvFgmEq.js";
|
|
40
|
-
const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
1
|
+
import { d as q, u as x, aa as Rt, s as Z, c as he, b as re, r as Y, f as m, k as H, a5 as Ut, j as l, x as _, Z as be, h as r, A as y, a4 as ae, aj as Ke, ak as ze, m as v, a2 as G, a6 as Oe, av as Ft, g as f, ab as M, F as I, l as V, ac as Ne, aw as ue, a3 as ie, $ as R, ai as Ot, q as $e, v as ee, e as U, _ as He, G as tt, H as ot, ax as lt, o as Se, w as Te, n as nt, C as se, y as at, a9 as it, a as st, p as Ce, I as rt, z as Je, T as ne, ay as Nt, E as jt, S as Gt, ad as qt, D as Wt, ar as Kt, az as zt, J as Jt, K as Zt, L as Yt, af as Qt, M as Xt } from "./Field-C9r1d8IB.js";
|
|
2
|
+
import { R as xt, B as De, L as eo, S as to, M as oo, a as Re, T as lo, V as no, G as ao } from "./masonry.plugin-fa0tia29.js";
|
|
3
|
+
import { H as io } from "./HotelAvailabilityForm-AQ4VA15t.js";
|
|
4
|
+
import { S as so } from "./TermsOfService-oZz-B-KI.js";
|
|
5
|
+
import { C as we, B as ro, P as uo, a as co } from "./CheckoutWindow-RWkSWvbk.js";
|
|
6
|
+
import { _ as ut, A as po } from "./AvailabilitySkeleton-uaCnfwHM.js";
|
|
7
|
+
const mo = { class: "konnectio-hotel-reservation-warning" }, fo = { class: "konnectio-hotel-reservation-warning" };
|
|
8
|
+
const ho = { key: 0 }, vo = { key: 1 }, go = { class: "konnectio-reservation-actions" }, yo = /* @__PURE__ */ q({
|
|
41
9
|
__name: "HotelReservationForm",
|
|
42
10
|
props: {
|
|
43
11
|
showGiftCard: { type: Boolean, default: !1 },
|
|
44
12
|
showTermsNotice: { type: Boolean, default: !1 }
|
|
45
13
|
},
|
|
46
14
|
setup(o) {
|
|
47
|
-
const { t: e } =
|
|
15
|
+
const { t: e } = x(), t = Rt(), {
|
|
48
16
|
hideArrivalDepartureInputs: n,
|
|
49
|
-
disableArrivalUserSelection:
|
|
50
|
-
disableDepartureUserSelection:
|
|
51
|
-
arrivalDefault:
|
|
52
|
-
departureDefault:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
17
|
+
disableArrivalUserSelection: a,
|
|
18
|
+
disableDepartureUserSelection: i,
|
|
19
|
+
arrivalDefault: c,
|
|
20
|
+
departureDefault: p,
|
|
21
|
+
disableNewsletterSignup: d,
|
|
22
|
+
currency: s
|
|
23
|
+
} = Z(he()), {
|
|
24
|
+
arrivalTime: u,
|
|
25
|
+
departureTime: h,
|
|
26
|
+
roomDisplay: b,
|
|
27
|
+
templateID: D,
|
|
28
|
+
totalPrice: C,
|
|
29
|
+
areListingsLoading: O,
|
|
30
|
+
getSelectedPackageRoom: N,
|
|
31
|
+
selectedPackage: k,
|
|
32
|
+
discountVouchers: w,
|
|
33
|
+
currentArrivalDate: A,
|
|
34
|
+
currentDepartureDate: F,
|
|
35
|
+
datesMismatch: E,
|
|
36
|
+
newsMails: W,
|
|
37
|
+
termsOfService: j,
|
|
38
|
+
acceptTerms: S
|
|
39
|
+
} = Z(re()), { removeRoom: Q } = re(), de = Y(!1);
|
|
40
|
+
function ve(K) {
|
|
41
|
+
return K.reduce((L, { totalPrice: ce }) => L + ce, 0);
|
|
71
42
|
}
|
|
72
|
-
return (
|
|
73
|
-
"total-price":
|
|
74
|
-
"show-gift-card":
|
|
75
|
-
"show-terms-notice":
|
|
76
|
-
"is-sidebar-loading":
|
|
77
|
-
notice:
|
|
78
|
-
},
|
|
79
|
-
form:
|
|
80
|
-
|
|
43
|
+
return (K, z) => (m(), H(xt, {
|
|
44
|
+
"total-price": l(C),
|
|
45
|
+
"show-gift-card": K.showGiftCard,
|
|
46
|
+
"show-terms-notice": K.showTermsNotice,
|
|
47
|
+
"is-sidebar-loading": l(O),
|
|
48
|
+
notice: l(e)("hotel.reservationNotice")
|
|
49
|
+
}, Ut({
|
|
50
|
+
form: _(() => [
|
|
51
|
+
be(K.$slots, "form", {}, void 0, !0)
|
|
81
52
|
]),
|
|
82
|
-
"reservation-summary":
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
53
|
+
"reservation-summary": _(() => [
|
|
54
|
+
r("li", null, [
|
|
55
|
+
r("span", null, y(l(e)("booking.reservation.arrival")), 1),
|
|
56
|
+
r("b", null, [
|
|
57
|
+
r("span", null, y(l(n) ? l(ae)(l(A)) : `${l(ae)(l(A))}, ${l(a) ? l(c) : l(u)}`), 1),
|
|
58
|
+
Ke(r("span", mo, [
|
|
59
|
+
v(G, {
|
|
60
|
+
icon: "exclamation-triangle",
|
|
61
|
+
type: "fas"
|
|
62
|
+
})
|
|
63
|
+
], 512), [
|
|
64
|
+
[ze, l(E)]
|
|
65
|
+
])
|
|
66
|
+
])
|
|
86
67
|
]),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
68
|
+
r("li", null, [
|
|
69
|
+
r("span", null, y(l(e)("booking.reservation.departure")), 1),
|
|
70
|
+
r("b", null, [
|
|
71
|
+
r("span", null, y(l(n) ? l(ae)(l(F)) : `${l(ae)(l(F))}, ${l(i) ? l(p) : l(h)}`), 1),
|
|
72
|
+
Ke(r("span", fo, [
|
|
73
|
+
v(G, {
|
|
74
|
+
icon: "exclamation-triangle",
|
|
75
|
+
type: "fas"
|
|
76
|
+
})
|
|
77
|
+
], 512), [
|
|
78
|
+
[ze, l(E)]
|
|
79
|
+
])
|
|
80
|
+
])
|
|
90
81
|
]),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
r("li", null, [
|
|
83
|
+
r("span", null, y(l(e)("booking.reservation.nights")), 1),
|
|
84
|
+
r("b", null, y(l(Oe)(l(A), l(F))) + " " + y(l(Ft)(l(Oe)(l(A), l(F)) === 1 ? l(e)("booking.reservation.night") : l(e)("booking.reservation.nights"))), 1)
|
|
94
85
|
]),
|
|
95
|
-
|
|
96
|
-
key:
|
|
86
|
+
l(w) ? (m(!0), f(I, { key: 0 }, M(l(w), (L) => (m(), f("li", {
|
|
87
|
+
key: L.id
|
|
97
88
|
}, [
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
]))), 128)) :
|
|
89
|
+
r("span", null, y(`${l(e)("general.discountCode")} (${L.value})`), 1),
|
|
90
|
+
r("b", null, y(L.key), 1)
|
|
91
|
+
]))), 128)) : V("", !0)
|
|
101
92
|
]),
|
|
102
|
-
"price-summary":
|
|
103
|
-
isNaN(
|
|
104
|
-
roomGroupID:
|
|
105
|
-
title:
|
|
106
|
-
variants:
|
|
107
|
-
}) => (
|
|
108
|
-
|
|
109
|
-
|
|
93
|
+
"price-summary": _(() => [
|
|
94
|
+
isNaN(l(D)) && l(b).length > 0 ? (m(!0), f(I, { key: 0 }, M(l(b), ({
|
|
95
|
+
roomGroupID: L,
|
|
96
|
+
title: ce,
|
|
97
|
+
variants: Ae
|
|
98
|
+
}) => (m(), f("div", { key: L }, [
|
|
99
|
+
r("h6", null, [
|
|
100
|
+
r("span", null, y(ce), 1)
|
|
110
101
|
]),
|
|
111
|
-
(
|
|
112
|
-
(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
102
|
+
(m(!0), f(I, null, M(Ae, (ge, Ie) => (m(), f("div", { key: Ie }, [
|
|
103
|
+
(m(!0), f(I, null, M(ge.rooms, (te, Ee) => (m(), f("ul", { key: Ee }, [
|
|
104
|
+
r("li", null, [
|
|
105
|
+
r("span", null, [
|
|
106
|
+
r("span", null, [
|
|
107
|
+
Ne(y(l(ue)(ge.name)) + " ( ", 1),
|
|
108
|
+
v(G, {
|
|
118
109
|
icon: "male",
|
|
119
110
|
type: "fas",
|
|
120
111
|
color: "font"
|
|
121
112
|
}),
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
113
|
+
r("span", null, y(te.adultsCount), 1),
|
|
114
|
+
te.childrenCount > 0 ? (m(), f(I, { key: 0 }, [
|
|
115
|
+
v(G, {
|
|
125
116
|
icon: "child",
|
|
126
117
|
type: "fas",
|
|
127
118
|
color: "font"
|
|
128
119
|
}),
|
|
129
|
-
|
|
130
|
-
], 64)) :
|
|
131
|
-
|
|
120
|
+
r("span", null, y(te.childrenCount), 1)
|
|
121
|
+
], 64)) : V("", !0),
|
|
122
|
+
Ne(") ")
|
|
132
123
|
])
|
|
133
124
|
]),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
125
|
+
r("b", null, [
|
|
126
|
+
r("span", null, y(l(ie)(te.totalPrice, l(s))), 1),
|
|
127
|
+
V("", !0)
|
|
137
128
|
])
|
|
138
129
|
]),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
])) :
|
|
130
|
+
ve(te.roomAddons) > 0 ? (m(), f("li", ho, [
|
|
131
|
+
r("span", null, y(l(e)("general.addons")), 1),
|
|
132
|
+
r("b", null, y(l(ie)(ve(te.roomAddons), l(s))), 1)
|
|
133
|
+
])) : V("", !0)
|
|
143
134
|
]))), 128))
|
|
144
135
|
]))), 128))
|
|
145
|
-
]))), 128)) :
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
136
|
+
]))), 128)) : V("", !0),
|
|
137
|
+
l(N) && l(k) ? (m(), f("div", vo, [
|
|
138
|
+
r("h6", null, [
|
|
139
|
+
r("span", null, y(l(ue)(l(k).name)), 1)
|
|
149
140
|
]),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
141
|
+
r("div", null, [
|
|
142
|
+
r("ul", null, [
|
|
143
|
+
r("li", null, [
|
|
144
|
+
r("span", null, [
|
|
145
|
+
r("span", null, y(l(ue)(l(N).title)), 1)
|
|
155
146
|
]),
|
|
156
|
-
|
|
157
|
-
|
|
147
|
+
r("b", null, [
|
|
148
|
+
r("span", null, y(l(ie)(l(N).extraPrice, l(s))), 1)
|
|
158
149
|
])
|
|
159
150
|
])
|
|
160
151
|
])
|
|
161
152
|
])
|
|
162
|
-
])) :
|
|
153
|
+
])) : V("", !0)
|
|
163
154
|
]),
|
|
164
|
-
|
|
165
|
-
|
|
155
|
+
actions: _(() => [
|
|
156
|
+
r("ul", go, [
|
|
157
|
+
l(d) ? V("", !0) : (m(), H(we, {
|
|
158
|
+
key: 0,
|
|
159
|
+
modelValue: l(W),
|
|
160
|
+
"onUpdate:modelValue": z[0] || (z[0] = (L) => R(W) ? W.value = L : null),
|
|
161
|
+
type: "checkbox",
|
|
162
|
+
name: "newsletter",
|
|
163
|
+
label: l(e)("booking.reservation.newsletterSignUp")
|
|
164
|
+
}, null, 8, ["modelValue", "label"])),
|
|
165
|
+
v(we, {
|
|
166
|
+
modelValue: l(S),
|
|
167
|
+
"onUpdate:modelValue": z[2] || (z[2] = (L) => R(S) ? S.value = L : null),
|
|
168
|
+
type: "checkbox",
|
|
169
|
+
name: "terms"
|
|
170
|
+
}, {
|
|
171
|
+
default: _(() => [
|
|
172
|
+
v(l(Ot), {
|
|
173
|
+
keypath: "general.termsAndConditionsCheckbox",
|
|
174
|
+
tag: "span",
|
|
175
|
+
scope: "global"
|
|
176
|
+
}, {
|
|
177
|
+
terms: _(() => [
|
|
178
|
+
r("a", {
|
|
179
|
+
class: "konnectio-accept-terms-link",
|
|
180
|
+
onClick: z[1] || (z[1] = $e((L) => de.value = !0, ["prevent"]))
|
|
181
|
+
}, [
|
|
182
|
+
r("span", null, y(l(e)("general.termsAndConditions")), 1)
|
|
183
|
+
])
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
})
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
}, 8, ["modelValue"]),
|
|
190
|
+
be(K.$slots, "actions", {}, void 0, !0),
|
|
191
|
+
v(so, {
|
|
192
|
+
modelValue: de.value,
|
|
193
|
+
"onUpdate:modelValue": z[3] || (z[3] = (L) => de.value = L),
|
|
194
|
+
description: l(j)
|
|
195
|
+
}, null, 8, ["modelValue", "description"])
|
|
196
|
+
])
|
|
197
|
+
]),
|
|
198
|
+
navigation: _(() => [
|
|
199
|
+
be(K.$slots, "navigation", {}, void 0, !0)
|
|
166
200
|
]),
|
|
167
201
|
_: 2
|
|
168
202
|
}, [
|
|
169
|
-
|
|
203
|
+
l(t).addons ? {
|
|
170
204
|
name: "addons",
|
|
171
|
-
fn:
|
|
172
|
-
|
|
205
|
+
fn: _(() => [
|
|
206
|
+
be(K.$slots, "addons", {}, void 0, !0)
|
|
173
207
|
]),
|
|
174
208
|
key: "0"
|
|
175
209
|
} : void 0
|
|
176
210
|
]), 1032, ["total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
|
|
177
211
|
}
|
|
178
|
-
}),
|
|
212
|
+
}), Ue = /* @__PURE__ */ ee(yo, [["__scopeId", "data-v-fc825e32"]]), bo = (o) => (tt("data-v-69fe83d8"), o = o(), ot(), o), ko = { class: "konnectio-room-config-option" }, _o = { key: 0 }, Vo = { class: "konnectio-selected-room-config" }, $o = { class: "konnectio-selected-room-config-people" }, To = { key: 0 }, Co = { class: "konnectio-selected-room-config-price" }, wo = /* @__PURE__ */ bo(() => /* @__PURE__ */ r("span", null, null, -1)), Po = /* @__PURE__ */ q({
|
|
179
213
|
__name: "RoomConfigField",
|
|
180
214
|
props: {
|
|
181
215
|
modelValue: {},
|
|
@@ -186,17 +220,17 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
186
220
|
},
|
|
187
221
|
emits: ["update:modelValue"],
|
|
188
222
|
setup(o, { emit: e }) {
|
|
189
|
-
const { t } =
|
|
190
|
-
function
|
|
191
|
-
|
|
223
|
+
const { t } = x(), { currency: n } = Z(he()), a = e, i = o;
|
|
224
|
+
function c(d) {
|
|
225
|
+
a("update:modelValue", d);
|
|
192
226
|
}
|
|
193
|
-
const
|
|
194
|
-
get: () =>
|
|
195
|
-
set: (d) =>
|
|
227
|
+
const p = U({
|
|
228
|
+
get: () => i.modelValue,
|
|
229
|
+
set: (d) => c(d)
|
|
196
230
|
});
|
|
197
|
-
return (d,
|
|
198
|
-
modelValue:
|
|
199
|
-
"onUpdate:modelValue":
|
|
231
|
+
return (d, s) => (m(), H(He, {
|
|
232
|
+
modelValue: p.value,
|
|
233
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => p.value = u),
|
|
200
234
|
label: d.label,
|
|
201
235
|
placeholder: "Select guest configuration",
|
|
202
236
|
labelKey: "label",
|
|
@@ -207,79 +241,76 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
207
241
|
required: d.required,
|
|
208
242
|
searchable: !1
|
|
209
243
|
}, {
|
|
210
|
-
option:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
244
|
+
option: _(({ data: u }) => [
|
|
245
|
+
r("span", ko, [
|
|
246
|
+
r("div", null, [
|
|
247
|
+
v(G, {
|
|
214
248
|
icon: "male",
|
|
215
249
|
type: "fas",
|
|
216
250
|
color: "font"
|
|
217
251
|
}),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
252
|
+
r("span", null, y(`${u.adults}`), 1),
|
|
253
|
+
u.children > 0 ? (m(), f("span", _o, [
|
|
254
|
+
v(G, {
|
|
221
255
|
icon: "child",
|
|
222
256
|
type: "fas",
|
|
223
257
|
color: "font"
|
|
224
258
|
}),
|
|
225
|
-
|
|
226
|
-
])) :
|
|
259
|
+
r("span", null, y(`${u.children}`), 1)
|
|
260
|
+
])) : V("", !0)
|
|
227
261
|
]),
|
|
228
|
-
|
|
262
|
+
r("span", null, y(`(${l(ie)(u.price, l(n))})`), 1)
|
|
229
263
|
])
|
|
230
264
|
]),
|
|
231
|
-
"selected-option":
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
265
|
+
"selected-option": _(({ data: u }) => [
|
|
266
|
+
r("div", Vo, [
|
|
267
|
+
r("div", $o, [
|
|
268
|
+
r("div", null, [
|
|
269
|
+
V("", !0),
|
|
270
|
+
r("span", null, y(`${u.adults} ${u.adults === 1 ? l(t)("general.adult") : l(t)("general.adults")}`), 1)
|
|
237
271
|
]),
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
])) :
|
|
272
|
+
u.children > 0 ? (m(), f("div", To, [
|
|
273
|
+
V("", !0),
|
|
274
|
+
r("span", null, y(`& ${u.children} ${u.children === 1 ? l(t)("general.child") : l(t)("general.children")}`), 1)
|
|
275
|
+
])) : V("", !0)
|
|
242
276
|
]),
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
277
|
+
r("div", Co, [
|
|
278
|
+
wo,
|
|
279
|
+
Ne(" " + y(`(${l(ie)(u.price, l(n))})`), 1)
|
|
246
280
|
])
|
|
247
281
|
])
|
|
248
282
|
]),
|
|
249
283
|
_: 1
|
|
250
284
|
}, 8, ["modelValue", "label", "options", "readonly", "required"]));
|
|
251
285
|
}
|
|
252
|
-
}),
|
|
286
|
+
}), Ho = /* @__PURE__ */ ee(Po, [["__scopeId", "data-v-69fe83d8"]]), So = { class: "konnectio-availability-listing-selection" }, Do = { key: 1 }, Ao = { class: "fresh-booking-listing-config-body" }, Io = { class: "fresh-booking-listing-units-body" };
|
|
287
|
+
const Eo = /* @__PURE__ */ q({
|
|
253
288
|
__name: "Hotel",
|
|
254
289
|
props: {
|
|
255
290
|
room: {},
|
|
256
291
|
layout: {}
|
|
257
292
|
},
|
|
258
293
|
setup(o) {
|
|
259
|
-
const { t: e } =
|
|
260
|
-
|
|
261
|
-
value
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}))) || [] : [];
|
|
280
|
-
}, k = q(() => t.room.rates.length > 1);
|
|
281
|
-
function _() {
|
|
282
|
-
k.value ? n.value.push({
|
|
294
|
+
const { t: e } = x(), t = o, n = Y([]);
|
|
295
|
+
function a(k) {
|
|
296
|
+
n.value[k].config.push({
|
|
297
|
+
id: NaN,
|
|
298
|
+
units: 0,
|
|
299
|
+
addons: []
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
const i = U(() => t.room.rates.map((k) => ({
|
|
303
|
+
label: k.name,
|
|
304
|
+
value: k.id
|
|
305
|
+
}))), { hideAvailableRoomAmount: c } = Z(he()), { roomSelect: p } = Z(re()), { addToCart: d, removeFromCart: s } = lt(), u = (k, w) => t.room.rates.find((A) => A.id === k)?.occupantRates.find((A) => A.index === w), h = U(() => t.room.rates.every((k) => k.isBreakfastIncluded === !0)), b = (k, w) => u(k, w) ? u(k, w)?.rooms : null, D = (k) => t.room.rates.length > 0 ? t.room.rates.find((w) => w.id === k)?.occupantRates.map((w) => ({
|
|
306
|
+
value: w.index,
|
|
307
|
+
price: w.totalPrice,
|
|
308
|
+
adults: w.adultsCount,
|
|
309
|
+
children: w.childrenCount,
|
|
310
|
+
hasBreakfast: w.hasBreakfast
|
|
311
|
+
})) || [] : [], C = U(() => t.room.rates.length > 1);
|
|
312
|
+
function O() {
|
|
313
|
+
C.value ? n.value.push({
|
|
283
314
|
id: void 0,
|
|
284
315
|
config: [{
|
|
285
316
|
id: t.room.rates[0].occupantRateIndex || NaN,
|
|
@@ -295,100 +326,100 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
295
326
|
}]
|
|
296
327
|
});
|
|
297
328
|
}
|
|
298
|
-
|
|
299
|
-
|
|
329
|
+
Se(() => {
|
|
330
|
+
O();
|
|
300
331
|
});
|
|
301
|
-
const
|
|
302
|
-
return
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
const
|
|
306
|
-
|
|
332
|
+
const N = U(() => JSON.parse(JSON.stringify(n.value)));
|
|
333
|
+
return Te(N, (k, w) => {
|
|
334
|
+
w.length > 0 && k.forEach((A, F) => {
|
|
335
|
+
A.config.forEach((E, W) => {
|
|
336
|
+
const j = E.units, S = w[F].config[W].units;
|
|
337
|
+
j !== S && (j > S ? (n.value[F].config[W].addons.push({}), d({
|
|
307
338
|
id: t.room.id,
|
|
308
339
|
name: t.room.title,
|
|
309
|
-
value: t.room.rates[
|
|
310
|
-
})) : (n.value[
|
|
340
|
+
value: t.room.rates[F].rackRate
|
|
341
|
+
})) : (n.value[F].config[W].addons.pop(), s({
|
|
311
342
|
id: t.room.id,
|
|
312
343
|
name: t.room.title,
|
|
313
|
-
value: t.room.rates[
|
|
344
|
+
value: t.room.rates[F].rackRate
|
|
314
345
|
})));
|
|
315
346
|
});
|
|
316
347
|
});
|
|
317
|
-
}, { deep: !0 }),
|
|
348
|
+
}, { deep: !0 }), Te(n, () => {
|
|
318
349
|
p.value[t.room.id] = n.value;
|
|
319
|
-
}, { deep: !0 }), (
|
|
320
|
-
"listing-id":
|
|
321
|
-
gallery:
|
|
322
|
-
name:
|
|
323
|
-
description:
|
|
324
|
-
layout:
|
|
325
|
-
facilities:
|
|
326
|
-
"prices-from":
|
|
327
|
-
"includes-breakfast":
|
|
350
|
+
}, { deep: !0 }), (k, w) => (m(), H(De, {
|
|
351
|
+
"listing-id": k.room.id,
|
|
352
|
+
gallery: k.room.images,
|
|
353
|
+
name: k.room.title,
|
|
354
|
+
description: k.room.description,
|
|
355
|
+
layout: k.layout,
|
|
356
|
+
facilities: k.room.facilities,
|
|
357
|
+
"prices-from": k.room.pricesFrom,
|
|
358
|
+
"includes-breakfast": h.value
|
|
328
359
|
}, {
|
|
329
|
-
action:
|
|
330
|
-
|
|
331
|
-
(
|
|
332
|
-
key:
|
|
360
|
+
action: _(() => [
|
|
361
|
+
r("div", So, [
|
|
362
|
+
(m(!0), f(I, null, M(n.value, (A, F) => (m(), f("div", {
|
|
363
|
+
key: A.id,
|
|
333
364
|
class: "freshbooking-hotel-room"
|
|
334
365
|
}, [
|
|
335
|
-
|
|
366
|
+
C.value ? (m(), H(He, {
|
|
336
367
|
key: 0,
|
|
337
|
-
modelValue:
|
|
338
|
-
"onUpdate:modelValue": (
|
|
339
|
-
label:
|
|
340
|
-
placeholder:
|
|
341
|
-
options:
|
|
368
|
+
modelValue: A.id,
|
|
369
|
+
"onUpdate:modelValue": (E) => A.id = E,
|
|
370
|
+
label: l(e)("hotel.roomVariant"),
|
|
371
|
+
placeholder: l(e)("hotel.chooseARoomVariant"),
|
|
372
|
+
options: i.value,
|
|
342
373
|
searchable: !1
|
|
343
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) :
|
|
344
|
-
|
|
345
|
-
(
|
|
346
|
-
id:
|
|
347
|
-
maximumOccupants:
|
|
348
|
-
}) => (
|
|
349
|
-
key:
|
|
374
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : V("", !0),
|
|
375
|
+
A.id ? (m(), f("div", Do, [
|
|
376
|
+
(m(!0), f(I, null, M(k.room.rates, ({
|
|
377
|
+
id: E,
|
|
378
|
+
maximumOccupants: W
|
|
379
|
+
}) => (m(), f("div", {
|
|
380
|
+
key: E,
|
|
350
381
|
class: "booking-availability-listing-action-selective-i"
|
|
351
382
|
}, [
|
|
352
|
-
|
|
353
|
-
key:
|
|
383
|
+
A.id === E ? (m(!0), f(I, { key: 0 }, M(A.config, (j, S) => (m(), f("div", {
|
|
384
|
+
key: S,
|
|
354
385
|
class: "booking-availability-listing-action-selective"
|
|
355
386
|
}, [
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
modelValue:
|
|
359
|
-
"onUpdate:modelValue": (
|
|
387
|
+
r("ul", Ao, [
|
|
388
|
+
v(Ho, {
|
|
389
|
+
modelValue: j.id,
|
|
390
|
+
"onUpdate:modelValue": (Q) => j.id = Q,
|
|
360
391
|
icon: "male",
|
|
361
392
|
"icon-type": "fas",
|
|
362
|
-
label:
|
|
363
|
-
description: `${
|
|
364
|
-
options:
|
|
365
|
-
readonly: !(
|
|
393
|
+
label: l(e)("general.guests"),
|
|
394
|
+
description: `${l(e)("general.maximumGuests")}: ${W}`,
|
|
395
|
+
options: D(E),
|
|
396
|
+
readonly: !(D(E).length > 1)
|
|
366
397
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
|
|
367
398
|
]),
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
modelValue:
|
|
371
|
-
"onUpdate:modelValue": (
|
|
372
|
-
description:
|
|
399
|
+
r("ul", Io, [
|
|
400
|
+
v(nt, {
|
|
401
|
+
modelValue: j.units,
|
|
402
|
+
"onUpdate:modelValue": (Q) => j.units = Q,
|
|
403
|
+
description: l(c) ? void 0 : `${l(e)("booking.availability.availableUnits")}: ${b(A.id, j.id)}`,
|
|
373
404
|
icon: "house",
|
|
374
405
|
"icon-type": "fas",
|
|
375
406
|
"icon-placement": "label",
|
|
376
|
-
label:
|
|
407
|
+
label: l(e)("booking.availability.units"),
|
|
377
408
|
minValue: 0,
|
|
378
|
-
"max-value": b(
|
|
409
|
+
"max-value": b(E, j.id) || 1 / 0
|
|
379
410
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
|
|
380
411
|
]),
|
|
381
|
-
|
|
382
|
-
]))), 128)) :
|
|
412
|
+
V("", !0)
|
|
413
|
+
]))), 128)) : V("", !0)
|
|
383
414
|
]))), 128))
|
|
384
|
-
])) :
|
|
415
|
+
])) : V("", !0)
|
|
385
416
|
]))), 128))
|
|
386
417
|
])
|
|
387
418
|
]),
|
|
388
419
|
_: 1
|
|
389
420
|
}, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
|
|
390
421
|
}
|
|
391
|
-
}),
|
|
422
|
+
}), Bo = /* @__PURE__ */ ee(Eo, [["__scopeId", "data-v-2121431c"]]), Mo = { class: "konnectio-template-side-panel" }, Lo = { class: "konnectio-template-side-panel-listings" }, Ro = /* @__PURE__ */ q({
|
|
392
423
|
__name: "Template",
|
|
393
424
|
props: {
|
|
394
425
|
title: {},
|
|
@@ -397,39 +428,44 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
397
428
|
callback: { type: Function }
|
|
398
429
|
},
|
|
399
430
|
setup(o) {
|
|
400
|
-
const { t: e } =
|
|
401
|
-
|
|
402
|
-
|
|
431
|
+
const { t: e } = x(), { templateID: t, roomGroupID: n } = Z(re()), { currency: a } = Z(he()), { clearRoomSelection: i } = re(), c = o, p = Y(!0), d = U(() => {
|
|
432
|
+
function u(h, b) {
|
|
433
|
+
return p.value === !0 ? h.extraPrice > b.extraPrice ? -1 : 1 : h.extraPrice > b.extraPrice ? 1 : -1;
|
|
434
|
+
}
|
|
435
|
+
return c.roomGroups?.slice().sort(u);
|
|
436
|
+
});
|
|
437
|
+
function s(u) {
|
|
438
|
+
t.value = c.templateId, n.value = u, i(), c.callback(2);
|
|
403
439
|
}
|
|
404
|
-
return (
|
|
405
|
-
title:
|
|
406
|
-
subtitle:
|
|
440
|
+
return (u, h) => (m(), H(ro, {
|
|
441
|
+
title: u.title,
|
|
442
|
+
subtitle: l(e)("booking.availability.selectATemplateRoom")
|
|
407
443
|
}, {
|
|
408
|
-
default:
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
(
|
|
412
|
-
id:
|
|
413
|
-
title:
|
|
414
|
-
description:
|
|
415
|
-
images:
|
|
416
|
-
facilities:
|
|
417
|
-
extraPrice:
|
|
418
|
-
}) => (
|
|
419
|
-
key:
|
|
420
|
-
"listing-id":
|
|
421
|
-
name:
|
|
422
|
-
description:
|
|
423
|
-
facilities:
|
|
424
|
-
gallery:
|
|
444
|
+
default: _(() => [
|
|
445
|
+
r("div", Mo, [
|
|
446
|
+
r("div", Lo, [
|
|
447
|
+
(m(!0), f(I, null, M(d.value, ({
|
|
448
|
+
id: b,
|
|
449
|
+
title: D,
|
|
450
|
+
description: C,
|
|
451
|
+
images: O,
|
|
452
|
+
facilities: N,
|
|
453
|
+
extraPrice: k
|
|
454
|
+
}) => (m(), H(De, {
|
|
455
|
+
key: b,
|
|
456
|
+
"listing-id": b,
|
|
457
|
+
name: D,
|
|
458
|
+
description: C,
|
|
459
|
+
facilities: N,
|
|
460
|
+
gallery: O,
|
|
425
461
|
"includes-breakfast": !1,
|
|
426
462
|
"hide-info-button": !0
|
|
427
463
|
}, {
|
|
428
|
-
action:
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
onClickEvent: (
|
|
432
|
-
label: `${
|
|
464
|
+
action: _(() => [
|
|
465
|
+
r("div", null, [
|
|
466
|
+
v(se, {
|
|
467
|
+
onClickEvent: (w) => s(b),
|
|
468
|
+
label: `${l(e)("booking.availability.selectThisRoom")} (${l(ie)(k, l(a))})`,
|
|
433
469
|
"full-width": ""
|
|
434
470
|
}, null, 8, ["onClickEvent", "label"])
|
|
435
471
|
])
|
|
@@ -442,7 +478,7 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
442
478
|
_: 1
|
|
443
479
|
}, 8, ["title", "subtitle"]));
|
|
444
480
|
}
|
|
445
|
-
}),
|
|
481
|
+
}), dt = /* @__PURE__ */ ee(Ro, [["__scopeId", "data-v-f7af0f66"]]), Uo = ["innerHTML"], Fo = { class: "konnectio-template-select-package" }, Oo = /* @__PURE__ */ q({
|
|
446
482
|
__name: "Template",
|
|
447
483
|
props: {
|
|
448
484
|
id: {},
|
|
@@ -454,60 +490,145 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
454
490
|
callback: { type: Function }
|
|
455
491
|
},
|
|
456
492
|
setup(o) {
|
|
457
|
-
const { t: e } =
|
|
458
|
-
(d,
|
|
493
|
+
const { t: e } = x(), t = o, n = U(() => t.roomGroups.reduce(
|
|
494
|
+
(d, s) => d < s.extraPrice ? d : s.extraPrice,
|
|
459
495
|
1 / 0
|
|
460
|
-
)),
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
496
|
+
)), a = U(() => {
|
|
497
|
+
if (t.image)
|
|
498
|
+
return [{
|
|
499
|
+
large: t.image.url,
|
|
500
|
+
medium: t.image.url,
|
|
501
|
+
thumb: t.image.url,
|
|
502
|
+
url: t.image.url
|
|
503
|
+
}];
|
|
504
|
+
}), i = Y(!1);
|
|
505
|
+
function c() {
|
|
506
|
+
i.value = !0;
|
|
468
507
|
}
|
|
469
|
-
function
|
|
470
|
-
t.callback(d),
|
|
508
|
+
function p(d) {
|
|
509
|
+
t.callback(d), i.value = !1;
|
|
471
510
|
}
|
|
472
|
-
return (d,
|
|
511
|
+
return (d, s) => (m(), H(De, {
|
|
473
512
|
"listing-id": d.id,
|
|
474
513
|
name: d.name,
|
|
475
514
|
description: d.description,
|
|
476
|
-
gallery:
|
|
477
|
-
layout:
|
|
515
|
+
gallery: a.value,
|
|
516
|
+
layout: l(it).Template,
|
|
478
517
|
"includes-breakfast": !1,
|
|
479
518
|
"hide-info-button": !1,
|
|
480
519
|
"prices-from": n.value
|
|
481
520
|
}, {
|
|
482
|
-
description:
|
|
483
|
-
d.description ? (
|
|
521
|
+
description: _(() => [
|
|
522
|
+
d.description ? (m(), f("p", {
|
|
484
523
|
key: 0,
|
|
485
|
-
innerHTML:
|
|
486
|
-
}, null, 8,
|
|
524
|
+
innerHTML: l(at)(d.description)
|
|
525
|
+
}, null, 8, Uo)) : V("", !0)
|
|
487
526
|
]),
|
|
488
|
-
action:
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
onClickEvent:
|
|
492
|
-
label:
|
|
527
|
+
action: _(() => [
|
|
528
|
+
r("div", Fo, [
|
|
529
|
+
v(se, {
|
|
530
|
+
onClickEvent: c,
|
|
531
|
+
label: l(e)("booking.availability.selectPackage"),
|
|
493
532
|
"full-width": ""
|
|
494
533
|
}, null, 8, ["label"])
|
|
495
534
|
])
|
|
496
535
|
]),
|
|
497
|
-
default:
|
|
498
|
-
|
|
499
|
-
modelValue:
|
|
500
|
-
"onUpdate:modelValue":
|
|
536
|
+
default: _(() => [
|
|
537
|
+
v(dt, {
|
|
538
|
+
modelValue: i.value,
|
|
539
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => i.value = u),
|
|
501
540
|
title: d.name,
|
|
502
541
|
"template-id": d.id,
|
|
503
542
|
roomGroups: d.roomGroups,
|
|
504
|
-
callback:
|
|
543
|
+
callback: p
|
|
505
544
|
}, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
|
|
506
545
|
]),
|
|
507
546
|
_: 1
|
|
508
547
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
|
|
509
548
|
}
|
|
510
|
-
}),
|
|
549
|
+
}), No = ["innerHTML"], jo = { class: "konnectio-special-offer-availability" }, Go = { class: "konnectio-special-offer-availability-button" }, qo = /* @__PURE__ */ q({
|
|
550
|
+
__name: "SpecialOffer",
|
|
551
|
+
props: {
|
|
552
|
+
id: {},
|
|
553
|
+
weekendFee: {},
|
|
554
|
+
description: {},
|
|
555
|
+
name: {},
|
|
556
|
+
toDate: {},
|
|
557
|
+
fromDate: {},
|
|
558
|
+
image: {},
|
|
559
|
+
roomGroups: {},
|
|
560
|
+
callback: { type: Function }
|
|
561
|
+
},
|
|
562
|
+
setup(o) {
|
|
563
|
+
const { t: e } = x(), { updateDates: t } = st(), n = o, a = Y([]), i = U(() => Oe(n.fromDate, n.toDate) === 1), c = U(() => [{
|
|
564
|
+
large: n.image.url,
|
|
565
|
+
medium: n.image.url,
|
|
566
|
+
thumb: n.image.url,
|
|
567
|
+
url: n.image.url
|
|
568
|
+
}]), p = Y(!1);
|
|
569
|
+
function d(u) {
|
|
570
|
+
n.callback(u), p.value = !1;
|
|
571
|
+
}
|
|
572
|
+
function s() {
|
|
573
|
+
t(a.value[0], a.value[1]);
|
|
574
|
+
}
|
|
575
|
+
return Se(() => {
|
|
576
|
+
i.value && (a.value = [new Date(n.fromDate), new Date(n.toDate)]);
|
|
577
|
+
}), (u, h) => (m(), H(De, {
|
|
578
|
+
"listing-id": u.id,
|
|
579
|
+
name: u.name,
|
|
580
|
+
description: u.description,
|
|
581
|
+
gallery: c.value,
|
|
582
|
+
layout: l(it).Template,
|
|
583
|
+
"includes-breakfast": !1,
|
|
584
|
+
"hide-info-button": !1,
|
|
585
|
+
"to-date": u.toDate,
|
|
586
|
+
"from-date": u.fromDate
|
|
587
|
+
}, {
|
|
588
|
+
description: _(() => [
|
|
589
|
+
u.description ? (m(), f("p", {
|
|
590
|
+
key: 0,
|
|
591
|
+
innerHTML: l(at)(u.description)
|
|
592
|
+
}, null, 8, No)) : V("", !0)
|
|
593
|
+
]),
|
|
594
|
+
action: _(() => [
|
|
595
|
+
r("div", jo, [
|
|
596
|
+
v(ut, {
|
|
597
|
+
modelValue: a.value,
|
|
598
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => a.value = b),
|
|
599
|
+
label: l(e)("availability.checkInOut"),
|
|
600
|
+
placeholder: l(e)("booking.availability.selectDates"),
|
|
601
|
+
"icon-type": "fas",
|
|
602
|
+
"icon-placement": "label",
|
|
603
|
+
"min-range": 1,
|
|
604
|
+
"start-date": new Date(u.fromDate),
|
|
605
|
+
"min-date": new Date(u.fromDate),
|
|
606
|
+
"max-date": new Date(u.toDate),
|
|
607
|
+
readonly: i.value,
|
|
608
|
+
range: ""
|
|
609
|
+
}, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
|
|
610
|
+
r("div", Go, [
|
|
611
|
+
v(se, {
|
|
612
|
+
label: l(e)("availability.buttonLabel"),
|
|
613
|
+
onClick: $e(s, ["prevent"])
|
|
614
|
+
}, null, 8, ["label"])
|
|
615
|
+
])
|
|
616
|
+
])
|
|
617
|
+
]),
|
|
618
|
+
default: _(() => [
|
|
619
|
+
v(dt, {
|
|
620
|
+
modelValue: p.value,
|
|
621
|
+
"onUpdate:modelValue": h[1] || (h[1] = (b) => p.value = b),
|
|
622
|
+
title: u.name,
|
|
623
|
+
"template-id": u.id,
|
|
624
|
+
roomGroups: u.roomGroups,
|
|
625
|
+
callback: d
|
|
626
|
+
}, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
|
|
627
|
+
]),
|
|
628
|
+
_: 1
|
|
629
|
+
}, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
|
|
630
|
+
}
|
|
631
|
+
}), Ze = /* @__PURE__ */ q({
|
|
511
632
|
__name: "TimeField",
|
|
512
633
|
props: {
|
|
513
634
|
modelValue: {},
|
|
@@ -533,28 +654,28 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
533
654
|
emits: ["update:modelValue"],
|
|
534
655
|
setup(o, { emit: e }) {
|
|
535
656
|
const t = e, n = o;
|
|
536
|
-
function
|
|
537
|
-
t("update:modelValue",
|
|
657
|
+
function a(c) {
|
|
658
|
+
t("update:modelValue", c);
|
|
538
659
|
}
|
|
539
|
-
const
|
|
540
|
-
return
|
|
541
|
-
|
|
542
|
-
}), (
|
|
543
|
-
modelValue:
|
|
544
|
-
"onUpdate:modelValue":
|
|
660
|
+
const i = Y(n.modelValue);
|
|
661
|
+
return Te(i, (c) => {
|
|
662
|
+
a(c);
|
|
663
|
+
}), (c, p) => (m(), H(ut, {
|
|
664
|
+
modelValue: i.value,
|
|
665
|
+
"onUpdate:modelValue": p[0] || (p[0] = (d) => i.value = d),
|
|
545
666
|
type: "time",
|
|
546
|
-
label:
|
|
547
|
-
id:
|
|
548
|
-
name:
|
|
549
|
-
icon:
|
|
550
|
-
"icon-type":
|
|
551
|
-
"icon-color":
|
|
667
|
+
label: c.label,
|
|
668
|
+
id: c.id,
|
|
669
|
+
name: c.name,
|
|
670
|
+
icon: c.icon,
|
|
671
|
+
"icon-type": c.iconType,
|
|
672
|
+
"icon-color": c.iconColor,
|
|
552
673
|
"auto-apply": !0,
|
|
553
|
-
required:
|
|
554
|
-
readonly:
|
|
674
|
+
required: c.required,
|
|
675
|
+
readonly: c.readonly
|
|
555
676
|
}, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
|
|
556
677
|
}
|
|
557
|
-
}),
|
|
678
|
+
}), Wo = { style: { display: "flex", "align-items": "baseline" } }, Ko = /* @__PURE__ */ q({
|
|
558
679
|
__name: "CountryField",
|
|
559
680
|
props: {
|
|
560
681
|
modelValue: {},
|
|
@@ -566,42 +687,42 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
566
687
|
},
|
|
567
688
|
emits: ["update:modelValue"],
|
|
568
689
|
setup(o, { emit: e }) {
|
|
569
|
-
const { t } =
|
|
570
|
-
function
|
|
571
|
-
n("update:modelValue",
|
|
690
|
+
const { t } = x(), n = e, a = o;
|
|
691
|
+
function i(p) {
|
|
692
|
+
n("update:modelValue", p);
|
|
572
693
|
}
|
|
573
|
-
const
|
|
574
|
-
get: () =>
|
|
575
|
-
set: (
|
|
694
|
+
const c = U({
|
|
695
|
+
get: () => a.modelValue,
|
|
696
|
+
set: (p) => i(p)
|
|
576
697
|
});
|
|
577
|
-
return (
|
|
578
|
-
modelValue:
|
|
579
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
580
|
-
label:
|
|
581
|
-
placeholder:
|
|
698
|
+
return (p, d) => (m(), H(He, {
|
|
699
|
+
modelValue: c.value,
|
|
700
|
+
"onUpdate:modelValue": d[0] || (d[0] = (s) => c.value = s),
|
|
701
|
+
label: p.label,
|
|
702
|
+
placeholder: l(t)("booking.reservation.countryPlaceholder"),
|
|
582
703
|
labelKey: "name",
|
|
583
704
|
valueKey: "id",
|
|
584
|
-
options:
|
|
585
|
-
required:
|
|
705
|
+
options: p.options,
|
|
706
|
+
required: p.required
|
|
586
707
|
}, {
|
|
587
|
-
option:
|
|
588
|
-
|
|
589
|
-
class:
|
|
708
|
+
option: _(({ data: s }) => [
|
|
709
|
+
r("i", {
|
|
710
|
+
class: Ce(["konnectio-flag-icon", s.iso])
|
|
590
711
|
}, null, 2),
|
|
591
|
-
|
|
712
|
+
r("span", null, y(s.name), 1)
|
|
592
713
|
]),
|
|
593
|
-
"selected-option":
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
class:
|
|
714
|
+
"selected-option": _(({ data: s }) => [
|
|
715
|
+
r("div", Wo, [
|
|
716
|
+
r("i", {
|
|
717
|
+
class: Ce(["konnectio-flag-icon", s.iso])
|
|
597
718
|
}, null, 2),
|
|
598
|
-
|
|
719
|
+
r("span", null, y(s.name), 1)
|
|
599
720
|
])
|
|
600
721
|
]),
|
|
601
722
|
_: 1
|
|
602
723
|
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
603
724
|
}
|
|
604
|
-
}),
|
|
725
|
+
}), zo = /* @__PURE__ */ ee(Ko, [["__scopeId", "data-v-1462612d"]]), Jo = { class: "konnectio-radio-checkboxes" }, Zo = /* @__PURE__ */ q({
|
|
605
726
|
__name: "CheckboxField",
|
|
606
727
|
props: {
|
|
607
728
|
modelValue: {},
|
|
@@ -612,27 +733,27 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
612
733
|
emits: ["update:modelValue"],
|
|
613
734
|
setup(o, { emit: e }) {
|
|
614
735
|
const t = e, n = o;
|
|
615
|
-
function
|
|
616
|
-
t("update:modelValue",
|
|
736
|
+
function a(c) {
|
|
737
|
+
t("update:modelValue", c);
|
|
617
738
|
}
|
|
618
|
-
const
|
|
739
|
+
const i = U({
|
|
619
740
|
get: () => n.modelValue,
|
|
620
|
-
set: (
|
|
741
|
+
set: (c) => a(c)
|
|
621
742
|
});
|
|
622
|
-
return (
|
|
623
|
-
label:
|
|
743
|
+
return (c, p) => (m(), H(rt, {
|
|
744
|
+
label: c.label,
|
|
624
745
|
type: "multi-radio"
|
|
625
746
|
}, {
|
|
626
|
-
default:
|
|
627
|
-
|
|
628
|
-
(
|
|
629
|
-
|
|
630
|
-
modelValue:
|
|
631
|
-
"onUpdate:modelValue":
|
|
747
|
+
default: _(() => [
|
|
748
|
+
r("ul", Jo, [
|
|
749
|
+
(m(!0), f(I, null, M(c.checkboxes, ({ label: d, value: s }, u) => (m(), f("li", { key: u }, [
|
|
750
|
+
v(we, {
|
|
751
|
+
modelValue: i.value,
|
|
752
|
+
"onUpdate:modelValue": p[0] || (p[0] = (h) => i.value = h),
|
|
632
753
|
label: d,
|
|
633
|
-
name:
|
|
754
|
+
name: c.name,
|
|
634
755
|
type: "radio",
|
|
635
|
-
val:
|
|
756
|
+
val: s
|
|
636
757
|
}, null, 8, ["modelValue", "label", "name", "val"])
|
|
637
758
|
]))), 128))
|
|
638
759
|
])
|
|
@@ -640,7 +761,7 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
640
761
|
_: 1
|
|
641
762
|
}, 8, ["label"]));
|
|
642
763
|
}
|
|
643
|
-
}),
|
|
764
|
+
}), Yo = /* @__PURE__ */ ee(Zo, [["__scopeId", "data-v-7185c7da"]]), Qo = /* @__PURE__ */ q({
|
|
644
765
|
__name: "NameField",
|
|
645
766
|
props: {
|
|
646
767
|
modelValue: {},
|
|
@@ -662,248 +783,197 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
662
783
|
},
|
|
663
784
|
emits: ["update:modelValue", "update:title"],
|
|
664
785
|
setup(o, { emit: e }) {
|
|
665
|
-
const t = o, n = e,
|
|
666
|
-
function
|
|
667
|
-
n("update:modelValue",
|
|
786
|
+
const t = o, n = e, a = t.id || Je(), i = Y(""), c = Y(2);
|
|
787
|
+
function p() {
|
|
788
|
+
n("update:modelValue", i.value);
|
|
668
789
|
}
|
|
669
|
-
|
|
670
|
-
n("update:title",
|
|
790
|
+
Te(c, (s) => {
|
|
791
|
+
n("update:title", s);
|
|
671
792
|
});
|
|
672
|
-
const { t: d } =
|
|
673
|
-
return
|
|
674
|
-
t.modelValue && (
|
|
675
|
-
}), (
|
|
676
|
-
label:
|
|
677
|
-
id:
|
|
678
|
-
required:
|
|
793
|
+
const { t: d } = x();
|
|
794
|
+
return Se(() => {
|
|
795
|
+
t.modelValue && (i.value = t.modelValue), t.title && (c.value = t.title);
|
|
796
|
+
}), (s, u) => (m(), H(rt, {
|
|
797
|
+
label: s.label,
|
|
798
|
+
id: l(a),
|
|
799
|
+
required: s.required,
|
|
679
800
|
type: "fresh-booking-name-field",
|
|
680
|
-
readonly:
|
|
681
|
-
limit:
|
|
801
|
+
readonly: s.readonly,
|
|
802
|
+
limit: s.limit
|
|
682
803
|
}, {
|
|
683
|
-
default:
|
|
684
|
-
|
|
685
|
-
class:
|
|
804
|
+
default: _(() => [
|
|
805
|
+
r("div", {
|
|
806
|
+
class: Ce([
|
|
686
807
|
"fresh-booking-name-input",
|
|
687
|
-
{ "no-title":
|
|
808
|
+
{ "no-title": s.excludeTitle }
|
|
688
809
|
])
|
|
689
810
|
}, [
|
|
690
|
-
|
|
811
|
+
s.excludeTitle ? V("", !0) : (m(), H(He, {
|
|
691
812
|
key: 0,
|
|
692
|
-
modelValue:
|
|
693
|
-
"onUpdate:modelValue":
|
|
694
|
-
id:
|
|
695
|
-
icon:
|
|
696
|
-
"icon-color":
|
|
697
|
-
"icon-type":
|
|
813
|
+
modelValue: c.value,
|
|
814
|
+
"onUpdate:modelValue": u[0] || (u[0] = (h) => c.value = h),
|
|
815
|
+
id: l(Je)(),
|
|
816
|
+
icon: s.icon,
|
|
817
|
+
"icon-color": s.iconColor,
|
|
818
|
+
"icon-type": s.iconType,
|
|
698
819
|
options: [
|
|
699
820
|
{
|
|
700
|
-
label:
|
|
821
|
+
label: l(d)("booking.reservation.noNameTitle"),
|
|
701
822
|
value: 1
|
|
702
823
|
},
|
|
703
824
|
{
|
|
704
|
-
label:
|
|
825
|
+
label: l(d)("booking.reservation.nameTitleMr"),
|
|
705
826
|
value: 2
|
|
706
827
|
},
|
|
707
828
|
{
|
|
708
|
-
label:
|
|
829
|
+
label: l(d)("booking.reservation.nameTitleMs"),
|
|
709
830
|
value: 3
|
|
710
831
|
},
|
|
711
832
|
{
|
|
712
|
-
label:
|
|
833
|
+
label: l(d)("booking.reservation.nameTitleMrs"),
|
|
713
834
|
value: 4
|
|
714
835
|
},
|
|
715
836
|
{
|
|
716
|
-
label:
|
|
837
|
+
label: l(d)("booking.reservation.nameTitleDr"),
|
|
717
838
|
value: 5
|
|
718
839
|
}
|
|
719
840
|
],
|
|
720
|
-
readonly:
|
|
841
|
+
readonly: s.readonly,
|
|
721
842
|
"hide-button": "",
|
|
722
|
-
"input-style":
|
|
843
|
+
"input-style": s.inputStyle,
|
|
723
844
|
searchable: !1
|
|
724
845
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
|
|
725
|
-
|
|
726
|
-
modelValue:
|
|
727
|
-
"onUpdate:modelValue":
|
|
846
|
+
v(ne, {
|
|
847
|
+
modelValue: i.value,
|
|
848
|
+
"onUpdate:modelValue": u[1] || (u[1] = (h) => i.value = h),
|
|
728
849
|
type: "text",
|
|
729
850
|
name: "name",
|
|
730
851
|
autocomplete: "name",
|
|
731
|
-
id:
|
|
732
|
-
icon:
|
|
733
|
-
"icon-color":
|
|
734
|
-
"icon-type":
|
|
735
|
-
placeholder:
|
|
736
|
-
required:
|
|
737
|
-
readonly:
|
|
738
|
-
limit:
|
|
739
|
-
onInput:
|
|
740
|
-
"input-style":
|
|
852
|
+
id: l(a),
|
|
853
|
+
icon: s.excludeTitle ? s.icon : void 0,
|
|
854
|
+
"icon-color": s.iconColor,
|
|
855
|
+
"icon-type": s.iconType,
|
|
856
|
+
placeholder: s.placeholder,
|
|
857
|
+
required: s.required,
|
|
858
|
+
readonly: s.readonly,
|
|
859
|
+
limit: s.limit,
|
|
860
|
+
onInput: u[2] || (u[2] = (h) => p()),
|
|
861
|
+
"input-style": s.inputStyle
|
|
741
862
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
|
|
742
863
|
], 2)
|
|
743
864
|
]),
|
|
744
865
|
_: 1
|
|
745
866
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
746
867
|
}
|
|
747
|
-
}),
|
|
748
|
-
__name: "Listing",
|
|
749
|
-
setup(o) {
|
|
750
|
-
return (e, t) => (E(), $("div", Cn, [
|
|
751
|
-
v("div", $n, [
|
|
752
|
-
I(Y, {
|
|
753
|
-
width: "280px",
|
|
754
|
-
height: "153px"
|
|
755
|
-
}),
|
|
756
|
-
v("div", Sn, [
|
|
757
|
-
(E(), $(M, null, z(3, (n) => I(Y, {
|
|
758
|
-
key: n,
|
|
759
|
-
width: "84px",
|
|
760
|
-
height: "44px"
|
|
761
|
-
})), 64))
|
|
762
|
-
])
|
|
763
|
-
]),
|
|
764
|
-
v("div", Ln, [
|
|
765
|
-
v("div", Vn, [
|
|
766
|
-
v("div", Pn, [
|
|
767
|
-
I(Y, {
|
|
768
|
-
height: "30px",
|
|
769
|
-
width: "60%"
|
|
770
|
-
}),
|
|
771
|
-
I(Y, {
|
|
772
|
-
height: "30px",
|
|
773
|
-
width: "30px",
|
|
774
|
-
"border-radius": "100%"
|
|
775
|
-
})
|
|
776
|
-
]),
|
|
777
|
-
I(Y, {
|
|
778
|
-
height: "15px",
|
|
779
|
-
width: "25%"
|
|
780
|
-
})
|
|
781
|
-
]),
|
|
782
|
-
v("div", xn, [
|
|
783
|
-
I(Y, { height: "15px" }),
|
|
784
|
-
I(Y, { height: "15px" }),
|
|
785
|
-
I(Y, { height: "15px" }),
|
|
786
|
-
I(Y, { height: "15px" }),
|
|
787
|
-
I(Y, {
|
|
788
|
-
height: "15px",
|
|
789
|
-
width: "90%"
|
|
790
|
-
})
|
|
791
|
-
]),
|
|
792
|
-
v("div", wn, [
|
|
793
|
-
(E(), $(M, null, z(5, (n) => I(Y, {
|
|
794
|
-
key: n,
|
|
795
|
-
height: "25px",
|
|
796
|
-
width: "25px",
|
|
797
|
-
"border-radius": "6px"
|
|
798
|
-
})), 64))
|
|
799
|
-
])
|
|
800
|
-
])
|
|
801
|
-
]));
|
|
802
|
-
}
|
|
803
|
-
}), he = /* @__PURE__ */ X(Hn, [["__scopeId", "data-v-c7574b59"]]), On = { class: "hotel-skeleton" }, Rn = { class: "hotel-skeleton-content" }, Dn = { class: "hotel-skeleton-sidebar" }, An = /* @__PURE__ */ N({
|
|
868
|
+
}), Xo = /* @__PURE__ */ ee(Qo, [["__scopeId", "data-v-78b0b319"]]), xo = { class: "hotel-skeleton" }, el = { class: "hotel-skeleton-content" }, tl = { class: "hotel-skeleton-sidebar" }, ol = /* @__PURE__ */ q({
|
|
804
869
|
__name: "HotelSkeleton",
|
|
805
870
|
setup(o) {
|
|
806
|
-
return (e, t) => (
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
I(he),
|
|
811
|
-
I(he)
|
|
871
|
+
return (e, t) => (m(), f("div", xo, [
|
|
872
|
+
r("div", el, [
|
|
873
|
+
v(po, { hotel: "" }),
|
|
874
|
+
v(eo)
|
|
812
875
|
]),
|
|
813
|
-
|
|
814
|
-
|
|
876
|
+
r("div", tl, [
|
|
877
|
+
v(to)
|
|
815
878
|
])
|
|
816
879
|
]));
|
|
817
880
|
}
|
|
818
|
-
}),
|
|
881
|
+
}), ll = /* @__PURE__ */ ee(ol, [["__scopeId", "data-v-1bb21da4"]]), nl = (o) => (tt("data-v-514816f7"), o = o(), ot(), o), al = { id: "booking-availability-container" }, il = { id: "booking-availability-controls" };
|
|
882
|
+
const sl = { key: 1 }, rl = { key: 0 }, ul = {
|
|
819
883
|
key: 0,
|
|
820
884
|
id: "booking-availability-packages"
|
|
821
|
-
},
|
|
885
|
+
}, dl = {
|
|
822
886
|
key: 0,
|
|
823
887
|
class: "konnectio-hotel-availability-title"
|
|
824
|
-
},
|
|
888
|
+
}, cl = { id: "booking-availability-packages-wrapper" }, pl = { key: 1 }, ml = {
|
|
825
889
|
key: 0,
|
|
826
890
|
class: "konnectio-hotel-availability-title"
|
|
827
|
-
},
|
|
891
|
+
}, fl = { id: "booking-availability-listings" }, hl = {
|
|
828
892
|
key: 2,
|
|
893
|
+
id: "booking-availability-packages"
|
|
894
|
+
}, vl = {
|
|
895
|
+
key: 0,
|
|
896
|
+
class: "konnectio-hotel-availability-title"
|
|
897
|
+
}, gl = { id: "booking-availability-packages-wrapper" }, yl = {
|
|
898
|
+
key: 3,
|
|
829
899
|
id: "booking-availability-no-listings",
|
|
830
900
|
class: "fresh-booking-panel"
|
|
831
|
-
},
|
|
901
|
+
}, bl = {
|
|
832
902
|
key: 1,
|
|
833
903
|
id: "booking-availability-no-listings"
|
|
834
|
-
},
|
|
904
|
+
}, kl = {
|
|
835
905
|
key: 2,
|
|
836
906
|
id: "reservation-availability-next-dates"
|
|
837
|
-
},
|
|
907
|
+
}, _l = { class: "konnectio-hotel-availability-title" }, Vl = { class: "reservation-special-offers-grid" }, $l = ["title"];
|
|
908
|
+
const Tl = {
|
|
838
909
|
key: 2,
|
|
839
910
|
class: "konnectio-listing-loading"
|
|
840
|
-
},
|
|
911
|
+
}, Cl = { class: "fresh-booking-panel" }, wl = {
|
|
841
912
|
key: 0,
|
|
842
913
|
id: "konnectio-hotel-addons"
|
|
843
|
-
}
|
|
914
|
+
};
|
|
915
|
+
const Pl = { class: "fresh-booking-event-addons-price" }, Hl = { key: 1 }, Sl = /* @__PURE__ */ nl(() => /* @__PURE__ */ r("br", null, null, -1)), Dl = ["onClick"], Al = { class: "fresh-booking-panel" }, Il = { key: 0 }, El = { key: 1 }, Bl = { class: "fresh-booking-split-inputs" }, Ml = ["onClick"], Ll = /* @__PURE__ */ q({
|
|
844
916
|
name: "HotelLayout",
|
|
845
917
|
__name: "Hotel",
|
|
846
918
|
props: {
|
|
847
919
|
accessToken: {},
|
|
848
|
-
headerLayout: { default:
|
|
920
|
+
headerLayout: { default: Nt.Minimal },
|
|
849
921
|
onlyShow: { default: "everything" },
|
|
850
922
|
styling: {}
|
|
851
923
|
},
|
|
852
924
|
setup(o) {
|
|
853
|
-
const { t: e } =
|
|
925
|
+
const { t: e } = x(), {
|
|
854
926
|
templateID: t,
|
|
855
927
|
countries: n,
|
|
856
|
-
areListingsLoading:
|
|
857
|
-
isPaymentLoading:
|
|
858
|
-
isReservationFormFilled:
|
|
859
|
-
travelingFor:
|
|
928
|
+
areListingsLoading: a,
|
|
929
|
+
isPaymentLoading: i,
|
|
930
|
+
isReservationFormFilled: c,
|
|
931
|
+
travelingFor: p,
|
|
860
932
|
arrivalTime: d,
|
|
861
|
-
departureTime:
|
|
862
|
-
name:
|
|
863
|
-
nameTitle:
|
|
933
|
+
departureTime: s,
|
|
934
|
+
name: u,
|
|
935
|
+
nameTitle: h,
|
|
864
936
|
email: b,
|
|
865
|
-
phone:
|
|
866
|
-
firmName:
|
|
867
|
-
postal:
|
|
868
|
-
city:
|
|
869
|
-
address:
|
|
870
|
-
country:
|
|
871
|
-
remark:
|
|
872
|
-
allergies:
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
} = ae(), to = fe(!0), oo = q(() => {
|
|
906
|
-
const O = [
|
|
937
|
+
phone: D,
|
|
938
|
+
firmName: C,
|
|
939
|
+
postal: O,
|
|
940
|
+
city: N,
|
|
941
|
+
address: k,
|
|
942
|
+
country: w,
|
|
943
|
+
remark: A,
|
|
944
|
+
allergies: F,
|
|
945
|
+
roomSelect: E,
|
|
946
|
+
roomDisplay: W,
|
|
947
|
+
hasValidRoomSelection: j,
|
|
948
|
+
availabilityData: S,
|
|
949
|
+
selectionHasNoAddons: Q
|
|
950
|
+
} = Z(re()), {
|
|
951
|
+
arrivalDate: de,
|
|
952
|
+
departureDate: ve
|
|
953
|
+
} = Z(st()), {
|
|
954
|
+
currency: K,
|
|
955
|
+
arrivalEarliest: z,
|
|
956
|
+
arrivalLatest: L,
|
|
957
|
+
departureEarliest: ce,
|
|
958
|
+
departureLatest: Ae,
|
|
959
|
+
enableTracking: ge,
|
|
960
|
+
arrivalDefault: Ie,
|
|
961
|
+
departureDefault: te,
|
|
962
|
+
hideArrivalDepartureInputs: Ee,
|
|
963
|
+
disableArrivalUserSelection: ye,
|
|
964
|
+
disableNamePrefix: vt,
|
|
965
|
+
disableDepartureUserSelection: Be,
|
|
966
|
+
disableTravelingFor: gt,
|
|
967
|
+
disableTravelingForBleasure: yt,
|
|
968
|
+
disableCompanyField: bt,
|
|
969
|
+
hasPaymentGateway: kt
|
|
970
|
+
} = Z(he()), { beginCheckout: _t } = lt(), {
|
|
971
|
+
initialize: Vt,
|
|
972
|
+
resetTemplate: $t,
|
|
973
|
+
resetDiscountVoucher: Tt,
|
|
974
|
+
createReservation: Ct
|
|
975
|
+
} = re(), wt = Y(!0), Pt = U(() => {
|
|
976
|
+
const T = [
|
|
907
977
|
{
|
|
908
978
|
label: e("booking.reservation.business"),
|
|
909
979
|
value: "Business"
|
|
@@ -913,157 +983,182 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
913
983
|
value: "Pleasure"
|
|
914
984
|
}
|
|
915
985
|
];
|
|
916
|
-
return
|
|
986
|
+
return yt.value || T.push({
|
|
917
987
|
label: e("booking.reservation.bleasure"),
|
|
918
988
|
value: "Bleasure"
|
|
919
|
-
}),
|
|
920
|
-
}),
|
|
921
|
-
const
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
(R, S) => R < S.rackRate ? R : S.rackRate,
|
|
925
|
-
1 / 0
|
|
926
|
-
);
|
|
927
|
-
});
|
|
928
|
-
function P(U, R) {
|
|
929
|
-
return to.value === !0 ? U.pricesFrom > R.pricesFrom ? -1 : 1 : U.pricesFrom > R.pricesFrom ? 1 : -1;
|
|
989
|
+
}), T;
|
|
990
|
+
}), Ht = U(() => {
|
|
991
|
+
const T = S.value.roomGroups.slice();
|
|
992
|
+
function $(J, P) {
|
|
993
|
+
return wt.value === !0 ? J.pricesFrom > P.pricesFrom ? -1 : 1 : J.pricesFrom > P.pricesFrom ? 1 : -1;
|
|
930
994
|
}
|
|
931
|
-
return
|
|
932
|
-
}),
|
|
933
|
-
parseInt(
|
|
934
|
-
parseInt(
|
|
935
|
-
]]),
|
|
936
|
-
parseInt(
|
|
937
|
-
parseInt(
|
|
995
|
+
return T.sort($);
|
|
996
|
+
}), St = U(() => [[
|
|
997
|
+
parseInt(z.value.split(":")[0]),
|
|
998
|
+
parseInt(L.value.split(":")[0])
|
|
999
|
+
]]), Dt = U(() => [[
|
|
1000
|
+
parseInt(ce.value.split(":")[0]),
|
|
1001
|
+
parseInt(Ae.value.split(":")[0])
|
|
938
1002
|
]]);
|
|
939
|
-
function
|
|
940
|
-
|
|
1003
|
+
function We(T) {
|
|
1004
|
+
Q.value ? T(2) : T(), Tt();
|
|
941
1005
|
}
|
|
942
|
-
function
|
|
943
|
-
|
|
1006
|
+
function At(T, $) {
|
|
1007
|
+
ve.value = new Date($), de.value = new Date(T), location.reload();
|
|
944
1008
|
}
|
|
945
|
-
function
|
|
946
|
-
|
|
947
|
-
yield eo(O);
|
|
948
|
-
});
|
|
1009
|
+
async function It(T) {
|
|
1010
|
+
await Ct(T);
|
|
949
1011
|
}
|
|
950
|
-
function
|
|
951
|
-
|
|
1012
|
+
function Et(T) {
|
|
1013
|
+
ge.value && _t(), Q.value ? T(2) : T();
|
|
952
1014
|
}
|
|
953
|
-
function
|
|
954
|
-
d.value === "" && (d.value =
|
|
1015
|
+
function Bt() {
|
|
1016
|
+
d.value === "" && (d.value = Ie.value), s.value === "" && (s.value = te.value);
|
|
955
1017
|
}
|
|
956
|
-
return
|
|
957
|
-
|
|
958
|
-
}), (
|
|
959
|
-
default:
|
|
960
|
-
(
|
|
961
|
-
default:
|
|
962
|
-
|
|
1018
|
+
return Se(() => {
|
|
1019
|
+
Vt(), Bt();
|
|
1020
|
+
}), (T, $) => (m(), H(jt, { styling: T.styling }, {
|
|
1021
|
+
default: _(() => [
|
|
1022
|
+
(m(), H(Gt, null, {
|
|
1023
|
+
default: _(() => [
|
|
1024
|
+
v(Wt, {
|
|
963
1025
|
id: "fresh-booking-hotel-module",
|
|
964
|
-
"access-token":
|
|
1026
|
+
"access-token": T.accessToken,
|
|
965
1027
|
type: "hotel"
|
|
966
1028
|
}, {
|
|
967
|
-
default:
|
|
968
|
-
|
|
969
|
-
layout:
|
|
970
|
-
onReset:
|
|
1029
|
+
default: _(() => [
|
|
1030
|
+
v(oo, {
|
|
1031
|
+
layout: T.headerLayout,
|
|
1032
|
+
onReset: l($t)
|
|
971
1033
|
}, {
|
|
972
|
-
availability:
|
|
973
|
-
|
|
974
|
-
form:
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
1034
|
+
availability: _(({ next: J }) => [
|
|
1035
|
+
v(Ue, null, {
|
|
1036
|
+
form: _(() => [
|
|
1037
|
+
r("div", al, [
|
|
1038
|
+
r("div", il, [
|
|
1039
|
+
v(io, { booking: !0 })
|
|
978
1040
|
]),
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
])) : (
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
1041
|
+
V("", !0),
|
|
1042
|
+
l(a) ? (m(), f("div", Tl, [
|
|
1043
|
+
v(Re),
|
|
1044
|
+
v(Re),
|
|
1045
|
+
v(Re)
|
|
1046
|
+
])) : (m(), f("div", sl, [
|
|
1047
|
+
l(S).roomGroups.length > 0 || l(S).templates.length > 0 || l(S).specialTemplates.length > 0 ? (m(), f("div", rl, [
|
|
1048
|
+
l(S).templates.length > 0 && T.onlyShow !== "rooms" ? (m(), f("div", ul, [
|
|
1049
|
+
T.onlyShow !== "packages" ? (m(), f("h2", dl, [
|
|
1050
|
+
v(G, {
|
|
989
1051
|
icon: "box",
|
|
990
1052
|
type: "fal",
|
|
991
1053
|
color: "header"
|
|
992
1054
|
}),
|
|
993
|
-
|
|
994
|
-
])) :
|
|
995
|
-
|
|
996
|
-
(
|
|
997
|
-
id:
|
|
998
|
-
name:
|
|
999
|
-
templateRoomGroups:
|
|
1000
|
-
image:
|
|
1001
|
-
description:
|
|
1002
|
-
weekendFee:
|
|
1003
|
-
}) => (
|
|
1004
|
-
key:
|
|
1005
|
-
id:
|
|
1006
|
-
description:
|
|
1007
|
-
name:
|
|
1008
|
-
image:
|
|
1009
|
-
weekendFee:
|
|
1010
|
-
"room-groups":
|
|
1011
|
-
callback:
|
|
1055
|
+
r("span", null, y(l(e)("booking.availability.packagesTitle")), 1)
|
|
1056
|
+
])) : V("", !0),
|
|
1057
|
+
r("ul", cl, [
|
|
1058
|
+
(m(!0), f(I, null, M(l(S).templates, ({
|
|
1059
|
+
id: P,
|
|
1060
|
+
name: g,
|
|
1061
|
+
templateRoomGroups: oe,
|
|
1062
|
+
image: X,
|
|
1063
|
+
description: B,
|
|
1064
|
+
weekendFee: pe
|
|
1065
|
+
}) => (m(), H(Oo, {
|
|
1066
|
+
key: P,
|
|
1067
|
+
id: P,
|
|
1068
|
+
description: B,
|
|
1069
|
+
name: g,
|
|
1070
|
+
image: X,
|
|
1071
|
+
weekendFee: pe,
|
|
1072
|
+
"room-groups": oe,
|
|
1073
|
+
callback: J
|
|
1012
1074
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1013
1075
|
])
|
|
1014
|
-
])) :
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1076
|
+
])) : V("", !0),
|
|
1077
|
+
l(S).roomGroups.length > 0 && T.onlyShow !== "packages" ? (m(), f("div", pl, [
|
|
1078
|
+
l(S).templates.length > 0 && T.onlyShow !== "rooms" ? (m(), f("h2", ml, [
|
|
1079
|
+
v(G, {
|
|
1018
1080
|
icon: "house",
|
|
1019
1081
|
type: "fal",
|
|
1020
1082
|
color: "header"
|
|
1021
1083
|
}),
|
|
1022
|
-
|
|
1023
|
-
])) :
|
|
1024
|
-
|
|
1025
|
-
(
|
|
1026
|
-
room:
|
|
1027
|
-
key:
|
|
1084
|
+
r("span", null, y(l(e)("booking.availability.roomsTitle")), 1)
|
|
1085
|
+
])) : V("", !0),
|
|
1086
|
+
r("ul", fl, [
|
|
1087
|
+
(m(!0), f(I, null, M(Ht.value, (P, g) => (m(), H(Bo, {
|
|
1088
|
+
room: P,
|
|
1089
|
+
key: g
|
|
1028
1090
|
}, null, 8, ["room"]))), 128))
|
|
1029
1091
|
])
|
|
1030
|
-
])) :
|
|
1031
|
-
(
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1092
|
+
])) : V("", !0),
|
|
1093
|
+
l(S).specialTemplates.length > 0 && T.onlyShow !== "rooms" ? (m(), f("div", hl, [
|
|
1094
|
+
T.onlyShow !== "packages" ? (m(), f("h2", vl, [
|
|
1095
|
+
v(G, {
|
|
1096
|
+
icon: "sparkles",
|
|
1097
|
+
type: "fal",
|
|
1098
|
+
color: "header"
|
|
1099
|
+
}),
|
|
1100
|
+
r("span", null, y(l(e)("hotel.specialOffers")), 1)
|
|
1101
|
+
])) : V("", !0),
|
|
1102
|
+
r("ul", gl, [
|
|
1103
|
+
(m(!0), f(I, null, M(l(S).specialTemplates, ({
|
|
1104
|
+
id: P,
|
|
1105
|
+
name: g,
|
|
1106
|
+
templateRoomGroups: oe,
|
|
1107
|
+
image: X,
|
|
1108
|
+
description: B,
|
|
1109
|
+
weekendFee: pe,
|
|
1110
|
+
fromDate: me,
|
|
1111
|
+
toDate: Me
|
|
1112
|
+
}) => (m(), H(qo, {
|
|
1113
|
+
key: P,
|
|
1114
|
+
id: P,
|
|
1115
|
+
description: B,
|
|
1116
|
+
name: g,
|
|
1117
|
+
image: X,
|
|
1118
|
+
fromDate: me,
|
|
1119
|
+
toDate: Me,
|
|
1120
|
+
weekendFee: pe,
|
|
1121
|
+
"room-groups": oe,
|
|
1122
|
+
callback: J
|
|
1123
|
+
}, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1124
|
+
])
|
|
1125
|
+
])) : V("", !0),
|
|
1126
|
+
(l(S).templates.length === 0 && T.onlyShow !== "rooms" || l(S).roomGroups.length === 0 && T.onlyShow !== "packages") && (T.onlyShow === "rooms" || T.onlyShow === "packages") ? (m(), f("div", yl, [
|
|
1127
|
+
r("span", null, y(l(e)("booking.availability.nothingAvailable")), 1)
|
|
1128
|
+
])) : V("", !0)
|
|
1129
|
+
])) : l(S).nextAvailableDates.length === 0 ? (m(), f("div", bl, [
|
|
1130
|
+
r("span", null, y(l(e)("booking.availability.nothingAvailable")), 1)
|
|
1131
|
+
])) : (m(), f("div", kl, [
|
|
1132
|
+
r("h2", _l, [
|
|
1133
|
+
v(G, {
|
|
1039
1134
|
icon: "calendar-circle-exclamation",
|
|
1040
1135
|
type: "fal",
|
|
1041
1136
|
color: "header"
|
|
1042
1137
|
}),
|
|
1043
|
-
|
|
1138
|
+
r("span", null, y(l(e)("booking.availability.nextAvailableDates")), 1)
|
|
1044
1139
|
]),
|
|
1045
|
-
|
|
1046
|
-
(
|
|
1047
|
-
|
|
1048
|
-
title: `${
|
|
1140
|
+
r("ul", Vl, [
|
|
1141
|
+
(m(!0), f(I, null, M(l(S).nextAvailableDates, (P, g) => (m(), f("li", { key: g }, [
|
|
1142
|
+
r("h3", {
|
|
1143
|
+
title: `${l(ae)(P.fromDate)} - ${l(ae)(P.toDate)}`
|
|
1049
1144
|
}, [
|
|
1050
|
-
|
|
1051
|
-
], 8,
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1145
|
+
r("span", null, y(`${l(ae)(P.fromDate)} - ${l(ae)(P.toDate)}`), 1)
|
|
1146
|
+
], 8, $l),
|
|
1147
|
+
r("ul", null, [
|
|
1148
|
+
V("", !0),
|
|
1149
|
+
r("li", null, [
|
|
1150
|
+
v(G, {
|
|
1056
1151
|
icon: "money-bill",
|
|
1057
1152
|
type: "fal",
|
|
1058
1153
|
color: "header"
|
|
1059
1154
|
}),
|
|
1060
|
-
|
|
1155
|
+
r("span", null, y(l(e)("booking.availability.pricesFrom")) + ": " + y(l(ie)(P.priceStartFrom, l(K))), 1)
|
|
1061
1156
|
])
|
|
1062
1157
|
]),
|
|
1063
|
-
|
|
1064
|
-
label:
|
|
1158
|
+
v(se, {
|
|
1159
|
+
label: l(e)("booking.availability.selectDates"),
|
|
1065
1160
|
"full-width": "",
|
|
1066
|
-
onClickEvent: (
|
|
1161
|
+
onClickEvent: (oe) => At(P.fromDate, P.toDate)
|
|
1067
1162
|
}, null, 8, ["label", "onClickEvent"])
|
|
1068
1163
|
]))), 128))
|
|
1069
1164
|
])
|
|
@@ -1071,301 +1166,295 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
1071
1166
|
]))
|
|
1072
1167
|
])
|
|
1073
1168
|
]),
|
|
1074
|
-
navigation:
|
|
1075
|
-
|
|
1076
|
-
label:
|
|
1077
|
-
disabled: !
|
|
1169
|
+
navigation: _(() => [
|
|
1170
|
+
v(se, {
|
|
1171
|
+
label: l(Q) ? l(e)("booking.availability.nextButton") : l(e)("general.chooseAddons"),
|
|
1172
|
+
disabled: !l(j),
|
|
1078
1173
|
"is-loading": !1,
|
|
1079
1174
|
"full-width": "",
|
|
1080
|
-
onClickEvent: (
|
|
1175
|
+
onClickEvent: (P) => Et(J)
|
|
1081
1176
|
}, null, 8, ["label", "disabled", "onClickEvent"])
|
|
1082
1177
|
]),
|
|
1083
1178
|
_: 2
|
|
1084
1179
|
}, 1024)
|
|
1085
1180
|
]),
|
|
1086
|
-
addons:
|
|
1087
|
-
|
|
1088
|
-
form:
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1181
|
+
addons: _(({ next: J, prev: P }) => [
|
|
1182
|
+
v(Ue, null, {
|
|
1183
|
+
form: _(() => [
|
|
1184
|
+
r("form", Cl, [
|
|
1185
|
+
r("h2", null, [
|
|
1186
|
+
r("span", null, y(l(e)("booking.reservation.addons")), 1)
|
|
1092
1187
|
]),
|
|
1093
|
-
|
|
1094
|
-
isNaN(
|
|
1095
|
-
(
|
|
1096
|
-
key:
|
|
1188
|
+
r("div", null, [
|
|
1189
|
+
isNaN(l(t)) ? (m(), f("div", wl, [
|
|
1190
|
+
(m(!0), f(I, null, M(l(W), (g) => (m(), f("ul", {
|
|
1191
|
+
key: g.roomGroupID
|
|
1097
1192
|
}, [
|
|
1098
|
-
(
|
|
1099
|
-
key:
|
|
1193
|
+
(m(!0), f(I, null, M(g.variants, (oe, X) => (m(), f("li", {
|
|
1194
|
+
key: oe.ratePlanID
|
|
1100
1195
|
}, [
|
|
1101
|
-
|
|
1102
|
-
|
|
1196
|
+
r("h4", null, [
|
|
1197
|
+
r("span", null, y(l(ue)(g.title)), 1)
|
|
1103
1198
|
]),
|
|
1104
|
-
(
|
|
1105
|
-
key:
|
|
1106
|
-
class: "fresh-booking-table"
|
|
1199
|
+
(m(!0), f(I, null, M(oe.rooms, (B, pe) => (m(), f("table", {
|
|
1200
|
+
key: pe,
|
|
1201
|
+
class: "fresh-booking-table with-lines"
|
|
1107
1202
|
}, [
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1203
|
+
r("thead", null, [
|
|
1204
|
+
r("tr", null, [
|
|
1205
|
+
r("th", null, [
|
|
1206
|
+
r("span", null, y(l(ue)(oe.name)), 1)
|
|
1112
1207
|
]),
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1208
|
+
V("", !0),
|
|
1209
|
+
r("th", Pl, [
|
|
1210
|
+
r("b", null, [
|
|
1211
|
+
v(G, {
|
|
1117
1212
|
icon: "male",
|
|
1118
1213
|
type: "fas",
|
|
1119
1214
|
color: "font"
|
|
1120
1215
|
}),
|
|
1121
|
-
|
|
1122
|
-
|
|
1216
|
+
r("span", null, y(B.adultsCount), 1),
|
|
1217
|
+
B.childrenCount > 0 ? (m(), H(G, {
|
|
1123
1218
|
key: 0,
|
|
1124
1219
|
icon: "child",
|
|
1125
1220
|
type: "fas",
|
|
1126
1221
|
color: "font"
|
|
1127
|
-
})) :
|
|
1128
|
-
|
|
1222
|
+
})) : V("", !0),
|
|
1223
|
+
B.childrenCount > 0 ? (m(), f("span", Hl, y(B.childrenCount), 1)) : V("", !0)
|
|
1129
1224
|
])
|
|
1130
1225
|
])
|
|
1131
1226
|
])
|
|
1132
1227
|
]),
|
|
1133
|
-
|
|
1134
|
-
(
|
|
1135
|
-
quantityStrategy:
|
|
1136
|
-
maximumNumber:
|
|
1137
|
-
id:
|
|
1138
|
-
name:
|
|
1139
|
-
price:
|
|
1140
|
-
}) => (
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1228
|
+
r("tbody", null, [
|
|
1229
|
+
(m(!0), f(I, null, M(g.addons, ({
|
|
1230
|
+
quantityStrategy: me,
|
|
1231
|
+
maximumNumber: Me,
|
|
1232
|
+
id: fe,
|
|
1233
|
+
name: Mt,
|
|
1234
|
+
price: Lt
|
|
1235
|
+
}) => (m(), f("tr", { key: fe }, [
|
|
1236
|
+
r("td", null, [
|
|
1237
|
+
r("b", null, y(l(ue)(Mt)), 1),
|
|
1238
|
+
Sl,
|
|
1239
|
+
r("span", null, y(l(ie)(Lt, l(K))) + " " + y(l(qt)(me)), 1)
|
|
1145
1240
|
]),
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1241
|
+
r("td", null, [
|
|
1242
|
+
l(E)[g.roomGroupID][X].config[B.configIdx].addons[B.roomIdx] ? (m(), f(I, { key: 0 }, [
|
|
1243
|
+
me === 1 || me === 12 ? (m(), H(nt, {
|
|
1244
|
+
key: 0,
|
|
1245
|
+
modelValue: l(E)[g.roomGroupID][X].config[B.configIdx].addons[B.roomIdx][fe],
|
|
1246
|
+
"onUpdate:modelValue": (Le) => l(E)[g.roomGroupID][X].config[B.configIdx].addons[B.roomIdx][fe] = Le,
|
|
1247
|
+
small: !0,
|
|
1248
|
+
"min-value": 0,
|
|
1249
|
+
"max-value": Me || 1 / 0
|
|
1250
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (m(), H(we, {
|
|
1251
|
+
key: 1,
|
|
1252
|
+
modelValue: l(E)[g.roomGroupID][X].config[B.configIdx].addons[B.roomIdx][fe],
|
|
1253
|
+
"onUpdate:modelValue": (Le) => l(E)[g.roomGroupID][X].config[B.configIdx].addons[B.roomIdx][fe] = Le,
|
|
1254
|
+
numeric: !0
|
|
1255
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1256
|
+
], 64)) : V("", !0)
|
|
1160
1257
|
])
|
|
1161
1258
|
]))), 128))
|
|
1162
1259
|
])
|
|
1163
1260
|
]))), 128))
|
|
1164
1261
|
]))), 128))
|
|
1165
1262
|
]))), 128))
|
|
1166
|
-
])) :
|
|
1263
|
+
])) : V("", !0)
|
|
1167
1264
|
])
|
|
1168
1265
|
])
|
|
1169
1266
|
]),
|
|
1170
|
-
navigation:
|
|
1171
|
-
|
|
1172
|
-
label:
|
|
1267
|
+
navigation: _(() => [
|
|
1268
|
+
v(se, {
|
|
1269
|
+
label: l(e)("general.startReservation"),
|
|
1173
1270
|
"full-width": "",
|
|
1174
|
-
onClickEvent:
|
|
1271
|
+
onClickEvent: J
|
|
1175
1272
|
}, null, 8, ["label", "onClickEvent"]),
|
|
1176
|
-
|
|
1273
|
+
r("button", {
|
|
1177
1274
|
class: "konnectio-abort-reservation link",
|
|
1178
|
-
onClick:
|
|
1275
|
+
onClick: $e((g) => We(P), ["prevent"])
|
|
1179
1276
|
}, [
|
|
1180
|
-
|
|
1181
|
-
], 8,
|
|
1277
|
+
r("span", null, y(l(e)("general.goAStepBack")), 1)
|
|
1278
|
+
], 8, Dl)
|
|
1182
1279
|
]),
|
|
1183
1280
|
_: 2
|
|
1184
1281
|
}, 1024)
|
|
1185
1282
|
]),
|
|
1186
|
-
reservation:
|
|
1187
|
-
|
|
1283
|
+
reservation: _(({ next: J, prev: P }) => [
|
|
1284
|
+
v(Ue, {
|
|
1188
1285
|
"show-terms-notice": !0,
|
|
1189
1286
|
"show-gift-card": !0
|
|
1190
1287
|
}, {
|
|
1191
|
-
form:
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1288
|
+
form: _(() => [
|
|
1289
|
+
r("form", Al, [
|
|
1290
|
+
r("h2", null, [
|
|
1291
|
+
r("span", null, y(l(e)("booking.reservation.detailsTitle")), 1)
|
|
1195
1292
|
]),
|
|
1196
|
-
!
|
|
1293
|
+
!l(Ee) && !(l(ye) && l(Be)) ? (m(), f("ul", {
|
|
1197
1294
|
key: 0,
|
|
1198
|
-
class:
|
|
1295
|
+
class: Ce({ "fresh-booking-split-inputs": !l(ye) && !l(Be) })
|
|
1199
1296
|
}, [
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
modelValue:
|
|
1203
|
-
"onUpdate:modelValue":
|
|
1204
|
-
label:
|
|
1297
|
+
l(ye) ? V("", !0) : (m(), f("li", Il, [
|
|
1298
|
+
v(Ze, {
|
|
1299
|
+
modelValue: l(d),
|
|
1300
|
+
"onUpdate:modelValue": $[1] || ($[1] = (g) => R(d) ? d.value = g : null),
|
|
1301
|
+
label: l(e)("booking.reservation.arrivalTime"),
|
|
1205
1302
|
icon: "hourglass-start",
|
|
1206
|
-
"hour-range":
|
|
1303
|
+
"hour-range": St.value,
|
|
1207
1304
|
required: ""
|
|
1208
1305
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1209
1306
|
])),
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
modelValue: s
|
|
1213
|
-
"onUpdate:modelValue":
|
|
1214
|
-
label:
|
|
1307
|
+
l(Be) ? V("", !0) : (m(), f("li", El, [
|
|
1308
|
+
v(Ze, {
|
|
1309
|
+
modelValue: l(s),
|
|
1310
|
+
"onUpdate:modelValue": $[2] || ($[2] = (g) => R(s) ? s.value = g : null),
|
|
1311
|
+
label: l(e)("booking.reservation.departureTime"),
|
|
1215
1312
|
icon: "hourglass-end",
|
|
1216
|
-
"hour-range":
|
|
1313
|
+
"hour-range": Dt.value,
|
|
1217
1314
|
required: ""
|
|
1218
1315
|
}, null, 8, ["modelValue", "label", "hour-range"])
|
|
1219
1316
|
]))
|
|
1220
|
-
], 2)) :
|
|
1221
|
-
|
|
1222
|
-
modelValue:
|
|
1223
|
-
"onUpdate:modelValue":
|
|
1224
|
-
title:
|
|
1225
|
-
"onUpdate:title":
|
|
1226
|
-
"exclude-title":
|
|
1227
|
-
label:
|
|
1317
|
+
], 2)) : V("", !0),
|
|
1318
|
+
v(Xo, {
|
|
1319
|
+
modelValue: l(u),
|
|
1320
|
+
"onUpdate:modelValue": $[3] || ($[3] = (g) => R(u) ? u.value = g : null),
|
|
1321
|
+
title: l(h),
|
|
1322
|
+
"onUpdate:title": $[4] || ($[4] = (g) => R(h) ? h.value = g : null),
|
|
1323
|
+
"exclude-title": l(vt),
|
|
1324
|
+
label: l(e)("booking.reservation.name"),
|
|
1228
1325
|
icon: "user-alt",
|
|
1229
|
-
placeholder:
|
|
1326
|
+
placeholder: l(e)("booking.reservation.namePlaceholder"),
|
|
1230
1327
|
required: ""
|
|
1231
1328
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
1232
|
-
|
|
1233
|
-
modelValue:
|
|
1234
|
-
"onUpdate:modelValue":
|
|
1329
|
+
v(ne, {
|
|
1330
|
+
modelValue: l(b),
|
|
1331
|
+
"onUpdate:modelValue": $[5] || ($[5] = (g) => R(b) ? b.value = g : null),
|
|
1235
1332
|
type: "email",
|
|
1236
1333
|
name: "email",
|
|
1237
1334
|
autocomplete: "email",
|
|
1238
|
-
label:
|
|
1335
|
+
label: l(e)("booking.reservation.email"),
|
|
1239
1336
|
icon: "at",
|
|
1240
|
-
placeholder:
|
|
1337
|
+
placeholder: l(e)("booking.reservation.emailPlaceholder"),
|
|
1241
1338
|
required: ""
|
|
1242
1339
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1243
|
-
|
|
1340
|
+
l(bt) ? V("", !0) : (m(), H(ne, {
|
|
1244
1341
|
key: 1,
|
|
1245
|
-
modelValue:
|
|
1246
|
-
"onUpdate:modelValue":
|
|
1247
|
-
type: "checkbox",
|
|
1248
|
-
name: "newsletter",
|
|
1249
|
-
label: s(e)("booking.reservation.newsletterSignUp")
|
|
1250
|
-
}, null, 8, ["modelValue", "label"])),
|
|
1251
|
-
s(Yt) ? x("", !0) : (E(), A(oe, {
|
|
1252
|
-
key: 2,
|
|
1253
|
-
modelValue: s(k),
|
|
1254
|
-
"onUpdate:modelValue": P[7] || (P[7] = (S) => B(k) ? k.value = S : null),
|
|
1342
|
+
modelValue: l(C),
|
|
1343
|
+
"onUpdate:modelValue": $[6] || ($[6] = (g) => R(C) ? C.value = g : null),
|
|
1255
1344
|
type: "text",
|
|
1256
1345
|
name: "firm",
|
|
1257
1346
|
autocomplete: "firm",
|
|
1258
|
-
label: `${
|
|
1347
|
+
label: `${l(e)("booking.reservation.companyName")} (${l(e)("booking.reservation.optional")})`,
|
|
1259
1348
|
icon: "id-card",
|
|
1260
|
-
placeholder:
|
|
1349
|
+
placeholder: l(e)("booking.reservation.companyNamePlaceholder")
|
|
1261
1350
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
1262
|
-
|
|
1263
|
-
modelValue:
|
|
1264
|
-
"onUpdate:modelValue":
|
|
1351
|
+
v(uo, {
|
|
1352
|
+
modelValue: l(D),
|
|
1353
|
+
"onUpdate:modelValue": $[7] || ($[7] = (g) => R(D) ? D.value = g : null),
|
|
1265
1354
|
icon: "phone-office",
|
|
1266
|
-
label:
|
|
1267
|
-
placeholder:
|
|
1355
|
+
label: l(e)("booking.reservation.phone"),
|
|
1356
|
+
placeholder: l(e)("booking.reservation.phonePlaceholder"),
|
|
1268
1357
|
required: ""
|
|
1269
1358
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1270
|
-
|
|
1271
|
-
modelValue:
|
|
1272
|
-
"onUpdate:modelValue":
|
|
1273
|
-
label:
|
|
1274
|
-
placeholder:
|
|
1275
|
-
options:
|
|
1359
|
+
v(zo, {
|
|
1360
|
+
modelValue: l(w),
|
|
1361
|
+
"onUpdate:modelValue": $[8] || ($[8] = (g) => R(w) ? w.value = g : null),
|
|
1362
|
+
label: l(e)("booking.reservation.country"),
|
|
1363
|
+
placeholder: l(e)("booking.reservation.countryPlaceholder"),
|
|
1364
|
+
options: l(n),
|
|
1276
1365
|
required: ""
|
|
1277
1366
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
1278
|
-
|
|
1279
|
-
modelValue:
|
|
1280
|
-
"onUpdate:modelValue":
|
|
1367
|
+
v(ne, {
|
|
1368
|
+
modelValue: l(k),
|
|
1369
|
+
"onUpdate:modelValue": $[9] || ($[9] = (g) => R(k) ? k.value = g : null),
|
|
1281
1370
|
type: "textarea",
|
|
1282
1371
|
name: "address",
|
|
1283
1372
|
autocomplete: "street-address",
|
|
1284
|
-
label:
|
|
1373
|
+
label: l(e)("booking.reservation.streetAddress"),
|
|
1285
1374
|
icon: "map-marked",
|
|
1286
|
-
placeholder:
|
|
1375
|
+
placeholder: l(e)("booking.reservation.streetAddressPlaceholder"),
|
|
1287
1376
|
required: ""
|
|
1288
1377
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
modelValue:
|
|
1293
|
-
"onUpdate:modelValue":
|
|
1378
|
+
r("ul", Bl, [
|
|
1379
|
+
r("li", null, [
|
|
1380
|
+
v(ne, {
|
|
1381
|
+
modelValue: l(O),
|
|
1382
|
+
"onUpdate:modelValue": $[10] || ($[10] = (g) => R(O) ? O.value = g : null),
|
|
1294
1383
|
type: "text",
|
|
1295
1384
|
name: "postal",
|
|
1296
1385
|
autocomplete: "postal-code",
|
|
1297
|
-
label:
|
|
1386
|
+
label: l(e)("booking.reservation.postal"),
|
|
1298
1387
|
icon: "mailbox",
|
|
1299
|
-
placeholder:
|
|
1388
|
+
placeholder: l(e)("booking.reservation.postalPlaceholder"),
|
|
1300
1389
|
required: ""
|
|
1301
1390
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1302
1391
|
]),
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
modelValue:
|
|
1306
|
-
"onUpdate:modelValue":
|
|
1392
|
+
r("li", null, [
|
|
1393
|
+
v(ne, {
|
|
1394
|
+
modelValue: l(N),
|
|
1395
|
+
"onUpdate:modelValue": $[11] || ($[11] = (g) => R(N) ? N.value = g : null),
|
|
1307
1396
|
type: "text",
|
|
1308
1397
|
name: "city",
|
|
1309
1398
|
autocomplete: "address-level2",
|
|
1310
|
-
label:
|
|
1399
|
+
label: l(e)("booking.reservation.city"),
|
|
1311
1400
|
icon: "city",
|
|
1312
|
-
placeholder:
|
|
1401
|
+
placeholder: l(e)("booking.reservation.cityPlaceholder"),
|
|
1313
1402
|
required: ""
|
|
1314
1403
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1315
1404
|
])
|
|
1316
1405
|
]),
|
|
1317
|
-
|
|
1318
|
-
modelValue:
|
|
1319
|
-
"onUpdate:modelValue":
|
|
1406
|
+
v(ne, {
|
|
1407
|
+
modelValue: l(A),
|
|
1408
|
+
"onUpdate:modelValue": $[12] || ($[12] = (g) => R(A) ? A.value = g : null),
|
|
1320
1409
|
type: "textarea",
|
|
1321
|
-
label: `${
|
|
1410
|
+
label: `${l(e)("booking.reservation.remark")} (${l(e)("booking.reservation.optional")})`,
|
|
1322
1411
|
icon: "info-circle",
|
|
1323
|
-
placeholder:
|
|
1412
|
+
placeholder: l(e)("booking.reservation.remarkPlaceholder")
|
|
1324
1413
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1325
|
-
|
|
1326
|
-
modelValue:
|
|
1327
|
-
"onUpdate:modelValue":
|
|
1414
|
+
v(ne, {
|
|
1415
|
+
modelValue: l(F),
|
|
1416
|
+
"onUpdate:modelValue": $[13] || ($[13] = (g) => R(F) ? F.value = g : null),
|
|
1328
1417
|
type: "textarea",
|
|
1329
|
-
label: `${
|
|
1418
|
+
label: `${l(e)("booking.reservation.allergies")} (${l(e)("booking.reservation.optional")})`,
|
|
1330
1419
|
icon: "allergies",
|
|
1331
|
-
placeholder:
|
|
1420
|
+
placeholder: l(e)("booking.reservation.allergiesPlaceholder")
|
|
1332
1421
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1333
|
-
|
|
1334
|
-
key:
|
|
1335
|
-
modelValue:
|
|
1336
|
-
"onUpdate:modelValue":
|
|
1337
|
-
label: `${
|
|
1422
|
+
l(gt) ? V("", !0) : (m(), H(Yo, {
|
|
1423
|
+
key: 2,
|
|
1424
|
+
modelValue: l(p),
|
|
1425
|
+
"onUpdate:modelValue": $[14] || ($[14] = (g) => R(p) ? p.value = g : null),
|
|
1426
|
+
label: `${l(e)("booking.reservation.purposeOfStay")} (${l(e)("booking.reservation.optional")})`,
|
|
1338
1427
|
name: "travelingFor",
|
|
1339
|
-
checkboxes:
|
|
1428
|
+
checkboxes: Pt.value
|
|
1340
1429
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
1341
1430
|
])
|
|
1342
1431
|
]),
|
|
1343
|
-
navigation:
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
label:
|
|
1347
|
-
disabled: !
|
|
1348
|
-
"is-loading":
|
|
1432
|
+
navigation: _(() => [
|
|
1433
|
+
r("div", null, [
|
|
1434
|
+
v(se, {
|
|
1435
|
+
label: l(kt) ? l(e)("booking.reservation.nextButton") : l(e)("general.confirmReservation"),
|
|
1436
|
+
disabled: !l(c),
|
|
1437
|
+
"is-loading": l(i),
|
|
1349
1438
|
"full-width": "",
|
|
1350
|
-
onClickEvent: (
|
|
1439
|
+
onClickEvent: (g) => It(J)
|
|
1351
1440
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
1352
|
-
|
|
1441
|
+
r("button", {
|
|
1353
1442
|
class: "konnectio-abort-reservation link",
|
|
1354
|
-
onClick:
|
|
1443
|
+
onClick: $e((g) => We(P), ["prevent"])
|
|
1355
1444
|
}, [
|
|
1356
|
-
|
|
1357
|
-
], 8,
|
|
1445
|
+
r("span", null, y(l(e)("general.goAStepBack")), 1)
|
|
1446
|
+
], 8, Ml)
|
|
1358
1447
|
])
|
|
1359
1448
|
]),
|
|
1360
1449
|
_: 2
|
|
1361
1450
|
}, 1024)
|
|
1362
1451
|
]),
|
|
1363
|
-
payment:
|
|
1364
|
-
|
|
1452
|
+
payment: _(() => [
|
|
1453
|
+
v(co)
|
|
1365
1454
|
]),
|
|
1366
|
-
confirmation:
|
|
1367
|
-
|
|
1368
|
-
message:
|
|
1455
|
+
confirmation: _(() => [
|
|
1456
|
+
v(lo, {
|
|
1457
|
+
message: l(e)("booking.confirmation.thankYou")
|
|
1369
1458
|
}, null, 8, ["message"])
|
|
1370
1459
|
]),
|
|
1371
1460
|
_: 1
|
|
@@ -1374,8 +1463,8 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
1374
1463
|
_: 1
|
|
1375
1464
|
}, 8, ["access-token"])
|
|
1376
1465
|
]),
|
|
1377
|
-
fallback:
|
|
1378
|
-
|
|
1466
|
+
fallback: _(() => [
|
|
1467
|
+
v(ll)
|
|
1379
1468
|
]),
|
|
1380
1469
|
_: 1
|
|
1381
1470
|
}))
|
|
@@ -1383,1125 +1472,31 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
|
|
|
1383
1472
|
_: 1
|
|
1384
1473
|
}, 8, ["styling"]));
|
|
1385
1474
|
}
|
|
1386
|
-
}),
|
|
1387
|
-
|
|
1388
|
-
function Ke() {
|
|
1389
|
-
return st || (st = 1, function(o) {
|
|
1390
|
-
(function(e, t) {
|
|
1391
|
-
o.exports ? o.exports = t() : e.EvEmitter = t();
|
|
1392
|
-
})(typeof window != "undefined" ? window : Ct, function() {
|
|
1393
|
-
function e() {
|
|
1394
|
-
}
|
|
1395
|
-
var t = e.prototype;
|
|
1396
|
-
return t.on = function(n, l) {
|
|
1397
|
-
if (!(!n || !l)) {
|
|
1398
|
-
var u = this._events = this._events || {}, p = u[n] = u[n] || [];
|
|
1399
|
-
return p.indexOf(l) == -1 && p.push(l), this;
|
|
1400
|
-
}
|
|
1401
|
-
}, t.once = function(n, l) {
|
|
1402
|
-
if (!(!n || !l)) {
|
|
1403
|
-
this.on(n, l);
|
|
1404
|
-
var u = this._onceEvents = this._onceEvents || {}, p = u[n] = u[n] || {};
|
|
1405
|
-
return p[l] = !0, this;
|
|
1406
|
-
}
|
|
1407
|
-
}, t.off = function(n, l) {
|
|
1408
|
-
var u = this._events && this._events[n];
|
|
1409
|
-
if (!(!u || !u.length)) {
|
|
1410
|
-
var p = u.indexOf(l);
|
|
1411
|
-
return p != -1 && u.splice(p, 1), this;
|
|
1412
|
-
}
|
|
1413
|
-
}, t.emitEvent = function(n, l) {
|
|
1414
|
-
var u = this._events && this._events[n];
|
|
1415
|
-
if (!(!u || !u.length)) {
|
|
1416
|
-
u = u.slice(0), l = l || [];
|
|
1417
|
-
for (var p = this._onceEvents && this._onceEvents[n], h = 0; h < u.length; h++) {
|
|
1418
|
-
var d = u[h], c = p && p[d];
|
|
1419
|
-
c && (this.off(n, d), delete p[d]), d.apply(this, l);
|
|
1420
|
-
}
|
|
1421
|
-
return this;
|
|
1422
|
-
}
|
|
1423
|
-
}, t.allOff = function() {
|
|
1424
|
-
delete this._events, delete this._onceEvents;
|
|
1425
|
-
}, e;
|
|
1426
|
-
});
|
|
1427
|
-
}(Oe)), Oe.exports;
|
|
1428
|
-
}
|
|
1429
|
-
var Re = { exports: {} };
|
|
1430
|
-
/*!
|
|
1431
|
-
* getSize v2.0.3
|
|
1432
|
-
* measure size of elements
|
|
1433
|
-
* MIT license
|
|
1434
|
-
*/
|
|
1435
|
-
var at;
|
|
1436
|
-
function Qe() {
|
|
1437
|
-
return at || (at = 1, function(o) {
|
|
1438
|
-
(function(e, t) {
|
|
1439
|
-
o.exports ? o.exports = t() : e.getSize = t();
|
|
1440
|
-
})(window, function() {
|
|
1441
|
-
function t(r) {
|
|
1442
|
-
var k = parseFloat(r), _ = r.indexOf("%") == -1 && !isNaN(k);
|
|
1443
|
-
return _ && k;
|
|
1444
|
-
}
|
|
1445
|
-
function n() {
|
|
1446
|
-
}
|
|
1447
|
-
var l = typeof console == "undefined" ? n : function(r) {
|
|
1448
|
-
console.error(r);
|
|
1449
|
-
}, u = [
|
|
1450
|
-
"paddingLeft",
|
|
1451
|
-
"paddingRight",
|
|
1452
|
-
"paddingTop",
|
|
1453
|
-
"paddingBottom",
|
|
1454
|
-
"marginLeft",
|
|
1455
|
-
"marginRight",
|
|
1456
|
-
"marginTop",
|
|
1457
|
-
"marginBottom",
|
|
1458
|
-
"borderLeftWidth",
|
|
1459
|
-
"borderRightWidth",
|
|
1460
|
-
"borderTopWidth",
|
|
1461
|
-
"borderBottomWidth"
|
|
1462
|
-
], p = u.length;
|
|
1463
|
-
function h() {
|
|
1464
|
-
for (var r = {
|
|
1465
|
-
width: 0,
|
|
1466
|
-
height: 0,
|
|
1467
|
-
innerWidth: 0,
|
|
1468
|
-
innerHeight: 0,
|
|
1469
|
-
outerWidth: 0,
|
|
1470
|
-
outerHeight: 0
|
|
1471
|
-
}, k = 0; k < p; k++) {
|
|
1472
|
-
var _ = u[k];
|
|
1473
|
-
r[_] = 0;
|
|
1474
|
-
}
|
|
1475
|
-
return r;
|
|
1476
|
-
}
|
|
1477
|
-
function d(r) {
|
|
1478
|
-
var k = getComputedStyle(r);
|
|
1479
|
-
return k || l("Style returned " + k + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), k;
|
|
1480
|
-
}
|
|
1481
|
-
var c = !1, g;
|
|
1482
|
-
function y() {
|
|
1483
|
-
if (!c) {
|
|
1484
|
-
c = !0;
|
|
1485
|
-
var r = document.createElement("div");
|
|
1486
|
-
r.style.width = "200px", r.style.padding = "1px 2px 3px 4px", r.style.borderStyle = "solid", r.style.borderWidth = "1px 2px 3px 4px", r.style.boxSizing = "border-box";
|
|
1487
|
-
var k = document.body || document.documentElement;
|
|
1488
|
-
k.appendChild(r);
|
|
1489
|
-
var _ = d(r);
|
|
1490
|
-
g = Math.round(t(_.width)) == 200, b.isBoxSizeOuter = g, k.removeChild(r);
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
function b(r) {
|
|
1494
|
-
if (y(), typeof r == "string" && (r = document.querySelector(r)), !(!r || typeof r != "object" || !r.nodeType)) {
|
|
1495
|
-
var k = d(r);
|
|
1496
|
-
if (k.display == "none")
|
|
1497
|
-
return h();
|
|
1498
|
-
var _ = {};
|
|
1499
|
-
_.width = r.offsetWidth, _.height = r.offsetHeight;
|
|
1500
|
-
for (var f = _.isBorderBox = k.boxSizing == "border-box", i = 0; i < p; i++) {
|
|
1501
|
-
var a = u[i], m = k[a], T = parseFloat(m);
|
|
1502
|
-
_[a] = isNaN(T) ? 0 : T;
|
|
1503
|
-
}
|
|
1504
|
-
var C = _.paddingLeft + _.paddingRight, w = _.paddingTop + _.paddingBottom, V = _.marginLeft + _.marginRight, W = _.marginTop + _.marginBottom, D = _.borderLeftWidth + _.borderRightWidth, G = _.borderTopWidth + _.borderBottomWidth, ee = f && g, j = t(k.width);
|
|
1505
|
-
j !== !1 && (_.width = j + // add padding and border unless it's already including it
|
|
1506
|
-
(ee ? 0 : C + D));
|
|
1507
|
-
var se = t(k.height);
|
|
1508
|
-
return se !== !1 && (_.height = se + // add padding and border unless it's already including it
|
|
1509
|
-
(ee ? 0 : w + G)), _.innerWidth = _.width - (C + D), _.innerHeight = _.height - (w + G), _.outerWidth = _.width + V, _.outerHeight = _.height + W, _;
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
return b;
|
|
1513
|
-
});
|
|
1514
|
-
}(Re)), Re.exports;
|
|
1515
|
-
}
|
|
1516
|
-
var De = { exports: {} }, Ae = { exports: {} }, lt;
|
|
1517
|
-
function mi() {
|
|
1518
|
-
return lt || (lt = 1, function(o) {
|
|
1519
|
-
(function(e, t) {
|
|
1520
|
-
o.exports ? o.exports = t() : e.matchesSelector = t();
|
|
1521
|
-
})(window, function() {
|
|
1522
|
-
var t = function() {
|
|
1523
|
-
var n = window.Element.prototype;
|
|
1524
|
-
if (n.matches)
|
|
1525
|
-
return "matches";
|
|
1526
|
-
if (n.matchesSelector)
|
|
1527
|
-
return "matchesSelector";
|
|
1528
|
-
for (var l = ["webkit", "moz", "ms", "o"], u = 0; u < l.length; u++) {
|
|
1529
|
-
var p = l[u], h = p + "MatchesSelector";
|
|
1530
|
-
if (n[h])
|
|
1531
|
-
return h;
|
|
1532
|
-
}
|
|
1533
|
-
}();
|
|
1534
|
-
return function(l, u) {
|
|
1535
|
-
return l[t](u);
|
|
1536
|
-
};
|
|
1537
|
-
});
|
|
1538
|
-
}(Ae)), Ae.exports;
|
|
1539
|
-
}
|
|
1540
|
-
var ut;
|
|
1541
|
-
function gi() {
|
|
1542
|
-
return ut || (ut = 1, function(o) {
|
|
1543
|
-
(function(e, t) {
|
|
1544
|
-
o.exports ? o.exports = t(
|
|
1545
|
-
e,
|
|
1546
|
-
mi()
|
|
1547
|
-
) : e.fizzyUIUtils = t(
|
|
1548
|
-
e,
|
|
1549
|
-
e.matchesSelector
|
|
1550
|
-
);
|
|
1551
|
-
})(window, function(t, n) {
|
|
1552
|
-
var l = {};
|
|
1553
|
-
l.extend = function(h, d) {
|
|
1554
|
-
for (var c in d)
|
|
1555
|
-
h[c] = d[c];
|
|
1556
|
-
return h;
|
|
1557
|
-
}, l.modulo = function(h, d) {
|
|
1558
|
-
return (h % d + d) % d;
|
|
1559
|
-
};
|
|
1560
|
-
var u = Array.prototype.slice;
|
|
1561
|
-
l.makeArray = function(h) {
|
|
1562
|
-
if (Array.isArray(h))
|
|
1563
|
-
return h;
|
|
1564
|
-
if (h == null)
|
|
1565
|
-
return [];
|
|
1566
|
-
var d = typeof h == "object" && typeof h.length == "number";
|
|
1567
|
-
return d ? u.call(h) : [h];
|
|
1568
|
-
}, l.removeFrom = function(h, d) {
|
|
1569
|
-
var c = h.indexOf(d);
|
|
1570
|
-
c != -1 && h.splice(c, 1);
|
|
1571
|
-
}, l.getParent = function(h, d) {
|
|
1572
|
-
for (; h.parentNode && h != document.body; )
|
|
1573
|
-
if (h = h.parentNode, n(h, d))
|
|
1574
|
-
return h;
|
|
1575
|
-
}, l.getQueryElement = function(h) {
|
|
1576
|
-
return typeof h == "string" ? document.querySelector(h) : h;
|
|
1577
|
-
}, l.handleEvent = function(h) {
|
|
1578
|
-
var d = "on" + h.type;
|
|
1579
|
-
this[d] && this[d](h);
|
|
1580
|
-
}, l.filterFindElements = function(h, d) {
|
|
1581
|
-
h = l.makeArray(h);
|
|
1582
|
-
var c = [];
|
|
1583
|
-
return h.forEach(function(g) {
|
|
1584
|
-
if (g instanceof HTMLElement) {
|
|
1585
|
-
if (!d) {
|
|
1586
|
-
c.push(g);
|
|
1587
|
-
return;
|
|
1588
|
-
}
|
|
1589
|
-
n(g, d) && c.push(g);
|
|
1590
|
-
for (var y = g.querySelectorAll(d), b = 0; b < y.length; b++)
|
|
1591
|
-
c.push(y[b]);
|
|
1592
|
-
}
|
|
1593
|
-
}), c;
|
|
1594
|
-
}, l.debounceMethod = function(h, d, c) {
|
|
1595
|
-
c = c || 100;
|
|
1596
|
-
var g = h.prototype[d], y = d + "Timeout";
|
|
1597
|
-
h.prototype[d] = function() {
|
|
1598
|
-
var b = this[y];
|
|
1599
|
-
clearTimeout(b);
|
|
1600
|
-
var r = arguments, k = this;
|
|
1601
|
-
this[y] = setTimeout(function() {
|
|
1602
|
-
g.apply(k, r), delete k[y];
|
|
1603
|
-
}, c);
|
|
1604
|
-
};
|
|
1605
|
-
}, l.docReady = function(h) {
|
|
1606
|
-
var d = document.readyState;
|
|
1607
|
-
d == "complete" || d == "interactive" ? setTimeout(h) : document.addEventListener("DOMContentLoaded", h);
|
|
1608
|
-
}, l.toDashed = function(h) {
|
|
1609
|
-
return h.replace(/(.)([A-Z])/g, function(d, c, g) {
|
|
1610
|
-
return c + "-" + g;
|
|
1611
|
-
}).toLowerCase();
|
|
1612
|
-
};
|
|
1613
|
-
var p = t.console;
|
|
1614
|
-
return l.htmlInit = function(h, d) {
|
|
1615
|
-
l.docReady(function() {
|
|
1616
|
-
var c = l.toDashed(d), g = "data-" + c, y = document.querySelectorAll("[" + g + "]"), b = document.querySelectorAll(".js-" + c), r = l.makeArray(y).concat(l.makeArray(b)), k = g + "-options", _ = t.jQuery;
|
|
1617
|
-
r.forEach(function(f) {
|
|
1618
|
-
var i = f.getAttribute(g) || f.getAttribute(k), a;
|
|
1619
|
-
try {
|
|
1620
|
-
a = i && JSON.parse(i);
|
|
1621
|
-
} catch (T) {
|
|
1622
|
-
p && p.error("Error parsing " + g + " on " + f.className + ": " + T);
|
|
1623
|
-
return;
|
|
1624
|
-
}
|
|
1625
|
-
var m = new h(f, a);
|
|
1626
|
-
_ && _.data(f, d, m);
|
|
1627
|
-
});
|
|
1628
|
-
});
|
|
1629
|
-
}, l;
|
|
1630
|
-
});
|
|
1631
|
-
}(De)), De.exports;
|
|
1632
|
-
}
|
|
1633
|
-
var Me = { exports: {} }, dt;
|
|
1634
|
-
function vi() {
|
|
1635
|
-
return dt || (dt = 1, function(o) {
|
|
1636
|
-
(function(e, t) {
|
|
1637
|
-
o.exports ? o.exports = t(
|
|
1638
|
-
Ke(),
|
|
1639
|
-
Qe()
|
|
1640
|
-
) : (e.Outlayer = {}, e.Outlayer.Item = t(
|
|
1641
|
-
e.EvEmitter,
|
|
1642
|
-
e.getSize
|
|
1643
|
-
));
|
|
1644
|
-
})(window, function(t, n) {
|
|
1645
|
-
function l(f) {
|
|
1646
|
-
for (var i in f)
|
|
1647
|
-
return !1;
|
|
1648
|
-
return i = null, !0;
|
|
1649
|
-
}
|
|
1650
|
-
var u = document.documentElement.style, p = typeof u.transition == "string" ? "transition" : "WebkitTransition", h = typeof u.transform == "string" ? "transform" : "WebkitTransform", d = {
|
|
1651
|
-
WebkitTransition: "webkitTransitionEnd",
|
|
1652
|
-
transition: "transitionend"
|
|
1653
|
-
}[p], c = {
|
|
1654
|
-
transform: h,
|
|
1655
|
-
transition: p,
|
|
1656
|
-
transitionDuration: p + "Duration",
|
|
1657
|
-
transitionProperty: p + "Property",
|
|
1658
|
-
transitionDelay: p + "Delay"
|
|
1659
|
-
};
|
|
1660
|
-
function g(f, i) {
|
|
1661
|
-
f && (this.element = f, this.layout = i, this.position = {
|
|
1662
|
-
x: 0,
|
|
1663
|
-
y: 0
|
|
1664
|
-
}, this._create());
|
|
1665
|
-
}
|
|
1666
|
-
var y = g.prototype = Object.create(t.prototype);
|
|
1667
|
-
y.constructor = g, y._create = function() {
|
|
1668
|
-
this._transn = {
|
|
1669
|
-
ingProperties: {},
|
|
1670
|
-
clean: {},
|
|
1671
|
-
onEnd: {}
|
|
1672
|
-
}, this.css({
|
|
1673
|
-
position: "absolute"
|
|
1674
|
-
});
|
|
1675
|
-
}, y.handleEvent = function(f) {
|
|
1676
|
-
var i = "on" + f.type;
|
|
1677
|
-
this[i] && this[i](f);
|
|
1678
|
-
}, y.getSize = function() {
|
|
1679
|
-
this.size = n(this.element);
|
|
1680
|
-
}, y.css = function(f) {
|
|
1681
|
-
var i = this.element.style;
|
|
1682
|
-
for (var a in f) {
|
|
1683
|
-
var m = c[a] || a;
|
|
1684
|
-
i[m] = f[a];
|
|
1685
|
-
}
|
|
1686
|
-
}, y.getPosition = function() {
|
|
1687
|
-
var f = getComputedStyle(this.element), i = this.layout._getOption("originLeft"), a = this.layout._getOption("originTop"), m = f[i ? "left" : "right"], T = f[a ? "top" : "bottom"], C = parseFloat(m), w = parseFloat(T), V = this.layout.size;
|
|
1688
|
-
m.indexOf("%") != -1 && (C = C / 100 * V.width), T.indexOf("%") != -1 && (w = w / 100 * V.height), C = isNaN(C) ? 0 : C, w = isNaN(w) ? 0 : w, C -= i ? V.paddingLeft : V.paddingRight, w -= a ? V.paddingTop : V.paddingBottom, this.position.x = C, this.position.y = w;
|
|
1689
|
-
}, y.layoutPosition = function() {
|
|
1690
|
-
var f = this.layout.size, i = {}, a = this.layout._getOption("originLeft"), m = this.layout._getOption("originTop"), T = a ? "paddingLeft" : "paddingRight", C = a ? "left" : "right", w = a ? "right" : "left", V = this.position.x + f[T];
|
|
1691
|
-
i[C] = this.getXValue(V), i[w] = "";
|
|
1692
|
-
var W = m ? "paddingTop" : "paddingBottom", D = m ? "top" : "bottom", G = m ? "bottom" : "top", ee = this.position.y + f[W];
|
|
1693
|
-
i[D] = this.getYValue(ee), i[G] = "", this.css(i), this.emitEvent("layout", [this]);
|
|
1694
|
-
}, y.getXValue = function(f) {
|
|
1695
|
-
var i = this.layout._getOption("horizontal");
|
|
1696
|
-
return this.layout.options.percentPosition && !i ? f / this.layout.size.width * 100 + "%" : f + "px";
|
|
1697
|
-
}, y.getYValue = function(f) {
|
|
1698
|
-
var i = this.layout._getOption("horizontal");
|
|
1699
|
-
return this.layout.options.percentPosition && i ? f / this.layout.size.height * 100 + "%" : f + "px";
|
|
1700
|
-
}, y._transitionTo = function(f, i) {
|
|
1701
|
-
this.getPosition();
|
|
1702
|
-
var a = this.position.x, m = this.position.y, T = f == this.position.x && i == this.position.y;
|
|
1703
|
-
if (this.setPosition(f, i), T && !this.isTransitioning) {
|
|
1704
|
-
this.layoutPosition();
|
|
1705
|
-
return;
|
|
1706
|
-
}
|
|
1707
|
-
var C = f - a, w = i - m, V = {};
|
|
1708
|
-
V.transform = this.getTranslate(C, w), this.transition({
|
|
1709
|
-
to: V,
|
|
1710
|
-
onTransitionEnd: {
|
|
1711
|
-
transform: this.layoutPosition
|
|
1712
|
-
},
|
|
1713
|
-
isCleaning: !0
|
|
1714
|
-
});
|
|
1715
|
-
}, y.getTranslate = function(f, i) {
|
|
1716
|
-
var a = this.layout._getOption("originLeft"), m = this.layout._getOption("originTop");
|
|
1717
|
-
return f = a ? f : -f, i = m ? i : -i, "translate3d(" + f + "px, " + i + "px, 0)";
|
|
1718
|
-
}, y.goTo = function(f, i) {
|
|
1719
|
-
this.setPosition(f, i), this.layoutPosition();
|
|
1720
|
-
}, y.moveTo = y._transitionTo, y.setPosition = function(f, i) {
|
|
1721
|
-
this.position.x = parseFloat(f), this.position.y = parseFloat(i);
|
|
1722
|
-
}, y._nonTransition = function(f) {
|
|
1723
|
-
this.css(f.to), f.isCleaning && this._removeStyles(f.to);
|
|
1724
|
-
for (var i in f.onTransitionEnd)
|
|
1725
|
-
f.onTransitionEnd[i].call(this);
|
|
1726
|
-
}, y.transition = function(f) {
|
|
1727
|
-
if (!parseFloat(this.layout.options.transitionDuration)) {
|
|
1728
|
-
this._nonTransition(f);
|
|
1729
|
-
return;
|
|
1730
|
-
}
|
|
1731
|
-
var i = this._transn;
|
|
1732
|
-
for (var a in f.onTransitionEnd)
|
|
1733
|
-
i.onEnd[a] = f.onTransitionEnd[a];
|
|
1734
|
-
for (a in f.to)
|
|
1735
|
-
i.ingProperties[a] = !0, f.isCleaning && (i.clean[a] = !0);
|
|
1736
|
-
f.from && (this.css(f.from), this.element.offsetHeight), this.enableTransition(f.to), this.css(f.to), this.isTransitioning = !0;
|
|
1737
|
-
};
|
|
1738
|
-
function b(f) {
|
|
1739
|
-
return f.replace(/([A-Z])/g, function(i) {
|
|
1740
|
-
return "-" + i.toLowerCase();
|
|
1741
|
-
});
|
|
1742
|
-
}
|
|
1743
|
-
var r = "opacity," + b(h);
|
|
1744
|
-
y.enableTransition = function() {
|
|
1745
|
-
if (!this.isTransitioning) {
|
|
1746
|
-
var f = this.layout.options.transitionDuration;
|
|
1747
|
-
f = typeof f == "number" ? f + "ms" : f, this.css({
|
|
1748
|
-
transitionProperty: r,
|
|
1749
|
-
transitionDuration: f,
|
|
1750
|
-
transitionDelay: this.staggerDelay || 0
|
|
1751
|
-
}), this.element.addEventListener(d, this, !1);
|
|
1752
|
-
}
|
|
1753
|
-
}, y.onwebkitTransitionEnd = function(f) {
|
|
1754
|
-
this.ontransitionend(f);
|
|
1755
|
-
}, y.onotransitionend = function(f) {
|
|
1756
|
-
this.ontransitionend(f);
|
|
1757
|
-
};
|
|
1758
|
-
var k = {
|
|
1759
|
-
"-webkit-transform": "transform"
|
|
1760
|
-
};
|
|
1761
|
-
y.ontransitionend = function(f) {
|
|
1762
|
-
if (f.target === this.element) {
|
|
1763
|
-
var i = this._transn, a = k[f.propertyName] || f.propertyName;
|
|
1764
|
-
if (delete i.ingProperties[a], l(i.ingProperties) && this.disableTransition(), a in i.clean && (this.element.style[f.propertyName] = "", delete i.clean[a]), a in i.onEnd) {
|
|
1765
|
-
var m = i.onEnd[a];
|
|
1766
|
-
m.call(this), delete i.onEnd[a];
|
|
1767
|
-
}
|
|
1768
|
-
this.emitEvent("transitionEnd", [this]);
|
|
1769
|
-
}
|
|
1770
|
-
}, y.disableTransition = function() {
|
|
1771
|
-
this.removeTransitionStyles(), this.element.removeEventListener(d, this, !1), this.isTransitioning = !1;
|
|
1772
|
-
}, y._removeStyles = function(f) {
|
|
1773
|
-
var i = {};
|
|
1774
|
-
for (var a in f)
|
|
1775
|
-
i[a] = "";
|
|
1776
|
-
this.css(i);
|
|
1777
|
-
};
|
|
1778
|
-
var _ = {
|
|
1779
|
-
transitionProperty: "",
|
|
1780
|
-
transitionDuration: "",
|
|
1781
|
-
transitionDelay: ""
|
|
1782
|
-
};
|
|
1783
|
-
return y.removeTransitionStyles = function() {
|
|
1784
|
-
this.css(_);
|
|
1785
|
-
}, y.stagger = function(f) {
|
|
1786
|
-
f = isNaN(f) ? 0 : f, this.staggerDelay = f + "ms";
|
|
1787
|
-
}, y.removeElem = function() {
|
|
1788
|
-
this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
|
|
1789
|
-
}, y.remove = function() {
|
|
1790
|
-
if (!p || !parseFloat(this.layout.options.transitionDuration)) {
|
|
1791
|
-
this.removeElem();
|
|
1792
|
-
return;
|
|
1793
|
-
}
|
|
1794
|
-
this.once("transitionEnd", function() {
|
|
1795
|
-
this.removeElem();
|
|
1796
|
-
}), this.hide();
|
|
1797
|
-
}, y.reveal = function() {
|
|
1798
|
-
delete this.isHidden, this.css({ display: "" });
|
|
1799
|
-
var f = this.layout.options, i = {}, a = this.getHideRevealTransitionEndProperty("visibleStyle");
|
|
1800
|
-
i[a] = this.onRevealTransitionEnd, this.transition({
|
|
1801
|
-
from: f.hiddenStyle,
|
|
1802
|
-
to: f.visibleStyle,
|
|
1803
|
-
isCleaning: !0,
|
|
1804
|
-
onTransitionEnd: i
|
|
1805
|
-
});
|
|
1806
|
-
}, y.onRevealTransitionEnd = function() {
|
|
1807
|
-
this.isHidden || this.emitEvent("reveal");
|
|
1808
|
-
}, y.getHideRevealTransitionEndProperty = function(f) {
|
|
1809
|
-
var i = this.layout.options[f];
|
|
1810
|
-
if (i.opacity)
|
|
1811
|
-
return "opacity";
|
|
1812
|
-
for (var a in i)
|
|
1813
|
-
return a;
|
|
1814
|
-
}, y.hide = function() {
|
|
1815
|
-
this.isHidden = !0, this.css({ display: "" });
|
|
1816
|
-
var f = this.layout.options, i = {}, a = this.getHideRevealTransitionEndProperty("hiddenStyle");
|
|
1817
|
-
i[a] = this.onHideTransitionEnd, this.transition({
|
|
1818
|
-
from: f.visibleStyle,
|
|
1819
|
-
to: f.hiddenStyle,
|
|
1820
|
-
// keep hidden stuff hidden
|
|
1821
|
-
isCleaning: !0,
|
|
1822
|
-
onTransitionEnd: i
|
|
1823
|
-
});
|
|
1824
|
-
}, y.onHideTransitionEnd = function() {
|
|
1825
|
-
this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide"));
|
|
1826
|
-
}, y.destroy = function() {
|
|
1827
|
-
this.css({
|
|
1828
|
-
position: "",
|
|
1829
|
-
left: "",
|
|
1830
|
-
right: "",
|
|
1831
|
-
top: "",
|
|
1832
|
-
bottom: "",
|
|
1833
|
-
transition: "",
|
|
1834
|
-
transform: ""
|
|
1835
|
-
});
|
|
1836
|
-
}, g;
|
|
1837
|
-
});
|
|
1838
|
-
}(Me)), Me.exports;
|
|
1839
|
-
}
|
|
1840
|
-
/*!
|
|
1841
|
-
* Outlayer v2.1.1
|
|
1842
|
-
* the brains and guts of a layout library
|
|
1843
|
-
* MIT license
|
|
1844
|
-
*/
|
|
1845
|
-
var ct;
|
|
1846
|
-
function yi() {
|
|
1847
|
-
return ct || (ct = 1, function(o) {
|
|
1848
|
-
(function(e, t) {
|
|
1849
|
-
o.exports ? o.exports = t(
|
|
1850
|
-
e,
|
|
1851
|
-
Ke(),
|
|
1852
|
-
Qe(),
|
|
1853
|
-
gi(),
|
|
1854
|
-
vi()
|
|
1855
|
-
) : e.Outlayer = t(
|
|
1856
|
-
e,
|
|
1857
|
-
e.EvEmitter,
|
|
1858
|
-
e.getSize,
|
|
1859
|
-
e.fizzyUIUtils,
|
|
1860
|
-
e.Outlayer.Item
|
|
1861
|
-
);
|
|
1862
|
-
})(window, function(t, n, l, u, p) {
|
|
1863
|
-
var h = t.console, d = t.jQuery, c = function() {
|
|
1864
|
-
}, g = 0, y = {};
|
|
1865
|
-
function b(i, a) {
|
|
1866
|
-
var m = u.getQueryElement(i);
|
|
1867
|
-
if (!m) {
|
|
1868
|
-
h && h.error("Bad element for " + this.constructor.namespace + ": " + (m || i));
|
|
1869
|
-
return;
|
|
1870
|
-
}
|
|
1871
|
-
this.element = m, d && (this.$element = d(this.element)), this.options = u.extend({}, this.constructor.defaults), this.option(a);
|
|
1872
|
-
var T = ++g;
|
|
1873
|
-
this.element.outlayerGUID = T, y[T] = this, this._create();
|
|
1874
|
-
var C = this._getOption("initLayout");
|
|
1875
|
-
C && this.layout();
|
|
1876
|
-
}
|
|
1877
|
-
b.namespace = "outlayer", b.Item = p, b.defaults = {
|
|
1878
|
-
containerStyle: {
|
|
1879
|
-
position: "relative"
|
|
1880
|
-
},
|
|
1881
|
-
initLayout: !0,
|
|
1882
|
-
originLeft: !0,
|
|
1883
|
-
originTop: !0,
|
|
1884
|
-
resize: !0,
|
|
1885
|
-
resizeContainer: !0,
|
|
1886
|
-
// item options
|
|
1887
|
-
transitionDuration: "0.4s",
|
|
1888
|
-
hiddenStyle: {
|
|
1889
|
-
opacity: 0,
|
|
1890
|
-
transform: "scale(0.001)"
|
|
1891
|
-
},
|
|
1892
|
-
visibleStyle: {
|
|
1893
|
-
opacity: 1,
|
|
1894
|
-
transform: "scale(1)"
|
|
1895
|
-
}
|
|
1896
|
-
};
|
|
1897
|
-
var r = b.prototype;
|
|
1898
|
-
u.extend(r, n.prototype), r.option = function(i) {
|
|
1899
|
-
u.extend(this.options, i);
|
|
1900
|
-
}, r._getOption = function(i) {
|
|
1901
|
-
var a = this.constructor.compatOptions[i];
|
|
1902
|
-
return a && this.options[a] !== void 0 ? this.options[a] : this.options[i];
|
|
1903
|
-
}, b.compatOptions = {
|
|
1904
|
-
// currentName: oldName
|
|
1905
|
-
initLayout: "isInitLayout",
|
|
1906
|
-
horizontal: "isHorizontal",
|
|
1907
|
-
layoutInstant: "isLayoutInstant",
|
|
1908
|
-
originLeft: "isOriginLeft",
|
|
1909
|
-
originTop: "isOriginTop",
|
|
1910
|
-
resize: "isResizeBound",
|
|
1911
|
-
resizeContainer: "isResizingContainer"
|
|
1912
|
-
}, r._create = function() {
|
|
1913
|
-
this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), u.extend(this.element.style, this.options.containerStyle);
|
|
1914
|
-
var i = this._getOption("resize");
|
|
1915
|
-
i && this.bindResize();
|
|
1916
|
-
}, r.reloadItems = function() {
|
|
1917
|
-
this.items = this._itemize(this.element.children);
|
|
1918
|
-
}, r._itemize = function(i) {
|
|
1919
|
-
for (var a = this._filterFindItemElements(i), m = this.constructor.Item, T = [], C = 0; C < a.length; C++) {
|
|
1920
|
-
var w = a[C], V = new m(w, this);
|
|
1921
|
-
T.push(V);
|
|
1922
|
-
}
|
|
1923
|
-
return T;
|
|
1924
|
-
}, r._filterFindItemElements = function(i) {
|
|
1925
|
-
return u.filterFindElements(i, this.options.itemSelector);
|
|
1926
|
-
}, r.getItemElements = function() {
|
|
1927
|
-
return this.items.map(function(i) {
|
|
1928
|
-
return i.element;
|
|
1929
|
-
});
|
|
1930
|
-
}, r.layout = function() {
|
|
1931
|
-
this._resetLayout(), this._manageStamps();
|
|
1932
|
-
var i = this._getOption("layoutInstant"), a = i !== void 0 ? i : !this._isLayoutInited;
|
|
1933
|
-
this.layoutItems(this.items, a), this._isLayoutInited = !0;
|
|
1934
|
-
}, r._init = r.layout, r._resetLayout = function() {
|
|
1935
|
-
this.getSize();
|
|
1936
|
-
}, r.getSize = function() {
|
|
1937
|
-
this.size = l(this.element);
|
|
1938
|
-
}, r._getMeasurement = function(i, a) {
|
|
1939
|
-
var m = this.options[i], T;
|
|
1940
|
-
m ? (typeof m == "string" ? T = this.element.querySelector(m) : m instanceof HTMLElement && (T = m), this[i] = T ? l(T)[a] : m) : this[i] = 0;
|
|
1941
|
-
}, r.layoutItems = function(i, a) {
|
|
1942
|
-
i = this._getItemsForLayout(i), this._layoutItems(i, a), this._postLayout();
|
|
1943
|
-
}, r._getItemsForLayout = function(i) {
|
|
1944
|
-
return i.filter(function(a) {
|
|
1945
|
-
return !a.isIgnored;
|
|
1946
|
-
});
|
|
1947
|
-
}, r._layoutItems = function(i, a) {
|
|
1948
|
-
if (this._emitCompleteOnItems("layout", i), !(!i || !i.length)) {
|
|
1949
|
-
var m = [];
|
|
1950
|
-
i.forEach(function(T) {
|
|
1951
|
-
var C = this._getItemLayoutPosition(T);
|
|
1952
|
-
C.item = T, C.isInstant = a || T.isLayoutInstant, m.push(C);
|
|
1953
|
-
}, this), this._processLayoutQueue(m);
|
|
1954
|
-
}
|
|
1955
|
-
}, r._getItemLayoutPosition = function() {
|
|
1956
|
-
return {
|
|
1957
|
-
x: 0,
|
|
1958
|
-
y: 0
|
|
1959
|
-
};
|
|
1960
|
-
}, r._processLayoutQueue = function(i) {
|
|
1961
|
-
this.updateStagger(), i.forEach(function(a, m) {
|
|
1962
|
-
this._positionItem(a.item, a.x, a.y, a.isInstant, m);
|
|
1963
|
-
}, this);
|
|
1964
|
-
}, r.updateStagger = function() {
|
|
1965
|
-
var i = this.options.stagger;
|
|
1966
|
-
if (i == null) {
|
|
1967
|
-
this.stagger = 0;
|
|
1968
|
-
return;
|
|
1969
|
-
}
|
|
1970
|
-
return this.stagger = f(i), this.stagger;
|
|
1971
|
-
}, r._positionItem = function(i, a, m, T, C) {
|
|
1972
|
-
T ? i.goTo(a, m) : (i.stagger(C * this.stagger), i.moveTo(a, m));
|
|
1973
|
-
}, r._postLayout = function() {
|
|
1974
|
-
this.resizeContainer();
|
|
1975
|
-
}, r.resizeContainer = function() {
|
|
1976
|
-
var i = this._getOption("resizeContainer");
|
|
1977
|
-
if (i) {
|
|
1978
|
-
var a = this._getContainerSize();
|
|
1979
|
-
a && (this._setContainerMeasure(a.width, !0), this._setContainerMeasure(a.height, !1));
|
|
1980
|
-
}
|
|
1981
|
-
}, r._getContainerSize = c, r._setContainerMeasure = function(i, a) {
|
|
1982
|
-
if (i !== void 0) {
|
|
1983
|
-
var m = this.size;
|
|
1984
|
-
m.isBorderBox && (i += a ? m.paddingLeft + m.paddingRight + m.borderLeftWidth + m.borderRightWidth : m.paddingBottom + m.paddingTop + m.borderTopWidth + m.borderBottomWidth), i = Math.max(i, 0), this.element.style[a ? "width" : "height"] = i + "px";
|
|
1985
|
-
}
|
|
1986
|
-
}, r._emitCompleteOnItems = function(i, a) {
|
|
1987
|
-
var m = this;
|
|
1988
|
-
function T() {
|
|
1989
|
-
m.dispatchEvent(i + "Complete", null, [a]);
|
|
1990
|
-
}
|
|
1991
|
-
var C = a.length;
|
|
1992
|
-
if (!a || !C) {
|
|
1993
|
-
T();
|
|
1994
|
-
return;
|
|
1995
|
-
}
|
|
1996
|
-
var w = 0;
|
|
1997
|
-
function V() {
|
|
1998
|
-
w++, w == C && T();
|
|
1999
|
-
}
|
|
2000
|
-
a.forEach(function(W) {
|
|
2001
|
-
W.once(i, V);
|
|
2002
|
-
});
|
|
2003
|
-
}, r.dispatchEvent = function(i, a, m) {
|
|
2004
|
-
var T = a ? [a].concat(m) : m;
|
|
2005
|
-
if (this.emitEvent(i, T), d)
|
|
2006
|
-
if (this.$element = this.$element || d(this.element), a) {
|
|
2007
|
-
var C = d.Event(a);
|
|
2008
|
-
C.type = i, this.$element.trigger(C, m);
|
|
2009
|
-
} else
|
|
2010
|
-
this.$element.trigger(i, m);
|
|
2011
|
-
}, r.ignore = function(i) {
|
|
2012
|
-
var a = this.getItem(i);
|
|
2013
|
-
a && (a.isIgnored = !0);
|
|
2014
|
-
}, r.unignore = function(i) {
|
|
2015
|
-
var a = this.getItem(i);
|
|
2016
|
-
a && delete a.isIgnored;
|
|
2017
|
-
}, r.stamp = function(i) {
|
|
2018
|
-
i = this._find(i), i && (this.stamps = this.stamps.concat(i), i.forEach(this.ignore, this));
|
|
2019
|
-
}, r.unstamp = function(i) {
|
|
2020
|
-
i = this._find(i), i && i.forEach(function(a) {
|
|
2021
|
-
u.removeFrom(this.stamps, a), this.unignore(a);
|
|
2022
|
-
}, this);
|
|
2023
|
-
}, r._find = function(i) {
|
|
2024
|
-
if (i)
|
|
2025
|
-
return typeof i == "string" && (i = this.element.querySelectorAll(i)), i = u.makeArray(i), i;
|
|
2026
|
-
}, r._manageStamps = function() {
|
|
2027
|
-
!this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
|
|
2028
|
-
}, r._getBoundingRect = function() {
|
|
2029
|
-
var i = this.element.getBoundingClientRect(), a = this.size;
|
|
2030
|
-
this._boundingRect = {
|
|
2031
|
-
left: i.left + a.paddingLeft + a.borderLeftWidth,
|
|
2032
|
-
top: i.top + a.paddingTop + a.borderTopWidth,
|
|
2033
|
-
right: i.right - (a.paddingRight + a.borderRightWidth),
|
|
2034
|
-
bottom: i.bottom - (a.paddingBottom + a.borderBottomWidth)
|
|
2035
|
-
};
|
|
2036
|
-
}, r._manageStamp = c, r._getElementOffset = function(i) {
|
|
2037
|
-
var a = i.getBoundingClientRect(), m = this._boundingRect, T = l(i), C = {
|
|
2038
|
-
left: a.left - m.left - T.marginLeft,
|
|
2039
|
-
top: a.top - m.top - T.marginTop,
|
|
2040
|
-
right: m.right - a.right - T.marginRight,
|
|
2041
|
-
bottom: m.bottom - a.bottom - T.marginBottom
|
|
2042
|
-
};
|
|
2043
|
-
return C;
|
|
2044
|
-
}, r.handleEvent = u.handleEvent, r.bindResize = function() {
|
|
2045
|
-
t.addEventListener("resize", this), this.isResizeBound = !0;
|
|
2046
|
-
}, r.unbindResize = function() {
|
|
2047
|
-
t.removeEventListener("resize", this), this.isResizeBound = !1;
|
|
2048
|
-
}, r.onresize = function() {
|
|
2049
|
-
this.resize();
|
|
2050
|
-
}, u.debounceMethod(b, "onresize", 100), r.resize = function() {
|
|
2051
|
-
!this.isResizeBound || !this.needsResizeLayout() || this.layout();
|
|
2052
|
-
}, r.needsResizeLayout = function() {
|
|
2053
|
-
var i = l(this.element), a = this.size && i;
|
|
2054
|
-
return a && i.innerWidth !== this.size.innerWidth;
|
|
2055
|
-
}, r.addItems = function(i) {
|
|
2056
|
-
var a = this._itemize(i);
|
|
2057
|
-
return a.length && (this.items = this.items.concat(a)), a;
|
|
2058
|
-
}, r.appended = function(i) {
|
|
2059
|
-
var a = this.addItems(i);
|
|
2060
|
-
a.length && (this.layoutItems(a, !0), this.reveal(a));
|
|
2061
|
-
}, r.prepended = function(i) {
|
|
2062
|
-
var a = this._itemize(i);
|
|
2063
|
-
if (a.length) {
|
|
2064
|
-
var m = this.items.slice(0);
|
|
2065
|
-
this.items = a.concat(m), this._resetLayout(), this._manageStamps(), this.layoutItems(a, !0), this.reveal(a), this.layoutItems(m);
|
|
2066
|
-
}
|
|
2067
|
-
}, r.reveal = function(i) {
|
|
2068
|
-
if (this._emitCompleteOnItems("reveal", i), !(!i || !i.length)) {
|
|
2069
|
-
var a = this.updateStagger();
|
|
2070
|
-
i.forEach(function(m, T) {
|
|
2071
|
-
m.stagger(T * a), m.reveal();
|
|
2072
|
-
});
|
|
2073
|
-
}
|
|
2074
|
-
}, r.hide = function(i) {
|
|
2075
|
-
if (this._emitCompleteOnItems("hide", i), !(!i || !i.length)) {
|
|
2076
|
-
var a = this.updateStagger();
|
|
2077
|
-
i.forEach(function(m, T) {
|
|
2078
|
-
m.stagger(T * a), m.hide();
|
|
2079
|
-
});
|
|
2080
|
-
}
|
|
2081
|
-
}, r.revealItemElements = function(i) {
|
|
2082
|
-
var a = this.getItems(i);
|
|
2083
|
-
this.reveal(a);
|
|
2084
|
-
}, r.hideItemElements = function(i) {
|
|
2085
|
-
var a = this.getItems(i);
|
|
2086
|
-
this.hide(a);
|
|
2087
|
-
}, r.getItem = function(i) {
|
|
2088
|
-
for (var a = 0; a < this.items.length; a++) {
|
|
2089
|
-
var m = this.items[a];
|
|
2090
|
-
if (m.element == i)
|
|
2091
|
-
return m;
|
|
2092
|
-
}
|
|
2093
|
-
}, r.getItems = function(i) {
|
|
2094
|
-
i = u.makeArray(i);
|
|
2095
|
-
var a = [];
|
|
2096
|
-
return i.forEach(function(m) {
|
|
2097
|
-
var T = this.getItem(m);
|
|
2098
|
-
T && a.push(T);
|
|
2099
|
-
}, this), a;
|
|
2100
|
-
}, r.remove = function(i) {
|
|
2101
|
-
var a = this.getItems(i);
|
|
2102
|
-
this._emitCompleteOnItems("remove", a), !(!a || !a.length) && a.forEach(function(m) {
|
|
2103
|
-
m.remove(), u.removeFrom(this.items, m);
|
|
2104
|
-
}, this);
|
|
2105
|
-
}, r.destroy = function() {
|
|
2106
|
-
var i = this.element.style;
|
|
2107
|
-
i.height = "", i.position = "", i.width = "", this.items.forEach(function(m) {
|
|
2108
|
-
m.destroy();
|
|
2109
|
-
}), this.unbindResize();
|
|
2110
|
-
var a = this.element.outlayerGUID;
|
|
2111
|
-
delete y[a], delete this.element.outlayerGUID, d && d.removeData(this.element, this.constructor.namespace);
|
|
2112
|
-
}, b.data = function(i) {
|
|
2113
|
-
i = u.getQueryElement(i);
|
|
2114
|
-
var a = i && i.outlayerGUID;
|
|
2115
|
-
return a && y[a];
|
|
2116
|
-
}, b.create = function(i, a) {
|
|
2117
|
-
var m = k(b);
|
|
2118
|
-
return m.defaults = u.extend({}, b.defaults), u.extend(m.defaults, a), m.compatOptions = u.extend({}, b.compatOptions), m.namespace = i, m.data = b.data, m.Item = k(p), u.htmlInit(m, i), d && d.bridget && d.bridget(i, m), m;
|
|
2119
|
-
};
|
|
2120
|
-
function k(i) {
|
|
2121
|
-
function a() {
|
|
2122
|
-
i.apply(this, arguments);
|
|
2123
|
-
}
|
|
2124
|
-
return a.prototype = Object.create(i.prototype), a.prototype.constructor = a, a;
|
|
2125
|
-
}
|
|
2126
|
-
var _ = {
|
|
2127
|
-
ms: 1,
|
|
2128
|
-
s: 1e3
|
|
2129
|
-
};
|
|
2130
|
-
function f(i) {
|
|
2131
|
-
if (typeof i == "number")
|
|
2132
|
-
return i;
|
|
2133
|
-
var a = i.match(/(^\d*\.?\d*)(\w*)/), m = a && a[1], T = a && a[2];
|
|
2134
|
-
if (!m.length)
|
|
2135
|
-
return 0;
|
|
2136
|
-
m = parseFloat(m);
|
|
2137
|
-
var C = _[T] || 1;
|
|
2138
|
-
return m * C;
|
|
2139
|
-
}
|
|
2140
|
-
return b.Item = p, b;
|
|
2141
|
-
});
|
|
2142
|
-
}(He)), He.exports;
|
|
2143
|
-
}
|
|
2144
|
-
/*!
|
|
2145
|
-
* Masonry v4.2.2
|
|
2146
|
-
* Cascading grid layout library
|
|
2147
|
-
* https://masonry.desandro.com
|
|
2148
|
-
* MIT License
|
|
2149
|
-
* by David DeSandro
|
|
2150
|
-
*/
|
|
2151
|
-
(function(o) {
|
|
2152
|
-
(function(e, t) {
|
|
2153
|
-
o.exports ? o.exports = t(
|
|
2154
|
-
yi(),
|
|
2155
|
-
Qe()
|
|
2156
|
-
) : e.Masonry = t(
|
|
2157
|
-
e.Outlayer,
|
|
2158
|
-
e.getSize
|
|
2159
|
-
);
|
|
2160
|
-
})(window, function(t, n) {
|
|
2161
|
-
var l = t.create("masonry");
|
|
2162
|
-
l.compatOptions.fitWidth = "isFitWidth";
|
|
2163
|
-
var u = l.prototype;
|
|
2164
|
-
return u._resetLayout = function() {
|
|
2165
|
-
this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];
|
|
2166
|
-
for (var p = 0; p < this.cols; p++)
|
|
2167
|
-
this.colYs.push(0);
|
|
2168
|
-
this.maxY = 0, this.horizontalColIndex = 0;
|
|
2169
|
-
}, u.measureColumns = function() {
|
|
2170
|
-
if (this.getContainerWidth(), !this.columnWidth) {
|
|
2171
|
-
var p = this.items[0], h = p && p.element;
|
|
2172
|
-
this.columnWidth = h && n(h).outerWidth || // if first elem has no width, default to size of container
|
|
2173
|
-
this.containerWidth;
|
|
2174
|
-
}
|
|
2175
|
-
var d = this.columnWidth += this.gutter, c = this.containerWidth + this.gutter, g = c / d, y = d - c % d, b = y && y < 1 ? "round" : "floor";
|
|
2176
|
-
g = Math[b](g), this.cols = Math.max(g, 1);
|
|
2177
|
-
}, u.getContainerWidth = function() {
|
|
2178
|
-
var p = this._getOption("fitWidth"), h = p ? this.element.parentNode : this.element, d = n(h);
|
|
2179
|
-
this.containerWidth = d && d.innerWidth;
|
|
2180
|
-
}, u._getItemLayoutPosition = function(p) {
|
|
2181
|
-
p.getSize();
|
|
2182
|
-
var h = p.size.outerWidth % this.columnWidth, d = h && h < 1 ? "round" : "ceil", c = Math[d](p.size.outerWidth / this.columnWidth);
|
|
2183
|
-
c = Math.min(c, this.cols);
|
|
2184
|
-
for (var g = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", y = this[g](c, p), b = {
|
|
2185
|
-
x: this.columnWidth * y.col,
|
|
2186
|
-
y: y.y
|
|
2187
|
-
}, r = y.y + p.size.outerHeight, k = c + y.col, _ = y.col; _ < k; _++)
|
|
2188
|
-
this.colYs[_] = r;
|
|
2189
|
-
return b;
|
|
2190
|
-
}, u._getTopColPosition = function(p) {
|
|
2191
|
-
var h = this._getTopColGroup(p), d = Math.min.apply(Math, h);
|
|
2192
|
-
return {
|
|
2193
|
-
col: h.indexOf(d),
|
|
2194
|
-
y: d
|
|
2195
|
-
};
|
|
2196
|
-
}, u._getTopColGroup = function(p) {
|
|
2197
|
-
if (p < 2)
|
|
2198
|
-
return this.colYs;
|
|
2199
|
-
for (var h = [], d = this.cols + 1 - p, c = 0; c < d; c++)
|
|
2200
|
-
h[c] = this._getColGroupY(c, p);
|
|
2201
|
-
return h;
|
|
2202
|
-
}, u._getColGroupY = function(p, h) {
|
|
2203
|
-
if (h < 2)
|
|
2204
|
-
return this.colYs[p];
|
|
2205
|
-
var d = this.colYs.slice(p, p + h);
|
|
2206
|
-
return Math.max.apply(Math, d);
|
|
2207
|
-
}, u._getHorizontalColPosition = function(p, h) {
|
|
2208
|
-
var d = this.horizontalColIndex % this.cols, c = p > 1 && d + p > this.cols;
|
|
2209
|
-
d = c ? 0 : d;
|
|
2210
|
-
var g = h.size.outerWidth && h.size.outerHeight;
|
|
2211
|
-
return this.horizontalColIndex = g ? d + p : this.horizontalColIndex, {
|
|
2212
|
-
col: d,
|
|
2213
|
-
y: this._getColGroupY(d, p)
|
|
2214
|
-
};
|
|
2215
|
-
}, u._manageStamp = function(p) {
|
|
2216
|
-
var h = n(p), d = this._getElementOffset(p), c = this._getOption("originLeft"), g = c ? d.left : d.right, y = g + h.outerWidth, b = Math.floor(g / this.columnWidth);
|
|
2217
|
-
b = Math.max(0, b);
|
|
2218
|
-
var r = Math.floor(y / this.columnWidth);
|
|
2219
|
-
r -= y % this.columnWidth ? 0 : 1, r = Math.min(this.cols - 1, r);
|
|
2220
|
-
for (var k = this._getOption("originTop"), _ = (k ? d.top : d.bottom) + h.outerHeight, f = b; f <= r; f++)
|
|
2221
|
-
this.colYs[f] = Math.max(_, this.colYs[f]);
|
|
2222
|
-
}, u._getContainerSize = function() {
|
|
2223
|
-
this.maxY = Math.max.apply(Math, this.colYs);
|
|
2224
|
-
var p = {
|
|
2225
|
-
height: this.maxY
|
|
2226
|
-
};
|
|
2227
|
-
return this._getOption("fitWidth") && (p.width = this._getContainerFitWidth()), p;
|
|
2228
|
-
}, u._getContainerFitWidth = function() {
|
|
2229
|
-
for (var p = 0, h = this.cols; --h && this.colYs[h] === 0; )
|
|
2230
|
-
p++;
|
|
2231
|
-
return (this.cols - p) * this.columnWidth - this.gutter;
|
|
2232
|
-
}, u.needsResizeLayout = function() {
|
|
2233
|
-
var p = this.containerWidth;
|
|
2234
|
-
return this.getContainerWidth(), p != this.containerWidth;
|
|
2235
|
-
}, l;
|
|
2236
|
-
});
|
|
2237
|
-
})(Lt);
|
|
2238
|
-
var bi = Lt.exports;
|
|
2239
|
-
const pt = /* @__PURE__ */ $t(bi);
|
|
2240
|
-
var Vt = { exports: {} };
|
|
2241
|
-
/*!
|
|
2242
|
-
* imagesLoaded v4.1.4
|
|
2243
|
-
* JavaScript is all like "You images are done yet or what?"
|
|
2244
|
-
* MIT License
|
|
2245
|
-
*/
|
|
2246
|
-
(function(o) {
|
|
2247
|
-
(function(e, t) {
|
|
2248
|
-
o.exports ? o.exports = t(
|
|
2249
|
-
e,
|
|
2250
|
-
Ke()
|
|
2251
|
-
) : e.imagesLoaded = t(
|
|
2252
|
-
e,
|
|
2253
|
-
e.EvEmitter
|
|
2254
|
-
);
|
|
2255
|
-
})(
|
|
2256
|
-
typeof window != "undefined" ? window : Ct,
|
|
2257
|
-
// -------------------------- factory -------------------------- //
|
|
2258
|
-
function(t, n) {
|
|
2259
|
-
var l = t.jQuery, u = t.console;
|
|
2260
|
-
function p(r, k) {
|
|
2261
|
-
for (var _ in k)
|
|
2262
|
-
r[_] = k[_];
|
|
2263
|
-
return r;
|
|
2264
|
-
}
|
|
2265
|
-
var h = Array.prototype.slice;
|
|
2266
|
-
function d(r) {
|
|
2267
|
-
if (Array.isArray(r))
|
|
2268
|
-
return r;
|
|
2269
|
-
var k = typeof r == "object" && typeof r.length == "number";
|
|
2270
|
-
return k ? h.call(r) : [r];
|
|
2271
|
-
}
|
|
2272
|
-
function c(r, k, _) {
|
|
2273
|
-
if (!(this instanceof c))
|
|
2274
|
-
return new c(r, k, _);
|
|
2275
|
-
var f = r;
|
|
2276
|
-
if (typeof r == "string" && (f = document.querySelectorAll(r)), !f) {
|
|
2277
|
-
u.error("Bad element for imagesLoaded " + (f || r));
|
|
2278
|
-
return;
|
|
2279
|
-
}
|
|
2280
|
-
this.elements = d(f), this.options = p({}, this.options), typeof k == "function" ? _ = k : p(this.options, k), _ && this.on("always", _), this.getImages(), l && (this.jqDeferred = new l.Deferred()), setTimeout(this.check.bind(this));
|
|
2281
|
-
}
|
|
2282
|
-
c.prototype = Object.create(n.prototype), c.prototype.options = {}, c.prototype.getImages = function() {
|
|
2283
|
-
this.images = [], this.elements.forEach(this.addElementImages, this);
|
|
2284
|
-
}, c.prototype.addElementImages = function(r) {
|
|
2285
|
-
r.nodeName == "IMG" && this.addImage(r), this.options.background === !0 && this.addElementBackgroundImages(r);
|
|
2286
|
-
var k = r.nodeType;
|
|
2287
|
-
if (!(!k || !g[k])) {
|
|
2288
|
-
for (var _ = r.querySelectorAll("img"), f = 0; f < _.length; f++) {
|
|
2289
|
-
var i = _[f];
|
|
2290
|
-
this.addImage(i);
|
|
2291
|
-
}
|
|
2292
|
-
if (typeof this.options.background == "string") {
|
|
2293
|
-
var a = r.querySelectorAll(this.options.background);
|
|
2294
|
-
for (f = 0; f < a.length; f++) {
|
|
2295
|
-
var m = a[f];
|
|
2296
|
-
this.addElementBackgroundImages(m);
|
|
2297
|
-
}
|
|
2298
|
-
}
|
|
2299
|
-
}
|
|
2300
|
-
};
|
|
2301
|
-
var g = {
|
|
2302
|
-
1: !0,
|
|
2303
|
-
9: !0,
|
|
2304
|
-
11: !0
|
|
2305
|
-
};
|
|
2306
|
-
c.prototype.addElementBackgroundImages = function(r) {
|
|
2307
|
-
var k = getComputedStyle(r);
|
|
2308
|
-
if (k)
|
|
2309
|
-
for (var _ = /url\((['"])?(.*?)\1\)/gi, f = _.exec(k.backgroundImage); f !== null; ) {
|
|
2310
|
-
var i = f && f[2];
|
|
2311
|
-
i && this.addBackground(i, r), f = _.exec(k.backgroundImage);
|
|
2312
|
-
}
|
|
2313
|
-
}, c.prototype.addImage = function(r) {
|
|
2314
|
-
var k = new y(r);
|
|
2315
|
-
this.images.push(k);
|
|
2316
|
-
}, c.prototype.addBackground = function(r, k) {
|
|
2317
|
-
var _ = new b(r, k);
|
|
2318
|
-
this.images.push(_);
|
|
2319
|
-
}, c.prototype.check = function() {
|
|
2320
|
-
var r = this;
|
|
2321
|
-
if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
|
|
2322
|
-
this.complete();
|
|
2323
|
-
return;
|
|
2324
|
-
}
|
|
2325
|
-
function k(_, f, i) {
|
|
2326
|
-
setTimeout(function() {
|
|
2327
|
-
r.progress(_, f, i);
|
|
2328
|
-
});
|
|
2329
|
-
}
|
|
2330
|
-
this.images.forEach(function(_) {
|
|
2331
|
-
_.once("progress", k), _.check();
|
|
2332
|
-
});
|
|
2333
|
-
}, c.prototype.progress = function(r, k, _) {
|
|
2334
|
-
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !r.isLoaded, this.emitEvent("progress", [this, r, k]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, r), this.progressedCount == this.images.length && this.complete(), this.options.debug && u && u.log("progress: " + _, r, k);
|
|
2335
|
-
}, c.prototype.complete = function() {
|
|
2336
|
-
var r = this.hasAnyBroken ? "fail" : "done";
|
|
2337
|
-
if (this.isComplete = !0, this.emitEvent(r, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
|
|
2338
|
-
var k = this.hasAnyBroken ? "reject" : "resolve";
|
|
2339
|
-
this.jqDeferred[k](this);
|
|
2340
|
-
}
|
|
2341
|
-
};
|
|
2342
|
-
function y(r) {
|
|
2343
|
-
this.img = r;
|
|
2344
|
-
}
|
|
2345
|
-
y.prototype = Object.create(n.prototype), y.prototype.check = function() {
|
|
2346
|
-
var r = this.getIsImageComplete();
|
|
2347
|
-
if (r) {
|
|
2348
|
-
this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
|
|
2349
|
-
return;
|
|
2350
|
-
}
|
|
2351
|
-
this.proxyImage = new Image(), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.proxyImage.src = this.img.src;
|
|
2352
|
-
}, y.prototype.getIsImageComplete = function() {
|
|
2353
|
-
return this.img.complete && this.img.naturalWidth;
|
|
2354
|
-
}, y.prototype.confirm = function(r, k) {
|
|
2355
|
-
this.isLoaded = r, this.emitEvent("progress", [this, this.img, k]);
|
|
2356
|
-
}, y.prototype.handleEvent = function(r) {
|
|
2357
|
-
var k = "on" + r.type;
|
|
2358
|
-
this[k] && this[k](r);
|
|
2359
|
-
}, y.prototype.onload = function() {
|
|
2360
|
-
this.confirm(!0, "onload"), this.unbindEvents();
|
|
2361
|
-
}, y.prototype.onerror = function() {
|
|
2362
|
-
this.confirm(!1, "onerror"), this.unbindEvents();
|
|
2363
|
-
}, y.prototype.unbindEvents = function() {
|
|
2364
|
-
this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
2365
|
-
};
|
|
2366
|
-
function b(r, k) {
|
|
2367
|
-
this.url = r, this.element = k, this.img = new Image();
|
|
2368
|
-
}
|
|
2369
|
-
return b.prototype = Object.create(y.prototype), b.prototype.check = function() {
|
|
2370
|
-
this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
|
|
2371
|
-
var r = this.getIsImageComplete();
|
|
2372
|
-
r && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
|
|
2373
|
-
}, b.prototype.unbindEvents = function() {
|
|
2374
|
-
this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
2375
|
-
}, b.prototype.confirm = function(r, k) {
|
|
2376
|
-
this.isLoaded = r, this.emitEvent("progress", [this, this.element, k]);
|
|
2377
|
-
}, c.makeJQueryPlugin = function(r) {
|
|
2378
|
-
r = r || t.jQuery, r && (l = r, l.fn.imagesLoaded = function(k, _) {
|
|
2379
|
-
var f = new c(this, k, _);
|
|
2380
|
-
return f.jqDeferred.promise(l(this));
|
|
2381
|
-
});
|
|
2382
|
-
}, c.makeJQueryPlugin(), c;
|
|
2383
|
-
}
|
|
2384
|
-
);
|
|
2385
|
-
})(Vt);
|
|
2386
|
-
var ki = Vt.exports;
|
|
2387
|
-
const _i = /* @__PURE__ */ $t(ki);
|
|
2388
|
-
function Ei(o) {
|
|
2389
|
-
return { all: o = o || /* @__PURE__ */ new Map(), on: function(e, t) {
|
|
2390
|
-
var n = o.get(e);
|
|
2391
|
-
n ? n.push(t) : o.set(e, [t]);
|
|
2392
|
-
}, off: function(e, t) {
|
|
2393
|
-
var n = o.get(e);
|
|
2394
|
-
n && (t ? n.splice(n.indexOf(t) >>> 0, 1) : o.set(e, []));
|
|
2395
|
-
}, emit: function(e, t) {
|
|
2396
|
-
var n = o.get(e);
|
|
2397
|
-
n && n.slice().map(function(l) {
|
|
2398
|
-
l(t);
|
|
2399
|
-
}), (n = o.get("*")) && n.slice().map(function(l) {
|
|
2400
|
-
l(e, t);
|
|
2401
|
-
});
|
|
2402
|
-
} };
|
|
2403
|
-
}
|
|
2404
|
-
const ye = {
|
|
2405
|
-
"column-width": "columnWidth",
|
|
2406
|
-
"transition-duration": "transitionDuration",
|
|
2407
|
-
"item-selector": "itemSelector",
|
|
2408
|
-
"origin-left": "originLeft",
|
|
2409
|
-
"origin-top": "originTop",
|
|
2410
|
-
"fit-width": "fitWidth",
|
|
2411
|
-
stamp: "stamp",
|
|
2412
|
-
gutter: "gutter",
|
|
2413
|
-
"percent-position": "percentPosition",
|
|
2414
|
-
"horizontal-order": "horizontalOrder",
|
|
2415
|
-
stagger: "stagger",
|
|
2416
|
-
"destroy-delay": "destroyDelay"
|
|
2417
|
-
}, be = "vuemasonry.itemAdded", ze = "vuemasonry.itemRemoved", We = "vuemasonry.imageLoaded", Be = "vuemasonry.destroy", Ti = function(o) {
|
|
2418
|
-
return (o + "").toLowerCase() === "true";
|
|
2419
|
-
}, Ii = function(o) {
|
|
2420
|
-
return isNaN(o) ? o : parseInt(o);
|
|
2421
|
-
}, Ci = function(o) {
|
|
2422
|
-
const e = {};
|
|
2423
|
-
return Array.prototype.slice.call(o).forEach(function(n) {
|
|
2424
|
-
Object.keys(ye).indexOf(n.name) > -1 && (n.name.indexOf("origin") > -1 ? e[ye[n.name]] = Ti(n.value) : n.name === "column-width" || n.name === "gutter" ? e[ye[n.name]] = Ii(n.value) : e[ye[n.name]] = n.value);
|
|
2425
|
-
}), e;
|
|
2426
|
-
}, Pt = {};
|
|
2427
|
-
Pt.install = function(o, e) {
|
|
2428
|
-
const t = Ei(), n = "VueMasonry", l = o;
|
|
2429
|
-
l.directive("masonry", {
|
|
2430
|
-
props: ["transitionDuration", " itemSelector", "destroyDelay"],
|
|
2431
|
-
mounted: function(u, p) {
|
|
2432
|
-
if (!pt)
|
|
2433
|
-
throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
|
|
2434
|
-
const h = Ci(u.attributes), d = new pt(u, h), c = p.value || n, g = h.destroyDelay ? parseInt(h.destroyDelay, 10) : void 0, y = function() {
|
|
2435
|
-
d.reloadItems(), d.layout();
|
|
2436
|
-
};
|
|
2437
|
-
kt(() => {
|
|
2438
|
-
y();
|
|
2439
|
-
});
|
|
2440
|
-
const b = function(k) {
|
|
2441
|
-
y();
|
|
2442
|
-
}, r = function(k) {
|
|
2443
|
-
t.off(`${be}__${c}`, b), t.off(`${ze}__${c}`, b), t.off(`${We}__${c}`, b), t.off(`${Be}__${c}`, r);
|
|
2444
|
-
const _ = g && !Number.isNaN(g) ? g : 0;
|
|
2445
|
-
setTimeout(function() {
|
|
2446
|
-
d.destroy();
|
|
2447
|
-
}, _);
|
|
2448
|
-
};
|
|
2449
|
-
t.on(`${be}__${c}`, b), t.on(`${ze}__${c}`, b), t.on(`${We}__${c}`, b), t.on(`${Be}__${c}`, r);
|
|
2450
|
-
},
|
|
2451
|
-
unbind: function(u, p) {
|
|
2452
|
-
const h = p.value || n;
|
|
2453
|
-
t.emit(`${Be}__${h}`);
|
|
2454
|
-
}
|
|
2455
|
-
}), l.directive("masonryTile", {
|
|
2456
|
-
mounted: function(u, p) {
|
|
2457
|
-
const h = p.value || n;
|
|
2458
|
-
t.emit(`${be}__${h}`, {
|
|
2459
|
-
element: u
|
|
2460
|
-
}), new _i(u, function() {
|
|
2461
|
-
t.emit(`${We}__${h}`, {
|
|
2462
|
-
element: u
|
|
2463
|
-
});
|
|
2464
|
-
});
|
|
2465
|
-
},
|
|
2466
|
-
unbind: function(u, p) {
|
|
2467
|
-
const h = p.value || n;
|
|
2468
|
-
t.emit(`${ze}__${h}`, {
|
|
2469
|
-
element: u
|
|
2470
|
-
});
|
|
2471
|
-
}
|
|
2472
|
-
});
|
|
2473
|
-
{
|
|
2474
|
-
const u = function(p) {
|
|
2475
|
-
const h = p || n;
|
|
2476
|
-
t.emit(`${be}__${h}`);
|
|
2477
|
-
};
|
|
2478
|
-
o.config.globalProperties.$redrawVueMasonry = u, o.provide("redrawVueMasonry", u);
|
|
2479
|
-
}
|
|
2480
|
-
};
|
|
2481
|
-
function Ne(o, e = {}, t) {
|
|
1475
|
+
}), ke = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-514816f7"]]);
|
|
1476
|
+
function je(o, e = {}, t) {
|
|
2482
1477
|
for (const n in o) {
|
|
2483
|
-
const
|
|
2484
|
-
typeof
|
|
1478
|
+
const a = o[n], i = t ? `${t}:${n}` : n;
|
|
1479
|
+
typeof a == "object" && a !== null ? je(a, e, i) : typeof a == "function" && (e[i] = a);
|
|
2485
1480
|
}
|
|
2486
1481
|
return e;
|
|
2487
1482
|
}
|
|
2488
|
-
const
|
|
2489
|
-
function
|
|
2490
|
-
const t = e.shift(), n =
|
|
1483
|
+
const Rl = { run: (o) => o() }, Ul = () => Rl, ct = typeof console.createTask < "u" ? console.createTask : Ul;
|
|
1484
|
+
function Fl(o, e) {
|
|
1485
|
+
const t = e.shift(), n = ct(t);
|
|
2491
1486
|
return o.reduce(
|
|
2492
|
-
(
|
|
1487
|
+
(a, i) => a.then(() => n.run(() => i(...e))),
|
|
2493
1488
|
Promise.resolve()
|
|
2494
1489
|
);
|
|
2495
1490
|
}
|
|
2496
|
-
function
|
|
2497
|
-
const t = e.shift(), n =
|
|
2498
|
-
return Promise.all(o.map((
|
|
1491
|
+
function Ol(o, e) {
|
|
1492
|
+
const t = e.shift(), n = ct(t);
|
|
1493
|
+
return Promise.all(o.map((a) => n.run(() => a(...e))));
|
|
2499
1494
|
}
|
|
2500
1495
|
function Fe(o, e) {
|
|
2501
1496
|
for (const t of [...o])
|
|
2502
1497
|
t(e);
|
|
2503
1498
|
}
|
|
2504
|
-
class
|
|
1499
|
+
class Nl {
|
|
2505
1500
|
constructor() {
|
|
2506
1501
|
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);
|
|
2507
1502
|
}
|
|
@@ -2509,13 +1504,13 @@ class Pi {
|
|
|
2509
1504
|
if (!e || typeof t != "function")
|
|
2510
1505
|
return () => {
|
|
2511
1506
|
};
|
|
2512
|
-
const
|
|
2513
|
-
let
|
|
1507
|
+
const a = e;
|
|
1508
|
+
let i;
|
|
2514
1509
|
for (; this._deprecatedHooks[e]; )
|
|
2515
|
-
|
|
2516
|
-
if (
|
|
2517
|
-
let
|
|
2518
|
-
|
|
1510
|
+
i = this._deprecatedHooks[e], e = i.to;
|
|
1511
|
+
if (i && !n.allowDeprecated) {
|
|
1512
|
+
let c = i.message;
|
|
1513
|
+
c || (c = `${a} hook has been deprecated` + (i.to ? `, please use ${i.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(c) || (console.warn(c), this._deprecatedMessages.add(c));
|
|
2519
1514
|
}
|
|
2520
1515
|
if (!t.name)
|
|
2521
1516
|
try {
|
|
@@ -2523,15 +1518,15 @@ class Pi {
|
|
|
2523
1518
|
get: () => "_" + e.replace(/\W+/g, "_") + "_hook_cb",
|
|
2524
1519
|
configurable: !0
|
|
2525
1520
|
});
|
|
2526
|
-
} catch
|
|
1521
|
+
} catch {
|
|
2527
1522
|
}
|
|
2528
1523
|
return this._hooks[e] = this._hooks[e] || [], this._hooks[e].push(t), () => {
|
|
2529
1524
|
t && (this.removeHook(e, t), t = void 0);
|
|
2530
1525
|
};
|
|
2531
1526
|
}
|
|
2532
1527
|
hookOnce(e, t) {
|
|
2533
|
-
let n,
|
|
2534
|
-
return n = this.hook(e,
|
|
1528
|
+
let n, a = (...i) => (typeof n == "function" && n(), n = void 0, a = void 0, t(...i));
|
|
1529
|
+
return n = this.hook(e, a), n;
|
|
2535
1530
|
}
|
|
2536
1531
|
removeHook(e, t) {
|
|
2537
1532
|
if (this._hooks[e]) {
|
|
@@ -2543,8 +1538,8 @@ class Pi {
|
|
|
2543
1538
|
this._deprecatedHooks[e] = typeof t == "string" ? { to: t } : t;
|
|
2544
1539
|
const n = this._hooks[e] || [];
|
|
2545
1540
|
delete this._hooks[e];
|
|
2546
|
-
for (const
|
|
2547
|
-
this.hook(e,
|
|
1541
|
+
for (const a of n)
|
|
1542
|
+
this.hook(e, a);
|
|
2548
1543
|
}
|
|
2549
1544
|
deprecateHooks(e) {
|
|
2550
1545
|
Object.assign(this._deprecatedHooks, e);
|
|
@@ -2552,16 +1547,16 @@ class Pi {
|
|
|
2552
1547
|
this.deprecateHook(t, e[t]);
|
|
2553
1548
|
}
|
|
2554
1549
|
addHooks(e) {
|
|
2555
|
-
const t =
|
|
2556
|
-
(
|
|
1550
|
+
const t = je(e), n = Object.keys(t).map(
|
|
1551
|
+
(a) => this.hook(a, t[a])
|
|
2557
1552
|
);
|
|
2558
1553
|
return () => {
|
|
2559
|
-
for (const
|
|
2560
|
-
|
|
1554
|
+
for (const a of n.splice(0, n.length))
|
|
1555
|
+
a();
|
|
2561
1556
|
};
|
|
2562
1557
|
}
|
|
2563
1558
|
removeHooks(e) {
|
|
2564
|
-
const t =
|
|
1559
|
+
const t = je(e);
|
|
2565
1560
|
for (const n in t)
|
|
2566
1561
|
this.removeHook(n, t[n]);
|
|
2567
1562
|
}
|
|
@@ -2570,21 +1565,21 @@ class Pi {
|
|
|
2570
1565
|
delete this._hooks[e];
|
|
2571
1566
|
}
|
|
2572
1567
|
callHook(e, ...t) {
|
|
2573
|
-
return t.unshift(e), this.callHookWith(
|
|
1568
|
+
return t.unshift(e), this.callHookWith(Fl, e, ...t);
|
|
2574
1569
|
}
|
|
2575
1570
|
callHookParallel(e, ...t) {
|
|
2576
|
-
return t.unshift(e), this.callHookWith(
|
|
1571
|
+
return t.unshift(e), this.callHookWith(Ol, e, ...t);
|
|
2577
1572
|
}
|
|
2578
1573
|
callHookWith(e, t, ...n) {
|
|
2579
|
-
const
|
|
2580
|
-
this._before && Fe(this._before,
|
|
2581
|
-
const
|
|
1574
|
+
const a = this._before || this._after ? { name: t, args: n, context: {} } : void 0;
|
|
1575
|
+
this._before && Fe(this._before, a);
|
|
1576
|
+
const i = e(
|
|
2582
1577
|
t in this._hooks ? [...this._hooks[t]] : [],
|
|
2583
1578
|
n
|
|
2584
1579
|
);
|
|
2585
|
-
return
|
|
2586
|
-
this._after &&
|
|
2587
|
-
}) : (this._after &&
|
|
1580
|
+
return i instanceof Promise ? i.finally(() => {
|
|
1581
|
+
this._after && a && Fe(this._after, a);
|
|
1582
|
+
}) : (this._after && a && Fe(this._after, a), i);
|
|
2588
1583
|
}
|
|
2589
1584
|
beforeEach(e) {
|
|
2590
1585
|
return this._before = this._before || [], this._before.push(e), () => {
|
|
@@ -2603,20 +1598,20 @@ class Pi {
|
|
|
2603
1598
|
};
|
|
2604
1599
|
}
|
|
2605
1600
|
}
|
|
2606
|
-
function
|
|
2607
|
-
return new
|
|
1601
|
+
function jl() {
|
|
1602
|
+
return new Nl();
|
|
2608
1603
|
}
|
|
2609
|
-
function
|
|
1604
|
+
function Gl(o) {
|
|
2610
1605
|
return Array.isArray(o) ? o : [o];
|
|
2611
1606
|
}
|
|
2612
|
-
const
|
|
1607
|
+
const ql = ["title", "titleTemplate", "script", "style", "noscript"], _e = [
|
|
2613
1608
|
"base",
|
|
2614
1609
|
"meta",
|
|
2615
1610
|
"link",
|
|
2616
1611
|
"style",
|
|
2617
1612
|
"script",
|
|
2618
1613
|
"noscript"
|
|
2619
|
-
],
|
|
1614
|
+
], Wl = [
|
|
2620
1615
|
"title",
|
|
2621
1616
|
"titleTemplate",
|
|
2622
1617
|
"templateParams",
|
|
@@ -2628,260 +1623,249 @@ const Hi = ["title", "titleTemplate", "script", "style", "noscript"], ke = [
|
|
|
2628
1623
|
"style",
|
|
2629
1624
|
"script",
|
|
2630
1625
|
"noscript"
|
|
2631
|
-
],
|
|
2632
|
-
function
|
|
1626
|
+
], Kl = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], pt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], zl = typeof window < "u";
|
|
1627
|
+
function qe(o) {
|
|
2633
1628
|
let e = 9;
|
|
2634
1629
|
for (let t = 0; t < o.length; )
|
|
2635
|
-
e = Math.imul(e ^ o.charCodeAt(t++),
|
|
1630
|
+
e = Math.imul(e ^ o.charCodeAt(t++), 9 ** 9);
|
|
2636
1631
|
return ((e ^ e >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
2637
1632
|
}
|
|
2638
|
-
function
|
|
2639
|
-
return o._h ||
|
|
1633
|
+
function Ye(o) {
|
|
1634
|
+
return o._h || qe(o._d ? o._d : `${o.tag}:${o.textContent || o.innerHTML || ""}:${Object.entries(o.props).map(([e, t]) => `${e}:${String(t)}`).join(",")}`);
|
|
2640
1635
|
}
|
|
2641
|
-
function
|
|
1636
|
+
function mt(o, e) {
|
|
2642
1637
|
const { props: t, tag: n } = o;
|
|
2643
|
-
if (
|
|
1638
|
+
if (Kl.includes(n))
|
|
2644
1639
|
return n;
|
|
2645
1640
|
if (n === "link" && t.rel === "canonical")
|
|
2646
1641
|
return "canonical";
|
|
2647
1642
|
if (t.charset)
|
|
2648
1643
|
return "charset";
|
|
2649
|
-
const
|
|
2650
|
-
n === "meta" &&
|
|
2651
|
-
for (const
|
|
2652
|
-
if (typeof t[
|
|
2653
|
-
const
|
|
2654
|
-
return e && !e(
|
|
1644
|
+
const a = ["id"];
|
|
1645
|
+
n === "meta" && a.push("name", "property", "http-equiv");
|
|
1646
|
+
for (const i of a)
|
|
1647
|
+
if (typeof t[i] < "u") {
|
|
1648
|
+
const c = String(t[i]);
|
|
1649
|
+
return e && !e(c) ? !1 : `${n}:${i}:${c}`;
|
|
2655
1650
|
}
|
|
2656
1651
|
return !1;
|
|
2657
1652
|
}
|
|
2658
|
-
function
|
|
1653
|
+
function Qe(o, e) {
|
|
2659
1654
|
return o == null ? e || null : typeof o == "function" ? o(e) : o;
|
|
2660
1655
|
}
|
|
2661
|
-
function
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
}), n.props.body && (n.tagPosition = "bodyClose", delete n.props.body), n.tag === "script" && typeof n.innerHTML == "object" && (n.innerHTML = JSON.stringify(n.innerHTML), n.props.type = n.props.type || "application/json"), Array.isArray(n.props.content) ? n.props.content.map((l) => ve(Z({}, n), { props: ve(Z({}, n.props), { content: l }) })) : n;
|
|
2676
|
-
});
|
|
1656
|
+
async function Jl(o, e, t) {
|
|
1657
|
+
const n = {
|
|
1658
|
+
tag: o,
|
|
1659
|
+
props: await ft(
|
|
1660
|
+
// explicitly check for an object
|
|
1661
|
+
// @ts-expect-error untyped
|
|
1662
|
+
typeof e == "object" && typeof e != "function" && !(e instanceof Promise) ? { ...e } : { [["script", "noscript", "style"].includes(o) ? "innerHTML" : "textContent"]: e },
|
|
1663
|
+
["templateParams", "titleTemplate"].includes(o)
|
|
1664
|
+
)
|
|
1665
|
+
};
|
|
1666
|
+
return pt.forEach((a) => {
|
|
1667
|
+
const i = typeof n.props[a] < "u" ? n.props[a] : t[a];
|
|
1668
|
+
typeof i < "u" && ((!["innerHTML", "textContent", "children"].includes(a) || ql.includes(n.tag)) && (n[a === "children" ? "innerHTML" : a] = i), delete n.props[a]);
|
|
1669
|
+
}), n.props.body && (n.tagPosition = "bodyClose", delete n.props.body), n.tag === "script" && typeof n.innerHTML == "object" && (n.innerHTML = JSON.stringify(n.innerHTML), n.props.type = n.props.type || "application/json"), Array.isArray(n.props.content) ? n.props.content.map((a) => ({ ...n, props: { ...n.props, content: a } })) : n;
|
|
2677
1670
|
}
|
|
2678
|
-
function
|
|
1671
|
+
function Zl(o) {
|
|
2679
1672
|
return typeof o == "object" && !Array.isArray(o) && (o = Object.keys(o).filter((e) => o[e])), (Array.isArray(o) ? o.join(" ") : o).split(" ").filter((e) => e.trim()).filter(Boolean).join(" ");
|
|
2680
1673
|
}
|
|
2681
|
-
function
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
continue;
|
|
2687
|
-
}
|
|
2688
|
-
if (o[t] instanceof Promise && (o[t] = yield o[t]), !e && !wt.includes(t)) {
|
|
2689
|
-
const n = String(o[t]), l = t.startsWith("data-");
|
|
2690
|
-
n === "true" || n === "" ? o[t] = l ? "true" : !0 : o[t] || (l && n === "false" ? o[t] = "false" : delete o[t]);
|
|
2691
|
-
}
|
|
1674
|
+
async function ft(o, e) {
|
|
1675
|
+
for (const t of Object.keys(o)) {
|
|
1676
|
+
if (t === "class") {
|
|
1677
|
+
o[t] = Zl(o[t]);
|
|
1678
|
+
continue;
|
|
2692
1679
|
}
|
|
2693
|
-
|
|
2694
|
-
|
|
1680
|
+
if (o[t] instanceof Promise && (o[t] = await o[t]), !e && !pt.includes(t)) {
|
|
1681
|
+
const n = String(o[t]), a = t.startsWith("data-");
|
|
1682
|
+
n === "true" || n === "" ? o[t] = a ? "true" : !0 : o[t] || (a && n === "false" ? o[t] = "false" : delete o[t]);
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
return o;
|
|
2695
1686
|
}
|
|
2696
|
-
const
|
|
2697
|
-
function
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
}), (yield Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e = o._i, o.mode && (t._m = o.mode), t._p = (o._i << zi) + n, t));
|
|
2704
|
-
});
|
|
1687
|
+
const Yl = 10;
|
|
1688
|
+
async function Ql(o) {
|
|
1689
|
+
const e = [];
|
|
1690
|
+
return Object.entries(o.resolvedInput).filter(([t, n]) => typeof n < "u" && Wl.includes(t)).forEach(([t, n]) => {
|
|
1691
|
+
const a = Gl(n);
|
|
1692
|
+
e.push(...a.map((i) => Jl(t, i, o)).flat());
|
|
1693
|
+
}), (await Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e = o._i, o.mode && (t._m = o.mode), t._p = (o._i << Yl) + n, t));
|
|
2705
1694
|
}
|
|
2706
|
-
const
|
|
1695
|
+
const Xe = {
|
|
2707
1696
|
// tags
|
|
2708
1697
|
base: -10,
|
|
2709
1698
|
title: 10
|
|
2710
|
-
},
|
|
1699
|
+
}, xe = {
|
|
2711
1700
|
// relative scores to their default values
|
|
2712
1701
|
critical: -80,
|
|
2713
1702
|
high: -10,
|
|
2714
1703
|
low: 20
|
|
2715
1704
|
};
|
|
2716
|
-
function
|
|
1705
|
+
function Pe(o) {
|
|
2717
1706
|
let e = 100;
|
|
2718
1707
|
const t = o.tagPriority;
|
|
2719
|
-
return typeof t == "number" ? t : (o.tag === "meta" ? (o.props["http-equiv"] === "content-security-policy" && (e = -30), o.props.charset && (e = -20), o.props.name === "viewport" && (e = -15)) : o.tag === "link" && o.props.rel === "preconnect" ? e = 20 : o.tag in
|
|
1708
|
+
return typeof t == "number" ? t : (o.tag === "meta" ? (o.props["http-equiv"] === "content-security-policy" && (e = -30), o.props.charset && (e = -20), o.props.name === "viewport" && (e = -15)) : o.tag === "link" && o.props.rel === "preconnect" ? e = 20 : o.tag in Xe && (e = Xe[o.tag]), typeof t == "string" && t in xe ? e + xe[t] : e);
|
|
2720
1709
|
}
|
|
2721
|
-
const
|
|
2722
|
-
function
|
|
1710
|
+
const Xl = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], ht = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], le = "%separator";
|
|
1711
|
+
function Ve(o, e, t) {
|
|
2723
1712
|
if (typeof o != "string" || !o.includes("%"))
|
|
2724
1713
|
return o;
|
|
2725
|
-
function n(
|
|
2726
|
-
let
|
|
2727
|
-
return ["s", "pageTitle"].includes(
|
|
1714
|
+
function n(c) {
|
|
1715
|
+
let p;
|
|
1716
|
+
return ["s", "pageTitle"].includes(c) ? p = e.pageTitle : c.includes(".") ? p = c.split(".").reduce((d, s) => d && d[s] || void 0, e) : p = e[c], typeof p < "u" ? (p || "").replace(/"/g, '\\"') : !1;
|
|
2728
1717
|
}
|
|
2729
|
-
let
|
|
1718
|
+
let a = o;
|
|
2730
1719
|
try {
|
|
2731
|
-
|
|
2732
|
-
} catch
|
|
1720
|
+
a = decodeURI(o);
|
|
1721
|
+
} catch {
|
|
2733
1722
|
}
|
|
2734
|
-
return (
|
|
2735
|
-
const
|
|
2736
|
-
typeof
|
|
2737
|
-
}), o.includes(
|
|
1723
|
+
return (a.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((c) => {
|
|
1724
|
+
const p = n(c.slice(1));
|
|
1725
|
+
typeof p == "string" && (o = o.replace(new RegExp(`\\${c}(\\W|$)`, "g"), (d, s) => `${p}${s}`).trim());
|
|
1726
|
+
}), o.includes(le) && (o.endsWith(le) && (o = o.slice(0, -le.length).trim()), o.startsWith(le) && (o = o.slice(le.length).trim()), o = o.replace(new RegExp(`\\${le}\\s*\\${le}`, "g"), le), o = Ve(o, { separator: t }, t)), o;
|
|
2738
1727
|
}
|
|
2739
|
-
function
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
return e._d = Ht(e), e;
|
|
2749
|
-
});
|
|
1728
|
+
async function xl(o) {
|
|
1729
|
+
const e = {
|
|
1730
|
+
tag: o.tagName.toLowerCase(),
|
|
1731
|
+
props: await ft(
|
|
1732
|
+
o.getAttributeNames().reduce((t, n) => ({ ...t, [n]: o.getAttribute(n) }), {})
|
|
1733
|
+
),
|
|
1734
|
+
innerHTML: o.innerHTML
|
|
1735
|
+
};
|
|
1736
|
+
return e._d = mt(e), e;
|
|
2750
1737
|
}
|
|
2751
|
-
function
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
p = {
|
|
2768
|
-
elMap: { htmlAttrs: n.documentElement, bodyAttrs: n.body }
|
|
2769
|
-
};
|
|
2770
|
-
for (const b of ["body", "head"]) {
|
|
2771
|
-
const r = (y = n == null ? void 0 : n[b]) == null ? void 0 : y.children;
|
|
2772
|
-
for (const k of [...r].filter((_) => ke.includes(_.tagName.toLowerCase())))
|
|
2773
|
-
p.elMap[k.getAttribute("data-hid") || ht(yield Fi(k))] = k;
|
|
2774
|
-
}
|
|
2775
|
-
}
|
|
2776
|
-
p.pendingSideEffects = Z({}, p.sideEffects || {}), p.sideEffects = {};
|
|
2777
|
-
function h(b, r, k) {
|
|
2778
|
-
const _ = `${b}:${r}`;
|
|
2779
|
-
p.sideEffects[_] = k, delete p.pendingSideEffects[_];
|
|
2780
|
-
}
|
|
2781
|
-
function d({ id: b, $el: r, tag: k }) {
|
|
2782
|
-
const _ = k.tag.endsWith("Attrs");
|
|
2783
|
-
p.elMap[b] = r, _ || (["textContent", "innerHTML"].forEach((f) => {
|
|
2784
|
-
k[f] && k[f] !== r[f] && (r[f] = k[f]);
|
|
2785
|
-
}), h(b, "el", () => {
|
|
2786
|
-
p.elMap[b].remove(), delete p.elMap[b];
|
|
2787
|
-
})), Object.entries(k.props).forEach(([f, i]) => {
|
|
2788
|
-
const a = `attr:${f}`;
|
|
2789
|
-
if (f === "class")
|
|
2790
|
-
for (const m of (i || "").split(" ").filter(Boolean))
|
|
2791
|
-
_ && h(b, `${a}:${m}`, () => r.classList.remove(m)), !r.classList.contains(m) && r.classList.add(m);
|
|
2792
|
-
else
|
|
2793
|
-
r.getAttribute(f) !== i && r.setAttribute(f, i === !0 ? "" : String(i)), _ && h(b, a, () => r.removeAttribute(f));
|
|
2794
|
-
});
|
|
2795
|
-
}
|
|
2796
|
-
const c = [], g = {
|
|
2797
|
-
bodyClose: void 0,
|
|
2798
|
-
bodyOpen: void 0,
|
|
2799
|
-
head: void 0
|
|
1738
|
+
async function en(o, e = {}) {
|
|
1739
|
+
const t = e.document || o.resolvedOptions.document;
|
|
1740
|
+
if (!t)
|
|
1741
|
+
return;
|
|
1742
|
+
const n = { shouldRender: o.dirty, tags: [] };
|
|
1743
|
+
if (await o.hooks.callHook("dom:beforeRender", n), !n.shouldRender)
|
|
1744
|
+
return;
|
|
1745
|
+
const a = (await o.resolveTags()).map((u) => ({
|
|
1746
|
+
tag: u,
|
|
1747
|
+
id: _e.includes(u.tag) ? Ye(u) : u.tag,
|
|
1748
|
+
shouldRender: !0
|
|
1749
|
+
}));
|
|
1750
|
+
let i = o._dom;
|
|
1751
|
+
if (!i) {
|
|
1752
|
+
i = {
|
|
1753
|
+
elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
|
|
2800
1754
|
};
|
|
2801
|
-
for (const
|
|
2802
|
-
const
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
n.title = r.textContent;
|
|
2806
|
-
continue;
|
|
2807
|
-
}
|
|
2808
|
-
b.$el = b.$el || p.elMap[_], b.$el ? d(b) : ke.includes(r.tag) && c.push(b);
|
|
2809
|
-
}
|
|
1755
|
+
for (const u of ["body", "head"]) {
|
|
1756
|
+
const h = t?.[u]?.children;
|
|
1757
|
+
for (const b of [...h].filter((D) => _e.includes(D.tagName.toLowerCase())))
|
|
1758
|
+
i.elMap[b.getAttribute("data-hid") || Ye(await xl(b))] = b;
|
|
2810
1759
|
}
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
1760
|
+
}
|
|
1761
|
+
i.pendingSideEffects = { ...i.sideEffects || {} }, i.sideEffects = {};
|
|
1762
|
+
function c(u, h, b) {
|
|
1763
|
+
const D = `${u}:${h}`;
|
|
1764
|
+
i.sideEffects[D] = b, delete i.pendingSideEffects[D];
|
|
1765
|
+
}
|
|
1766
|
+
function p({ id: u, $el: h, tag: b }) {
|
|
1767
|
+
const D = b.tag.endsWith("Attrs");
|
|
1768
|
+
i.elMap[u] = h, D || (["textContent", "innerHTML"].forEach((C) => {
|
|
1769
|
+
b[C] && b[C] !== h[C] && (h[C] = b[C]);
|
|
1770
|
+
}), c(u, "el", () => {
|
|
1771
|
+
i.elMap[u].remove(), delete i.elMap[u];
|
|
1772
|
+
})), Object.entries(b.props).forEach(([C, O]) => {
|
|
1773
|
+
const N = `attr:${C}`;
|
|
1774
|
+
if (C === "class")
|
|
1775
|
+
for (const k of (O || "").split(" ").filter(Boolean))
|
|
1776
|
+
D && c(u, `${N}:${k}`, () => h.classList.remove(k)), !h.classList.contains(k) && h.classList.add(k);
|
|
1777
|
+
else
|
|
1778
|
+
h.getAttribute(C) !== O && h.setAttribute(C, O === !0 ? "" : String(O)), D && c(u, N, () => h.removeAttribute(C));
|
|
1779
|
+
});
|
|
1780
|
+
}
|
|
1781
|
+
const d = [], s = {
|
|
1782
|
+
bodyClose: void 0,
|
|
1783
|
+
bodyOpen: void 0,
|
|
1784
|
+
head: void 0
|
|
1785
|
+
};
|
|
1786
|
+
for (const u of a) {
|
|
1787
|
+
const { tag: h, shouldRender: b, id: D } = u;
|
|
1788
|
+
if (b) {
|
|
1789
|
+
if (h.tag === "title") {
|
|
1790
|
+
t.title = h.textContent;
|
|
1791
|
+
continue;
|
|
1792
|
+
}
|
|
1793
|
+
u.$el = u.$el || i.elMap[D], u.$el ? p(u) : _e.includes(h.tag) && d.push(u);
|
|
2814
1794
|
}
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
1795
|
+
}
|
|
1796
|
+
for (const u of d) {
|
|
1797
|
+
const h = u.tag.tagPosition || "head";
|
|
1798
|
+
u.$el = t.createElement(u.tag.tag), p(u), s[h] = s[h] || t.createDocumentFragment(), s[h].appendChild(u.$el);
|
|
1799
|
+
}
|
|
1800
|
+
for (const u of a)
|
|
1801
|
+
await o.hooks.callHook("dom:renderTag", u, t, c);
|
|
1802
|
+
s.head && t.head.appendChild(s.head), s.bodyOpen && t.body.insertBefore(s.bodyOpen, t.body.firstChild), s.bodyClose && t.body.appendChild(s.bodyClose), Object.values(i.pendingSideEffects).forEach((u) => u()), o._dom = i, o.dirty = !1, await o.hooks.callHook("dom:rendered", { renders: a });
|
|
2819
1803
|
}
|
|
2820
|
-
function
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
})));
|
|
2826
|
-
});
|
|
1804
|
+
async function tn(o, e = {}) {
|
|
1805
|
+
const t = e.delayFn || ((n) => setTimeout(n, 10));
|
|
1806
|
+
return o._domUpdatePromise = o._domUpdatePromise || new Promise((n) => t(async () => {
|
|
1807
|
+
await en(o, e), delete o._domUpdatePromise, n();
|
|
1808
|
+
}));
|
|
2827
1809
|
}
|
|
2828
1810
|
// @__NO_SIDE_EFFECTS__
|
|
2829
|
-
function
|
|
1811
|
+
function on(o) {
|
|
2830
1812
|
return (e) => {
|
|
2831
|
-
|
|
2832
|
-
const t = ((l = (n = e.resolvedOptions.document) == null ? void 0 : n.head.querySelector('script[id="unhead:payload"]')) == null ? void 0 : l.innerHTML) || !1;
|
|
1813
|
+
const t = e.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
|
|
2833
1814
|
return t && e.push(JSON.parse(t)), {
|
|
2834
1815
|
mode: "client",
|
|
2835
1816
|
hooks: {
|
|
2836
|
-
"entries:updated": function(
|
|
2837
|
-
|
|
1817
|
+
"entries:updated": function(n) {
|
|
1818
|
+
tn(n, o);
|
|
2838
1819
|
}
|
|
2839
1820
|
}
|
|
2840
1821
|
};
|
|
2841
1822
|
};
|
|
2842
1823
|
}
|
|
2843
|
-
const
|
|
1824
|
+
const ln = ["templateParams", "htmlAttrs", "bodyAttrs"], nn = {
|
|
2844
1825
|
hooks: {
|
|
2845
1826
|
"tag:normalise": function({ tag: o }) {
|
|
2846
1827
|
["hid", "vmid", "key"].forEach((n) => {
|
|
2847
1828
|
o.props[n] && (o.key = o.props[n], delete o.props[n]);
|
|
2848
1829
|
});
|
|
2849
|
-
const t =
|
|
1830
|
+
const t = mt(o) || (o.key ? `${o.tag}:${o.key}` : !1);
|
|
2850
1831
|
t && (o._d = t);
|
|
2851
1832
|
},
|
|
2852
1833
|
"tags:resolve": function(o) {
|
|
2853
1834
|
const e = {};
|
|
2854
1835
|
o.tags.forEach((n) => {
|
|
2855
|
-
const
|
|
2856
|
-
if (
|
|
2857
|
-
let
|
|
2858
|
-
if (!
|
|
2859
|
-
const d =
|
|
2860
|
-
["class", "style"].forEach((
|
|
2861
|
-
d[
|
|
2862
|
-
}), e[
|
|
1836
|
+
const a = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p, i = e[a];
|
|
1837
|
+
if (i) {
|
|
1838
|
+
let p = n?.tagDuplicateStrategy;
|
|
1839
|
+
if (!p && ln.includes(n.tag) && (p = "merge"), p === "merge") {
|
|
1840
|
+
const d = i.props;
|
|
1841
|
+
["class", "style"].forEach((s) => {
|
|
1842
|
+
d[s] && (n.props[s] ? (s === "style" && !d[s].endsWith(";") && (d[s] += ";"), n.props[s] = `${d[s]} ${n.props[s]}`) : n.props[s] = d[s]);
|
|
1843
|
+
}), e[a].props = {
|
|
1844
|
+
...d,
|
|
1845
|
+
...n.props
|
|
1846
|
+
};
|
|
2863
1847
|
return;
|
|
2864
|
-
} else if (n._e ===
|
|
2865
|
-
|
|
1848
|
+
} else if (n._e === i._e) {
|
|
1849
|
+
i._duped = i._duped || [], n._d = `${i._d}:${i._duped.length + 1}`, i._duped.push(n);
|
|
2866
1850
|
return;
|
|
2867
|
-
} else if (
|
|
1851
|
+
} else if (Pe(n) > Pe(i))
|
|
2868
1852
|
return;
|
|
2869
1853
|
}
|
|
2870
|
-
const
|
|
2871
|
-
if (
|
|
2872
|
-
delete e[
|
|
1854
|
+
const c = Object.keys(n.props).length + (n.innerHTML ? 1 : 0) + (n.textContent ? 1 : 0);
|
|
1855
|
+
if (_e.includes(n.tag) && c === 0) {
|
|
1856
|
+
delete e[a];
|
|
2873
1857
|
return;
|
|
2874
1858
|
}
|
|
2875
|
-
e[
|
|
1859
|
+
e[a] = n;
|
|
2876
1860
|
});
|
|
2877
1861
|
const t = [];
|
|
2878
1862
|
Object.values(e).forEach((n) => {
|
|
2879
|
-
const
|
|
2880
|
-
delete n._duped, t.push(n),
|
|
1863
|
+
const a = n._duped;
|
|
1864
|
+
delete n._duped, t.push(n), a && t.push(...a);
|
|
2881
1865
|
}), o.tags = t, o.tags = o.tags.filter((n) => !(n.tag === "meta" && (n.props.name || n.props.property) && !n.props.content));
|
|
2882
1866
|
}
|
|
2883
1867
|
}
|
|
2884
|
-
},
|
|
1868
|
+
}, an = {
|
|
2885
1869
|
mode: "server",
|
|
2886
1870
|
hooks: {
|
|
2887
1871
|
"tags:resolve": function(o) {
|
|
@@ -2895,110 +1879,106 @@ const Gi = ["templateParams", "htmlAttrs", "bodyAttrs"], ji = {
|
|
|
2895
1879
|
});
|
|
2896
1880
|
}
|
|
2897
1881
|
}
|
|
2898
|
-
},
|
|
2899
|
-
function
|
|
1882
|
+
}, sn = ["script", "link", "bodyAttrs"];
|
|
1883
|
+
function rn(o) {
|
|
2900
1884
|
const e = {}, t = {};
|
|
2901
|
-
return Object.entries(o.props).forEach(([n,
|
|
2902
|
-
n.startsWith("on") && typeof
|
|
1885
|
+
return Object.entries(o.props).forEach(([n, a]) => {
|
|
1886
|
+
n.startsWith("on") && typeof a == "function" ? (ht.includes(n) && (e[n] = `this.dataset.${n} = true`), t[n] = a) : e[n] = a;
|
|
2903
1887
|
}), { props: e, eventHandlers: t };
|
|
2904
1888
|
}
|
|
2905
|
-
const
|
|
1889
|
+
const un = (o) => ({
|
|
2906
1890
|
hooks: {
|
|
2907
1891
|
"tags:resolve": function(e) {
|
|
2908
1892
|
for (const t of e.tags)
|
|
2909
|
-
if (
|
|
2910
|
-
const { props: n, eventHandlers:
|
|
2911
|
-
t.props = n, Object.keys(
|
|
1893
|
+
if (sn.includes(t.tag)) {
|
|
1894
|
+
const { props: n, eventHandlers: a } = rn(t);
|
|
1895
|
+
t.props = n, Object.keys(a).length && ((t.props.src || t.props.href) && (t.key = t.key || qe(t.props.src || t.props.href)), t._eventHandlers = a);
|
|
2912
1896
|
}
|
|
2913
1897
|
},
|
|
2914
1898
|
"dom:renderTag": function(e, t, n) {
|
|
2915
1899
|
if (!e.tag._eventHandlers)
|
|
2916
1900
|
return;
|
|
2917
|
-
const
|
|
2918
|
-
Object.entries(e.tag._eventHandlers).forEach(([
|
|
2919
|
-
const
|
|
2920
|
-
if (n(e.id,
|
|
2921
|
-
}), e.$el.hasAttribute(
|
|
1901
|
+
const a = e.tag.tag === "bodyAttrs" ? t.defaultView : e.$el;
|
|
1902
|
+
Object.entries(e.tag._eventHandlers).forEach(([i, c]) => {
|
|
1903
|
+
const p = `${e.tag._d || e.tag._p}:${i}`, d = i.slice(2).toLowerCase(), s = `data-h-${d}`;
|
|
1904
|
+
if (n(e.id, p, () => {
|
|
1905
|
+
}), e.$el.hasAttribute(s))
|
|
2922
1906
|
return;
|
|
2923
|
-
e.$el.setAttribute(
|
|
2924
|
-
let
|
|
2925
|
-
const
|
|
2926
|
-
|
|
1907
|
+
e.$el.setAttribute(s, "");
|
|
1908
|
+
let u;
|
|
1909
|
+
const h = (b) => {
|
|
1910
|
+
c(b), u?.disconnect();
|
|
2927
1911
|
};
|
|
2928
|
-
|
|
2929
|
-
b.some((
|
|
2930
|
-
}),
|
|
1912
|
+
i in e.$el.dataset ? h(new Event(i.replace("on", ""))) : ht.includes(i) && typeof MutationObserver < "u" ? (u = new MutationObserver((b) => {
|
|
1913
|
+
b.some((C) => C.attributeName === `data-${i}`) && (h(new Event(i.replace("on", ""))), u?.disconnect());
|
|
1914
|
+
}), u.observe(e.$el, {
|
|
2931
1915
|
attributes: !0
|
|
2932
|
-
})) :
|
|
2933
|
-
|
|
1916
|
+
})) : a.addEventListener(d, h), n(e.id, p, () => {
|
|
1917
|
+
u?.disconnect(), a.removeEventListener(d, h), e.$el.removeAttribute(s);
|
|
2934
1918
|
});
|
|
2935
1919
|
});
|
|
2936
1920
|
}
|
|
2937
1921
|
}
|
|
2938
|
-
}),
|
|
1922
|
+
}), dn = ["link", "style", "script", "noscript"], cn = {
|
|
2939
1923
|
hooks: {
|
|
2940
1924
|
"tag:normalise": ({ tag: o }) => {
|
|
2941
|
-
o.key &&
|
|
1925
|
+
o.key && dn.includes(o.tag) && (o.props["data-hid"] = o._h = qe(o.key));
|
|
2942
1926
|
}
|
|
2943
1927
|
}
|
|
2944
|
-
},
|
|
1928
|
+
}, pn = {
|
|
2945
1929
|
hooks: {
|
|
2946
1930
|
"tags:resolve": (o) => {
|
|
2947
|
-
const e = (t) =>
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
for (const l of o.tags.filter((u) => typeof u.tagPriority == "string" && u.tagPriority.startsWith(t))) {
|
|
2953
|
-
const u = e(
|
|
2954
|
-
l.tagPriority.replace(t, "")
|
|
1931
|
+
const e = (t) => o.tags.find((n) => n._d === t)?._p;
|
|
1932
|
+
for (const { prefix: t, offset: n } of Xl)
|
|
1933
|
+
for (const a of o.tags.filter((i) => typeof i.tagPriority == "string" && i.tagPriority.startsWith(t))) {
|
|
1934
|
+
const i = e(
|
|
1935
|
+
a.tagPriority.replace(t, "")
|
|
2955
1936
|
);
|
|
2956
|
-
typeof
|
|
1937
|
+
typeof i < "u" && (a._p = i + n);
|
|
2957
1938
|
}
|
|
2958
|
-
o.tags.sort((t, n) => t._p - n._p).sort((t, n) =>
|
|
1939
|
+
o.tags.sort((t, n) => t._p - n._p).sort((t, n) => Pe(t) - Pe(n));
|
|
2959
1940
|
}
|
|
2960
1941
|
}
|
|
2961
|
-
},
|
|
1942
|
+
}, mn = {
|
|
2962
1943
|
meta: "content",
|
|
2963
1944
|
link: "href",
|
|
2964
1945
|
htmlAttrs: "lang"
|
|
2965
|
-
},
|
|
1946
|
+
}, fn = (o) => ({
|
|
2966
1947
|
hooks: {
|
|
2967
1948
|
"tags:resolve": (e) => {
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
typeof d[g] == "string" && (d[g] = _e(d[g], u, p));
|
|
1949
|
+
const { tags: t } = e, n = t.find((p) => p.tag === "title")?.textContent, a = t.findIndex((p) => p.tag === "templateParams"), i = a !== -1 ? t[a].props : {}, c = i.separator || "|";
|
|
1950
|
+
delete i.separator, i.pageTitle = Ve(i.pageTitle || n || "", i, c);
|
|
1951
|
+
for (const p of t.filter((d) => d.processTemplateParams !== !1)) {
|
|
1952
|
+
const d = mn[p.tag];
|
|
1953
|
+
d && typeof p.props[d] == "string" ? p.props[d] = Ve(p.props[d], i, c) : (p.processTemplateParams === !0 || ["titleTemplate", "title"].includes(p.tag)) && ["innerHTML", "textContent"].forEach((s) => {
|
|
1954
|
+
typeof p[s] == "string" && (p[s] = Ve(p[s], i, c));
|
|
2975
1955
|
});
|
|
2976
1956
|
}
|
|
2977
|
-
o._templateParams =
|
|
1957
|
+
o._templateParams = i, o._separator = c, e.tags = t.filter((p) => p.tag !== "templateParams");
|
|
2978
1958
|
}
|
|
2979
1959
|
}
|
|
2980
|
-
}),
|
|
1960
|
+
}), hn = {
|
|
2981
1961
|
hooks: {
|
|
2982
1962
|
"tags:resolve": (o) => {
|
|
2983
1963
|
const { tags: e } = o;
|
|
2984
|
-
let t = e.findIndex((
|
|
2985
|
-
const n = e.findIndex((
|
|
1964
|
+
let t = e.findIndex((a) => a.tag === "titleTemplate");
|
|
1965
|
+
const n = e.findIndex((a) => a.tag === "title");
|
|
2986
1966
|
if (n !== -1 && t !== -1) {
|
|
2987
|
-
const
|
|
1967
|
+
const a = Qe(
|
|
2988
1968
|
e[t].textContent,
|
|
2989
1969
|
e[n].textContent
|
|
2990
1970
|
);
|
|
2991
|
-
|
|
1971
|
+
a !== null ? e[n].textContent = a || e[n].textContent : delete e[n];
|
|
2992
1972
|
} else if (t !== -1) {
|
|
2993
|
-
const
|
|
1973
|
+
const a = Qe(
|
|
2994
1974
|
e[t].textContent
|
|
2995
1975
|
);
|
|
2996
|
-
|
|
1976
|
+
a !== null && (e[t].textContent = a, e[t].tag = "title", t = -1);
|
|
2997
1977
|
}
|
|
2998
1978
|
t !== -1 && delete e[t], o.tags = e.filter(Boolean);
|
|
2999
1979
|
}
|
|
3000
1980
|
}
|
|
3001
|
-
},
|
|
1981
|
+
}, vn = {
|
|
3002
1982
|
hooks: {
|
|
3003
1983
|
"tags:afterResolve": function(o) {
|
|
3004
1984
|
for (const e of o.tags)
|
|
@@ -3007,122 +1987,137 @@ const Ji = (o) => ({
|
|
|
3007
1987
|
}
|
|
3008
1988
|
};
|
|
3009
1989
|
// @__NO_SIDE_EFFECTS__
|
|
3010
|
-
function
|
|
3011
|
-
const e =
|
|
3012
|
-
return e.use(/* @__PURE__ */
|
|
1990
|
+
function gn(o = {}) {
|
|
1991
|
+
const e = yn(o);
|
|
1992
|
+
return e.use(/* @__PURE__ */ on()), e;
|
|
3013
1993
|
}
|
|
3014
|
-
function
|
|
1994
|
+
function et(o, e) {
|
|
3015
1995
|
return !o || o === "server" && e || o === "client" && !e;
|
|
3016
1996
|
}
|
|
3017
|
-
function
|
|
3018
|
-
const e =
|
|
3019
|
-
e.addHooks(o.hooks || {}), o.document = o.document || (
|
|
1997
|
+
function yn(o = {}) {
|
|
1998
|
+
const e = jl();
|
|
1999
|
+
e.addHooks(o.hooks || {}), o.document = o.document || (zl ? document : void 0);
|
|
3020
2000
|
const t = !o.document, n = () => {
|
|
3021
|
-
|
|
2001
|
+
p.dirty = !0, e.callHook("entries:updated", p);
|
|
3022
2002
|
};
|
|
3023
|
-
let
|
|
3024
|
-
const
|
|
3025
|
-
plugins:
|
|
2003
|
+
let a = 0, i = [];
|
|
2004
|
+
const c = [], p = {
|
|
2005
|
+
plugins: c,
|
|
3026
2006
|
dirty: !1,
|
|
3027
2007
|
resolvedOptions: o,
|
|
3028
2008
|
hooks: e,
|
|
3029
2009
|
headEntries() {
|
|
3030
|
-
return
|
|
2010
|
+
return i;
|
|
3031
2011
|
},
|
|
3032
|
-
use(
|
|
3033
|
-
const
|
|
3034
|
-
(!
|
|
2012
|
+
use(d) {
|
|
2013
|
+
const s = typeof d == "function" ? d(p) : d;
|
|
2014
|
+
(!s.key || !c.some((u) => u.key === s.key)) && (c.push(s), et(s.mode, t) && e.addHooks(s.hooks || {}));
|
|
3035
2015
|
},
|
|
3036
|
-
push(
|
|
3037
|
-
|
|
3038
|
-
const
|
|
3039
|
-
_i:
|
|
3040
|
-
input:
|
|
3041
|
-
|
|
3042
|
-
|
|
2016
|
+
push(d, s) {
|
|
2017
|
+
delete s?.head;
|
|
2018
|
+
const u = {
|
|
2019
|
+
_i: a++,
|
|
2020
|
+
input: d,
|
|
2021
|
+
...s
|
|
2022
|
+
};
|
|
2023
|
+
return et(u.mode, t) && (i.push(u), n()), {
|
|
3043
2024
|
dispose() {
|
|
3044
|
-
|
|
2025
|
+
i = i.filter((h) => h._i !== u._i), e.callHook("entries:updated", p), n();
|
|
3045
2026
|
},
|
|
3046
2027
|
// a patch is the same as creating a new entry, just a nice DX
|
|
3047
|
-
patch(
|
|
3048
|
-
|
|
2028
|
+
patch(h) {
|
|
2029
|
+
i = i.map((b) => (b._i === u._i && (b.input = u.input = h), b)), n();
|
|
3049
2030
|
}
|
|
3050
2031
|
};
|
|
3051
2032
|
},
|
|
3052
|
-
resolveTags() {
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
return yield e.callHook("tags:beforeResolve", c), yield e.callHook("tags:resolve", c), yield e.callHook("tags:afterResolve", c), c.tags;
|
|
3065
|
-
});
|
|
2033
|
+
async resolveTags() {
|
|
2034
|
+
const d = { tags: [], entries: [...i] };
|
|
2035
|
+
await e.callHook("entries:resolve", d);
|
|
2036
|
+
for (const s of d.entries) {
|
|
2037
|
+
const u = s.resolvedInput || s.input;
|
|
2038
|
+
if (s.resolvedInput = await (s.transform ? s.transform(u) : u), s.resolvedInput)
|
|
2039
|
+
for (const h of await Ql(s)) {
|
|
2040
|
+
const b = { tag: h, entry: s, resolvedOptions: p.resolvedOptions };
|
|
2041
|
+
await e.callHook("tag:normalise", b), d.tags.push(b.tag);
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
return await e.callHook("tags:beforeResolve", d), await e.callHook("tags:resolve", d), await e.callHook("tags:afterResolve", d), d.tags;
|
|
3066
2045
|
},
|
|
3067
2046
|
ssr: t
|
|
3068
2047
|
};
|
|
3069
2048
|
return [
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
...
|
|
3079
|
-
].forEach((
|
|
2049
|
+
nn,
|
|
2050
|
+
an,
|
|
2051
|
+
un,
|
|
2052
|
+
cn,
|
|
2053
|
+
pn,
|
|
2054
|
+
fn,
|
|
2055
|
+
hn,
|
|
2056
|
+
vn,
|
|
2057
|
+
...o?.plugins || []
|
|
2058
|
+
].forEach((d) => p.use(d)), p.hooks.callHook("init", p), p;
|
|
3080
2059
|
}
|
|
3081
|
-
const
|
|
3082
|
-
function
|
|
3083
|
-
return typeof o == "function" ? o() :
|
|
2060
|
+
const bn = zt.startsWith("3");
|
|
2061
|
+
function kn(o) {
|
|
2062
|
+
return typeof o == "function" ? o() : l(o);
|
|
3084
2063
|
}
|
|
3085
2064
|
function Ge(o, e = "") {
|
|
3086
2065
|
if (o instanceof Promise)
|
|
3087
2066
|
return o;
|
|
3088
|
-
const t =
|
|
2067
|
+
const t = kn(o);
|
|
3089
2068
|
return !o || !t ? t : Array.isArray(t) ? t.map((n) => Ge(n, e)) : typeof t == "object" ? Object.fromEntries(
|
|
3090
|
-
Object.entries(t).map(([n,
|
|
2069
|
+
Object.entries(t).map(([n, a]) => n === "titleTemplate" || n.startsWith("on") ? [n, l(a)] : [n, Ge(a, n)])
|
|
3091
2070
|
) : t;
|
|
3092
2071
|
}
|
|
3093
|
-
const
|
|
2072
|
+
const _n = {
|
|
3094
2073
|
hooks: {
|
|
3095
2074
|
"entries:resolve": function(o) {
|
|
3096
2075
|
for (const e of o.entries)
|
|
3097
2076
|
e.resolvedInput = Ge(e.input);
|
|
3098
2077
|
}
|
|
3099
2078
|
}
|
|
3100
|
-
},
|
|
3101
|
-
function
|
|
2079
|
+
}, Vn = "usehead";
|
|
2080
|
+
function $n(o) {
|
|
3102
2081
|
return {
|
|
3103
2082
|
install(t) {
|
|
3104
|
-
|
|
2083
|
+
bn && (t.config.globalProperties.$unhead = o, t.config.globalProperties.$head = o, t.provide(Vn, o));
|
|
3105
2084
|
}
|
|
3106
2085
|
}.install;
|
|
3107
2086
|
}
|
|
3108
|
-
function
|
|
3109
|
-
o.domDelayFn = o.domDelayFn || ((t) =>
|
|
3110
|
-
const e = /* @__PURE__ */
|
|
3111
|
-
return e.use(
|
|
2087
|
+
function Tn(o = {}) {
|
|
2088
|
+
o.domDelayFn = o.domDelayFn || ((t) => Kt(() => setTimeout(() => t(), 0)));
|
|
2089
|
+
const e = /* @__PURE__ */ gn(o);
|
|
2090
|
+
return e.use(_n), e.install = $n(e), e;
|
|
3112
2091
|
}
|
|
3113
|
-
const
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
le.use(Mo);
|
|
3119
|
-
le.use(wo, { bootstrap: !0 });
|
|
3120
|
-
le.mount("#konnectio-hotel-app");
|
|
3121
|
-
const Sr = {
|
|
3122
|
-
install: (o) => {
|
|
3123
|
-
o.component("Hotel", St);
|
|
2092
|
+
const Cn = Jt(), wn = Tn(), Pn = Xt();
|
|
2093
|
+
class Hn extends HTMLElement {
|
|
2094
|
+
vueApp;
|
|
2095
|
+
constructor() {
|
|
2096
|
+
super();
|
|
3124
2097
|
}
|
|
3125
|
-
|
|
2098
|
+
disconnectedCallback() {
|
|
2099
|
+
this.vueApp.unmount();
|
|
2100
|
+
}
|
|
2101
|
+
connectedCallback() {
|
|
2102
|
+
const e = typeof ke == "function" ? ke.options : ke;
|
|
2103
|
+
let t = Array.isArray(e.props) ? e.props : Object.keys(e.props || {});
|
|
2104
|
+
const n = (d) => d.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (s, u) => (u ? "-" : "") + s.toLowerCase()), a = (d) => d.replace(/-./g, (s) => s[1].toUpperCase()), i = {};
|
|
2105
|
+
t = t.map(n);
|
|
2106
|
+
const c = {};
|
|
2107
|
+
for (const d of this.attributes) {
|
|
2108
|
+
const u = d.name.split(".");
|
|
2109
|
+
u.length > 1 && (c[u[0]] || (c[u[0]] = {}), c[u[0]][a(u[1])] = d.value);
|
|
2110
|
+
}
|
|
2111
|
+
for (const d of t) {
|
|
2112
|
+
let s = this.attributes.getNamedItem(d)?.value;
|
|
2113
|
+
c.hasOwnProperty(d) && (s = c[d]), i[d] = s;
|
|
2114
|
+
}
|
|
2115
|
+
this.vueApp = Zt(ke, i), this.vueApp.provide("emitter", Pn), this.vueApp.use(wn), this.vueApp.use(Cn), this.vueApp.use(no), this.vueApp.use(Yt), this.vueApp.use(ao), this.vueApp.use(Qt, { bootstrap: !0 });
|
|
2116
|
+
const p = document.createElement("div");
|
|
2117
|
+
this.vueApp.mount(p), this.appendChild(p.children[0]);
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
window.customElements.define("konnectio-hotel", Hn);
|
|
3126
2121
|
export {
|
|
3127
|
-
|
|
2122
|
+
Hn as default
|
|
3128
2123
|
};
|