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