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