@konnectio/core 4.1.12 → 4.1.14
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-CM48D0lz.js → ActionField-hgy5ZOQ6.js} +3 -3
- package/dist/ActionField-hgy5ZOQ6.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BbbfOA4N.js → AvailabilitySkeleton-5uCu1nzp.js} +6 -6
- package/dist/AvailabilitySkeleton-5uCu1nzp.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-ZvAEMVGq.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BhPBIal7.js} +3 -3
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BhPBIal7.js.br +0 -0
- package/dist/{CheckoutWindow-C9LY04Db.js → CheckoutWindow-Bq5hME7a.js} +3 -3
- package/dist/CheckoutWindow-Bq5hME7a.js.br +0 -0
- package/dist/{ErrorMessage-BIi8rRO1.js → ErrorMessage-D4CAGikH.js} +3 -3
- package/dist/ErrorMessage-D4CAGikH.js.br +0 -0
- package/dist/{EventAvailabilityForm-CegObVbR.js → EventAvailabilityForm-CBt6x44D.js} +4 -4
- package/dist/EventAvailabilityForm-CBt6x44D.js.br +0 -0
- package/dist/{Field-CCABX2As.js → Field-BqlHHhvH.js} +4 -4
- package/dist/Field-BqlHHhvH.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-iStNEO56.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BFkAbifm.js} +3 -3
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-BtY1IVT6.js → SelectField.vue_vue_type_style_index_0_lang-_9D4XlFm.js} +3 -3
- package/dist/SelectField.vue_vue_type_style_index_0_lang-_9D4XlFm.js.br +0 -0
- package/dist/{TermsOfService-DTMLLPZl.js → TermsOfService-BntiZBXq.js} +4 -4
- package/dist/_-80YHloJe.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-CcJ-GELj.js → _.vue_vue_type_style_index_0_lang-D0pfn_ZS.js} +3 -3
- package/dist/availability.js +6 -6
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +5 -5
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +9 -9
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +9 -9
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +10 -10
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-B0AJlfXr.js → giftCard-BaE-tYjv.js} +3 -3
- package/dist/giftCard-BaE-tYjv.js.br +0 -0
- package/dist/hotel.js +766 -754
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-C1LvE3QZ.js → masonry.plugin-CTRhB5BY.js} +19 -36
- package/dist/masonry.plugin-CTRhB5BY.js.br +0 -0
- package/dist/{mitt-BysJOgFD.js → mitt-CqqTNFC7.js} +3816 -3834
- package/dist/mitt-CqqTNFC7.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CFj6q1kW.js → style-B5c-Dkj8.js} +643 -624
- package/dist/style-B5c-Dkj8.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-CM48D0lz.js.br +0 -0
- package/dist/AvailabilitySkeleton-BbbfOA4N.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-ZvAEMVGq.js.br +0 -0
- package/dist/CheckoutWindow-C9LY04Db.js.br +0 -0
- package/dist/ErrorMessage-BIi8rRO1.js.br +0 -0
- package/dist/EventAvailabilityForm-CegObVbR.js.br +0 -0
- package/dist/Field-CCABX2As.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BtY1IVT6.js.br +0 -0
- package/dist/_-DUz2r3ns.js +0 -5
- package/dist/giftCard-B0AJlfXr.js.br +0 -0
- package/dist/masonry.plugin-C1LvE3QZ.js.br +0 -0
- package/dist/mitt-BysJOgFD.js.br +0 -0
- package/dist/style-CFj6q1kW.js.br +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { d as Rt, u as Kt, s as Gt, r as Wt, J as
|
|
2
|
-
import { h as Ae, b as ye, u as mi, I as xt, s as ne, j as ci, l as
|
|
3
|
-
import { G as zr } from "./style-
|
|
4
|
-
import { R as Zr, B as nn, L as Dr, S as Nr, M as Rr, T as Hr, C as Vr, b as
|
|
5
|
-
import { A as Gr, H as Wr } from "./AvailabilitySkeleton-
|
|
6
|
-
import { S as $r } from "./TermsOfService-
|
|
7
|
-
import { a as
|
|
1
|
+
import { d as Rt, u as Kt, s as Gt, r as Wt, J as vr, a as lt, b as M, g as h, y as At, z as yr, w as tt, h as A, i as U, e as P, t as E, E as $e, G as _i, f as Z, A as Ot, F as mt, q as Wn, j as as, C as Lr, c as wt, v as ls, K as Wo, o as eo, D as Ji, n as Xi, S as br, L as kr, M as wr, N as Pr, k as xr, _ as Cr, l as Tr, m as Mr, p as Sr } from "./mitt-CqqTNFC7.js";
|
|
2
|
+
import { h as Ae, b as ye, u as mi, I as xt, s as ne, j as ci, l as $n, q as ce, n as oe, _ as se, d as en, F as Ar, H as us, g as di, e as de, B as hs, a as cs, J as $o, x as Or, T as ge, K as Ir, p as qo, M as jo, C as Er, r as Ko, t as Yo, v as Br } from "./SelectField.vue_vue_type_style_index_0_lang-_9D4XlFm.js";
|
|
3
|
+
import { G as zr } from "./style-B5c-Dkj8.js";
|
|
4
|
+
import { R as Zr, B as nn, L as Dr, S as Nr, M as Rr, T as Hr, C as Vr, b as qn, V as Fr, a as Ur } from "./masonry.plugin-CTRhB5BY.js";
|
|
5
|
+
import { A as Gr, H as Wr } from "./AvailabilitySkeleton-5uCu1nzp.js";
|
|
6
|
+
import { S as $r } from "./TermsOfService-BntiZBXq.js";
|
|
7
|
+
import { a as Yn, B as ds, C as qr, P as jr } from "./CheckoutWindow-Bq5hME7a.js";
|
|
8
8
|
import { g as Kr } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
9
|
-
import { _ as
|
|
10
|
-
function
|
|
11
|
-
for (const f in
|
|
12
|
-
const v =
|
|
13
|
-
typeof v == "object" && v !== null ?
|
|
9
|
+
import { _ as fs } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BhPBIal7.js";
|
|
10
|
+
function Jn(p, d = {}, u) {
|
|
11
|
+
for (const f in p) {
|
|
12
|
+
const v = p[f], o = u ? `${u}:${f}` : f;
|
|
13
|
+
typeof v == "object" && v !== null ? Jn(v, d, o) : typeof v == "function" && (d[o] = v);
|
|
14
14
|
}
|
|
15
15
|
return d;
|
|
16
16
|
}
|
|
17
|
-
const Yr = { run: (
|
|
18
|
-
function Xr(
|
|
19
|
-
const u = d.shift(), f =
|
|
20
|
-
return
|
|
17
|
+
const Yr = { run: (p) => p() }, Jr = () => Yr, ps = typeof console.createTask < "u" ? console.createTask : Jr;
|
|
18
|
+
function Xr(p, d) {
|
|
19
|
+
const u = d.shift(), f = ps(u);
|
|
20
|
+
return p.reduce(
|
|
21
21
|
(v, o) => v.then(() => f.run(() => o(...d))),
|
|
22
22
|
Promise.resolve()
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
|
-
function Qr(
|
|
26
|
-
const u = d.shift(), f =
|
|
27
|
-
return Promise.all(
|
|
25
|
+
function Qr(p, d) {
|
|
26
|
+
const u = d.shift(), f = ps(u);
|
|
27
|
+
return Promise.all(p.map((v) => f.run(() => v(...d))));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
for (const u of [...
|
|
29
|
+
function jn(p, d) {
|
|
30
|
+
for (const u of [...p])
|
|
31
31
|
u(d);
|
|
32
32
|
}
|
|
33
33
|
class ta {
|
|
@@ -81,7 +81,7 @@ class ta {
|
|
|
81
81
|
this.deprecateHook(u, d[u]);
|
|
82
82
|
}
|
|
83
83
|
addHooks(d) {
|
|
84
|
-
const u =
|
|
84
|
+
const u = Jn(d), f = Object.keys(u).map(
|
|
85
85
|
(v) => this.hook(v, u[v])
|
|
86
86
|
);
|
|
87
87
|
return () => {
|
|
@@ -90,7 +90,7 @@ class ta {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
removeHooks(d) {
|
|
93
|
-
const u =
|
|
93
|
+
const u = Jn(d);
|
|
94
94
|
for (const f in u)
|
|
95
95
|
this.removeHook(f, u[f]);
|
|
96
96
|
}
|
|
@@ -106,14 +106,14 @@ class ta {
|
|
|
106
106
|
}
|
|
107
107
|
callHookWith(d, u, ...f) {
|
|
108
108
|
const v = this._before || this._after ? { name: u, args: f, context: {} } : void 0;
|
|
109
|
-
this._before &&
|
|
109
|
+
this._before && jn(this._before, v);
|
|
110
110
|
const o = d(
|
|
111
111
|
u in this._hooks ? [...this._hooks[u]] : [],
|
|
112
112
|
f
|
|
113
113
|
);
|
|
114
114
|
return o instanceof Promise ? o.finally(() => {
|
|
115
|
-
this._after && v &&
|
|
116
|
-
}) : (this._after && v &&
|
|
115
|
+
this._after && v && jn(this._after, v);
|
|
116
|
+
}) : (this._after && v && jn(this._after, v), o);
|
|
117
117
|
}
|
|
118
118
|
beforeEach(d) {
|
|
119
119
|
return this._before = this._before || [], this._before.push(d), () => {
|
|
@@ -139,7 +139,7 @@ const ia = { key: 0 }, na = { class: "konnectio-hotel-reservation-warning" }, oa
|
|
|
139
139
|
key: 0,
|
|
140
140
|
class: "konnectio-hotel-reservation-room-name"
|
|
141
141
|
};
|
|
142
|
-
const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 },
|
|
142
|
+
const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, pa = { class: "konnectio-reservation-actions" }, _a = {
|
|
143
143
|
key: 0,
|
|
144
144
|
class: "konnectio-newsletter-signup"
|
|
145
145
|
}, ma = { class: "konnectio-hotel-reservation-tooltip" }, ga = /* @__PURE__ */ Rt({
|
|
@@ -151,7 +151,7 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
151
151
|
showTermsNotice: { type: Boolean, default: !1 },
|
|
152
152
|
prevCallback: {}
|
|
153
153
|
},
|
|
154
|
-
setup(
|
|
154
|
+
setup(p) {
|
|
155
155
|
const { t: d } = Kt(), {
|
|
156
156
|
disableNewsletterSignup: u,
|
|
157
157
|
currency: f
|
|
@@ -172,7 +172,7 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
172
172
|
datesMismatch: H,
|
|
173
173
|
currentLocation: B,
|
|
174
174
|
locationMismatch: I,
|
|
175
|
-
newsMails:
|
|
175
|
+
newsMails: $,
|
|
176
176
|
termsOfService: ht,
|
|
177
177
|
discountCode: ot,
|
|
178
178
|
hasTermOfService: Ct,
|
|
@@ -188,7 +188,7 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
188
188
|
return N.reduce((Lt, { totalPrice: nt }) => Lt + nt, 0);
|
|
189
189
|
}
|
|
190
190
|
return (N, J) => {
|
|
191
|
-
const Lt =
|
|
191
|
+
const Lt = vr("tooltip");
|
|
192
192
|
return M(), lt(Zr, {
|
|
193
193
|
"discount-code": h(ot),
|
|
194
194
|
"onUpdate:discountCode": J[4] || (J[4] = (nt) => At(ot) ? ot.value = nt : null),
|
|
@@ -200,9 +200,9 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
200
200
|
"is-sidebar-loading": h(y),
|
|
201
201
|
notice: h(d)("hotel.reservationNotice"),
|
|
202
202
|
"prev-callback": N.prevCallback
|
|
203
|
-
},
|
|
203
|
+
}, yr({
|
|
204
204
|
form: tt(() => [
|
|
205
|
-
|
|
205
|
+
Wn(N.$slots, "form", {}, void 0, !0)
|
|
206
206
|
]),
|
|
207
207
|
"price-summary": tt(() => [
|
|
208
208
|
isNaN(h(c)) && h(l).length > 0 ? (M(!0), A(mt, { key: 0 }, Ot(h(l), ({
|
|
@@ -273,17 +273,17 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
273
273
|
])) : U("", !0)
|
|
274
274
|
]),
|
|
275
275
|
actions: tt(() => [
|
|
276
|
-
P("ul",
|
|
277
|
-
h(u) ? U("", !0) : (M(), A("div",
|
|
278
|
-
Z(
|
|
279
|
-
modelValue: h(
|
|
280
|
-
"onUpdate:modelValue": J[0] || (J[0] = (nt) => At(
|
|
276
|
+
P("ul", pa, [
|
|
277
|
+
h(u) ? U("", !0) : (M(), A("div", _a, [
|
|
278
|
+
Z(Yn, {
|
|
279
|
+
modelValue: h($),
|
|
280
|
+
"onUpdate:modelValue": J[0] || (J[0] = (nt) => At($) ? $.value = nt : null),
|
|
281
281
|
type: "checkbox",
|
|
282
282
|
name: "newsletter",
|
|
283
283
|
label: h(d)("booking.reservation.newsletterSignUp")
|
|
284
284
|
}, null, 8, ["modelValue", "label"])
|
|
285
285
|
])),
|
|
286
|
-
h(Ct) ? (M(), lt(
|
|
286
|
+
h(Ct) ? (M(), lt(Yn, {
|
|
287
287
|
key: 1,
|
|
288
288
|
modelValue: h(V),
|
|
289
289
|
"onUpdate:modelValue": J[2] || (J[2] = (nt) => At(V) ? V.value = nt : null),
|
|
@@ -291,7 +291,7 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
291
291
|
name: "terms"
|
|
292
292
|
}, {
|
|
293
293
|
default: tt(() => [
|
|
294
|
-
Z(h(
|
|
294
|
+
Z(h(Lr), {
|
|
295
295
|
keypath: "general.termsAndConditionsCheckbox",
|
|
296
296
|
tag: "span",
|
|
297
297
|
scope: "global"
|
|
@@ -301,7 +301,7 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
301
301
|
class: "konnectio-accept-terms-link",
|
|
302
302
|
onClick: J[1] || (J[1] = as((nt) => G.value = !0, ["prevent"]))
|
|
303
303
|
}, [
|
|
304
|
-
P("span", null, E(h(
|
|
304
|
+
P("span", null, E(h($n)(h(d)("general.termsAndConditions"))), 1)
|
|
305
305
|
])
|
|
306
306
|
]),
|
|
307
307
|
_: 1
|
|
@@ -309,7 +309,7 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
309
309
|
]),
|
|
310
310
|
_: 1
|
|
311
311
|
}, 8, ["modelValue"])) : U("", !0),
|
|
312
|
-
|
|
312
|
+
Wn(N.$slots, "actions", {}, void 0, !0),
|
|
313
313
|
Z($r, {
|
|
314
314
|
modelValue: G.value,
|
|
315
315
|
"onUpdate:modelValue": J[3] || (J[3] = (nt) => G.value = nt),
|
|
@@ -318,11 +318,11 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
318
318
|
])
|
|
319
319
|
]),
|
|
320
320
|
navigation: tt(() => [
|
|
321
|
-
|
|
321
|
+
Wn(N.$slots, "navigation", {}, void 0, !0)
|
|
322
322
|
]),
|
|
323
323
|
"mobile-under-price": tt(() => [
|
|
324
324
|
J[5] || (J[5] = P("span", null, "For ", -1)),
|
|
325
|
-
P("b", null, E(h(ci)(h(S), h(C))) + " " + E(h(
|
|
325
|
+
P("b", null, E(h(ci)(h(S), h(C))) + " " + E(h($n)(h(ci)(h(S), h(C)) === 1 ? h(d)("booking.reservation.night") : h(d)("booking.reservation.nights"))), 1),
|
|
326
326
|
$e((M(), A("span", ma, [
|
|
327
327
|
Z(xt, {
|
|
328
328
|
icon: "circle-info",
|
|
@@ -356,7 +356,7 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
356
356
|
type: "fas"
|
|
357
357
|
})
|
|
358
358
|
], 512), [
|
|
359
|
-
[
|
|
359
|
+
[_i, h(I)]
|
|
360
360
|
])
|
|
361
361
|
])
|
|
362
362
|
])) : U("", !0),
|
|
@@ -370,7 +370,7 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
370
370
|
type: "fas"
|
|
371
371
|
})
|
|
372
372
|
], 512), [
|
|
373
|
-
[
|
|
373
|
+
[_i, h(H)]
|
|
374
374
|
])
|
|
375
375
|
])
|
|
376
376
|
]),
|
|
@@ -384,13 +384,13 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
384
384
|
type: "fas"
|
|
385
385
|
})
|
|
386
386
|
], 512), [
|
|
387
|
-
[
|
|
387
|
+
[_i, h(H)]
|
|
388
388
|
])
|
|
389
389
|
])
|
|
390
390
|
]),
|
|
391
391
|
P("li", null, [
|
|
392
392
|
P("span", null, E(h(d)("booking.reservation.nights")), 1),
|
|
393
|
-
P("b", null, E(h(ci)(h(S), h(C))) + " " + E(h(
|
|
393
|
+
P("b", null, E(h(ci)(h(S), h(C))) + " " + E(h($n)(h(ci)(h(S), h(C)) === 1 ? h(d)("booking.reservation.night") : h(d)("booking.reservation.nights"))), 1)
|
|
394
394
|
]),
|
|
395
395
|
h(w) ? (M(!0), A(mt, { key: 1 }, Ot(h(w), (nt) => (M(), A("li", {
|
|
396
396
|
key: nt.id
|
|
@@ -404,7 +404,7 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
404
404
|
]), 1032, ["discount-code", "validate-discount-code", "total-price", "weekend-fee", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice", "prev-callback"]);
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
|
-
}),
|
|
407
|
+
}), Kn = /* @__PURE__ */ se(ga, [["__scopeId", "data-v-b8ef29ab"]]), va = { class: "konnectio-room-config-option" }, ya = { key: 0 }, La = { class: "konnectio-selected-room-config" }, ba = { class: "konnectio-selected-room-config-people" }, ka = { key: 0 }, wa = { class: "konnectio-selected-room-config-price" }, Pa = /* @__PURE__ */ Rt({
|
|
408
408
|
__name: "RoomConfigField",
|
|
409
409
|
props: {
|
|
410
410
|
modelValue: {},
|
|
@@ -414,8 +414,8 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
414
414
|
label: {}
|
|
415
415
|
},
|
|
416
416
|
emits: ["update:modelValue"],
|
|
417
|
-
setup(
|
|
418
|
-
const { t: u } = Kt(), { currency: f } = Gt(Ae()), v = d, o =
|
|
417
|
+
setup(p, { emit: d }) {
|
|
418
|
+
const { t: u } = Kt(), { currency: f } = Gt(Ae()), v = d, o = p;
|
|
419
419
|
function r(c) {
|
|
420
420
|
v("update:modelValue", c);
|
|
421
421
|
}
|
|
@@ -471,7 +471,7 @@ const ca = { key: 0 }, da = { key: 1 }, fa = { key: 0 }, _a = { class: "konnecti
|
|
|
471
471
|
]),
|
|
472
472
|
P("div", wa, [
|
|
473
473
|
m[1] || (m[1] = P("span", null, null, -1)),
|
|
474
|
-
|
|
474
|
+
ls(" " + E(`(${h(oe)(y.price, h(f))})`), 1)
|
|
475
475
|
])
|
|
476
476
|
])
|
|
477
477
|
]),
|
|
@@ -486,7 +486,7 @@ var fi = { exports: {} };
|
|
|
486
486
|
*/
|
|
487
487
|
var Ca = fi.exports, Jo;
|
|
488
488
|
function Ta() {
|
|
489
|
-
return Jo || (Jo = 1, function(
|
|
489
|
+
return Jo || (Jo = 1, function(p, d) {
|
|
490
490
|
(function(u, f) {
|
|
491
491
|
f(d);
|
|
492
492
|
})(Ca, function(u) {
|
|
@@ -521,11 +521,11 @@ function Ta() {
|
|
|
521
521
|
return "_leaflet_id" in t || (t._leaflet_id = ++l), t._leaflet_id;
|
|
522
522
|
}
|
|
523
523
|
function m(t, e, i) {
|
|
524
|
-
var n, s, a,
|
|
525
|
-
return
|
|
524
|
+
var n, s, a, _;
|
|
525
|
+
return _ = function() {
|
|
526
526
|
n = !1, s && (a.apply(i, s), s = !1);
|
|
527
527
|
}, a = function() {
|
|
528
|
-
n ? s = arguments : (t.apply(i, arguments), setTimeout(
|
|
528
|
+
n ? s = arguments : (t.apply(i, arguments), setTimeout(_, e), n = !0);
|
|
529
529
|
}, a;
|
|
530
530
|
}
|
|
531
531
|
function y(t, e, i) {
|
|
@@ -568,7 +568,7 @@ function Ta() {
|
|
|
568
568
|
return typeof s == "function" && (s = s(e)), s;
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
|
-
var
|
|
571
|
+
var $ = Array.isArray || function(t) {
|
|
572
572
|
return Object.prototype.toString.call(t) === "[object Array]";
|
|
573
573
|
};
|
|
574
574
|
function ht(t, e) {
|
|
@@ -616,7 +616,7 @@ function Ta() {
|
|
|
616
616
|
setOptions: C,
|
|
617
617
|
getParamString: H,
|
|
618
618
|
template: I,
|
|
619
|
-
isArray:
|
|
619
|
+
isArray: $,
|
|
620
620
|
indexOf: ht,
|
|
621
621
|
emptyImageUrl: ot,
|
|
622
622
|
requestFn: ct,
|
|
@@ -636,7 +636,7 @@ function Ta() {
|
|
|
636
636
|
return t.statics && v(e, t.statics), t.includes && (Nt(t.includes), v.apply(null, [n].concat(t.includes))), v(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? o(i.options) : {}, v(n.options, t.options)), n._initHooks = [], n.callInitHooks = function() {
|
|
637
637
|
if (!this._initHooksCalled) {
|
|
638
638
|
i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
|
|
639
|
-
for (var a = 0,
|
|
639
|
+
for (var a = 0, _ = n._initHooks.length; a < _; a++)
|
|
640
640
|
n._initHooks[a].call(this);
|
|
641
641
|
}
|
|
642
642
|
}, e;
|
|
@@ -653,7 +653,7 @@ function Ta() {
|
|
|
653
653
|
};
|
|
654
654
|
function Nt(t) {
|
|
655
655
|
if (!(typeof L > "u" || !L || !L.Mixin)) {
|
|
656
|
-
t =
|
|
656
|
+
t = $(t) ? t : [t];
|
|
657
657
|
for (var e = 0; e < t.length; e++)
|
|
658
658
|
t[e] === L.Mixin.Events && console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.", new Error().stack);
|
|
659
659
|
}
|
|
@@ -696,7 +696,7 @@ function Ta() {
|
|
|
696
696
|
this._off(n, t[n], e);
|
|
697
697
|
else {
|
|
698
698
|
t = S(t);
|
|
699
|
-
for (var s = arguments.length === 1, a = 0,
|
|
699
|
+
for (var s = arguments.length === 1, a = 0, _ = t.length; a < _; a++)
|
|
700
700
|
s ? this._off(t[a]) : this._off(t[a], e, i);
|
|
701
701
|
}
|
|
702
702
|
return this;
|
|
@@ -727,10 +727,10 @@ function Ta() {
|
|
|
727
727
|
console.warn("wrong listener type: " + typeof e);
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
-
var
|
|
731
|
-
if (
|
|
732
|
-
var b = n[
|
|
733
|
-
this._firingCount && (b.fn = g, this._events[t] = n = n.slice()), n.splice(
|
|
730
|
+
var _ = this._listens(t, e, i);
|
|
731
|
+
if (_ !== !1) {
|
|
732
|
+
var b = n[_];
|
|
733
|
+
this._firingCount && (b.fn = g, this._events[t] = n = n.slice()), n.splice(_, 1);
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
736
|
},
|
|
@@ -750,7 +750,7 @@ function Ta() {
|
|
|
750
750
|
var s = this._events[t];
|
|
751
751
|
if (s) {
|
|
752
752
|
this._firingCount = this._firingCount + 1 || 1;
|
|
753
|
-
for (var a = 0,
|
|
753
|
+
for (var a = 0, _ = s.length; a < _; a++) {
|
|
754
754
|
var b = s[a], x = b.fn;
|
|
755
755
|
b.once && this.off(t, x, b.ctx), x.call(b.ctx || this, n);
|
|
756
756
|
}
|
|
@@ -771,8 +771,8 @@ function Ta() {
|
|
|
771
771
|
if (a && a.length && this._listens(t, s, i) !== !1)
|
|
772
772
|
return !0;
|
|
773
773
|
if (n) {
|
|
774
|
-
for (var
|
|
775
|
-
if (this._eventParents[
|
|
774
|
+
for (var _ in this._eventParents)
|
|
775
|
+
if (this._eventParents[_].listens(t, e, i, n))
|
|
776
776
|
return !0;
|
|
777
777
|
}
|
|
778
778
|
return !1;
|
|
@@ -937,7 +937,7 @@ function Ta() {
|
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
939
|
function N(t, e, i) {
|
|
940
|
-
return t instanceof G ? t :
|
|
940
|
+
return t instanceof G ? t : $(t) ? new G(t[0], t[1]) : t == null ? t : typeof t == "object" && "x" in t && "y" in t ? new G(t.x, t.y) : new G(t, e, i);
|
|
941
941
|
}
|
|
942
942
|
function J(t, e) {
|
|
943
943
|
if (t)
|
|
@@ -1008,16 +1008,16 @@ function Ta() {
|
|
|
1008
1008
|
// intersect if they have at least one point in common.
|
|
1009
1009
|
intersects: function(t) {
|
|
1010
1010
|
t = Lt(t);
|
|
1011
|
-
var e = this.min, i = this.max, n = t.min, s = t.max, a = s.x >= e.x && n.x <= i.x,
|
|
1012
|
-
return a &&
|
|
1011
|
+
var e = this.min, i = this.max, n = t.min, s = t.max, a = s.x >= e.x && n.x <= i.x, _ = s.y >= e.y && n.y <= i.y;
|
|
1012
|
+
return a && _;
|
|
1013
1013
|
},
|
|
1014
1014
|
// @method overlaps(otherBounds: Bounds): Boolean
|
|
1015
1015
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds
|
|
1016
1016
|
// overlap if their intersection is an area.
|
|
1017
1017
|
overlaps: function(t) {
|
|
1018
1018
|
t = Lt(t);
|
|
1019
|
-
var e = this.min, i = this.max, n = t.min, s = t.max, a = s.x > e.x && n.x < i.x,
|
|
1020
|
-
return a &&
|
|
1019
|
+
var e = this.min, i = this.max, n = t.min, s = t.max, a = s.x > e.x && n.x < i.x, _ = s.y > e.y && n.y < i.y;
|
|
1020
|
+
return a && _;
|
|
1021
1021
|
},
|
|
1022
1022
|
// @method isValid(): Boolean
|
|
1023
1023
|
// Returns `true` if the bounds are properly initialized.
|
|
@@ -1139,15 +1139,15 @@ function Ta() {
|
|
|
1139
1139
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
|
|
1140
1140
|
intersects: function(t) {
|
|
1141
1141
|
t = ft(t);
|
|
1142
|
-
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), s = t.getNorthEast(), a = s.lat >= e.lat && n.lat <= i.lat,
|
|
1143
|
-
return a &&
|
|
1142
|
+
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), s = t.getNorthEast(), a = s.lat >= e.lat && n.lat <= i.lat, _ = s.lng >= e.lng && n.lng <= i.lng;
|
|
1143
|
+
return a && _;
|
|
1144
1144
|
},
|
|
1145
1145
|
// @method overlaps(otherBounds: LatLngBounds): Boolean
|
|
1146
1146
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
|
|
1147
1147
|
overlaps: function(t) {
|
|
1148
1148
|
t = ft(t);
|
|
1149
|
-
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), s = t.getNorthEast(), a = s.lat > e.lat && n.lat < i.lat,
|
|
1150
|
-
return a &&
|
|
1149
|
+
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), s = t.getNorthEast(), a = s.lat > e.lat && n.lat < i.lat, _ = s.lng > e.lng && n.lng < i.lng;
|
|
1150
|
+
return a && _;
|
|
1151
1151
|
},
|
|
1152
1152
|
// @method toBBoxString(): String
|
|
1153
1153
|
// Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.
|
|
@@ -1215,7 +1215,7 @@ function Ta() {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
};
|
|
1217
1217
|
function q(t, e, i) {
|
|
1218
|
-
return t instanceof et ? t :
|
|
1218
|
+
return t instanceof et ? t : $(t) && typeof t[0] != "object" ? t.length === 3 ? new et(t[0], t[1], t[2]) : t.length === 2 ? new et(t[0], t[1]) : null : t == null ? t : typeof t == "object" && "lat" in t ? new et(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : e === void 0 ? null : new et(t, e, i);
|
|
1219
1219
|
}
|
|
1220
1220
|
var Mt = {
|
|
1221
1221
|
// @method latLngToPoint(latlng: LatLng, zoom: Number): Point
|
|
@@ -1296,7 +1296,7 @@ function Ta() {
|
|
|
1296
1296
|
var e = t.getCenter(), i = this.wrapLatLng(e), n = e.lat - i.lat, s = e.lng - i.lng;
|
|
1297
1297
|
if (n === 0 && s === 0)
|
|
1298
1298
|
return t;
|
|
1299
|
-
var a = t.getSouthWest(),
|
|
1299
|
+
var a = t.getSouthWest(), _ = t.getNorthEast(), b = new et(a.lat - n, a.lng - s), x = new et(_.lat - n, _.lng - s);
|
|
1300
1300
|
return new nt(b, x);
|
|
1301
1301
|
}
|
|
1302
1302
|
}, Pt = v({}, Mt, {
|
|
@@ -1307,7 +1307,7 @@ function Ta() {
|
|
|
1307
1307
|
R: 6371e3,
|
|
1308
1308
|
// distance between two geographical points using spherical law of cosines approximation
|
|
1309
1309
|
distance: function(t, e) {
|
|
1310
|
-
var i = Math.PI / 180, n = t.lat * i, s = e.lat * i, a = Math.sin((e.lat - t.lat) * i / 2),
|
|
1310
|
+
var i = Math.PI / 180, n = t.lat * i, s = e.lat * i, a = Math.sin((e.lat - t.lat) * i / 2), _ = Math.sin((e.lng - t.lng) * i / 2), b = a * a + Math.cos(n) * Math.cos(s) * _ * _, x = 2 * Math.atan2(Math.sqrt(b), Math.sqrt(1 - b));
|
|
1311
1311
|
return this.R * x;
|
|
1312
1312
|
}
|
|
1313
1313
|
}), Oe = 6378137, Ie = {
|
|
@@ -1333,7 +1333,7 @@ function Ta() {
|
|
|
1333
1333
|
}()
|
|
1334
1334
|
};
|
|
1335
1335
|
function qe(t, e, i, n) {
|
|
1336
|
-
if (
|
|
1336
|
+
if ($(t)) {
|
|
1337
1337
|
this._a = t[0], this._b = t[1], this._c = t[2], this._d = t[3];
|
|
1338
1338
|
return;
|
|
1339
1339
|
}
|
|
@@ -1377,15 +1377,15 @@ function Ta() {
|
|
|
1377
1377
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
1378
1378
|
}
|
|
1379
1379
|
function vi(t, e) {
|
|
1380
|
-
var i = "", n, s, a,
|
|
1380
|
+
var i = "", n, s, a, _, b, x;
|
|
1381
1381
|
for (n = 0, a = t.length; n < a; n++) {
|
|
1382
|
-
for (b = t[n], s = 0,
|
|
1382
|
+
for (b = t[n], s = 0, _ = b.length; s < _; s++)
|
|
1383
1383
|
x = b[s], i += (s ? "L" : "M") + x.x + " " + x.y;
|
|
1384
1384
|
i += e ? D.svg ? "z" : "x" : "";
|
|
1385
1385
|
}
|
|
1386
1386
|
return i || "M0 0";
|
|
1387
1387
|
}
|
|
1388
|
-
var je = document.documentElement.style, Ee = "ActiveXObject" in window, sn = Ee && !document.addEventListener, Ke = "msLaunchUri" in navigator && !("documentMode" in document), Be = Ht("webkit"), yi = Ht("android"), Li = Ht("android 2") || Ht("android 3"), rn = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), bi = yi && Ht("Google") && rn < 537 && !("AudioNode" in window), ke = !!window.opera, ki = !Ke && Ht("chrome"), ze = Ht("gecko") && !Be && !ke && !Ee, Ye = !ki && Ht("safari"), wi = Ht("phantom"), Pi = "OTransition" in je, an = navigator.platform.indexOf("Win") === 0, xi = Ee && "transition" in je, Je = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Li, Ci = "MozPerspective" in je, ln = !window.L_DISABLE_3D && (xi || Je || Ci) && !Pi && !wi, Yt = typeof orientation < "u" || Ht("mobile"), un = Yt && Be, hn = Yt && Je, Ti = !window.PointerEvent && window.MSPointerEvent, Mi = !!(window.PointerEvent || Ti), Ze = "ontouchstart" in window || !!window.TouchEvent, Si = !window.L_NO_TOUCH && (Ze || Mi), cn = Yt && ke, dn = Yt && ze, fn = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1,
|
|
1388
|
+
var je = document.documentElement.style, Ee = "ActiveXObject" in window, sn = Ee && !document.addEventListener, Ke = "msLaunchUri" in navigator && !("documentMode" in document), Be = Ht("webkit"), yi = Ht("android"), Li = Ht("android 2") || Ht("android 3"), rn = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), bi = yi && Ht("Google") && rn < 537 && !("AudioNode" in window), ke = !!window.opera, ki = !Ke && Ht("chrome"), ze = Ht("gecko") && !Be && !ke && !Ee, Ye = !ki && Ht("safari"), wi = Ht("phantom"), Pi = "OTransition" in je, an = navigator.platform.indexOf("Win") === 0, xi = Ee && "transition" in je, Je = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Li, Ci = "MozPerspective" in je, ln = !window.L_DISABLE_3D && (xi || Je || Ci) && !Pi && !wi, Yt = typeof orientation < "u" || Ht("mobile"), un = Yt && Be, hn = Yt && Je, Ti = !window.PointerEvent && window.MSPointerEvent, Mi = !!(window.PointerEvent || Ti), Ze = "ontouchstart" in window || !!window.TouchEvent, Si = !window.L_NO_TOUCH && (Ze || Mi), cn = Yt && ke, dn = Yt && ze, fn = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, pn = function() {
|
|
1389
1389
|
var t = !1;
|
|
1390
1390
|
try {
|
|
1391
1391
|
var e = Object.defineProperty({}, "passive", {
|
|
@@ -1402,7 +1402,7 @@ function Ta() {
|
|
|
1402
1402
|
}(), we = !!(document.createElementNS && gi("svg").createSVGRect), Ai = !!we && function() {
|
|
1403
1403
|
var t = document.createElement("div");
|
|
1404
1404
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
|
1405
|
-
}(),
|
|
1405
|
+
}(), _n = !we && function() {
|
|
1406
1406
|
try {
|
|
1407
1407
|
var t = document.createElement("div");
|
|
1408
1408
|
t.innerHTML = '<v:shape adj="1"/>';
|
|
@@ -1411,7 +1411,7 @@ function Ta() {
|
|
|
1411
1411
|
} catch {
|
|
1412
1412
|
return !1;
|
|
1413
1413
|
}
|
|
1414
|
-
}(), mn = navigator.platform.indexOf("Mac") === 0,
|
|
1414
|
+
}(), mn = navigator.platform.indexOf("Mac") === 0, gn = navigator.platform.indexOf("Linux") === 0;
|
|
1415
1415
|
function Ht(t) {
|
|
1416
1416
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
1417
1417
|
}
|
|
@@ -1444,25 +1444,25 @@ function Ta() {
|
|
|
1444
1444
|
mobileOpera: cn,
|
|
1445
1445
|
mobileGecko: dn,
|
|
1446
1446
|
retina: fn,
|
|
1447
|
-
passiveEvents:
|
|
1447
|
+
passiveEvents: pn,
|
|
1448
1448
|
canvas: Jt,
|
|
1449
1449
|
svg: we,
|
|
1450
|
-
vml:
|
|
1450
|
+
vml: _n,
|
|
1451
1451
|
inlineSvg: Ai,
|
|
1452
1452
|
mac: mn,
|
|
1453
|
-
linux:
|
|
1454
|
-
}, Oi = D.msPointer ? "MSPointerDown" : "pointerdown", z = D.msPointer ? "MSPointerMove" : "pointermove",
|
|
1453
|
+
linux: gn
|
|
1454
|
+
}, Oi = D.msPointer ? "MSPointerDown" : "pointerdown", z = D.msPointer ? "MSPointerMove" : "pointermove", W = D.msPointer ? "MSPointerUp" : "pointerup", gt = D.msPointer ? "MSPointerCancel" : "pointercancel", K = {
|
|
1455
1455
|
touchstart: Oi,
|
|
1456
1456
|
touchmove: z,
|
|
1457
|
-
touchend:
|
|
1457
|
+
touchend: W,
|
|
1458
1458
|
touchcancel: gt
|
|
1459
1459
|
}, ut = {
|
|
1460
|
-
touchstart:
|
|
1460
|
+
touchstart: vn,
|
|
1461
1461
|
touchmove: De,
|
|
1462
1462
|
touchend: De,
|
|
1463
1463
|
touchcancel: De
|
|
1464
1464
|
}, R = {}, Bt = !1;
|
|
1465
|
-
function
|
|
1465
|
+
function pt(t, e, i) {
|
|
1466
1466
|
return e === "touchstart" && Xe(), ut[e] ? (i = ut[e].bind(this, i), t.addEventListener(K[e], i, !1), i) : (console.warn("wrong event specified:", e), g);
|
|
1467
1467
|
}
|
|
1468
1468
|
function $t(t, e, i) {
|
|
@@ -1482,7 +1482,7 @@ function Ta() {
|
|
|
1482
1482
|
delete R[t.pointerId];
|
|
1483
1483
|
}
|
|
1484
1484
|
function Xe() {
|
|
1485
|
-
Bt || (document.addEventListener(Oi, Xt, !0), document.addEventListener(z, Qt, !0), document.addEventListener(
|
|
1485
|
+
Bt || (document.addEventListener(Oi, Xt, !0), document.addEventListener(z, Qt, !0), document.addEventListener(W, Pe, !0), document.addEventListener(gt, Pe, !0), Bt = !0);
|
|
1486
1486
|
}
|
|
1487
1487
|
function De(t, e) {
|
|
1488
1488
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
@@ -1492,17 +1492,17 @@ function Ta() {
|
|
|
1492
1492
|
e.changedTouches = [e], t(e);
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function vn(t, e) {
|
|
1496
1496
|
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && Et(e), De(t, e);
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function yn(t) {
|
|
1499
1499
|
var e = {}, i, n;
|
|
1500
1500
|
for (n in t)
|
|
1501
1501
|
i = t[n], e[n] = i && i.bind ? i.bind(t) : i;
|
|
1502
1502
|
return t = e, e.type = "dblclick", e.detail = 2, e.isTrusted = !1, e._simulated = !0, e;
|
|
1503
1503
|
}
|
|
1504
|
-
var
|
|
1505
|
-
function
|
|
1504
|
+
var Ls = 200;
|
|
1505
|
+
function bs(t, e) {
|
|
1506
1506
|
t.addEventListener("dblclick", e);
|
|
1507
1507
|
var i = 0, n;
|
|
1508
1508
|
function s(a) {
|
|
@@ -1511,14 +1511,14 @@ function Ta() {
|
|
|
1511
1511
|
return;
|
|
1512
1512
|
}
|
|
1513
1513
|
if (!(a.pointerType === "mouse" || a.sourceCapabilities && !a.sourceCapabilities.firesTouchEvents)) {
|
|
1514
|
-
var
|
|
1515
|
-
if (!(
|
|
1514
|
+
var _ = ro(a);
|
|
1515
|
+
if (!(_.some(function(x) {
|
|
1516
1516
|
return x instanceof HTMLLabelElement && x.attributes.for;
|
|
1517
|
-
}) && !
|
|
1517
|
+
}) && !_.some(function(x) {
|
|
1518
1518
|
return x instanceof HTMLInputElement || x instanceof HTMLSelectElement;
|
|
1519
1519
|
}))) {
|
|
1520
1520
|
var b = Date.now();
|
|
1521
|
-
b - i <=
|
|
1521
|
+
b - i <= Ls ? (n++, n === 2 && e(yn(a))) : n = 1, i = b;
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
@@ -1527,10 +1527,10 @@ function Ta() {
|
|
|
1527
1527
|
simDblclick: s
|
|
1528
1528
|
};
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function ks(t, e) {
|
|
1531
1531
|
t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
|
|
1532
1532
|
}
|
|
1533
|
-
var
|
|
1533
|
+
var Ln = Bi(
|
|
1534
1534
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
|
1535
1535
|
), Qe = Bi(
|
|
1536
1536
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
|
@@ -1550,7 +1550,7 @@ function Ta() {
|
|
|
1550
1550
|
var n = document.createElement(t);
|
|
1551
1551
|
return n.className = e || "", i && i.appendChild(n), n;
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1553
|
+
function _t(t) {
|
|
1554
1554
|
var e = t.parentNode;
|
|
1555
1555
|
e && e.removeChild(t);
|
|
1556
1556
|
}
|
|
@@ -1566,7 +1566,7 @@ function Ta() {
|
|
|
1566
1566
|
var e = t.parentNode;
|
|
1567
1567
|
e && e.firstChild !== t && e.insertBefore(t, e.firstChild);
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function bn(t, e) {
|
|
1570
1570
|
if (t.classList !== void 0)
|
|
1571
1571
|
return t.classList.contains(e);
|
|
1572
1572
|
var i = Ei(t);
|
|
@@ -1576,24 +1576,24 @@ function Ta() {
|
|
|
1576
1576
|
if (t.classList !== void 0)
|
|
1577
1577
|
for (var i = S(e), n = 0, s = i.length; n < s; n++)
|
|
1578
1578
|
t.classList.add(i[n]);
|
|
1579
|
-
else if (!
|
|
1579
|
+
else if (!bn(t, e)) {
|
|
1580
1580
|
var a = Ei(t);
|
|
1581
|
-
|
|
1581
|
+
kn(t, (a ? a + " " : "") + e);
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
function vt(t, e) {
|
|
1585
|
-
t.classList !== void 0 ? t.classList.remove(e) :
|
|
1585
|
+
t.classList !== void 0 ? t.classList.remove(e) : kn(t, w((" " + Ei(t) + " ").replace(" " + e + " ", " ")));
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function kn(t, e) {
|
|
1588
1588
|
t.className.baseVal === void 0 ? t.className = e : t.className.baseVal = e;
|
|
1589
1589
|
}
|
|
1590
1590
|
function Ei(t) {
|
|
1591
1591
|
return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
|
|
1592
1592
|
}
|
|
1593
1593
|
function Vt(t, e) {
|
|
1594
|
-
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style &&
|
|
1594
|
+
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style && ws(t, e);
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1596
|
+
function ws(t, e) {
|
|
1597
1597
|
var i = !1, n = "DXImageTransform.Microsoft.Alpha";
|
|
1598
1598
|
try {
|
|
1599
1599
|
i = t.filters.item(n);
|
|
@@ -1611,7 +1611,7 @@ function Ta() {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
function xe(t, e, i) {
|
|
1613
1613
|
var n = e || new G(0, 0);
|
|
1614
|
-
t.style[
|
|
1614
|
+
t.style[Ln] = (D.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
|
|
1615
1615
|
}
|
|
1616
1616
|
function bt(t, e) {
|
|
1617
1617
|
t._leaflet_pos = e, D.any3d ? xe(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
|
@@ -1619,7 +1619,7 @@ function Ta() {
|
|
|
1619
1619
|
function Ce(t) {
|
|
1620
1620
|
return t._leaflet_pos || new G(0, 0);
|
|
1621
1621
|
}
|
|
1622
|
-
var ei, ii,
|
|
1622
|
+
var ei, ii, wn;
|
|
1623
1623
|
if ("onselectstart" in document)
|
|
1624
1624
|
ei = function() {
|
|
1625
1625
|
j(window, "selectstart", Et);
|
|
@@ -1633,26 +1633,26 @@ function Ta() {
|
|
|
1633
1633
|
ei = function() {
|
|
1634
1634
|
if (ni) {
|
|
1635
1635
|
var t = document.documentElement.style;
|
|
1636
|
-
|
|
1636
|
+
wn = t[ni], t[ni] = "none";
|
|
1637
1637
|
}
|
|
1638
1638
|
}, ii = function() {
|
|
1639
|
-
ni && (document.documentElement.style[ni] =
|
|
1639
|
+
ni && (document.documentElement.style[ni] = wn, wn = void 0);
|
|
1640
1640
|
};
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function Pn() {
|
|
1643
1643
|
j(window, "dragstart", Et);
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1645
|
+
function xn() {
|
|
1646
1646
|
dt(window, "dragstart", Et);
|
|
1647
1647
|
}
|
|
1648
|
-
var zi,
|
|
1649
|
-
function
|
|
1648
|
+
var zi, Cn;
|
|
1649
|
+
function Tn(t) {
|
|
1650
1650
|
for (; t.tabIndex === -1; )
|
|
1651
1651
|
t = t.parentNode;
|
|
1652
|
-
t.style && (Zi(), zi = t,
|
|
1652
|
+
t.style && (Zi(), zi = t, Cn = t.style.outlineStyle, t.style.outlineStyle = "none", j(window, "keydown", Zi));
|
|
1653
1653
|
}
|
|
1654
1654
|
function Zi() {
|
|
1655
|
-
zi && (zi.style.outlineStyle =
|
|
1655
|
+
zi && (zi.style.outlineStyle = Cn, zi = void 0, Cn = void 0, dt(window, "keydown", Zi));
|
|
1656
1656
|
}
|
|
1657
1657
|
function oo(t) {
|
|
1658
1658
|
do
|
|
@@ -1660,7 +1660,7 @@ function Ta() {
|
|
|
1660
1660
|
while ((!t.offsetWidth || !t.offsetHeight) && t !== document.body);
|
|
1661
1661
|
return t;
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1663
|
+
function Mn(t) {
|
|
1664
1664
|
var e = t.getBoundingClientRect();
|
|
1665
1665
|
return {
|
|
1666
1666
|
x: e.width / t.offsetWidth || 1,
|
|
@@ -1668,22 +1668,22 @@ function Ta() {
|
|
|
1668
1668
|
boundingClientRect: e
|
|
1669
1669
|
};
|
|
1670
1670
|
}
|
|
1671
|
-
var
|
|
1671
|
+
var Ps = {
|
|
1672
1672
|
__proto__: null,
|
|
1673
|
-
TRANSFORM:
|
|
1673
|
+
TRANSFORM: Ln,
|
|
1674
1674
|
TRANSITION: Qe,
|
|
1675
1675
|
TRANSITION_END: io,
|
|
1676
1676
|
get: no,
|
|
1677
1677
|
getStyle: ti,
|
|
1678
1678
|
create: rt,
|
|
1679
|
-
remove:
|
|
1679
|
+
remove: _t,
|
|
1680
1680
|
empty: Ii,
|
|
1681
1681
|
toFront: Ne,
|
|
1682
1682
|
toBack: Re,
|
|
1683
|
-
hasClass:
|
|
1683
|
+
hasClass: bn,
|
|
1684
1684
|
addClass: Y,
|
|
1685
1685
|
removeClass: vt,
|
|
1686
|
-
setClass:
|
|
1686
|
+
setClass: kn,
|
|
1687
1687
|
getClass: Ei,
|
|
1688
1688
|
setOpacity: Vt,
|
|
1689
1689
|
testProp: Bi,
|
|
@@ -1696,21 +1696,21 @@ function Ta() {
|
|
|
1696
1696
|
get enableTextSelection() {
|
|
1697
1697
|
return ii;
|
|
1698
1698
|
},
|
|
1699
|
-
disableImageDrag:
|
|
1700
|
-
enableImageDrag:
|
|
1701
|
-
preventOutline:
|
|
1699
|
+
disableImageDrag: Pn,
|
|
1700
|
+
enableImageDrag: xn,
|
|
1701
|
+
preventOutline: Tn,
|
|
1702
1702
|
restoreOutline: Zi,
|
|
1703
1703
|
getSizedParentNode: oo,
|
|
1704
|
-
getScale:
|
|
1704
|
+
getScale: Mn
|
|
1705
1705
|
};
|
|
1706
1706
|
function j(t, e, i, n) {
|
|
1707
1707
|
if (e && typeof e == "object")
|
|
1708
1708
|
for (var s in e)
|
|
1709
|
-
|
|
1709
|
+
An(t, s, e[s], i);
|
|
1710
1710
|
else {
|
|
1711
1711
|
e = S(e);
|
|
1712
|
-
for (var a = 0,
|
|
1713
|
-
|
|
1712
|
+
for (var a = 0, _ = e.length; a < _; a++)
|
|
1713
|
+
An(t, e[a], i, n);
|
|
1714
1714
|
}
|
|
1715
1715
|
return this;
|
|
1716
1716
|
}
|
|
@@ -1720,50 +1720,50 @@ function Ta() {
|
|
|
1720
1720
|
so(t), delete t[te];
|
|
1721
1721
|
else if (e && typeof e == "object")
|
|
1722
1722
|
for (var s in e)
|
|
1723
|
-
|
|
1723
|
+
On(t, s, e[s], i);
|
|
1724
1724
|
else if (e = S(e), arguments.length === 2)
|
|
1725
1725
|
so(t, function(b) {
|
|
1726
1726
|
return ht(e, b) !== -1;
|
|
1727
1727
|
});
|
|
1728
1728
|
else
|
|
1729
|
-
for (var a = 0,
|
|
1730
|
-
|
|
1729
|
+
for (var a = 0, _ = e.length; a < _; a++)
|
|
1730
|
+
On(t, e[a], i, n);
|
|
1731
1731
|
return this;
|
|
1732
1732
|
}
|
|
1733
1733
|
function so(t, e) {
|
|
1734
1734
|
for (var i in t[te]) {
|
|
1735
1735
|
var n = i.split(/\d/)[0];
|
|
1736
|
-
(!e || e(n)) &&
|
|
1736
|
+
(!e || e(n)) && On(t, n, null, null, i);
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
var
|
|
1739
|
+
var Sn = {
|
|
1740
1740
|
mouseenter: "mouseover",
|
|
1741
1741
|
mouseleave: "mouseout",
|
|
1742
1742
|
wheel: !("onwheel" in window) && "mousewheel"
|
|
1743
1743
|
};
|
|
1744
|
-
function
|
|
1744
|
+
function An(t, e, i, n) {
|
|
1745
1745
|
var s = e + c(i) + (n ? "_" + c(n) : "");
|
|
1746
1746
|
if (t[te] && t[te][s])
|
|
1747
1747
|
return this;
|
|
1748
1748
|
var a = function(b) {
|
|
1749
1749
|
return i.call(n || t, b || window.event);
|
|
1750
|
-
},
|
|
1751
|
-
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ? a =
|
|
1752
|
-
b = b || window.event,
|
|
1753
|
-
}, t.addEventListener(
|
|
1750
|
+
}, _ = a;
|
|
1751
|
+
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ? a = pt(t, e, a) : D.touch && e === "dblclick" ? a = bs(t, a) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(Sn[e] || e, a, D.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (a = function(b) {
|
|
1752
|
+
b = b || window.event, En(t, b) && _(b);
|
|
1753
|
+
}, t.addEventListener(Sn[e], a, !1)) : t.addEventListener(e, _, !1) : t.attachEvent("on" + e, a), t[te] = t[te] || {}, t[te][s] = a;
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function On(t, e, i, n, s) {
|
|
1756
1756
|
s = s || e + c(i) + (n ? "_" + c(n) : "");
|
|
1757
1757
|
var a = t[te] && t[te][s];
|
|
1758
1758
|
if (!a)
|
|
1759
1759
|
return this;
|
|
1760
|
-
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ? $t(t, e, a) : D.touch && e === "dblclick" ?
|
|
1760
|
+
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ? $t(t, e, a) : D.touch && e === "dblclick" ? ks(t, a) : "removeEventListener" in t ? t.removeEventListener(Sn[e] || e, a, !1) : t.detachEvent("on" + e, a), t[te][s] = null;
|
|
1761
1761
|
}
|
|
1762
1762
|
function Te(t) {
|
|
1763
1763
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
|
1764
1764
|
}
|
|
1765
|
-
function
|
|
1766
|
-
return
|
|
1765
|
+
function In(t) {
|
|
1766
|
+
return An(t, "wheel", Te), this;
|
|
1767
1767
|
}
|
|
1768
1768
|
function oi(t) {
|
|
1769
1769
|
return j(t, "mousedown touchstart dblclick contextmenu", Te), t._leaflet_disable_click = !0, this;
|
|
@@ -1784,7 +1784,7 @@ function Ta() {
|
|
|
1784
1784
|
function ao(t, e) {
|
|
1785
1785
|
if (!e)
|
|
1786
1786
|
return new G(t.clientX, t.clientY);
|
|
1787
|
-
var i =
|
|
1787
|
+
var i = Mn(e), n = i.boundingClientRect;
|
|
1788
1788
|
return new G(
|
|
1789
1789
|
// offset.left/top values are in page scale (like clientX/Y),
|
|
1790
1790
|
// whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).
|
|
@@ -1792,11 +1792,11 @@ function Ta() {
|
|
|
1792
1792
|
(t.clientY - n.top) / i.y - e.clientTop
|
|
1793
1793
|
);
|
|
1794
1794
|
}
|
|
1795
|
-
var
|
|
1795
|
+
var xs = D.linux && D.chrome ? window.devicePixelRatio : D.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
|
|
1796
1796
|
function lo(t) {
|
|
1797
1797
|
return D.edge ? t.wheelDeltaY / 2 : (
|
|
1798
1798
|
// Don't trust window-geometry-based delta
|
|
1799
|
-
t.deltaY && t.deltaMode === 0 ? -t.deltaY /
|
|
1799
|
+
t.deltaY && t.deltaMode === 0 ? -t.deltaY / xs : (
|
|
1800
1800
|
// Pixels
|
|
1801
1801
|
t.deltaY && t.deltaMode === 1 ? -t.deltaY * 20 : (
|
|
1802
1802
|
// Lines
|
|
@@ -1820,7 +1820,7 @@ function Ta() {
|
|
|
1820
1820
|
)
|
|
1821
1821
|
);
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function En(t, e) {
|
|
1824
1824
|
var i = e.relatedTarget;
|
|
1825
1825
|
if (!i)
|
|
1826
1826
|
return !0;
|
|
@@ -1832,19 +1832,19 @@ function Ta() {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
return i !== t;
|
|
1834
1834
|
}
|
|
1835
|
-
var
|
|
1835
|
+
var Cs = {
|
|
1836
1836
|
__proto__: null,
|
|
1837
1837
|
on: j,
|
|
1838
1838
|
off: dt,
|
|
1839
1839
|
stopPropagation: Te,
|
|
1840
|
-
disableScrollPropagation:
|
|
1840
|
+
disableScrollPropagation: In,
|
|
1841
1841
|
disableClickPropagation: oi,
|
|
1842
1842
|
preventDefault: Et,
|
|
1843
1843
|
stop: Me,
|
|
1844
1844
|
getPropagationPath: ro,
|
|
1845
1845
|
getMousePosition: ao,
|
|
1846
1846
|
getWheelDelta: lo,
|
|
1847
|
-
isExternalTarget:
|
|
1847
|
+
isExternalTarget: En,
|
|
1848
1848
|
addListener: j,
|
|
1849
1849
|
removeListener: dt
|
|
1850
1850
|
}, uo = re.extend({
|
|
@@ -1993,7 +1993,7 @@ function Ta() {
|
|
|
1993
1993
|
// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
|
|
1994
1994
|
// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
|
|
1995
1995
|
setZoomAround: function(t, e, i) {
|
|
1996
|
-
var n = this.getZoomScale(e), s = this.getSize().divideBy(2), a = t instanceof G ? t : this.latLngToContainerPoint(t),
|
|
1996
|
+
var n = this.getZoomScale(e), s = this.getSize().divideBy(2), a = t instanceof G ? t : this.latLngToContainerPoint(t), _ = a.subtract(s).multiplyBy(1 - 1 / n), b = this.containerPointToLatLng(s.add(_));
|
|
1997
1997
|
return this.setView(b, e, { zoom: i });
|
|
1998
1998
|
},
|
|
1999
1999
|
_getBoundsCenterZoom: function(t, e) {
|
|
@@ -2004,7 +2004,7 @@ function Ta() {
|
|
|
2004
2004
|
center: t.getCenter(),
|
|
2005
2005
|
zoom: s
|
|
2006
2006
|
};
|
|
2007
|
-
var a = n.subtract(i).divideBy(2),
|
|
2007
|
+
var a = n.subtract(i).divideBy(2), _ = this.project(t.getSouthWest(), s), b = this.project(t.getNorthEast(), s), x = this.unproject(_.add(b).divideBy(2).add(a), s);
|
|
2008
2008
|
return {
|
|
2009
2009
|
center: x,
|
|
2010
2010
|
zoom: s
|
|
@@ -2055,12 +2055,12 @@ function Ta() {
|
|
|
2055
2055
|
if (i = i || {}, i.animate === !1 || !D.any3d)
|
|
2056
2056
|
return this.setView(t, e, i);
|
|
2057
2057
|
this._stop();
|
|
2058
|
-
var n = this.project(this.getCenter()), s = this.project(t), a = this.getSize(),
|
|
2059
|
-
t = q(t), e = e === void 0 ?
|
|
2060
|
-
var b = Math.max(a.x, a.y), x = b * this.getZoomScale(
|
|
2058
|
+
var n = this.project(this.getCenter()), s = this.project(t), a = this.getSize(), _ = this._zoom;
|
|
2059
|
+
t = q(t), e = e === void 0 ? _ : e;
|
|
2060
|
+
var b = Math.max(a.x, a.y), x = b * this.getZoomScale(_, e), T = s.distanceTo(n) || 1, O = 1.42, F = O * O;
|
|
2061
2061
|
function X(kt) {
|
|
2062
|
-
var ji = kt ? -1 : 1,
|
|
2063
|
-
return
|
|
2062
|
+
var ji = kt ? -1 : 1, pr = kt ? x : b, _r = x * x - b * b + ji * F * F * T * T, mr = 2 * pr * F * T, Gn = _r / mr, Go = Math.sqrt(Gn * Gn + 1) - Gn, gr = Go < 1e-9 ? -18 : Math.log(Go);
|
|
2063
|
+
return gr;
|
|
2064
2064
|
}
|
|
2065
2065
|
function Zt(kt) {
|
|
2066
2066
|
return (Math.exp(kt) - Math.exp(-kt)) / 2;
|
|
@@ -2075,18 +2075,18 @@ function Ta() {
|
|
|
2075
2075
|
function We(kt) {
|
|
2076
2076
|
return b * (St(Dt) / St(Dt + O * kt));
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2078
|
+
function hr(kt) {
|
|
2079
2079
|
return b * (St(Dt) * Ut(Dt + O * kt) - Zt(Dt)) / F;
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2081
|
+
function cr(kt) {
|
|
2082
2082
|
return 1 - Math.pow(1 - kt, 1.5);
|
|
2083
2083
|
}
|
|
2084
|
-
var
|
|
2084
|
+
var dr = Date.now(), Fo = (X(1) - Dt) / O, fr = i.duration ? 1e3 * i.duration : 1e3 * Fo * 0.8;
|
|
2085
2085
|
function Uo() {
|
|
2086
|
-
var kt = (Date.now() -
|
|
2086
|
+
var kt = (Date.now() - dr) / fr, ji = cr(kt) * Fo;
|
|
2087
2087
|
kt <= 1 ? (this._flyToFrame = at(Uo, this), this._move(
|
|
2088
|
-
this.unproject(n.add(s.subtract(n).multiplyBy(
|
|
2089
|
-
this.getScaleZoom(b / We(ji),
|
|
2088
|
+
this.unproject(n.add(s.subtract(n).multiplyBy(hr(ji) / T)), _),
|
|
2089
|
+
this.getScaleZoom(b / We(ji), _),
|
|
2090
2090
|
{ flyTo: !0 }
|
|
2091
2091
|
)) : this._move(t, e)._moveEnd(!0);
|
|
2092
2092
|
}
|
|
@@ -2130,7 +2130,7 @@ function Ta() {
|
|
|
2130
2130
|
// the map will not be panned.
|
|
2131
2131
|
panInside: function(t, e) {
|
|
2132
2132
|
e = e || {};
|
|
2133
|
-
var i = N(e.paddingTopLeft || e.padding || [0, 0]), n = N(e.paddingBottomRight || e.padding || [0, 0]), s = this.project(this.getCenter()), a = this.project(t),
|
|
2133
|
+
var i = N(e.paddingTopLeft || e.padding || [0, 0]), n = N(e.paddingBottomRight || e.padding || [0, 0]), s = this.project(this.getCenter()), a = this.project(t), _ = this.getPixelBounds(), b = Lt([_.min.add(i), _.max.subtract(n)]), x = b.getSize();
|
|
2134
2134
|
if (!b.contains(a)) {
|
|
2135
2135
|
this._enforcingBounds = !0;
|
|
2136
2136
|
var T = a.subtract(b.getCenter()), O = b.extend(a).getSize().subtract(x);
|
|
@@ -2216,8 +2216,8 @@ function Ta() {
|
|
|
2216
2216
|
if (this._container._leaflet_id) {
|
|
2217
2217
|
var e = t.coords.latitude, i = t.coords.longitude, n = new et(e, i), s = n.toBounds(t.coords.accuracy * 2), a = this._locateOptions;
|
|
2218
2218
|
if (a.setView) {
|
|
2219
|
-
var
|
|
2220
|
-
this.setView(n, a.maxZoom ? Math.min(
|
|
2219
|
+
var _ = this.getBoundsZoom(s);
|
|
2220
|
+
this.setView(n, a.maxZoom ? Math.min(_, a.maxZoom) : _);
|
|
2221
2221
|
}
|
|
2222
2222
|
var b = {
|
|
2223
2223
|
latlng: n,
|
|
@@ -2249,12 +2249,12 @@ function Ta() {
|
|
|
2249
2249
|
} catch {
|
|
2250
2250
|
this._container._leaflet_id = void 0, this._containerId = void 0;
|
|
2251
2251
|
}
|
|
2252
|
-
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(),
|
|
2252
|
+
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), _t(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (Q(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
|
|
2253
2253
|
var t;
|
|
2254
2254
|
for (t in this._layers)
|
|
2255
2255
|
this._layers[t].remove();
|
|
2256
2256
|
for (t in this._panes)
|
|
2257
|
-
|
|
2257
|
+
_t(this._panes[t]);
|
|
2258
2258
|
return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer, this;
|
|
2259
2259
|
},
|
|
2260
2260
|
// @section Other Methods
|
|
@@ -2300,7 +2300,7 @@ function Ta() {
|
|
|
2300
2300
|
// the given bounds in its entirety.
|
|
2301
2301
|
getBoundsZoom: function(t, e, i) {
|
|
2302
2302
|
t = ft(t), i = N(i || [0, 0]);
|
|
2303
|
-
var n = this.getZoom() || 0, s = this.getMinZoom(), a = this.getMaxZoom(),
|
|
2303
|
+
var n = this.getZoom() || 0, s = this.getMinZoom(), a = this.getMaxZoom(), _ = t.getNorthWest(), b = t.getSouthEast(), x = this.getSize().subtract(i), T = Lt(this.project(b, n), this.project(_, n)).getSize(), O = D.any3d ? this.options.zoomSnap : 1, F = x.x / T.x, X = x.y / T.y, Zt = e ? Math.max(F, X) : Math.min(F, X);
|
|
2304
2304
|
return n = this.getScaleZoom(Zt, n), O && (n = Math.round(n / (O / 100)) * (O / 100), n = e ? Math.ceil(n / O) * O : Math.floor(n / O) * O), Math.max(s, Math.min(a, n));
|
|
2305
2305
|
},
|
|
2306
2306
|
// @method getSize(): Point
|
|
@@ -2540,16 +2540,16 @@ function Ta() {
|
|
|
2540
2540
|
Math.max(Math.abs(t.x), Math.abs(t.y)) >= this.options.transform3DLimit && this._resetView(this.getCenter(), this.getZoom());
|
|
2541
2541
|
},
|
|
2542
2542
|
_findEventTargets: function(t, e) {
|
|
2543
|
-
for (var i = [], n, s = e === "mouseout" || e === "mouseover", a = t.target || t.srcElement,
|
|
2543
|
+
for (var i = [], n, s = e === "mouseout" || e === "mouseover", a = t.target || t.srcElement, _ = !1; a; ) {
|
|
2544
2544
|
if (n = this._targets[c(a)], n && (e === "click" || e === "preclick") && this._draggableMoved(n)) {
|
|
2545
|
-
|
|
2545
|
+
_ = !0;
|
|
2546
2546
|
break;
|
|
2547
2547
|
}
|
|
2548
|
-
if (n && n.listens(e, !0) && (s && !
|
|
2548
|
+
if (n && n.listens(e, !0) && (s && !En(a, t) || (i.push(n), s)) || a === this._container)
|
|
2549
2549
|
break;
|
|
2550
2550
|
a = a.parentNode;
|
|
2551
2551
|
}
|
|
2552
|
-
return !i.length && !
|
|
2552
|
+
return !i.length && !_ && !s && this.listens(e, !0) && (i = [this]), i;
|
|
2553
2553
|
},
|
|
2554
2554
|
_isClickDisabled: function(t) {
|
|
2555
2555
|
for (; t && t !== this._container; ) {
|
|
@@ -2562,7 +2562,7 @@ function Ta() {
|
|
|
2562
2562
|
var e = t.target || t.srcElement;
|
|
2563
2563
|
if (!(!this._loaded || e._leaflet_disable_events || t.type === "click" && this._isClickDisabled(e))) {
|
|
2564
2564
|
var i = t.type;
|
|
2565
|
-
i === "mousedown" &&
|
|
2565
|
+
i === "mousedown" && Tn(e), this._fireDOMEvent(t, i);
|
|
2566
2566
|
}
|
|
2567
2567
|
},
|
|
2568
2568
|
_mouseEvents: ["click", "dblclick", "mouseover", "mouseout", "contextmenu"],
|
|
@@ -2573,8 +2573,8 @@ function Ta() {
|
|
|
2573
2573
|
}
|
|
2574
2574
|
var s = this._findEventTargets(t, e);
|
|
2575
2575
|
if (i) {
|
|
2576
|
-
for (var a = [],
|
|
2577
|
-
i[
|
|
2576
|
+
for (var a = [], _ = 0; _ < i.length; _++)
|
|
2577
|
+
i[_].listens(e, !0) && a.push(i[_]);
|
|
2578
2578
|
s = a.concat(s);
|
|
2579
2579
|
}
|
|
2580
2580
|
if (s.length) {
|
|
@@ -2586,8 +2586,8 @@ function Ta() {
|
|
|
2586
2586
|
var T = b.getLatLng && (!b._radius || b._radius <= 10);
|
|
2587
2587
|
x.containerPoint = T ? this.latLngToContainerPoint(b.getLatLng()) : this.mouseEventToContainerPoint(t), x.layerPoint = this.containerPointToLayerPoint(x.containerPoint), x.latlng = T ? b.getLatLng() : this.layerPointToLatLng(x.layerPoint);
|
|
2588
2588
|
}
|
|
2589
|
-
for (
|
|
2590
|
-
if (s[
|
|
2589
|
+
for (_ = 0; _ < s.length; _++)
|
|
2590
|
+
if (s[_].fire(e, x, !0), x.originalEvent._stopped || s[_].options.bubblingMouseEvents === !1 && ht(this._mouseEvents, e) !== -1)
|
|
2591
2591
|
return;
|
|
2592
2592
|
}
|
|
2593
2593
|
},
|
|
@@ -2647,8 +2647,8 @@ function Ta() {
|
|
|
2647
2647
|
_limitCenter: function(t, e, i) {
|
|
2648
2648
|
if (!i)
|
|
2649
2649
|
return t;
|
|
2650
|
-
var n = this.project(t, e), s = this.getSize().divideBy(2), a = new J(n.subtract(s), n.add(s)),
|
|
2651
|
-
return Math.abs(
|
|
2650
|
+
var n = this.project(t, e), s = this.getSize().divideBy(2), a = new J(n.subtract(s), n.add(s)), _ = this._getBoundsOffset(a, i, e);
|
|
2651
|
+
return Math.abs(_.x) <= 1 && Math.abs(_.y) <= 1 ? t : this.unproject(n.add(_), e);
|
|
2652
2652
|
},
|
|
2653
2653
|
// adjust offset for view to get inside bounds
|
|
2654
2654
|
_limitOffset: function(t, e) {
|
|
@@ -2662,8 +2662,8 @@ function Ta() {
|
|
|
2662
2662
|
var n = Lt(
|
|
2663
2663
|
this.project(e.getNorthEast(), i),
|
|
2664
2664
|
this.project(e.getSouthWest(), i)
|
|
2665
|
-
), s = n.min.subtract(t.min), a = n.max.subtract(t.max),
|
|
2666
|
-
return new G(
|
|
2665
|
+
), s = n.min.subtract(t.min), a = n.max.subtract(t.max), _ = this._rebound(s.x, -a.x), b = this._rebound(s.y, -a.y);
|
|
2666
|
+
return new G(_, b);
|
|
2667
2667
|
},
|
|
2668
2668
|
_rebound: function(t, e) {
|
|
2669
2669
|
return t + e > 0 ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e));
|
|
@@ -2685,12 +2685,12 @@ function Ta() {
|
|
|
2685
2685
|
_createAnimProxy: function() {
|
|
2686
2686
|
var t = this._proxy = rt("div", "leaflet-proxy leaflet-zoom-animated");
|
|
2687
2687
|
this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
|
|
2688
|
-
var i =
|
|
2688
|
+
var i = Ln, n = this._proxy.style[i];
|
|
2689
2689
|
xe(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
|
|
2690
2690
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
|
2691
2691
|
},
|
|
2692
2692
|
_destroyAnimProxy: function() {
|
|
2693
|
-
|
|
2693
|
+
_t(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy;
|
|
2694
2694
|
},
|
|
2695
2695
|
_animMoveEnd: function() {
|
|
2696
2696
|
var t = this.getCenter(), e = this.getZoom();
|
|
@@ -2723,7 +2723,7 @@ function Ta() {
|
|
|
2723
2723
|
this._animatingZoom && (this._mapPane && vt(this._mapPane, "leaflet-zoom-anim"), this._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom, void 0, !0), this._tempFireZoomEvent && this.fire("zoom"), delete this._tempFireZoomEvent, this.fire("move"), this._moveEnd(!0));
|
|
2724
2724
|
}
|
|
2725
2725
|
});
|
|
2726
|
-
function
|
|
2726
|
+
function Ts(t, e) {
|
|
2727
2727
|
return new it(t, e);
|
|
2728
2728
|
}
|
|
2729
2729
|
var qt = yt.extend({
|
|
@@ -2768,7 +2768,7 @@ function Ta() {
|
|
|
2768
2768
|
// @method remove: this
|
|
2769
2769
|
// Removes the control from the map it is currently active on.
|
|
2770
2770
|
remove: function() {
|
|
2771
|
-
return this._map ? (
|
|
2771
|
+
return this._map ? (_t(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this;
|
|
2772
2772
|
},
|
|
2773
2773
|
_refocusOnMap: function(t) {
|
|
2774
2774
|
this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
|
|
@@ -2790,15 +2790,15 @@ function Ta() {
|
|
|
2790
2790
|
_initControlPos: function() {
|
|
2791
2791
|
var t = this._controlCorners = {}, e = "leaflet-", i = this._controlContainer = rt("div", e + "control-container", this._container);
|
|
2792
2792
|
function n(s, a) {
|
|
2793
|
-
var
|
|
2794
|
-
t[s + a] = rt("div",
|
|
2793
|
+
var _ = e + s + " " + e + a;
|
|
2794
|
+
t[s + a] = rt("div", _, i);
|
|
2795
2795
|
}
|
|
2796
2796
|
n("top", "left"), n("top", "right"), n("bottom", "left"), n("bottom", "right");
|
|
2797
2797
|
},
|
|
2798
2798
|
_clearControlPos: function() {
|
|
2799
2799
|
for (var t in this._controlCorners)
|
|
2800
|
-
|
|
2801
|
-
|
|
2800
|
+
_t(this._controlCorners[t]);
|
|
2801
|
+
_t(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
2802
2802
|
}
|
|
2803
2803
|
});
|
|
2804
2804
|
var ho = qt.extend({
|
|
@@ -2881,7 +2881,7 @@ function Ta() {
|
|
|
2881
2881
|
},
|
|
2882
2882
|
_initLayout: function() {
|
|
2883
2883
|
var t = "leaflet-control-layers", e = this._container = rt("div", t), i = this.options.collapsed;
|
|
2884
|
-
e.setAttribute("aria-haspopup", !0), oi(e),
|
|
2884
|
+
e.setAttribute("aria-haspopup", !0), oi(e), In(e);
|
|
2885
2885
|
var n = this._section = rt("section", t + "-list");
|
|
2886
2886
|
i && (this._map.on("click", this.collapse, this), j(e, {
|
|
2887
2887
|
mouseenter: this._expandSafely,
|
|
@@ -2938,8 +2938,8 @@ function Ta() {
|
|
|
2938
2938
|
s.innerHTML = " " + t.name;
|
|
2939
2939
|
var a = document.createElement("span");
|
|
2940
2940
|
e.appendChild(a), a.appendChild(n), a.appendChild(s);
|
|
2941
|
-
var
|
|
2942
|
-
return
|
|
2941
|
+
var _ = t.overlay ? this._overlaysList : this._baseLayersList;
|
|
2942
|
+
return _.appendChild(e), this._checkDisabledLayers(), e;
|
|
2943
2943
|
},
|
|
2944
2944
|
_onInputClick: function() {
|
|
2945
2945
|
if (!this._preventClick) {
|
|
@@ -2969,9 +2969,9 @@ function Ta() {
|
|
|
2969
2969
|
dt(t, "click", Et), e._preventClick = !1;
|
|
2970
2970
|
});
|
|
2971
2971
|
}
|
|
2972
|
-
}),
|
|
2972
|
+
}), Ms = function(t, e, i) {
|
|
2973
2973
|
return new ho(t, e, i);
|
|
2974
|
-
},
|
|
2974
|
+
}, Bn = qt.extend({
|
|
2975
2975
|
// @section
|
|
2976
2976
|
// @aka Control.Zoom options
|
|
2977
2977
|
options: {
|
|
@@ -3032,10 +3032,10 @@ function Ta() {
|
|
|
3032
3032
|
it.mergeOptions({
|
|
3033
3033
|
zoomControl: !0
|
|
3034
3034
|
}), it.addInitHook(function() {
|
|
3035
|
-
this.options.zoomControl && (this.zoomControl = new
|
|
3035
|
+
this.options.zoomControl && (this.zoomControl = new Bn(), this.addControl(this.zoomControl));
|
|
3036
3036
|
});
|
|
3037
|
-
var
|
|
3038
|
-
return new
|
|
3037
|
+
var Ss = function(t) {
|
|
3038
|
+
return new Bn(t);
|
|
3039
3039
|
}, co = qt.extend({
|
|
3040
3040
|
// @section
|
|
3041
3041
|
// @aka Control.Scale options
|
|
@@ -3088,16 +3088,16 @@ function Ta() {
|
|
|
3088
3088
|
var e = Math.pow(10, (Math.floor(t) + "").length - 1), i = t / e;
|
|
3089
3089
|
return i = i >= 10 ? 10 : i >= 5 ? 5 : i >= 3 ? 3 : i >= 2 ? 2 : 1, e * i;
|
|
3090
3090
|
}
|
|
3091
|
-
}),
|
|
3091
|
+
}), As = function(t) {
|
|
3092
3092
|
return new co(t);
|
|
3093
|
-
},
|
|
3093
|
+
}, Os = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', zn = qt.extend({
|
|
3094
3094
|
// @section
|
|
3095
3095
|
// @aka Control.Attribution options
|
|
3096
3096
|
options: {
|
|
3097
3097
|
position: "bottomright",
|
|
3098
3098
|
// @option prefix: String|false = 'Leaflet'
|
|
3099
3099
|
// The HTML text shown before the attributions. Pass `false` to disable.
|
|
3100
|
-
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (D.inlineSvg ?
|
|
3100
|
+
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (D.inlineSvg ? Os + " " : "") + "Leaflet</a>"
|
|
3101
3101
|
},
|
|
3102
3102
|
initialize: function(t) {
|
|
3103
3103
|
C(this, t), this._attributions = {};
|
|
@@ -3144,12 +3144,12 @@ function Ta() {
|
|
|
3144
3144
|
it.mergeOptions({
|
|
3145
3145
|
attributionControl: !0
|
|
3146
3146
|
}), it.addInitHook(function() {
|
|
3147
|
-
this.options.attributionControl && new
|
|
3147
|
+
this.options.attributionControl && new zn().addTo(this);
|
|
3148
3148
|
});
|
|
3149
|
-
var
|
|
3150
|
-
return new
|
|
3149
|
+
var Is = function(t) {
|
|
3150
|
+
return new zn(t);
|
|
3151
3151
|
};
|
|
3152
|
-
qt.Layers = ho, qt.Zoom =
|
|
3152
|
+
qt.Layers = ho, qt.Zoom = Bn, qt.Scale = co, qt.Attribution = zn, si.layers = Ms, si.zoom = Ss, si.scale = As, si.attribution = Is;
|
|
3153
3153
|
var ee = yt.extend({
|
|
3154
3154
|
initialize: function(t) {
|
|
3155
3155
|
this._map = t;
|
|
@@ -3179,7 +3179,7 @@ function Ta() {
|
|
|
3179
3179
|
ee.addTo = function(t, e) {
|
|
3180
3180
|
return t.addHandler(e, this), this;
|
|
3181
3181
|
};
|
|
3182
|
-
var
|
|
3182
|
+
var Es = { Events: It }, fo = D.touch ? "touchstart mousedown" : "mousedown", pe = re.extend({
|
|
3183
3183
|
options: {
|
|
3184
3184
|
// @section
|
|
3185
3185
|
// @aka Draggable options
|
|
@@ -3201,18 +3201,18 @@ function Ta() {
|
|
|
3201
3201
|
// @method disable()
|
|
3202
3202
|
// Disables the dragging ability
|
|
3203
3203
|
disable: function() {
|
|
3204
|
-
this._enabled && (
|
|
3204
|
+
this._enabled && (pe._dragging === this && this.finishDrag(!0), dt(this._dragStartTarget, fo, this._onDown, this), this._enabled = !1, this._moved = !1);
|
|
3205
3205
|
},
|
|
3206
3206
|
_onDown: function(t) {
|
|
3207
|
-
if (this._enabled && (this._moved = !1, !
|
|
3207
|
+
if (this._enabled && (this._moved = !1, !bn(this._element, "leaflet-zoom-anim"))) {
|
|
3208
3208
|
if (t.touches && t.touches.length !== 1) {
|
|
3209
|
-
|
|
3209
|
+
pe._dragging === this && this.finishDrag();
|
|
3210
3210
|
return;
|
|
3211
3211
|
}
|
|
3212
|
-
if (!(
|
|
3212
|
+
if (!(pe._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (pe._dragging = this, this._preventOutline && Tn(this._element), Pn(), ei(), !this._moving)) {
|
|
3213
3213
|
this.fire("down");
|
|
3214
3214
|
var e = t.touches ? t.touches[0] : t, i = oo(this._element);
|
|
3215
|
-
this._startPoint = new G(e.clientX, e.clientY), this._startPos = Ce(this._element), this._parentScale =
|
|
3215
|
+
this._startPoint = new G(e.clientX, e.clientY), this._startPos = Ce(this._element), this._parentScale = Mn(i);
|
|
3216
3216
|
var n = t.type === "mousedown";
|
|
3217
3217
|
j(document, n ? "mousemove" : "touchmove", this._onMove, this), j(document, n ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
|
3218
3218
|
}
|
|
@@ -3236,127 +3236,127 @@ function Ta() {
|
|
|
3236
3236
|
this._enabled && this.finishDrag();
|
|
3237
3237
|
},
|
|
3238
3238
|
finishDrag: function(t) {
|
|
3239
|
-
vt(document.body, "leaflet-dragging"), this._lastTarget && (vt(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), dt(document, "mousemove touchmove", this._onMove, this), dt(document, "mouseup touchend touchcancel", this._onUp, this),
|
|
3239
|
+
vt(document.body, "leaflet-dragging"), this._lastTarget && (vt(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), dt(document, "mousemove touchmove", this._onMove, this), dt(document, "mouseup touchend touchcancel", this._onUp, this), xn(), ii();
|
|
3240
3240
|
var e = this._moved && this._moving;
|
|
3241
|
-
this._moving = !1,
|
|
3241
|
+
this._moving = !1, pe._dragging = !1, e && this.fire("dragend", {
|
|
3242
3242
|
noInertia: t,
|
|
3243
3243
|
distance: this._newPos.distanceTo(this._startPos)
|
|
3244
3244
|
});
|
|
3245
3245
|
}
|
|
3246
3246
|
});
|
|
3247
|
-
function
|
|
3248
|
-
var n, s = [1, 4, 2, 8], a,
|
|
3247
|
+
function po(t, e, i) {
|
|
3248
|
+
var n, s = [1, 4, 2, 8], a, _, b, x, T, O, F, X;
|
|
3249
3249
|
for (a = 0, O = t.length; a < O; a++)
|
|
3250
3250
|
t[a]._code = Se(t[a], e);
|
|
3251
3251
|
for (b = 0; b < 4; b++) {
|
|
3252
|
-
for (F = s[b], n = [], a = 0, O = t.length,
|
|
3253
|
-
x = t[a], T = t[
|
|
3252
|
+
for (F = s[b], n = [], a = 0, O = t.length, _ = O - 1; a < O; _ = a++)
|
|
3253
|
+
x = t[a], T = t[_], x._code & F ? T._code & F || (X = Di(T, x, F, e, i), X._code = Se(X, e), n.push(X)) : (T._code & F && (X = Di(T, x, F, e, i), X._code = Se(X, e), n.push(X)), n.push(x));
|
|
3254
3254
|
t = n;
|
|
3255
3255
|
}
|
|
3256
3256
|
return t;
|
|
3257
3257
|
}
|
|
3258
|
-
function
|
|
3259
|
-
var i, n, s, a,
|
|
3258
|
+
function _o(t, e) {
|
|
3259
|
+
var i, n, s, a, _, b, x, T, O;
|
|
3260
3260
|
if (!t || t.length === 0)
|
|
3261
3261
|
throw new Error("latlngs not passed");
|
|
3262
3262
|
Ft(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
3263
3263
|
var F = q([0, 0]), X = ft(t), Zt = X.getNorthWest().distanceTo(X.getSouthWest()) * X.getNorthEast().distanceTo(X.getNorthWest());
|
|
3264
|
-
Zt < 1700 && (F =
|
|
3264
|
+
Zt < 1700 && (F = Zn(t));
|
|
3265
3265
|
var St = t.length, Ut = [];
|
|
3266
3266
|
for (i = 0; i < St; i++) {
|
|
3267
3267
|
var Dt = q(t[i]);
|
|
3268
3268
|
Ut.push(e.project(q([Dt.lat - F.lat, Dt.lng - F.lng])));
|
|
3269
3269
|
}
|
|
3270
3270
|
for (b = x = T = 0, i = 0, n = St - 1; i < St; n = i++)
|
|
3271
|
-
s = Ut[i], a = Ut[n],
|
|
3271
|
+
s = Ut[i], a = Ut[n], _ = s.y * a.x - a.y * s.x, x += (s.x + a.x) * _, T += (s.y + a.y) * _, b += _ * 3;
|
|
3272
3272
|
b === 0 ? O = Ut[0] : O = [x / b, T / b];
|
|
3273
3273
|
var We = e.unproject(N(O));
|
|
3274
3274
|
return q([We.lat + F.lat, We.lng + F.lng]);
|
|
3275
3275
|
}
|
|
3276
|
-
function
|
|
3276
|
+
function Zn(t) {
|
|
3277
3277
|
for (var e = 0, i = 0, n = 0, s = 0; s < t.length; s++) {
|
|
3278
3278
|
var a = q(t[s]);
|
|
3279
3279
|
e += a.lat, i += a.lng, n++;
|
|
3280
3280
|
}
|
|
3281
3281
|
return q([e / n, i / n]);
|
|
3282
3282
|
}
|
|
3283
|
-
var
|
|
3283
|
+
var Bs = {
|
|
3284
3284
|
__proto__: null,
|
|
3285
|
-
clipPolygon:
|
|
3286
|
-
polygonCenter:
|
|
3287
|
-
centroid:
|
|
3285
|
+
clipPolygon: po,
|
|
3286
|
+
polygonCenter: _o,
|
|
3287
|
+
centroid: Zn
|
|
3288
3288
|
};
|
|
3289
3289
|
function mo(t, e) {
|
|
3290
3290
|
if (!e || !t.length)
|
|
3291
3291
|
return t.slice();
|
|
3292
3292
|
var i = e * e;
|
|
3293
|
-
return t =
|
|
3293
|
+
return t = Ds(t, i), t = Zs(t, i), t;
|
|
3294
3294
|
}
|
|
3295
3295
|
function go(t, e, i) {
|
|
3296
3296
|
return Math.sqrt(ri(t, e, i, !0));
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3298
|
+
function zs(t, e, i) {
|
|
3299
3299
|
return ri(t, e, i);
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function Zs(t, e) {
|
|
3302
3302
|
var i = t.length, n = typeof Uint8Array < "u" ? Uint8Array : Array, s = new n(i);
|
|
3303
|
-
s[0] = s[i - 1] = 1,
|
|
3304
|
-
var a,
|
|
3303
|
+
s[0] = s[i - 1] = 1, Dn(t, s, e, 0, i - 1);
|
|
3304
|
+
var a, _ = [];
|
|
3305
3305
|
for (a = 0; a < i; a++)
|
|
3306
|
-
s[a] &&
|
|
3307
|
-
return
|
|
3306
|
+
s[a] && _.push(t[a]);
|
|
3307
|
+
return _;
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3310
|
-
var a = 0,
|
|
3309
|
+
function Dn(t, e, i, n, s) {
|
|
3310
|
+
var a = 0, _, b, x;
|
|
3311
3311
|
for (b = n + 1; b <= s - 1; b++)
|
|
3312
|
-
x = ri(t[b], t[n], t[s], !0), x > a && (
|
|
3313
|
-
a > i && (e[
|
|
3312
|
+
x = ri(t[b], t[n], t[s], !0), x > a && (_ = b, a = x);
|
|
3313
|
+
a > i && (e[_] = 1, Dn(t, e, i, n, _), Dn(t, e, i, _, s));
|
|
3314
3314
|
}
|
|
3315
|
-
function
|
|
3315
|
+
function Ds(t, e) {
|
|
3316
3316
|
for (var i = [t[0]], n = 1, s = 0, a = t.length; n < a; n++)
|
|
3317
|
-
|
|
3317
|
+
Ns(t[n], t[s]) > e && (i.push(t[n]), s = n);
|
|
3318
3318
|
return s < a - 1 && i.push(t[a - 1]), i;
|
|
3319
3319
|
}
|
|
3320
3320
|
var vo;
|
|
3321
3321
|
function yo(t, e, i, n, s) {
|
|
3322
|
-
var a = n ? vo : Se(t, i),
|
|
3323
|
-
for (vo =
|
|
3324
|
-
if (!(a |
|
|
3322
|
+
var a = n ? vo : Se(t, i), _ = Se(e, i), b, x, T;
|
|
3323
|
+
for (vo = _; ; ) {
|
|
3324
|
+
if (!(a | _))
|
|
3325
3325
|
return [t, e];
|
|
3326
|
-
if (a &
|
|
3326
|
+
if (a & _)
|
|
3327
3327
|
return !1;
|
|
3328
|
-
b = a ||
|
|
3328
|
+
b = a || _, x = Di(t, e, b, i, s), T = Se(x, i), b === a ? (t = x, a = T) : (e = x, _ = T);
|
|
3329
3329
|
}
|
|
3330
3330
|
}
|
|
3331
3331
|
function Di(t, e, i, n, s) {
|
|
3332
|
-
var a = e.x - t.x,
|
|
3333
|
-
return i & 8 ? (T = t.x + a * (x.y - t.y) /
|
|
3332
|
+
var a = e.x - t.x, _ = e.y - t.y, b = n.min, x = n.max, T, O;
|
|
3333
|
+
return i & 8 ? (T = t.x + a * (x.y - t.y) / _, O = x.y) : i & 4 ? (T = t.x + a * (b.y - t.y) / _, O = b.y) : i & 2 ? (T = x.x, O = t.y + _ * (x.x - t.x) / a) : i & 1 && (T = b.x, O = t.y + _ * (b.x - t.x) / a), new G(T, O, s);
|
|
3334
3334
|
}
|
|
3335
3335
|
function Se(t, e) {
|
|
3336
3336
|
var i = 0;
|
|
3337
3337
|
return t.x < e.min.x ? i |= 1 : t.x > e.max.x && (i |= 2), t.y < e.min.y ? i |= 4 : t.y > e.max.y && (i |= 8), i;
|
|
3338
3338
|
}
|
|
3339
|
-
function
|
|
3339
|
+
function Ns(t, e) {
|
|
3340
3340
|
var i = e.x - t.x, n = e.y - t.y;
|
|
3341
3341
|
return i * i + n * n;
|
|
3342
3342
|
}
|
|
3343
3343
|
function ri(t, e, i, n) {
|
|
3344
|
-
var s = e.x, a = e.y,
|
|
3345
|
-
return x > 0 && (T = ((t.x - s) *
|
|
3344
|
+
var s = e.x, a = e.y, _ = i.x - s, b = i.y - a, x = _ * _ + b * b, T;
|
|
3345
|
+
return x > 0 && (T = ((t.x - s) * _ + (t.y - a) * b) / x, T > 1 ? (s = i.x, a = i.y) : T > 0 && (s += _ * T, a += b * T)), _ = t.x - s, b = t.y - a, n ? _ * _ + b * b : new G(s, a);
|
|
3346
3346
|
}
|
|
3347
3347
|
function Ft(t) {
|
|
3348
|
-
return
|
|
3348
|
+
return !$(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
|
3349
3349
|
}
|
|
3350
3350
|
function Lo(t) {
|
|
3351
3351
|
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), Ft(t);
|
|
3352
3352
|
}
|
|
3353
3353
|
function bo(t, e) {
|
|
3354
|
-
var i, n, s, a,
|
|
3354
|
+
var i, n, s, a, _, b, x, T;
|
|
3355
3355
|
if (!t || t.length === 0)
|
|
3356
3356
|
throw new Error("latlngs not passed");
|
|
3357
3357
|
Ft(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
3358
3358
|
var O = q([0, 0]), F = ft(t), X = F.getNorthWest().distanceTo(F.getSouthWest()) * F.getNorthEast().distanceTo(F.getNorthWest());
|
|
3359
|
-
X < 1700 && (O =
|
|
3359
|
+
X < 1700 && (O = Zn(t));
|
|
3360
3360
|
var Zt = t.length, St = [];
|
|
3361
3361
|
for (i = 0; i < Zt; i++) {
|
|
3362
3362
|
var Ut = q(t[i]);
|
|
@@ -3368,21 +3368,21 @@ function Ta() {
|
|
|
3368
3368
|
T = St[0];
|
|
3369
3369
|
else
|
|
3370
3370
|
for (i = 0, a = 0; i < Zt - 1; i++)
|
|
3371
|
-
if (
|
|
3371
|
+
if (_ = St[i], b = St[i + 1], s = _.distanceTo(b), a += s, a > n) {
|
|
3372
3372
|
x = (a - n) / s, T = [
|
|
3373
|
-
b.x - x * (b.x -
|
|
3374
|
-
b.y - x * (b.y -
|
|
3373
|
+
b.x - x * (b.x - _.x),
|
|
3374
|
+
b.y - x * (b.y - _.y)
|
|
3375
3375
|
];
|
|
3376
3376
|
break;
|
|
3377
3377
|
}
|
|
3378
3378
|
var Dt = e.unproject(N(T));
|
|
3379
3379
|
return q([Dt.lat + O.lat, Dt.lng + O.lng]);
|
|
3380
3380
|
}
|
|
3381
|
-
var
|
|
3381
|
+
var Rs = {
|
|
3382
3382
|
__proto__: null,
|
|
3383
3383
|
simplify: mo,
|
|
3384
3384
|
pointToSegmentDistance: go,
|
|
3385
|
-
closestPointOnSegment:
|
|
3385
|
+
closestPointOnSegment: zs,
|
|
3386
3386
|
clipSegment: yo,
|
|
3387
3387
|
_getEdgeIntersection: Di,
|
|
3388
3388
|
_getBitCode: Se,
|
|
@@ -3390,7 +3390,7 @@ function Ta() {
|
|
|
3390
3390
|
isFlat: Ft,
|
|
3391
3391
|
_flat: Lo,
|
|
3392
3392
|
polylineCenter: bo
|
|
3393
|
-
},
|
|
3393
|
+
}, Nn = {
|
|
3394
3394
|
project: function(t) {
|
|
3395
3395
|
return new G(t.lng, t.lat);
|
|
3396
3396
|
},
|
|
@@ -3398,37 +3398,37 @@ function Ta() {
|
|
|
3398
3398
|
return new et(t.y, t.x);
|
|
3399
3399
|
},
|
|
3400
3400
|
bounds: new J([-180, -90], [180, 90])
|
|
3401
|
-
},
|
|
3401
|
+
}, Rn = {
|
|
3402
3402
|
R: 6378137,
|
|
3403
3403
|
R_MINOR: 6356752314245179e-9,
|
|
3404
3404
|
bounds: new J([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
3405
3405
|
project: function(t) {
|
|
3406
|
-
var e = Math.PI / 180, i = this.R, n = t.lat * e, s = this.R_MINOR / i, a = Math.sqrt(1 - s * s),
|
|
3406
|
+
var e = Math.PI / 180, i = this.R, n = t.lat * e, s = this.R_MINOR / i, a = Math.sqrt(1 - s * s), _ = a * Math.sin(n), b = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - _) / (1 + _), a / 2);
|
|
3407
3407
|
return n = -i * Math.log(Math.max(b, 1e-10)), new G(t.lng * e * i, n);
|
|
3408
3408
|
},
|
|
3409
3409
|
unproject: function(t) {
|
|
3410
|
-
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, s = Math.sqrt(1 - n * n), a = Math.exp(-t.y / i),
|
|
3411
|
-
T = s * Math.sin(
|
|
3412
|
-
return new et(
|
|
3410
|
+
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, s = Math.sqrt(1 - n * n), a = Math.exp(-t.y / i), _ = Math.PI / 2 - 2 * Math.atan(a), b = 0, x = 0.1, T; b < 15 && Math.abs(x) > 1e-7; b++)
|
|
3411
|
+
T = s * Math.sin(_), T = Math.pow((1 - T) / (1 + T), s / 2), x = Math.PI / 2 - 2 * Math.atan(a * T) - _, _ += x;
|
|
3412
|
+
return new et(_ * e, t.x * e / i);
|
|
3413
3413
|
}
|
|
3414
|
-
},
|
|
3414
|
+
}, Hs = {
|
|
3415
3415
|
__proto__: null,
|
|
3416
|
-
LonLat:
|
|
3417
|
-
Mercator:
|
|
3416
|
+
LonLat: Nn,
|
|
3417
|
+
Mercator: Rn,
|
|
3418
3418
|
SphericalMercator: Ie
|
|
3419
|
-
},
|
|
3419
|
+
}, Vs = v({}, Pt, {
|
|
3420
3420
|
code: "EPSG:3395",
|
|
3421
|
-
projection:
|
|
3421
|
+
projection: Rn,
|
|
3422
3422
|
transformation: function() {
|
|
3423
|
-
var t = 0.5 / (Math.PI *
|
|
3423
|
+
var t = 0.5 / (Math.PI * Rn.R);
|
|
3424
3424
|
return Le(t, 0.5, -t, 0.5);
|
|
3425
3425
|
}()
|
|
3426
3426
|
}), ko = v({}, Pt, {
|
|
3427
3427
|
code: "EPSG:4326",
|
|
3428
|
-
projection:
|
|
3428
|
+
projection: Nn,
|
|
3429
3429
|
transformation: Le(1 / 180, 1, -1 / 180, 0.5)
|
|
3430
|
-
}),
|
|
3431
|
-
projection:
|
|
3430
|
+
}), Fs = v({}, Mt, {
|
|
3431
|
+
projection: Nn,
|
|
3432
3432
|
transformation: Le(1, 0, -1, 0),
|
|
3433
3433
|
scale: function(t) {
|
|
3434
3434
|
return Math.pow(2, t);
|
|
@@ -3442,7 +3442,7 @@ function Ta() {
|
|
|
3442
3442
|
},
|
|
3443
3443
|
infinite: !0
|
|
3444
3444
|
});
|
|
3445
|
-
Mt.Earth = Pt, Mt.EPSG3395 =
|
|
3445
|
+
Mt.Earth = Pt, Mt.EPSG3395 = Vs, Mt.EPSG3857 = be, Mt.EPSG900913 = on, Mt.EPSG4326 = ko, Mt.Simple = Fs;
|
|
3446
3446
|
var jt = re.extend({
|
|
3447
3447
|
// Classes extending `L.Layer` will inherit the following options:
|
|
3448
3448
|
options: {
|
|
@@ -3540,7 +3540,7 @@ function Ta() {
|
|
|
3540
3540
|
return this;
|
|
3541
3541
|
},
|
|
3542
3542
|
_addLayers: function(t) {
|
|
3543
|
-
t = t ?
|
|
3543
|
+
t = t ? $(t) ? t : [t] : [];
|
|
3544
3544
|
for (var e = 0, i = t.length; e < i; e++)
|
|
3545
3545
|
this.addLayer(t[e]);
|
|
3546
3546
|
},
|
|
@@ -3646,7 +3646,7 @@ function Ta() {
|
|
|
3646
3646
|
getLayerId: function(t) {
|
|
3647
3647
|
return c(t);
|
|
3648
3648
|
}
|
|
3649
|
-
}),
|
|
3649
|
+
}), Us = function(t, e) {
|
|
3650
3650
|
return new He(t, e);
|
|
3651
3651
|
}, ae = He.extend({
|
|
3652
3652
|
addLayer: function(t) {
|
|
@@ -3680,7 +3680,7 @@ function Ta() {
|
|
|
3680
3680
|
}
|
|
3681
3681
|
return t;
|
|
3682
3682
|
}
|
|
3683
|
-
}),
|
|
3683
|
+
}), Gs = function(t, e) {
|
|
3684
3684
|
return new ae(t, e);
|
|
3685
3685
|
}, Ve = yt.extend({
|
|
3686
3686
|
/* @section
|
|
@@ -3768,7 +3768,7 @@ function Ta() {
|
|
|
3768
3768
|
return D.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
|
|
3769
3769
|
}
|
|
3770
3770
|
});
|
|
3771
|
-
function
|
|
3771
|
+
function Ws(t) {
|
|
3772
3772
|
return new Ve(t);
|
|
3773
3773
|
}
|
|
3774
3774
|
var ai = Ve.extend({
|
|
@@ -3805,7 +3805,7 @@ function Ta() {
|
|
|
3805
3805
|
},
|
|
3806
3806
|
addHooks: function() {
|
|
3807
3807
|
var t = this._marker._icon;
|
|
3808
|
-
this._draggable || (this._draggable = new
|
|
3808
|
+
this._draggable || (this._draggable = new pe(t, t, !0)), this._draggable.on({
|
|
3809
3809
|
dragstart: this._onDragStart,
|
|
3810
3810
|
predrag: this._onPreDrag,
|
|
3811
3811
|
drag: this._onDrag,
|
|
@@ -3824,14 +3824,14 @@ function Ta() {
|
|
|
3824
3824
|
return this._draggable && this._draggable._moved;
|
|
3825
3825
|
},
|
|
3826
3826
|
_adjustPan: function(t) {
|
|
3827
|
-
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, s = this._marker.options.autoPanPadding, a = Ce(e._icon),
|
|
3828
|
-
|
|
3829
|
-
|
|
3827
|
+
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, s = this._marker.options.autoPanPadding, a = Ce(e._icon), _ = i.getPixelBounds(), b = i.getPixelOrigin(), x = Lt(
|
|
3828
|
+
_.min._subtract(b).add(s),
|
|
3829
|
+
_.max._subtract(b).subtract(s)
|
|
3830
3830
|
);
|
|
3831
3831
|
if (!x.contains(a)) {
|
|
3832
3832
|
var T = N(
|
|
3833
|
-
(Math.max(x.max.x, a.x) - x.max.x) / (
|
|
3834
|
-
(Math.max(x.max.y, a.y) - x.max.y) / (
|
|
3833
|
+
(Math.max(x.max.x, a.x) - x.max.x) / (_.max.x - x.max.x) - (Math.min(x.min.x, a.x) - x.min.x) / (_.min.x - x.min.x),
|
|
3834
|
+
(Math.max(x.max.y, a.y) - x.max.y) / (_.max.y - x.max.y) - (Math.min(x.min.y, a.y) - x.min.y) / (_.min.y - x.min.y)
|
|
3835
3835
|
).multiplyBy(n);
|
|
3836
3836
|
i.panBy(T, { animate: !1 }), this._draggable._newPos._add(T), this._draggable._startPos._add(T), bt(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = at(this._adjustPan.bind(this, t));
|
|
3837
3837
|
}
|
|
@@ -3981,10 +3981,10 @@ function Ta() {
|
|
|
3981
3981
|
this.options.riseOnHover && this.off({
|
|
3982
3982
|
mouseover: this._bringToFront,
|
|
3983
3983
|
mouseout: this._resetZIndex
|
|
3984
|
-
}), this.options.autoPanOnFocus && dt(this._icon, "focus", this._panOnFocus, this),
|
|
3984
|
+
}), this.options.autoPanOnFocus && dt(this._icon, "focus", this._panOnFocus, this), _t(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null;
|
|
3985
3985
|
},
|
|
3986
3986
|
_removeShadow: function() {
|
|
3987
|
-
this._shadow &&
|
|
3987
|
+
this._shadow && _t(this._shadow), this._shadow = null;
|
|
3988
3988
|
},
|
|
3989
3989
|
_setPos: function(t) {
|
|
3990
3990
|
this._icon && bt(this._icon, t), this._shadow && bt(this._shadow, t), this._zIndex = t.y + this.options.zIndexOffset, this._resetZIndex();
|
|
@@ -4034,10 +4034,10 @@ function Ta() {
|
|
|
4034
4034
|
return this.options.icon.options.tooltipAnchor;
|
|
4035
4035
|
}
|
|
4036
4036
|
});
|
|
4037
|
-
function
|
|
4037
|
+
function $s(t, e) {
|
|
4038
4038
|
return new Ni(t, e);
|
|
4039
4039
|
}
|
|
4040
|
-
var
|
|
4040
|
+
var _e = jt.extend({
|
|
4041
4041
|
// @section
|
|
4042
4042
|
// @aka Path options
|
|
4043
4043
|
options: {
|
|
@@ -4123,7 +4123,7 @@ function Ta() {
|
|
|
4123
4123
|
_clickTolerance: function() {
|
|
4124
4124
|
return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
|
|
4125
4125
|
}
|
|
4126
|
-
}), Ri =
|
|
4126
|
+
}), Ri = _e.extend({
|
|
4127
4127
|
// @section
|
|
4128
4128
|
// @aka CircleMarker options
|
|
4129
4129
|
options: {
|
|
@@ -4158,7 +4158,7 @@ function Ta() {
|
|
|
4158
4158
|
},
|
|
4159
4159
|
setStyle: function(t) {
|
|
4160
4160
|
var e = t && t.radius || this._radius;
|
|
4161
|
-
return
|
|
4161
|
+
return _e.prototype.setStyle.call(this, t), this.setRadius(e), this;
|
|
4162
4162
|
},
|
|
4163
4163
|
_project: function() {
|
|
4164
4164
|
this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds();
|
|
@@ -4181,10 +4181,10 @@ function Ta() {
|
|
|
4181
4181
|
return t.distanceTo(this._point) <= this._radius + this._clickTolerance();
|
|
4182
4182
|
}
|
|
4183
4183
|
});
|
|
4184
|
-
function
|
|
4184
|
+
function qs(t, e) {
|
|
4185
4185
|
return new Ri(t, e);
|
|
4186
4186
|
}
|
|
4187
|
-
var
|
|
4187
|
+
var Hn = Ri.extend({
|
|
4188
4188
|
initialize: function(t, e, i) {
|
|
4189
4189
|
if (typeof e == "number" && (e = v({}, i, { radius: e })), C(this, e), this._latlng = q(t), isNaN(this.options.radius))
|
|
4190
4190
|
throw new Error("Circle radius cannot be NaN");
|
|
@@ -4209,12 +4209,12 @@ function Ta() {
|
|
|
4209
4209
|
this._map.layerPointToLatLng(this._point.add(t))
|
|
4210
4210
|
);
|
|
4211
4211
|
},
|
|
4212
|
-
setStyle:
|
|
4212
|
+
setStyle: _e.prototype.setStyle,
|
|
4213
4213
|
_project: function() {
|
|
4214
4214
|
var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
|
|
4215
4215
|
if (n.distance === Pt.distance) {
|
|
4216
|
-
var s = Math.PI / 180, a = this._mRadius / Pt.R / s,
|
|
4217
|
-
(isNaN(O) || O === 0) && (O = a / Math.cos(Math.PI / 180 * e)), this._point = x.subtract(i.getPixelOrigin()), this._radius = isNaN(O) ? 0 : x.x - i.project([T, t - O]).x, this._radiusY = x.y -
|
|
4216
|
+
var s = Math.PI / 180, a = this._mRadius / Pt.R / s, _ = i.project([e + a, t]), b = i.project([e - a, t]), x = _.add(b).divideBy(2), T = i.unproject(x).lat, O = Math.acos((Math.cos(a * s) - Math.sin(e * s) * Math.sin(T * s)) / (Math.cos(e * s) * Math.cos(T * s))) / s;
|
|
4217
|
+
(isNaN(O) || O === 0) && (O = a / Math.cos(Math.PI / 180 * e)), this._point = x.subtract(i.getPixelOrigin()), this._radius = isNaN(O) ? 0 : x.x - i.project([T, t - O]).x, this._radiusY = x.y - _.y;
|
|
4218
4218
|
} else {
|
|
4219
4219
|
var F = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
|
|
4220
4220
|
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(F).x;
|
|
@@ -4222,10 +4222,10 @@ function Ta() {
|
|
|
4222
4222
|
this._updateBounds();
|
|
4223
4223
|
}
|
|
4224
4224
|
});
|
|
4225
|
-
function
|
|
4226
|
-
return new
|
|
4225
|
+
function js(t, e, i) {
|
|
4226
|
+
return new Hn(t, e, i);
|
|
4227
4227
|
}
|
|
4228
|
-
var le =
|
|
4228
|
+
var le = _e.extend({
|
|
4229
4229
|
// @section
|
|
4230
4230
|
// @aka Polyline options
|
|
4231
4231
|
options: {
|
|
@@ -4258,8 +4258,8 @@ function Ta() {
|
|
|
4258
4258
|
// @method closestLayerPoint(p: Point): Point
|
|
4259
4259
|
// Returns the point closest to `p` on the Polyline.
|
|
4260
4260
|
closestLayerPoint: function(t) {
|
|
4261
|
-
for (var e = 1 / 0, i = null, n = ri, s, a,
|
|
4262
|
-
for (var x = this._parts[
|
|
4261
|
+
for (var e = 1 / 0, i = null, n = ri, s, a, _ = 0, b = this._parts.length; _ < b; _++)
|
|
4262
|
+
for (var x = this._parts[_], T = 1, O = x.length; T < O; T++) {
|
|
4263
4263
|
s = x[T - 1], a = x[T];
|
|
4264
4264
|
var F = n(t, s, a, !0);
|
|
4265
4265
|
F < e && (e = F, i = n(t, s, a));
|
|
@@ -4310,11 +4310,11 @@ function Ta() {
|
|
|
4310
4310
|
},
|
|
4311
4311
|
// recursively turns latlngs into a set of rings with projected coordinates
|
|
4312
4312
|
_projectLatlngs: function(t, e, i) {
|
|
4313
|
-
var n = t[0] instanceof et, s = t.length, a,
|
|
4313
|
+
var n = t[0] instanceof et, s = t.length, a, _;
|
|
4314
4314
|
if (n) {
|
|
4315
|
-
for (
|
|
4316
|
-
|
|
4317
|
-
e.push(
|
|
4315
|
+
for (_ = [], a = 0; a < s; a++)
|
|
4316
|
+
_[a] = this._map.latLngToLayerPoint(t[a]), i.extend(_[a]);
|
|
4317
|
+
e.push(_);
|
|
4318
4318
|
} else
|
|
4319
4319
|
for (a = 0; a < s; a++)
|
|
4320
4320
|
this._projectLatlngs(t[a], e, i);
|
|
@@ -4327,10 +4327,10 @@ function Ta() {
|
|
|
4327
4327
|
this._parts = this._rings;
|
|
4328
4328
|
return;
|
|
4329
4329
|
}
|
|
4330
|
-
var e = this._parts, i, n, s, a,
|
|
4330
|
+
var e = this._parts, i, n, s, a, _, b, x;
|
|
4331
4331
|
for (i = 0, s = 0, a = this._rings.length; i < a; i++)
|
|
4332
|
-
for (x = this._rings[i], n = 0,
|
|
4333
|
-
b = yo(x[n], x[n + 1], t, n, !0), b && (e[s] = e[s] || [], e[s].push(b[0]), (b[1] !== x[n + 1] || n ===
|
|
4332
|
+
for (x = this._rings[i], n = 0, _ = x.length; n < _ - 1; n++)
|
|
4333
|
+
b = yo(x[n], x[n + 1], t, n, !0), b && (e[s] = e[s] || [], e[s].push(b[0]), (b[1] !== x[n + 1] || n === _ - 2) && (e[s].push(b[1]), s++));
|
|
4334
4334
|
}
|
|
4335
4335
|
},
|
|
4336
4336
|
// simplify each clipped part of the polyline for performance
|
|
@@ -4346,17 +4346,17 @@ function Ta() {
|
|
|
4346
4346
|
},
|
|
4347
4347
|
// Needed by the `Canvas` renderer for interactivity
|
|
4348
4348
|
_containsPoint: function(t, e) {
|
|
4349
|
-
var i, n, s, a,
|
|
4349
|
+
var i, n, s, a, _, b, x = this._clickTolerance();
|
|
4350
4350
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
4351
4351
|
return !1;
|
|
4352
4352
|
for (i = 0, a = this._parts.length; i < a; i++)
|
|
4353
|
-
for (b = this._parts[i], n = 0,
|
|
4353
|
+
for (b = this._parts[i], n = 0, _ = b.length, s = _ - 1; n < _; s = n++)
|
|
4354
4354
|
if (!(!e && n === 0) && go(t, b[s], b[n]) <= x)
|
|
4355
4355
|
return !0;
|
|
4356
4356
|
return !1;
|
|
4357
4357
|
}
|
|
4358
4358
|
});
|
|
4359
|
-
function
|
|
4359
|
+
function Ks(t, e) {
|
|
4360
4360
|
return new le(t, e);
|
|
4361
4361
|
}
|
|
4362
4362
|
le._flat = Lo;
|
|
@@ -4372,7 +4372,7 @@ function Ta() {
|
|
|
4372
4372
|
getCenter: function() {
|
|
4373
4373
|
if (!this._map)
|
|
4374
4374
|
throw new Error("Must add layer to map before using getCenter()");
|
|
4375
|
-
return
|
|
4375
|
+
return _o(this._defaultShape(), this._map.options.crs);
|
|
4376
4376
|
},
|
|
4377
4377
|
_convertLatLngs: function(t) {
|
|
4378
4378
|
var e = le.prototype._convertLatLngs.call(this, t), i = e.length;
|
|
@@ -4392,7 +4392,7 @@ function Ta() {
|
|
|
4392
4392
|
return;
|
|
4393
4393
|
}
|
|
4394
4394
|
for (var n = 0, s = this._rings.length, a; n < s; n++)
|
|
4395
|
-
a =
|
|
4395
|
+
a = po(this._rings[n], t, !0), a.length && this._parts.push(a);
|
|
4396
4396
|
}
|
|
4397
4397
|
},
|
|
4398
4398
|
_updatePath: function() {
|
|
@@ -4400,16 +4400,16 @@ function Ta() {
|
|
|
4400
4400
|
},
|
|
4401
4401
|
// Needed by the `Canvas` renderer for interactivity
|
|
4402
4402
|
_containsPoint: function(t) {
|
|
4403
|
-
var e = !1, i, n, s, a,
|
|
4403
|
+
var e = !1, i, n, s, a, _, b, x, T;
|
|
4404
4404
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
4405
4405
|
return !1;
|
|
4406
4406
|
for (a = 0, x = this._parts.length; a < x; a++)
|
|
4407
|
-
for (i = this._parts[a],
|
|
4408
|
-
n = i[
|
|
4407
|
+
for (i = this._parts[a], _ = 0, T = i.length, b = T - 1; _ < T; b = _++)
|
|
4408
|
+
n = i[_], s = i[b], n.y > t.y != s.y > t.y && t.x < (s.x - n.x) * (t.y - n.y) / (s.y - n.y) + n.x && (e = !e);
|
|
4409
4409
|
return e || le.prototype._containsPoint.call(this, t, !0);
|
|
4410
4410
|
}
|
|
4411
4411
|
});
|
|
4412
|
-
function
|
|
4412
|
+
function Ys(t, e) {
|
|
4413
4413
|
return new Fe(t, e);
|
|
4414
4414
|
}
|
|
4415
4415
|
var ue = ae.extend({
|
|
@@ -4468,7 +4468,7 @@ function Ta() {
|
|
|
4468
4468
|
// @method addData( <GeoJSON> data ): this
|
|
4469
4469
|
// Adds a GeoJSON object to the layer.
|
|
4470
4470
|
addData: function(t) {
|
|
4471
|
-
var e =
|
|
4471
|
+
var e = $(t) ? t : t.features, i, n, s;
|
|
4472
4472
|
if (e) {
|
|
4473
4473
|
for (i = 0, n = e.length; i < n; i++)
|
|
4474
4474
|
s = e[i], (s.geometries || s.geometry || s.features || s.coordinates) && this.addData(s);
|
|
@@ -4477,8 +4477,8 @@ function Ta() {
|
|
|
4477
4477
|
var a = this.options;
|
|
4478
4478
|
if (a.filter && !a.filter(t))
|
|
4479
4479
|
return this;
|
|
4480
|
-
var
|
|
4481
|
-
return
|
|
4480
|
+
var _ = Hi(t, a);
|
|
4481
|
+
return _ ? (_.feature = Ui(t), _.defaultOptions = _.options, this.resetStyle(_), a.onEachFeature && a.onEachFeature(t, _), this.addLayer(_)) : this;
|
|
4482
4482
|
},
|
|
4483
4483
|
// @method resetStyle( <Path> layer? ): this
|
|
4484
4484
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
|
@@ -4498,22 +4498,22 @@ function Ta() {
|
|
|
4498
4498
|
}
|
|
4499
4499
|
});
|
|
4500
4500
|
function Hi(t, e) {
|
|
4501
|
-
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, s = [], a = e && e.pointToLayer,
|
|
4501
|
+
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, s = [], a = e && e.pointToLayer, _ = e && e.coordsToLatLng || Vn, b, x, T, O;
|
|
4502
4502
|
if (!n && !i)
|
|
4503
4503
|
return null;
|
|
4504
4504
|
switch (i.type) {
|
|
4505
4505
|
case "Point":
|
|
4506
|
-
return b =
|
|
4506
|
+
return b = _(n), Po(a, t, b, e);
|
|
4507
4507
|
case "MultiPoint":
|
|
4508
4508
|
for (T = 0, O = n.length; T < O; T++)
|
|
4509
|
-
b =
|
|
4509
|
+
b = _(n[T]), s.push(Po(a, t, b, e));
|
|
4510
4510
|
return new ae(s);
|
|
4511
4511
|
case "LineString":
|
|
4512
4512
|
case "MultiLineString":
|
|
4513
|
-
return x = Vi(n, i.type === "LineString" ? 0 : 1,
|
|
4513
|
+
return x = Vi(n, i.type === "LineString" ? 0 : 1, _), new le(x, e);
|
|
4514
4514
|
case "Polygon":
|
|
4515
4515
|
case "MultiPolygon":
|
|
4516
|
-
return x = Vi(n, i.type === "Polygon" ? 1 : 2,
|
|
4516
|
+
return x = Vi(n, i.type === "Polygon" ? 1 : 2, _), new Fe(x, e);
|
|
4517
4517
|
case "GeometryCollection":
|
|
4518
4518
|
for (T = 0, O = i.geometries.length; T < O; T++) {
|
|
4519
4519
|
var F = Hi({
|
|
@@ -4537,20 +4537,20 @@ function Ta() {
|
|
|
4537
4537
|
function Po(t, e, i, n) {
|
|
4538
4538
|
return t ? t(e, i) : new Ni(i, n && n.markersInheritOptions && n);
|
|
4539
4539
|
}
|
|
4540
|
-
function
|
|
4540
|
+
function Vn(t) {
|
|
4541
4541
|
return new et(t[1], t[0], t[2]);
|
|
4542
4542
|
}
|
|
4543
4543
|
function Vi(t, e, i) {
|
|
4544
|
-
for (var n = [], s = 0, a = t.length,
|
|
4545
|
-
|
|
4544
|
+
for (var n = [], s = 0, a = t.length, _; s < a; s++)
|
|
4545
|
+
_ = e ? Vi(t[s], e - 1, i) : (i || Vn)(t[s]), n.push(_);
|
|
4546
4546
|
return n;
|
|
4547
4547
|
}
|
|
4548
|
-
function
|
|
4548
|
+
function Fn(t, e) {
|
|
4549
4549
|
return t = q(t), t.alt !== void 0 ? [k(t.lng, e), k(t.lat, e), k(t.alt, e)] : [k(t.lng, e), k(t.lat, e)];
|
|
4550
4550
|
}
|
|
4551
4551
|
function Fi(t, e, i, n) {
|
|
4552
|
-
for (var s = [], a = 0,
|
|
4553
|
-
s.push(e ? Fi(t[a], Ft(t[a]) ? 0 : e - 1, i, n) :
|
|
4552
|
+
for (var s = [], a = 0, _ = t.length; a < _; a++)
|
|
4553
|
+
s.push(e ? Fi(t[a], Ft(t[a]) ? 0 : e - 1, i, n) : Fn(t[a], n));
|
|
4554
4554
|
return !e && i && s.length > 0 && s.push(s[0].slice()), s;
|
|
4555
4555
|
}
|
|
4556
4556
|
function Ue(t, e) {
|
|
@@ -4563,15 +4563,15 @@ function Ta() {
|
|
|
4563
4563
|
geometry: t
|
|
4564
4564
|
};
|
|
4565
4565
|
}
|
|
4566
|
-
var
|
|
4566
|
+
var Un = {
|
|
4567
4567
|
toGeoJSON: function(t) {
|
|
4568
4568
|
return Ue(this, {
|
|
4569
4569
|
type: "Point",
|
|
4570
|
-
coordinates:
|
|
4570
|
+
coordinates: Fn(this.getLatLng(), t)
|
|
4571
4571
|
});
|
|
4572
4572
|
}
|
|
4573
4573
|
};
|
|
4574
|
-
Ni.include(
|
|
4574
|
+
Ni.include(Un), Hn.include(Un), Ri.include(Un), le.include({
|
|
4575
4575
|
toGeoJSON: function(t) {
|
|
4576
4576
|
var e = !Ft(this._latlngs), i = Fi(this._latlngs, e ? 1 : 0, !1, t);
|
|
4577
4577
|
return Ue(this, {
|
|
@@ -4611,8 +4611,8 @@ function Ta() {
|
|
|
4611
4611
|
if (i)
|
|
4612
4612
|
n.push(a.geometry);
|
|
4613
4613
|
else {
|
|
4614
|
-
var
|
|
4615
|
-
|
|
4614
|
+
var _ = Ui(a);
|
|
4615
|
+
_.type === "FeatureCollection" ? n.push.apply(n, _.features) : n.push(_);
|
|
4616
4616
|
}
|
|
4617
4617
|
}
|
|
4618
4618
|
}), i ? Ue(this, {
|
|
@@ -4627,7 +4627,7 @@ function Ta() {
|
|
|
4627
4627
|
function xo(t, e) {
|
|
4628
4628
|
return new ue(t, e);
|
|
4629
4629
|
}
|
|
4630
|
-
var
|
|
4630
|
+
var Js = xo, Gi = jt.extend({
|
|
4631
4631
|
// @section
|
|
4632
4632
|
// @aka ImageOverlay options
|
|
4633
4633
|
options: {
|
|
@@ -4662,7 +4662,7 @@ function Ta() {
|
|
|
4662
4662
|
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (Y(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
|
|
4663
4663
|
},
|
|
4664
4664
|
onRemove: function() {
|
|
4665
|
-
|
|
4665
|
+
_t(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
|
|
4666
4666
|
},
|
|
4667
4667
|
// @method setOpacity(opacity: Number): this
|
|
4668
4668
|
// Sets the opacity of the overlay.
|
|
@@ -4750,7 +4750,7 @@ function Ta() {
|
|
|
4750
4750
|
getCenter: function() {
|
|
4751
4751
|
return this._bounds.getCenter();
|
|
4752
4752
|
}
|
|
4753
|
-
}),
|
|
4753
|
+
}), Xs = function(t, e, i) {
|
|
4754
4754
|
return new Gi(t, e, i);
|
|
4755
4755
|
}, Co = Gi.extend({
|
|
4756
4756
|
// @section
|
|
@@ -4782,17 +4782,17 @@ function Ta() {
|
|
|
4782
4782
|
this._url = i.length > 0 ? n : [e.src];
|
|
4783
4783
|
return;
|
|
4784
4784
|
}
|
|
4785
|
-
|
|
4785
|
+
$(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(e.style, "objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop, e.muted = !!this.options.muted, e.playsInline = !!this.options.playsInline;
|
|
4786
4786
|
for (var a = 0; a < this._url.length; a++) {
|
|
4787
|
-
var
|
|
4788
|
-
|
|
4787
|
+
var _ = rt("source");
|
|
4788
|
+
_.src = this._url[a], e.appendChild(_);
|
|
4789
4789
|
}
|
|
4790
4790
|
}
|
|
4791
4791
|
// @method getElement(): HTMLVideoElement
|
|
4792
4792
|
// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
|
|
4793
4793
|
// used by this overlay.
|
|
4794
4794
|
});
|
|
4795
|
-
function
|
|
4795
|
+
function Qs(t, e, i) {
|
|
4796
4796
|
return new Co(t, e, i);
|
|
4797
4797
|
}
|
|
4798
4798
|
var To = Gi.extend({
|
|
@@ -4804,7 +4804,7 @@ function Ta() {
|
|
|
4804
4804
|
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
|
|
4805
4805
|
// used by this overlay.
|
|
4806
4806
|
});
|
|
4807
|
-
function
|
|
4807
|
+
function tr(t, e, i) {
|
|
4808
4808
|
return new To(t, e, i);
|
|
4809
4809
|
}
|
|
4810
4810
|
var ie = jt.extend({
|
|
@@ -4829,7 +4829,7 @@ function Ta() {
|
|
|
4829
4829
|
content: ""
|
|
4830
4830
|
},
|
|
4831
4831
|
initialize: function(t, e) {
|
|
4832
|
-
t && (t instanceof et ||
|
|
4832
|
+
t && (t instanceof et || $(t)) ? (this._latlng = q(t), C(this, e)) : (C(this, t), this._source = e), this.options.content && (this._content = this.options.content);
|
|
4833
4833
|
},
|
|
4834
4834
|
// @method openOn(map: Map): this
|
|
4835
4835
|
// Adds the overlay to the map.
|
|
@@ -4855,7 +4855,7 @@ function Ta() {
|
|
|
4855
4855
|
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && Vt(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && Vt(this._container, 1), this.bringToFront(), this.options.interactive && (Y(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
|
|
4856
4856
|
},
|
|
4857
4857
|
onRemove: function(t) {
|
|
4858
|
-
t._fadeAnimated ? (Vt(this._container, 0), this._removeTimeout = setTimeout(r(
|
|
4858
|
+
t._fadeAnimated ? (Vt(this._container, 0), this._removeTimeout = setTimeout(r(_t, void 0, this._container), 200)) : _t(this._container), this.options.interactive && (vt(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
|
|
4859
4859
|
},
|
|
4860
4860
|
// @namespace DivOverlay
|
|
4861
4861
|
// @method getLatLng: LatLng
|
|
@@ -5042,10 +5042,10 @@ function Ta() {
|
|
|
5042
5042
|
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, ie.prototype.openOn.call(this, t);
|
|
5043
5043
|
},
|
|
5044
5044
|
onAdd: function(t) {
|
|
5045
|
-
ie.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof
|
|
5045
|
+
ie.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof _e || this._source.on("preclick", Te));
|
|
5046
5046
|
},
|
|
5047
5047
|
onRemove: function(t) {
|
|
5048
|
-
ie.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof
|
|
5048
|
+
ie.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof _e || this._source.off("preclick", Te));
|
|
5049
5049
|
},
|
|
5050
5050
|
getEvents: function() {
|
|
5051
5051
|
var t = ie.prototype.getEvents.call(this);
|
|
@@ -5056,7 +5056,7 @@ function Ta() {
|
|
|
5056
5056
|
"div",
|
|
5057
5057
|
t + " " + (this.options.className || "") + " leaflet-zoom-animated"
|
|
5058
5058
|
), i = this._wrapper = rt("div", t + "-content-wrapper", e);
|
|
5059
|
-
if (this._contentNode = rt("div", t + "-content", i), oi(e),
|
|
5059
|
+
if (this._contentNode = rt("div", t + "-content", i), oi(e), In(this._contentNode), j(e, "contextmenu", Te), this._tipContainer = rt("div", t + "-tip-container", e), this._tip = rt("div", t + "-tip", this._tipContainer), this.options.closeButton) {
|
|
5060
5060
|
var n = this._closeButton = rt("a", t + "-close-button", e);
|
|
5061
5061
|
n.setAttribute("role", "button"), n.setAttribute("aria-label", "Close popup"), n.href = "#close", n.innerHTML = '<span aria-hidden="true">×</span>', j(n, "click", function(s) {
|
|
5062
5062
|
Et(s), this.close();
|
|
@@ -5083,14 +5083,14 @@ function Ta() {
|
|
|
5083
5083
|
}
|
|
5084
5084
|
var t = this._map, e = parseInt(ti(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, s = new G(this._containerLeft, -i - this._containerBottom);
|
|
5085
5085
|
s._add(Ce(this._container));
|
|
5086
|
-
var a = t.layerPointToContainerPoint(s),
|
|
5086
|
+
var a = t.layerPointToContainerPoint(s), _ = N(this.options.autoPanPadding), b = N(this.options.autoPanPaddingTopLeft || _), x = N(this.options.autoPanPaddingBottomRight || _), T = t.getSize(), O = 0, F = 0;
|
|
5087
5087
|
a.x + n + x.x > T.x && (O = a.x + n - T.x + x.x), a.x - O - b.x < 0 && (O = a.x - b.x), a.y + i + x.y > T.y && (F = a.y + i - T.y + x.y), a.y - F - b.y < 0 && (F = a.y - b.y), (O || F) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([O, F]));
|
|
5088
5088
|
}
|
|
5089
5089
|
},
|
|
5090
5090
|
_getAnchor: function() {
|
|
5091
5091
|
return N(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
|
|
5092
5092
|
}
|
|
5093
|
-
}),
|
|
5093
|
+
}), er = function(t, e) {
|
|
5094
5094
|
return new Wi(t, e);
|
|
5095
5095
|
};
|
|
5096
5096
|
it.mergeOptions({
|
|
@@ -5166,7 +5166,7 @@ function Ta() {
|
|
|
5166
5166
|
if (!(!this._popup || !this._map)) {
|
|
5167
5167
|
Me(t);
|
|
5168
5168
|
var e = t.layer || t.target;
|
|
5169
|
-
if (this._popup._source === e && !(e instanceof
|
|
5169
|
+
if (this._popup._source === e && !(e instanceof _e)) {
|
|
5170
5170
|
this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(t.latlng);
|
|
5171
5171
|
return;
|
|
5172
5172
|
}
|
|
@@ -5225,8 +5225,8 @@ function Ta() {
|
|
|
5225
5225
|
_adjustPan: function() {
|
|
5226
5226
|
},
|
|
5227
5227
|
_setPosition: function(t) {
|
|
5228
|
-
var e, i, n = this._map, s = this._container, a = n.latLngToContainerPoint(n.getCenter()),
|
|
5229
|
-
b === "top" ? (e = x / 2, i = T) : b === "bottom" ? (e = x / 2, i = 0) : b === "center" ? (e = x / 2, i = T / 2) : b === "right" ? (e = 0, i = T / 2) : b === "left" ? (e = x, i = T / 2) :
|
|
5228
|
+
var e, i, n = this._map, s = this._container, a = n.latLngToContainerPoint(n.getCenter()), _ = n.layerPointToContainerPoint(t), b = this.options.direction, x = s.offsetWidth, T = s.offsetHeight, O = N(this.options.offset), F = this._getAnchor();
|
|
5229
|
+
b === "top" ? (e = x / 2, i = T) : b === "bottom" ? (e = x / 2, i = 0) : b === "center" ? (e = x / 2, i = T / 2) : b === "right" ? (e = 0, i = T / 2) : b === "left" ? (e = x, i = T / 2) : _.x < a.x ? (b = "right", e = 0, i = T / 2) : (b = "left", e = x + (O.x + F.x) * 2, i = T / 2), t = t.subtract(N(e, i, !0)).add(O).add(F), vt(s, "leaflet-tooltip-right"), vt(s, "leaflet-tooltip-left"), vt(s, "leaflet-tooltip-top"), vt(s, "leaflet-tooltip-bottom"), Y(s, "leaflet-tooltip-" + b), bt(s, t);
|
|
5230
5230
|
},
|
|
5231
5231
|
_updatePosition: function() {
|
|
5232
5232
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
|
@@ -5242,7 +5242,7 @@ function Ta() {
|
|
|
5242
5242
|
_getAnchor: function() {
|
|
5243
5243
|
return N(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
|
|
5244
5244
|
}
|
|
5245
|
-
}),
|
|
5245
|
+
}), ir = function(t, e) {
|
|
5246
5246
|
return new $i(t, e);
|
|
5247
5247
|
};
|
|
5248
5248
|
it.include({
|
|
@@ -5372,7 +5372,7 @@ function Ta() {
|
|
|
5372
5372
|
return null;
|
|
5373
5373
|
}
|
|
5374
5374
|
});
|
|
5375
|
-
function
|
|
5375
|
+
function nr(t) {
|
|
5376
5376
|
return new Mo(t);
|
|
5377
5377
|
}
|
|
5378
5378
|
Ve.Default = ai;
|
|
@@ -5447,7 +5447,7 @@ function Ta() {
|
|
|
5447
5447
|
t._addZoomLimit(this);
|
|
5448
5448
|
},
|
|
5449
5449
|
onRemove: function(t) {
|
|
5450
|
-
this._removeAllTiles(),
|
|
5450
|
+
this._removeAllTiles(), _t(this._container), t._removeZoomLimit(this), this._container = null, this._tileZoom = void 0;
|
|
5451
5451
|
},
|
|
5452
5452
|
// @method bringToFront: this
|
|
5453
5453
|
// Brings the tile layer to the top of all tile layers.
|
|
@@ -5544,7 +5544,7 @@ function Ta() {
|
|
|
5544
5544
|
var t = this._tileZoom, e = this.options.maxZoom;
|
|
5545
5545
|
if (t !== void 0) {
|
|
5546
5546
|
for (var i in this._levels)
|
|
5547
|
-
i = Number(i), this._levels[i].el.children.length || i === t ? (this._levels[i].el.style.zIndex = e - Math.abs(t - i), this._onUpdateLevel(i)) : (
|
|
5547
|
+
i = Number(i), this._levels[i].el.children.length || i === t ? (this._levels[i].el.style.zIndex = e - Math.abs(t - i), this._onUpdateLevel(i)) : (_t(this._levels[i].el), this._removeTilesAtZoom(i), this._onRemoveLevel(i), delete this._levels[i]);
|
|
5548
5548
|
var n = this._levels[t], s = this._map;
|
|
5549
5549
|
return n || (n = this._levels[t] = {}, n.el = rt("div", "leaflet-tile-container leaflet-zoom-animated", this._container), n.el.style.zIndex = e, n.origin = s.project(s.unproject(s.getPixelOrigin()), t).round(), n.zoom = t, this._setZoomTransform(n, s.getCenter(), s.getZoom()), g(n.el.offsetWidth), this._onCreateLevel(n)), this._level = n, n;
|
|
5550
5550
|
}
|
|
@@ -5580,21 +5580,21 @@ function Ta() {
|
|
|
5580
5580
|
},
|
|
5581
5581
|
_invalidateAll: function() {
|
|
5582
5582
|
for (var t in this._levels)
|
|
5583
|
-
|
|
5583
|
+
_t(this._levels[t].el), this._onRemoveLevel(Number(t)), delete this._levels[t];
|
|
5584
5584
|
this._removeAllTiles(), this._tileZoom = void 0;
|
|
5585
5585
|
},
|
|
5586
5586
|
_retainParent: function(t, e, i, n) {
|
|
5587
|
-
var s = Math.floor(t / 2), a = Math.floor(e / 2),
|
|
5588
|
-
b.z = +
|
|
5587
|
+
var s = Math.floor(t / 2), a = Math.floor(e / 2), _ = i - 1, b = new G(+s, +a);
|
|
5588
|
+
b.z = +_;
|
|
5589
5589
|
var x = this._tileCoordsToKey(b), T = this._tiles[x];
|
|
5590
|
-
return T && T.active ? (T.retain = !0, !0) : (T && T.loaded && (T.retain = !0),
|
|
5590
|
+
return T && T.active ? (T.retain = !0, !0) : (T && T.loaded && (T.retain = !0), _ > n ? this._retainParent(s, a, _, n) : !1);
|
|
5591
5591
|
},
|
|
5592
5592
|
_retainChildren: function(t, e, i, n) {
|
|
5593
5593
|
for (var s = 2 * t; s < 2 * t + 2; s++)
|
|
5594
5594
|
for (var a = 2 * e; a < 2 * e + 2; a++) {
|
|
5595
|
-
var
|
|
5596
|
-
|
|
5597
|
-
var b = this._tileCoordsToKey(
|
|
5595
|
+
var _ = new G(s, a);
|
|
5596
|
+
_.z = i + 1;
|
|
5597
|
+
var b = this._tileCoordsToKey(_), x = this._tiles[b];
|
|
5598
5598
|
if (x && x.active) {
|
|
5599
5599
|
x.retain = !0;
|
|
5600
5600
|
continue;
|
|
@@ -5650,7 +5650,7 @@ function Ta() {
|
|
|
5650
5650
|
if (e) {
|
|
5651
5651
|
var i = this._clampZoom(e.getZoom());
|
|
5652
5652
|
if (t === void 0 && (t = e.getCenter()), this._tileZoom !== void 0) {
|
|
5653
|
-
var n = this._getTiledPixelBounds(t), s = this._pxBoundsToTileRange(n), a = s.getCenter(),
|
|
5653
|
+
var n = this._getTiledPixelBounds(t), s = this._pxBoundsToTileRange(n), a = s.getCenter(), _ = [], b = this.options.keepBuffer, x = new J(
|
|
5654
5654
|
s.getBottomLeft().subtract([b, -b]),
|
|
5655
5655
|
s.getTopRight().add([b, -b])
|
|
5656
5656
|
);
|
|
@@ -5669,16 +5669,16 @@ function Ta() {
|
|
|
5669
5669
|
var Zt = new G(X, F);
|
|
5670
5670
|
if (Zt.z = this._tileZoom, !!this._isValidTile(Zt)) {
|
|
5671
5671
|
var St = this._tiles[this._tileCoordsToKey(Zt)];
|
|
5672
|
-
St ? St.current = !0 :
|
|
5672
|
+
St ? St.current = !0 : _.push(Zt);
|
|
5673
5673
|
}
|
|
5674
5674
|
}
|
|
5675
|
-
if (
|
|
5675
|
+
if (_.sort(function(Dt, We) {
|
|
5676
5676
|
return Dt.distanceTo(a) - We.distanceTo(a);
|
|
5677
|
-
}),
|
|
5677
|
+
}), _.length !== 0) {
|
|
5678
5678
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
5679
5679
|
var Ut = document.createDocumentFragment();
|
|
5680
|
-
for (X = 0; X <
|
|
5681
|
-
this._addTile(
|
|
5680
|
+
for (X = 0; X < _.length; X++)
|
|
5681
|
+
this._addTile(_[X], Ut);
|
|
5682
5682
|
this._level.el.appendChild(Ut);
|
|
5683
5683
|
}
|
|
5684
5684
|
}
|
|
@@ -5700,8 +5700,8 @@ function Ta() {
|
|
|
5700
5700
|
return this._tileCoordsToBounds(this._keyToTileCoords(t));
|
|
5701
5701
|
},
|
|
5702
5702
|
_tileCoordsToNwSe: function(t) {
|
|
5703
|
-
var e = this._map, i = this.getTileSize(), n = t.scaleBy(i), s = n.add(i), a = e.unproject(n, t.z),
|
|
5704
|
-
return [a,
|
|
5703
|
+
var e = this._map, i = this.getTileSize(), n = t.scaleBy(i), s = n.add(i), a = e.unproject(n, t.z), _ = e.unproject(s, t.z);
|
|
5704
|
+
return [a, _];
|
|
5705
5705
|
},
|
|
5706
5706
|
// converts tile coordinates to its geographical bounds
|
|
5707
5707
|
_tileCoordsToBounds: function(t) {
|
|
@@ -5719,7 +5719,7 @@ function Ta() {
|
|
|
5719
5719
|
},
|
|
5720
5720
|
_removeTile: function(t) {
|
|
5721
5721
|
var e = this._tiles[t];
|
|
5722
|
-
e && (
|
|
5722
|
+
e && (_t(e.el), delete this._tiles[t], this.fire("tileunload", {
|
|
5723
5723
|
tile: e.el,
|
|
5724
5724
|
coords: this._keyToTileCoords(t)
|
|
5725
5725
|
}));
|
|
@@ -5776,7 +5776,7 @@ function Ta() {
|
|
|
5776
5776
|
return !0;
|
|
5777
5777
|
}
|
|
5778
5778
|
});
|
|
5779
|
-
function
|
|
5779
|
+
function or(t) {
|
|
5780
5780
|
return new li(t);
|
|
5781
5781
|
}
|
|
5782
5782
|
var Ge = li.extend({
|
|
@@ -5883,7 +5883,7 @@ function Ta() {
|
|
|
5883
5883
|
if (this._tiles[t].coords.z !== this._tileZoom && (e = this._tiles[t].el, e.onload = g, e.onerror = g, !e.complete)) {
|
|
5884
5884
|
e.src = ot;
|
|
5885
5885
|
var i = this._tiles[t].coords;
|
|
5886
|
-
|
|
5886
|
+
_t(e), delete this._tiles[t], this.fire("tileabort", {
|
|
5887
5887
|
tile: e,
|
|
5888
5888
|
coords: i
|
|
5889
5889
|
});
|
|
@@ -5951,8 +5951,8 @@ function Ta() {
|
|
|
5951
5951
|
this.wmsParams[e] = this._crs.code, Ge.prototype.onAdd.call(this, t);
|
|
5952
5952
|
},
|
|
5953
5953
|
getTileUrl: function(t) {
|
|
5954
|
-
var e = this._tileCoordsToNwSe(t), i = this._crs, n = Lt(i.project(e[0]), i.project(e[1])), s = n.min, a = n.max,
|
|
5955
|
-
return b + H(this.wmsParams, b, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") +
|
|
5954
|
+
var e = this._tileCoordsToNwSe(t), i = this._crs, n = Lt(i.project(e[0]), i.project(e[1])), s = n.min, a = n.max, _ = (this._wmsVersion >= 1.3 && this._crs === ko ? [s.y, s.x, a.y, a.x] : [s.x, s.y, a.x, a.y]).join(","), b = Ge.prototype.getTileUrl.call(this, t);
|
|
5955
|
+
return b + H(this.wmsParams, b, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + _;
|
|
5956
5956
|
},
|
|
5957
5957
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
5958
5958
|
// Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
|
|
@@ -5960,10 +5960,10 @@ function Ta() {
|
|
|
5960
5960
|
return v(this.wmsParams, t), e || this.redraw(), this;
|
|
5961
5961
|
}
|
|
5962
5962
|
});
|
|
5963
|
-
function
|
|
5963
|
+
function sr(t, e) {
|
|
5964
5964
|
return new Ao(t, e);
|
|
5965
5965
|
}
|
|
5966
|
-
Ge.WMS = Ao, So.wms =
|
|
5966
|
+
Ge.WMS = Ao, So.wms = sr;
|
|
5967
5967
|
var he = jt.extend({
|
|
5968
5968
|
// @section
|
|
5969
5969
|
// @aka Renderer options
|
|
@@ -6041,7 +6041,7 @@ function Ta() {
|
|
|
6041
6041
|
j(t, "mousemove", this._onMouseMove, this), j(t, "click dblclick mousedown mouseup contextmenu", this._onClick, this), j(t, "mouseout", this._handleMouseOut, this), t._leaflet_disable_events = !0, this._ctx = t.getContext("2d");
|
|
6042
6042
|
},
|
|
6043
6043
|
_destroyContainer: function() {
|
|
6044
|
-
Q(this._redrawRequest), delete this._ctx,
|
|
6044
|
+
Q(this._redrawRequest), delete this._ctx, _t(this._container), dt(this._container), delete this._container;
|
|
6045
6045
|
},
|
|
6046
6046
|
_updatePaths: function() {
|
|
6047
6047
|
if (!this._postponeUpdatePaths) {
|
|
@@ -6129,11 +6129,11 @@ function Ta() {
|
|
|
6129
6129
|
},
|
|
6130
6130
|
_updatePoly: function(t, e) {
|
|
6131
6131
|
if (this._drawing) {
|
|
6132
|
-
var i, n, s, a,
|
|
6132
|
+
var i, n, s, a, _ = t._parts, b = _.length, x = this._ctx;
|
|
6133
6133
|
if (b) {
|
|
6134
6134
|
for (x.beginPath(), i = 0; i < b; i++) {
|
|
6135
|
-
for (n = 0, s =
|
|
6136
|
-
a =
|
|
6135
|
+
for (n = 0, s = _[i].length; n < s; n++)
|
|
6136
|
+
a = _[i][n], x[n ? "lineTo" : "moveTo"](a.x, a.y);
|
|
6137
6137
|
e && x.closePath();
|
|
6138
6138
|
}
|
|
6139
6139
|
this._fillStroke(x, t);
|
|
@@ -6215,7 +6215,7 @@ function Ta() {
|
|
|
6215
6215
|
return function(t) {
|
|
6216
6216
|
return document.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">');
|
|
6217
6217
|
};
|
|
6218
|
-
}(),
|
|
6218
|
+
}(), rr = {
|
|
6219
6219
|
_initContainer: function() {
|
|
6220
6220
|
this._container = rt("div", "leaflet-vml-container");
|
|
6221
6221
|
},
|
|
@@ -6232,11 +6232,11 @@ function Ta() {
|
|
|
6232
6232
|
},
|
|
6233
6233
|
_removePath: function(t) {
|
|
6234
6234
|
var e = t._container;
|
|
6235
|
-
|
|
6235
|
+
_t(e), t.removeInteractiveTarget(e), delete this._layers[c(t)];
|
|
6236
6236
|
},
|
|
6237
6237
|
_updateStyle: function(t) {
|
|
6238
6238
|
var e = t._stroke, i = t._fill, n = t.options, s = t._container;
|
|
6239
|
-
s.stroked = !!n.stroke, s.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = ui("stroke")), s.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle =
|
|
6239
|
+
s.stroked = !!n.stroke, s.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = ui("stroke")), s.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = $(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = n.lineCap.replace("butt", "flat"), e.joinstyle = n.lineJoin) : e && (s.removeChild(e), t._stroke = null), n.fill ? (i || (i = t._fill = ui("fill")), s.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (s.removeChild(i), t._fill = null);
|
|
6240
6240
|
},
|
|
6241
6241
|
_updateCircle: function(t) {
|
|
6242
6242
|
var e = t._point.round(), i = Math.round(t._radius), n = Math.round(t._radiusY || i);
|
|
@@ -6256,7 +6256,7 @@ function Ta() {
|
|
|
6256
6256
|
this._container = qi("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = qi("g"), this._container.appendChild(this._rootGroup);
|
|
6257
6257
|
},
|
|
6258
6258
|
_destroyContainer: function() {
|
|
6259
|
-
|
|
6259
|
+
_t(this._container), dt(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
|
6260
6260
|
},
|
|
6261
6261
|
_update: function() {
|
|
6262
6262
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
@@ -6274,7 +6274,7 @@ function Ta() {
|
|
|
6274
6274
|
this._rootGroup || this._initContainer(), this._rootGroup.appendChild(t._path), t.addInteractiveTarget(t._path);
|
|
6275
6275
|
},
|
|
6276
6276
|
_removePath: function(t) {
|
|
6277
|
-
|
|
6277
|
+
_t(t._path), t.removeInteractiveTarget(t._path), delete this._layers[c(t)];
|
|
6278
6278
|
},
|
|
6279
6279
|
_updatePath: function(t) {
|
|
6280
6280
|
t._project(), t._update();
|
|
@@ -6301,7 +6301,7 @@ function Ta() {
|
|
|
6301
6301
|
Re(t._path);
|
|
6302
6302
|
}
|
|
6303
6303
|
});
|
|
6304
|
-
D.vml && hi.include(
|
|
6304
|
+
D.vml && hi.include(rr);
|
|
6305
6305
|
function Eo(t) {
|
|
6306
6306
|
return D.svg || D.vml ? new hi(t) : null;
|
|
6307
6307
|
}
|
|
@@ -6342,10 +6342,10 @@ function Ta() {
|
|
|
6342
6342
|
];
|
|
6343
6343
|
}
|
|
6344
6344
|
});
|
|
6345
|
-
function
|
|
6345
|
+
function ar(t, e) {
|
|
6346
6346
|
return new Bo(t, e);
|
|
6347
6347
|
}
|
|
6348
|
-
hi.create = qi, hi.pointsToPath = vi, ue.geometryToLayer = Hi, ue.coordsToLatLng =
|
|
6348
|
+
hi.create = qi, hi.pointsToPath = vi, ue.geometryToLayer = Hi, ue.coordsToLatLng = Vn, ue.coordsToLatLngs = Vi, ue.latLngToCoords = Fn, ue.latLngsToCoords = Fi, ue.getFeature = Ue, ue.asFeature = Ui, it.mergeOptions({
|
|
6349
6349
|
// @option boxZoom: Boolean = true
|
|
6350
6350
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
6351
6351
|
// dragging the mouse while pressing the shift key.
|
|
@@ -6365,7 +6365,7 @@ function Ta() {
|
|
|
6365
6365
|
return this._moved;
|
|
6366
6366
|
},
|
|
6367
6367
|
_destroy: function() {
|
|
6368
|
-
|
|
6368
|
+
_t(this._pane), delete this._pane;
|
|
6369
6369
|
},
|
|
6370
6370
|
_resetState: function() {
|
|
6371
6371
|
this._resetStateTimeout = 0, this._moved = !1;
|
|
@@ -6376,7 +6376,7 @@ function Ta() {
|
|
|
6376
6376
|
_onMouseDown: function(t) {
|
|
6377
6377
|
if (!t.shiftKey || t.which !== 1 && t.button !== 1)
|
|
6378
6378
|
return !1;
|
|
6379
|
-
this._clearDeferredResetState(), this._resetState(), ei(),
|
|
6379
|
+
this._clearDeferredResetState(), this._resetState(), ei(), Pn(), this._startPoint = this._map.mouseEventToContainerPoint(t), j(document, {
|
|
6380
6380
|
contextmenu: Me,
|
|
6381
6381
|
mousemove: this._onMouseMove,
|
|
6382
6382
|
mouseup: this._onMouseUp,
|
|
@@ -6389,7 +6389,7 @@ function Ta() {
|
|
|
6389
6389
|
bt(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
|
|
6390
6390
|
},
|
|
6391
6391
|
_finish: function() {
|
|
6392
|
-
this._moved && (
|
|
6392
|
+
this._moved && (_t(this._box), vt(this._container, "leaflet-crosshair")), ii(), xn(), dt(document, {
|
|
6393
6393
|
contextmenu: Me,
|
|
6394
6394
|
mousemove: this._onMouseMove,
|
|
6395
6395
|
mouseup: this._onMouseUp,
|
|
@@ -6469,7 +6469,7 @@ function Ta() {
|
|
|
6469
6469
|
addHooks: function() {
|
|
6470
6470
|
if (!this._draggable) {
|
|
6471
6471
|
var t = this._map;
|
|
6472
|
-
this._draggable = new
|
|
6472
|
+
this._draggable = new pe(t._mapPane, t._container), this._draggable.on({
|
|
6473
6473
|
dragstart: this._onDragStart,
|
|
6474
6474
|
drag: this._onDrag,
|
|
6475
6475
|
dragend: this._onDragEnd
|
|
@@ -6523,8 +6523,8 @@ function Ta() {
|
|
|
6523
6523
|
}
|
|
6524
6524
|
},
|
|
6525
6525
|
_onPreDragWrap: function() {
|
|
6526
|
-
var t = this._worldWidth, e = Math.round(t / 2), i = this._initialWorldOffset, n = this._draggable._newPos.x, s = (n - e + i) % t + e - i, a = (n + e + i) % t - e - i,
|
|
6527
|
-
this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x =
|
|
6526
|
+
var t = this._worldWidth, e = Math.round(t / 2), i = this._initialWorldOffset, n = this._draggable._newPos.x, s = (n - e + i) % t + e - i, a = (n + e + i) % t - e - i, _ = Math.abs(s + i) < Math.abs(a + i) ? s : a;
|
|
6527
|
+
this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = _;
|
|
6528
6528
|
},
|
|
6529
6529
|
_onDragEnd: function(t) {
|
|
6530
6530
|
var e = this._map, i = e.options, n = !i.inertia || t.noInertia || this._times.length < 2;
|
|
@@ -6532,11 +6532,11 @@ function Ta() {
|
|
|
6532
6532
|
e.fire("moveend");
|
|
6533
6533
|
else {
|
|
6534
6534
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
6535
|
-
var s = this._lastPos.subtract(this._positions[0]), a = (this._lastTime - this._times[0]) / 1e3,
|
|
6535
|
+
var s = this._lastPos.subtract(this._positions[0]), a = (this._lastTime - this._times[0]) / 1e3, _ = i.easeLinearity, b = s.multiplyBy(_ / a), x = b.distanceTo([0, 0]), T = Math.min(i.inertiaMaxSpeed, x), O = b.multiplyBy(T / x), F = T / (i.inertiaDeceleration * _), X = O.multiplyBy(-F / 2).round();
|
|
6536
6536
|
!X.x && !X.y ? e.fire("moveend") : (X = e._limitOffset(X, e.options.maxBounds), at(function() {
|
|
6537
6537
|
e.panBy(X, {
|
|
6538
6538
|
duration: F,
|
|
6539
|
-
easeLinearity:
|
|
6539
|
+
easeLinearity: _,
|
|
6540
6540
|
noMoveStart: !0,
|
|
6541
6541
|
animate: !0
|
|
6542
6542
|
});
|
|
@@ -6674,12 +6674,12 @@ function Ta() {
|
|
|
6674
6674
|
_performZoom: function() {
|
|
6675
6675
|
var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0;
|
|
6676
6676
|
t._stop();
|
|
6677
|
-
var n = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), s = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(n)))) / Math.LN2, a = i ? Math.ceil(s / i) * i : s,
|
|
6678
|
-
this._delta = 0, this._startTime = null,
|
|
6677
|
+
var n = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), s = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(n)))) / Math.LN2, a = i ? Math.ceil(s / i) * i : s, _ = t._limitZoom(e + (this._delta > 0 ? a : -a)) - e;
|
|
6678
|
+
this._delta = 0, this._startTime = null, _ && (t.options.scrollWheelZoom === "center" ? t.setZoom(e + _) : t.setZoomAround(this._lastMousePos, e + _));
|
|
6679
6679
|
}
|
|
6680
6680
|
});
|
|
6681
6681
|
it.addInitHook("addHandler", "scrollWheelZoom", Ro);
|
|
6682
|
-
var
|
|
6682
|
+
var lr = 600;
|
|
6683
6683
|
it.mergeOptions({
|
|
6684
6684
|
// @section Touch interaction options
|
|
6685
6685
|
// @option tapHold: Boolean
|
|
@@ -6702,7 +6702,7 @@ function Ta() {
|
|
|
6702
6702
|
var e = t.touches[0];
|
|
6703
6703
|
this._startPos = this._newPos = new G(e.clientX, e.clientY), this._holdTimeout = setTimeout(r(function() {
|
|
6704
6704
|
this._cancel(), this._isTapValid() && (j(document, "touchend", Et), j(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
|
|
6705
|
-
}, this),
|
|
6705
|
+
}, this), lr), j(document, "touchend touchcancel contextmenu", this._cancel, this), j(document, "touchmove", this._onMove, this);
|
|
6706
6706
|
}
|
|
6707
6707
|
},
|
|
6708
6708
|
_cancelClickPrevent: function t() {
|
|
@@ -6774,8 +6774,8 @@ function Ta() {
|
|
|
6774
6774
|
this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(a), this._zoom);
|
|
6775
6775
|
}
|
|
6776
6776
|
this._moved || (e._moveStart(!0, !1), this._moved = !0), Q(this._animRequest);
|
|
6777
|
-
var
|
|
6778
|
-
this._animRequest = at(
|
|
6777
|
+
var _ = r(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
|
|
6778
|
+
this._animRequest = at(_, this, !0), Et(t);
|
|
6779
6779
|
}
|
|
6780
6780
|
},
|
|
6781
6781
|
_onTouchEnd: function() {
|
|
@@ -6786,19 +6786,19 @@ function Ta() {
|
|
|
6786
6786
|
this._zooming = !1, Q(this._animRequest), dt(document, "touchmove", this._onTouchMove, this), dt(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
6787
6787
|
}
|
|
6788
6788
|
});
|
|
6789
|
-
it.addInitHook("addHandler", "touchZoom", Vo), it.BoxZoom = zo, it.DoubleClickZoom = Zo, it.Drag = Do, it.Keyboard = No, it.ScrollWheelZoom = Ro, it.TapHold = Ho, it.TouchZoom = Vo, u.Bounds = J, u.Browser = D, u.CRS = Mt, u.Canvas = Oo, u.Circle =
|
|
6790
|
-
var
|
|
6789
|
+
it.addInitHook("addHandler", "touchZoom", Vo), it.BoxZoom = zo, it.DoubleClickZoom = Zo, it.Drag = Do, it.Keyboard = No, it.ScrollWheelZoom = Ro, it.TapHold = Ho, it.TouchZoom = Vo, u.Bounds = J, u.Browser = D, u.CRS = Mt, u.Canvas = Oo, u.Circle = Hn, u.CircleMarker = Ri, u.Class = yt, u.Control = qt, u.DivIcon = Mo, u.DivOverlay = ie, u.DomEvent = Cs, u.DomUtil = Ps, u.Draggable = pe, u.Evented = re, u.FeatureGroup = ae, u.GeoJSON = ue, u.GridLayer = li, u.Handler = ee, u.Icon = Ve, u.ImageOverlay = Gi, u.LatLng = et, u.LatLngBounds = nt, u.Layer = jt, u.LayerGroup = He, u.LineUtil = Rs, u.Map = it, u.Marker = Ni, u.Mixin = Es, u.Path = _e, u.Point = G, u.PolyUtil = Bs, u.Polygon = Fe, u.Polyline = le, u.Popup = Wi, u.PosAnimation = uo, u.Projection = Hs, u.Rectangle = Bo, u.Renderer = he, u.SVG = hi, u.SVGOverlay = To, u.TileLayer = Ge, u.Tooltip = $i, u.Transformation = qe, u.Util = Tt, u.VideoOverlay = Co, u.bind = r, u.bounds = Lt, u.canvas = Io, u.circle = js, u.circleMarker = qs, u.control = si, u.divIcon = nr, u.extend = v, u.featureGroup = Gs, u.geoJSON = xo, u.geoJson = Js, u.gridLayer = or, u.icon = Ws, u.imageOverlay = Xs, u.latLng = q, u.latLngBounds = ft, u.layerGroup = Us, u.map = Ts, u.marker = $s, u.point = N, u.polygon = Ys, u.polyline = Ks, u.popup = er, u.rectangle = ar, u.setOptions = C, u.stamp = c, u.svg = Eo, u.svgOverlay = tr, u.tileLayer = So, u.tooltip = ir, u.transformation = Le, u.version = f, u.videoOverlay = Qs;
|
|
6790
|
+
var ur = window.L;
|
|
6791
6791
|
u.noConflict = function() {
|
|
6792
|
-
return window.L =
|
|
6792
|
+
return window.L = ur, this;
|
|
6793
6793
|
}, window.L = u;
|
|
6794
6794
|
});
|
|
6795
6795
|
}(fi, fi.exports)), fi.exports;
|
|
6796
6796
|
}
|
|
6797
6797
|
var Ma = Ta();
|
|
6798
6798
|
const me = /* @__PURE__ */ Kr(Ma);
|
|
6799
|
-
var
|
|
6799
|
+
var pi = { exports: {} }, Sa = pi.exports, Xo;
|
|
6800
6800
|
function Aa() {
|
|
6801
|
-
return Xo || (Xo = 1, function(
|
|
6801
|
+
return Xo || (Xo = 1, function(p, d) {
|
|
6802
6802
|
(function(u, f) {
|
|
6803
6803
|
f(d);
|
|
6804
6804
|
})(Sa, function(u) {
|
|
@@ -6876,10 +6876,10 @@ function Aa() {
|
|
|
6876
6876
|
var l = this._featureGroup, c = this._nonPointGroup, m = this.options.chunkedLoading, y = this.options.chunkInterval, g = this.options.chunkProgress, k = o.length, w = 0, S = !0, C;
|
|
6877
6877
|
if (this._map) {
|
|
6878
6878
|
var H = (/* @__PURE__ */ new Date()).getTime(), B = L.bind(function() {
|
|
6879
|
-
var
|
|
6879
|
+
var $ = (/* @__PURE__ */ new Date()).getTime();
|
|
6880
6880
|
for (this._map && this._unspiderfy && this._unspiderfy(); w < k; w++) {
|
|
6881
6881
|
if (m && w % 200 === 0) {
|
|
6882
|
-
var ht = (/* @__PURE__ */ new Date()).getTime() -
|
|
6882
|
+
var ht = (/* @__PURE__ */ new Date()).getTime() - $;
|
|
6883
6883
|
if (ht > y)
|
|
6884
6884
|
break;
|
|
6885
6885
|
}
|
|
@@ -7700,11 +7700,11 @@ function Aa() {
|
|
|
7700
7700
|
}
|
|
7701
7701
|
}), L.MarkerCluster.include({
|
|
7702
7702
|
_animationSpiderfy: function(o, r) {
|
|
7703
|
-
var l = this, c = this._group, m = c._map, y = c._featureGroup, g = this._latlng, k = m.latLngToLayerPoint(g), w = L.Path.SVG, S = L.extend({}, this._group.options.spiderLegPolylineOptions), C = S.opacity, H, B, I,
|
|
7703
|
+
var l = this, c = this._group, m = c._map, y = c._featureGroup, g = this._latlng, k = m.latLngToLayerPoint(g), w = L.Path.SVG, S = L.extend({}, this._group.options.spiderLegPolylineOptions), C = S.opacity, H, B, I, $, ht, ot;
|
|
7704
7704
|
for (C === void 0 && (C = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity), w ? (S.opacity = 0, S.className = (S.className || "") + " leaflet-cluster-spider-leg") : S.opacity = C, c._ignoreMove = !0, H = 0; H < o.length; H++)
|
|
7705
|
-
B = o[H], ot = m.layerPointToLatLng(r[H]), I = new L.Polyline([g, ot], S), m.addLayer(I), B._spiderLeg = I, w && (
|
|
7705
|
+
B = o[H], ot = m.layerPointToLatLng(r[H]), I = new L.Polyline([g, ot], S), m.addLayer(I), B._spiderLeg = I, w && ($ = I._path, ht = $.getTotalLength() + 0.1, $.style.strokeDasharray = ht, $.style.strokeDashoffset = ht), B.setZIndexOffset && B.setZIndexOffset(1e6), B.clusterHide && B.clusterHide(), y.addLayer(B), B._setPos && B._setPos(k);
|
|
7706
7706
|
for (c._forceLayout(), c._animationStart(), H = o.length - 1; H >= 0; H--)
|
|
7707
|
-
ot = m.layerPointToLatLng(r[H]), B = o[H], B._preSpiderfyLatlng = B._latlng, B.setLatLng(ot), B.clusterShow && B.clusterShow(), w && (I = B._spiderLeg,
|
|
7707
|
+
ot = m.layerPointToLatLng(r[H]), B = o[H], B._preSpiderfyLatlng = B._latlng, B.setLatLng(ot), B.clusterShow && B.clusterShow(), w && (I = B._spiderLeg, $ = I._path, $.style.strokeDashoffset = 0, I.setStyle({ opacity: C }));
|
|
7708
7708
|
this.setOpacity(0.3), c._ignoreMove = !1, setTimeout(function() {
|
|
7709
7709
|
c._animationEnd(), c.fire("spiderfied", {
|
|
7710
7710
|
cluster: l,
|
|
@@ -7717,11 +7717,11 @@ function Aa() {
|
|
|
7717
7717
|
for (l._ignoreMove = !0, l._animationStart(), this.setOpacity(1), S = g.length - 1; S >= 0; S--)
|
|
7718
7718
|
w = g[S], w._preSpiderfyLatlng && (w.closePopup(), w.setLatLng(w._preSpiderfyLatlng), delete w._preSpiderfyLatlng, I = !0, w._setPos && (w._setPos(y), I = !1), w.clusterHide && (w.clusterHide(), I = !1), I && m.removeLayer(w), k && (C = w._spiderLeg, H = C._path, B = H.getTotalLength() + 0.1, H.style.strokeDashoffset = B, C.setStyle({ opacity: 0 })));
|
|
7719
7719
|
l._ignoreMove = !1, setTimeout(function() {
|
|
7720
|
-
var
|
|
7720
|
+
var $ = 0;
|
|
7721
7721
|
for (S = g.length - 1; S >= 0; S--)
|
|
7722
|
-
w = g[S], w._spiderLeg &&
|
|
7722
|
+
w = g[S], w._spiderLeg && $++;
|
|
7723
7723
|
for (S = g.length - 1; S >= 0; S--)
|
|
7724
|
-
w = g[S], w._spiderLeg && (w.clusterShow && w.clusterShow(), w.setZIndexOffset && w.setZIndexOffset(0),
|
|
7724
|
+
w = g[S], w._spiderLeg && (w.clusterShow && w.clusterShow(), w.setZIndexOffset && w.setZIndexOffset(0), $ > 1 && m.removeLayer(w), c.removeLayer(w._spiderLeg), delete w._spiderLeg);
|
|
7725
7725
|
l._animationEnd(), l.fire("unspiderfied", {
|
|
7726
7726
|
cluster: r,
|
|
7727
7727
|
markers: g
|
|
@@ -7809,7 +7809,7 @@ function Aa() {
|
|
|
7809
7809
|
}
|
|
7810
7810
|
}), u.MarkerClusterGroup = f, u.MarkerCluster = v, Object.defineProperty(u, "__esModule", { value: !0 });
|
|
7811
7811
|
});
|
|
7812
|
-
}(
|
|
7812
|
+
}(pi, pi.exports)), pi.exports;
|
|
7813
7813
|
}
|
|
7814
7814
|
Aa();
|
|
7815
7815
|
const Oa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAAAACXBIWXMAAAsTAAALEwEAmpwYAAADTUlEQVRYhc2Xz2skRRTHP93zw2YSGzFsiMb4AzyYlfw2YpAIaiJCToKSPciCJy97iAeJ4nl3c9kVDwoiOXgR5m8Y0INIFDPkl8mIBrwkGIIQdzYzmenp6fIwVWPNpHumO8yQPHhUd3V1fT/96lV3P0MIAcD8/HwcMIGkbON01lzAAxzAy2QyLoAhhFDiScCSnpQAZofEPQngACXpTiaTcY25uTklngJs2Vp0JwIloAjkZeuop7SkeL8QYq3Dwg1mGMaMPPQAVw99Sgixlh9exH10kGpPf0eFY4Vj4g8PsXPpNcMwRpDLoCeeBXRFHGieU+WZqbJdeVfEfSDqmirLO5XtUcy8LOHzFJdpLfe6FTf5ZXmSH/f/rffNPv9Y4Pif/8rz4Xd/dAbgg5kBlt54CoBb6f16/7c3X2B8qNf3nlees9n67CXfa2O316MBvH398frxe5PXqFRr34zhJ1JBt1zIAgEWV/d8+5ffGgLgwZnLa/c36/3vv9zPx/NPNzxpUDRCATTb6GAPAPlSlVQyxlnFa7i++3cx7FTRAUYHe9g+LABwcFJmwE5eSOxCALo4wLN9VsvxYcIeCkCtabct8EWkxI/yDu98/Rs3ApJSt7LrcWN1j3e/2eXBmRsKoO0SLHy5Q/bTKSpVj9c/3+SHj8YBGLCT58I9e2+D75fGSMRMpley/PrJFAC/HwUnaCDA1N0sQghefLKW/YmYSdn1mF7JBk5mJUwSsVpQn+mzmLyzjnx9RAdwvdqd24cF/jmtcFKsUHC8oOEAONUqBydl4jGDP4/PWiu3A9DtzS+2Qk0GsPDVTuixcAW+hlcGoPXidsc8BeBqTqxw3DVFbe66psn/5VIJIP7wsCsQ6rdcWklqenFNvGgYxoydS/sWJvnhRcoDE6HEHjnawM6lfa/JwqSIVhd48iQvB4zQWJqZAHYu/VMe2kIoccMwXpVdKr+aS7MS4IUpTuv/8EKIbKtIaOJTNOZWcHHapjxXrV6+bfhBaOITeoibAPzL81YmwSygV3pKCLGlQ2jiY1L8VHpJCQVZW4AAiF4VCUB/8lMiiIcG8IGwJUQWUGt+Si25QotHAmiCSElXP4cOtdAXo4hHBtAgVFKqraq2mBNFHOA/vbl1jTBiGKsAAAAASUVORK5CYII=", Ia = /* @__PURE__ */ Rt({
|
|
@@ -7819,8 +7819,8 @@ const Oa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
7819
7819
|
rooms: {}
|
|
7820
7820
|
},
|
|
7821
7821
|
emits: ["update:modelValue", "callback"],
|
|
7822
|
-
setup(
|
|
7823
|
-
const { t: u } = Kt(), f = d, v =
|
|
7822
|
+
setup(p, { emit: d }) {
|
|
7823
|
+
const { t: u } = Kt(), f = d, v = p, { hotelMapImage: o } = Gt(ye()), r = me.Util.extend(me.CRS.Simple, {
|
|
7824
7824
|
transformation: new me.Transformation(1, 0, 1, 0)
|
|
7825
7825
|
}), l = Wt(), c = wt(() => o.value?.url), m = wt(() => o.value?.height), y = wt(() => o.value?.width), g = me.icon({
|
|
7826
7826
|
iconUrl: Oa,
|
|
@@ -7838,8 +7838,8 @@ const Oa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
7838
7838
|
minZoom: -2,
|
|
7839
7839
|
maxZoom: 3,
|
|
7840
7840
|
crs: r
|
|
7841
|
-
}),
|
|
7842
|
-
me.imageOverlay(c.value,
|
|
7841
|
+
}), $ = [[0, 0], [m.value, y.value]];
|
|
7842
|
+
me.imageOverlay(c.value, $).addTo(I);
|
|
7843
7843
|
const ht = me.markerClusterGroup({
|
|
7844
7844
|
showCoverageOnHover: !1
|
|
7845
7845
|
});
|
|
@@ -7876,11 +7876,11 @@ const Oa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
7876
7876
|
function B(I) {
|
|
7877
7877
|
S.value = I, f("callback");
|
|
7878
7878
|
}
|
|
7879
|
-
return (I,
|
|
7879
|
+
return (I, $) => $[0] || (Wo(-1, !0), ($[0] = P("div", {
|
|
7880
7880
|
ref_key: "mapContainer",
|
|
7881
7881
|
ref: l,
|
|
7882
7882
|
class: "konnectio-leaflet-map"
|
|
7883
|
-
}, null, 512)).cacheIndex = 0, Wo(1),
|
|
7883
|
+
}, null, 512)).cacheIndex = 0, Wo(1), $[0]);
|
|
7884
7884
|
}
|
|
7885
7885
|
}), Ea = /* @__PURE__ */ se(Ia, [["__scopeId", "data-v-854aed4f"]]), Ba = { style: { height: "100%", width: "100%" } }, za = /* @__PURE__ */ Rt({
|
|
7886
7886
|
__name: "MapSelector",
|
|
@@ -7889,12 +7889,12 @@ const Oa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
7889
7889
|
config: {},
|
|
7890
7890
|
callback: { type: Function }
|
|
7891
7891
|
},
|
|
7892
|
-
setup(
|
|
7893
|
-
const { t: d } = Kt(), u = Wt(NaN), f = wt(() => !isNaN(u.value)), v =
|
|
7892
|
+
setup(p) {
|
|
7893
|
+
const { t: d } = Kt(), u = Wt(NaN), f = wt(() => !isNaN(u.value)), v = p;
|
|
7894
7894
|
function o() {
|
|
7895
7895
|
f.value && (v.config.units = 1, v.config.roomId = u.value, v.callback());
|
|
7896
7896
|
}
|
|
7897
|
-
return (r, l) => (M(), lt(
|
|
7897
|
+
return (r, l) => (M(), lt(ds, {
|
|
7898
7898
|
title: h(d)("hotel.selectRoomOnMapTitle")
|
|
7899
7899
|
}, {
|
|
7900
7900
|
default: tt(() => [
|
|
@@ -7924,7 +7924,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
7924
7924
|
layout: {},
|
|
7925
7925
|
callback: { type: Function }
|
|
7926
7926
|
},
|
|
7927
|
-
setup(
|
|
7927
|
+
setup(p) {
|
|
7928
7928
|
const d = Wt(!1);
|
|
7929
7929
|
function u() {
|
|
7930
7930
|
d.value = !0;
|
|
@@ -7932,7 +7932,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
7932
7932
|
function f(V) {
|
|
7933
7933
|
o.callback(V), d.value = !1;
|
|
7934
7934
|
}
|
|
7935
|
-
const { t: v } = Kt(), o =
|
|
7935
|
+
const { t: v } = Kt(), o = p, r = Wt([]);
|
|
7936
7936
|
function l(V) {
|
|
7937
7937
|
r.value[V].config.push({
|
|
7938
7938
|
id: NaN,
|
|
@@ -7943,18 +7943,18 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
7943
7943
|
const c = wt(() => o.room.rates.map((V) => ({
|
|
7944
7944
|
label: V.name,
|
|
7945
7945
|
value: V.id
|
|
7946
|
-
}))), { hideAvailableRoomAmount: m, autoSelectRateId: y } = Gt(Ae()), { roomSelect: g } = Gt(ye()), { addToCart: k, removeFromCart: w } =
|
|
7946
|
+
}))), { hideAvailableRoomAmount: m, autoSelectRateId: y } = Gt(Ae()), { roomSelect: g } = Gt(ye()), { addToCart: k, removeFromCart: w } = us(), S = (V, st) => o.room.rates.find((ct) => ct.id === V)?.occupantRates.find((ct) => ct.index === st), C = wt(() => o.room.roomList.some((V) => V.mapImageX && V.mapImageY)), H = wt(() => o.room.rates.every((V) => V.isBreakfastIncluded === !0)), B = (V, st) => S(V, st) ? S(V, st)?.rooms : null, I = (V) => o.room.rates.length > 0 ? o.room.rates.find((st) => st.id === V)?.occupantRates.map((st) => ({
|
|
7947
7947
|
value: st.index,
|
|
7948
7948
|
price: st.totalPrice,
|
|
7949
7949
|
adults: st.adultsCount,
|
|
7950
7950
|
children: st.childrenCount,
|
|
7951
7951
|
hasBreakfast: st.hasBreakfast
|
|
7952
|
-
})) || [] : [],
|
|
7952
|
+
})) || [] : [], $ = wt(() => o.room.rates.length > 1);
|
|
7953
7953
|
function ht(V, st) {
|
|
7954
7954
|
r.value[V].config[0].id = o.room.rates.find((ct) => ct.id === st.value)?.occupantRateIndex || NaN;
|
|
7955
7955
|
}
|
|
7956
7956
|
function ot() {
|
|
7957
|
-
|
|
7957
|
+
$.value ? y.value ? r.value.push({
|
|
7958
7958
|
id: o.room.bestRateMatch || void 0,
|
|
7959
7959
|
config: [{
|
|
7960
7960
|
id: o.room.bestRateMatch && !isNaN(o.room.bestRateMatch) ? o.room.rates.find((V) => V.id === o.room.bestRateMatch)?.occupantRateIndex : NaN,
|
|
@@ -7977,7 +7977,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
7977
7977
|
}]
|
|
7978
7978
|
});
|
|
7979
7979
|
}
|
|
7980
|
-
|
|
7980
|
+
eo(() => {
|
|
7981
7981
|
ot();
|
|
7982
7982
|
});
|
|
7983
7983
|
const Ct = wt(() => JSON.parse(JSON.stringify(r.value)));
|
|
@@ -8015,7 +8015,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8015
8015
|
key: ct.id,
|
|
8016
8016
|
class: "konnectio-hotel-room"
|
|
8017
8017
|
}, [
|
|
8018
|
-
|
|
8018
|
+
$.value ? (M(), lt(en, {
|
|
8019
8019
|
key: 0,
|
|
8020
8020
|
modelValue: ct.id,
|
|
8021
8021
|
"onUpdate:modelValue": (at) => ct.id = at,
|
|
@@ -8095,8 +8095,8 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8095
8095
|
hideAddons: { type: Boolean },
|
|
8096
8096
|
callback: { type: Function }
|
|
8097
8097
|
},
|
|
8098
|
-
setup(
|
|
8099
|
-
const { t: d } = Kt(), { templateID: u, roomGroupID: f, selectionHasNoAddons: v } = Gt(ye()), { currency: o } = Gt(Ae()), { clearRoomSelection: r } = ye(), l =
|
|
8098
|
+
setup(p) {
|
|
8099
|
+
const { t: d } = Kt(), { templateID: u, roomGroupID: f, selectionHasNoAddons: v } = Gt(ye()), { currency: o } = Gt(Ae()), { clearRoomSelection: r } = ye(), l = p, c = Wt(!0), m = wt(() => {
|
|
8100
8100
|
function g(k, w) {
|
|
8101
8101
|
return c.value === !0 ? k.extraPrice > w.extraPrice ? -1 : 1 : k.extraPrice > w.extraPrice ? 1 : -1;
|
|
8102
8102
|
}
|
|
@@ -8109,7 +8109,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8109
8109
|
}
|
|
8110
8110
|
l.callback(2);
|
|
8111
8111
|
}
|
|
8112
|
-
return (g, k) => (M(), lt(
|
|
8112
|
+
return (g, k) => (M(), lt(ds, {
|
|
8113
8113
|
title: g.title,
|
|
8114
8114
|
subtitle: h(d)("booking.availability.selectATemplateRoom")
|
|
8115
8115
|
}, {
|
|
@@ -8137,7 +8137,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8137
8137
|
action: tt(() => [
|
|
8138
8138
|
P("div", null, [
|
|
8139
8139
|
Z(de, {
|
|
8140
|
-
onClickEvent: (
|
|
8140
|
+
onClickEvent: ($) => y(w),
|
|
8141
8141
|
label: `${h(d)("booking.availability.selectThisRoom")} (${h(oe)(I, h(o))})`,
|
|
8142
8142
|
"full-width": ""
|
|
8143
8143
|
}, null, 8, ["onClickEvent", "label"])
|
|
@@ -8163,8 +8163,8 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8163
8163
|
hideAddons: { type: Boolean },
|
|
8164
8164
|
callback: { type: Function }
|
|
8165
8165
|
},
|
|
8166
|
-
setup(
|
|
8167
|
-
const { t: d } = Kt(), u =
|
|
8166
|
+
setup(p) {
|
|
8167
|
+
const { t: d } = Kt(), u = p, f = wt(() => u.roomGroups.reduce(
|
|
8168
8168
|
(l, c) => l < c.extraPrice ? l : c.extraPrice,
|
|
8169
8169
|
1 / 0
|
|
8170
8170
|
)), v = Wt(!1);
|
|
@@ -8180,7 +8180,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8180
8180
|
name: l.name,
|
|
8181
8181
|
description: l.description,
|
|
8182
8182
|
gallery: l.images,
|
|
8183
|
-
layout: h(
|
|
8183
|
+
layout: h(hs).Template,
|
|
8184
8184
|
"includes-breakfast": !1,
|
|
8185
8185
|
"hide-info-button": !1,
|
|
8186
8186
|
"prices-from": f.value
|
|
@@ -8220,15 +8220,15 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8220
8220
|
images: {},
|
|
8221
8221
|
roomGroups: {}
|
|
8222
8222
|
},
|
|
8223
|
-
setup(
|
|
8224
|
-
const { t: d } = Kt(), { updateDates: u } = mi(), { display: f } =
|
|
8223
|
+
setup(p) {
|
|
8224
|
+
const { t: d } = Kt(), { updateDates: u } = mi(), { display: f } = cs(), v = p, o = Wt([]), r = wt(() => ci(v.fromDate, v.toDate) === 1);
|
|
8225
8225
|
function l() {
|
|
8226
8226
|
o.value.length > 0 ? u(o.value[0], o.value[1]) : f({
|
|
8227
8227
|
message: d("alert.error.selectDates"),
|
|
8228
8228
|
type: "error"
|
|
8229
8229
|
});
|
|
8230
8230
|
}
|
|
8231
|
-
return
|
|
8231
|
+
return eo(() => {
|
|
8232
8232
|
r.value && (o.value = [new Date(v.fromDate), new Date(v.toDate)]);
|
|
8233
8233
|
}), (c, m) => (M(), lt(nn, {
|
|
8234
8234
|
type: "template",
|
|
@@ -8236,7 +8236,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8236
8236
|
name: c.name,
|
|
8237
8237
|
description: c.description,
|
|
8238
8238
|
gallery: c.images,
|
|
8239
|
-
layout: h(
|
|
8239
|
+
layout: h(hs).Template,
|
|
8240
8240
|
"includes-breakfast": !1,
|
|
8241
8241
|
"hide-info-button": !1,
|
|
8242
8242
|
"to-date": c.toDate,
|
|
@@ -8245,7 +8245,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8245
8245
|
}, {
|
|
8246
8246
|
action: tt(() => [
|
|
8247
8247
|
P("div", ja, [
|
|
8248
|
-
Z(
|
|
8248
|
+
Z(fs, {
|
|
8249
8249
|
modelValue: o.value,
|
|
8250
8250
|
"onUpdate:modelValue": m[0] || (m[0] = (y) => o.value = y),
|
|
8251
8251
|
label: h(d)("availability.checkInOut"),
|
|
@@ -8287,15 +8287,15 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8287
8287
|
maxTime: {}
|
|
8288
8288
|
},
|
|
8289
8289
|
emits: ["update:modelValue"],
|
|
8290
|
-
setup(
|
|
8291
|
-
const u = d, f =
|
|
8290
|
+
setup(p, { emit: d }) {
|
|
8291
|
+
const u = d, f = p;
|
|
8292
8292
|
function v(r) {
|
|
8293
8293
|
u("update:modelValue", r);
|
|
8294
8294
|
}
|
|
8295
8295
|
const o = Wt(f.modelValue);
|
|
8296
8296
|
return Ji(o, (r) => {
|
|
8297
8297
|
v(r);
|
|
8298
|
-
}), (r, l) => (M(), lt(
|
|
8298
|
+
}), (r, l) => (M(), lt(fs, {
|
|
8299
8299
|
modelValue: o.value,
|
|
8300
8300
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => o.value = c),
|
|
8301
8301
|
type: "time",
|
|
@@ -8323,8 +8323,8 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8323
8323
|
placeholder: {}
|
|
8324
8324
|
},
|
|
8325
8325
|
emits: ["update:modelValue"],
|
|
8326
|
-
setup(
|
|
8327
|
-
const { t: u } = Kt(), f = d, v =
|
|
8326
|
+
setup(p, { emit: d }) {
|
|
8327
|
+
const { t: u } = Kt(), f = d, v = p;
|
|
8328
8328
|
function o(l) {
|
|
8329
8329
|
f("update:modelValue", l);
|
|
8330
8330
|
}
|
|
@@ -8379,8 +8379,8 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8379
8379
|
excludeTitle: { type: Boolean, default: !1 }
|
|
8380
8380
|
},
|
|
8381
8381
|
emits: ["update:modelValue", "update:title"],
|
|
8382
|
-
setup(
|
|
8383
|
-
const u =
|
|
8382
|
+
setup(p, { emit: d }) {
|
|
8383
|
+
const u = p, f = d, v = u.id || $o(), o = Wt(""), r = Wt(2);
|
|
8384
8384
|
function l() {
|
|
8385
8385
|
f("update:modelValue", o.value);
|
|
8386
8386
|
}
|
|
@@ -8388,7 +8388,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8388
8388
|
f("update:title", m);
|
|
8389
8389
|
});
|
|
8390
8390
|
const { t: c } = Kt();
|
|
8391
|
-
return
|
|
8391
|
+
return eo(() => {
|
|
8392
8392
|
u.modelValue && (o.value = u.modelValue), u.title && (r.value = u.title);
|
|
8393
8393
|
}), (m, y) => (M(), lt(Or, {
|
|
8394
8394
|
label: m.label,
|
|
@@ -8462,7 +8462,7 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8462
8462
|
}
|
|
8463
8463
|
}), il = /* @__PURE__ */ se(el, [["__scopeId", "data-v-9d27a2bc"]]), nl = { class: "hotel-skeleton" }, ol = { class: "hotel-skeleton-content" }, sl = { class: "hotel-skeleton-sidebar" }, rl = /* @__PURE__ */ Rt({
|
|
8464
8464
|
__name: "HotelSkeleton",
|
|
8465
|
-
setup(
|
|
8465
|
+
setup(p) {
|
|
8466
8466
|
return (d, u) => (M(), A("div", nl, [
|
|
8467
8467
|
P("div", ol, [
|
|
8468
8468
|
Z(Gr, { hotel: "" }),
|
|
@@ -8473,52 +8473,56 @@ const Va = /* @__PURE__ */ Rt({
|
|
|
8473
8473
|
])
|
|
8474
8474
|
]));
|
|
8475
8475
|
}
|
|
8476
|
-
}), al = /* @__PURE__ */ se(rl, [["__scopeId", "data-v-1bb21da4"]]), ll = { id: "booking-availability-container" }, ul = { id: "booking-availability-controls" }
|
|
8477
|
-
|
|
8476
|
+
}), al = /* @__PURE__ */ se(rl, [["__scopeId", "data-v-1bb21da4"]]), ll = { id: "booking-availability-container" }, ul = { id: "booking-availability-controls" }, hl = {
|
|
8477
|
+
key: 0,
|
|
8478
|
+
id: "konnectio-active-filter-notice",
|
|
8479
|
+
class: "konnectio-panel"
|
|
8480
|
+
};
|
|
8481
|
+
const cl = { key: 2 }, dl = { key: 0 }, fl = {
|
|
8478
8482
|
key: 0,
|
|
8479
8483
|
id: "booking-availability-packages"
|
|
8480
|
-
},
|
|
8484
|
+
}, pl = {
|
|
8481
8485
|
key: 0,
|
|
8482
8486
|
class: "konnectio-hotel-availability-title"
|
|
8483
|
-
}, _l = { id: "booking-availability-packages-wrapper" },
|
|
8487
|
+
}, _l = { id: "booking-availability-packages-wrapper" }, ml = { key: 1 }, gl = {
|
|
8484
8488
|
key: 0,
|
|
8485
8489
|
class: "konnectio-hotel-availability-title"
|
|
8486
|
-
},
|
|
8490
|
+
}, vl = { id: "konnectio-listings" }, yl = {
|
|
8487
8491
|
key: 0,
|
|
8488
8492
|
class: "konnectio-hotel-availability-title"
|
|
8489
|
-
},
|
|
8493
|
+
}, Ll = { id: "konnectio-listings" }, bl = {
|
|
8490
8494
|
key: 0,
|
|
8491
8495
|
id: "booking-availability-packages"
|
|
8492
|
-
},
|
|
8496
|
+
}, kl = { class: "konnectio-hotel-availability-title" }, wl = { id: "booking-availability-packages-wrapper" }, Pl = {
|
|
8493
8497
|
key: 3,
|
|
8494
8498
|
id: "booking-availability-no-listings",
|
|
8495
8499
|
class: "konnectio-panel"
|
|
8496
|
-
},
|
|
8500
|
+
}, xl = {
|
|
8497
8501
|
key: 1,
|
|
8498
8502
|
id: "booking-availability-no-listings",
|
|
8499
8503
|
class: "konnectio-panel"
|
|
8500
|
-
},
|
|
8504
|
+
}, Cl = {
|
|
8501
8505
|
key: 2,
|
|
8502
8506
|
id: "reservation-availability-next-dates"
|
|
8503
|
-
},
|
|
8507
|
+
}, Tl = { class: "konnectio-hotel-availability-title" }, Ml = { class: "reservation-special-offers-grid" }, Sl = ["title"], Al = { key: 0 }, Ol = {
|
|
8504
8508
|
key: 3,
|
|
8505
8509
|
class: "konnectio-panel"
|
|
8506
|
-
},
|
|
8510
|
+
}, Il = {
|
|
8507
8511
|
key: 4,
|
|
8508
8512
|
class: "konnectio-listing-loading"
|
|
8509
|
-
},
|
|
8513
|
+
}, El = { class: "konnectio-hotel-availability-warning" }, Bl = { class: "konnectio-hotel-availability-warning" }, zl = { class: "konnectio-panel" }, Zl = {
|
|
8510
8514
|
key: 0,
|
|
8511
8515
|
id: "konnectio-hotel-addons"
|
|
8512
|
-
},
|
|
8513
|
-
const
|
|
8516
|
+
}, Dl = { key: 0 };
|
|
8517
|
+
const Nl = { class: "konnectio-event-addons-price" }, Rl = { key: 1 }, Hl = { class: "konnectio-table-addons-information" }, Vl = { class: "konnectio-table-addons-option" }, Fl = {
|
|
8514
8518
|
key: 1,
|
|
8515
8519
|
id: "konnectio-hotel-addons"
|
|
8516
|
-
},
|
|
8517
|
-
const
|
|
8520
|
+
}, Ul = { class: "konnectio-table with-lines" };
|
|
8521
|
+
const Gl = { class: "konnectio-table-addons-information" }, Wl = { class: "konnectio-table-addons-option" }, $l = { class: "konnectio-panel" }, ql = { key: 0 }, jl = { key: 1 }, Kl = {
|
|
8518
8522
|
key: 1,
|
|
8519
8523
|
class: "konnectio-show-on-mobile"
|
|
8520
|
-
},
|
|
8521
|
-
const
|
|
8524
|
+
}, Yl = { class: "konnectio-split-inputs" };
|
|
8525
|
+
const Jl = /* @__PURE__ */ Rt({
|
|
8522
8526
|
name: "HotelLayout",
|
|
8523
8527
|
__name: "Hotel",
|
|
8524
8528
|
props: {
|
|
@@ -8534,8 +8538,8 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8534
8538
|
sortBy: { default: "default" },
|
|
8535
8539
|
styling: {}
|
|
8536
8540
|
},
|
|
8537
|
-
setup(
|
|
8538
|
-
const d = kr(() => import("./_-
|
|
8541
|
+
setup(p) {
|
|
8542
|
+
const d = kr(() => import("./_-80YHloJe.js")), u = p, { t: f } = Kt(), {
|
|
8539
8543
|
currentLocation: v,
|
|
8540
8544
|
templateID: o,
|
|
8541
8545
|
templateAddons: r,
|
|
@@ -8551,7 +8555,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8551
8555
|
email: H,
|
|
8552
8556
|
phone: B,
|
|
8553
8557
|
firmName: I,
|
|
8554
|
-
postal:
|
|
8558
|
+
postal: $,
|
|
8555
8559
|
city: ht,
|
|
8556
8560
|
address: ot,
|
|
8557
8561
|
country: Ct,
|
|
@@ -8605,7 +8609,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8605
8609
|
latestDepartureTime: xi,
|
|
8606
8610
|
setActiveIdFilter: Je,
|
|
8607
8611
|
clearActiveIdFilter: Ci
|
|
8608
|
-
} = Ae(), { beginCheckout: ln } =
|
|
8612
|
+
} = Ae(), { beginCheckout: ln } = us(), { display: Yt } = cs(), {
|
|
8609
8613
|
resetTemplate: un,
|
|
8610
8614
|
resetDiscountVoucher: hn,
|
|
8611
8615
|
createReservation: Ti,
|
|
@@ -8638,7 +8642,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8638
8642
|
label: f("booking.confirmation.title"),
|
|
8639
8643
|
icon: "calendar-check"
|
|
8640
8644
|
}
|
|
8641
|
-
]),
|
|
8645
|
+
]), pn = wt(() => {
|
|
8642
8646
|
const z = [
|
|
8643
8647
|
{
|
|
8644
8648
|
label: f("booking.reservation.business"),
|
|
@@ -8655,16 +8659,16 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8655
8659
|
}), z;
|
|
8656
8660
|
}), Jt = wt(() => {
|
|
8657
8661
|
let z = Q.value.roomGroups.slice();
|
|
8658
|
-
function
|
|
8662
|
+
function W(gt, K) {
|
|
8659
8663
|
return dn.value === !0 ? gt.pricesFrom > K.pricesFrom ? -1 : 1 : gt.pricesFrom > K.pricesFrom ? 1 : -1;
|
|
8660
8664
|
}
|
|
8661
|
-
return u.sortBy === "price" && (z = z.sort(
|
|
8665
|
+
return u.sortBy === "price" && (z = z.sort(W)), Object.groupBy(z, (gt) => gt.roomList.some((K) => K.mapImageX && K.mapImageY) ? "camping" : "rooms");
|
|
8662
8666
|
}), we = wt(() => u.hideAddons === "yes" || fe.value && u.hideAddons === "packages" || !fe.value && u.hideAddons === "rooms");
|
|
8663
8667
|
function Ai(z) {
|
|
8664
8668
|
we.value || Tt.value ? z(2) : z(), hn();
|
|
8665
8669
|
}
|
|
8666
|
-
async function
|
|
8667
|
-
await Ti(z,
|
|
8670
|
+
async function _n(z, W) {
|
|
8671
|
+
await Ti(z, W);
|
|
8668
8672
|
}
|
|
8669
8673
|
function mn() {
|
|
8670
8674
|
if (isNaN(Mt.value) && Ie.value) {
|
|
@@ -8676,7 +8680,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8676
8680
|
}
|
|
8677
8681
|
Ze();
|
|
8678
8682
|
}
|
|
8679
|
-
function
|
|
8683
|
+
function gn() {
|
|
8680
8684
|
const z = Ko("history", {
|
|
8681
8685
|
removeNullishValues: !0
|
|
8682
8686
|
});
|
|
@@ -8692,9 +8696,9 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8692
8696
|
D();
|
|
8693
8697
|
const z = Ko("history", {
|
|
8694
8698
|
removeNullishValues: !0
|
|
8695
|
-
}),
|
|
8699
|
+
}), W = parseInt(z.a), gt = parseInt(z.c), K = parseInt(z.hid), ut = parseInt(z.n), R = z.ci, Bt = z.co, pt = z.id, $t = parseInt(z.gid);
|
|
8696
8700
|
let Xt = !1;
|
|
8697
|
-
if (isNaN(
|
|
8701
|
+
if (isNaN(W) || (W > Ke.value ? et.value = Ke.value : et.value = W, et.value === yi.value && (z.a = void 0)), isNaN(gt) || (gt > Be.value ? q.value = Be.value : q.value = gt, q.value === Li.value && (z.c = void 0)), isNaN(ut) || ut > 0 && (z.n = void 0), isNaN(K) || (qe(K) ? (Mt.value = K, Xt = !0) : (z.hid = void 0, Yt({
|
|
8698
8702
|
message: f("alert.error.hotelIdNotFound"),
|
|
8699
8703
|
type: "error"
|
|
8700
8704
|
}))), R && Bt)
|
|
@@ -8709,9 +8713,9 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8709
8713
|
message: f("alert.error.wrongDateFormat"),
|
|
8710
8714
|
type: "error"
|
|
8711
8715
|
});
|
|
8712
|
-
|
|
8716
|
+
pt && Je(pt), u.disableDefaultLocation === "yes" && Xt === !1 ? (Mt.value = void 0, v.value = void 0) : Ze($t);
|
|
8713
8717
|
}
|
|
8714
|
-
return (z,
|
|
8718
|
+
return (z, W) => (M(), lt(Er, { styling: z.styling }, {
|
|
8715
8719
|
default: tt(() => [
|
|
8716
8720
|
(M(), lt(br, { onResolve: Oi }, {
|
|
8717
8721
|
default: tt(() => [
|
|
@@ -8727,7 +8731,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8727
8731
|
onReset: h(un)
|
|
8728
8732
|
}, {
|
|
8729
8733
|
availability: tt(({ next: gt }) => [
|
|
8730
|
-
Z(
|
|
8734
|
+
Z(Kn, null, {
|
|
8731
8735
|
form: tt(() => [
|
|
8732
8736
|
P("div", ll, [
|
|
8733
8737
|
P("div", ul, [
|
|
@@ -8738,12 +8742,20 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8738
8742
|
"hide-locations": z.hideLocations === "yes"
|
|
8739
8743
|
}, null, 8, ["selected-location", "disable-default-location", "hide-locations"])
|
|
8740
8744
|
]),
|
|
8741
|
-
|
|
8745
|
+
h(bi) ? (M(), A("div", hl, [
|
|
8746
|
+
P("span", null, [
|
|
8747
|
+
ls(E(h(f)("general.filteredListingNotice")) + " ", 1),
|
|
8748
|
+
P("button", {
|
|
8749
|
+
class: "link",
|
|
8750
|
+
onClick: W[0] || (W[0] = (K) => gn())
|
|
8751
|
+
}, E(h(f)("general.filteredListingShowAll")), 1)
|
|
8752
|
+
])
|
|
8753
|
+
])) : U("", !0),
|
|
8742
8754
|
U("", !0),
|
|
8743
|
-
!h(c) && h(yt) ? (M(), A("div",
|
|
8744
|
-
Jt.value.camping && Jt.value.camping.length > 0 && z.onlyShow !== "non-camping" || Jt.value.rooms && Jt.value.rooms.length > 0 || h(Q).templates.length > 0 || h(Q).specialTemplates.length > 0 ? (M(), A("div",
|
|
8745
|
-
h(Q).templates.length > 0 && z.onlyShow !== "rooms" && z.onlyShow !== "camping" ? (M(), A("div",
|
|
8746
|
-
z.onlyShow !== "packages" ? (M(), A("h2",
|
|
8755
|
+
!h(c) && h(yt) ? (M(), A("div", cl, [
|
|
8756
|
+
Jt.value.camping && Jt.value.camping.length > 0 && z.onlyShow !== "non-camping" || Jt.value.rooms && Jt.value.rooms.length > 0 || h(Q).templates.length > 0 || h(Q).specialTemplates.length > 0 ? (M(), A("div", dl, [
|
|
8757
|
+
h(Q).templates.length > 0 && z.onlyShow !== "rooms" && z.onlyShow !== "camping" ? (M(), A("div", fl, [
|
|
8758
|
+
z.onlyShow !== "packages" ? (M(), A("h2", pl, [
|
|
8747
8759
|
Z(xt, {
|
|
8748
8760
|
icon: "box",
|
|
8749
8761
|
type: "fal",
|
|
@@ -8757,12 +8769,12 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8757
8769
|
name: ut,
|
|
8758
8770
|
templateRoomGroups: R,
|
|
8759
8771
|
images: Bt,
|
|
8760
|
-
description:
|
|
8772
|
+
description: pt,
|
|
8761
8773
|
weekendFee: $t
|
|
8762
8774
|
}) => (M(), lt(qa, {
|
|
8763
8775
|
key: K,
|
|
8764
8776
|
id: K,
|
|
8765
|
-
description:
|
|
8777
|
+
description: pt,
|
|
8766
8778
|
name: ut,
|
|
8767
8779
|
images: Bt,
|
|
8768
8780
|
weekendFee: $t,
|
|
@@ -8772,9 +8784,9 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8772
8784
|
}, null, 8, ["id", "description", "name", "images", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
8773
8785
|
])
|
|
8774
8786
|
])) : U("", !0),
|
|
8775
|
-
h(Q).roomGroups.length > 0 && z.onlyShow !== "packages" ? (M(), A("div",
|
|
8787
|
+
h(Q).roomGroups.length > 0 && z.onlyShow !== "packages" ? (M(), A("div", ml, [
|
|
8776
8788
|
Jt.value.rooms && z.onlyShow !== "camping" ? (M(), A(mt, { key: 0 }, [
|
|
8777
|
-
h(Q).templates.length > 0 && z.onlyShow !== "rooms" ? (M(), A("h2",
|
|
8789
|
+
h(Q).templates.length > 0 && z.onlyShow !== "rooms" ? (M(), A("h2", gl, [
|
|
8778
8790
|
Z(xt, {
|
|
8779
8791
|
icon: "house",
|
|
8780
8792
|
type: "fal",
|
|
@@ -8782,7 +8794,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8782
8794
|
}),
|
|
8783
8795
|
P("span", null, E(h(f)("booking.availability.roomsTitle")), 1)
|
|
8784
8796
|
])) : U("", !0),
|
|
8785
|
-
P("ul",
|
|
8797
|
+
P("ul", vl, [
|
|
8786
8798
|
(M(!0), A(mt, null, Ot(Jt.value.rooms, (K, ut) => (M(), lt(Qo, {
|
|
8787
8799
|
room: K,
|
|
8788
8800
|
key: ut,
|
|
@@ -8791,7 +8803,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8791
8803
|
])
|
|
8792
8804
|
], 64)) : U("", !0),
|
|
8793
8805
|
Jt.value.camping && z.onlyShow !== "rooms" && z.onlyShow !== "non-camping" ? (M(), A(mt, { key: 1 }, [
|
|
8794
|
-
h(Q).templates.length > 0 && z.onlyShow !== "camping" ? (M(), A("h2",
|
|
8806
|
+
h(Q).templates.length > 0 && z.onlyShow !== "camping" ? (M(), A("h2", yl, [
|
|
8795
8807
|
Z(xt, {
|
|
8796
8808
|
icon: "house",
|
|
8797
8809
|
type: "fal",
|
|
@@ -8799,7 +8811,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8799
8811
|
}),
|
|
8800
8812
|
P("span", null, E(h(f)("booking.availability.campingTitle")), 1)
|
|
8801
8813
|
])) : U("", !0),
|
|
8802
|
-
P("ul",
|
|
8814
|
+
P("ul", Ll, [
|
|
8803
8815
|
(M(!0), A(mt, null, Ot(Jt.value.camping, (K, ut) => (M(), lt(Qo, {
|
|
8804
8816
|
room: K,
|
|
8805
8817
|
key: ut,
|
|
@@ -8809,8 +8821,8 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8809
8821
|
], 64)) : U("", !0)
|
|
8810
8822
|
])) : U("", !0),
|
|
8811
8823
|
h(bi) ? U("", !0) : (M(), A(mt, { key: 2 }, [
|
|
8812
|
-
h(Q).specialTemplates.length > 0 && z.onlyShow !== "rooms" ? (M(), A("div",
|
|
8813
|
-
P("h2",
|
|
8824
|
+
h(Q).specialTemplates.length > 0 && z.onlyShow !== "rooms" ? (M(), A("div", bl, [
|
|
8825
|
+
P("h2", kl, [
|
|
8814
8826
|
Z(xt, {
|
|
8815
8827
|
icon: "sparkles",
|
|
8816
8828
|
type: "fal",
|
|
@@ -8818,20 +8830,20 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8818
8830
|
}),
|
|
8819
8831
|
P("span", null, E(h(f)("hotel.specialOffers")), 1)
|
|
8820
8832
|
]),
|
|
8821
|
-
P("ul",
|
|
8833
|
+
P("ul", wl, [
|
|
8822
8834
|
(M(!0), A(mt, null, Ot(h(Q).specialTemplates, ({
|
|
8823
8835
|
id: K,
|
|
8824
8836
|
name: ut,
|
|
8825
8837
|
templateRoomGroups: R,
|
|
8826
8838
|
images: Bt,
|
|
8827
|
-
description:
|
|
8839
|
+
description: pt,
|
|
8828
8840
|
weekendFee: $t,
|
|
8829
8841
|
fromDate: Xt,
|
|
8830
8842
|
toDate: Qt
|
|
8831
8843
|
}) => (M(), lt(Ja, {
|
|
8832
8844
|
key: K,
|
|
8833
8845
|
id: K,
|
|
8834
|
-
description:
|
|
8846
|
+
description: pt,
|
|
8835
8847
|
name: ut,
|
|
8836
8848
|
images: Bt,
|
|
8837
8849
|
fromDate: Xt,
|
|
@@ -8842,13 +8854,13 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8842
8854
|
])
|
|
8843
8855
|
])) : U("", !0)
|
|
8844
8856
|
], 64)),
|
|
8845
|
-
(h(Q).templates.length === 0 && z.onlyShow !== "rooms" || h(Q).roomGroups.length === 0 && z.onlyShow !== "packages") && (z.onlyShow === "rooms" || z.onlyShow === "packages") ? (M(), A("div",
|
|
8857
|
+
(h(Q).templates.length === 0 && z.onlyShow !== "rooms" || h(Q).roomGroups.length === 0 && z.onlyShow !== "packages") && (z.onlyShow === "rooms" || z.onlyShow === "packages") ? (M(), A("div", Pl, [
|
|
8846
8858
|
P("span", null, E(h(f)("booking.availability.nothingAvailable")), 1)
|
|
8847
8859
|
])) : U("", !0)
|
|
8848
|
-
])) : h(Q).nextAvailableDates.length === 0 ? (M(), A("div",
|
|
8860
|
+
])) : h(Q).nextAvailableDates.length === 0 ? (M(), A("div", xl, [
|
|
8849
8861
|
P("span", null, E(h(f)("booking.availability.nothingAvailable")), 1)
|
|
8850
|
-
])) : (M(), A("div",
|
|
8851
|
-
P("h2",
|
|
8862
|
+
])) : (M(), A("div", Cl, [
|
|
8863
|
+
P("h2", Tl, [
|
|
8852
8864
|
Z(xt, {
|
|
8853
8865
|
icon: "calendar-circle-exclamation",
|
|
8854
8866
|
type: "fal",
|
|
@@ -8856,15 +8868,15 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8856
8868
|
}),
|
|
8857
8869
|
P("span", null, E(h(f)("booking.availability.nextAvailableDates")), 1)
|
|
8858
8870
|
]),
|
|
8859
|
-
P("ul",
|
|
8871
|
+
P("ul", Ml, [
|
|
8860
8872
|
(M(!0), A(mt, null, Ot(h(Q).nextAvailableDates, (K, ut) => (M(), A("li", { key: ut }, [
|
|
8861
8873
|
P("h3", {
|
|
8862
8874
|
title: `${h(ne)(K.fromDate, 0, !0)} - ${h(ne)(K.toDate, 0, !0)}`
|
|
8863
8875
|
}, [
|
|
8864
8876
|
P("span", null, E(`${h(ne)(K.fromDate, 0, !0)} - ${h(ne)(K.toDate, 0, !0)}`), 1)
|
|
8865
|
-
], 8,
|
|
8877
|
+
], 8, Sl),
|
|
8866
8878
|
P("ul", null, [
|
|
8867
|
-
isNaN(K.roomCount) ? U("", !0) : (M(), A("li",
|
|
8879
|
+
isNaN(K.roomCount) ? U("", !0) : (M(), A("li", Al, [
|
|
8868
8880
|
Z(xt, {
|
|
8869
8881
|
icon: "house",
|
|
8870
8882
|
type: "fal",
|
|
@@ -8889,12 +8901,12 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8889
8901
|
]))), 128))
|
|
8890
8902
|
])
|
|
8891
8903
|
]))
|
|
8892
|
-
])) : isNaN(h(v)) && !h(c) ? (M(), A("div",
|
|
8904
|
+
])) : isNaN(h(v)) && !h(c) ? (M(), A("div", Ol, [
|
|
8893
8905
|
P("span", null, E(h(f)("alert.info.selectHotelToStart")), 1)
|
|
8894
|
-
])) : (M(), A("div",
|
|
8895
|
-
Z(
|
|
8896
|
-
Z(
|
|
8897
|
-
Z(
|
|
8906
|
+
])) : (M(), A("div", Il, [
|
|
8907
|
+
Z(qn),
|
|
8908
|
+
Z(qn),
|
|
8909
|
+
Z(qn)
|
|
8898
8910
|
]))
|
|
8899
8911
|
])
|
|
8900
8912
|
]),
|
|
@@ -8904,7 +8916,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8904
8916
|
label: isNaN(h(v)) ? h(f)("availability.buttonLabel") : h(f)("general.searchAgain"),
|
|
8905
8917
|
"is-loading": h(c),
|
|
8906
8918
|
"full-width": "",
|
|
8907
|
-
onClickEvent:
|
|
8919
|
+
onClickEvent: W[2] || (W[2] = (K) => mn())
|
|
8908
8920
|
}, null, 8, ["label", "is-loading"])) : (M(), lt(de, {
|
|
8909
8921
|
key: 1,
|
|
8910
8922
|
label: h(Tt) || we.value ? h(f)("booking.availability.nextButton") : h(f)("general.chooseAddons"),
|
|
@@ -8912,51 +8924,51 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8912
8924
|
"full-width": "",
|
|
8913
8925
|
onClickEvent: (K) => Ht(gt)
|
|
8914
8926
|
}, null, 8, ["label", "disabled", "onClickEvent"])),
|
|
8915
|
-
$e(P("span",
|
|
8927
|
+
$e(P("span", El, [
|
|
8916
8928
|
Z(xt, {
|
|
8917
8929
|
icon: "exclamation-triangle",
|
|
8918
8930
|
type: "fas"
|
|
8919
8931
|
}),
|
|
8920
8932
|
P("span", null, E(h(f)("hotel.mismatchingAdults", { searchAdults: h(et), selectedAdults: h(nt) })), 1)
|
|
8921
8933
|
], 512), [
|
|
8922
|
-
[
|
|
8934
|
+
[_i, h(J)]
|
|
8923
8935
|
]),
|
|
8924
|
-
$e(P("span",
|
|
8936
|
+
$e(P("span", Bl, [
|
|
8925
8937
|
Z(xt, {
|
|
8926
8938
|
icon: "exclamation-triangle",
|
|
8927
8939
|
type: "fas"
|
|
8928
8940
|
}),
|
|
8929
8941
|
P("span", null, E(h(f)("hotel.mismatchingChildren", { searchChildren: h(q), selectedChildren: h(ft) })), 1)
|
|
8930
8942
|
], 512), [
|
|
8931
|
-
[
|
|
8943
|
+
[_i, h(Lt)]
|
|
8932
8944
|
])
|
|
8933
8945
|
]),
|
|
8934
8946
|
_: 2
|
|
8935
8947
|
}, 1024)
|
|
8936
8948
|
]),
|
|
8937
8949
|
addons: tt(({ next: gt, prev: K }) => [
|
|
8938
|
-
h(yt) ? (M(), lt(
|
|
8950
|
+
h(yt) ? (M(), lt(Kn, {
|
|
8939
8951
|
key: 0,
|
|
8940
8952
|
"prev-callback": () => Ai(K)
|
|
8941
8953
|
}, {
|
|
8942
8954
|
form: tt(() => [
|
|
8943
|
-
P("form",
|
|
8955
|
+
P("form", zl, [
|
|
8944
8956
|
P("h2", null, [
|
|
8945
8957
|
P("span", null, E(h(f)("booking.reservation.addons")), 1)
|
|
8946
8958
|
]),
|
|
8947
8959
|
P("div", null, [
|
|
8948
|
-
isNaN(h(o)) ? (M(), A("div",
|
|
8960
|
+
isNaN(h(o)) ? (M(), A("div", Zl, [
|
|
8949
8961
|
(M(!0), A(mt, null, Ot(h(zt), (ut) => (M(), A(mt, {
|
|
8950
8962
|
key: ut.roomGroupID
|
|
8951
8963
|
}, [
|
|
8952
|
-
h(cn)(ut) ? (M(), A("ul",
|
|
8964
|
+
h(cn)(ut) ? (M(), A("ul", Dl, [
|
|
8953
8965
|
(M(!0), A(mt, null, Ot(ut.variants, (R, Bt) => (M(), A("li", {
|
|
8954
8966
|
key: R.ratePlanID
|
|
8955
8967
|
}, [
|
|
8956
8968
|
P("h4", null, [
|
|
8957
8969
|
P("span", null, E(h(ce)(ut.title)), 1)
|
|
8958
8970
|
]),
|
|
8959
|
-
(M(!0), A(mt, null, Ot(R.rooms, (
|
|
8971
|
+
(M(!0), A(mt, null, Ot(R.rooms, (pt, $t) => (M(), A("table", {
|
|
8960
8972
|
key: $t,
|
|
8961
8973
|
class: "konnectio-table with-lines"
|
|
8962
8974
|
}, [
|
|
@@ -8966,40 +8978,40 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
8966
8978
|
P("span", null, E(h(ce)(R.name)), 1)
|
|
8967
8979
|
]),
|
|
8968
8980
|
U("", !0),
|
|
8969
|
-
P("th",
|
|
8981
|
+
P("th", Nl, [
|
|
8970
8982
|
P("b", null, [
|
|
8971
8983
|
Z(xt, {
|
|
8972
8984
|
icon: "male",
|
|
8973
8985
|
type: "fas",
|
|
8974
8986
|
color: "font"
|
|
8975
8987
|
}),
|
|
8976
|
-
P("span", null, E(
|
|
8977
|
-
|
|
8988
|
+
P("span", null, E(pt.adultsCount), 1),
|
|
8989
|
+
pt.childrenCount > 0 ? (M(), lt(xt, {
|
|
8978
8990
|
key: 0,
|
|
8979
8991
|
icon: "child",
|
|
8980
8992
|
type: "fas",
|
|
8981
8993
|
color: "font"
|
|
8982
8994
|
})) : U("", !0),
|
|
8983
|
-
|
|
8995
|
+
pt.childrenCount > 0 ? (M(), A("span", Rl, E(pt.childrenCount), 1)) : U("", !0)
|
|
8984
8996
|
])
|
|
8985
8997
|
])
|
|
8986
8998
|
])
|
|
8987
8999
|
]),
|
|
8988
9000
|
P("tbody", null, [
|
|
8989
|
-
(M(!0), A(mt, null, Ot(h(Si)(R.addons,
|
|
9001
|
+
(M(!0), A(mt, null, Ot(h(Si)(R.addons, pt.childrenCount), ({
|
|
8990
9002
|
cardinality: Xt,
|
|
8991
9003
|
quantityStrategy: Qt,
|
|
8992
9004
|
maximumNumber: Pe,
|
|
8993
9005
|
id: Xe,
|
|
8994
9006
|
name: De,
|
|
8995
|
-
price:
|
|
9007
|
+
price: vn
|
|
8996
9008
|
}) => (M(), A("tr", { key: Xe }, [
|
|
8997
|
-
P("td",
|
|
9009
|
+
P("td", Hl, [
|
|
8998
9010
|
P("b", null, E(h(ce)(De)), 1),
|
|
8999
|
-
P("span", null, E(h(oe)(
|
|
9011
|
+
P("span", null, E(h(oe)(vn, h(be))) + " " + E(h(qo)(Qt)), 1)
|
|
9000
9012
|
]),
|
|
9001
|
-
P("td",
|
|
9002
|
-
h(ct)[ut.roomGroupID][Bt].config[
|
|
9013
|
+
P("td", Vl, [
|
|
9014
|
+
h(ct)[ut.roomGroupID][Bt].config[pt.configIdx].addons[pt.roomIdx] ? (M(), A(mt, { key: 0 }, [
|
|
9003
9015
|
Xt === h(jo).Mandatory ? (M(), lt(di, {
|
|
9004
9016
|
key: 0,
|
|
9005
9017
|
"model-value": 1,
|
|
@@ -9009,8 +9021,8 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9009
9021
|
readonly: ""
|
|
9010
9022
|
})) : (M(), lt(di, {
|
|
9011
9023
|
key: 1,
|
|
9012
|
-
modelValue: h(ct)[ut.roomGroupID][Bt].config[
|
|
9013
|
-
"onUpdate:modelValue": (
|
|
9024
|
+
modelValue: h(ct)[ut.roomGroupID][Bt].config[pt.configIdx].addons[pt.roomIdx][Xe],
|
|
9025
|
+
"onUpdate:modelValue": (yn) => h(ct)[ut.roomGroupID][Bt].config[pt.configIdx].addons[pt.roomIdx][Xe] = yn,
|
|
9014
9026
|
small: !0,
|
|
9015
9027
|
"min-value": 0,
|
|
9016
9028
|
"max-value": Pe || 1 / 0
|
|
@@ -9023,19 +9035,19 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9023
9035
|
]))), 128))
|
|
9024
9036
|
])) : U("", !0)
|
|
9025
9037
|
], 64))), 128))
|
|
9026
|
-
])) : h(Nt) ? (M(), A("div",
|
|
9038
|
+
])) : h(Nt) ? (M(), A("div", Fl, [
|
|
9027
9039
|
P("div", null, [
|
|
9028
9040
|
P("h4", null, [
|
|
9029
9041
|
P("span", null, E(h(It).name), 1)
|
|
9030
9042
|
]),
|
|
9031
|
-
P("table",
|
|
9043
|
+
P("table", Ul, [
|
|
9032
9044
|
P("thead", null, [
|
|
9033
9045
|
P("tr", null, [
|
|
9034
9046
|
P("th", null, [
|
|
9035
9047
|
P("span", null, E(h(ce)(h(Nt).title)), 1)
|
|
9036
9048
|
]),
|
|
9037
9049
|
U("", !0),
|
|
9038
|
-
|
|
9050
|
+
W[20] || (W[20] = P("th", { class: "konnectio-event-addons-price" }, null, -1))
|
|
9039
9051
|
])
|
|
9040
9052
|
]),
|
|
9041
9053
|
P("tbody", null, [
|
|
@@ -9043,15 +9055,15 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9043
9055
|
cardinality: ut,
|
|
9044
9056
|
quantityStrategy: R,
|
|
9045
9057
|
maximumNumber: Bt,
|
|
9046
|
-
id:
|
|
9058
|
+
id: pt,
|
|
9047
9059
|
name: $t,
|
|
9048
9060
|
price: Xt
|
|
9049
|
-
}) => (M(), A("tr", { key:
|
|
9050
|
-
P("td",
|
|
9061
|
+
}) => (M(), A("tr", { key: pt }, [
|
|
9062
|
+
P("td", Gl, [
|
|
9051
9063
|
P("b", null, E(h(ce)($t)), 1),
|
|
9052
9064
|
P("span", null, E(h(oe)(Xt, h(be))) + " " + E(h(qo)(R)), 1)
|
|
9053
9065
|
]),
|
|
9054
|
-
P("td",
|
|
9066
|
+
P("td", Wl, [
|
|
9055
9067
|
ut === h(jo).Mandatory ? (M(), lt(di, {
|
|
9056
9068
|
key: 0,
|
|
9057
9069
|
"model-value": 1,
|
|
@@ -9061,8 +9073,8 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9061
9073
|
readonly: ""
|
|
9062
9074
|
})) : (M(), lt(di, {
|
|
9063
9075
|
key: 1,
|
|
9064
|
-
modelValue: h(r)[
|
|
9065
|
-
"onUpdate:modelValue": (Qt) => h(r)[
|
|
9076
|
+
modelValue: h(r)[pt],
|
|
9077
|
+
"onUpdate:modelValue": (Qt) => h(r)[pt] = Qt,
|
|
9066
9078
|
small: !0,
|
|
9067
9079
|
"min-value": 0,
|
|
9068
9080
|
"max-value": Bt || 1 / 0
|
|
@@ -9087,14 +9099,14 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9087
9099
|
}, 1032, ["prev-callback"])) : U("", !0)
|
|
9088
9100
|
]),
|
|
9089
9101
|
reservation: tt(({ next: gt, prev: K, reset: ut }) => [
|
|
9090
|
-
h(yt) ? (M(), lt(
|
|
9102
|
+
h(yt) ? (M(), lt(Kn, {
|
|
9091
9103
|
key: 0,
|
|
9092
9104
|
"prev-callback": () => Ai(K),
|
|
9093
9105
|
"show-terms-notice": !0,
|
|
9094
9106
|
"show-gift-card": !0
|
|
9095
9107
|
}, {
|
|
9096
9108
|
form: tt(() => [
|
|
9097
|
-
P("form",
|
|
9109
|
+
P("form", $l, [
|
|
9098
9110
|
P("h2", null, [
|
|
9099
9111
|
P("span", null, E(h(f)("booking.reservation.detailsTitle")), 1)
|
|
9100
9112
|
]),
|
|
@@ -9102,10 +9114,10 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9102
9114
|
key: 0,
|
|
9103
9115
|
class: Xi(["konnectio-reservation-timepicker", { "konnectio-split-inputs": h(ze)(h(v)) && h(Ye)(h(v)) }])
|
|
9104
9116
|
}, [
|
|
9105
|
-
h(ze)(h(v)) ? (M(), A("li",
|
|
9117
|
+
h(ze)(h(v)) ? (M(), A("li", ql, [
|
|
9106
9118
|
Z(ts, {
|
|
9107
9119
|
modelValue: h(k),
|
|
9108
|
-
"onUpdate:modelValue":
|
|
9120
|
+
"onUpdate:modelValue": W[3] || (W[3] = (R) => At(k) ? k.value = R : null),
|
|
9109
9121
|
label: h(f)("booking.reservation.arrivalTime"),
|
|
9110
9122
|
icon: "hourglass-start",
|
|
9111
9123
|
"min-time": h(wi)(h(v)),
|
|
@@ -9113,10 +9125,10 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9113
9125
|
required: ""
|
|
9114
9126
|
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
9115
9127
|
])) : U("", !0),
|
|
9116
|
-
h(Ye)(h(v)) ? (M(), A("li",
|
|
9128
|
+
h(Ye)(h(v)) ? (M(), A("li", jl, [
|
|
9117
9129
|
Z(ts, {
|
|
9118
9130
|
modelValue: h(w),
|
|
9119
|
-
"onUpdate:modelValue":
|
|
9131
|
+
"onUpdate:modelValue": W[4] || (W[4] = (R) => At(w) ? w.value = R : null),
|
|
9120
9132
|
label: h(f)("booking.reservation.departureTime"),
|
|
9121
9133
|
icon: "hourglass-end",
|
|
9122
9134
|
"min-time": h(an)(h(v)),
|
|
@@ -9127,9 +9139,9 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9127
9139
|
], 2)) : U("", !0),
|
|
9128
9140
|
Z(il, {
|
|
9129
9141
|
modelValue: h(S),
|
|
9130
|
-
"onUpdate:modelValue":
|
|
9142
|
+
"onUpdate:modelValue": W[5] || (W[5] = (R) => At(S) ? S.value = R : null),
|
|
9131
9143
|
title: h(C),
|
|
9132
|
-
"onUpdate:title":
|
|
9144
|
+
"onUpdate:title": W[6] || (W[6] = (R) => At(C) ? C.value = R : null),
|
|
9133
9145
|
"exclude-title": h(gi),
|
|
9134
9146
|
label: h(f)("booking.reservation.name"),
|
|
9135
9147
|
icon: "user-alt",
|
|
@@ -9138,7 +9150,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9138
9150
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
9139
9151
|
Z(ge, {
|
|
9140
9152
|
modelValue: h(H),
|
|
9141
|
-
"onUpdate:modelValue":
|
|
9153
|
+
"onUpdate:modelValue": W[7] || (W[7] = (R) => At(H) ? H.value = R : null),
|
|
9142
9154
|
type: "email",
|
|
9143
9155
|
name: "email",
|
|
9144
9156
|
autocomplete: "email",
|
|
@@ -9148,10 +9160,10 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9148
9160
|
placeholder: h(f)("booking.reservation.emailPlaceholder"),
|
|
9149
9161
|
required: ""
|
|
9150
9162
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9151
|
-
h(rn) ? U("", !0) : (M(), A("div",
|
|
9152
|
-
Z(
|
|
9163
|
+
h(rn) ? U("", !0) : (M(), A("div", Kl, [
|
|
9164
|
+
Z(Yn, {
|
|
9153
9165
|
modelValue: h(N),
|
|
9154
|
-
"onUpdate:modelValue":
|
|
9166
|
+
"onUpdate:modelValue": W[8] || (W[8] = (R) => At(N) ? N.value = R : null),
|
|
9155
9167
|
type: "checkbox",
|
|
9156
9168
|
name: "newsletter",
|
|
9157
9169
|
label: h(f)("booking.reservation.newsletterSignUp")
|
|
@@ -9160,7 +9172,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9160
9172
|
h(Ee) ? U("", !0) : (M(), lt(ge, {
|
|
9161
9173
|
key: 2,
|
|
9162
9174
|
modelValue: h(I),
|
|
9163
|
-
"onUpdate:modelValue":
|
|
9175
|
+
"onUpdate:modelValue": W[9] || (W[9] = (R) => At(I) ? I.value = R : null),
|
|
9164
9176
|
type: "text",
|
|
9165
9177
|
name: "firm",
|
|
9166
9178
|
autocomplete: "firm",
|
|
@@ -9170,7 +9182,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9170
9182
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
9171
9183
|
Z(jr, {
|
|
9172
9184
|
modelValue: h(B),
|
|
9173
|
-
"onUpdate:modelValue":
|
|
9185
|
+
"onUpdate:modelValue": W[10] || (W[10] = (R) => At(B) ? B.value = R : null),
|
|
9174
9186
|
icon: "phone-office",
|
|
9175
9187
|
label: h(f)("booking.reservation.phone"),
|
|
9176
9188
|
placeholder: h(f)("booking.reservation.phonePlaceholder"),
|
|
@@ -9178,7 +9190,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9178
9190
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9179
9191
|
Z(tl, {
|
|
9180
9192
|
modelValue: h(Ct),
|
|
9181
|
-
"onUpdate:modelValue":
|
|
9193
|
+
"onUpdate:modelValue": W[11] || (W[11] = (R) => At(Ct) ? Ct.value = R : null),
|
|
9182
9194
|
label: h(f)("booking.reservation.country"),
|
|
9183
9195
|
placeholder: h(f)("booking.reservation.countryPlaceholder"),
|
|
9184
9196
|
options: h(l),
|
|
@@ -9186,7 +9198,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9186
9198
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
9187
9199
|
Z(ge, {
|
|
9188
9200
|
modelValue: h(ot),
|
|
9189
|
-
"onUpdate:modelValue":
|
|
9201
|
+
"onUpdate:modelValue": W[12] || (W[12] = (R) => At(ot) ? ot.value = R : null),
|
|
9190
9202
|
type: "textarea",
|
|
9191
9203
|
name: "address",
|
|
9192
9204
|
autocomplete: "street-address",
|
|
@@ -9195,11 +9207,11 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9195
9207
|
placeholder: h(f)("booking.reservation.streetAddressPlaceholder"),
|
|
9196
9208
|
required: ""
|
|
9197
9209
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9198
|
-
P("ul",
|
|
9210
|
+
P("ul", Yl, [
|
|
9199
9211
|
P("li", null, [
|
|
9200
9212
|
Z(ge, {
|
|
9201
|
-
modelValue: h(
|
|
9202
|
-
"onUpdate:modelValue":
|
|
9213
|
+
modelValue: h($),
|
|
9214
|
+
"onUpdate:modelValue": W[13] || (W[13] = (R) => At($) ? $.value = R : null),
|
|
9203
9215
|
type: "text",
|
|
9204
9216
|
name: "postal",
|
|
9205
9217
|
autocomplete: "postal-code",
|
|
@@ -9212,7 +9224,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9212
9224
|
P("li", null, [
|
|
9213
9225
|
Z(ge, {
|
|
9214
9226
|
modelValue: h(ht),
|
|
9215
|
-
"onUpdate:modelValue":
|
|
9227
|
+
"onUpdate:modelValue": W[14] || (W[14] = (R) => At(ht) ? ht.value = R : null),
|
|
9216
9228
|
type: "text",
|
|
9217
9229
|
name: "city",
|
|
9218
9230
|
autocomplete: "address-level2",
|
|
@@ -9225,7 +9237,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9225
9237
|
]),
|
|
9226
9238
|
Z(ge, {
|
|
9227
9239
|
modelValue: h(V),
|
|
9228
|
-
"onUpdate:modelValue":
|
|
9240
|
+
"onUpdate:modelValue": W[15] || (W[15] = (R) => At(V) ? V.value = R : null),
|
|
9229
9241
|
type: "textarea",
|
|
9230
9242
|
label: `${h(f)("booking.reservation.remark")} (${h(f)("booking.reservation.optional")})`,
|
|
9231
9243
|
icon: "info-circle",
|
|
@@ -9233,7 +9245,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9233
9245
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9234
9246
|
Z(ge, {
|
|
9235
9247
|
modelValue: h(st),
|
|
9236
|
-
"onUpdate:modelValue":
|
|
9248
|
+
"onUpdate:modelValue": W[16] || (W[16] = (R) => At(st) ? st.value = R : null),
|
|
9237
9249
|
type: "textarea",
|
|
9238
9250
|
label: `${h(f)("booking.reservation.allergies")} (${h(f)("booking.reservation.optional")})`,
|
|
9239
9251
|
icon: "allergies",
|
|
@@ -9242,10 +9254,10 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9242
9254
|
h(vi) ? U("", !0) : (M(), lt(Vr, {
|
|
9243
9255
|
key: 3,
|
|
9244
9256
|
modelValue: h(g),
|
|
9245
|
-
"onUpdate:modelValue":
|
|
9257
|
+
"onUpdate:modelValue": W[17] || (W[17] = (R) => At(g) ? g.value = R : null),
|
|
9246
9258
|
label: `${h(f)("booking.reservation.purposeOfStay")} (${h(f)("booking.reservation.optional")})`,
|
|
9247
9259
|
name: "travelingFor",
|
|
9248
|
-
checkboxes:
|
|
9260
|
+
checkboxes: pn.value
|
|
9249
9261
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
9250
9262
|
])
|
|
9251
9263
|
]),
|
|
@@ -9256,7 +9268,7 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9256
9268
|
disabled: !h(y),
|
|
9257
9269
|
"is-loading": h(m),
|
|
9258
9270
|
"full-width": "",
|
|
9259
|
-
onClickEvent: (R) =>
|
|
9271
|
+
onClickEvent: (R) => _n(gt, ut)
|
|
9260
9272
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
9261
9273
|
])
|
|
9262
9274
|
]),
|
|
@@ -9287,14 +9299,14 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9287
9299
|
_: 1
|
|
9288
9300
|
}, 8, ["styling"]));
|
|
9289
9301
|
}
|
|
9290
|
-
}), es = /* @__PURE__ */ se(
|
|
9302
|
+
}), es = /* @__PURE__ */ se(Jl, [["__scopeId", "data-v-5100b1a8"]]), Xl = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]), Yi = /* @__PURE__ */ new Set([
|
|
9291
9303
|
"base",
|
|
9292
9304
|
"meta",
|
|
9293
9305
|
"link",
|
|
9294
9306
|
"style",
|
|
9295
9307
|
"script",
|
|
9296
9308
|
"noscript"
|
|
9297
|
-
]),
|
|
9309
|
+
]), Ql = /* @__PURE__ */ new Set([
|
|
9298
9310
|
"title",
|
|
9299
9311
|
"titleTemplate",
|
|
9300
9312
|
"templateParams",
|
|
@@ -9306,96 +9318,96 @@ const Yl = /* @__PURE__ */ Rt({
|
|
|
9306
9318
|
"style",
|
|
9307
9319
|
"script",
|
|
9308
9320
|
"noscript"
|
|
9309
|
-
]),
|
|
9310
|
-
function Qi(
|
|
9321
|
+
]), tu = /* @__PURE__ */ new Set(["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"]), _s = /* @__PURE__ */ new Set(["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"]), eu = typeof window < "u";
|
|
9322
|
+
function Qi(p) {
|
|
9311
9323
|
let d = 9;
|
|
9312
|
-
for (let u = 0; u <
|
|
9313
|
-
d = Math.imul(d ^
|
|
9324
|
+
for (let u = 0; u < p.length; )
|
|
9325
|
+
d = Math.imul(d ^ p.charCodeAt(u++), 9 ** 9);
|
|
9314
9326
|
return ((d ^ d >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
9315
9327
|
}
|
|
9316
|
-
function
|
|
9317
|
-
if (
|
|
9318
|
-
return
|
|
9319
|
-
if (
|
|
9320
|
-
return Qi(
|
|
9321
|
-
let d = `${
|
|
9322
|
-
for (const u in
|
|
9323
|
-
d += `${u}:${String(
|
|
9328
|
+
function Xn(p) {
|
|
9329
|
+
if (p._h)
|
|
9330
|
+
return p._h;
|
|
9331
|
+
if (p._d)
|
|
9332
|
+
return Qi(p._d);
|
|
9333
|
+
let d = `${p.tag}:${p.textContent || p.innerHTML || ""}:`;
|
|
9334
|
+
for (const u in p.props)
|
|
9335
|
+
d += `${u}:${String(p.props[u])},`;
|
|
9324
9336
|
return Qi(d);
|
|
9325
9337
|
}
|
|
9326
|
-
function
|
|
9327
|
-
return
|
|
9338
|
+
function iu(p, d) {
|
|
9339
|
+
return p instanceof Promise ? p.then(d) : d(p);
|
|
9328
9340
|
}
|
|
9329
|
-
function
|
|
9330
|
-
const v = f ||
|
|
9341
|
+
function Qn(p, d, u, f) {
|
|
9342
|
+
const v = f || gs(
|
|
9331
9343
|
// explicitly check for an object
|
|
9332
9344
|
// @ts-expect-error untyped
|
|
9333
|
-
typeof d == "object" && typeof d != "function" && !(d instanceof Promise) ? { ...d } : { [
|
|
9334
|
-
|
|
9345
|
+
typeof d == "object" && typeof d != "function" && !(d instanceof Promise) ? { ...d } : { [p === "script" || p === "noscript" || p === "style" ? "innerHTML" : "textContent"]: d },
|
|
9346
|
+
p === "templateParams" || p === "titleTemplate"
|
|
9335
9347
|
);
|
|
9336
9348
|
if (v instanceof Promise)
|
|
9337
|
-
return v.then((r) =>
|
|
9349
|
+
return v.then((r) => Qn(p, d, u, r));
|
|
9338
9350
|
const o = {
|
|
9339
|
-
tag:
|
|
9351
|
+
tag: p,
|
|
9340
9352
|
props: v
|
|
9341
9353
|
};
|
|
9342
9354
|
for (const r of _s) {
|
|
9343
9355
|
const l = o.props[r] !== void 0 ? o.props[r] : u[r];
|
|
9344
|
-
l !== void 0 && ((!(r === "innerHTML" || r === "textContent" || r === "children") ||
|
|
9356
|
+
l !== void 0 && ((!(r === "innerHTML" || r === "textContent" || r === "children") || Xl.has(o.tag)) && (o[r === "children" ? "innerHTML" : r] = l), delete o.props[r]);
|
|
9345
9357
|
}
|
|
9346
9358
|
return o.props.body && (o.tagPosition = "bodyClose", delete o.props.body), o.tag === "script" && typeof o.innerHTML == "object" && (o.innerHTML = JSON.stringify(o.innerHTML), o.props.type = o.props.type || "application/json"), Array.isArray(o.props.content) ? o.props.content.map((r) => ({ ...o, props: { ...o.props, content: r } })) : o;
|
|
9347
9359
|
}
|
|
9348
|
-
function
|
|
9349
|
-
const u =
|
|
9350
|
-
return d && typeof d == "object" && !Array.isArray(d) && (d = Object.entries(d).filter(([, f]) => f).map(([f, v]) =>
|
|
9360
|
+
function nu(p, d) {
|
|
9361
|
+
const u = p === "class" ? " " : ";";
|
|
9362
|
+
return d && typeof d == "object" && !Array.isArray(d) && (d = Object.entries(d).filter(([, f]) => f).map(([f, v]) => p === "style" ? `${f}:${v}` : f)), String(Array.isArray(d) ? d.join(u) : d)?.split(u).filter((f) => !!f.trim()).join(u);
|
|
9351
9363
|
}
|
|
9352
|
-
function
|
|
9364
|
+
function ms(p, d, u, f) {
|
|
9353
9365
|
for (let v = f; v < u.length; v += 1) {
|
|
9354
9366
|
const o = u[v];
|
|
9355
9367
|
if (o === "class" || o === "style") {
|
|
9356
|
-
|
|
9368
|
+
p[o] = nu(o, p[o]);
|
|
9357
9369
|
continue;
|
|
9358
9370
|
}
|
|
9359
|
-
if (
|
|
9360
|
-
return
|
|
9371
|
+
if (p[o] instanceof Promise)
|
|
9372
|
+
return p[o].then((r) => (p[o] = r, ms(p, d, u, v)));
|
|
9361
9373
|
if (!d && !_s.has(o)) {
|
|
9362
|
-
const r = String(
|
|
9363
|
-
r === "true" || r === "" ?
|
|
9374
|
+
const r = String(p[o]), l = o.startsWith("data-");
|
|
9375
|
+
r === "true" || r === "" ? p[o] = l ? "true" : !0 : p[o] || (l && r === "false" ? p[o] = "false" : delete p[o]);
|
|
9364
9376
|
}
|
|
9365
9377
|
}
|
|
9366
9378
|
}
|
|
9367
|
-
function
|
|
9368
|
-
const u =
|
|
9369
|
-
return u instanceof Promise ? u.then(() =>
|
|
9379
|
+
function gs(p, d = !1) {
|
|
9380
|
+
const u = ms(p, d, Object.keys(p), 0);
|
|
9381
|
+
return u instanceof Promise ? u.then(() => p) : p;
|
|
9370
9382
|
}
|
|
9371
|
-
const
|
|
9372
|
-
function
|
|
9383
|
+
const ou = 10;
|
|
9384
|
+
function vs(p, d, u) {
|
|
9373
9385
|
for (let f = u; f < d.length; f += 1) {
|
|
9374
9386
|
const v = d[f];
|
|
9375
9387
|
if (v instanceof Promise)
|
|
9376
|
-
return v.then((o) => (d[f] = o,
|
|
9377
|
-
Array.isArray(v) ?
|
|
9388
|
+
return v.then((o) => (d[f] = o, vs(p, d, f)));
|
|
9389
|
+
Array.isArray(v) ? p.push(...v) : p.push(v);
|
|
9378
9390
|
}
|
|
9379
9391
|
}
|
|
9380
|
-
function
|
|
9381
|
-
const d = [], u =
|
|
9392
|
+
function su(p) {
|
|
9393
|
+
const d = [], u = p.resolvedInput;
|
|
9382
9394
|
for (const v in u) {
|
|
9383
9395
|
if (!Object.prototype.hasOwnProperty.call(u, v))
|
|
9384
9396
|
continue;
|
|
9385
9397
|
const o = u[v];
|
|
9386
|
-
if (!(o === void 0 || !
|
|
9398
|
+
if (!(o === void 0 || !Ql.has(v))) {
|
|
9387
9399
|
if (Array.isArray(o)) {
|
|
9388
9400
|
for (const r of o)
|
|
9389
|
-
d.push(
|
|
9401
|
+
d.push(Qn(v, r, p));
|
|
9390
9402
|
continue;
|
|
9391
9403
|
}
|
|
9392
|
-
d.push(
|
|
9404
|
+
d.push(Qn(v, o, p));
|
|
9393
9405
|
}
|
|
9394
9406
|
}
|
|
9395
9407
|
if (d.length === 0)
|
|
9396
9408
|
return [];
|
|
9397
9409
|
const f = [];
|
|
9398
|
-
return
|
|
9410
|
+
return iu(vs(f, d, 0), () => f.map((v, o) => (v._e = p._i, p.mode && (v._m = p.mode), v._p = (p._i << ou) + o, v)));
|
|
9399
9411
|
}
|
|
9400
9412
|
const is = /* @__PURE__ */ new Set(["onload", "onerror", "onabort", "onprogress", "onloadstart"]), ns = {
|
|
9401
9413
|
// tags
|
|
@@ -9407,17 +9419,17 @@ const is = /* @__PURE__ */ new Set(["onload", "onerror", "onabort", "onprogress"
|
|
|
9407
9419
|
high: -10,
|
|
9408
9420
|
low: 20
|
|
9409
9421
|
};
|
|
9410
|
-
function tn(
|
|
9411
|
-
const d =
|
|
9422
|
+
function tn(p) {
|
|
9423
|
+
const d = p.tagPriority;
|
|
9412
9424
|
if (typeof d == "number")
|
|
9413
9425
|
return d;
|
|
9414
9426
|
let u = 100;
|
|
9415
|
-
return
|
|
9427
|
+
return p.tag === "meta" ? p.props["http-equiv"] === "content-security-policy" ? u = -30 : p.props.charset ? u = -20 : p.props.name === "viewport" && (u = -15) : p.tag === "link" && p.props.rel === "preconnect" ? u = 20 : p.tag in ns && (u = ns[p.tag]), d && d in os ? u + os[d] : u;
|
|
9416
9428
|
}
|
|
9417
|
-
const
|
|
9418
|
-
function
|
|
9419
|
-
const { props: d, tag: u } =
|
|
9420
|
-
if (
|
|
9429
|
+
const ru = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], au = ["name", "property", "http-equiv"];
|
|
9430
|
+
function ys(p) {
|
|
9431
|
+
const { props: d, tag: u } = p;
|
|
9432
|
+
if (tu.has(u))
|
|
9421
9433
|
return u;
|
|
9422
9434
|
if (u === "link" && d.rel === "canonical")
|
|
9423
9435
|
return "canonical";
|
|
@@ -9425,60 +9437,60 @@ function vs(_) {
|
|
|
9425
9437
|
return "charset";
|
|
9426
9438
|
if (d.id)
|
|
9427
9439
|
return `${u}:id:${d.id}`;
|
|
9428
|
-
for (const f of
|
|
9440
|
+
for (const f of au)
|
|
9429
9441
|
if (d[f] !== void 0)
|
|
9430
9442
|
return `${u}:${f}:${d[f]}`;
|
|
9431
9443
|
return !1;
|
|
9432
9444
|
}
|
|
9433
9445
|
const ve = "%separator";
|
|
9434
|
-
function
|
|
9446
|
+
function lu(p, d, u = !1) {
|
|
9435
9447
|
let f;
|
|
9436
9448
|
if (d === "s" || d === "pageTitle")
|
|
9437
|
-
f =
|
|
9449
|
+
f = p.pageTitle;
|
|
9438
9450
|
else if (d.includes(".")) {
|
|
9439
9451
|
const v = d.indexOf(".");
|
|
9440
|
-
f =
|
|
9452
|
+
f = p[d.substring(0, v)]?.[d.substring(v + 1)];
|
|
9441
9453
|
} else
|
|
9442
|
-
f =
|
|
9454
|
+
f = p[d];
|
|
9443
9455
|
if (f !== void 0)
|
|
9444
9456
|
return u ? (f || "").replace(/"/g, '\\"') : f || "";
|
|
9445
9457
|
}
|
|
9446
|
-
const
|
|
9447
|
-
function Ki(
|
|
9448
|
-
if (typeof
|
|
9449
|
-
return
|
|
9450
|
-
let v =
|
|
9458
|
+
const uu = new RegExp(`${ve}(?:\\s*${ve})*`, "g");
|
|
9459
|
+
function Ki(p, d, u, f = !1) {
|
|
9460
|
+
if (typeof p != "string" || !p.includes("%"))
|
|
9461
|
+
return p;
|
|
9462
|
+
let v = p;
|
|
9451
9463
|
try {
|
|
9452
|
-
v = decodeURI(
|
|
9464
|
+
v = decodeURI(p);
|
|
9453
9465
|
} catch {
|
|
9454
9466
|
}
|
|
9455
9467
|
const o = v.match(/%\w+(?:\.\w+)?/g);
|
|
9456
9468
|
if (!o)
|
|
9457
|
-
return
|
|
9458
|
-
const r =
|
|
9459
|
-
return
|
|
9469
|
+
return p;
|
|
9470
|
+
const r = p.includes(ve);
|
|
9471
|
+
return p = p.replace(/%\w+(?:\.\w+)?/g, (l) => {
|
|
9460
9472
|
if (l === ve || !o.includes(l))
|
|
9461
9473
|
return l;
|
|
9462
|
-
const c =
|
|
9474
|
+
const c = lu(d, l.slice(1), f);
|
|
9463
9475
|
return c !== void 0 ? c : l;
|
|
9464
|
-
}).trim(), r && (
|
|
9476
|
+
}).trim(), r && (p.endsWith(ve) && (p = p.slice(0, -ve.length)), p.startsWith(ve) && (p = p.slice(ve.length)), p = p.replace(uu, u).trim()), p;
|
|
9465
9477
|
}
|
|
9466
|
-
function ss(
|
|
9467
|
-
return
|
|
9478
|
+
function ss(p, d) {
|
|
9479
|
+
return p == null ? d || null : typeof p == "function" ? p(d) : p;
|
|
9468
9480
|
}
|
|
9469
|
-
async function
|
|
9470
|
-
const u = d.document ||
|
|
9471
|
-
if (!u || !
|
|
9481
|
+
async function hu(p, d = {}) {
|
|
9482
|
+
const u = d.document || p.resolvedOptions.document;
|
|
9483
|
+
if (!u || !p.dirty)
|
|
9472
9484
|
return;
|
|
9473
9485
|
const f = { shouldRender: !0, tags: [] };
|
|
9474
|
-
if (await
|
|
9475
|
-
return
|
|
9476
|
-
const o = (await
|
|
9486
|
+
if (await p.hooks.callHook("dom:beforeRender", f), !!f.shouldRender)
|
|
9487
|
+
return p._domUpdatePromise || (p._domUpdatePromise = new Promise(async (v) => {
|
|
9488
|
+
const o = (await p.resolveTags()).map((g) => ({
|
|
9477
9489
|
tag: g,
|
|
9478
|
-
id: Yi.has(g.tag) ?
|
|
9490
|
+
id: Yi.has(g.tag) ? Xn(g) : g.tag,
|
|
9479
9491
|
shouldRender: !0
|
|
9480
9492
|
}));
|
|
9481
|
-
let r =
|
|
9493
|
+
let r = p._dom;
|
|
9482
9494
|
if (!r) {
|
|
9483
9495
|
r = {
|
|
9484
9496
|
elMap: { htmlAttrs: u.documentElement, bodyAttrs: u.body }
|
|
@@ -9492,15 +9504,15 @@ async function uu(_, d = {}) {
|
|
|
9492
9504
|
continue;
|
|
9493
9505
|
const H = {
|
|
9494
9506
|
tag: C,
|
|
9495
|
-
props: await
|
|
9507
|
+
props: await gs(
|
|
9496
9508
|
S.getAttributeNames().reduce((ht, ot) => ({ ...ht, [ot]: S.getAttribute(ot) }), {})
|
|
9497
9509
|
),
|
|
9498
9510
|
innerHTML: S.innerHTML
|
|
9499
|
-
}, B =
|
|
9500
|
-
let I = B,
|
|
9511
|
+
}, B = ys(H);
|
|
9512
|
+
let I = B, $ = 1;
|
|
9501
9513
|
for (; I && g.has(I); )
|
|
9502
|
-
I = `${B}:${
|
|
9503
|
-
I && (H._d = I, g.add(I)), r.elMap[S.getAttribute("data-hid") ||
|
|
9514
|
+
I = `${B}:${$++}`;
|
|
9515
|
+
I && (H._d = I, g.add(I)), r.elMap[S.getAttribute("data-hid") || Xn(H)] = S;
|
|
9504
9516
|
}
|
|
9505
9517
|
}
|
|
9506
9518
|
}
|
|
@@ -9533,7 +9545,7 @@ async function uu(_, d = {}) {
|
|
|
9533
9545
|
if (!H)
|
|
9534
9546
|
continue;
|
|
9535
9547
|
for (const I of H.split(";")) {
|
|
9536
|
-
const
|
|
9548
|
+
const $ = I.indexOf(":"), ht = I.substring(0, $).trim(), ot = I.substring($ + 1).trim();
|
|
9537
9549
|
l(g, `${B}:${ht}`, () => {
|
|
9538
9550
|
k.style.removeProperty(ht);
|
|
9539
9551
|
}), k.style.setProperty(ht, ot);
|
|
@@ -9562,51 +9574,51 @@ async function uu(_, d = {}) {
|
|
|
9562
9574
|
g.$el = u.createElement(g.tag.tag), c(g), y[k] = y[k] || u.createDocumentFragment(), y[k].appendChild(g.$el);
|
|
9563
9575
|
}
|
|
9564
9576
|
for (const g of o)
|
|
9565
|
-
await
|
|
9577
|
+
await p.hooks.callHook("dom:renderTag", g, u, l);
|
|
9566
9578
|
y.head && u.head.appendChild(y.head), y.bodyOpen && u.body.insertBefore(y.bodyOpen, u.body.firstChild), y.bodyClose && u.body.appendChild(y.bodyClose);
|
|
9567
9579
|
for (const g in r.pendingSideEffects)
|
|
9568
9580
|
r.pendingSideEffects[g]();
|
|
9569
|
-
|
|
9581
|
+
p._dom = r, await p.hooks.callHook("dom:rendered", { renders: o }), v();
|
|
9570
9582
|
}).finally(() => {
|
|
9571
|
-
|
|
9572
|
-
})),
|
|
9583
|
+
p._domUpdatePromise = void 0, p.dirty = !1;
|
|
9584
|
+
})), p._domUpdatePromise;
|
|
9573
9585
|
}
|
|
9574
|
-
function
|
|
9586
|
+
function cu(p, d = {}) {
|
|
9575
9587
|
const u = d.delayFn || ((f) => setTimeout(f, 10));
|
|
9576
|
-
return
|
|
9577
|
-
delete
|
|
9588
|
+
return p._domDebouncedUpdatePromise = p._domDebouncedUpdatePromise || new Promise((f) => u(() => hu(p, d).then(() => {
|
|
9589
|
+
delete p._domDebouncedUpdatePromise, f();
|
|
9578
9590
|
})));
|
|
9579
9591
|
}
|
|
9580
9592
|
// @__NO_SIDE_EFFECTS__
|
|
9581
|
-
function
|
|
9593
|
+
function du(p) {
|
|
9582
9594
|
return (d) => {
|
|
9583
9595
|
const u = d.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
|
|
9584
9596
|
return u && d.push(JSON.parse(u)), {
|
|
9585
9597
|
mode: "client",
|
|
9586
9598
|
hooks: {
|
|
9587
9599
|
"entries:updated": (f) => {
|
|
9588
|
-
|
|
9600
|
+
cu(f, p);
|
|
9589
9601
|
}
|
|
9590
9602
|
}
|
|
9591
9603
|
};
|
|
9592
9604
|
};
|
|
9593
9605
|
}
|
|
9594
|
-
const
|
|
9606
|
+
const fu = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]), pu = {
|
|
9595
9607
|
hooks: {
|
|
9596
|
-
"tag:normalise": ({ tag:
|
|
9597
|
-
|
|
9598
|
-
const d =
|
|
9599
|
-
d && !d.startsWith("meta:og:") && !d.startsWith("meta:twitter:") && delete
|
|
9600
|
-
const u = d || (
|
|
9601
|
-
u && (
|
|
9608
|
+
"tag:normalise": ({ tag: p }) => {
|
|
9609
|
+
p.props.hid && (p.key = p.props.hid, delete p.props.hid), p.props.vmid && (p.key = p.props.vmid, delete p.props.vmid), p.props.key && (p.key = p.props.key, delete p.props.key);
|
|
9610
|
+
const d = ys(p);
|
|
9611
|
+
d && !d.startsWith("meta:og:") && !d.startsWith("meta:twitter:") && delete p.key;
|
|
9612
|
+
const u = d || (p.key ? `${p.tag}:${p.key}` : !1);
|
|
9613
|
+
u && (p._d = u);
|
|
9602
9614
|
},
|
|
9603
|
-
"tags:resolve": (
|
|
9615
|
+
"tags:resolve": (p) => {
|
|
9604
9616
|
const d = /* @__PURE__ */ Object.create(null);
|
|
9605
|
-
for (const f of
|
|
9606
|
-
const v = (f.key ? `${f.tag}:${f.key}` : f._d) ||
|
|
9617
|
+
for (const f of p.tags) {
|
|
9618
|
+
const v = (f.key ? `${f.tag}:${f.key}` : f._d) || Xn(f), o = d[v];
|
|
9607
9619
|
if (o) {
|
|
9608
9620
|
let l = f?.tagDuplicateStrategy;
|
|
9609
|
-
if (!l &&
|
|
9621
|
+
if (!l && fu.has(f.tag) && (l = "merge"), l === "merge") {
|
|
9610
9622
|
const c = o.props;
|
|
9611
9623
|
c.style && f.props.style && (c.style[c.style.length - 1] !== ";" && (c.style += ";"), f.props.style = `${c.style} ${f.props.style}`), c.class && f.props.class ? f.props.class = `${c.class} ${f.props.class}` : c.class && (f.props.class = c.class), d[v].props = {
|
|
9612
9624
|
...c,
|
|
@@ -9630,10 +9642,10 @@ const du = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
9630
9642
|
const v = d[f], o = v._duped;
|
|
9631
9643
|
u.push(v), o && (delete v._duped, u.push(...o));
|
|
9632
9644
|
}
|
|
9633
|
-
|
|
9645
|
+
p.tags = u, p.tags = p.tags.filter((f) => !(f.tag === "meta" && (f.props.name || f.props.property) && !f.props.content));
|
|
9634
9646
|
}
|
|
9635
9647
|
}
|
|
9636
|
-
}, _u = /* @__PURE__ */ new Set(["script", "link", "bodyAttrs"]),
|
|
9648
|
+
}, _u = /* @__PURE__ */ new Set(["script", "link", "bodyAttrs"]), mu = (p) => ({
|
|
9637
9649
|
hooks: {
|
|
9638
9650
|
"tags:resolve": (d) => {
|
|
9639
9651
|
for (const u of d.tags) {
|
|
@@ -9644,9 +9656,9 @@ const du = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
9644
9656
|
if (v[0] !== "o" || v[1] !== "n" || !Object.prototype.hasOwnProperty.call(f, v))
|
|
9645
9657
|
continue;
|
|
9646
9658
|
const o = f[v];
|
|
9647
|
-
typeof o == "function" && (
|
|
9659
|
+
typeof o == "function" && (p.ssr && is.has(v) ? f[v] = `this.dataset.${v}fired = true` : delete f[v], u._eventHandlers = u._eventHandlers || {}, u._eventHandlers[v] = o);
|
|
9648
9660
|
}
|
|
9649
|
-
|
|
9661
|
+
p.ssr && u._eventHandlers && (u.props.src || u.props.href) && (u.key = u.key || Qi(u.props.src || u.props.href));
|
|
9650
9662
|
}
|
|
9651
9663
|
},
|
|
9652
9664
|
"dom:renderTag": ({ $el: d, tag: u }) => {
|
|
@@ -9660,52 +9672,52 @@ const du = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
9660
9672
|
}
|
|
9661
9673
|
}
|
|
9662
9674
|
}
|
|
9663
|
-
}),
|
|
9675
|
+
}), gu = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), vu = {
|
|
9664
9676
|
hooks: {
|
|
9665
|
-
"tag:normalise": ({ tag:
|
|
9666
|
-
|
|
9677
|
+
"tag:normalise": ({ tag: p }) => {
|
|
9678
|
+
p.key && gu.has(p.tag) && (p.props["data-hid"] = p._h = Qi(p.key));
|
|
9667
9679
|
}
|
|
9668
9680
|
}
|
|
9669
|
-
},
|
|
9681
|
+
}, yu = {
|
|
9670
9682
|
mode: "server",
|
|
9671
9683
|
hooks: {
|
|
9672
|
-
"tags:beforeResolve": (
|
|
9684
|
+
"tags:beforeResolve": (p) => {
|
|
9673
9685
|
const d = {};
|
|
9674
9686
|
let u = !1;
|
|
9675
|
-
for (const f of
|
|
9687
|
+
for (const f of p.tags)
|
|
9676
9688
|
f._m !== "server" || f.tag !== "titleTemplate" && f.tag !== "templateParams" && f.tag !== "title" || (d[f.tag] = f.tag === "title" || f.tag === "titleTemplate" ? f.textContent : f.props, u = !0);
|
|
9677
|
-
u &&
|
|
9689
|
+
u && p.tags.push({
|
|
9678
9690
|
tag: "script",
|
|
9679
9691
|
innerHTML: JSON.stringify(d),
|
|
9680
9692
|
props: { id: "unhead:payload", type: "application/json" }
|
|
9681
9693
|
});
|
|
9682
9694
|
}
|
|
9683
9695
|
}
|
|
9684
|
-
},
|
|
9696
|
+
}, Lu = {
|
|
9685
9697
|
hooks: {
|
|
9686
|
-
"tags:resolve": (
|
|
9687
|
-
for (const d of
|
|
9698
|
+
"tags:resolve": (p) => {
|
|
9699
|
+
for (const d of p.tags)
|
|
9688
9700
|
if (typeof d.tagPriority == "string")
|
|
9689
|
-
for (const { prefix: u, offset: f } of
|
|
9701
|
+
for (const { prefix: u, offset: f } of ru) {
|
|
9690
9702
|
if (!d.tagPriority.startsWith(u))
|
|
9691
9703
|
continue;
|
|
9692
|
-
const v = d.tagPriority.substring(u.length), o =
|
|
9704
|
+
const v = d.tagPriority.substring(u.length), o = p.tags.find((r) => r._d === v)?._p;
|
|
9693
9705
|
if (o !== void 0) {
|
|
9694
9706
|
d._p = o + f;
|
|
9695
9707
|
break;
|
|
9696
9708
|
}
|
|
9697
9709
|
}
|
|
9698
|
-
|
|
9710
|
+
p.tags.sort((d, u) => {
|
|
9699
9711
|
const f = tn(d), v = tn(u);
|
|
9700
9712
|
return f < v ? -1 : f > v ? 1 : d._p - u._p;
|
|
9701
9713
|
});
|
|
9702
9714
|
}
|
|
9703
9715
|
}
|
|
9704
|
-
},
|
|
9716
|
+
}, bu = {
|
|
9705
9717
|
meta: "content",
|
|
9706
9718
|
link: "href",
|
|
9707
9719
|
htmlAttrs: "lang"
|
|
9708
|
-
},
|
|
9720
|
+
}, ku = ["innerHTML", "textContent"], wu = (p) => ({
|
|
9709
9721
|
hooks: {
|
|
9710
9722
|
"tags:resolve": (d) => {
|
|
9711
9723
|
const { tags: u } = d;
|
|
@@ -9722,14 +9734,14 @@ const du = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
9722
9734
|
for (const r of u) {
|
|
9723
9735
|
if (r.processTemplateParams === !1)
|
|
9724
9736
|
continue;
|
|
9725
|
-
const l =
|
|
9737
|
+
const l = bu[r.tag];
|
|
9726
9738
|
if (l && typeof r.props[l] == "string")
|
|
9727
9739
|
r.props[l] = Ki(r.props[l], v, o);
|
|
9728
9740
|
else if (r.processTemplateParams || r.tag === "titleTemplate" || r.tag === "title")
|
|
9729
|
-
for (const c of
|
|
9741
|
+
for (const c of ku)
|
|
9730
9742
|
typeof r[c] == "string" && (r[c] = Ki(r[c], v, o, r.tag === "script" && r.props.type.endsWith("json")));
|
|
9731
9743
|
}
|
|
9732
|
-
|
|
9744
|
+
p._templateParams = v, p._separator = o;
|
|
9733
9745
|
},
|
|
9734
9746
|
"tags:afterResolve": ({ tags: d }) => {
|
|
9735
9747
|
let u;
|
|
@@ -9737,13 +9749,13 @@ const du = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
9737
9749
|
const v = d[f];
|
|
9738
9750
|
v.tag === "title" && v.processTemplateParams !== !1 && (u = v);
|
|
9739
9751
|
}
|
|
9740
|
-
u?.textContent && (u.textContent = Ki(u.textContent,
|
|
9752
|
+
u?.textContent && (u.textContent = Ki(u.textContent, p._templateParams, p._separator));
|
|
9741
9753
|
}
|
|
9742
9754
|
}
|
|
9743
|
-
}),
|
|
9755
|
+
}), Pu = {
|
|
9744
9756
|
hooks: {
|
|
9745
|
-
"tags:resolve": (
|
|
9746
|
-
const { tags: d } =
|
|
9757
|
+
"tags:resolve": (p) => {
|
|
9758
|
+
const { tags: d } = p;
|
|
9747
9759
|
let u, f;
|
|
9748
9760
|
for (let v = 0; v < d.length; v += 1) {
|
|
9749
9761
|
const o = d[v];
|
|
@@ -9754,43 +9766,43 @@ const du = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
9754
9766
|
f.textContent,
|
|
9755
9767
|
u.textContent
|
|
9756
9768
|
);
|
|
9757
|
-
v !== null ? u.textContent = v || u.textContent :
|
|
9769
|
+
v !== null ? u.textContent = v || u.textContent : p.tags.splice(p.tags.indexOf(u), 1);
|
|
9758
9770
|
} else if (f) {
|
|
9759
9771
|
const v = ss(
|
|
9760
9772
|
f.textContent
|
|
9761
9773
|
);
|
|
9762
9774
|
v !== null && (f.textContent = v, f.tag = "title", f = void 0);
|
|
9763
9775
|
}
|
|
9764
|
-
f &&
|
|
9776
|
+
f && p.tags.splice(p.tags.indexOf(f), 1);
|
|
9765
9777
|
}
|
|
9766
9778
|
}
|
|
9767
|
-
},
|
|
9779
|
+
}, xu = {
|
|
9768
9780
|
hooks: {
|
|
9769
|
-
"tags:afterResolve": (
|
|
9770
|
-
for (const d of
|
|
9781
|
+
"tags:afterResolve": (p) => {
|
|
9782
|
+
for (const d of p.tags)
|
|
9771
9783
|
typeof d.innerHTML == "string" && (d.innerHTML && (d.props.type === "application/ld+json" || d.props.type === "application/json") ? d.innerHTML = d.innerHTML.replace(/</g, "\\u003C") : d.innerHTML = d.innerHTML.replace(new RegExp(`</${d.tag}`, "g"), `<\\/${d.tag}`));
|
|
9772
9784
|
}
|
|
9773
9785
|
}
|
|
9774
9786
|
};
|
|
9775
9787
|
// @__NO_SIDE_EFFECTS__
|
|
9776
|
-
function
|
|
9777
|
-
const d =
|
|
9778
|
-
return d.use(/* @__PURE__ */
|
|
9788
|
+
function Cu(p = {}) {
|
|
9789
|
+
const d = Tu(p);
|
|
9790
|
+
return d.use(/* @__PURE__ */ du()), d;
|
|
9779
9791
|
}
|
|
9780
|
-
function rs(
|
|
9781
|
-
return !
|
|
9792
|
+
function rs(p, d) {
|
|
9793
|
+
return !p || p === "server" && d || p === "client" && !d;
|
|
9782
9794
|
}
|
|
9783
|
-
function
|
|
9795
|
+
function Tu(p = {}) {
|
|
9784
9796
|
const d = ea();
|
|
9785
|
-
d.addHooks(
|
|
9786
|
-
const u = !
|
|
9797
|
+
d.addHooks(p.hooks || {}), p.document = p.document || (eu ? document : void 0);
|
|
9798
|
+
const u = !p.document, f = () => {
|
|
9787
9799
|
l.dirty = !0, d.callHook("entries:updated", l);
|
|
9788
9800
|
};
|
|
9789
9801
|
let v = 0, o = [];
|
|
9790
9802
|
const r = [], l = {
|
|
9791
9803
|
plugins: r,
|
|
9792
9804
|
dirty: !1,
|
|
9793
|
-
resolvedOptions:
|
|
9805
|
+
resolvedOptions: p,
|
|
9794
9806
|
hooks: d,
|
|
9795
9807
|
headEntries() {
|
|
9796
9808
|
return o;
|
|
@@ -9824,7 +9836,7 @@ function Cu(_ = {}) {
|
|
|
9824
9836
|
for (const m of c.entries) {
|
|
9825
9837
|
const y = m.resolvedInput || m.input;
|
|
9826
9838
|
if (m.resolvedInput = await (m.transform ? m.transform(y) : y), m.resolvedInput)
|
|
9827
|
-
for (const g of await
|
|
9839
|
+
for (const g of await su(m)) {
|
|
9828
9840
|
const k = { tag: g, entry: m, resolvedOptions: l.resolvedOptions };
|
|
9829
9841
|
await d.callHook("tag:normalise", k), c.tags.push(k.tag);
|
|
9830
9842
|
}
|
|
@@ -9834,29 +9846,29 @@ function Cu(_ = {}) {
|
|
|
9834
9846
|
ssr: u
|
|
9835
9847
|
};
|
|
9836
9848
|
return [
|
|
9837
|
-
fu,
|
|
9838
|
-
vu,
|
|
9839
9849
|
pu,
|
|
9840
|
-
gu,
|
|
9841
9850
|
yu,
|
|
9842
|
-
|
|
9851
|
+
mu,
|
|
9852
|
+
vu,
|
|
9853
|
+
Lu,
|
|
9843
9854
|
wu,
|
|
9844
9855
|
Pu,
|
|
9845
|
-
|
|
9856
|
+
xu,
|
|
9857
|
+
...p?.plugins || []
|
|
9846
9858
|
].forEach((c) => l.use(c)), l.hooks.callHook("init", l), l;
|
|
9847
9859
|
}
|
|
9848
|
-
const
|
|
9849
|
-
function
|
|
9850
|
-
return typeof
|
|
9860
|
+
const Mu = Pr[0] === "3";
|
|
9861
|
+
function Su(p) {
|
|
9862
|
+
return typeof p == "function" ? p() : h(p);
|
|
9851
9863
|
}
|
|
9852
|
-
function
|
|
9853
|
-
if (
|
|
9854
|
-
return
|
|
9855
|
-
const d =
|
|
9856
|
-
if (!
|
|
9864
|
+
function to(p) {
|
|
9865
|
+
if (p instanceof Promise || p instanceof Date || p instanceof RegExp)
|
|
9866
|
+
return p;
|
|
9867
|
+
const d = Su(p);
|
|
9868
|
+
if (!p || !d)
|
|
9857
9869
|
return d;
|
|
9858
9870
|
if (Array.isArray(d))
|
|
9859
|
-
return d.map((u) =>
|
|
9871
|
+
return d.map((u) => to(u));
|
|
9860
9872
|
if (typeof d == "object") {
|
|
9861
9873
|
const u = {};
|
|
9862
9874
|
for (const f in d)
|
|
@@ -9865,34 +9877,34 @@ function Qn(_) {
|
|
|
9865
9877
|
u[f] = h(d[f]);
|
|
9866
9878
|
continue;
|
|
9867
9879
|
}
|
|
9868
|
-
u[f] =
|
|
9880
|
+
u[f] = to(d[f]);
|
|
9869
9881
|
}
|
|
9870
9882
|
return u;
|
|
9871
9883
|
}
|
|
9872
9884
|
return d;
|
|
9873
9885
|
}
|
|
9874
|
-
const
|
|
9886
|
+
const Au = {
|
|
9875
9887
|
hooks: {
|
|
9876
|
-
"entries:resolve": (
|
|
9877
|
-
for (const d of
|
|
9878
|
-
d.resolvedInput =
|
|
9888
|
+
"entries:resolve": (p) => {
|
|
9889
|
+
for (const d of p.entries)
|
|
9890
|
+
d.resolvedInput = to(d.input);
|
|
9879
9891
|
}
|
|
9880
9892
|
}
|
|
9881
|
-
},
|
|
9882
|
-
function
|
|
9893
|
+
}, Ou = "usehead";
|
|
9894
|
+
function Iu(p) {
|
|
9883
9895
|
return {
|
|
9884
9896
|
install(u) {
|
|
9885
|
-
|
|
9897
|
+
Mu && (u.config.globalProperties.$unhead = p, u.config.globalProperties.$head = p, u.provide(Ou, p));
|
|
9886
9898
|
}
|
|
9887
9899
|
}.install;
|
|
9888
9900
|
}
|
|
9889
|
-
function
|
|
9890
|
-
|
|
9891
|
-
const d = /* @__PURE__ */
|
|
9892
|
-
return d.use(
|
|
9901
|
+
function Eu(p = {}) {
|
|
9902
|
+
p.domDelayFn = p.domDelayFn || ((u) => wr(() => setTimeout(() => u(), 0)));
|
|
9903
|
+
const d = /* @__PURE__ */ Cu(p);
|
|
9904
|
+
return d.use(Au), d.install = Iu(d), d;
|
|
9893
9905
|
}
|
|
9894
|
-
const
|
|
9895
|
-
class
|
|
9906
|
+
const Bu = xr(), zu = Eu(), Zu = Cr, Du = Zu();
|
|
9907
|
+
class Nu extends HTMLElement {
|
|
9896
9908
|
vueApp;
|
|
9897
9909
|
constructor() {
|
|
9898
9910
|
super();
|
|
@@ -9902,13 +9914,13 @@ class Du extends HTMLElement {
|
|
|
9902
9914
|
}
|
|
9903
9915
|
connectedCallback() {
|
|
9904
9916
|
const d = Tr(es, this.attributes);
|
|
9905
|
-
this.vueApp = Mr(es, d), this.vueApp.provide("emitter",
|
|
9917
|
+
this.vueApp = Mr(es, d), this.vueApp.provide("emitter", Du), this.vueApp.use(zu), this.vueApp.use(Bu), this.vueApp.use(Fr), this.vueApp.use(Sr), this.vueApp.use(Ur), this.vueApp.use(zr), this.vueApp.use(Br, { bootstrap: !0 });
|
|
9906
9918
|
const u = document.createElement("div");
|
|
9907
9919
|
this.vueApp.mount(u), this.appendChild(u.children[0]);
|
|
9908
9920
|
}
|
|
9909
9921
|
}
|
|
9910
|
-
window.customElements.define("konnectio-hotel",
|
|
9922
|
+
window.customElements.define("konnectio-hotel", Nu);
|
|
9911
9923
|
export {
|
|
9912
|
-
|
|
9924
|
+
Nu as default
|
|
9913
9925
|
};
|
|
9914
9926
|
//# sourceMappingURL=hotel.js.map
|