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