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