@konnectio/core 4.2.5 → 4.2.6
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-CfuzREZx.js → ActionField-C3UWUX9Y.js} +2 -2
- package/dist/ActionField-C3UWUX9Y.js.br +0 -0
- package/dist/{AvailabilitySkeleton-DB0Dlo0Q.js → AvailabilitySkeleton-D9inaLwa.js} +5 -5
- package/dist/AvailabilitySkeleton-D9inaLwa.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BTzgEpHP.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang--4XmSwhy.js} +2 -2
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang--4XmSwhy.js.br +0 -0
- package/dist/{CheckoutWindow-BHAusoq3.js → CheckoutWindow-CpKTfcY0.js} +2 -2
- package/dist/CheckoutWindow-CpKTfcY0.js.br +0 -0
- package/dist/{ErrorMessage-BGgy6DBf.js → ErrorMessage-D2VA_Cqt.js} +2 -2
- package/dist/ErrorMessage-D2VA_Cqt.js.br +0 -0
- package/dist/{EventAvailabilityForm-D0YMUBAD.js → EventAvailabilityForm-Dv1l0ZiW.js} +3 -3
- package/dist/EventAvailabilityForm-Dv1l0ZiW.js.br +0 -0
- package/dist/{Field-Cs3fpSXX.js → Field-DImJroRR.js} +3 -3
- package/dist/Field-DImJroRR.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-6XrUq9bg.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-EYTt0u4J.js} +2 -2
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-BdsA6lLD.js → SelectField.vue_vue_type_style_index_0_lang-CRibXGhn.js} +376 -374
- package/dist/SelectField.vue_vue_type_style_index_0_lang-CRibXGhn.js.br +0 -0
- package/dist/{TermsOfService-DFLoCWqK.js → TermsOfService-BdnzuaIV.js} +3 -3
- package/dist/_-bS2mOZqg.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-CFg-09HK.js → _.vue_vue_type_style_index_0_lang-BLljgKMs.js} +2 -2
- package/dist/availability.js +5 -5
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +3 -3
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/event.js +7 -7
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +7 -7
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +8 -8
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-DYFnUEPg.js → giftCard-Cuws4EFv.js} +2 -2
- package/dist/giftCard-Cuws4EFv.js.br +0 -0
- package/dist/hotel.js +834 -835
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CJuT9t_2.js → masonry.plugin-BZfBitRX.js} +5 -5
- package/dist/masonry.plugin-BZfBitRX.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-CfuzREZx.js.br +0 -0
- package/dist/AvailabilitySkeleton-DB0Dlo0Q.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BTzgEpHP.js.br +0 -0
- package/dist/CheckoutWindow-BHAusoq3.js.br +0 -0
- package/dist/ErrorMessage-BGgy6DBf.js.br +0 -0
- package/dist/EventAvailabilityForm-D0YMUBAD.js.br +0 -0
- package/dist/Field-Cs3fpSXX.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BdsA6lLD.js.br +0 -0
- package/dist/_-Dhew6VtV.js +0 -5
- package/dist/giftCard-DYFnUEPg.js.br +0 -0
- package/dist/masonry.plugin-CJuT9t_2.js.br +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { d as Nt, h as A, b as T, e as k, i as N, F as dt, v as St, J as je, K as Xn, a as lt, L as Jn, j as Pi, n as we, M as xr, u as Yt, s as jt, r as Gt, N as Mr, g as d, z as It, A as Sr, w as tt, t as I, E as ke, G as ze, f as B, q as Qn, C as Ar, c as Tt, x as ys, O as es, o as co, D as ln, S as Ir, P as Or, Q as zr, R as Er, k as Br, _ as Zr, l as Dr, m as Nr, p as Rr } from "./mitt-BJqPn_wb.js";
|
|
2
|
+
import { _ as Kt, f as Ee, b as _e, u as Ci, I as Mt, s as se, k as bi, l as to, q as pe, o as ae, r as so, a as fo, d as cn, F as Hr, H as bs, e as re, h as Li, B as Ls, J as is, x as Vr, T as be, K as Fr, p as ns, M as Gr, N as os, C as Ur, t as ss, v as $r } from "./SelectField.vue_vue_type_style_index_0_lang-CRibXGhn.js";
|
|
3
3
|
import { G as Wr } from "./style-CzdIazhD.js";
|
|
4
|
-
import { R as qr, B as
|
|
5
|
-
import { A as ea, H as ia } from "./AvailabilitySkeleton-
|
|
6
|
-
import { S as na } from "./TermsOfService-
|
|
7
|
-
import { a as ro, B as ks, C as oa, P as sa } from "./CheckoutWindow-
|
|
8
|
-
import { A as ra } from "./ActionField-
|
|
4
|
+
import { R as qr, B as dn, L as jr, S as Yr, M as Kr, T as Xr, C as Jr, b as eo, V as Qr, a as ta } from "./masonry.plugin-BZfBitRX.js";
|
|
5
|
+
import { A as ea, H as ia } from "./AvailabilitySkeleton-D9inaLwa.js";
|
|
6
|
+
import { S as na } from "./TermsOfService-BdnzuaIV.js";
|
|
7
|
+
import { a as ro, B as ks, C as oa, P as sa } from "./CheckoutWindow-CpKTfcY0.js";
|
|
8
|
+
import { A as ra } from "./ActionField-C3UWUX9Y.js";
|
|
9
9
|
import { g as aa } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
10
|
-
import { _ as ws } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang
|
|
10
|
+
import { _ as ws } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang--4XmSwhy.js";
|
|
11
11
|
function ao(a, u = {}, h) {
|
|
12
12
|
for (const p in a) {
|
|
13
13
|
const v = a[p], o = h ? `${h}:${p}` : p;
|
|
@@ -213,7 +213,7 @@ function Ts(a, u) {
|
|
|
213
213
|
y: h.y - u.offsets.y
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
const ba =
|
|
216
|
+
const ba = Nt({
|
|
217
217
|
name: "InnerImageZoom",
|
|
218
218
|
props: {
|
|
219
219
|
moveType: {
|
|
@@ -364,7 +364,7 @@ const ba = Rt({
|
|
|
364
364
|
class: "iiz__btn iiz__hint"
|
|
365
365
|
};
|
|
366
366
|
function Ma(a, u, h, p, v, o) {
|
|
367
|
-
return T(), A("figure",
|
|
367
|
+
return T(), A("figure", je({
|
|
368
368
|
class: ["iiz", {
|
|
369
369
|
...a.className && { [a.className]: a.className },
|
|
370
370
|
"iiz--drag": a.currentMoveType === "drag"
|
|
@@ -390,8 +390,8 @@ function Ma(a, u, h, p, v, o) {
|
|
|
390
390
|
})
|
|
391
391
|
}, [
|
|
392
392
|
a.validSources ? (T(), A("picture", La, [
|
|
393
|
-
(T(!0), A(dt, null, St(a.validSources, (r, c) => (T(), A("source",
|
|
394
|
-
k("img",
|
|
393
|
+
(T(!0), A(dt, null, St(a.validSources, (r, c) => (T(), A("source", je({ key: c }, { ref_for: !0 }, r), null, 16))), 128)),
|
|
394
|
+
k("img", je(a.imgAttributes, {
|
|
395
395
|
class: ["iiz__img", [a.imgAttributes.className || "", { "iiz__img--hidden": a.isZoomed, "iiz__img--abs": a.createSpacer }]],
|
|
396
396
|
style: {
|
|
397
397
|
transition: `linear 0ms opacity ${a.isZoomed ? a.fadeDuration : 0}ms, linear 0ms visibility ${a.isZoomed ? a.fadeDuration : 0}ms`
|
|
@@ -400,7 +400,7 @@ function Ma(a, u, h, p, v, o) {
|
|
|
400
400
|
width: a.width,
|
|
401
401
|
height: a.height
|
|
402
402
|
}), null, 16, ka)
|
|
403
|
-
])) : (T(), A("img",
|
|
403
|
+
])) : (T(), A("img", je({ key: 1 }, a.imgAttributes, {
|
|
404
404
|
class: ["iiz__img", [a.imgAttributes.className || "", { "iiz__img--hidden": a.isZoomed, "iiz__img--abs": a.createSpacer }]],
|
|
405
405
|
style: {
|
|
406
406
|
transition: `linear 0ms opacity ${a.isZoomed ? a.fadeDuration : 0}ms, linear 0ms visibility ${a.isZoomed ? a.fadeDuration : 0}ms`
|
|
@@ -416,7 +416,7 @@ function Ma(a, u, h, p, v, o) {
|
|
|
416
416
|
to: "body"
|
|
417
417
|
}, [
|
|
418
418
|
k("div", Pa, [
|
|
419
|
-
k("img",
|
|
419
|
+
k("img", je({
|
|
420
420
|
class: ["iiz__zoom-img", { "iiz__zoom-img--visible": a.isZoomed }],
|
|
421
421
|
alt: "",
|
|
422
422
|
draggable: !1,
|
|
@@ -442,11 +442,11 @@ function Ma(a, u, h, p, v, o) {
|
|
|
442
442
|
style: Xn({
|
|
443
443
|
transition: `linear ${a.isFullscreen ? 0 : a.fadeDuration}ms opacity, linear ${a.isFullscreen ? 0 : a.fadeDuration}ms visibility`
|
|
444
444
|
}),
|
|
445
|
-
onClick: u[0] || (u[0] =
|
|
445
|
+
onClick: u[0] || (u[0] = Pi((...r) => a.handleClose && a.handleClose(...r), ["stop"]))
|
|
446
446
|
}, null, 6)) : N("", !0)
|
|
447
447
|
])
|
|
448
448
|
])) : (T(), A(dt, { key: 1 }, [
|
|
449
|
-
k("img",
|
|
449
|
+
k("img", je({
|
|
450
450
|
class: ["iiz__zoom-img", { "iiz__zoom-img--visible": a.isZoomed }],
|
|
451
451
|
alt: "",
|
|
452
452
|
draggable: !1,
|
|
@@ -471,14 +471,14 @@ function Ma(a, u, h, p, v, o) {
|
|
|
471
471
|
style: Xn({
|
|
472
472
|
transition: `linear ${a.isFullscreen ? 0 : a.fadeDuration}ms opacity, linear ${a.isFullscreen ? 0 : a.fadeDuration}ms visibility`
|
|
473
473
|
}),
|
|
474
|
-
onClick: u[1] || (u[1] =
|
|
474
|
+
onClick: u[1] || (u[1] = Pi((...r) => a.handleClose && a.handleClose(...r), ["stop"]))
|
|
475
475
|
}, null, 6)) : N("", !0)
|
|
476
476
|
], 64))
|
|
477
477
|
], 64)) : N("", !0),
|
|
478
478
|
!a.isZoomed && !a.hideHint ? (T(), A("span", xa)) : N("", !0)
|
|
479
479
|
], 16);
|
|
480
480
|
}
|
|
481
|
-
const Sa = /* @__PURE__ */
|
|
481
|
+
const Sa = /* @__PURE__ */ Kt(ba, [["render", Ma], ["__scopeId", "data-v-915d2827"]]), Aa = { key: 0 }, Ia = { class: "konnectio-hotel-reservation-warning" }, Oa = { class: "konnectio-hotel-reservation-warning" }, za = { class: "konnectio-hotel-reservation-warning" }, Ea = { class: "konnectio-hotel-reservation-title" }, Ba = { class: "konnectio-hotel-reservation-information" }, Za = { class: "konnectio-hotel-reservation-guests" }, Da = { key: 0 }, Na = {
|
|
482
482
|
key: 0,
|
|
483
483
|
class: "konnectio-hotel-reservation-room-name"
|
|
484
484
|
};
|
|
@@ -488,7 +488,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
488
488
|
}, Ua = {
|
|
489
489
|
key: 1,
|
|
490
490
|
class: "konnectio-accept-terms"
|
|
491
|
-
}, $a = { class: "konnectio-hotel-reservation-tooltip" }, Wa = /* @__PURE__ */
|
|
491
|
+
}, $a = { class: "konnectio-hotel-reservation-tooltip" }, Wa = /* @__PURE__ */ Nt({
|
|
492
492
|
__name: "HotelReservationForm",
|
|
493
493
|
props: {
|
|
494
494
|
forceArrivalTime: {},
|
|
@@ -498,12 +498,12 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
498
498
|
prevCallback: {}
|
|
499
499
|
},
|
|
500
500
|
setup(a) {
|
|
501
|
-
const { t: u } =
|
|
501
|
+
const { t: u } = Yt(), {
|
|
502
502
|
disableNewsletterSignup: h,
|
|
503
503
|
currency: p
|
|
504
|
-
} =
|
|
504
|
+
} = jt(Ee()), {
|
|
505
505
|
hasArrivalDepartureInputs: v
|
|
506
|
-
} =
|
|
506
|
+
} = Ee(), {
|
|
507
507
|
arrivalTime: o,
|
|
508
508
|
departureTime: r,
|
|
509
509
|
roomDisplay: c,
|
|
@@ -522,25 +522,25 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
522
522
|
termsOfService: ut,
|
|
523
523
|
discountCode: st,
|
|
524
524
|
hasTermOfService: xt,
|
|
525
|
-
acceptTerms:
|
|
525
|
+
acceptTerms: Lt,
|
|
526
526
|
totalTemplateAddonPrice: Ot,
|
|
527
527
|
totalRooms: V,
|
|
528
528
|
totalAdults: at,
|
|
529
529
|
totalChildren: et,
|
|
530
530
|
templateRoomTotalPrice: Y,
|
|
531
|
-
weekendFee:
|
|
532
|
-
} =
|
|
533
|
-
function
|
|
534
|
-
return R.reduce((
|
|
531
|
+
weekendFee: kt
|
|
532
|
+
} = jt(_e()), { hasHotelLocations: mt } = jt(Ci()), { removeRoom: zt, validateDiscountCode: gt } = _e(), { getHotelLocationName: Bt } = Ci(), U = Gt(!1);
|
|
533
|
+
function me(R) {
|
|
534
|
+
return R.reduce((wt, { totalPrice: ot }) => wt + ot, 0);
|
|
535
535
|
}
|
|
536
536
|
return (R, K) => {
|
|
537
|
-
const
|
|
537
|
+
const wt = Mr("tooltip");
|
|
538
538
|
return T(), lt(qr, {
|
|
539
539
|
"discount-code": d(st),
|
|
540
540
|
"onUpdate:discountCode": K[4] || (K[4] = (ot) => It(st) ? st.value = ot : null),
|
|
541
541
|
"validate-discount-code": d(gt),
|
|
542
542
|
"total-price": d(m),
|
|
543
|
-
"weekend-fee": d(
|
|
543
|
+
"weekend-fee": d(kt),
|
|
544
544
|
"show-gift-card": R.showGiftCard,
|
|
545
545
|
"show-terms-notice": R.showTermsNotice,
|
|
546
546
|
"is-sidebar-loading": d(y),
|
|
@@ -553,16 +553,16 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
553
553
|
"price-summary": tt(() => [
|
|
554
554
|
isNaN(d(f)) && d(c).length > 0 ? (T(!0), A(dt, { key: 0 }, St(d(c), ({
|
|
555
555
|
roomGroupID: ot,
|
|
556
|
-
title:
|
|
556
|
+
title: pt,
|
|
557
557
|
variants: it
|
|
558
558
|
}) => (T(), A("div", { key: ot }, [
|
|
559
559
|
k("h6", null, [
|
|
560
|
-
k("span", null, I(d(
|
|
560
|
+
k("span", null, I(d(pe)(pt)), 1)
|
|
561
561
|
]),
|
|
562
|
-
(T(!0), A(dt, null, St(it, (X,
|
|
562
|
+
(T(!0), A(dt, null, St(it, (X, Rt) => (T(), A("div", { key: Rt }, [
|
|
563
563
|
(T(!0), A(dt, null, St(X.rooms, (vt, le) => (T(), A("ul", { key: le }, [
|
|
564
564
|
k("li", null, [
|
|
565
|
-
k("span", Ea, I(d(
|
|
565
|
+
k("span", Ea, I(d(pe)(X.name)), 1),
|
|
566
566
|
k("span", Ba, [
|
|
567
567
|
k("span", Za, [
|
|
568
568
|
k("span", null, [
|
|
@@ -589,22 +589,22 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
589
589
|
N("", !0)
|
|
590
590
|
])
|
|
591
591
|
]),
|
|
592
|
-
|
|
592
|
+
me(vt.roomAddons) > 0 ? (T(), A("li", Ra, [
|
|
593
593
|
k("span", null, I(d(u)("general.addons")), 1),
|
|
594
|
-
k("b", null, I(d(ae)(
|
|
594
|
+
k("b", null, I(d(ae)(me(vt.roomAddons), d(p))), 1)
|
|
595
595
|
])) : N("", !0)
|
|
596
596
|
]))), 128))
|
|
597
597
|
]))), 128))
|
|
598
598
|
]))), 128)) : N("", !0),
|
|
599
599
|
d(g) && d(w) ? (T(), A("div", Ha, [
|
|
600
600
|
k("h6", null, [
|
|
601
|
-
k("span", null, I(d(
|
|
601
|
+
k("span", null, I(d(pe)(d(w).name)), 1)
|
|
602
602
|
]),
|
|
603
603
|
k("div", null, [
|
|
604
604
|
k("ul", null, [
|
|
605
605
|
k("li", null, [
|
|
606
606
|
k("span", null, [
|
|
607
|
-
k("span", null, I(d(
|
|
607
|
+
k("span", null, I(d(pe)(d(g).title)), 1)
|
|
608
608
|
]),
|
|
609
609
|
k("b", null, [
|
|
610
610
|
k("span", null, I(d(ae)(d(Y), d(p))), 1)
|
|
@@ -631,8 +631,8 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
631
631
|
])),
|
|
632
632
|
d(xt) ? (T(), A("div", Ua, [
|
|
633
633
|
B(ro, {
|
|
634
|
-
modelValue: d(
|
|
635
|
-
"onUpdate:modelValue": K[2] || (K[2] = (ot) => It(
|
|
634
|
+
modelValue: d(Lt),
|
|
635
|
+
"onUpdate:modelValue": K[2] || (K[2] = (ot) => It(Lt) ? Lt.value = ot : null),
|
|
636
636
|
type: "checkbox",
|
|
637
637
|
name: "terms"
|
|
638
638
|
}, {
|
|
@@ -645,7 +645,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
645
645
|
terms: tt(() => [
|
|
646
646
|
k("a", {
|
|
647
647
|
class: "konnectio-accept-terms-link",
|
|
648
|
-
onClick: K[1] || (K[1] =
|
|
648
|
+
onClick: K[1] || (K[1] = Pi((ot) => U.value = !0, ["prevent"]))
|
|
649
649
|
}, [
|
|
650
650
|
k("span", null, I(d(to)(d(u)("general.termsAndConditions"))), 1)
|
|
651
651
|
])
|
|
@@ -658,8 +658,8 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
658
658
|
])) : N("", !0),
|
|
659
659
|
Qn(R.$slots, "actions", {}, void 0, !0),
|
|
660
660
|
B(na, {
|
|
661
|
-
modelValue:
|
|
662
|
-
"onUpdate:modelValue": K[3] || (K[3] = (ot) =>
|
|
661
|
+
modelValue: U.value,
|
|
662
|
+
"onUpdate:modelValue": K[3] || (K[3] = (ot) => U.value = ot),
|
|
663
663
|
description: d(ut)
|
|
664
664
|
}, null, 8, ["modelValue", "description"])
|
|
665
665
|
])
|
|
@@ -669,14 +669,14 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
669
669
|
]),
|
|
670
670
|
"mobile-under-price": tt(() => [
|
|
671
671
|
K[5] || (K[5] = k("span", null, "For ", -1)),
|
|
672
|
-
k("b", null, I(d(
|
|
672
|
+
k("b", null, I(d(bi)(d(S), d(x))) + " " + I(d(to)(d(bi)(d(S), d(x)) === 1 ? d(u)("booking.reservation.night") : d(u)("booking.reservation.nights"))), 1),
|
|
673
673
|
ke((T(), A("span", $a, [
|
|
674
674
|
B(Mt, {
|
|
675
675
|
icon: "circle-info",
|
|
676
676
|
type: "fas"
|
|
677
677
|
})
|
|
678
678
|
])), [
|
|
679
|
-
[
|
|
679
|
+
[wt, {
|
|
680
680
|
content: `<span>(${d(se)(d(S))} - ${d(se)(d(x))})</span>`,
|
|
681
681
|
classes: ["tooltip", "konnectio-tooltip"],
|
|
682
682
|
html: !0
|
|
@@ -696,14 +696,14 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
696
696
|
d(mt) ? (T(), A("li", Aa, [
|
|
697
697
|
k("span", null, I(d(u)("general.location")), 1),
|
|
698
698
|
k("b", null, [
|
|
699
|
-
k("span", null, I(d(
|
|
699
|
+
k("span", null, I(d(Bt)(d(Z))), 1),
|
|
700
700
|
ke(k("span", Ia, [
|
|
701
701
|
B(Mt, {
|
|
702
702
|
icon: "exclamation-triangle",
|
|
703
703
|
type: "fas"
|
|
704
704
|
})
|
|
705
705
|
], 512), [
|
|
706
|
-
[
|
|
706
|
+
[ze, d(z)]
|
|
707
707
|
])
|
|
708
708
|
])
|
|
709
709
|
])) : N("", !0),
|
|
@@ -717,7 +717,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
717
717
|
type: "fas"
|
|
718
718
|
})
|
|
719
719
|
], 512), [
|
|
720
|
-
[
|
|
720
|
+
[ze, d(H)]
|
|
721
721
|
])
|
|
722
722
|
])
|
|
723
723
|
]),
|
|
@@ -731,13 +731,13 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
731
731
|
type: "fas"
|
|
732
732
|
})
|
|
733
733
|
], 512), [
|
|
734
|
-
[
|
|
734
|
+
[ze, d(H)]
|
|
735
735
|
])
|
|
736
736
|
])
|
|
737
737
|
]),
|
|
738
738
|
k("li", null, [
|
|
739
739
|
k("span", null, I(d(u)("booking.reservation.nights")), 1),
|
|
740
|
-
k("b", null, I(d(
|
|
740
|
+
k("b", null, I(d(bi)(d(S), d(x))) + " " + I(d(to)(d(bi)(d(S), d(x)) === 1 ? d(u)("booking.reservation.night") : d(u)("booking.reservation.nights"))), 1)
|
|
741
741
|
]),
|
|
742
742
|
d(P) ? (T(!0), A(dt, { key: 1 }, St(d(P), (ot) => (T(), A("li", {
|
|
743
743
|
key: ot.id
|
|
@@ -751,10 +751,10 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
751
751
|
]), 1032, ["discount-code", "validate-discount-code", "total-price", "weekend-fee", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice", "prev-callback"]);
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
|
-
}), oo = /* @__PURE__ */
|
|
754
|
+
}), oo = /* @__PURE__ */ Kt(Wa, [["__scopeId", "data-v-867c239d"]]), qa = { id: "konnectio-hotel-guest-discount" }, ja = { class: "konnectio-panel" }, Ya = { id: "konnectio-hotel-guest-discount-title" }, Ka = ["innerHTML"], Xa = /* @__PURE__ */ Nt({
|
|
755
755
|
__name: "GuestDiscountForm",
|
|
756
756
|
setup(a) {
|
|
757
|
-
const { t: u } =
|
|
757
|
+
const { t: u } = Yt(), h = so("history"), p = _e(), { display: v } = fo(), o = Gt();
|
|
758
758
|
async function r() {
|
|
759
759
|
if (!o.value) {
|
|
760
760
|
v({
|
|
@@ -795,7 +795,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
795
795
|
])
|
|
796
796
|
]));
|
|
797
797
|
}
|
|
798
|
-
}), Ja = /* @__PURE__ */
|
|
798
|
+
}), Ja = /* @__PURE__ */ Kt(Xa, [["__scopeId", "data-v-8c6e1f7e"]]), Qa = { class: "konnectio-room-config-option" }, tl = { key: 0 }, el = { class: "konnectio-selected-room-config" }, il = { class: "konnectio-selected-room-config-people" }, nl = { key: 0 }, ol = { class: "konnectio-selected-room-config-price" }, sl = /* @__PURE__ */ Nt({
|
|
799
799
|
__name: "RoomConfigField",
|
|
800
800
|
props: {
|
|
801
801
|
modelValue: {},
|
|
@@ -806,7 +806,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
806
806
|
},
|
|
807
807
|
emits: ["update:modelValue"],
|
|
808
808
|
setup(a, { emit: u }) {
|
|
809
|
-
const { t: h } =
|
|
809
|
+
const { t: h } = Yt(), { currency: p } = jt(Ee()), v = u, o = a;
|
|
810
810
|
function r(f) {
|
|
811
811
|
v("update:modelValue", f);
|
|
812
812
|
}
|
|
@@ -814,7 +814,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
814
814
|
get: () => o.modelValue,
|
|
815
815
|
set: (f) => r(f)
|
|
816
816
|
});
|
|
817
|
-
return (f, m) => (T(), lt(
|
|
817
|
+
return (f, m) => (T(), lt(cn, {
|
|
818
818
|
modelValue: c.value,
|
|
819
819
|
"onUpdate:modelValue": m[0] || (m[0] = (y) => c.value = y),
|
|
820
820
|
label: f.label,
|
|
@@ -869,13 +869,13 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
869
869
|
_: 1
|
|
870
870
|
}, 8, ["modelValue", "label", "options", "readonly", "required"]));
|
|
871
871
|
}
|
|
872
|
-
}), rl = /* @__PURE__ */
|
|
873
|
-
var
|
|
872
|
+
}), rl = /* @__PURE__ */ Kt(sl, [["__scopeId", "data-v-c4045bfc"]]);
|
|
873
|
+
var ki = { exports: {} };
|
|
874
874
|
/* @preserve
|
|
875
875
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
876
876
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
877
877
|
*/
|
|
878
|
-
var al =
|
|
878
|
+
var al = ki.exports, us;
|
|
879
879
|
function ll() {
|
|
880
880
|
return us || (us = 1, function(a, u) {
|
|
881
881
|
(function(h, p) {
|
|
@@ -972,10 +972,10 @@ function ll() {
|
|
|
972
972
|
function xt(t) {
|
|
973
973
|
return window["webkit" + t] || window["moz" + t] || window["ms" + t];
|
|
974
974
|
}
|
|
975
|
-
var
|
|
975
|
+
var Lt = 0;
|
|
976
976
|
function Ot(t) {
|
|
977
|
-
var e = +/* @__PURE__ */ new Date(), i = Math.max(0, 16 - (e -
|
|
978
|
-
return
|
|
977
|
+
var e = +/* @__PURE__ */ new Date(), i = Math.max(0, 16 - (e - Lt));
|
|
978
|
+
return Lt = e + i, window.setTimeout(t, i);
|
|
979
979
|
}
|
|
980
980
|
var V = window.requestAnimationFrame || xt("RequestAnimationFrame") || Ot, at = window.cancelAnimationFrame || xt("CancelAnimationFrame") || xt("CancelRequestAnimationFrame") || function(t) {
|
|
981
981
|
window.clearTimeout(t);
|
|
@@ -989,7 +989,7 @@ function ll() {
|
|
|
989
989
|
function Y(t) {
|
|
990
990
|
t && at.call(window, t);
|
|
991
991
|
}
|
|
992
|
-
var
|
|
992
|
+
var kt = {
|
|
993
993
|
__proto__: null,
|
|
994
994
|
extend: v,
|
|
995
995
|
create: o,
|
|
@@ -1213,18 +1213,18 @@ function ll() {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
};
|
|
1215
1215
|
gt.addEventListener = gt.on, gt.removeEventListener = gt.clearAllEventListeners = gt.off, gt.addOneTimeEventListener = gt.once, gt.fireEvent = gt.fire, gt.hasEventListeners = gt.listens;
|
|
1216
|
-
var
|
|
1217
|
-
function
|
|
1216
|
+
var Bt = mt.extend(gt);
|
|
1217
|
+
function U(t, e, i) {
|
|
1218
1218
|
this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e;
|
|
1219
1219
|
}
|
|
1220
|
-
var
|
|
1220
|
+
var me = Math.trunc || function(t) {
|
|
1221
1221
|
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
1222
1222
|
};
|
|
1223
|
-
|
|
1223
|
+
U.prototype = {
|
|
1224
1224
|
// @method clone(): Point
|
|
1225
1225
|
// Returns a copy of the current point.
|
|
1226
1226
|
clone: function() {
|
|
1227
|
-
return new
|
|
1227
|
+
return new U(this.x, this.y);
|
|
1228
1228
|
},
|
|
1229
1229
|
// @method add(otherPoint: Point): Point
|
|
1230
1230
|
// Returns the result of addition of the current and the given points.
|
|
@@ -1264,13 +1264,13 @@ function ll() {
|
|
|
1264
1264
|
// [scaling matrix](https://en.wikipedia.org/wiki/Scaling_%28geometry%29#Matrix_representation)
|
|
1265
1265
|
// defined by `scale`.
|
|
1266
1266
|
scaleBy: function(t) {
|
|
1267
|
-
return new
|
|
1267
|
+
return new U(this.x * t.x, this.y * t.y);
|
|
1268
1268
|
},
|
|
1269
1269
|
// @method unscaleBy(scale: Point): Point
|
|
1270
1270
|
// Inverse of `scaleBy`. Divide each coordinate of the current point by
|
|
1271
1271
|
// each coordinate of `scale`.
|
|
1272
1272
|
unscaleBy: function(t) {
|
|
1273
|
-
return new
|
|
1273
|
+
return new U(this.x / t.x, this.y / t.y);
|
|
1274
1274
|
},
|
|
1275
1275
|
// @method round(): Point
|
|
1276
1276
|
// Returns a copy of the current point with rounded coordinates.
|
|
@@ -1302,7 +1302,7 @@ function ll() {
|
|
|
1302
1302
|
return this.clone()._trunc();
|
|
1303
1303
|
},
|
|
1304
1304
|
_trunc: function() {
|
|
1305
|
-
return this.x =
|
|
1305
|
+
return this.x = me(this.x), this.y = me(this.y), this;
|
|
1306
1306
|
},
|
|
1307
1307
|
// @method distanceTo(otherPoint: Point): Number
|
|
1308
1308
|
// Returns the cartesian distance between the current and the given points.
|
|
@@ -1328,7 +1328,7 @@ function ll() {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
1330
|
function R(t, e, i) {
|
|
1331
|
-
return t instanceof
|
|
1331
|
+
return t instanceof U ? t : W(t) ? new U(t[0], t[1]) : t == null ? t : typeof t == "object" && "x" in t && "y" in t ? new U(t.x, t.y) : new U(t, e, i);
|
|
1332
1332
|
}
|
|
1333
1333
|
function K(t, e) {
|
|
1334
1334
|
if (t)
|
|
@@ -1345,9 +1345,9 @@ function ll() {
|
|
|
1345
1345
|
var e, i;
|
|
1346
1346
|
if (!t)
|
|
1347
1347
|
return this;
|
|
1348
|
-
if (t instanceof
|
|
1348
|
+
if (t instanceof U || typeof t[0] == "number" || "x" in t)
|
|
1349
1349
|
e = i = R(t);
|
|
1350
|
-
else if (t =
|
|
1350
|
+
else if (t = wt(t), e = t.min, i = t.max, !e || !i)
|
|
1351
1351
|
return this;
|
|
1352
1352
|
return !this.min && !this.max ? (this.min = e.clone(), this.max = i.clone()) : (this.min.x = Math.min(e.x, this.min.x), this.max.x = Math.max(i.x, this.max.x), this.min.y = Math.min(e.y, this.min.y), this.max.y = Math.max(i.y, this.max.y)), this;
|
|
1353
1353
|
},
|
|
@@ -1392,13 +1392,13 @@ function ll() {
|
|
|
1392
1392
|
// Returns `true` if the rectangle contains the given point.
|
|
1393
1393
|
contains: function(t) {
|
|
1394
1394
|
var e, i;
|
|
1395
|
-
return typeof t[0] == "number" || t instanceof
|
|
1395
|
+
return typeof t[0] == "number" || t instanceof U ? t = R(t) : t = wt(t), t instanceof K ? (e = t.min, i = t.max) : e = i = t, e.x >= this.min.x && i.x <= this.max.x && e.y >= this.min.y && i.y <= this.max.y;
|
|
1396
1396
|
},
|
|
1397
1397
|
// @method intersects(otherBounds: Bounds): Boolean
|
|
1398
1398
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds
|
|
1399
1399
|
// intersect if they have at least one point in common.
|
|
1400
1400
|
intersects: function(t) {
|
|
1401
|
-
t =
|
|
1401
|
+
t = wt(t);
|
|
1402
1402
|
var e = this.min, i = this.max, n = t.min, s = t.max, l = s.x >= e.x && n.x <= i.x, _ = s.y >= e.y && n.y <= i.y;
|
|
1403
1403
|
return l && _;
|
|
1404
1404
|
},
|
|
@@ -1406,7 +1406,7 @@ function ll() {
|
|
|
1406
1406
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds
|
|
1407
1407
|
// overlap if their intersection is an area.
|
|
1408
1408
|
overlaps: function(t) {
|
|
1409
|
-
t =
|
|
1409
|
+
t = wt(t);
|
|
1410
1410
|
var e = this.min, i = this.max, n = t.min, s = t.max, l = s.x > e.x && n.x < i.x, _ = s.y > e.y && n.y < i.y;
|
|
1411
1411
|
return l && _;
|
|
1412
1412
|
},
|
|
@@ -1421,7 +1421,7 @@ function ll() {
|
|
|
1421
1421
|
// Negative values will retract the bounds.
|
|
1422
1422
|
pad: function(t) {
|
|
1423
1423
|
var e = this.min, i = this.max, n = Math.abs(e.x - i.x) * t, s = Math.abs(e.y - i.y) * t;
|
|
1424
|
-
return
|
|
1424
|
+
return wt(
|
|
1425
1425
|
R(e.x - n, e.y - s),
|
|
1426
1426
|
R(i.x + n, i.y + s)
|
|
1427
1427
|
);
|
|
@@ -1429,10 +1429,10 @@ function ll() {
|
|
|
1429
1429
|
// @method equals(otherBounds: Bounds): Boolean
|
|
1430
1430
|
// Returns `true` if the rectangle is equivalent to the given bounds.
|
|
1431
1431
|
equals: function(t) {
|
|
1432
|
-
return t ? (t =
|
|
1432
|
+
return t ? (t = wt(t), this.min.equals(t.getTopLeft()) && this.max.equals(t.getBottomRight())) : !1;
|
|
1433
1433
|
}
|
|
1434
1434
|
};
|
|
1435
|
-
function
|
|
1435
|
+
function wt(t, e) {
|
|
1436
1436
|
return !t || t instanceof K ? t : new K(t, e);
|
|
1437
1437
|
}
|
|
1438
1438
|
function ot(t, e) {
|
|
@@ -1454,7 +1454,7 @@ function ll() {
|
|
|
1454
1454
|
if (n = t._southWest, s = t._northEast, !n || !s)
|
|
1455
1455
|
return this;
|
|
1456
1456
|
} else
|
|
1457
|
-
return t ? this.extend(X(t) ||
|
|
1457
|
+
return t ? this.extend(X(t) || pt(t)) : this;
|
|
1458
1458
|
return !e && !i ? (this._southWest = new it(n.lat, n.lng), this._northEast = new it(s.lat, s.lng)) : (e.lat = Math.min(n.lat, e.lat), e.lng = Math.min(n.lng, e.lng), i.lat = Math.max(s.lat, i.lat), i.lng = Math.max(s.lng, i.lng)), this;
|
|
1459
1459
|
},
|
|
1460
1460
|
// @method pad(bufferRatio: Number): LatLngBounds
|
|
@@ -1522,21 +1522,21 @@ function ll() {
|
|
|
1522
1522
|
// @method contains (latlng: LatLng): Boolean
|
|
1523
1523
|
// Returns `true` if the rectangle contains the given point.
|
|
1524
1524
|
contains: function(t) {
|
|
1525
|
-
typeof t[0] == "number" || t instanceof it || "lat" in t ? t = X(t) : t =
|
|
1525
|
+
typeof t[0] == "number" || t instanceof it || "lat" in t ? t = X(t) : t = pt(t);
|
|
1526
1526
|
var e = this._southWest, i = this._northEast, n, s;
|
|
1527
1527
|
return t instanceof ot ? (n = t.getSouthWest(), s = t.getNorthEast()) : n = s = t, n.lat >= e.lat && s.lat <= i.lat && n.lng >= e.lng && s.lng <= i.lng;
|
|
1528
1528
|
},
|
|
1529
1529
|
// @method intersects(otherBounds: LatLngBounds): Boolean
|
|
1530
1530
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
|
|
1531
1531
|
intersects: function(t) {
|
|
1532
|
-
t =
|
|
1532
|
+
t = pt(t);
|
|
1533
1533
|
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), s = t.getNorthEast(), l = s.lat >= e.lat && n.lat <= i.lat, _ = s.lng >= e.lng && n.lng <= i.lng;
|
|
1534
1534
|
return l && _;
|
|
1535
1535
|
},
|
|
1536
1536
|
// @method overlaps(otherBounds: LatLngBounds): Boolean
|
|
1537
1537
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
|
|
1538
1538
|
overlaps: function(t) {
|
|
1539
|
-
t =
|
|
1539
|
+
t = pt(t);
|
|
1540
1540
|
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), s = t.getNorthEast(), l = s.lat > e.lat && n.lat < i.lat, _ = s.lng > e.lng && n.lng < i.lng;
|
|
1541
1541
|
return l && _;
|
|
1542
1542
|
},
|
|
@@ -1548,7 +1548,7 @@ function ll() {
|
|
|
1548
1548
|
// @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean
|
|
1549
1549
|
// Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.
|
|
1550
1550
|
equals: function(t, e) {
|
|
1551
|
-
return t ? (t =
|
|
1551
|
+
return t ? (t = pt(t), this._southWest.equals(t.getSouthWest(), e) && this._northEast.equals(t.getNorthEast(), e)) : !1;
|
|
1552
1552
|
},
|
|
1553
1553
|
// @method isValid(): Boolean
|
|
1554
1554
|
// Returns `true` if the bounds are properly initialized.
|
|
@@ -1556,7 +1556,7 @@ function ll() {
|
|
|
1556
1556
|
return !!(this._southWest && this._northEast);
|
|
1557
1557
|
}
|
|
1558
1558
|
};
|
|
1559
|
-
function
|
|
1559
|
+
function pt(t, e) {
|
|
1560
1560
|
return t instanceof ot ? t : new ot(t, e);
|
|
1561
1561
|
}
|
|
1562
1562
|
function it(t, e, i) {
|
|
@@ -1596,7 +1596,7 @@ function ll() {
|
|
|
1596
1596
|
// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
|
|
1597
1597
|
toBounds: function(t) {
|
|
1598
1598
|
var e = 180 * t / 40075017, i = e / Math.cos(Math.PI / 180 * this.lat);
|
|
1599
|
-
return
|
|
1599
|
+
return pt(
|
|
1600
1600
|
[this.lat - e, this.lng - i],
|
|
1601
1601
|
[this.lat + e, this.lng + i]
|
|
1602
1602
|
);
|
|
@@ -1608,7 +1608,7 @@ function ll() {
|
|
|
1608
1608
|
function X(t, e, i) {
|
|
1609
1609
|
return t instanceof it ? t : W(t) && typeof t[0] != "object" ? t.length === 3 ? new it(t[0], t[1], t[2]) : t.length === 2 ? new it(t[0], t[1]) : null : t == null ? t : typeof t == "object" && "lat" in t ? new it(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : e === void 0 ? null : new it(t, e, i);
|
|
1610
1610
|
}
|
|
1611
|
-
var
|
|
1611
|
+
var Rt = {
|
|
1612
1612
|
// @method latLngToPoint(latlng: LatLng, zoom: Number): Point
|
|
1613
1613
|
// Projects geographical coordinates into pixel coordinates for a given zoom.
|
|
1614
1614
|
latLngToPoint: function(t, e) {
|
|
@@ -1690,7 +1690,7 @@ function ll() {
|
|
|
1690
1690
|
var l = t.getSouthWest(), _ = t.getNorthEast(), b = new it(l.lat - n, l.lng - s), C = new it(_.lat - n, _.lng - s);
|
|
1691
1691
|
return new ot(b, C);
|
|
1692
1692
|
}
|
|
1693
|
-
}, vt = v({},
|
|
1693
|
+
}, vt = v({}, Rt, {
|
|
1694
1694
|
wrapLng: [-180, 180],
|
|
1695
1695
|
// Mean Earth Radius, as recommended for use by
|
|
1696
1696
|
// the International Union of Geodesy and Geophysics,
|
|
@@ -1701,12 +1701,12 @@ function ll() {
|
|
|
1701
1701
|
var i = Math.PI / 180, n = t.lat * i, s = e.lat * i, l = Math.sin((e.lat - t.lat) * i / 2), _ = Math.sin((e.lng - t.lng) * i / 2), b = l * l + Math.cos(n) * Math.cos(s) * _ * _, C = 2 * Math.atan2(Math.sqrt(b), Math.sqrt(1 - b));
|
|
1702
1702
|
return this.R * C;
|
|
1703
1703
|
}
|
|
1704
|
-
}), le = 6378137,
|
|
1704
|
+
}), le = 6378137, Xt = {
|
|
1705
1705
|
R: le,
|
|
1706
1706
|
MAX_LATITUDE: 85.0511287798,
|
|
1707
1707
|
project: function(t) {
|
|
1708
1708
|
var e = Math.PI / 180, i = this.MAX_LATITUDE, n = Math.max(Math.min(i, t.lat), -i), s = Math.sin(n * e);
|
|
1709
|
-
return new
|
|
1709
|
+
return new U(
|
|
1710
1710
|
this.R * t.lng * e,
|
|
1711
1711
|
this.R * Math.log((1 + s) / (1 - s)) / 2
|
|
1712
1712
|
);
|
|
@@ -1723,14 +1723,14 @@ function ll() {
|
|
|
1723
1723
|
return new K([-t, -t], [t, t]);
|
|
1724
1724
|
}()
|
|
1725
1725
|
};
|
|
1726
|
-
function
|
|
1726
|
+
function Ye(t, e, i, n) {
|
|
1727
1727
|
if (W(t)) {
|
|
1728
1728
|
this._a = t[0], this._b = t[1], this._c = t[2], this._d = t[3];
|
|
1729
1729
|
return;
|
|
1730
1730
|
}
|
|
1731
1731
|
this._a = t, this._b = e, this._c = i, this._d = n;
|
|
1732
1732
|
}
|
|
1733
|
-
|
|
1733
|
+
Ye.prototype = {
|
|
1734
1734
|
// @method transform(point: Point, scale?: Number): Point
|
|
1735
1735
|
// Returns a transformed point, optionally multiplied by the given scale.
|
|
1736
1736
|
// Only accepts actual `L.Point` instances, not arrays.
|
|
@@ -1745,29 +1745,29 @@ function ll() {
|
|
|
1745
1745
|
// Returns the reverse transformation of the given point, optionally divided
|
|
1746
1746
|
// by the given scale. Only accepts actual `L.Point` instances, not arrays.
|
|
1747
1747
|
untransform: function(t, e) {
|
|
1748
|
-
return e = e || 1, new
|
|
1748
|
+
return e = e || 1, new U(
|
|
1749
1749
|
(t.x / e - this._b) / this._a,
|
|
1750
1750
|
(t.y / e - this._d) / this._c
|
|
1751
1751
|
);
|
|
1752
1752
|
}
|
|
1753
1753
|
};
|
|
1754
1754
|
function Pe(t, e, i, n) {
|
|
1755
|
-
return new
|
|
1755
|
+
return new Ye(t, e, i, n);
|
|
1756
1756
|
}
|
|
1757
|
-
var
|
|
1757
|
+
var Ke = v({}, vt, {
|
|
1758
1758
|
code: "EPSG:3857",
|
|
1759
|
-
projection:
|
|
1759
|
+
projection: Xt,
|
|
1760
1760
|
transformation: function() {
|
|
1761
|
-
var t = 0.5 / (Math.PI *
|
|
1761
|
+
var t = 0.5 / (Math.PI * Xt.R);
|
|
1762
1762
|
return Pe(t, 0.5, -t, 0.5);
|
|
1763
1763
|
}()
|
|
1764
|
-
}),
|
|
1764
|
+
}), fn = v({}, Ke, {
|
|
1765
1765
|
code: "EPSG:900913"
|
|
1766
1766
|
});
|
|
1767
|
-
function
|
|
1767
|
+
function Ti(t) {
|
|
1768
1768
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function Be(t, e) {
|
|
1771
1771
|
var i = "", n, s, l, _, b, C;
|
|
1772
1772
|
for (n = 0, l = t.length; n < l; n++) {
|
|
1773
1773
|
for (b = t[n], s = 0, _ = b.length; s < _; s++)
|
|
@@ -1776,7 +1776,7 @@ function ll() {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
return i || "M0 0";
|
|
1778
1778
|
}
|
|
1779
|
-
var
|
|
1779
|
+
var Xe = document.documentElement.style, Ze = "ActiveXObject" in window, pn = Ze && !document.addEventListener, xi = "msLaunchUri" in navigator && !("documentMode" in document), Je = Vt("webkit"), Mi = Vt("android"), Qe = Vt("android 2") || Vt("android 3"), Si = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), _n = Mi && Vt("Google") && Si < 537 && !("AudioNode" in window), ti = !!window.opera, Ai = !xi && Vt("chrome"), ei = Vt("gecko") && !Je && !ti && !Ze, ii = !Ai && Vt("safari"), Ii = Vt("phantom"), De = "OTransition" in Xe, ni = navigator.platform.indexOf("Win") === 0, Oi = Ze && "transition" in Xe, oi = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Qe, zi = "MozPerspective" in Xe, mn = !window.L_DISABLE_3D && (Oi || oi || zi) && !De && !Ii, Ce = typeof orientation < "u" || Vt("mobile"), gn = Ce && Je, vn = Ce && oi, Te = !window.PointerEvent && window.MSPointerEvent, Ei = !!(window.PointerEvent || Te), Bi = "ontouchstart" in window || !!window.TouchEvent, yn = !window.L_NO_TOUCH && (Bi || Ei), bn = Ce && ti, si = Ce && ei, Zi = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, Ln = function() {
|
|
1780
1780
|
var t = !1;
|
|
1781
1781
|
try {
|
|
1782
1782
|
var e = Object.defineProperty({}, "passive", {
|
|
@@ -1788,12 +1788,12 @@ function ll() {
|
|
|
1788
1788
|
} catch {
|
|
1789
1789
|
}
|
|
1790
1790
|
return t;
|
|
1791
|
-
}(),
|
|
1791
|
+
}(), kn = function() {
|
|
1792
1792
|
return !!document.createElement("canvas").getContext;
|
|
1793
|
-
}(),
|
|
1793
|
+
}(), ri = !!(document.createElementNS && Ti("svg").createSVGRect), wn = !!ri && function() {
|
|
1794
1794
|
var t = document.createElement("div");
|
|
1795
1795
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
|
1796
|
-
}(), Pn = !
|
|
1796
|
+
}(), Pn = !ri && function() {
|
|
1797
1797
|
try {
|
|
1798
1798
|
var t = document.createElement("div");
|
|
1799
1799
|
t.innerHTML = '<v:shape adj="1"/>';
|
|
@@ -1802,98 +1802,98 @@ function ll() {
|
|
|
1802
1802
|
} catch {
|
|
1803
1803
|
return !1;
|
|
1804
1804
|
}
|
|
1805
|
-
}(),
|
|
1805
|
+
}(), ee = navigator.platform.indexOf("Mac") === 0, ai = navigator.platform.indexOf("Linux") === 0;
|
|
1806
1806
|
function Vt(t) {
|
|
1807
1807
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
1808
1808
|
}
|
|
1809
1809
|
var D = {
|
|
1810
|
-
ie:
|
|
1811
|
-
ielt9:
|
|
1812
|
-
edge:
|
|
1813
|
-
webkit:
|
|
1814
|
-
android:
|
|
1815
|
-
android23:
|
|
1816
|
-
androidStock:
|
|
1817
|
-
opera:
|
|
1818
|
-
chrome:
|
|
1819
|
-
gecko:
|
|
1820
|
-
safari:
|
|
1821
|
-
phantom:
|
|
1822
|
-
opera12:
|
|
1823
|
-
win:
|
|
1824
|
-
ie3d:
|
|
1825
|
-
webkit3d:
|
|
1826
|
-
gecko3d:
|
|
1827
|
-
any3d:
|
|
1810
|
+
ie: Ze,
|
|
1811
|
+
ielt9: pn,
|
|
1812
|
+
edge: xi,
|
|
1813
|
+
webkit: Je,
|
|
1814
|
+
android: Mi,
|
|
1815
|
+
android23: Qe,
|
|
1816
|
+
androidStock: _n,
|
|
1817
|
+
opera: ti,
|
|
1818
|
+
chrome: Ai,
|
|
1819
|
+
gecko: ei,
|
|
1820
|
+
safari: ii,
|
|
1821
|
+
phantom: Ii,
|
|
1822
|
+
opera12: De,
|
|
1823
|
+
win: ni,
|
|
1824
|
+
ie3d: Oi,
|
|
1825
|
+
webkit3d: oi,
|
|
1826
|
+
gecko3d: zi,
|
|
1827
|
+
any3d: mn,
|
|
1828
1828
|
mobile: Ce,
|
|
1829
|
-
mobileWebkit:
|
|
1830
|
-
mobileWebkit3d:
|
|
1829
|
+
mobileWebkit: gn,
|
|
1830
|
+
mobileWebkit3d: vn,
|
|
1831
1831
|
msPointer: Te,
|
|
1832
|
-
pointer:
|
|
1833
|
-
touch:
|
|
1834
|
-
touchNative:
|
|
1835
|
-
mobileOpera:
|
|
1836
|
-
mobileGecko:
|
|
1837
|
-
retina:
|
|
1838
|
-
passiveEvents:
|
|
1839
|
-
canvas:
|
|
1840
|
-
svg:
|
|
1832
|
+
pointer: Ei,
|
|
1833
|
+
touch: yn,
|
|
1834
|
+
touchNative: Bi,
|
|
1835
|
+
mobileOpera: bn,
|
|
1836
|
+
mobileGecko: si,
|
|
1837
|
+
retina: Zi,
|
|
1838
|
+
passiveEvents: Ln,
|
|
1839
|
+
canvas: kn,
|
|
1840
|
+
svg: ri,
|
|
1841
1841
|
vml: Pn,
|
|
1842
1842
|
inlineSvg: wn,
|
|
1843
|
-
mac:
|
|
1844
|
-
linux:
|
|
1845
|
-
},
|
|
1846
|
-
touchstart:
|
|
1847
|
-
touchmove:
|
|
1848
|
-
touchend:
|
|
1849
|
-
touchcancel:
|
|
1850
|
-
},
|
|
1851
|
-
touchstart:
|
|
1852
|
-
touchmove:
|
|
1853
|
-
touchend:
|
|
1854
|
-
touchcancel:
|
|
1855
|
-
},
|
|
1856
|
-
function wt(t, e, i) {
|
|
1857
|
-
return e === "touchstart" && pt(), ri[e] ? (i = ri[e].bind(this, i), t.addEventListener(si[e], i, !1), i) : (console.warn("wrong event specified:", e), g);
|
|
1858
|
-
}
|
|
1843
|
+
mac: ee,
|
|
1844
|
+
linux: ai
|
|
1845
|
+
}, Di = D.msPointer ? "MSPointerDown" : "pointerdown", Ni = D.msPointer ? "MSPointerMove" : "pointermove", Ri = D.msPointer ? "MSPointerUp" : "pointerup", Hi = D.msPointer ? "MSPointerCancel" : "pointercancel", Ne = {
|
|
1846
|
+
touchstart: Di,
|
|
1847
|
+
touchmove: Ni,
|
|
1848
|
+
touchend: Ri,
|
|
1849
|
+
touchcancel: Hi
|
|
1850
|
+
}, E = {
|
|
1851
|
+
touchstart: Jt,
|
|
1852
|
+
touchmove: Ft,
|
|
1853
|
+
touchend: Ft,
|
|
1854
|
+
touchcancel: Ft
|
|
1855
|
+
}, F = {}, yt = !1;
|
|
1859
1856
|
function J(t, e, i) {
|
|
1860
|
-
|
|
1857
|
+
return e === "touchstart" && Ut(), E[e] ? (i = E[e].bind(this, i), t.addEventListener(Ne[e], i, !1), i) : (console.warn("wrong event specified:", e), g);
|
|
1858
|
+
}
|
|
1859
|
+
function ht(t, e, i) {
|
|
1860
|
+
if (!Ne[e]) {
|
|
1861
1861
|
console.warn("wrong event specified:", e);
|
|
1862
1862
|
return;
|
|
1863
1863
|
}
|
|
1864
|
-
t.removeEventListener(
|
|
1864
|
+
t.removeEventListener(Ne[e], i, !1);
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1867
|
-
|
|
1866
|
+
function $(t) {
|
|
1867
|
+
F[t.pointerId] = t;
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1870
|
-
|
|
1869
|
+
function Zt(t) {
|
|
1870
|
+
F[t.pointerId] && (F[t.pointerId] = t);
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1873
|
-
delete
|
|
1872
|
+
function ft(t) {
|
|
1873
|
+
delete F[t.pointerId];
|
|
1874
1874
|
}
|
|
1875
|
-
function
|
|
1876
|
-
|
|
1875
|
+
function Ut() {
|
|
1876
|
+
yt || (document.addEventListener(Di, $, !0), document.addEventListener(Ni, Zt, !0), document.addEventListener(Ri, ft, !0), document.addEventListener(Hi, ft, !0), yt = !0);
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1878
|
+
function Ft(t, e) {
|
|
1879
1879
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
1880
1880
|
e.touches = [];
|
|
1881
|
-
for (var i in
|
|
1882
|
-
e.touches.push(
|
|
1881
|
+
for (var i in F)
|
|
1882
|
+
e.touches.push(F[i]);
|
|
1883
1883
|
e.changedTouches = [e], t(e);
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
|
-
function
|
|
1887
|
-
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && Et(e),
|
|
1886
|
+
function Jt(t, e) {
|
|
1887
|
+
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && Et(e), Ft(t, e);
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function Re(t) {
|
|
1890
1890
|
var e = {}, i, n;
|
|
1891
1891
|
for (n in t)
|
|
1892
1892
|
i = t[n], e[n] = i && i.bind ? i.bind(t) : i;
|
|
1893
1893
|
return t = e, e.type = "dblclick", e.detail = 2, e.isTrusted = !1, e._simulated = !0, e;
|
|
1894
1894
|
}
|
|
1895
|
-
var
|
|
1896
|
-
function
|
|
1895
|
+
var li = 200;
|
|
1896
|
+
function Cn(t, e) {
|
|
1897
1897
|
t.addEventListener("dblclick", e);
|
|
1898
1898
|
var i = 0, n;
|
|
1899
1899
|
function s(l) {
|
|
@@ -1909,7 +1909,7 @@ function ll() {
|
|
|
1909
1909
|
return C instanceof HTMLInputElement || C instanceof HTMLSelectElement;
|
|
1910
1910
|
}))) {
|
|
1911
1911
|
var b = Date.now();
|
|
1912
|
-
b - i <=
|
|
1912
|
+
b - i <= li ? (n++, n === 2 && e(Re(l))) : n = 1, i = b;
|
|
1913
1913
|
}
|
|
1914
1914
|
}
|
|
1915
1915
|
}
|
|
@@ -1921,15 +1921,15 @@ function ll() {
|
|
|
1921
1921
|
function Tn(t, e) {
|
|
1922
1922
|
t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
|
|
1923
1923
|
}
|
|
1924
|
-
var
|
|
1924
|
+
var xe = Ui(
|
|
1925
1925
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
|
1926
|
-
),
|
|
1926
|
+
), ge = Ui(
|
|
1927
1927
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
|
1928
|
-
),
|
|
1929
|
-
function
|
|
1928
|
+
), Vi = ge === "webkitTransition" || ge === "OTransition" ? ge + "End" : "transitionend";
|
|
1929
|
+
function po(t) {
|
|
1930
1930
|
return typeof t == "string" ? document.getElementById(t) : t;
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function ui(t, e) {
|
|
1933
1933
|
var i = t.style[e] || t.currentStyle && t.currentStyle[e];
|
|
1934
1934
|
if ((!i || i === "auto") && document.defaultView) {
|
|
1935
1935
|
var n = document.defaultView.getComputedStyle(t, null);
|
|
@@ -1945,22 +1945,22 @@ function ll() {
|
|
|
1945
1945
|
var e = t.parentNode;
|
|
1946
1946
|
e && e.removeChild(t);
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1948
|
+
function Fi(t) {
|
|
1949
1949
|
for (; t.firstChild; )
|
|
1950
1950
|
t.removeChild(t.firstChild);
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function He(t) {
|
|
1953
1953
|
var e = t.parentNode;
|
|
1954
1954
|
e && e.lastChild !== t && e.appendChild(t);
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1956
|
+
function Ve(t) {
|
|
1957
1957
|
var e = t.parentNode;
|
|
1958
1958
|
e && e.firstChild !== t && e.insertBefore(t, e.firstChild);
|
|
1959
1959
|
}
|
|
1960
1960
|
function xn(t, e) {
|
|
1961
1961
|
if (t.classList !== void 0)
|
|
1962
1962
|
return t.classList.contains(e);
|
|
1963
|
-
var i =
|
|
1963
|
+
var i = Gi(t);
|
|
1964
1964
|
return i.length > 0 && new RegExp("(^|\\s)" + e + "(\\s|$)").test(i);
|
|
1965
1965
|
}
|
|
1966
1966
|
function j(t, e) {
|
|
@@ -1968,20 +1968,20 @@ function ll() {
|
|
|
1968
1968
|
for (var i = S(e), n = 0, s = i.length; n < s; n++)
|
|
1969
1969
|
t.classList.add(i[n]);
|
|
1970
1970
|
else if (!xn(t, e)) {
|
|
1971
|
-
var l =
|
|
1971
|
+
var l = Gi(t);
|
|
1972
1972
|
Mn(t, (l ? l + " " : "") + e);
|
|
1973
1973
|
}
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1976
|
-
t.classList !== void 0 ? t.classList.remove(e) : Mn(t, P((" " +
|
|
1975
|
+
function bt(t, e) {
|
|
1976
|
+
t.classList !== void 0 ? t.classList.remove(e) : Mn(t, P((" " + Gi(t) + " ").replace(" " + e + " ", " ")));
|
|
1977
1977
|
}
|
|
1978
1978
|
function Mn(t, e) {
|
|
1979
1979
|
t.className.baseVal === void 0 ? t.className = e : t.className.baseVal = e;
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function Gi(t) {
|
|
1982
1982
|
return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1984
|
+
function $t(t, e) {
|
|
1985
1985
|
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style && Os(t, e);
|
|
1986
1986
|
}
|
|
1987
1987
|
function Os(t, e) {
|
|
@@ -1994,40 +1994,40 @@ function ll() {
|
|
|
1994
1994
|
}
|
|
1995
1995
|
e = Math.round(e * 100), i ? (i.Enabled = e !== 100, i.Opacity = e) : t.style.filter += " progid:" + n + "(opacity=" + e + ")";
|
|
1996
1996
|
}
|
|
1997
|
-
function
|
|
1997
|
+
function Ui(t) {
|
|
1998
1998
|
for (var e = document.documentElement.style, i = 0; i < t.length; i++)
|
|
1999
1999
|
if (t[i] in e)
|
|
2000
2000
|
return t[i];
|
|
2001
2001
|
return !1;
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2004
|
-
var n = e || new
|
|
2005
|
-
t.style[
|
|
2003
|
+
function Me(t, e, i) {
|
|
2004
|
+
var n = e || new U(0, 0);
|
|
2005
|
+
t.style[xe] = (D.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
|
|
2006
2006
|
}
|
|
2007
2007
|
function Pt(t, e) {
|
|
2008
|
-
t._leaflet_pos = e, D.any3d ?
|
|
2008
|
+
t._leaflet_pos = e, D.any3d ? Me(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2011
|
-
return t._leaflet_pos || new
|
|
2010
|
+
function Se(t) {
|
|
2011
|
+
return t._leaflet_pos || new U(0, 0);
|
|
2012
2012
|
}
|
|
2013
|
-
var
|
|
2013
|
+
var hi, ci, Sn;
|
|
2014
2014
|
if ("onselectstart" in document)
|
|
2015
|
-
|
|
2015
|
+
hi = function() {
|
|
2016
2016
|
q(window, "selectstart", Et);
|
|
2017
|
-
},
|
|
2017
|
+
}, ci = function() {
|
|
2018
2018
|
ct(window, "selectstart", Et);
|
|
2019
2019
|
};
|
|
2020
2020
|
else {
|
|
2021
|
-
var
|
|
2021
|
+
var di = Ui(
|
|
2022
2022
|
["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]
|
|
2023
2023
|
);
|
|
2024
|
-
|
|
2025
|
-
if (
|
|
2024
|
+
hi = function() {
|
|
2025
|
+
if (di) {
|
|
2026
2026
|
var t = document.documentElement.style;
|
|
2027
|
-
Sn = t[
|
|
2027
|
+
Sn = t[di], t[di] = "none";
|
|
2028
2028
|
}
|
|
2029
|
-
},
|
|
2030
|
-
|
|
2029
|
+
}, ci = function() {
|
|
2030
|
+
di && (document.documentElement.style[di] = Sn, Sn = void 0);
|
|
2031
2031
|
};
|
|
2032
2032
|
}
|
|
2033
2033
|
function An() {
|
|
@@ -2036,14 +2036,14 @@ function ll() {
|
|
|
2036
2036
|
function In() {
|
|
2037
2037
|
ct(window, "dragstart", Et);
|
|
2038
2038
|
}
|
|
2039
|
-
var
|
|
2039
|
+
var $i, On;
|
|
2040
2040
|
function zn(t) {
|
|
2041
2041
|
for (; t.tabIndex === -1; )
|
|
2042
2042
|
t = t.parentNode;
|
|
2043
|
-
t.style && (
|
|
2043
|
+
t.style && (Wi(), $i = t, On = t.style.outlineStyle, t.style.outlineStyle = "none", q(window, "keydown", Wi));
|
|
2044
2044
|
}
|
|
2045
|
-
function
|
|
2046
|
-
|
|
2045
|
+
function Wi() {
|
|
2046
|
+
$i && ($i.style.outlineStyle = On, $i = void 0, On = void 0, ct(window, "keydown", Wi));
|
|
2047
2047
|
}
|
|
2048
2048
|
function _o(t) {
|
|
2049
2049
|
do
|
|
@@ -2061,36 +2061,36 @@ function ll() {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
var zs = {
|
|
2063
2063
|
__proto__: null,
|
|
2064
|
-
TRANSFORM:
|
|
2065
|
-
TRANSITION:
|
|
2066
|
-
TRANSITION_END:
|
|
2067
|
-
get:
|
|
2068
|
-
getStyle:
|
|
2064
|
+
TRANSFORM: xe,
|
|
2065
|
+
TRANSITION: ge,
|
|
2066
|
+
TRANSITION_END: Vi,
|
|
2067
|
+
get: po,
|
|
2068
|
+
getStyle: ui,
|
|
2069
2069
|
create: rt,
|
|
2070
2070
|
remove: _t,
|
|
2071
|
-
empty:
|
|
2072
|
-
toFront:
|
|
2073
|
-
toBack:
|
|
2071
|
+
empty: Fi,
|
|
2072
|
+
toFront: He,
|
|
2073
|
+
toBack: Ve,
|
|
2074
2074
|
hasClass: xn,
|
|
2075
2075
|
addClass: j,
|
|
2076
|
-
removeClass:
|
|
2076
|
+
removeClass: bt,
|
|
2077
2077
|
setClass: Mn,
|
|
2078
|
-
getClass:
|
|
2079
|
-
setOpacity:
|
|
2080
|
-
testProp:
|
|
2081
|
-
setTransform:
|
|
2078
|
+
getClass: Gi,
|
|
2079
|
+
setOpacity: $t,
|
|
2080
|
+
testProp: Ui,
|
|
2081
|
+
setTransform: Me,
|
|
2082
2082
|
setPosition: Pt,
|
|
2083
|
-
getPosition:
|
|
2083
|
+
getPosition: Se,
|
|
2084
2084
|
get disableTextSelection() {
|
|
2085
|
-
return
|
|
2085
|
+
return hi;
|
|
2086
2086
|
},
|
|
2087
2087
|
get enableTextSelection() {
|
|
2088
|
-
return
|
|
2088
|
+
return ci;
|
|
2089
2089
|
},
|
|
2090
2090
|
disableImageDrag: An,
|
|
2091
2091
|
enableImageDrag: In,
|
|
2092
2092
|
preventOutline: zn,
|
|
2093
|
-
restoreOutline:
|
|
2093
|
+
restoreOutline: Wi,
|
|
2094
2094
|
getSizedParentNode: _o,
|
|
2095
2095
|
getScale: En
|
|
2096
2096
|
};
|
|
@@ -2139,7 +2139,7 @@ function ll() {
|
|
|
2139
2139
|
var l = function(b) {
|
|
2140
2140
|
return i.call(n || t, b || window.event);
|
|
2141
2141
|
}, _ = l;
|
|
2142
|
-
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ? l =
|
|
2142
|
+
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ? l = J(t, e, l) : D.touch && e === "dblclick" ? l = Cn(t, l) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(Bn[e] || e, l, D.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (l = function(b) {
|
|
2143
2143
|
b = b || window.event, Rn(t, b) && _(b);
|
|
2144
2144
|
}, t.addEventListener(Bn[e], l, !1)) : t.addEventListener(e, _, !1) : t.attachEvent("on" + e, l), t[ie] = t[ie] || {}, t[ie][s] = l;
|
|
2145
2145
|
}
|
|
@@ -2148,22 +2148,22 @@ function ll() {
|
|
|
2148
2148
|
var l = t[ie] && t[ie][s];
|
|
2149
2149
|
if (!l)
|
|
2150
2150
|
return this;
|
|
2151
|
-
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ?
|
|
2151
|
+
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ? ht(t, e, l) : D.touch && e === "dblclick" ? Tn(t, l) : "removeEventListener" in t ? t.removeEventListener(Bn[e] || e, l, !1) : t.detachEvent("on" + e, l), t[ie][s] = null;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function Ae(t) {
|
|
2154
2154
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
|
2155
2155
|
}
|
|
2156
2156
|
function Nn(t) {
|
|
2157
|
-
return Zn(t, "wheel",
|
|
2157
|
+
return Zn(t, "wheel", Ae), this;
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2160
|
-
return q(t, "mousedown touchstart dblclick contextmenu",
|
|
2159
|
+
function fi(t) {
|
|
2160
|
+
return q(t, "mousedown touchstart dblclick contextmenu", Ae), t._leaflet_disable_click = !0, this;
|
|
2161
2161
|
}
|
|
2162
2162
|
function Et(t) {
|
|
2163
2163
|
return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this;
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2166
|
-
return Et(t),
|
|
2165
|
+
function Ie(t) {
|
|
2166
|
+
return Et(t), Ae(t), this;
|
|
2167
2167
|
}
|
|
2168
2168
|
function go(t) {
|
|
2169
2169
|
if (t.composedPath)
|
|
@@ -2174,9 +2174,9 @@ function ll() {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
function vo(t, e) {
|
|
2176
2176
|
if (!e)
|
|
2177
|
-
return new
|
|
2177
|
+
return new U(t.clientX, t.clientY);
|
|
2178
2178
|
var i = En(e), n = i.boundingClientRect;
|
|
2179
|
-
return new
|
|
2179
|
+
return new U(
|
|
2180
2180
|
// offset.left/top values are in page scale (like clientX/Y),
|
|
2181
2181
|
// whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).
|
|
2182
2182
|
(t.clientX - n.left) / i.x - e.clientLeft,
|
|
@@ -2227,25 +2227,25 @@ function ll() {
|
|
|
2227
2227
|
__proto__: null,
|
|
2228
2228
|
on: q,
|
|
2229
2229
|
off: ct,
|
|
2230
|
-
stopPropagation:
|
|
2230
|
+
stopPropagation: Ae,
|
|
2231
2231
|
disableScrollPropagation: Nn,
|
|
2232
|
-
disableClickPropagation:
|
|
2232
|
+
disableClickPropagation: fi,
|
|
2233
2233
|
preventDefault: Et,
|
|
2234
|
-
stop:
|
|
2234
|
+
stop: Ie,
|
|
2235
2235
|
getPropagationPath: go,
|
|
2236
2236
|
getMousePosition: vo,
|
|
2237
2237
|
getWheelDelta: yo,
|
|
2238
2238
|
isExternalTarget: Rn,
|
|
2239
2239
|
addListener: q,
|
|
2240
2240
|
removeListener: ct
|
|
2241
|
-
}, bo =
|
|
2241
|
+
}, bo = Bt.extend({
|
|
2242
2242
|
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
|
|
2243
2243
|
// Run an animation of a given element to a new position, optionally setting
|
|
2244
2244
|
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
|
|
2245
2245
|
// argument of the [cubic bezier curve](https://cubic-bezier.com/#0,0,.5,1),
|
|
2246
2246
|
// `0.5` by default).
|
|
2247
2247
|
run: function(t, e, i, n) {
|
|
2248
|
-
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos =
|
|
2248
|
+
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos = Se(t), this._offset = e.subtract(this._startPos), this._startTime = +/* @__PURE__ */ new Date(), this.fire("start"), this._animate();
|
|
2249
2249
|
},
|
|
2250
2250
|
// @method stop()
|
|
2251
2251
|
// Stops the animation (if currently running).
|
|
@@ -2269,13 +2269,13 @@ function ll() {
|
|
|
2269
2269
|
_easeOut: function(t) {
|
|
2270
2270
|
return 1 - Math.pow(1 - t, this._easeOutPower);
|
|
2271
2271
|
}
|
|
2272
|
-
}), nt =
|
|
2272
|
+
}), nt = Bt.extend({
|
|
2273
2273
|
options: {
|
|
2274
2274
|
// @section Map State Options
|
|
2275
2275
|
// @option crs: CRS = L.CRS.EPSG3857
|
|
2276
2276
|
// The [Coordinate Reference System](#crs) to use. Don't change this if you're not
|
|
2277
2277
|
// sure what it means.
|
|
2278
|
-
crs:
|
|
2278
|
+
crs: Ke,
|
|
2279
2279
|
// @option center: LatLng = undefined
|
|
2280
2280
|
// Initial geographic center of the map
|
|
2281
2281
|
center: void 0,
|
|
@@ -2347,7 +2347,7 @@ function ll() {
|
|
|
2347
2347
|
trackResize: !0
|
|
2348
2348
|
},
|
|
2349
2349
|
initialize: function(t, e) {
|
|
2350
|
-
e = x(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = r(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(X(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated =
|
|
2350
|
+
e = x(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = r(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(X(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = ge && D.any3d && !D.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), q(this._proxy, Vi, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
2351
2351
|
},
|
|
2352
2352
|
// @section Methods for modifying map state
|
|
2353
2353
|
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
|
|
@@ -2384,11 +2384,11 @@ function ll() {
|
|
|
2384
2384
|
// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
|
|
2385
2385
|
// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
|
|
2386
2386
|
setZoomAround: function(t, e, i) {
|
|
2387
|
-
var n = this.getZoomScale(e), s = this.getSize().divideBy(2), l = t instanceof
|
|
2387
|
+
var n = this.getZoomScale(e), s = this.getSize().divideBy(2), l = t instanceof U ? t : this.latLngToContainerPoint(t), _ = l.subtract(s).multiplyBy(1 - 1 / n), b = this.containerPointToLatLng(s.add(_));
|
|
2388
2388
|
return this.setView(b, e, { zoom: i });
|
|
2389
2389
|
},
|
|
2390
2390
|
_getBoundsCenterZoom: function(t, e) {
|
|
2391
|
-
e = e || {}, t = t.getBounds ? t.getBounds() :
|
|
2391
|
+
e = e || {}, t = t.getBounds ? t.getBounds() : pt(t);
|
|
2392
2392
|
var i = R(e.paddingTopLeft || e.padding || [0, 0]), n = R(e.paddingBottomRight || e.padding || [0, 0]), s = this.getBoundsZoom(t, !1, i.add(n));
|
|
2393
2393
|
if (s = typeof e.maxZoom == "number" ? Math.min(e.maxZoom, s) : s, s === 1 / 0)
|
|
2394
2394
|
return {
|
|
@@ -2405,7 +2405,7 @@ function ll() {
|
|
|
2405
2405
|
// Sets a map view that contains the given geographical bounds with the
|
|
2406
2406
|
// maximum zoom level possible.
|
|
2407
2407
|
fitBounds: function(t, e) {
|
|
2408
|
-
if (t =
|
|
2408
|
+
if (t = pt(t), !t.isValid())
|
|
2409
2409
|
throw new Error("Bounds are not valid.");
|
|
2410
2410
|
var i = this._getBoundsCenterZoom(t, e);
|
|
2411
2411
|
return this.setView(i.center, i.zoom, e);
|
|
@@ -2448,36 +2448,36 @@ function ll() {
|
|
|
2448
2448
|
this._stop();
|
|
2449
2449
|
var n = this.project(this.getCenter()), s = this.project(t), l = this.getSize(), _ = this._zoom;
|
|
2450
2450
|
t = X(t), e = e === void 0 ? _ : e;
|
|
2451
|
-
var b = Math.max(l.x, l.y), C = b * this.getZoomScale(_, e), M = s.distanceTo(n) || 1, O = 1.42,
|
|
2451
|
+
var b = Math.max(l.x, l.y), C = b * this.getZoomScale(_, e), M = s.distanceTo(n) || 1, O = 1.42, G = O * O;
|
|
2452
2452
|
function Q(Ct) {
|
|
2453
|
-
var
|
|
2453
|
+
var sn = Ct ? -1 : 1, wr = Ct ? C : b, Pr = C * C - b * b + sn * G * G * M * M, Cr = 2 * wr * G * M, Kn = Pr / Cr, ts = Math.sqrt(Kn * Kn + 1) - Kn, Tr = ts < 1e-9 ? -18 : Math.log(ts);
|
|
2454
2454
|
return Tr;
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function Dt(Ct) {
|
|
2457
2457
|
return (Math.exp(Ct) - Math.exp(-Ct)) / 2;
|
|
2458
2458
|
}
|
|
2459
2459
|
function At(Ct) {
|
|
2460
2460
|
return (Math.exp(Ct) + Math.exp(-Ct)) / 2;
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2463
|
-
return
|
|
2462
|
+
function qt(Ct) {
|
|
2463
|
+
return Dt(Ct) / At(Ct);
|
|
2464
2464
|
}
|
|
2465
|
-
var
|
|
2466
|
-
function
|
|
2467
|
-
return b * (At(
|
|
2465
|
+
var Ht = Q(0);
|
|
2466
|
+
function qe(Ct) {
|
|
2467
|
+
return b * (At(Ht) / At(Ht + O * Ct));
|
|
2468
2468
|
}
|
|
2469
2469
|
function yr(Ct) {
|
|
2470
|
-
return b * (At(
|
|
2470
|
+
return b * (At(Ht) * qt(Ht + O * Ct) - Dt(Ht)) / G;
|
|
2471
2471
|
}
|
|
2472
2472
|
function br(Ct) {
|
|
2473
2473
|
return 1 - Math.pow(1 - Ct, 1.5);
|
|
2474
2474
|
}
|
|
2475
|
-
var Lr = Date.now(), Jo = (Q(1) -
|
|
2475
|
+
var Lr = Date.now(), Jo = (Q(1) - Ht) / O, kr = i.duration ? 1e3 * i.duration : 1e3 * Jo * 0.8;
|
|
2476
2476
|
function Qo() {
|
|
2477
|
-
var Ct = (Date.now() - Lr) / kr,
|
|
2477
|
+
var Ct = (Date.now() - Lr) / kr, sn = br(Ct) * Jo;
|
|
2478
2478
|
Ct <= 1 ? (this._flyToFrame = et(Qo, this), this._move(
|
|
2479
|
-
this.unproject(n.add(s.subtract(n).multiplyBy(yr(
|
|
2480
|
-
this.getScaleZoom(b /
|
|
2479
|
+
this.unproject(n.add(s.subtract(n).multiplyBy(yr(sn) / M)), _),
|
|
2480
|
+
this.getScaleZoom(b / qe(sn), _),
|
|
2481
2481
|
{ flyTo: !0 }
|
|
2482
2482
|
)) : this._move(t, e)._moveEnd(!0);
|
|
2483
2483
|
}
|
|
@@ -2493,7 +2493,7 @@ function ll() {
|
|
|
2493
2493
|
// @method setMaxBounds(bounds: LatLngBounds): this
|
|
2494
2494
|
// Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).
|
|
2495
2495
|
setMaxBounds: function(t) {
|
|
2496
|
-
return t =
|
|
2496
|
+
return t = pt(t), this.listens("moveend", this._panInsideMaxBounds) && this.off("moveend", this._panInsideMaxBounds), t.isValid() ? (this.options.maxBounds = t, this._loaded && this._panInsideMaxBounds(), this.on("moveend", this._panInsideMaxBounds)) : (this.options.maxBounds = null, this);
|
|
2497
2497
|
},
|
|
2498
2498
|
// @method setMinZoom(zoom: Number): this
|
|
2499
2499
|
// Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).
|
|
@@ -2511,7 +2511,7 @@ function ll() {
|
|
|
2511
2511
|
// Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.
|
|
2512
2512
|
panInsideBounds: function(t, e) {
|
|
2513
2513
|
this._enforcingBounds = !0;
|
|
2514
|
-
var i = this.getCenter(), n = this._limitCenter(i, this._zoom,
|
|
2514
|
+
var i = this.getCenter(), n = this._limitCenter(i, this._zoom, pt(t));
|
|
2515
2515
|
return i.equals(n) || this.panTo(n, e), this._enforcingBounds = !1, this;
|
|
2516
2516
|
},
|
|
2517
2517
|
// @method panInside(latlng: LatLng, options?: padding options): this
|
|
@@ -2521,7 +2521,7 @@ function ll() {
|
|
|
2521
2521
|
// the map will not be panned.
|
|
2522
2522
|
panInside: function(t, e) {
|
|
2523
2523
|
e = e || {};
|
|
2524
|
-
var i = R(e.paddingTopLeft || e.padding || [0, 0]), n = R(e.paddingBottomRight || e.padding || [0, 0]), s = this.project(this.getCenter()), l = this.project(t), _ = this.getPixelBounds(), b =
|
|
2524
|
+
var i = R(e.paddingTopLeft || e.padding || [0, 0]), n = R(e.paddingBottomRight || e.padding || [0, 0]), s = this.project(this.getCenter()), l = this.project(t), _ = this.getPixelBounds(), b = wt([_.min.add(i), _.max.subtract(n)]), C = b.getSize();
|
|
2525
2525
|
if (!b.contains(l)) {
|
|
2526
2526
|
this._enforcingBounds = !0;
|
|
2527
2527
|
var M = l.subtract(b.getCenter()), O = b.extend(l).getSize().subtract(C);
|
|
@@ -2690,14 +2690,14 @@ function ll() {
|
|
|
2690
2690
|
// instead returns the minimum zoom level on which the map view fits into
|
|
2691
2691
|
// the given bounds in its entirety.
|
|
2692
2692
|
getBoundsZoom: function(t, e, i) {
|
|
2693
|
-
t =
|
|
2694
|
-
var n = this.getZoom() || 0, s = this.getMinZoom(), l = this.getMaxZoom(), _ = t.getNorthWest(), b = t.getSouthEast(), C = this.getSize().subtract(i), M =
|
|
2695
|
-
return n = this.getScaleZoom(
|
|
2693
|
+
t = pt(t), i = R(i || [0, 0]);
|
|
2694
|
+
var n = this.getZoom() || 0, s = this.getMinZoom(), l = this.getMaxZoom(), _ = t.getNorthWest(), b = t.getSouthEast(), C = this.getSize().subtract(i), M = wt(this.project(b, n), this.project(_, n)).getSize(), O = D.any3d ? this.options.zoomSnap : 1, G = C.x / M.x, Q = C.y / M.y, Dt = e ? Math.max(G, Q) : Math.min(G, Q);
|
|
2695
|
+
return n = this.getScaleZoom(Dt, 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(l, n));
|
|
2696
2696
|
},
|
|
2697
2697
|
// @method getSize(): Point
|
|
2698
2698
|
// Returns the current size of the map container (in pixels).
|
|
2699
2699
|
getSize: function() {
|
|
2700
|
-
return (!this._size || this._sizeChanged) && (this._size = new
|
|
2700
|
+
return (!this._size || this._sizeChanged) && (this._size = new U(
|
|
2701
2701
|
this._container.clientWidth || 0,
|
|
2702
2702
|
this._container.clientHeight || 0
|
|
2703
2703
|
), this._sizeChanged = !1), this._size.clone();
|
|
@@ -2802,7 +2802,7 @@ function ll() {
|
|
|
2802
2802
|
// value is between -180 and +180 degrees, and the majority of the bounds
|
|
2803
2803
|
// overlaps the CRS's bounds.
|
|
2804
2804
|
wrapLatLngBounds: function(t) {
|
|
2805
|
-
return this.options.crs.wrapLatLngBounds(
|
|
2805
|
+
return this.options.crs.wrapLatLngBounds(pt(t));
|
|
2806
2806
|
},
|
|
2807
2807
|
// @method distance(latlng1: LatLng, latlng2: LatLng): Number
|
|
2808
2808
|
// Returns the distance between two geographical coordinates according to
|
|
@@ -2855,7 +2855,7 @@ function ll() {
|
|
|
2855
2855
|
},
|
|
2856
2856
|
// map initialization methods
|
|
2857
2857
|
_initContainer: function(t) {
|
|
2858
|
-
var e = this._container =
|
|
2858
|
+
var e = this._container = po(t);
|
|
2859
2859
|
if (e) {
|
|
2860
2860
|
if (e._leaflet_id)
|
|
2861
2861
|
throw new Error("Map container is already initialized.");
|
|
@@ -2865,17 +2865,17 @@ function ll() {
|
|
|
2865
2865
|
_initLayout: function() {
|
|
2866
2866
|
var t = this._container;
|
|
2867
2867
|
this._fadeAnimated = this.options.fadeAnimation && D.any3d, j(t, "leaflet-container" + (D.touch ? " leaflet-touch" : "") + (D.retina ? " leaflet-retina" : "") + (D.ielt9 ? " leaflet-oldie" : "") + (D.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
|
|
2868
|
-
var e =
|
|
2868
|
+
var e = ui(t, "position");
|
|
2869
2869
|
e !== "absolute" && e !== "relative" && e !== "fixed" && e !== "sticky" && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
|
|
2870
2870
|
},
|
|
2871
2871
|
_initPanes: function() {
|
|
2872
2872
|
var t = this._panes = {};
|
|
2873
|
-
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), Pt(this._mapPane, new
|
|
2873
|
+
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), Pt(this._mapPane, new U(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (j(t.markerPane, "leaflet-zoom-hide"), j(t.shadowPane, "leaflet-zoom-hide"));
|
|
2874
2874
|
},
|
|
2875
2875
|
// private methods that modify map state
|
|
2876
2876
|
// @section Map state change events
|
|
2877
2877
|
_resetView: function(t, e, i) {
|
|
2878
|
-
Pt(this._mapPane, new
|
|
2878
|
+
Pt(this._mapPane, new U(0, 0));
|
|
2879
2879
|
var n = !this._loaded;
|
|
2880
2880
|
this._loaded = !0, e = this._limitZoom(e), this.fire("viewprereset");
|
|
2881
2881
|
var s = this._zoom !== e;
|
|
@@ -2999,7 +2999,7 @@ function ll() {
|
|
|
2999
2999
|
},
|
|
3000
3000
|
// private methods for getting map state
|
|
3001
3001
|
_getMapPanePos: function() {
|
|
3002
|
-
return
|
|
3002
|
+
return Se(this._mapPane) || new U(0, 0);
|
|
3003
3003
|
},
|
|
3004
3004
|
_moved: function() {
|
|
3005
3005
|
var t = this._getMapPanePos();
|
|
@@ -3019,7 +3019,7 @@ function ll() {
|
|
|
3019
3019
|
},
|
|
3020
3020
|
_latLngBoundsToNewLayerBounds: function(t, e, i) {
|
|
3021
3021
|
var n = this._getNewPixelOrigin(i, e);
|
|
3022
|
-
return
|
|
3022
|
+
return wt([
|
|
3023
3023
|
this.project(t.getSouthWest(), e)._subtract(n),
|
|
3024
3024
|
this.project(t.getNorthWest(), e)._subtract(n),
|
|
3025
3025
|
this.project(t.getSouthEast(), e)._subtract(n),
|
|
@@ -3050,11 +3050,11 @@ function ll() {
|
|
|
3050
3050
|
},
|
|
3051
3051
|
// returns offset needed for pxBounds to get inside maxBounds at a specified zoom
|
|
3052
3052
|
_getBoundsOffset: function(t, e, i) {
|
|
3053
|
-
var n =
|
|
3053
|
+
var n = wt(
|
|
3054
3054
|
this.project(e.getNorthEast(), i),
|
|
3055
3055
|
this.project(e.getSouthWest(), i)
|
|
3056
3056
|
), s = n.min.subtract(t.min), l = n.max.subtract(t.max), _ = this._rebound(s.x, -l.x), b = this._rebound(s.y, -l.y);
|
|
3057
|
-
return new
|
|
3057
|
+
return new U(_, b);
|
|
3058
3058
|
},
|
|
3059
3059
|
_rebound: function(t, e) {
|
|
3060
3060
|
return t + e > 0 ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e));
|
|
@@ -3067,7 +3067,7 @@ function ll() {
|
|
|
3067
3067
|
this.fire("move");
|
|
3068
3068
|
},
|
|
3069
3069
|
_onPanTransitionEnd: function() {
|
|
3070
|
-
|
|
3070
|
+
bt(this._mapPane, "leaflet-pan-anim"), this.fire("moveend");
|
|
3071
3071
|
},
|
|
3072
3072
|
_tryAnimatedPan: function(t, e) {
|
|
3073
3073
|
var i = this._getCenterOffset(t)._trunc();
|
|
@@ -3076,8 +3076,8 @@ function ll() {
|
|
|
3076
3076
|
_createAnimProxy: function() {
|
|
3077
3077
|
var t = this._proxy = rt("div", "leaflet-proxy leaflet-zoom-animated");
|
|
3078
3078
|
this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
|
|
3079
|
-
var i =
|
|
3080
|
-
|
|
3079
|
+
var i = xe, n = this._proxy.style[i];
|
|
3080
|
+
Me(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
|
|
3081
3081
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
|
3082
3082
|
},
|
|
3083
3083
|
_destroyAnimProxy: function() {
|
|
@@ -3085,7 +3085,7 @@ function ll() {
|
|
|
3085
3085
|
},
|
|
3086
3086
|
_animMoveEnd: function() {
|
|
3087
3087
|
var t = this.getCenter(), e = this.getZoom();
|
|
3088
|
-
|
|
3088
|
+
Me(this._proxy, this.project(t, e), this.getZoomScale(e, 1));
|
|
3089
3089
|
},
|
|
3090
3090
|
_catchTransitionEnd: function(t) {
|
|
3091
3091
|
this._animatingZoom && t.propertyName.indexOf("transform") >= 0 && this._onZoomTransitionEnd();
|
|
@@ -3111,13 +3111,13 @@ function ll() {
|
|
|
3111
3111
|
}), this._tempFireZoomEvent || (this._tempFireZoomEvent = this._zoom !== this._animateToZoom), this._move(this._animateToCenter, this._animateToZoom, void 0, !0), setTimeout(r(this._onZoomTransitionEnd, this), 250));
|
|
3112
3112
|
},
|
|
3113
3113
|
_onZoomTransitionEnd: function() {
|
|
3114
|
-
this._animatingZoom && (this._mapPane &&
|
|
3114
|
+
this._animatingZoom && (this._mapPane && bt(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));
|
|
3115
3115
|
}
|
|
3116
3116
|
});
|
|
3117
3117
|
function Zs(t, e) {
|
|
3118
3118
|
return new nt(t, e);
|
|
3119
3119
|
}
|
|
3120
|
-
var
|
|
3120
|
+
var Qt = mt.extend({
|
|
3121
3121
|
// @section
|
|
3122
3122
|
// @aka Control Options
|
|
3123
3123
|
options: {
|
|
@@ -3164,8 +3164,8 @@ function ll() {
|
|
|
3164
3164
|
_refocusOnMap: function(t) {
|
|
3165
3165
|
this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
|
|
3166
3166
|
}
|
|
3167
|
-
}),
|
|
3168
|
-
return new
|
|
3167
|
+
}), pi = function(t) {
|
|
3168
|
+
return new Qt(t);
|
|
3169
3169
|
};
|
|
3170
3170
|
nt.include({
|
|
3171
3171
|
// @method addControl(control: Control): this
|
|
@@ -3192,7 +3192,7 @@ function ll() {
|
|
|
3192
3192
|
_t(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
3193
3193
|
}
|
|
3194
3194
|
});
|
|
3195
|
-
var Lo =
|
|
3195
|
+
var Lo = Qt.extend({
|
|
3196
3196
|
// @section
|
|
3197
3197
|
// @aka Control.Layers options
|
|
3198
3198
|
options: {
|
|
@@ -3234,7 +3234,7 @@ function ll() {
|
|
|
3234
3234
|
return this._container;
|
|
3235
3235
|
},
|
|
3236
3236
|
addTo: function(t) {
|
|
3237
|
-
return
|
|
3237
|
+
return Qt.prototype.addTo.call(this, t), this._expandIfNotCollapsed();
|
|
3238
3238
|
},
|
|
3239
3239
|
onRemove: function() {
|
|
3240
3240
|
this._map.off("zoomend", this._checkDisabledLayers, this);
|
|
@@ -3263,16 +3263,16 @@ function ll() {
|
|
|
3263
3263
|
expand: function() {
|
|
3264
3264
|
j(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
|
|
3265
3265
|
var t = this._map.getSize().y - (this._container.offsetTop + 50);
|
|
3266
|
-
return t < this._section.clientHeight ? (j(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") :
|
|
3266
|
+
return t < this._section.clientHeight ? (j(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") : bt(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
|
|
3267
3267
|
},
|
|
3268
3268
|
// @method collapse(): this
|
|
3269
3269
|
// Collapse the control container if expanded.
|
|
3270
3270
|
collapse: function() {
|
|
3271
|
-
return
|
|
3271
|
+
return bt(this._container, "leaflet-control-layers-expanded"), this;
|
|
3272
3272
|
},
|
|
3273
3273
|
_initLayout: function() {
|
|
3274
3274
|
var t = "leaflet-control-layers", e = this._container = rt("div", t), i = this.options.collapsed;
|
|
3275
|
-
e.setAttribute("aria-haspopup", !0),
|
|
3275
|
+
e.setAttribute("aria-haspopup", !0), fi(e), Nn(e);
|
|
3276
3276
|
var n = this._section = rt("section", t + "-list");
|
|
3277
3277
|
i && (this._map.on("click", this.collapse, this), q(e, {
|
|
3278
3278
|
mouseenter: this._expandSafely,
|
|
@@ -3306,7 +3306,7 @@ function ll() {
|
|
|
3306
3306
|
_update: function() {
|
|
3307
3307
|
if (!this._container)
|
|
3308
3308
|
return this;
|
|
3309
|
-
|
|
3309
|
+
Fi(this._baseLayersList), Fi(this._overlaysList), this._layerControlInputs = [];
|
|
3310
3310
|
var t, e, i, n, s = 0;
|
|
3311
3311
|
for (i = 0; i < this._layers.length; i++)
|
|
3312
3312
|
n = this._layers[i], this._addItem(n), e = e || n.overlay, t = t || !n.overlay, s += n.overlay ? 0 : 1;
|
|
@@ -3362,7 +3362,7 @@ function ll() {
|
|
|
3362
3362
|
}
|
|
3363
3363
|
}), Ds = function(t, e, i) {
|
|
3364
3364
|
return new Lo(t, e, i);
|
|
3365
|
-
}, Hn =
|
|
3365
|
+
}, Hn = Qt.extend({
|
|
3366
3366
|
// @section
|
|
3367
3367
|
// @aka Control.Zoom options
|
|
3368
3368
|
options: {
|
|
@@ -3413,11 +3413,11 @@ function ll() {
|
|
|
3413
3413
|
},
|
|
3414
3414
|
_createButton: function(t, e, i, n, s) {
|
|
3415
3415
|
var l = rt("a", i, n);
|
|
3416
|
-
return l.innerHTML = t, l.href = "#", l.title = e, l.setAttribute("role", "button"), l.setAttribute("aria-label", e),
|
|
3416
|
+
return l.innerHTML = t, l.href = "#", l.title = e, l.setAttribute("role", "button"), l.setAttribute("aria-label", e), fi(l), q(l, "click", Ie), q(l, "click", s, this), q(l, "click", this._refocusOnMap, this), l;
|
|
3417
3417
|
},
|
|
3418
3418
|
_updateDisabled: function() {
|
|
3419
3419
|
var t = this._map, e = "leaflet-disabled";
|
|
3420
|
-
|
|
3420
|
+
bt(this._zoomInButton, e), bt(this._zoomOutButton, e), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || t._zoom === t.getMinZoom()) && (j(this._zoomOutButton, e), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || t._zoom === t.getMaxZoom()) && (j(this._zoomInButton, e), this._zoomInButton.setAttribute("aria-disabled", "true"));
|
|
3421
3421
|
}
|
|
3422
3422
|
});
|
|
3423
3423
|
nt.mergeOptions({
|
|
@@ -3427,7 +3427,7 @@ function ll() {
|
|
|
3427
3427
|
});
|
|
3428
3428
|
var Ns = function(t) {
|
|
3429
3429
|
return new Hn(t);
|
|
3430
|
-
}, ko =
|
|
3430
|
+
}, ko = Qt.extend({
|
|
3431
3431
|
// @section
|
|
3432
3432
|
// @aka Control.Scale options
|
|
3433
3433
|
options: {
|
|
@@ -3481,7 +3481,7 @@ function ll() {
|
|
|
3481
3481
|
}
|
|
3482
3482
|
}), Rs = function(t) {
|
|
3483
3483
|
return new ko(t);
|
|
3484
|
-
}, Hs = '<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>', Vn =
|
|
3484
|
+
}, Hs = '<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>', Vn = Qt.extend({
|
|
3485
3485
|
// @section
|
|
3486
3486
|
// @aka Control.Attribution options
|
|
3487
3487
|
options: {
|
|
@@ -3494,7 +3494,7 @@ function ll() {
|
|
|
3494
3494
|
x(this, t), this._attributions = {};
|
|
3495
3495
|
},
|
|
3496
3496
|
onAdd: function(t) {
|
|
3497
|
-
t.attributionControl = this, this._container = rt("div", "leaflet-control-attribution"),
|
|
3497
|
+
t.attributionControl = this, this._container = rt("div", "leaflet-control-attribution"), fi(this._container);
|
|
3498
3498
|
for (var e in t._layers)
|
|
3499
3499
|
t._layers[e].getAttribution && this.addAttribution(t._layers[e].getAttribution());
|
|
3500
3500
|
return this._update(), t.on("layeradd", this._addAttribution, this), this._container;
|
|
@@ -3540,7 +3540,7 @@ function ll() {
|
|
|
3540
3540
|
var Vs = function(t) {
|
|
3541
3541
|
return new Vn(t);
|
|
3542
3542
|
};
|
|
3543
|
-
|
|
3543
|
+
Qt.Layers = Lo, Qt.Zoom = Hn, Qt.Scale = ko, Qt.Attribution = Vn, pi.layers = Ds, pi.zoom = Ns, pi.scale = Rs, pi.attribution = Vs;
|
|
3544
3544
|
var ne = mt.extend({
|
|
3545
3545
|
initialize: function(t) {
|
|
3546
3546
|
this._map = t;
|
|
@@ -3570,7 +3570,7 @@ function ll() {
|
|
|
3570
3570
|
ne.addTo = function(t, e) {
|
|
3571
3571
|
return t.addHandler(e, this), this;
|
|
3572
3572
|
};
|
|
3573
|
-
var Fs = { Events: gt }, wo = D.touch ? "touchstart mousedown" : "mousedown", ve =
|
|
3573
|
+
var Fs = { Events: gt }, wo = D.touch ? "touchstart mousedown" : "mousedown", ve = Bt.extend({
|
|
3574
3574
|
options: {
|
|
3575
3575
|
// @section
|
|
3576
3576
|
// @aka Draggable options
|
|
@@ -3600,10 +3600,10 @@ function ll() {
|
|
|
3600
3600
|
ve._dragging === this && this.finishDrag();
|
|
3601
3601
|
return;
|
|
3602
3602
|
}
|
|
3603
|
-
if (!(ve._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (ve._dragging = this, this._preventOutline && zn(this._element), An(),
|
|
3603
|
+
if (!(ve._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (ve._dragging = this, this._preventOutline && zn(this._element), An(), hi(), !this._moving)) {
|
|
3604
3604
|
this.fire("down");
|
|
3605
3605
|
var e = t.touches ? t.touches[0] : t, i = _o(this._element);
|
|
3606
|
-
this._startPoint = new
|
|
3606
|
+
this._startPoint = new U(e.clientX, e.clientY), this._startPos = Se(this._element), this._parentScale = En(i);
|
|
3607
3607
|
var n = t.type === "mousedown";
|
|
3608
3608
|
q(document, n ? "mousemove" : "touchmove", this._onMove, this), q(document, n ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
|
3609
3609
|
}
|
|
@@ -3615,7 +3615,7 @@ function ll() {
|
|
|
3615
3615
|
this._moved = !0;
|
|
3616
3616
|
return;
|
|
3617
3617
|
}
|
|
3618
|
-
var e = t.touches && t.touches.length === 1 ? t.touches[0] : t, i = new
|
|
3618
|
+
var e = t.touches && t.touches.length === 1 ? t.touches[0] : t, i = new U(e.clientX, e.clientY)._subtract(this._startPoint);
|
|
3619
3619
|
!i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y, Et(t), this._moved || (this.fire("dragstart"), this._moved = !0, j(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), j(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(i), this._moving = !0, this._lastEvent = t, this._updatePosition());
|
|
3620
3620
|
}
|
|
3621
3621
|
},
|
|
@@ -3627,7 +3627,7 @@ function ll() {
|
|
|
3627
3627
|
this._enabled && this.finishDrag();
|
|
3628
3628
|
},
|
|
3629
3629
|
finishDrag: function(t) {
|
|
3630
|
-
|
|
3630
|
+
bt(document.body, "leaflet-dragging"), this._lastTarget && (bt(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), ct(document, "mousemove touchmove", this._onMove, this), ct(document, "mouseup touchend touchcancel", this._onUp, this), In(), ci();
|
|
3631
3631
|
var e = this._moved && this._moving;
|
|
3632
3632
|
this._moving = !1, ve._dragging = !1, e && this.fire("dragend", {
|
|
3633
3633
|
noInertia: t,
|
|
@@ -3636,12 +3636,12 @@ function ll() {
|
|
|
3636
3636
|
}
|
|
3637
3637
|
});
|
|
3638
3638
|
function Po(t, e, i) {
|
|
3639
|
-
var n, s = [1, 4, 2, 8], l, _, b, C, M, O,
|
|
3639
|
+
var n, s = [1, 4, 2, 8], l, _, b, C, M, O, G, Q;
|
|
3640
3640
|
for (l = 0, O = t.length; l < O; l++)
|
|
3641
|
-
t[l]._code =
|
|
3641
|
+
t[l]._code = Oe(t[l], e);
|
|
3642
3642
|
for (b = 0; b < 4; b++) {
|
|
3643
|
-
for (
|
|
3644
|
-
C = t[l], M = t[_], C._code &
|
|
3643
|
+
for (G = s[b], n = [], l = 0, O = t.length, _ = O - 1; l < O; _ = l++)
|
|
3644
|
+
C = t[l], M = t[_], C._code & G ? M._code & G || (Q = qi(M, C, G, e, i), Q._code = Oe(Q, e), n.push(Q)) : (M._code & G && (Q = qi(M, C, G, e, i), Q._code = Oe(Q, e), n.push(Q)), n.push(C));
|
|
3645
3645
|
t = n;
|
|
3646
3646
|
}
|
|
3647
3647
|
return t;
|
|
@@ -3650,19 +3650,19 @@ function ll() {
|
|
|
3650
3650
|
var i, n, s, l, _, b, C, M, O;
|
|
3651
3651
|
if (!t || t.length === 0)
|
|
3652
3652
|
throw new Error("latlngs not passed");
|
|
3653
|
-
|
|
3654
|
-
var
|
|
3655
|
-
|
|
3656
|
-
var At = t.length,
|
|
3653
|
+
Wt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
3654
|
+
var G = X([0, 0]), Q = pt(t), Dt = Q.getNorthWest().distanceTo(Q.getSouthWest()) * Q.getNorthEast().distanceTo(Q.getNorthWest());
|
|
3655
|
+
Dt < 1700 && (G = Fn(t));
|
|
3656
|
+
var At = t.length, qt = [];
|
|
3657
3657
|
for (i = 0; i < At; i++) {
|
|
3658
|
-
var
|
|
3659
|
-
|
|
3658
|
+
var Ht = X(t[i]);
|
|
3659
|
+
qt.push(e.project(X([Ht.lat - G.lat, Ht.lng - G.lng])));
|
|
3660
3660
|
}
|
|
3661
3661
|
for (b = C = M = 0, i = 0, n = At - 1; i < At; n = i++)
|
|
3662
|
-
s =
|
|
3663
|
-
b === 0 ? O =
|
|
3664
|
-
var
|
|
3665
|
-
return X([
|
|
3662
|
+
s = qt[i], l = qt[n], _ = s.y * l.x - l.y * s.x, C += (s.x + l.x) * _, M += (s.y + l.y) * _, b += _ * 3;
|
|
3663
|
+
b === 0 ? O = qt[0] : O = [C / b, M / b];
|
|
3664
|
+
var qe = e.unproject(R(O));
|
|
3665
|
+
return X([qe.lat + G.lat, qe.lng + G.lng]);
|
|
3666
3666
|
}
|
|
3667
3667
|
function Fn(t) {
|
|
3668
3668
|
for (var e = 0, i = 0, n = 0, s = 0; s < t.length; s++) {
|
|
@@ -3684,10 +3684,10 @@ function ll() {
|
|
|
3684
3684
|
return t = Ws(t, i), t = $s(t, i), t;
|
|
3685
3685
|
}
|
|
3686
3686
|
function xo(t, e, i) {
|
|
3687
|
-
return Math.sqrt(
|
|
3687
|
+
return Math.sqrt(_i(t, e, i, !0));
|
|
3688
3688
|
}
|
|
3689
3689
|
function Us(t, e, i) {
|
|
3690
|
-
return
|
|
3690
|
+
return _i(t, e, i);
|
|
3691
3691
|
}
|
|
3692
3692
|
function $s(t, e) {
|
|
3693
3693
|
var i = t.length, n = typeof Uint8Array < "u" ? Uint8Array : Array, s = new n(i);
|
|
@@ -3700,7 +3700,7 @@ function ll() {
|
|
|
3700
3700
|
function Gn(t, e, i, n, s) {
|
|
3701
3701
|
var l = 0, _, b, C;
|
|
3702
3702
|
for (b = n + 1; b <= s - 1; b++)
|
|
3703
|
-
C =
|
|
3703
|
+
C = _i(t[b], t[n], t[s], !0), C > l && (_ = b, l = C);
|
|
3704
3704
|
l > i && (e[_] = 1, Gn(t, e, i, n, _), Gn(t, e, i, _, s));
|
|
3705
3705
|
}
|
|
3706
3706
|
function Ws(t, e) {
|
|
@@ -3710,20 +3710,20 @@ function ll() {
|
|
|
3710
3710
|
}
|
|
3711
3711
|
var Mo;
|
|
3712
3712
|
function So(t, e, i, n, s) {
|
|
3713
|
-
var l = n ? Mo :
|
|
3713
|
+
var l = n ? Mo : Oe(t, i), _ = Oe(e, i), b, C, M;
|
|
3714
3714
|
for (Mo = _; ; ) {
|
|
3715
3715
|
if (!(l | _))
|
|
3716
3716
|
return [t, e];
|
|
3717
3717
|
if (l & _)
|
|
3718
3718
|
return !1;
|
|
3719
|
-
b = l || _, C =
|
|
3719
|
+
b = l || _, C = qi(t, e, b, i, s), M = Oe(C, i), b === l ? (t = C, l = M) : (e = C, _ = M);
|
|
3720
3720
|
}
|
|
3721
3721
|
}
|
|
3722
|
-
function
|
|
3722
|
+
function qi(t, e, i, n, s) {
|
|
3723
3723
|
var l = e.x - t.x, _ = e.y - t.y, b = n.min, C = n.max, M, O;
|
|
3724
|
-
return i & 8 ? (M = t.x + l * (C.y - t.y) / _, O = C.y) : i & 4 ? (M = t.x + l * (b.y - t.y) / _, O = b.y) : i & 2 ? (M = C.x, O = t.y + _ * (C.x - t.x) / l) : i & 1 && (M = b.x, O = t.y + _ * (b.x - t.x) / l), new
|
|
3724
|
+
return i & 8 ? (M = t.x + l * (C.y - t.y) / _, O = C.y) : i & 4 ? (M = t.x + l * (b.y - t.y) / _, O = b.y) : i & 2 ? (M = C.x, O = t.y + _ * (C.x - t.x) / l) : i & 1 && (M = b.x, O = t.y + _ * (b.x - t.x) / l), new U(M, O, s);
|
|
3725
3725
|
}
|
|
3726
|
-
function
|
|
3726
|
+
function Oe(t, e) {
|
|
3727
3727
|
var i = 0;
|
|
3728
3728
|
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;
|
|
3729
3729
|
}
|
|
@@ -3731,34 +3731,34 @@ function ll() {
|
|
|
3731
3731
|
var i = e.x - t.x, n = e.y - t.y;
|
|
3732
3732
|
return i * i + n * n;
|
|
3733
3733
|
}
|
|
3734
|
-
function
|
|
3734
|
+
function _i(t, e, i, n) {
|
|
3735
3735
|
var s = e.x, l = e.y, _ = i.x - s, b = i.y - l, C = _ * _ + b * b, M;
|
|
3736
|
-
return C > 0 && (M = ((t.x - s) * _ + (t.y - l) * b) / C, M > 1 ? (s = i.x, l = i.y) : M > 0 && (s += _ * M, l += b * M)), _ = t.x - s, b = t.y - l, n ? _ * _ + b * b : new
|
|
3736
|
+
return C > 0 && (M = ((t.x - s) * _ + (t.y - l) * b) / C, M > 1 ? (s = i.x, l = i.y) : M > 0 && (s += _ * M, l += b * M)), _ = t.x - s, b = t.y - l, n ? _ * _ + b * b : new U(s, l);
|
|
3737
3737
|
}
|
|
3738
|
-
function
|
|
3738
|
+
function Wt(t) {
|
|
3739
3739
|
return !W(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
|
3740
3740
|
}
|
|
3741
3741
|
function Ao(t) {
|
|
3742
|
-
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),
|
|
3742
|
+
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), Wt(t);
|
|
3743
3743
|
}
|
|
3744
3744
|
function Io(t, e) {
|
|
3745
3745
|
var i, n, s, l, _, b, C, M;
|
|
3746
3746
|
if (!t || t.length === 0)
|
|
3747
3747
|
throw new Error("latlngs not passed");
|
|
3748
|
-
|
|
3749
|
-
var O = X([0, 0]),
|
|
3748
|
+
Wt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
3749
|
+
var O = X([0, 0]), G = pt(t), Q = G.getNorthWest().distanceTo(G.getSouthWest()) * G.getNorthEast().distanceTo(G.getNorthWest());
|
|
3750
3750
|
Q < 1700 && (O = Fn(t));
|
|
3751
|
-
var
|
|
3752
|
-
for (i = 0; i <
|
|
3753
|
-
var
|
|
3754
|
-
At.push(e.project(X([
|
|
3751
|
+
var Dt = t.length, At = [];
|
|
3752
|
+
for (i = 0; i < Dt; i++) {
|
|
3753
|
+
var qt = X(t[i]);
|
|
3754
|
+
At.push(e.project(X([qt.lat - O.lat, qt.lng - O.lng])));
|
|
3755
3755
|
}
|
|
3756
|
-
for (i = 0, n = 0; i <
|
|
3756
|
+
for (i = 0, n = 0; i < Dt - 1; i++)
|
|
3757
3757
|
n += At[i].distanceTo(At[i + 1]) / 2;
|
|
3758
3758
|
if (n === 0)
|
|
3759
3759
|
M = At[0];
|
|
3760
3760
|
else
|
|
3761
|
-
for (i = 0, l = 0; i <
|
|
3761
|
+
for (i = 0, l = 0; i < Dt - 1; i++)
|
|
3762
3762
|
if (_ = At[i], b = At[i + 1], s = _.distanceTo(b), l += s, l > n) {
|
|
3763
3763
|
C = (l - n) / s, M = [
|
|
3764
3764
|
b.x - C * (b.x - _.x),
|
|
@@ -3766,8 +3766,8 @@ function ll() {
|
|
|
3766
3766
|
];
|
|
3767
3767
|
break;
|
|
3768
3768
|
}
|
|
3769
|
-
var
|
|
3770
|
-
return X([
|
|
3769
|
+
var Ht = e.unproject(R(M));
|
|
3770
|
+
return X([Ht.lat + O.lat, Ht.lng + O.lng]);
|
|
3771
3771
|
}
|
|
3772
3772
|
var js = {
|
|
3773
3773
|
__proto__: null,
|
|
@@ -3775,15 +3775,15 @@ function ll() {
|
|
|
3775
3775
|
pointToSegmentDistance: xo,
|
|
3776
3776
|
closestPointOnSegment: Us,
|
|
3777
3777
|
clipSegment: So,
|
|
3778
|
-
_getEdgeIntersection:
|
|
3779
|
-
_getBitCode:
|
|
3780
|
-
_sqClosestPointOnSegment:
|
|
3781
|
-
isFlat:
|
|
3778
|
+
_getEdgeIntersection: qi,
|
|
3779
|
+
_getBitCode: Oe,
|
|
3780
|
+
_sqClosestPointOnSegment: _i,
|
|
3781
|
+
isFlat: Wt,
|
|
3782
3782
|
_flat: Ao,
|
|
3783
3783
|
polylineCenter: Io
|
|
3784
3784
|
}, Un = {
|
|
3785
3785
|
project: function(t) {
|
|
3786
|
-
return new
|
|
3786
|
+
return new U(t.lng, t.lat);
|
|
3787
3787
|
},
|
|
3788
3788
|
unproject: function(t) {
|
|
3789
3789
|
return new it(t.y, t.x);
|
|
@@ -3795,7 +3795,7 @@ function ll() {
|
|
|
3795
3795
|
bounds: new K([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
3796
3796
|
project: function(t) {
|
|
3797
3797
|
var e = Math.PI / 180, i = this.R, n = t.lat * e, s = this.R_MINOR / i, l = Math.sqrt(1 - s * s), _ = l * Math.sin(n), b = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - _) / (1 + _), l / 2);
|
|
3798
|
-
return n = -i * Math.log(Math.max(b, 1e-10)), new
|
|
3798
|
+
return n = -i * Math.log(Math.max(b, 1e-10)), new U(t.lng * e * i, n);
|
|
3799
3799
|
},
|
|
3800
3800
|
unproject: function(t) {
|
|
3801
3801
|
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, s = Math.sqrt(1 - n * n), l = Math.exp(-t.y / i), _ = Math.PI / 2 - 2 * Math.atan(l), b = 0, C = 0.1, M; b < 15 && Math.abs(C) > 1e-7; b++)
|
|
@@ -3806,7 +3806,7 @@ function ll() {
|
|
|
3806
3806
|
__proto__: null,
|
|
3807
3807
|
LonLat: Un,
|
|
3808
3808
|
Mercator: $n,
|
|
3809
|
-
SphericalMercator:
|
|
3809
|
+
SphericalMercator: Xt
|
|
3810
3810
|
}, Ks = v({}, vt, {
|
|
3811
3811
|
code: "EPSG:3395",
|
|
3812
3812
|
projection: $n,
|
|
@@ -3818,7 +3818,7 @@ function ll() {
|
|
|
3818
3818
|
code: "EPSG:4326",
|
|
3819
3819
|
projection: Un,
|
|
3820
3820
|
transformation: Pe(1 / 180, 1, -1 / 180, 0.5)
|
|
3821
|
-
}), Xs = v({},
|
|
3821
|
+
}), Xs = v({}, Rt, {
|
|
3822
3822
|
projection: Un,
|
|
3823
3823
|
transformation: Pe(1, 0, -1, 0),
|
|
3824
3824
|
scale: function(t) {
|
|
@@ -3833,8 +3833,8 @@ function ll() {
|
|
|
3833
3833
|
},
|
|
3834
3834
|
infinite: !0
|
|
3835
3835
|
});
|
|
3836
|
-
|
|
3837
|
-
var
|
|
3836
|
+
Rt.Earth = vt, Rt.EPSG3395 = Ks, Rt.EPSG3857 = Ke, Rt.EPSG900913 = fn, Rt.EPSG4326 = Oo, Rt.Simple = Xs;
|
|
3837
|
+
var te = Bt.extend({
|
|
3838
3838
|
// Classes extending `L.Layer` will inherit the following options:
|
|
3839
3839
|
options: {
|
|
3840
3840
|
// @option pane: String = 'overlayPane'
|
|
@@ -3951,7 +3951,7 @@ function ll() {
|
|
|
3951
3951
|
this._layersMaxZoom = e === -1 / 0 ? void 0 : e, this._layersMinZoom = t === 1 / 0 ? void 0 : t, i !== this._getZoomSpan() && this.fire("zoomlevelschange"), this.options.maxZoom === void 0 && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this.setZoom(this._layersMaxZoom), this.options.minZoom === void 0 && this._layersMinZoom && this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom);
|
|
3952
3952
|
}
|
|
3953
3953
|
});
|
|
3954
|
-
var
|
|
3954
|
+
var Fe = te.extend({
|
|
3955
3955
|
initialize: function(t, e) {
|
|
3956
3956
|
x(this, e), this._layers = {};
|
|
3957
3957
|
var i, n;
|
|
@@ -4038,13 +4038,13 @@ function ll() {
|
|
|
4038
4038
|
return f(t);
|
|
4039
4039
|
}
|
|
4040
4040
|
}), Js = function(t, e) {
|
|
4041
|
-
return new
|
|
4042
|
-
},
|
|
4041
|
+
return new Fe(t, e);
|
|
4042
|
+
}, ue = Fe.extend({
|
|
4043
4043
|
addLayer: function(t) {
|
|
4044
|
-
return this.hasLayer(t) ? this : (t.addEventParent(this),
|
|
4044
|
+
return this.hasLayer(t) ? this : (t.addEventParent(this), Fe.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t }));
|
|
4045
4045
|
},
|
|
4046
4046
|
removeLayer: function(t) {
|
|
4047
|
-
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this),
|
|
4047
|
+
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this), Fe.prototype.removeLayer.call(this, t), this.fire("layerremove", { layer: t })) : this;
|
|
4048
4048
|
},
|
|
4049
4049
|
// @method setStyle(style: Path options): this
|
|
4050
4050
|
// Sets the given path options to each layer of the group that has a `setStyle` method.
|
|
@@ -4072,8 +4072,8 @@ function ll() {
|
|
|
4072
4072
|
return t;
|
|
4073
4073
|
}
|
|
4074
4074
|
}), Qs = function(t, e) {
|
|
4075
|
-
return new
|
|
4076
|
-
},
|
|
4075
|
+
return new ue(t, e);
|
|
4076
|
+
}, Ge = mt.extend({
|
|
4077
4077
|
/* @section
|
|
4078
4078
|
* @aka Icon options
|
|
4079
4079
|
*
|
|
@@ -4160,9 +4160,9 @@ function ll() {
|
|
|
4160
4160
|
}
|
|
4161
4161
|
});
|
|
4162
4162
|
function tr(t) {
|
|
4163
|
-
return new
|
|
4163
|
+
return new Ge(t);
|
|
4164
4164
|
}
|
|
4165
|
-
var
|
|
4165
|
+
var mi = Ge.extend({
|
|
4166
4166
|
options: {
|
|
4167
4167
|
iconUrl: "marker-icon.png",
|
|
4168
4168
|
iconRetinaUrl: "marker-icon-2x.png",
|
|
@@ -4174,7 +4174,7 @@ function ll() {
|
|
|
4174
4174
|
shadowSize: [41, 41]
|
|
4175
4175
|
},
|
|
4176
4176
|
_getIconUrl: function(t) {
|
|
4177
|
-
return typeof
|
|
4177
|
+
return typeof mi.imagePath != "string" && (mi.imagePath = this._detectIconPath()), (this.options.imagePath || mi.imagePath) + Ge.prototype._getIconUrl.call(this, t);
|
|
4178
4178
|
},
|
|
4179
4179
|
_stripUrl: function(t) {
|
|
4180
4180
|
var e = function(i, n, s) {
|
|
@@ -4184,7 +4184,7 @@ function ll() {
|
|
|
4184
4184
|
return t = e(t, /^url\((['"])?(.+)\1\)$/, 2), t && e(t, /^(.*)marker-icon\.png$/, 1);
|
|
4185
4185
|
},
|
|
4186
4186
|
_detectIconPath: function() {
|
|
4187
|
-
var t = rt("div", "leaflet-default-icon-path", document.body), e =
|
|
4187
|
+
var t = rt("div", "leaflet-default-icon-path", document.body), e = ui(t, "background-image") || ui(t, "backgroundImage");
|
|
4188
4188
|
if (document.body.removeChild(t), e = this._stripUrl(e), e)
|
|
4189
4189
|
return e;
|
|
4190
4190
|
var i = document.querySelector('link[href$="leaflet.css"]');
|
|
@@ -4209,13 +4209,13 @@ function ll() {
|
|
|
4209
4209
|
predrag: this._onPreDrag,
|
|
4210
4210
|
drag: this._onDrag,
|
|
4211
4211
|
dragend: this._onDragEnd
|
|
4212
|
-
}, this).disable(), this._marker._icon &&
|
|
4212
|
+
}, this).disable(), this._marker._icon && bt(this._marker._icon, "leaflet-marker-draggable");
|
|
4213
4213
|
},
|
|
4214
4214
|
moved: function() {
|
|
4215
4215
|
return this._draggable && this._draggable._moved;
|
|
4216
4216
|
},
|
|
4217
4217
|
_adjustPan: function(t) {
|
|
4218
|
-
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, s = this._marker.options.autoPanPadding, l =
|
|
4218
|
+
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, s = this._marker.options.autoPanPadding, l = Se(e._icon), _ = i.getPixelBounds(), b = i.getPixelOrigin(), C = wt(
|
|
4219
4219
|
_.min._subtract(b).add(s),
|
|
4220
4220
|
_.max._subtract(b).subtract(s)
|
|
4221
4221
|
);
|
|
@@ -4234,13 +4234,13 @@ function ll() {
|
|
|
4234
4234
|
this._marker.options.autoPan && (Y(this._panRequest), this._panRequest = et(this._adjustPan.bind(this, t)));
|
|
4235
4235
|
},
|
|
4236
4236
|
_onDrag: function(t) {
|
|
4237
|
-
var e = this._marker, i = e._shadow, n =
|
|
4237
|
+
var e = this._marker, i = e._shadow, n = Se(e._icon), s = e._map.layerPointToLatLng(n);
|
|
4238
4238
|
i && Pt(i, n), e._latlng = s, t.latlng = s, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t);
|
|
4239
4239
|
},
|
|
4240
4240
|
_onDragEnd: function(t) {
|
|
4241
4241
|
Y(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
|
|
4242
4242
|
}
|
|
4243
|
-
}),
|
|
4243
|
+
}), ji = te.extend({
|
|
4244
4244
|
// @section
|
|
4245
4245
|
// @aka Marker options
|
|
4246
4246
|
options: {
|
|
@@ -4248,7 +4248,7 @@ function ll() {
|
|
|
4248
4248
|
// Icon instance to use for rendering the marker.
|
|
4249
4249
|
// See [Icon documentation](#L.Icon) for details on how to customize the marker icon.
|
|
4250
4250
|
// If not specified, a common instance of `L.Icon.Default` is used.
|
|
4251
|
-
icon: new
|
|
4251
|
+
icon: new mi(),
|
|
4252
4252
|
// Option inherited from "Interactive layer" abstract class
|
|
4253
4253
|
interactive: !0,
|
|
4254
4254
|
// @option keyboard: Boolean = true
|
|
@@ -4400,7 +4400,7 @@ function ll() {
|
|
|
4400
4400
|
},
|
|
4401
4401
|
_updateOpacity: function() {
|
|
4402
4402
|
var t = this.options.opacity;
|
|
4403
|
-
this._icon &&
|
|
4403
|
+
this._icon && $t(this._icon, t), this._shadow && $t(this._shadow, t);
|
|
4404
4404
|
},
|
|
4405
4405
|
_bringToFront: function() {
|
|
4406
4406
|
this._updateZIndex(this.options.riseOffset);
|
|
@@ -4426,9 +4426,9 @@ function ll() {
|
|
|
4426
4426
|
}
|
|
4427
4427
|
});
|
|
4428
4428
|
function er(t, e) {
|
|
4429
|
-
return new
|
|
4429
|
+
return new ji(t, e);
|
|
4430
4430
|
}
|
|
4431
|
-
var ye =
|
|
4431
|
+
var ye = te.extend({
|
|
4432
4432
|
// @section
|
|
4433
4433
|
// @aka Path options
|
|
4434
4434
|
options: {
|
|
@@ -4514,7 +4514,7 @@ function ll() {
|
|
|
4514
4514
|
_clickTolerance: function() {
|
|
4515
4515
|
return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
|
|
4516
4516
|
}
|
|
4517
|
-
}),
|
|
4517
|
+
}), Yi = ye.extend({
|
|
4518
4518
|
// @section
|
|
4519
4519
|
// @aka CircleMarker options
|
|
4520
4520
|
options: {
|
|
@@ -4573,9 +4573,9 @@ function ll() {
|
|
|
4573
4573
|
}
|
|
4574
4574
|
});
|
|
4575
4575
|
function ir(t, e) {
|
|
4576
|
-
return new
|
|
4576
|
+
return new Yi(t, e);
|
|
4577
4577
|
}
|
|
4578
|
-
var Wn =
|
|
4578
|
+
var Wn = Yi.extend({
|
|
4579
4579
|
initialize: function(t, e, i) {
|
|
4580
4580
|
if (typeof e == "number" && (e = v({}, i, { radius: e })), x(this, e), this._latlng = X(t), isNaN(this.options.radius))
|
|
4581
4581
|
throw new Error("Circle radius cannot be NaN");
|
|
@@ -4607,8 +4607,8 @@ function ll() {
|
|
|
4607
4607
|
var s = Math.PI / 180, l = this._mRadius / vt.R / s, _ = i.project([e + l, t]), b = i.project([e - l, t]), C = _.add(b).divideBy(2), M = i.unproject(C).lat, O = Math.acos((Math.cos(l * s) - Math.sin(e * s) * Math.sin(M * s)) / (Math.cos(e * s) * Math.cos(M * s))) / s;
|
|
4608
4608
|
(isNaN(O) || O === 0) && (O = l / Math.cos(Math.PI / 180 * e)), this._point = C.subtract(i.getPixelOrigin()), this._radius = isNaN(O) ? 0 : C.x - i.project([M, t - O]).x, this._radiusY = C.y - _.y;
|
|
4609
4609
|
} else {
|
|
4610
|
-
var
|
|
4611
|
-
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(
|
|
4610
|
+
var G = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
|
|
4611
|
+
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(G).x;
|
|
4612
4612
|
}
|
|
4613
4613
|
this._updateBounds();
|
|
4614
4614
|
}
|
|
@@ -4616,7 +4616,7 @@ function ll() {
|
|
|
4616
4616
|
function nr(t, e, i) {
|
|
4617
4617
|
return new Wn(t, e, i);
|
|
4618
4618
|
}
|
|
4619
|
-
var
|
|
4619
|
+
var he = ye.extend({
|
|
4620
4620
|
// @section
|
|
4621
4621
|
// @aka Polyline options
|
|
4622
4622
|
options: {
|
|
@@ -4649,11 +4649,11 @@ function ll() {
|
|
|
4649
4649
|
// @method closestLayerPoint(p: Point): Point
|
|
4650
4650
|
// Returns the point closest to `p` on the Polyline.
|
|
4651
4651
|
closestLayerPoint: function(t) {
|
|
4652
|
-
for (var e = 1 / 0, i = null, n =
|
|
4652
|
+
for (var e = 1 / 0, i = null, n = _i, s, l, _ = 0, b = this._parts.length; _ < b; _++)
|
|
4653
4653
|
for (var C = this._parts[_], M = 1, O = C.length; M < O; M++) {
|
|
4654
4654
|
s = C[M - 1], l = C[M];
|
|
4655
|
-
var
|
|
4656
|
-
|
|
4655
|
+
var G = n(t, s, l, !0);
|
|
4656
|
+
G < e && (e = G, i = n(t, s, l));
|
|
4657
4657
|
}
|
|
4658
4658
|
return i && (i.distance = Math.sqrt(e)), i;
|
|
4659
4659
|
},
|
|
@@ -4680,11 +4680,11 @@ function ll() {
|
|
|
4680
4680
|
this._bounds = new ot(), this._latlngs = this._convertLatLngs(t);
|
|
4681
4681
|
},
|
|
4682
4682
|
_defaultShape: function() {
|
|
4683
|
-
return
|
|
4683
|
+
return Wt(this._latlngs) ? this._latlngs : this._latlngs[0];
|
|
4684
4684
|
},
|
|
4685
4685
|
// recursively convert latlngs input into actual LatLng instances; calculate bounds along the way
|
|
4686
4686
|
_convertLatLngs: function(t) {
|
|
4687
|
-
for (var e = [], i =
|
|
4687
|
+
for (var e = [], i = Wt(t), n = 0, s = t.length; n < s; n++)
|
|
4688
4688
|
i ? (e[n] = X(t[n]), this._bounds.extend(e[n])) : e[n] = this._convertLatLngs(t[n]);
|
|
4689
4689
|
return e;
|
|
4690
4690
|
},
|
|
@@ -4693,7 +4693,7 @@ function ll() {
|
|
|
4693
4693
|
this._rings = [], this._projectLatlngs(this._latlngs, this._rings, t), this._bounds.isValid() && t.isValid() && (this._rawPxBounds = t, this._updateBounds());
|
|
4694
4694
|
},
|
|
4695
4695
|
_updateBounds: function() {
|
|
4696
|
-
var t = this._clickTolerance(), e = new
|
|
4696
|
+
var t = this._clickTolerance(), e = new U(t, t);
|
|
4697
4697
|
this._rawPxBounds && (this._pxBounds = new K([
|
|
4698
4698
|
this._rawPxBounds.min.subtract(e),
|
|
4699
4699
|
this._rawPxBounds.max.add(e)
|
|
@@ -4748,10 +4748,10 @@ function ll() {
|
|
|
4748
4748
|
}
|
|
4749
4749
|
});
|
|
4750
4750
|
function or(t, e) {
|
|
4751
|
-
return new
|
|
4751
|
+
return new he(t, e);
|
|
4752
4752
|
}
|
|
4753
|
-
|
|
4754
|
-
var
|
|
4753
|
+
he._flat = Ao;
|
|
4754
|
+
var Ue = he.extend({
|
|
4755
4755
|
options: {
|
|
4756
4756
|
fill: !0
|
|
4757
4757
|
},
|
|
@@ -4766,17 +4766,17 @@ function ll() {
|
|
|
4766
4766
|
return Co(this._defaultShape(), this._map.options.crs);
|
|
4767
4767
|
},
|
|
4768
4768
|
_convertLatLngs: function(t) {
|
|
4769
|
-
var e =
|
|
4769
|
+
var e = he.prototype._convertLatLngs.call(this, t), i = e.length;
|
|
4770
4770
|
return i >= 2 && e[0] instanceof it && e[0].equals(e[i - 1]) && e.pop(), e;
|
|
4771
4771
|
},
|
|
4772
4772
|
_setLatLngs: function(t) {
|
|
4773
|
-
|
|
4773
|
+
he.prototype._setLatLngs.call(this, t), Wt(this._latlngs) && (this._latlngs = [this._latlngs]);
|
|
4774
4774
|
},
|
|
4775
4775
|
_defaultShape: function() {
|
|
4776
|
-
return
|
|
4776
|
+
return Wt(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
|
|
4777
4777
|
},
|
|
4778
4778
|
_clipPoints: function() {
|
|
4779
|
-
var t = this._renderer._bounds, e = this.options.weight, i = new
|
|
4779
|
+
var t = this._renderer._bounds, e = this.options.weight, i = new U(e, e);
|
|
4780
4780
|
if (t = new K(t.min.subtract(i), t.max.add(i)), this._parts = [], !(!this._pxBounds || !this._pxBounds.intersects(t))) {
|
|
4781
4781
|
if (this.options.noClip) {
|
|
4782
4782
|
this._parts = this._rings;
|
|
@@ -4797,13 +4797,13 @@ function ll() {
|
|
|
4797
4797
|
for (l = 0, C = this._parts.length; l < C; l++)
|
|
4798
4798
|
for (i = this._parts[l], _ = 0, M = i.length, b = M - 1; _ < M; b = _++)
|
|
4799
4799
|
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);
|
|
4800
|
-
return e ||
|
|
4800
|
+
return e || he.prototype._containsPoint.call(this, t, !0);
|
|
4801
4801
|
}
|
|
4802
4802
|
});
|
|
4803
4803
|
function sr(t, e) {
|
|
4804
|
-
return new
|
|
4804
|
+
return new Ue(t, e);
|
|
4805
4805
|
}
|
|
4806
|
-
var
|
|
4806
|
+
var ce = ue.extend({
|
|
4807
4807
|
/* @section
|
|
4808
4808
|
* @aka GeoJSON options
|
|
4809
4809
|
*
|
|
@@ -4868,8 +4868,8 @@ function ll() {
|
|
|
4868
4868
|
var l = this.options;
|
|
4869
4869
|
if (l.filter && !l.filter(t))
|
|
4870
4870
|
return this;
|
|
4871
|
-
var _ =
|
|
4872
|
-
return _ ? (_.feature =
|
|
4871
|
+
var _ = Ki(t, l);
|
|
4872
|
+
return _ ? (_.feature = Qi(t), _.defaultOptions = _.options, this.resetStyle(_), l.onEachFeature && l.onEachFeature(t, _), this.addLayer(_)) : this;
|
|
4873
4873
|
},
|
|
4874
4874
|
// @method resetStyle( <Path> layer? ): this
|
|
4875
4875
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
|
@@ -4888,7 +4888,7 @@ function ll() {
|
|
|
4888
4888
|
t.setStyle && (typeof e == "function" && (e = e(t.feature)), t.setStyle(e));
|
|
4889
4889
|
}
|
|
4890
4890
|
});
|
|
4891
|
-
function
|
|
4891
|
+
function Ki(t, e) {
|
|
4892
4892
|
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, s = [], l = e && e.pointToLayer, _ = e && e.coordsToLatLng || qn, b, C, M, O;
|
|
4893
4893
|
if (!n && !i)
|
|
4894
4894
|
return null;
|
|
@@ -4898,56 +4898,56 @@ function ll() {
|
|
|
4898
4898
|
case "MultiPoint":
|
|
4899
4899
|
for (M = 0, O = n.length; M < O; M++)
|
|
4900
4900
|
b = _(n[M]), s.push(Eo(l, t, b, e));
|
|
4901
|
-
return new
|
|
4901
|
+
return new ue(s);
|
|
4902
4902
|
case "LineString":
|
|
4903
4903
|
case "MultiLineString":
|
|
4904
|
-
return C =
|
|
4904
|
+
return C = Xi(n, i.type === "LineString" ? 0 : 1, _), new he(C, e);
|
|
4905
4905
|
case "Polygon":
|
|
4906
4906
|
case "MultiPolygon":
|
|
4907
|
-
return C =
|
|
4907
|
+
return C = Xi(n, i.type === "Polygon" ? 1 : 2, _), new Ue(C, e);
|
|
4908
4908
|
case "GeometryCollection":
|
|
4909
4909
|
for (M = 0, O = i.geometries.length; M < O; M++) {
|
|
4910
|
-
var
|
|
4910
|
+
var G = Ki({
|
|
4911
4911
|
geometry: i.geometries[M],
|
|
4912
4912
|
type: "Feature",
|
|
4913
4913
|
properties: t.properties
|
|
4914
4914
|
}, e);
|
|
4915
|
-
|
|
4915
|
+
G && s.push(G);
|
|
4916
4916
|
}
|
|
4917
|
-
return new
|
|
4917
|
+
return new ue(s);
|
|
4918
4918
|
case "FeatureCollection":
|
|
4919
4919
|
for (M = 0, O = i.features.length; M < O; M++) {
|
|
4920
|
-
var Q =
|
|
4920
|
+
var Q = Ki(i.features[M], e);
|
|
4921
4921
|
Q && s.push(Q);
|
|
4922
4922
|
}
|
|
4923
|
-
return new
|
|
4923
|
+
return new ue(s);
|
|
4924
4924
|
default:
|
|
4925
4925
|
throw new Error("Invalid GeoJSON object.");
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
4928
4928
|
function Eo(t, e, i, n) {
|
|
4929
|
-
return t ? t(e, i) : new
|
|
4929
|
+
return t ? t(e, i) : new ji(i, n && n.markersInheritOptions && n);
|
|
4930
4930
|
}
|
|
4931
4931
|
function qn(t) {
|
|
4932
4932
|
return new it(t[1], t[0], t[2]);
|
|
4933
4933
|
}
|
|
4934
|
-
function
|
|
4934
|
+
function Xi(t, e, i) {
|
|
4935
4935
|
for (var n = [], s = 0, l = t.length, _; s < l; s++)
|
|
4936
|
-
_ = e ?
|
|
4936
|
+
_ = e ? Xi(t[s], e - 1, i) : (i || qn)(t[s]), n.push(_);
|
|
4937
4937
|
return n;
|
|
4938
4938
|
}
|
|
4939
4939
|
function jn(t, e) {
|
|
4940
4940
|
return t = X(t), t.alt !== void 0 ? [w(t.lng, e), w(t.lat, e), w(t.alt, e)] : [w(t.lng, e), w(t.lat, e)];
|
|
4941
4941
|
}
|
|
4942
|
-
function
|
|
4942
|
+
function Ji(t, e, i, n) {
|
|
4943
4943
|
for (var s = [], l = 0, _ = t.length; l < _; l++)
|
|
4944
|
-
s.push(e ?
|
|
4944
|
+
s.push(e ? Ji(t[l], Wt(t[l]) ? 0 : e - 1, i, n) : jn(t[l], n));
|
|
4945
4945
|
return !e && i && s.length > 0 && s.push(s[0].slice()), s;
|
|
4946
4946
|
}
|
|
4947
|
-
function
|
|
4948
|
-
return t.feature ? v({}, t.feature, { geometry: e }) :
|
|
4947
|
+
function $e(t, e) {
|
|
4948
|
+
return t.feature ? v({}, t.feature, { geometry: e }) : Qi(e);
|
|
4949
4949
|
}
|
|
4950
|
-
function
|
|
4950
|
+
function Qi(t) {
|
|
4951
4951
|
return t.type === "Feature" || t.type === "FeatureCollection" ? t : {
|
|
4952
4952
|
type: "Feature",
|
|
4953
4953
|
properties: {},
|
|
@@ -4956,34 +4956,34 @@ function ll() {
|
|
|
4956
4956
|
}
|
|
4957
4957
|
var Yn = {
|
|
4958
4958
|
toGeoJSON: function(t) {
|
|
4959
|
-
return
|
|
4959
|
+
return $e(this, {
|
|
4960
4960
|
type: "Point",
|
|
4961
4961
|
coordinates: jn(this.getLatLng(), t)
|
|
4962
4962
|
});
|
|
4963
4963
|
}
|
|
4964
4964
|
};
|
|
4965
|
-
|
|
4965
|
+
ji.include(Yn), Wn.include(Yn), Yi.include(Yn), he.include({
|
|
4966
4966
|
toGeoJSON: function(t) {
|
|
4967
|
-
var e =
|
|
4968
|
-
return
|
|
4967
|
+
var e = !Wt(this._latlngs), i = Ji(this._latlngs, e ? 1 : 0, !1, t);
|
|
4968
|
+
return $e(this, {
|
|
4969
4969
|
type: (e ? "Multi" : "") + "LineString",
|
|
4970
4970
|
coordinates: i
|
|
4971
4971
|
});
|
|
4972
4972
|
}
|
|
4973
|
-
}),
|
|
4973
|
+
}), Ue.include({
|
|
4974
4974
|
toGeoJSON: function(t) {
|
|
4975
|
-
var e =
|
|
4976
|
-
return e || (n = [n]),
|
|
4975
|
+
var e = !Wt(this._latlngs), i = e && !Wt(this._latlngs[0]), n = Ji(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
|
|
4976
|
+
return e || (n = [n]), $e(this, {
|
|
4977
4977
|
type: (i ? "Multi" : "") + "Polygon",
|
|
4978
4978
|
coordinates: n
|
|
4979
4979
|
});
|
|
4980
4980
|
}
|
|
4981
|
-
}),
|
|
4981
|
+
}), Fe.include({
|
|
4982
4982
|
toMultiPoint: function(t) {
|
|
4983
4983
|
var e = [];
|
|
4984
4984
|
return this.eachLayer(function(i) {
|
|
4985
4985
|
e.push(i.toGeoJSON(t).geometry.coordinates);
|
|
4986
|
-
}),
|
|
4986
|
+
}), $e(this, {
|
|
4987
4987
|
type: "MultiPoint",
|
|
4988
4988
|
coordinates: e
|
|
4989
4989
|
});
|
|
@@ -5002,11 +5002,11 @@ function ll() {
|
|
|
5002
5002
|
if (i)
|
|
5003
5003
|
n.push(l.geometry);
|
|
5004
5004
|
else {
|
|
5005
|
-
var _ =
|
|
5005
|
+
var _ = Qi(l);
|
|
5006
5006
|
_.type === "FeatureCollection" ? n.push.apply(n, _.features) : n.push(_);
|
|
5007
5007
|
}
|
|
5008
5008
|
}
|
|
5009
|
-
}), i ?
|
|
5009
|
+
}), i ? $e(this, {
|
|
5010
5010
|
geometries: n,
|
|
5011
5011
|
type: "GeometryCollection"
|
|
5012
5012
|
}) : {
|
|
@@ -5016,9 +5016,9 @@ function ll() {
|
|
|
5016
5016
|
}
|
|
5017
5017
|
});
|
|
5018
5018
|
function Bo(t, e) {
|
|
5019
|
-
return new
|
|
5019
|
+
return new ce(t, e);
|
|
5020
5020
|
}
|
|
5021
|
-
var rr = Bo,
|
|
5021
|
+
var rr = Bo, tn = te.extend({
|
|
5022
5022
|
// @section
|
|
5023
5023
|
// @aka ImageOverlay options
|
|
5024
5024
|
options: {
|
|
@@ -5047,7 +5047,7 @@ function ll() {
|
|
|
5047
5047
|
className: ""
|
|
5048
5048
|
},
|
|
5049
5049
|
initialize: function(t, e, i) {
|
|
5050
|
-
this._url = t, this._bounds =
|
|
5050
|
+
this._url = t, this._bounds = pt(e), x(this, i);
|
|
5051
5051
|
},
|
|
5052
5052
|
onAdd: function() {
|
|
5053
5053
|
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (j(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
|
|
@@ -5066,12 +5066,12 @@ function ll() {
|
|
|
5066
5066
|
// @method bringToFront(): this
|
|
5067
5067
|
// Brings the layer to the top of all overlays.
|
|
5068
5068
|
bringToFront: function() {
|
|
5069
|
-
return this._map &&
|
|
5069
|
+
return this._map && He(this._image), this;
|
|
5070
5070
|
},
|
|
5071
5071
|
// @method bringToBack(): this
|
|
5072
5072
|
// Brings the layer to the bottom of all overlays.
|
|
5073
5073
|
bringToBack: function() {
|
|
5074
|
-
return this._map &&
|
|
5074
|
+
return this._map && Ve(this._image), this;
|
|
5075
5075
|
},
|
|
5076
5076
|
// @method setUrl(url: String): this
|
|
5077
5077
|
// Changes the URL of the image.
|
|
@@ -5081,7 +5081,7 @@ function ll() {
|
|
|
5081
5081
|
// @method setBounds(bounds: LatLngBounds): this
|
|
5082
5082
|
// Update the bounds that this ImageOverlay covers
|
|
5083
5083
|
setBounds: function(t) {
|
|
5084
|
-
return this._bounds =
|
|
5084
|
+
return this._bounds = pt(t), this._map && this._reset(), this;
|
|
5085
5085
|
},
|
|
5086
5086
|
getEvents: function() {
|
|
5087
5087
|
var t = {
|
|
@@ -5116,7 +5116,7 @@ function ll() {
|
|
|
5116
5116
|
},
|
|
5117
5117
|
_animateZoom: function(t) {
|
|
5118
5118
|
var e = this._map.getZoomScale(t.zoom), i = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min;
|
|
5119
|
-
|
|
5119
|
+
Me(this._image, i, e);
|
|
5120
5120
|
},
|
|
5121
5121
|
_reset: function() {
|
|
5122
5122
|
var t = this._image, e = new K(
|
|
@@ -5126,7 +5126,7 @@ function ll() {
|
|
|
5126
5126
|
Pt(t, e.min), t.style.width = i.x + "px", t.style.height = i.y + "px";
|
|
5127
5127
|
},
|
|
5128
5128
|
_updateOpacity: function() {
|
|
5129
|
-
|
|
5129
|
+
$t(this._image, this.options.opacity);
|
|
5130
5130
|
},
|
|
5131
5131
|
_updateZIndex: function() {
|
|
5132
5132
|
this._image && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._image.style.zIndex = this.options.zIndex);
|
|
@@ -5142,8 +5142,8 @@ function ll() {
|
|
|
5142
5142
|
return this._bounds.getCenter();
|
|
5143
5143
|
}
|
|
5144
5144
|
}), ar = function(t, e, i) {
|
|
5145
|
-
return new
|
|
5146
|
-
}, Zo =
|
|
5145
|
+
return new tn(t, e, i);
|
|
5146
|
+
}, Zo = tn.extend({
|
|
5147
5147
|
// @section
|
|
5148
5148
|
// @aka VideoOverlay options
|
|
5149
5149
|
options: {
|
|
@@ -5186,7 +5186,7 @@ function ll() {
|
|
|
5186
5186
|
function lr(t, e, i) {
|
|
5187
5187
|
return new Zo(t, e, i);
|
|
5188
5188
|
}
|
|
5189
|
-
var Do =
|
|
5189
|
+
var Do = tn.extend({
|
|
5190
5190
|
_initImage: function() {
|
|
5191
5191
|
var t = this._image = this._url;
|
|
5192
5192
|
j(t, "leaflet-image-layer"), this._zoomAnimated && j(t, "leaflet-zoom-animated"), this.options.className && j(t, this.options.className), t.onselectstart = g, t.onmousemove = g;
|
|
@@ -5198,7 +5198,7 @@ function ll() {
|
|
|
5198
5198
|
function ur(t, e, i) {
|
|
5199
5199
|
return new Do(t, e, i);
|
|
5200
5200
|
}
|
|
5201
|
-
var oe =
|
|
5201
|
+
var oe = te.extend({
|
|
5202
5202
|
// @section
|
|
5203
5203
|
// @aka DivOverlay options
|
|
5204
5204
|
options: {
|
|
@@ -5243,10 +5243,10 @@ function ll() {
|
|
|
5243
5243
|
return this._map ? this.close() : (arguments.length ? this._source = t : t = this._source, this._prepareOpen(), this.openOn(t._map)), this;
|
|
5244
5244
|
},
|
|
5245
5245
|
onAdd: function(t) {
|
|
5246
|
-
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated &&
|
|
5246
|
+
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && $t(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && $t(this._container, 1), this.bringToFront(), this.options.interactive && (j(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
|
|
5247
5247
|
},
|
|
5248
5248
|
onRemove: function(t) {
|
|
5249
|
-
t._fadeAnimated ? (
|
|
5249
|
+
t._fadeAnimated ? ($t(this._container, 0), this._removeTimeout = setTimeout(r(_t, void 0, this._container), 200)) : _t(this._container), this.options.interactive && (bt(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
|
|
5250
5250
|
},
|
|
5251
5251
|
// @namespace DivOverlay
|
|
5252
5252
|
// @method getLatLng: LatLng
|
|
@@ -5295,19 +5295,19 @@ function ll() {
|
|
|
5295
5295
|
// @method bringToFront: this
|
|
5296
5296
|
// Brings this overlay in front of other overlays (in the same map pane).
|
|
5297
5297
|
bringToFront: function() {
|
|
5298
|
-
return this._map &&
|
|
5298
|
+
return this._map && He(this._container), this;
|
|
5299
5299
|
},
|
|
5300
5300
|
// @method bringToBack: this
|
|
5301
5301
|
// Brings this overlay to the back of other overlays (in the same map pane).
|
|
5302
5302
|
bringToBack: function() {
|
|
5303
|
-
return this._map &&
|
|
5303
|
+
return this._map && Ve(this._container), this;
|
|
5304
5304
|
},
|
|
5305
5305
|
// prepare bound overlay to open: update latlng pos / content source (for FeatureGroup)
|
|
5306
5306
|
_prepareOpen: function(t) {
|
|
5307
5307
|
var e = this._source;
|
|
5308
5308
|
if (!e._map)
|
|
5309
5309
|
return !1;
|
|
5310
|
-
if (e instanceof
|
|
5310
|
+
if (e instanceof ue) {
|
|
5311
5311
|
e = null;
|
|
5312
5312
|
var i = this._source._layers;
|
|
5313
5313
|
for (var n in i)
|
|
@@ -5360,13 +5360,13 @@ function ll() {
|
|
|
5360
5360
|
var s = e;
|
|
5361
5361
|
return s instanceof t || (s = new t(n).setContent(e)), i && s.setLatLng(i), s;
|
|
5362
5362
|
}
|
|
5363
|
-
}),
|
|
5363
|
+
}), te.include({
|
|
5364
5364
|
_initOverlay: function(t, e, i, n) {
|
|
5365
5365
|
var s = i;
|
|
5366
5366
|
return s instanceof t ? (x(s, n), s._source = this) : (s = e && !n ? e : new t(n, this), s.setContent(i)), s;
|
|
5367
5367
|
}
|
|
5368
5368
|
});
|
|
5369
|
-
var
|
|
5369
|
+
var en = oe.extend({
|
|
5370
5370
|
// @section
|
|
5371
5371
|
// @aka Popup options
|
|
5372
5372
|
options: {
|
|
@@ -5433,10 +5433,10 @@ function ll() {
|
|
|
5433
5433
|
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, oe.prototype.openOn.call(this, t);
|
|
5434
5434
|
},
|
|
5435
5435
|
onAdd: function(t) {
|
|
5436
|
-
oe.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof ye || this._source.on("preclick",
|
|
5436
|
+
oe.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof ye || this._source.on("preclick", Ae));
|
|
5437
5437
|
},
|
|
5438
5438
|
onRemove: function(t) {
|
|
5439
|
-
oe.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof ye || this._source.off("preclick",
|
|
5439
|
+
oe.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof ye || this._source.off("preclick", Ae));
|
|
5440
5440
|
},
|
|
5441
5441
|
getEvents: function() {
|
|
5442
5442
|
var t = oe.prototype.getEvents.call(this);
|
|
@@ -5447,7 +5447,7 @@ function ll() {
|
|
|
5447
5447
|
"div",
|
|
5448
5448
|
t + " " + (this.options.className || "") + " leaflet-zoom-animated"
|
|
5449
5449
|
), i = this._wrapper = rt("div", t + "-content-wrapper", e);
|
|
5450
|
-
if (this._contentNode = rt("div", t + "-content", i),
|
|
5450
|
+
if (this._contentNode = rt("div", t + "-content", i), fi(e), Nn(this._contentNode), q(e, "contextmenu", Ae), this._tipContainer = rt("div", t + "-tip-container", e), this._tip = rt("div", t + "-tip", this._tipContainer), this.options.closeButton) {
|
|
5451
5451
|
var n = this._closeButton = rt("a", t + "-close-button", e);
|
|
5452
5452
|
n.setAttribute("role", "button"), n.setAttribute("aria-label", "Close popup"), n.href = "#close", n.innerHTML = '<span aria-hidden="true">×</span>', q(n, "click", function(s) {
|
|
5453
5453
|
Et(s), this.close();
|
|
@@ -5460,7 +5460,7 @@ function ll() {
|
|
|
5460
5460
|
var i = t.offsetWidth;
|
|
5461
5461
|
i = Math.min(i, this.options.maxWidth), i = Math.max(i, this.options.minWidth), e.width = i + 1 + "px", e.whiteSpace = "", e.height = "";
|
|
5462
5462
|
var n = t.offsetHeight, s = this.options.maxHeight, l = "leaflet-popup-scrolled";
|
|
5463
|
-
s && n > s ? (e.height = s + "px", j(t, l)) :
|
|
5463
|
+
s && n > s ? (e.height = s + "px", j(t, l)) : bt(t, l), this._containerWidth = this._container.offsetWidth;
|
|
5464
5464
|
},
|
|
5465
5465
|
_animateZoom: function(t) {
|
|
5466
5466
|
var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center), i = this._getAnchor();
|
|
@@ -5472,17 +5472,17 @@ function ll() {
|
|
|
5472
5472
|
this._autopanning = !1;
|
|
5473
5473
|
return;
|
|
5474
5474
|
}
|
|
5475
|
-
var t = this._map, e = parseInt(
|
|
5476
|
-
s._add(
|
|
5477
|
-
var l = t.layerPointToContainerPoint(s), _ = R(this.options.autoPanPadding), b = R(this.options.autoPanPaddingTopLeft || _), C = R(this.options.autoPanPaddingBottomRight || _), M = t.getSize(), O = 0,
|
|
5478
|
-
l.x + n + C.x > M.x && (O = l.x + n - M.x + C.x), l.x - O - b.x < 0 && (O = l.x - b.x), l.y + i + C.y > M.y && (
|
|
5475
|
+
var t = this._map, e = parseInt(ui(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, s = new U(this._containerLeft, -i - this._containerBottom);
|
|
5476
|
+
s._add(Se(this._container));
|
|
5477
|
+
var l = t.layerPointToContainerPoint(s), _ = R(this.options.autoPanPadding), b = R(this.options.autoPanPaddingTopLeft || _), C = R(this.options.autoPanPaddingBottomRight || _), M = t.getSize(), O = 0, G = 0;
|
|
5478
|
+
l.x + n + C.x > M.x && (O = l.x + n - M.x + C.x), l.x - O - b.x < 0 && (O = l.x - b.x), l.y + i + C.y > M.y && (G = l.y + i - M.y + C.y), l.y - G - b.y < 0 && (G = l.y - b.y), (O || G) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([O, G]));
|
|
5479
5479
|
}
|
|
5480
5480
|
},
|
|
5481
5481
|
_getAnchor: function() {
|
|
5482
5482
|
return R(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
|
|
5483
5483
|
}
|
|
5484
5484
|
}), hr = function(t, e) {
|
|
5485
|
-
return new
|
|
5485
|
+
return new en(t, e);
|
|
5486
5486
|
};
|
|
5487
5487
|
nt.mergeOptions({
|
|
5488
5488
|
closePopupOnClick: !0
|
|
@@ -5493,20 +5493,20 @@ function ll() {
|
|
|
5493
5493
|
// @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this
|
|
5494
5494
|
// Creates a popup with the specified content and options and opens it in the given point on a map.
|
|
5495
5495
|
openPopup: function(t, e, i) {
|
|
5496
|
-
return this._initOverlay(
|
|
5496
|
+
return this._initOverlay(en, t, e, i).openOn(this), this;
|
|
5497
5497
|
},
|
|
5498
5498
|
// @method closePopup(popup?: Popup): this
|
|
5499
5499
|
// Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).
|
|
5500
5500
|
closePopup: function(t) {
|
|
5501
5501
|
return t = arguments.length ? t : this._popup, t && t.close(), this;
|
|
5502
5502
|
}
|
|
5503
|
-
}),
|
|
5503
|
+
}), te.include({
|
|
5504
5504
|
// @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
|
|
5505
5505
|
// Binds a popup to the layer with the passed `content` and sets up the
|
|
5506
5506
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
5507
5507
|
// the layer as the first argument and should return a `String` or `HTMLElement`.
|
|
5508
5508
|
bindPopup: function(t, e) {
|
|
5509
|
-
return this._popup = this._initOverlay(
|
|
5509
|
+
return this._popup = this._initOverlay(en, this._popup, t, e), this._popupHandlersAdded || (this.on({
|
|
5510
5510
|
click: this._openPopup,
|
|
5511
5511
|
keypress: this._onKeyPress,
|
|
5512
5512
|
remove: this.closePopup,
|
|
@@ -5526,7 +5526,7 @@ function ll() {
|
|
|
5526
5526
|
// @method openPopup(latlng?: LatLng): this
|
|
5527
5527
|
// Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
|
|
5528
5528
|
openPopup: function(t) {
|
|
5529
|
-
return this._popup && (this instanceof
|
|
5529
|
+
return this._popup && (this instanceof ue || (this._popup._source = this), this._popup._prepareOpen(t || this._latlng) && this._popup.openOn(this._map)), this;
|
|
5530
5530
|
},
|
|
5531
5531
|
// @method closePopup(): this
|
|
5532
5532
|
// Closes the popup bound to this layer if it is open.
|
|
@@ -5555,7 +5555,7 @@ function ll() {
|
|
|
5555
5555
|
},
|
|
5556
5556
|
_openPopup: function(t) {
|
|
5557
5557
|
if (!(!this._popup || !this._map)) {
|
|
5558
|
-
|
|
5558
|
+
Ie(t);
|
|
5559
5559
|
var e = t.layer || t.target;
|
|
5560
5560
|
if (this._popup._source === e && !(e instanceof ye)) {
|
|
5561
5561
|
this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(t.latlng);
|
|
@@ -5571,7 +5571,7 @@ function ll() {
|
|
|
5571
5571
|
t.originalEvent.keyCode === 13 && this._openPopup(t);
|
|
5572
5572
|
}
|
|
5573
5573
|
});
|
|
5574
|
-
var
|
|
5574
|
+
var nn = oe.extend({
|
|
5575
5575
|
// @section
|
|
5576
5576
|
// @aka Tooltip options
|
|
5577
5577
|
options: {
|
|
@@ -5616,15 +5616,15 @@ function ll() {
|
|
|
5616
5616
|
_adjustPan: function() {
|
|
5617
5617
|
},
|
|
5618
5618
|
_setPosition: function(t) {
|
|
5619
|
-
var e, i, n = this._map, s = this._container, l = n.latLngToContainerPoint(n.getCenter()), _ = n.layerPointToContainerPoint(t), b = this.options.direction, C = s.offsetWidth, M = s.offsetHeight, O = R(this.options.offset),
|
|
5620
|
-
b === "top" ? (e = C / 2, i = M) : b === "bottom" ? (e = C / 2, i = 0) : b === "center" ? (e = C / 2, i = M / 2) : b === "right" ? (e = 0, i = M / 2) : b === "left" ? (e = C, i = M / 2) : _.x < l.x ? (b = "right", e = 0, i = M / 2) : (b = "left", e = C + (O.x +
|
|
5619
|
+
var e, i, n = this._map, s = this._container, l = n.latLngToContainerPoint(n.getCenter()), _ = n.layerPointToContainerPoint(t), b = this.options.direction, C = s.offsetWidth, M = s.offsetHeight, O = R(this.options.offset), G = this._getAnchor();
|
|
5620
|
+
b === "top" ? (e = C / 2, i = M) : b === "bottom" ? (e = C / 2, i = 0) : b === "center" ? (e = C / 2, i = M / 2) : b === "right" ? (e = 0, i = M / 2) : b === "left" ? (e = C, i = M / 2) : _.x < l.x ? (b = "right", e = 0, i = M / 2) : (b = "left", e = C + (O.x + G.x) * 2, i = M / 2), t = t.subtract(R(e, i, !0)).add(O).add(G), bt(s, "leaflet-tooltip-right"), bt(s, "leaflet-tooltip-left"), bt(s, "leaflet-tooltip-top"), bt(s, "leaflet-tooltip-bottom"), j(s, "leaflet-tooltip-" + b), Pt(s, t);
|
|
5621
5621
|
},
|
|
5622
5622
|
_updatePosition: function() {
|
|
5623
5623
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
|
5624
5624
|
this._setPosition(t);
|
|
5625
5625
|
},
|
|
5626
5626
|
setOpacity: function(t) {
|
|
5627
|
-
this.options.opacity = t, this._container &&
|
|
5627
|
+
this.options.opacity = t, this._container && $t(this._container, t);
|
|
5628
5628
|
},
|
|
5629
5629
|
_animateZoom: function(t) {
|
|
5630
5630
|
var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center);
|
|
@@ -5634,7 +5634,7 @@ function ll() {
|
|
|
5634
5634
|
return R(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
|
|
5635
5635
|
}
|
|
5636
5636
|
}), cr = function(t, e) {
|
|
5637
|
-
return new
|
|
5637
|
+
return new nn(t, e);
|
|
5638
5638
|
};
|
|
5639
5639
|
nt.include({
|
|
5640
5640
|
// @method openTooltip(tooltip: Tooltip): this
|
|
@@ -5643,20 +5643,20 @@ function ll() {
|
|
|
5643
5643
|
// @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this
|
|
5644
5644
|
// Creates a tooltip with the specified content and options and open it.
|
|
5645
5645
|
openTooltip: function(t, e, i) {
|
|
5646
|
-
return this._initOverlay(
|
|
5646
|
+
return this._initOverlay(nn, t, e, i).openOn(this), this;
|
|
5647
5647
|
},
|
|
5648
5648
|
// @method closeTooltip(tooltip: Tooltip): this
|
|
5649
5649
|
// Closes the tooltip given as parameter.
|
|
5650
5650
|
closeTooltip: function(t) {
|
|
5651
5651
|
return t.close(), this;
|
|
5652
5652
|
}
|
|
5653
|
-
}),
|
|
5653
|
+
}), te.include({
|
|
5654
5654
|
// @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
|
|
5655
5655
|
// Binds a tooltip to the layer with the passed `content` and sets up the
|
|
5656
5656
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
5657
5657
|
// the layer as the first argument and should return a `String` or `HTMLElement`.
|
|
5658
5658
|
bindTooltip: function(t, e) {
|
|
5659
|
-
return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(
|
|
5659
|
+
return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(nn, this._tooltip, t, e), this._initTooltipInteractions(), this._tooltip.options.permanent && this._map && this._map.hasLayer(this) && this.openTooltip(), this;
|
|
5660
5660
|
},
|
|
5661
5661
|
// @method unbindTooltip(): this
|
|
5662
5662
|
// Removes the tooltip previously bound with `bindTooltip`.
|
|
@@ -5675,7 +5675,7 @@ function ll() {
|
|
|
5675
5675
|
// @method openTooltip(latlng?: LatLng): this
|
|
5676
5676
|
// Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.
|
|
5677
5677
|
openTooltip: function(t) {
|
|
5678
|
-
return this._tooltip && (this instanceof
|
|
5678
|
+
return this._tooltip && (this instanceof ue || (this._tooltip._source = this), this._tooltip._prepareOpen(t) && (this._tooltip.openOn(this._map), this.getElement ? this._setAriaDescribedByOnLayer(this) : this.eachLayer && this.eachLayer(this._setAriaDescribedByOnLayer, this))), this;
|
|
5679
5679
|
},
|
|
5680
5680
|
// @method closeTooltip(): this
|
|
5681
5681
|
// Closes the tooltip bound to this layer if it is open.
|
|
@@ -5734,7 +5734,7 @@ function ll() {
|
|
|
5734
5734
|
this._tooltip.options.sticky && t.originalEvent && (i = this._map.mouseEventToContainerPoint(t.originalEvent), n = this._map.containerPointToLayerPoint(i), e = this._map.layerPointToLatLng(n)), this._tooltip.setLatLng(e);
|
|
5735
5735
|
}
|
|
5736
5736
|
});
|
|
5737
|
-
var No =
|
|
5737
|
+
var No = Ge.extend({
|
|
5738
5738
|
options: {
|
|
5739
5739
|
// @section
|
|
5740
5740
|
// @aka DivIcon options
|
|
@@ -5753,7 +5753,7 @@ function ll() {
|
|
|
5753
5753
|
},
|
|
5754
5754
|
createIcon: function(t) {
|
|
5755
5755
|
var e = t && t.tagName === "DIV" ? t : document.createElement("div"), i = this.options;
|
|
5756
|
-
if (i.html instanceof Element ? (
|
|
5756
|
+
if (i.html instanceof Element ? (Fi(e), e.appendChild(i.html)) : e.innerHTML = i.html !== !1 ? i.html : "", i.bgPos) {
|
|
5757
5757
|
var n = R(i.bgPos);
|
|
5758
5758
|
e.style.backgroundPosition = -n.x + "px " + -n.y + "px";
|
|
5759
5759
|
}
|
|
@@ -5766,8 +5766,8 @@ function ll() {
|
|
|
5766
5766
|
function dr(t) {
|
|
5767
5767
|
return new No(t);
|
|
5768
5768
|
}
|
|
5769
|
-
|
|
5770
|
-
var
|
|
5769
|
+
Ge.Default = mi;
|
|
5770
|
+
var gi = te.extend({
|
|
5771
5771
|
// @section
|
|
5772
5772
|
// @aka GridLayer options
|
|
5773
5773
|
options: {
|
|
@@ -5843,12 +5843,12 @@ function ll() {
|
|
|
5843
5843
|
// @method bringToFront: this
|
|
5844
5844
|
// Brings the tile layer to the top of all tile layers.
|
|
5845
5845
|
bringToFront: function() {
|
|
5846
|
-
return this._map && (
|
|
5846
|
+
return this._map && (He(this._container), this._setAutoZIndex(Math.max)), this;
|
|
5847
5847
|
},
|
|
5848
5848
|
// @method bringToBack: this
|
|
5849
5849
|
// Brings the tile layer to the bottom of all tile layers.
|
|
5850
5850
|
bringToBack: function() {
|
|
5851
|
-
return this._map && (
|
|
5851
|
+
return this._map && (Ve(this._container), this._setAutoZIndex(Math.min)), this;
|
|
5852
5852
|
},
|
|
5853
5853
|
// @method getContainer: HTMLElement
|
|
5854
5854
|
// Returns the HTML element that contains the tiles for this layer.
|
|
@@ -5903,7 +5903,7 @@ function ll() {
|
|
|
5903
5903
|
// Normalizes the [tileSize option](#gridlayer-tilesize) into a point. Used by the `createTile()` method.
|
|
5904
5904
|
getTileSize: function() {
|
|
5905
5905
|
var t = this.options.tileSize;
|
|
5906
|
-
return t instanceof
|
|
5906
|
+
return t instanceof U ? t : new U(t, t);
|
|
5907
5907
|
},
|
|
5908
5908
|
_updateZIndex: function() {
|
|
5909
5909
|
this._container && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._container.style.zIndex = this.options.zIndex);
|
|
@@ -5915,13 +5915,13 @@ function ll() {
|
|
|
5915
5915
|
},
|
|
5916
5916
|
_updateOpacity: function() {
|
|
5917
5917
|
if (this._map && !D.ielt9) {
|
|
5918
|
-
|
|
5918
|
+
$t(this._container, this.options.opacity);
|
|
5919
5919
|
var t = +/* @__PURE__ */ new Date(), e = !1, i = !1;
|
|
5920
5920
|
for (var n in this._tiles) {
|
|
5921
5921
|
var s = this._tiles[n];
|
|
5922
5922
|
if (!(!s.current || !s.loaded)) {
|
|
5923
5923
|
var l = Math.min(1, (t - s.loaded) / 200);
|
|
5924
|
-
|
|
5924
|
+
$t(s.el, l), l < 1 ? e = !0 : (s.active ? i = !0 : this._onOpaqueTile(s), s.active = !0);
|
|
5925
5925
|
}
|
|
5926
5926
|
}
|
|
5927
5927
|
i && !this._noPrune && this._pruneTiles(), e && (Y(this._fadeFrame), this._fadeFrame = et(this._updateOpacity, this));
|
|
@@ -5975,7 +5975,7 @@ function ll() {
|
|
|
5975
5975
|
this._removeAllTiles(), this._tileZoom = void 0;
|
|
5976
5976
|
},
|
|
5977
5977
|
_retainParent: function(t, e, i, n) {
|
|
5978
|
-
var s = Math.floor(t / 2), l = Math.floor(e / 2), _ = i - 1, b = new
|
|
5978
|
+
var s = Math.floor(t / 2), l = Math.floor(e / 2), _ = i - 1, b = new U(+s, +l);
|
|
5979
5979
|
b.z = +_;
|
|
5980
5980
|
var C = this._tileCoordsToKey(b), M = this._tiles[C];
|
|
5981
5981
|
return M && M.active ? (M.retain = !0, !0) : (M && M.loaded && (M.retain = !0), _ > n ? this._retainParent(s, l, _, n) : !1);
|
|
@@ -5983,7 +5983,7 @@ function ll() {
|
|
|
5983
5983
|
_retainChildren: function(t, e, i, n) {
|
|
5984
5984
|
for (var s = 2 * t; s < 2 * t + 2; s++)
|
|
5985
5985
|
for (var l = 2 * e; l < 2 * e + 2; l++) {
|
|
5986
|
-
var _ = new
|
|
5986
|
+
var _ = new U(s, l);
|
|
5987
5987
|
_.z = i + 1;
|
|
5988
5988
|
var b = this._tileCoordsToKey(_), C = this._tiles[b];
|
|
5989
5989
|
if (C && C.active) {
|
|
@@ -6016,7 +6016,7 @@ function ll() {
|
|
|
6016
6016
|
},
|
|
6017
6017
|
_setZoomTransform: function(t, e, i) {
|
|
6018
6018
|
var n = this._map.getZoomScale(i, t.zoom), s = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
|
|
6019
|
-
D.any3d ?
|
|
6019
|
+
D.any3d ? Me(t.el, s, n) : Pt(t.el, s);
|
|
6020
6020
|
},
|
|
6021
6021
|
_resetGrid: function() {
|
|
6022
6022
|
var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), n = this._tileZoom, s = this._map.getPixelWorldBounds(this._tileZoom);
|
|
@@ -6049,28 +6049,28 @@ function ll() {
|
|
|
6049
6049
|
throw new Error("Attempted to load an infinite number of tiles");
|
|
6050
6050
|
for (var M in this._tiles) {
|
|
6051
6051
|
var O = this._tiles[M].coords;
|
|
6052
|
-
(O.z !== this._tileZoom || !C.contains(new
|
|
6052
|
+
(O.z !== this._tileZoom || !C.contains(new U(O.x, O.y))) && (this._tiles[M].current = !1);
|
|
6053
6053
|
}
|
|
6054
6054
|
if (Math.abs(i - this._tileZoom) > 1) {
|
|
6055
6055
|
this._setView(t, i);
|
|
6056
6056
|
return;
|
|
6057
6057
|
}
|
|
6058
|
-
for (var
|
|
6058
|
+
for (var G = s.min.y; G <= s.max.y; G++)
|
|
6059
6059
|
for (var Q = s.min.x; Q <= s.max.x; Q++) {
|
|
6060
|
-
var
|
|
6061
|
-
if (
|
|
6062
|
-
var At = this._tiles[this._tileCoordsToKey(
|
|
6063
|
-
At ? At.current = !0 : _.push(
|
|
6060
|
+
var Dt = new U(Q, G);
|
|
6061
|
+
if (Dt.z = this._tileZoom, !!this._isValidTile(Dt)) {
|
|
6062
|
+
var At = this._tiles[this._tileCoordsToKey(Dt)];
|
|
6063
|
+
At ? At.current = !0 : _.push(Dt);
|
|
6064
6064
|
}
|
|
6065
6065
|
}
|
|
6066
|
-
if (_.sort(function(
|
|
6067
|
-
return
|
|
6066
|
+
if (_.sort(function(Ht, qe) {
|
|
6067
|
+
return Ht.distanceTo(l) - qe.distanceTo(l);
|
|
6068
6068
|
}), _.length !== 0) {
|
|
6069
6069
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
6070
|
-
var
|
|
6070
|
+
var qt = document.createDocumentFragment();
|
|
6071
6071
|
for (Q = 0; Q < _.length; Q++)
|
|
6072
|
-
this._addTile(_[Q],
|
|
6073
|
-
this._level.el.appendChild(
|
|
6072
|
+
this._addTile(_[Q], qt);
|
|
6073
|
+
this._level.el.appendChild(qt);
|
|
6074
6074
|
}
|
|
6075
6075
|
}
|
|
6076
6076
|
}
|
|
@@ -6085,7 +6085,7 @@ function ll() {
|
|
|
6085
6085
|
if (!this.options.bounds)
|
|
6086
6086
|
return !0;
|
|
6087
6087
|
var n = this._tileCoordsToBounds(t);
|
|
6088
|
-
return
|
|
6088
|
+
return pt(this.options.bounds).overlaps(n);
|
|
6089
6089
|
},
|
|
6090
6090
|
_keyToBounds: function(t) {
|
|
6091
6091
|
return this._tileCoordsToBounds(this._keyToTileCoords(t));
|
|
@@ -6105,7 +6105,7 @@ function ll() {
|
|
|
6105
6105
|
},
|
|
6106
6106
|
// converts tile cache key to coordinates
|
|
6107
6107
|
_keyToTileCoords: function(t) {
|
|
6108
|
-
var e = t.split(":"), i = new
|
|
6108
|
+
var e = t.split(":"), i = new U(+e[0], +e[1]);
|
|
6109
6109
|
return i.z = +e[2], i;
|
|
6110
6110
|
},
|
|
6111
6111
|
_removeTile: function(t) {
|
|
@@ -6118,7 +6118,7 @@ function ll() {
|
|
|
6118
6118
|
_initTile: function(t) {
|
|
6119
6119
|
j(t, "leaflet-tile");
|
|
6120
6120
|
var e = this.getTileSize();
|
|
6121
|
-
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = g, t.onmousemove = g, D.ielt9 && this.options.opacity < 1 &&
|
|
6121
|
+
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = g, t.onmousemove = g, D.ielt9 && this.options.opacity < 1 && $t(t, this.options.opacity);
|
|
6122
6122
|
},
|
|
6123
6123
|
_addTile: function(t, e) {
|
|
6124
6124
|
var i = this._getTilePos(t), n = this._tileCoordsToKey(t), s = this.createTile(this._wrapCoords(t), r(this._tileReady, this, t));
|
|
@@ -6138,7 +6138,7 @@ function ll() {
|
|
|
6138
6138
|
coords: t
|
|
6139
6139
|
});
|
|
6140
6140
|
var n = this._tileCoordsToKey(t);
|
|
6141
|
-
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (
|
|
6141
|
+
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? ($t(i.el, 0), Y(this._fadeFrame), this._fadeFrame = et(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (j(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
|
6142
6142
|
tile: i.el,
|
|
6143
6143
|
coords: t
|
|
6144
6144
|
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), D.ielt9 || !this._map._fadeAnimated ? et(this._pruneTiles, this) : setTimeout(r(this._pruneTiles, this), 250)));
|
|
@@ -6147,7 +6147,7 @@ function ll() {
|
|
|
6147
6147
|
return t.scaleBy(this.getTileSize()).subtract(this._level.origin);
|
|
6148
6148
|
},
|
|
6149
6149
|
_wrapCoords: function(t) {
|
|
6150
|
-
var e = new
|
|
6150
|
+
var e = new U(
|
|
6151
6151
|
this._wrapX ? y(t.x, this._wrapX) : t.x,
|
|
6152
6152
|
this._wrapY ? y(t.y, this._wrapY) : t.y
|
|
6153
6153
|
);
|
|
@@ -6168,9 +6168,9 @@ function ll() {
|
|
|
6168
6168
|
}
|
|
6169
6169
|
});
|
|
6170
6170
|
function fr(t) {
|
|
6171
|
-
return new
|
|
6171
|
+
return new gi(t);
|
|
6172
6172
|
}
|
|
6173
|
-
var
|
|
6173
|
+
var We = gi.extend({
|
|
6174
6174
|
// @section
|
|
6175
6175
|
// @aka TileLayer options
|
|
6176
6176
|
options: {
|
|
@@ -6283,17 +6283,17 @@ function ll() {
|
|
|
6283
6283
|
_removeTile: function(t) {
|
|
6284
6284
|
var e = this._tiles[t];
|
|
6285
6285
|
if (e)
|
|
6286
|
-
return e.el.setAttribute("src", st),
|
|
6286
|
+
return e.el.setAttribute("src", st), gi.prototype._removeTile.call(this, t);
|
|
6287
6287
|
},
|
|
6288
6288
|
_tileReady: function(t, e, i) {
|
|
6289
6289
|
if (!(!this._map || i && i.getAttribute("src") === st))
|
|
6290
|
-
return
|
|
6290
|
+
return gi.prototype._tileReady.call(this, t, e, i);
|
|
6291
6291
|
}
|
|
6292
6292
|
});
|
|
6293
6293
|
function Ro(t, e) {
|
|
6294
|
-
return new
|
|
6294
|
+
return new We(t, e);
|
|
6295
6295
|
}
|
|
6296
|
-
var Ho =
|
|
6296
|
+
var Ho = We.extend({
|
|
6297
6297
|
// @section
|
|
6298
6298
|
// @aka TileLayer.WMS options
|
|
6299
6299
|
// If any custom options not documented here are used, they will be sent to the
|
|
@@ -6339,10 +6339,10 @@ function ll() {
|
|
|
6339
6339
|
onAdd: function(t) {
|
|
6340
6340
|
this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
|
|
6341
6341
|
var e = this._wmsVersion >= 1.3 ? "crs" : "srs";
|
|
6342
|
-
this.wmsParams[e] = this._crs.code,
|
|
6342
|
+
this.wmsParams[e] = this._crs.code, We.prototype.onAdd.call(this, t);
|
|
6343
6343
|
},
|
|
6344
6344
|
getTileUrl: function(t) {
|
|
6345
|
-
var e = this._tileCoordsToNwSe(t), i = this._crs, n =
|
|
6345
|
+
var e = this._tileCoordsToNwSe(t), i = this._crs, n = wt(i.project(e[0]), i.project(e[1])), s = n.min, l = n.max, _ = (this._wmsVersion >= 1.3 && this._crs === Oo ? [s.y, s.x, l.y, l.x] : [s.x, s.y, l.x, l.y]).join(","), b = We.prototype.getTileUrl.call(this, t);
|
|
6346
6346
|
return b + H(this.wmsParams, b, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + _;
|
|
6347
6347
|
},
|
|
6348
6348
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
@@ -6354,8 +6354,8 @@ function ll() {
|
|
|
6354
6354
|
function pr(t, e) {
|
|
6355
6355
|
return new Ho(t, e);
|
|
6356
6356
|
}
|
|
6357
|
-
|
|
6358
|
-
var
|
|
6357
|
+
We.WMS = Ho, Ro.wms = pr;
|
|
6358
|
+
var de = te.extend({
|
|
6359
6359
|
// @section
|
|
6360
6360
|
// @aka Renderer options
|
|
6361
6361
|
options: {
|
|
@@ -6390,7 +6390,7 @@ function ll() {
|
|
|
6390
6390
|
},
|
|
6391
6391
|
_updateTransform: function(t, e) {
|
|
6392
6392
|
var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), s = this._map.project(this._center, e), l = n.multiplyBy(-i).add(s).subtract(this._map._getNewPixelOrigin(t, e));
|
|
6393
|
-
D.any3d ?
|
|
6393
|
+
D.any3d ? Me(this._container, l, i) : Pt(this._container, l);
|
|
6394
6394
|
},
|
|
6395
6395
|
_reset: function() {
|
|
6396
6396
|
this._update(), this._updateTransform(this._center, this._zoom);
|
|
@@ -6409,7 +6409,7 @@ function ll() {
|
|
|
6409
6409
|
var t = this.options.padding, e = this._map.getSize(), i = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();
|
|
6410
6410
|
this._bounds = new K(i, i.add(e.multiplyBy(1 + t * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
|
|
6411
6411
|
}
|
|
6412
|
-
}), Vo =
|
|
6412
|
+
}), Vo = de.extend({
|
|
6413
6413
|
// @section
|
|
6414
6414
|
// @aka Canvas options
|
|
6415
6415
|
options: {
|
|
@@ -6418,14 +6418,14 @@ function ll() {
|
|
|
6418
6418
|
tolerance: 0
|
|
6419
6419
|
},
|
|
6420
6420
|
getEvents: function() {
|
|
6421
|
-
var t =
|
|
6421
|
+
var t = de.prototype.getEvents.call(this);
|
|
6422
6422
|
return t.viewprereset = this._onViewPreReset, t;
|
|
6423
6423
|
},
|
|
6424
6424
|
_onViewPreReset: function() {
|
|
6425
6425
|
this._postponeUpdatePaths = !0;
|
|
6426
6426
|
},
|
|
6427
6427
|
onAdd: function() {
|
|
6428
|
-
|
|
6428
|
+
de.prototype.onAdd.call(this), this._draw();
|
|
6429
6429
|
},
|
|
6430
6430
|
_initContainer: function() {
|
|
6431
6431
|
var t = this._container = document.createElement("canvas");
|
|
@@ -6445,13 +6445,13 @@ function ll() {
|
|
|
6445
6445
|
},
|
|
6446
6446
|
_update: function() {
|
|
6447
6447
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
6448
|
-
|
|
6448
|
+
de.prototype._update.call(this);
|
|
6449
6449
|
var t = this._bounds, e = this._container, i = t.getSize(), n = D.retina ? 2 : 1;
|
|
6450
6450
|
Pt(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", D.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update");
|
|
6451
6451
|
}
|
|
6452
6452
|
},
|
|
6453
6453
|
_reset: function() {
|
|
6454
|
-
|
|
6454
|
+
de.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths());
|
|
6455
6455
|
},
|
|
6456
6456
|
_initPath: function(t) {
|
|
6457
6457
|
this._updateDashArray(t), this._layers[f(t)] = t;
|
|
@@ -6556,7 +6556,7 @@ function ll() {
|
|
|
6556
6556
|
},
|
|
6557
6557
|
_handleMouseOut: function(t) {
|
|
6558
6558
|
var e = this._hoveredLayer;
|
|
6559
|
-
e && (
|
|
6559
|
+
e && (bt(this._container, "leaflet-interactive"), this._fireEvent([e], t, "mouseout"), this._hoveredLayer = null, this._mouseHoverThrottled = !1);
|
|
6560
6560
|
},
|
|
6561
6561
|
_handleMouseHover: function(t, e) {
|
|
6562
6562
|
if (!this._mouseHoverThrottled) {
|
|
@@ -6596,7 +6596,7 @@ function ll() {
|
|
|
6596
6596
|
function Fo(t) {
|
|
6597
6597
|
return D.canvas ? new Vo(t) : null;
|
|
6598
6598
|
}
|
|
6599
|
-
var
|
|
6599
|
+
var vi = function() {
|
|
6600
6600
|
try {
|
|
6601
6601
|
return document.namespaces.add("lvml", "urn:schemas-microsoft-com:vml"), function(t) {
|
|
6602
6602
|
return document.createElement("<lvml:" + t + ' class="lvml">');
|
|
@@ -6611,11 +6611,11 @@ function ll() {
|
|
|
6611
6611
|
this._container = rt("div", "leaflet-vml-container");
|
|
6612
6612
|
},
|
|
6613
6613
|
_update: function() {
|
|
6614
|
-
this._map._animatingZoom || (
|
|
6614
|
+
this._map._animatingZoom || (de.prototype._update.call(this), this.fire("update"));
|
|
6615
6615
|
},
|
|
6616
6616
|
_initPath: function(t) {
|
|
6617
|
-
var e = t._container =
|
|
6618
|
-
j(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path =
|
|
6617
|
+
var e = t._container = vi("shape");
|
|
6618
|
+
j(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path = vi("path"), e.appendChild(t._path), this._updateStyle(t), this._layers[f(t)] = t;
|
|
6619
6619
|
},
|
|
6620
6620
|
_addPath: function(t) {
|
|
6621
6621
|
var e = t._container;
|
|
@@ -6627,7 +6627,7 @@ function ll() {
|
|
|
6627
6627
|
},
|
|
6628
6628
|
_updateStyle: function(t) {
|
|
6629
6629
|
var e = t._stroke, i = t._fill, n = t.options, s = t._container;
|
|
6630
|
-
s.stroked = !!n.stroke, s.filled = !!n.fill, n.stroke ? (e || (e = t._stroke =
|
|
6630
|
+
s.stroked = !!n.stroke, s.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = vi("stroke")), s.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = W(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 = vi("fill")), s.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (s.removeChild(i), t._fill = null);
|
|
6631
6631
|
},
|
|
6632
6632
|
_updateCircle: function(t) {
|
|
6633
6633
|
var e = t._point.round(), i = Math.round(t._radius), n = Math.round(t._radiusY || i);
|
|
@@ -6637,28 +6637,28 @@ function ll() {
|
|
|
6637
6637
|
t._path.v = e;
|
|
6638
6638
|
},
|
|
6639
6639
|
_bringToFront: function(t) {
|
|
6640
|
-
|
|
6640
|
+
He(t._container);
|
|
6641
6641
|
},
|
|
6642
6642
|
_bringToBack: function(t) {
|
|
6643
|
-
|
|
6643
|
+
Ve(t._container);
|
|
6644
6644
|
}
|
|
6645
|
-
},
|
|
6645
|
+
}, on = D.vml ? vi : Ti, yi = de.extend({
|
|
6646
6646
|
_initContainer: function() {
|
|
6647
|
-
this._container =
|
|
6647
|
+
this._container = on("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = on("g"), this._container.appendChild(this._rootGroup);
|
|
6648
6648
|
},
|
|
6649
6649
|
_destroyContainer: function() {
|
|
6650
6650
|
_t(this._container), ct(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
|
6651
6651
|
},
|
|
6652
6652
|
_update: function() {
|
|
6653
6653
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
6654
|
-
|
|
6654
|
+
de.prototype._update.call(this);
|
|
6655
6655
|
var t = this._bounds, e = t.getSize(), i = this._container;
|
|
6656
6656
|
(!this._svgSize || !this._svgSize.equals(e)) && (this._svgSize = e, i.setAttribute("width", e.x), i.setAttribute("height", e.y)), Pt(i, t.min), i.setAttribute("viewBox", [t.min.x, t.min.y, e.x, e.y].join(" ")), this.fire("update");
|
|
6657
6657
|
}
|
|
6658
6658
|
},
|
|
6659
6659
|
// methods below are called by vector layers implementations
|
|
6660
6660
|
_initPath: function(t) {
|
|
6661
|
-
var e = t._path =
|
|
6661
|
+
var e = t._path = on("path");
|
|
6662
6662
|
t.options.className && j(e, t.options.className), t.options.interactive && j(e, "leaflet-interactive"), this._updateStyle(t), this._layers[f(t)] = t;
|
|
6663
6663
|
},
|
|
6664
6664
|
_addPath: function(t) {
|
|
@@ -6675,7 +6675,7 @@ function ll() {
|
|
|
6675
6675
|
e && (i.stroke ? (e.setAttribute("stroke", i.color), e.setAttribute("stroke-opacity", i.opacity), e.setAttribute("stroke-width", i.weight), e.setAttribute("stroke-linecap", i.lineCap), e.setAttribute("stroke-linejoin", i.lineJoin), i.dashArray ? e.setAttribute("stroke-dasharray", i.dashArray) : e.removeAttribute("stroke-dasharray"), i.dashOffset ? e.setAttribute("stroke-dashoffset", i.dashOffset) : e.removeAttribute("stroke-dashoffset")) : e.setAttribute("stroke", "none"), i.fill ? (e.setAttribute("fill", i.fillColor || i.color), e.setAttribute("fill-opacity", i.fillOpacity), e.setAttribute("fill-rule", i.fillRule || "evenodd")) : e.setAttribute("fill", "none"));
|
|
6676
6676
|
},
|
|
6677
6677
|
_updatePoly: function(t, e) {
|
|
6678
|
-
this._setPath(t,
|
|
6678
|
+
this._setPath(t, Be(t._parts, e));
|
|
6679
6679
|
},
|
|
6680
6680
|
_updateCircle: function(t) {
|
|
6681
6681
|
var e = t._point, i = Math.max(Math.round(t._radius), 1), n = Math.max(Math.round(t._radiusY), 1) || i, s = "a" + i + "," + n + " 0 1,0 ", l = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + s + i * 2 + ",0 " + s + -i * 2 + ",0 ";
|
|
@@ -6686,15 +6686,15 @@ function ll() {
|
|
|
6686
6686
|
},
|
|
6687
6687
|
// SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
|
|
6688
6688
|
_bringToFront: function(t) {
|
|
6689
|
-
|
|
6689
|
+
He(t._path);
|
|
6690
6690
|
},
|
|
6691
6691
|
_bringToBack: function(t) {
|
|
6692
|
-
|
|
6692
|
+
Ve(t._path);
|
|
6693
6693
|
}
|
|
6694
6694
|
});
|
|
6695
|
-
D.vml &&
|
|
6695
|
+
D.vml && yi.include(_r);
|
|
6696
6696
|
function Go(t) {
|
|
6697
|
-
return D.svg || D.vml ? new
|
|
6697
|
+
return D.svg || D.vml ? new yi(t) : null;
|
|
6698
6698
|
}
|
|
6699
6699
|
nt.include({
|
|
6700
6700
|
// @namespace Map; @method getRenderer(layer: Path): Renderer
|
|
@@ -6715,9 +6715,9 @@ function ll() {
|
|
|
6715
6715
|
return this.options.preferCanvas && Fo(t) || Go(t);
|
|
6716
6716
|
}
|
|
6717
6717
|
});
|
|
6718
|
-
var Uo =
|
|
6718
|
+
var Uo = Ue.extend({
|
|
6719
6719
|
initialize: function(t, e) {
|
|
6720
|
-
|
|
6720
|
+
Ue.prototype.initialize.call(this, this._boundsToLatLngs(t), e);
|
|
6721
6721
|
},
|
|
6722
6722
|
// @method setBounds(latLngBounds: LatLngBounds): this
|
|
6723
6723
|
// Redraws the rectangle with the passed bounds.
|
|
@@ -6725,7 +6725,7 @@ function ll() {
|
|
|
6725
6725
|
return this.setLatLngs(this._boundsToLatLngs(t));
|
|
6726
6726
|
},
|
|
6727
6727
|
_boundsToLatLngs: function(t) {
|
|
6728
|
-
return t =
|
|
6728
|
+
return t = pt(t), [
|
|
6729
6729
|
t.getSouthWest(),
|
|
6730
6730
|
t.getNorthWest(),
|
|
6731
6731
|
t.getNorthEast(),
|
|
@@ -6736,7 +6736,7 @@ function ll() {
|
|
|
6736
6736
|
function mr(t, e) {
|
|
6737
6737
|
return new Uo(t, e);
|
|
6738
6738
|
}
|
|
6739
|
-
|
|
6739
|
+
yi.create = on, yi.pointsToPath = Be, ce.geometryToLayer = Ki, ce.coordsToLatLng = qn, ce.coordsToLatLngs = Xi, ce.latLngToCoords = jn, ce.latLngsToCoords = Ji, ce.getFeature = $e, ce.asFeature = Qi, nt.mergeOptions({
|
|
6740
6740
|
// @option boxZoom: Boolean = true
|
|
6741
6741
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
6742
6742
|
// dragging the mouse while pressing the shift key.
|
|
@@ -6767,8 +6767,8 @@ function ll() {
|
|
|
6767
6767
|
_onMouseDown: function(t) {
|
|
6768
6768
|
if (!t.shiftKey || t.which !== 1 && t.button !== 1)
|
|
6769
6769
|
return !1;
|
|
6770
|
-
this._clearDeferredResetState(), this._resetState(),
|
|
6771
|
-
contextmenu:
|
|
6770
|
+
this._clearDeferredResetState(), this._resetState(), hi(), An(), this._startPoint = this._map.mouseEventToContainerPoint(t), q(document, {
|
|
6771
|
+
contextmenu: Ie,
|
|
6772
6772
|
mousemove: this._onMouseMove,
|
|
6773
6773
|
mouseup: this._onMouseUp,
|
|
6774
6774
|
keydown: this._onKeyDown
|
|
@@ -6780,8 +6780,8 @@ function ll() {
|
|
|
6780
6780
|
Pt(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
|
|
6781
6781
|
},
|
|
6782
6782
|
_finish: function() {
|
|
6783
|
-
this._moved && (_t(this._box),
|
|
6784
|
-
contextmenu:
|
|
6783
|
+
this._moved && (_t(this._box), bt(this._container, "leaflet-crosshair")), ci(), In(), ct(document, {
|
|
6784
|
+
contextmenu: Ie,
|
|
6785
6785
|
mousemove: this._onMouseMove,
|
|
6786
6786
|
mouseup: this._onMouseUp,
|
|
6787
6787
|
keydown: this._onKeyDown
|
|
@@ -6869,7 +6869,7 @@ function ll() {
|
|
|
6869
6869
|
j(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = [];
|
|
6870
6870
|
},
|
|
6871
6871
|
removeHooks: function() {
|
|
6872
|
-
|
|
6872
|
+
bt(this._map._container, "leaflet-grab"), bt(this._map._container, "leaflet-touch-drag"), this._draggable.disable();
|
|
6873
6873
|
},
|
|
6874
6874
|
moved: function() {
|
|
6875
6875
|
return this._draggable && this._draggable._moved;
|
|
@@ -6880,8 +6880,8 @@ function ll() {
|
|
|
6880
6880
|
_onDragStart: function() {
|
|
6881
6881
|
var t = this._map;
|
|
6882
6882
|
if (t._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
|
|
6883
|
-
var e =
|
|
6884
|
-
this._offsetLimit =
|
|
6883
|
+
var e = pt(this._map.options.maxBounds);
|
|
6884
|
+
this._offsetLimit = wt(
|
|
6885
6885
|
this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),
|
|
6886
6886
|
this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())
|
|
6887
6887
|
), this._viscosity = Math.min(1, Math.max(0, this._map.options.maxBoundsViscosity));
|
|
@@ -6923,10 +6923,10 @@ function ll() {
|
|
|
6923
6923
|
e.fire("moveend");
|
|
6924
6924
|
else {
|
|
6925
6925
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
6926
|
-
var s = this._lastPos.subtract(this._positions[0]), l = (this._lastTime - this._times[0]) / 1e3, _ = i.easeLinearity, b = s.multiplyBy(_ / l), C = b.distanceTo([0, 0]), M = Math.min(i.inertiaMaxSpeed, C), O = b.multiplyBy(M / C),
|
|
6926
|
+
var s = this._lastPos.subtract(this._positions[0]), l = (this._lastTime - this._times[0]) / 1e3, _ = i.easeLinearity, b = s.multiplyBy(_ / l), C = b.distanceTo([0, 0]), M = Math.min(i.inertiaMaxSpeed, C), O = b.multiplyBy(M / C), G = M / (i.inertiaDeceleration * _), Q = O.multiplyBy(-G / 2).round();
|
|
6927
6927
|
!Q.x && !Q.y ? e.fire("moveend") : (Q = e._limitOffset(Q, e.options.maxBounds), et(function() {
|
|
6928
6928
|
e.panBy(Q, {
|
|
6929
|
-
duration:
|
|
6929
|
+
duration: G,
|
|
6930
6930
|
easeLinearity: _,
|
|
6931
6931
|
noMoveStart: !0,
|
|
6932
6932
|
animate: !0
|
|
@@ -7029,7 +7029,7 @@ function ll() {
|
|
|
7029
7029
|
i.closePopup();
|
|
7030
7030
|
else
|
|
7031
7031
|
return;
|
|
7032
|
-
|
|
7032
|
+
Ie(t);
|
|
7033
7033
|
}
|
|
7034
7034
|
}
|
|
7035
7035
|
});
|
|
@@ -7060,7 +7060,7 @@ function ll() {
|
|
|
7060
7060
|
var e = yo(t), i = this._map.options.wheelDebounceTime;
|
|
7061
7061
|
this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +/* @__PURE__ */ new Date());
|
|
7062
7062
|
var n = Math.max(i - (+/* @__PURE__ */ new Date() - this._startTime), 0);
|
|
7063
|
-
clearTimeout(this._timer), this._timer = setTimeout(r(this._performZoom, this), n),
|
|
7063
|
+
clearTimeout(this._timer), this._timer = setTimeout(r(this._performZoom, this), n), Ie(t);
|
|
7064
7064
|
},
|
|
7065
7065
|
_performZoom: function() {
|
|
7066
7066
|
var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0;
|
|
@@ -7091,7 +7091,7 @@ function ll() {
|
|
|
7091
7091
|
_onDown: function(t) {
|
|
7092
7092
|
if (clearTimeout(this._holdTimeout), t.touches.length === 1) {
|
|
7093
7093
|
var e = t.touches[0];
|
|
7094
|
-
this._startPos = this._newPos = new
|
|
7094
|
+
this._startPos = this._newPos = new U(e.clientX, e.clientY), this._holdTimeout = setTimeout(r(function() {
|
|
7095
7095
|
this._cancel(), this._isTapValid() && (q(document, "touchend", Et), q(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
|
|
7096
7096
|
}, this), gr), q(document, "touchend touchcancel contextmenu", this._cancel, this), q(document, "touchmove", this._onMove, this);
|
|
7097
7097
|
}
|
|
@@ -7104,7 +7104,7 @@ function ll() {
|
|
|
7104
7104
|
},
|
|
7105
7105
|
_onMove: function(t) {
|
|
7106
7106
|
var e = t.touches[0];
|
|
7107
|
-
this._newPos = new
|
|
7107
|
+
this._newPos = new U(e.clientX, e.clientY);
|
|
7108
7108
|
},
|
|
7109
7109
|
_isTapValid: function() {
|
|
7110
7110
|
return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance;
|
|
@@ -7143,7 +7143,7 @@ function ll() {
|
|
|
7143
7143
|
j(this._map._container, "leaflet-touch-zoom"), q(this._map._container, "touchstart", this._onTouchStart, this);
|
|
7144
7144
|
},
|
|
7145
7145
|
removeHooks: function() {
|
|
7146
|
-
|
|
7146
|
+
bt(this._map._container, "leaflet-touch-zoom"), ct(this._map._container, "touchstart", this._onTouchStart, this);
|
|
7147
7147
|
},
|
|
7148
7148
|
_onTouchStart: function(t) {
|
|
7149
7149
|
var e = this._map;
|
|
@@ -7177,17 +7177,17 @@ function ll() {
|
|
|
7177
7177
|
this._zooming = !1, Y(this._animRequest), ct(document, "touchmove", this._onTouchMove, this), ct(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));
|
|
7178
7178
|
}
|
|
7179
7179
|
});
|
|
7180
|
-
nt.addInitHook("addHandler", "touchZoom", Xo), nt.BoxZoom = $o, nt.DoubleClickZoom = Wo, nt.Drag = qo, nt.Keyboard = jo, nt.ScrollWheelZoom = Yo, nt.TapHold = Ko, nt.TouchZoom = Xo, h.Bounds = K, h.Browser = D, h.CRS =
|
|
7180
|
+
nt.addInitHook("addHandler", "touchZoom", Xo), nt.BoxZoom = $o, nt.DoubleClickZoom = Wo, nt.Drag = qo, nt.Keyboard = jo, nt.ScrollWheelZoom = Yo, nt.TapHold = Ko, nt.TouchZoom = Xo, h.Bounds = K, h.Browser = D, h.CRS = Rt, h.Canvas = Vo, h.Circle = Wn, h.CircleMarker = Yi, h.Class = mt, h.Control = Qt, h.DivIcon = No, h.DivOverlay = oe, h.DomEvent = Bs, h.DomUtil = zs, h.Draggable = ve, h.Evented = Bt, h.FeatureGroup = ue, h.GeoJSON = ce, h.GridLayer = gi, h.Handler = ne, h.Icon = Ge, h.ImageOverlay = tn, h.LatLng = it, h.LatLngBounds = ot, h.Layer = te, h.LayerGroup = Fe, h.LineUtil = js, h.Map = nt, h.Marker = ji, h.Mixin = Fs, h.Path = ye, h.Point = U, h.PolyUtil = Gs, h.Polygon = Ue, h.Polyline = he, h.Popup = en, h.PosAnimation = bo, h.Projection = Ys, h.Rectangle = Uo, h.Renderer = de, h.SVG = yi, h.SVGOverlay = Do, h.TileLayer = We, h.Tooltip = nn, h.Transformation = Ye, h.Util = kt, h.VideoOverlay = Zo, h.bind = r, h.bounds = wt, h.canvas = Fo, h.circle = nr, h.circleMarker = ir, h.control = pi, h.divIcon = dr, h.extend = v, h.featureGroup = Qs, h.geoJSON = Bo, h.geoJson = rr, h.gridLayer = fr, h.icon = tr, h.imageOverlay = ar, h.latLng = X, h.latLngBounds = pt, h.layerGroup = Js, h.map = Zs, h.marker = er, h.point = R, h.polygon = sr, h.polyline = or, h.popup = hr, h.rectangle = mr, h.setOptions = x, h.stamp = f, h.svg = Go, h.svgOverlay = ur, h.tileLayer = Ro, h.tooltip = cr, h.transformation = Pe, h.version = p, h.videoOverlay = lr;
|
|
7181
7181
|
var vr = window.L;
|
|
7182
7182
|
h.noConflict = function() {
|
|
7183
7183
|
return window.L = vr, this;
|
|
7184
7184
|
}, window.L = h;
|
|
7185
7185
|
});
|
|
7186
|
-
}(
|
|
7186
|
+
}(ki, ki.exports)), ki.exports;
|
|
7187
7187
|
}
|
|
7188
7188
|
var ul = ll();
|
|
7189
|
-
const
|
|
7190
|
-
var
|
|
7189
|
+
const fe = /* @__PURE__ */ aa(ul);
|
|
7190
|
+
var wi = { exports: {} }, hl = wi.exports, hs;
|
|
7191
7191
|
function cl() {
|
|
7192
7192
|
return hs || (hs = 1, function(a, u) {
|
|
7193
7193
|
(function(h, p) {
|
|
@@ -8200,10 +8200,10 @@ function cl() {
|
|
|
8200
8200
|
}
|
|
8201
8201
|
}), h.MarkerClusterGroup = p, h.MarkerCluster = v, Object.defineProperty(h, "__esModule", { value: !0 });
|
|
8202
8202
|
});
|
|
8203
|
-
}(
|
|
8203
|
+
}(wi, wi.exports)), wi.exports;
|
|
8204
8204
|
}
|
|
8205
8205
|
cl();
|
|
8206
|
-
const dl = "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=", fl = /* @__PURE__ */
|
|
8206
|
+
const dl = "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=", fl = /* @__PURE__ */ Nt({
|
|
8207
8207
|
__name: "Map",
|
|
8208
8208
|
props: {
|
|
8209
8209
|
modelValue: {},
|
|
@@ -8211,15 +8211,15 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8211
8211
|
},
|
|
8212
8212
|
emits: ["update:modelValue", "callback"],
|
|
8213
8213
|
setup(a, { emit: u }) {
|
|
8214
|
-
const { t: h } =
|
|
8215
|
-
transformation: new
|
|
8216
|
-
}), c = Gt(), f = Tt(() => o.value?.url), m = Tt(() => o.value?.height), y = Tt(() => o.value?.width), g =
|
|
8214
|
+
const { t: h } = Yt(), p = u, v = a, { hotelMapImage: o } = jt(_e()), r = fe.Util.extend(fe.CRS.Simple, {
|
|
8215
|
+
transformation: new fe.Transformation(1, 0, 1, 0)
|
|
8216
|
+
}), c = Gt(), f = Tt(() => o.value?.url), m = Tt(() => o.value?.height), y = Tt(() => o.value?.width), g = fe.icon({
|
|
8217
8217
|
iconUrl: dl,
|
|
8218
8218
|
iconSize: [32, 37],
|
|
8219
8219
|
iconAnchor: [16, 37]
|
|
8220
8220
|
});
|
|
8221
8221
|
function w() {
|
|
8222
|
-
const z =
|
|
8222
|
+
const z = fe.map(c.value, {
|
|
8223
8223
|
attributionControl: !1,
|
|
8224
8224
|
zoomControl: !0,
|
|
8225
8225
|
smoothWheelZoom: !0,
|
|
@@ -8230,12 +8230,12 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8230
8230
|
maxZoom: 3,
|
|
8231
8231
|
crs: r
|
|
8232
8232
|
}), W = [[0, 0], [m.value, y.value]];
|
|
8233
|
-
|
|
8234
|
-
const ut =
|
|
8233
|
+
fe.imageOverlay(f.value, W).addTo(z);
|
|
8234
|
+
const ut = fe.markerClusterGroup({
|
|
8235
8235
|
showCoverageOnHover: !1
|
|
8236
|
-
}), st = new
|
|
8237
|
-
x.value.forEach(({ y: xt, x:
|
|
8238
|
-
ut.addLayer(
|
|
8236
|
+
}), st = new fe.LatLngBounds(x.value.map(({ y: xt, x: Lt }) => [xt, Lt]));
|
|
8237
|
+
x.value.forEach(({ y: xt, x: Lt, name: Ot, id: V }) => {
|
|
8238
|
+
ut.addLayer(fe.marker([xt, Lt], {
|
|
8239
8239
|
icon: g,
|
|
8240
8240
|
title: Ot,
|
|
8241
8241
|
alt: Ot,
|
|
@@ -8243,9 +8243,9 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8243
8243
|
autoPanOnFocus: !0
|
|
8244
8244
|
}).bindPopup(`<h3 class="konnectio-leaflet-map-popup-title"><span>${Ot}</span></h3><button class="konnectio-leaflet-map-popup-button" data-id="${V}">${h("hotel.selectRoomOnMap")}</button>`));
|
|
8245
8245
|
}), z.addLayer(ut), z.invalidateSize(), z.fitBounds(st), z.on("popupopen", (xt) => {
|
|
8246
|
-
const
|
|
8247
|
-
|
|
8248
|
-
const Ot = parseInt(
|
|
8246
|
+
const Lt = xt.popup._contentNode.querySelector(".konnectio-leaflet-map-popup-button");
|
|
8247
|
+
Lt?.addEventListener("click", () => {
|
|
8248
|
+
const Ot = parseInt(Lt.getAttribute("data-id"));
|
|
8249
8249
|
Z(Ot);
|
|
8250
8250
|
});
|
|
8251
8251
|
});
|
|
@@ -8273,7 +8273,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8273
8273
|
class: "konnectio-leaflet-map"
|
|
8274
8274
|
}, null, 512)).cacheIndex = 0, es(1), W[0]);
|
|
8275
8275
|
}
|
|
8276
|
-
}), pl = /* @__PURE__ */
|
|
8276
|
+
}), pl = /* @__PURE__ */ Kt(fl, [["__scopeId", "data-v-428b57e9"]]), _l = { style: { height: "100%", width: "100%" } }, ml = /* @__PURE__ */ Nt({
|
|
8277
8277
|
__name: "MapSelector",
|
|
8278
8278
|
props: {
|
|
8279
8279
|
roomList: {},
|
|
@@ -8281,7 +8281,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8281
8281
|
callback: { type: Function }
|
|
8282
8282
|
},
|
|
8283
8283
|
setup(a) {
|
|
8284
|
-
const { t: u } =
|
|
8284
|
+
const { t: u } = Yt(), h = Gt(NaN), p = Tt(() => !isNaN(h.value)), v = a;
|
|
8285
8285
|
function o() {
|
|
8286
8286
|
p.value && (v.config.units = 1, v.config.roomId = h.value, v.callback());
|
|
8287
8287
|
}
|
|
@@ -8313,7 +8313,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8313
8313
|
}, kl = {
|
|
8314
8314
|
key: 1,
|
|
8315
8315
|
class: "konnectio-listing-units-body"
|
|
8316
|
-
}, wl = /* @__PURE__ */
|
|
8316
|
+
}, wl = /* @__PURE__ */ Nt({
|
|
8317
8317
|
__name: "Hotel",
|
|
8318
8318
|
props: {
|
|
8319
8319
|
room: {},
|
|
@@ -8328,10 +8328,10 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8328
8328
|
function p(V) {
|
|
8329
8329
|
o.callback(V), u.value = !1;
|
|
8330
8330
|
}
|
|
8331
|
-
const { t: v } =
|
|
8331
|
+
const { t: v } = Yt(), o = a, r = Gt([]);
|
|
8332
8332
|
function c() {
|
|
8333
8333
|
const V = r.value.length;
|
|
8334
|
-
|
|
8334
|
+
Lt(V);
|
|
8335
8335
|
}
|
|
8336
8336
|
function f(V) {
|
|
8337
8337
|
r.value.splice(V, 1);
|
|
@@ -8339,7 +8339,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8339
8339
|
const m = Tt(() => o.room.rates.map((V) => ({
|
|
8340
8340
|
label: V.name,
|
|
8341
8341
|
value: V.id
|
|
8342
|
-
}))), { hideAvailableRoomAmount: y, autoSelectRateId: g, enableMultipleConfigurations: w } =
|
|
8342
|
+
}))), { hideAvailableRoomAmount: y, autoSelectRateId: g, enableMultipleConfigurations: w } = jt(Ee()), { roomSelect: P } = jt(_e()), { addToCart: S, removeFromCart: x } = bs(), H = (V, at) => o.room.rates.find((et) => et.id === V)?.occupantRates.find((et) => et.index === at), Z = Tt(() => o.room.roomList.some((V) => V.mapImageX && V.mapImageY)), z = Tt(() => o.room.rates.every((V) => V.isBreakfastIncluded === !0)), W = (V, at) => H(V, at) ? H(V, at)?.rooms : null, ut = (V) => o.room.rates.length > 0 ? o.room.rates.find((at) => at.id === V)?.occupantRates.map((at) => ({
|
|
8343
8343
|
value: at.index,
|
|
8344
8344
|
price: at.totalPrice,
|
|
8345
8345
|
adults: at.adultsCount,
|
|
@@ -8349,7 +8349,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8349
8349
|
function xt(V, at) {
|
|
8350
8350
|
r.value[V].config[0].id = o.room.rates.find((et) => et.id === at.value)?.occupantRateIndex || NaN;
|
|
8351
8351
|
}
|
|
8352
|
-
function
|
|
8352
|
+
function Lt(V = 0) {
|
|
8353
8353
|
st.value ? g.value ? r.value[V] = {
|
|
8354
8354
|
id: o.room.bestRateMatch || void 0,
|
|
8355
8355
|
config: [{
|
|
@@ -8374,13 +8374,13 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8374
8374
|
};
|
|
8375
8375
|
}
|
|
8376
8376
|
co(() => {
|
|
8377
|
-
|
|
8377
|
+
Lt();
|
|
8378
8378
|
});
|
|
8379
8379
|
const Ot = Tt(() => JSON.parse(JSON.stringify(r.value)));
|
|
8380
|
-
return
|
|
8380
|
+
return ln(Ot, (V, at) => {
|
|
8381
8381
|
at.length > 0 && V.forEach((et, Y) => {
|
|
8382
|
-
at[Y] && et.config.forEach((
|
|
8383
|
-
const zt =
|
|
8382
|
+
at[Y] && et.config.forEach((kt, mt) => {
|
|
8383
|
+
const zt = kt.units, gt = at[Y].config[mt].units;
|
|
8384
8384
|
zt !== gt && (zt > gt ? (r.value[Y].config[mt].addons.push({}), S({
|
|
8385
8385
|
id: o.room.id,
|
|
8386
8386
|
name: o.room.title,
|
|
@@ -8392,9 +8392,9 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8392
8392
|
})));
|
|
8393
8393
|
});
|
|
8394
8394
|
});
|
|
8395
|
-
}, { deep: !0 }),
|
|
8395
|
+
}, { deep: !0 }), ln(r, () => {
|
|
8396
8396
|
P.value[o.room.id] = r.value;
|
|
8397
|
-
}, { deep: !0 }), (V, at) => (T(), lt(
|
|
8397
|
+
}, { deep: !0 }), (V, at) => (T(), lt(dn, {
|
|
8398
8398
|
type: "hotel",
|
|
8399
8399
|
"listing-id": V.room.id,
|
|
8400
8400
|
gallery: V.room.images,
|
|
@@ -8417,47 +8417,47 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8417
8417
|
class: "konnectio-hotel-room"
|
|
8418
8418
|
}, [
|
|
8419
8419
|
st.value ? (T(), A("div", gl, [
|
|
8420
|
-
B(
|
|
8420
|
+
B(cn, {
|
|
8421
8421
|
modelValue: et.id,
|
|
8422
|
-
"onUpdate:modelValue": (
|
|
8422
|
+
"onUpdate:modelValue": (kt) => et.id = kt,
|
|
8423
8423
|
label: d(v)("hotel.roomVariant"),
|
|
8424
8424
|
placeholder: d(v)("hotel.chooseARoomVariant"),
|
|
8425
8425
|
options: m.value,
|
|
8426
8426
|
searchable: !1,
|
|
8427
|
-
onChanged: (
|
|
8427
|
+
onChanged: (kt) => xt(Y, kt)
|
|
8428
8428
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options", "onChanged"]),
|
|
8429
8429
|
r.value.length > 1 ? (T(), A("div", vl, [
|
|
8430
8430
|
B(re, {
|
|
8431
8431
|
style: { "--buttonBackground": "var(--dangerColor)" },
|
|
8432
8432
|
icon: "trash-alt",
|
|
8433
8433
|
"icon-type": "fas",
|
|
8434
|
-
onClickEvent: (
|
|
8434
|
+
onClickEvent: (kt) => f(Y),
|
|
8435
8435
|
secondary: ""
|
|
8436
8436
|
}, null, 8, ["onClickEvent"])
|
|
8437
8437
|
])) : N("", !0)
|
|
8438
8438
|
])) : N("", !0),
|
|
8439
8439
|
et.id ? (T(), A("div", yl, [
|
|
8440
8440
|
(T(!0), A(dt, null, St(V.room.rates, ({
|
|
8441
|
-
id:
|
|
8441
|
+
id: kt,
|
|
8442
8442
|
maximumOccupants: mt
|
|
8443
8443
|
}) => (T(), A("div", {
|
|
8444
|
-
key:
|
|
8444
|
+
key: kt,
|
|
8445
8445
|
class: "konnectio-listing-action-selective-i"
|
|
8446
8446
|
}, [
|
|
8447
|
-
et.id ===
|
|
8447
|
+
et.id === kt ? (T(!0), A(dt, { key: 0 }, St(et.config, (zt, gt) => (T(), A("div", {
|
|
8448
8448
|
key: gt,
|
|
8449
8449
|
class: "konnectio-listing-action-selective"
|
|
8450
8450
|
}, [
|
|
8451
8451
|
k("ul", bl, [
|
|
8452
8452
|
B(rl, {
|
|
8453
8453
|
modelValue: zt.id,
|
|
8454
|
-
"onUpdate:modelValue": (
|
|
8454
|
+
"onUpdate:modelValue": (Bt) => zt.id = Bt,
|
|
8455
8455
|
icon: "male",
|
|
8456
8456
|
"icon-type": "fas",
|
|
8457
8457
|
label: d(v)("general.guests"),
|
|
8458
8458
|
description: mt === 0 ? void 0 : `${d(v)("general.maximumGuests")}: ${mt}`,
|
|
8459
|
-
options: ut(
|
|
8460
|
-
readonly: !(ut(
|
|
8459
|
+
options: ut(kt),
|
|
8460
|
+
readonly: !(ut(kt).length > 1)
|
|
8461
8461
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
|
|
8462
8462
|
]),
|
|
8463
8463
|
Z.value ? (T(), A("div", kl, [
|
|
@@ -8469,22 +8469,22 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8469
8469
|
}, null, 8, ["label"]),
|
|
8470
8470
|
B(ml, {
|
|
8471
8471
|
modelValue: u.value,
|
|
8472
|
-
"onUpdate:modelValue": at[0] || (at[0] = (
|
|
8472
|
+
"onUpdate:modelValue": at[0] || (at[0] = (Bt) => u.value = Bt),
|
|
8473
8473
|
"room-list": V.room.roomList,
|
|
8474
8474
|
config: zt,
|
|
8475
8475
|
callback: p
|
|
8476
8476
|
}, null, 8, ["modelValue", "room-list", "config"])
|
|
8477
8477
|
])) : (T(), A("ul", Ll, [
|
|
8478
|
-
B(
|
|
8478
|
+
B(Li, {
|
|
8479
8479
|
modelValue: zt.units,
|
|
8480
|
-
"onUpdate:modelValue": (
|
|
8480
|
+
"onUpdate:modelValue": (Bt) => zt.units = Bt,
|
|
8481
8481
|
description: d(y) ? void 0 : `${d(v)("booking.availability.availableUnits")}: ${W(et.id, zt.id)}`,
|
|
8482
8482
|
icon: "house",
|
|
8483
8483
|
"icon-type": "fas",
|
|
8484
8484
|
"icon-placement": "label",
|
|
8485
8485
|
label: d(v)("booking.availability.units"),
|
|
8486
8486
|
minValue: 0,
|
|
8487
|
-
"max-value": W(
|
|
8487
|
+
"max-value": W(kt, zt.id) || 1 / 0
|
|
8488
8488
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
|
|
8489
8489
|
]))
|
|
8490
8490
|
]))), 128)) : N("", !0)
|
|
@@ -8494,7 +8494,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8494
8494
|
d(w) && st.value ? (T(), A("button", {
|
|
8495
8495
|
key: 0,
|
|
8496
8496
|
class: "konnectio-hotel-add-extra-room link",
|
|
8497
|
-
onClick:
|
|
8497
|
+
onClick: Pi(c, ["prevent"])
|
|
8498
8498
|
}, [
|
|
8499
8499
|
k("span", null, I(d(v)("hotel.addExtraVariant")), 1)
|
|
8500
8500
|
])) : N("", !0)
|
|
@@ -8503,7 +8503,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8503
8503
|
_: 1
|
|
8504
8504
|
}, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
|
|
8505
8505
|
}
|
|
8506
|
-
}), cs = /* @__PURE__ */
|
|
8506
|
+
}), cs = /* @__PURE__ */ Kt(wl, [["__scopeId", "data-v-07016529"]]), Pl = { class: "konnectio-template-side-panel" }, Cl = { class: "konnectio-template-side-panel-listings" }, Tl = /* @__PURE__ */ Nt({
|
|
8507
8507
|
__name: "Template",
|
|
8508
8508
|
props: {
|
|
8509
8509
|
title: {},
|
|
@@ -8513,7 +8513,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8513
8513
|
callback: { type: Function }
|
|
8514
8514
|
},
|
|
8515
8515
|
setup(a) {
|
|
8516
|
-
const { t: u } =
|
|
8516
|
+
const { t: u } = Yt(), { templateID: h, roomGroupID: p, selectionHasNoAddons: v } = jt(_e()), { currency: o } = jt(Ee()), { clearRoomSelection: r } = _e(), c = a, f = Gt(!0), m = Tt(() => {
|
|
8517
8517
|
function g(w, P) {
|
|
8518
8518
|
return f.value === !0 ? w.extraPrice > P.extraPrice ? -1 : 1 : w.extraPrice > P.extraPrice ? 1 : -1;
|
|
8519
8519
|
}
|
|
@@ -8540,7 +8540,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8540
8540
|
images: H,
|
|
8541
8541
|
facilities: Z,
|
|
8542
8542
|
extraPrice: z
|
|
8543
|
-
}) => (T(), lt(
|
|
8543
|
+
}) => (T(), lt(dn, {
|
|
8544
8544
|
type: "hotel",
|
|
8545
8545
|
key: P,
|
|
8546
8546
|
"listing-id": P,
|
|
@@ -8568,7 +8568,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8568
8568
|
_: 1
|
|
8569
8569
|
}, 8, ["title", "subtitle"]));
|
|
8570
8570
|
}
|
|
8571
|
-
}), xl = /* @__PURE__ */
|
|
8571
|
+
}), xl = /* @__PURE__ */ Kt(Tl, [["__scopeId", "data-v-a323d25a"]]), Ml = { class: "konnectio-template-select-package" }, Sl = /* @__PURE__ */ Nt({
|
|
8572
8572
|
__name: "Template",
|
|
8573
8573
|
props: {
|
|
8574
8574
|
id: {},
|
|
@@ -8581,7 +8581,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8581
8581
|
callback: { type: Function }
|
|
8582
8582
|
},
|
|
8583
8583
|
setup(a) {
|
|
8584
|
-
const { t: u } =
|
|
8584
|
+
const { t: u } = Yt(), h = a, p = Tt(() => h.roomGroups.reduce(
|
|
8585
8585
|
(c, f) => c < f.extraPrice ? c : f.extraPrice,
|
|
8586
8586
|
1 / 0
|
|
8587
8587
|
)), v = Gt(!1);
|
|
@@ -8591,7 +8591,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8591
8591
|
function r(c) {
|
|
8592
8592
|
h.callback(c), v.value = !1;
|
|
8593
8593
|
}
|
|
8594
|
-
return (c, f) => (T(), lt(
|
|
8594
|
+
return (c, f) => (T(), lt(dn, {
|
|
8595
8595
|
type: "template",
|
|
8596
8596
|
"listing-id": c.id,
|
|
8597
8597
|
name: c.name,
|
|
@@ -8625,7 +8625,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8625
8625
|
_: 1
|
|
8626
8626
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
|
|
8627
8627
|
}
|
|
8628
|
-
}), Al = { class: "konnectio-special-offer-availability" }, Il = { class: "konnectio-special-offer-availability-button" }, Ol = /* @__PURE__ */
|
|
8628
|
+
}), Al = { class: "konnectio-special-offer-availability" }, Il = { class: "konnectio-special-offer-availability-button" }, Ol = /* @__PURE__ */ Nt({
|
|
8629
8629
|
__name: "SpecialOffer",
|
|
8630
8630
|
props: {
|
|
8631
8631
|
id: {},
|
|
@@ -8638,7 +8638,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8638
8638
|
roomGroups: {}
|
|
8639
8639
|
},
|
|
8640
8640
|
setup(a) {
|
|
8641
|
-
const { t: u } =
|
|
8641
|
+
const { t: u } = Yt(), { updateDates: h } = Ci(), { display: p } = fo(), v = a, o = Gt([]), r = Tt(() => bi(v.fromDate, v.toDate) === 1);
|
|
8642
8642
|
function c() {
|
|
8643
8643
|
o.value.length > 0 ? h(o.value[0], o.value[1]) : p({
|
|
8644
8644
|
message: u("alert.error.selectDates"),
|
|
@@ -8647,7 +8647,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8647
8647
|
}
|
|
8648
8648
|
return co(() => {
|
|
8649
8649
|
r.value && (o.value = [new Date(v.fromDate), new Date(v.toDate)]);
|
|
8650
|
-
}), (f, m) => (T(), lt(
|
|
8650
|
+
}), (f, m) => (T(), lt(dn, {
|
|
8651
8651
|
type: "template",
|
|
8652
8652
|
"listing-id": f.id,
|
|
8653
8653
|
name: f.name,
|
|
@@ -8679,7 +8679,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8679
8679
|
k("div", Il, [
|
|
8680
8680
|
B(re, {
|
|
8681
8681
|
label: d(u)("availability.buttonLabel"),
|
|
8682
|
-
onClick:
|
|
8682
|
+
onClick: Pi(c, ["prevent"])
|
|
8683
8683
|
}, null, 8, ["label"])
|
|
8684
8684
|
])
|
|
8685
8685
|
])
|
|
@@ -8687,7 +8687,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8687
8687
|
_: 1
|
|
8688
8688
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
|
|
8689
8689
|
}
|
|
8690
|
-
}), zl = /* @__PURE__ */
|
|
8690
|
+
}), zl = /* @__PURE__ */ Kt(Ol, [["__scopeId", "data-v-47edd09f"]]), ds = /* @__PURE__ */ Nt({
|
|
8691
8691
|
__name: "TimeField",
|
|
8692
8692
|
props: {
|
|
8693
8693
|
modelValue: {},
|
|
@@ -8710,7 +8710,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8710
8710
|
h("update:modelValue", r);
|
|
8711
8711
|
}
|
|
8712
8712
|
const o = Gt(p.modelValue);
|
|
8713
|
-
return
|
|
8713
|
+
return ln(o, (r) => {
|
|
8714
8714
|
v(r);
|
|
8715
8715
|
}), (r, c) => (T(), lt(ws, {
|
|
8716
8716
|
modelValue: o.value,
|
|
@@ -8729,7 +8729,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8729
8729
|
"max-time": r.maxTime
|
|
8730
8730
|
}, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly", "min-time", "max-time"]));
|
|
8731
8731
|
}
|
|
8732
|
-
}), El = { style: { display: "flex", "align-items": "baseline" } }, Bl = /* @__PURE__ */
|
|
8732
|
+
}), El = { style: { display: "flex", "align-items": "baseline" } }, Bl = /* @__PURE__ */ Nt({
|
|
8733
8733
|
__name: "CountryField",
|
|
8734
8734
|
props: {
|
|
8735
8735
|
modelValue: {},
|
|
@@ -8741,7 +8741,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8741
8741
|
},
|
|
8742
8742
|
emits: ["update:modelValue"],
|
|
8743
8743
|
setup(a, { emit: u }) {
|
|
8744
|
-
const { t: h } =
|
|
8744
|
+
const { t: h } = Yt(), p = u, v = a;
|
|
8745
8745
|
function o(c) {
|
|
8746
8746
|
p("update:modelValue", c);
|
|
8747
8747
|
}
|
|
@@ -8749,7 +8749,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8749
8749
|
get: () => v.modelValue,
|
|
8750
8750
|
set: (c) => o(c)
|
|
8751
8751
|
});
|
|
8752
|
-
return (c, f) => (T(), lt(
|
|
8752
|
+
return (c, f) => (T(), lt(cn, {
|
|
8753
8753
|
modelValue: r.value,
|
|
8754
8754
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => r.value = m),
|
|
8755
8755
|
label: c.label,
|
|
@@ -8776,7 +8776,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8776
8776
|
_: 1
|
|
8777
8777
|
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
8778
8778
|
}
|
|
8779
|
-
}), Zl = /* @__PURE__ */
|
|
8779
|
+
}), Zl = /* @__PURE__ */ Kt(Bl, [["__scopeId", "data-v-a94e1728"]]), Dl = /* @__PURE__ */ Nt({
|
|
8780
8780
|
__name: "NameField",
|
|
8781
8781
|
props: {
|
|
8782
8782
|
modelValue: {},
|
|
@@ -8801,10 +8801,10 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8801
8801
|
function c() {
|
|
8802
8802
|
p("update:modelValue", o.value);
|
|
8803
8803
|
}
|
|
8804
|
-
|
|
8804
|
+
ln(r, (m) => {
|
|
8805
8805
|
p("update:title", m);
|
|
8806
8806
|
});
|
|
8807
|
-
const { t: f } =
|
|
8807
|
+
const { t: f } = Yt();
|
|
8808
8808
|
return co(() => {
|
|
8809
8809
|
h.modelValue && (o.value = h.modelValue), h.title && (r.value = h.title);
|
|
8810
8810
|
}), (m, y) => (T(), lt(Vr, {
|
|
@@ -8822,7 +8822,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8822
8822
|
{ "no-title": m.excludeTitle }
|
|
8823
8823
|
])
|
|
8824
8824
|
}, [
|
|
8825
|
-
m.excludeTitle ? N("", !0) : (T(), lt(
|
|
8825
|
+
m.excludeTitle ? N("", !0) : (T(), lt(cn, {
|
|
8826
8826
|
key: 0,
|
|
8827
8827
|
modelValue: r.value,
|
|
8828
8828
|
"onUpdate:modelValue": y[0] || (y[0] = (g) => r.value = g),
|
|
@@ -8877,7 +8877,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8877
8877
|
_: 1
|
|
8878
8878
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
8879
8879
|
}
|
|
8880
|
-
}), Nl = /* @__PURE__ */
|
|
8880
|
+
}), Nl = /* @__PURE__ */ Kt(Dl, [["__scopeId", "data-v-9d27a2bc"]]), Rl = { class: "hotel-skeleton" }, Hl = { class: "hotel-skeleton-content" }, Vl = { class: "hotel-skeleton-sidebar" }, Fl = /* @__PURE__ */ Nt({
|
|
8881
8881
|
__name: "HotelSkeleton",
|
|
8882
8882
|
setup(a) {
|
|
8883
8883
|
return (u, h) => (T(), A("div", Rl, [
|
|
@@ -8890,7 +8890,7 @@ const dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8890
8890
|
])
|
|
8891
8891
|
]));
|
|
8892
8892
|
}
|
|
8893
|
-
}), Gl = /* @__PURE__ */
|
|
8893
|
+
}), Gl = /* @__PURE__ */ Kt(Fl, [["__scopeId", "data-v-1bb21da4"]]), Ul = { id: "booking-availability-container" }, $l = { id: "booking-availability-controls" }, Wl = {
|
|
8894
8894
|
key: 0,
|
|
8895
8895
|
class: "konnectio-panel konnectio-filter-notice"
|
|
8896
8896
|
}, ql = ["innerHTML"], jl = {
|
|
@@ -8944,7 +8944,7 @@ const Su = { class: "konnectio-table-addons-information" }, Au = { class: "konne
|
|
|
8944
8944
|
key: 1,
|
|
8945
8945
|
class: "konnectio-show-on-mobile"
|
|
8946
8946
|
}, Bu = { class: "konnectio-split-inputs" };
|
|
8947
|
-
const Zu = /* @__PURE__ */
|
|
8947
|
+
const Zu = /* @__PURE__ */ Nt({
|
|
8948
8948
|
name: "HotelLayout",
|
|
8949
8949
|
__name: "Hotel",
|
|
8950
8950
|
props: {
|
|
@@ -8963,7 +8963,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
8963
8963
|
styling: {}
|
|
8964
8964
|
},
|
|
8965
8965
|
setup(a) {
|
|
8966
|
-
const u = Or(() => import("./_-
|
|
8966
|
+
const u = Or(() => import("./_-bS2mOZqg.js")), h = a, { t: p } = Yt(), {
|
|
8967
8967
|
currentLocation: v,
|
|
8968
8968
|
templateID: o,
|
|
8969
8969
|
templateAddons: r,
|
|
@@ -8983,70 +8983,69 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
8983
8983
|
city: ut,
|
|
8984
8984
|
address: st,
|
|
8985
8985
|
country: xt,
|
|
8986
|
-
remark:
|
|
8986
|
+
remark: Lt,
|
|
8987
8987
|
allergies: Ot,
|
|
8988
8988
|
roomSelect: V,
|
|
8989
8989
|
roomDisplay: at,
|
|
8990
8990
|
hasValidRoomSelection: et,
|
|
8991
8991
|
availabilityData: Y,
|
|
8992
|
-
selectionHasNoAddons:
|
|
8992
|
+
selectionHasNoAddons: kt,
|
|
8993
8993
|
isAvailabilityDataAvailable: mt,
|
|
8994
8994
|
getSelectedPackageRoom: zt,
|
|
8995
8995
|
selectedPackage: gt,
|
|
8996
|
-
isSearchOutdated:
|
|
8997
|
-
currentChildren:
|
|
8998
|
-
isTemplateReservation:
|
|
8996
|
+
isSearchOutdated: Bt,
|
|
8997
|
+
currentChildren: U,
|
|
8998
|
+
isTemplateReservation: me,
|
|
8999
8999
|
newsMails: R,
|
|
9000
9000
|
adultsMismatch: K,
|
|
9001
|
-
childrenMismatch:
|
|
9001
|
+
childrenMismatch: wt,
|
|
9002
9002
|
totalAdults: ot,
|
|
9003
|
-
totalChildren:
|
|
9003
|
+
totalChildren: pt,
|
|
9004
9004
|
hasGuestDiscountId: it,
|
|
9005
9005
|
guestDiscountId: X,
|
|
9006
|
-
guestDiscountName:
|
|
9007
|
-
} =
|
|
9006
|
+
guestDiscountName: Rt
|
|
9007
|
+
} = jt(_e()), {
|
|
9008
9008
|
adults: vt,
|
|
9009
9009
|
children: le,
|
|
9010
|
-
location:
|
|
9011
|
-
arrivalDate:
|
|
9010
|
+
location: Xt,
|
|
9011
|
+
arrivalDate: Ye,
|
|
9012
9012
|
departureDate: Pe,
|
|
9013
|
-
hasHotelLocations:
|
|
9014
|
-
} =
|
|
9015
|
-
currency:
|
|
9016
|
-
enableTracking:
|
|
9017
|
-
disableNamePrefix:
|
|
9018
|
-
disableTravelingFor:
|
|
9019
|
-
disableTravelingForBleasure:
|
|
9020
|
-
disableCompanyField:
|
|
9021
|
-
hasPaymentGateway:
|
|
9022
|
-
maxAdultAmount:
|
|
9023
|
-
maxChildAmount:
|
|
9024
|
-
defaultAdultAmount:
|
|
9025
|
-
defaultChildAmount:
|
|
9026
|
-
disableNewsletterSignup:
|
|
9027
|
-
hasActiveIdFilter:
|
|
9028
|
-
hotelSettings:
|
|
9029
|
-
} =
|
|
9030
|
-
hasArrivalDepartureInputs:
|
|
9031
|
-
hasUserArrivalSelection:
|
|
9032
|
-
hasUserDepartureSelection:
|
|
9033
|
-
earliestArrivalTime:
|
|
9034
|
-
latestArrivalTime:
|
|
9035
|
-
earliestDepartureTime:
|
|
9036
|
-
latestDepartureTime:
|
|
9013
|
+
hasHotelLocations: Ke
|
|
9014
|
+
} = jt(Ci()), { isValidHotelId: fn, updateDates: Ti } = Ci(), {
|
|
9015
|
+
currency: Be,
|
|
9016
|
+
enableTracking: Xe,
|
|
9017
|
+
disableNamePrefix: Ze,
|
|
9018
|
+
disableTravelingFor: pn,
|
|
9019
|
+
disableTravelingForBleasure: xi,
|
|
9020
|
+
disableCompanyField: Je,
|
|
9021
|
+
hasPaymentGateway: Mi,
|
|
9022
|
+
maxAdultAmount: Qe,
|
|
9023
|
+
maxChildAmount: Si,
|
|
9024
|
+
defaultAdultAmount: _n,
|
|
9025
|
+
defaultChildAmount: ti,
|
|
9026
|
+
disableNewsletterSignup: Ai,
|
|
9027
|
+
hasActiveIdFilter: ei,
|
|
9028
|
+
hotelSettings: ii
|
|
9029
|
+
} = jt(Ee()), {
|
|
9030
|
+
hasArrivalDepartureInputs: Ii,
|
|
9031
|
+
hasUserArrivalSelection: De,
|
|
9032
|
+
hasUserDepartureSelection: ni,
|
|
9033
|
+
earliestArrivalTime: Oi,
|
|
9034
|
+
latestArrivalTime: oi,
|
|
9035
|
+
earliestDepartureTime: zi,
|
|
9036
|
+
latestDepartureTime: mn,
|
|
9037
9037
|
setActiveIdFilter: Ce,
|
|
9038
|
-
clearActiveIdFilter:
|
|
9039
|
-
} =
|
|
9040
|
-
resetTemplate:
|
|
9041
|
-
resetDiscountVoucher:
|
|
9042
|
-
createReservation:
|
|
9043
|
-
fetchMetadata:
|
|
9044
|
-
fetchAvailabilityData:
|
|
9045
|
-
filterAddons:
|
|
9046
|
-
hasAvailableRoomAddons:
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
} = me(), wn = Gt(!0), Pn = Tt(() => [
|
|
9038
|
+
clearActiveIdFilter: gn
|
|
9039
|
+
} = Ee(), { beginCheckout: vn } = bs(), { display: Te } = fo(), {
|
|
9040
|
+
resetTemplate: Ei,
|
|
9041
|
+
resetDiscountVoucher: Bi,
|
|
9042
|
+
createReservation: yn,
|
|
9043
|
+
fetchMetadata: bn,
|
|
9044
|
+
fetchAvailabilityData: si,
|
|
9045
|
+
filterAddons: Zi,
|
|
9046
|
+
hasAvailableRoomAddons: Ln,
|
|
9047
|
+
checkGuestDiscount: kn
|
|
9048
|
+
} = _e(), ri = Gt(!0), wn = Tt(() => [
|
|
9050
9049
|
{
|
|
9051
9050
|
id: "availability",
|
|
9052
9051
|
label: p("booking.availability.title"),
|
|
@@ -9071,7 +9070,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9071
9070
|
label: p("booking.confirmation.title"),
|
|
9072
9071
|
icon: "calendar-check"
|
|
9073
9072
|
}
|
|
9074
|
-
]),
|
|
9073
|
+
]), Pn = Tt(() => {
|
|
9075
9074
|
const E = [
|
|
9076
9075
|
{
|
|
9077
9076
|
label: p("booking.reservation.business"),
|
|
@@ -9082,58 +9081,58 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9082
9081
|
value: "Pleasure"
|
|
9083
9082
|
}
|
|
9084
9083
|
];
|
|
9085
|
-
return
|
|
9084
|
+
return xi.value || E.push({
|
|
9086
9085
|
label: p("booking.reservation.bleasure"),
|
|
9087
9086
|
value: "Bleasure"
|
|
9088
9087
|
}), E;
|
|
9089
|
-
}),
|
|
9088
|
+
}), ee = Tt(() => {
|
|
9090
9089
|
let E = Y.value.roomGroups.slice();
|
|
9091
|
-
function
|
|
9092
|
-
return
|
|
9090
|
+
function F(yt, J) {
|
|
9091
|
+
return ri.value === !0 ? yt.pricesFrom > J.pricesFrom ? -1 : 1 : yt.pricesFrom > J.pricesFrom ? 1 : -1;
|
|
9093
9092
|
}
|
|
9094
|
-
return h.sortBy === "price" && (E = E.sort(
|
|
9095
|
-
}),
|
|
9096
|
-
function
|
|
9097
|
-
|
|
9093
|
+
return h.sortBy === "price" && (E = E.sort(F)), Object.groupBy(E, (yt) => yt.roomList.some((J) => J.mapImageX && J.mapImageY) ? "camping" : "rooms");
|
|
9094
|
+
}), ai = Tt(() => h.hideAddons === "yes" || me.value && h.hideAddons === "packages" || !me.value && h.hideAddons === "rooms");
|
|
9095
|
+
function Vt(E) {
|
|
9096
|
+
ai.value || kt.value ? E(2) : E(), Bi();
|
|
9098
9097
|
}
|
|
9099
|
-
async function
|
|
9100
|
-
await
|
|
9098
|
+
async function D(E, F) {
|
|
9099
|
+
await yn(E, F);
|
|
9101
9100
|
}
|
|
9102
|
-
function
|
|
9103
|
-
if (isNaN(
|
|
9101
|
+
function Di() {
|
|
9102
|
+
if (isNaN(Xt.value) && Ke.value) {
|
|
9104
9103
|
Te({
|
|
9105
9104
|
message: p("alert.error.selectHotelId"),
|
|
9106
9105
|
type: "error"
|
|
9107
9106
|
});
|
|
9108
9107
|
return;
|
|
9109
9108
|
}
|
|
9110
|
-
|
|
9109
|
+
si();
|
|
9111
9110
|
}
|
|
9112
|
-
function
|
|
9111
|
+
function Ni() {
|
|
9113
9112
|
const E = so("history", {
|
|
9114
9113
|
removeNullishValues: !0
|
|
9115
9114
|
});
|
|
9116
|
-
|
|
9115
|
+
gn(), E.id = void 0, si();
|
|
9117
9116
|
}
|
|
9118
|
-
function
|
|
9119
|
-
|
|
9117
|
+
function Ri(E) {
|
|
9118
|
+
Xe.value && vn(), ai.value || kt.value ? E(2) : E();
|
|
9120
9119
|
}
|
|
9121
|
-
function
|
|
9122
|
-
h.forceArrivalTime && h.forceDepartureTime && (
|
|
9120
|
+
function Hi() {
|
|
9121
|
+
h.forceArrivalTime && h.forceDepartureTime && (ii.value[Xt.value].disableArrivalUserSelection = !0, h.forceArrivalTime && (ii.value[Xt.value].arrivalDefault = h.forceArrivalTime), h.forceDepartureTime && (ii.value[Xt.value].departureDefault = h.forceDepartureTime));
|
|
9123
9122
|
}
|
|
9124
|
-
async function
|
|
9125
|
-
|
|
9123
|
+
async function Ne() {
|
|
9124
|
+
Hi();
|
|
9126
9125
|
const E = so("history", {
|
|
9127
9126
|
removeNullishValues: !0
|
|
9128
|
-
}),
|
|
9129
|
-
let
|
|
9130
|
-
if (isNaN(
|
|
9127
|
+
}), F = parseInt(E.a), yt = parseInt(E.c), J = parseInt(E.hid), ht = parseInt(E.n), $ = E.ci, Zt = E.co, ft = E.id, Ut = parseInt(E.gid);
|
|
9128
|
+
let Ft = !1;
|
|
9129
|
+
if (isNaN(F) || (F > Qe.value ? vt.value = Qe.value : vt.value = F, vt.value === _n.value && (E.a = void 0)), isNaN(yt) || (yt > Si.value ? le.value = Si.value : le.value = yt, le.value === ti.value && (E.c = void 0)), isNaN(ht) || ht > 0 && (E.n = void 0), isNaN(J) || (fn(J) ? (Xt.value = J, Ft = !0) : (E.hid = void 0, Te({
|
|
9131
9130
|
message: p("alert.error.hotelIdNotFound"),
|
|
9132
9131
|
type: "error"
|
|
9133
|
-
}))),
|
|
9134
|
-
if (ss(
|
|
9135
|
-
const
|
|
9136
|
-
|
|
9132
|
+
}))), $ && Zt)
|
|
9133
|
+
if (ss($) && ss(Zt)) {
|
|
9134
|
+
const Jt = new Date($), Re = new Date(Zt);
|
|
9135
|
+
Jt <= Re ? (Ye.value = Jt, Pe.value = Re) : (E.ci = void 0, E.co = void 0, Te({
|
|
9137
9136
|
message: p("alert.error.invalidDateRange"),
|
|
9138
9137
|
type: "error"
|
|
9139
9138
|
}));
|
|
@@ -9142,31 +9141,31 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9142
9141
|
message: p("alert.error.wrongDateFormat"),
|
|
9143
9142
|
type: "error"
|
|
9144
9143
|
});
|
|
9145
|
-
if (
|
|
9146
|
-
await
|
|
9144
|
+
if (ft && Ce(ft), Ut) {
|
|
9145
|
+
await kn(Ut) || (E.gid = void 0);
|
|
9147
9146
|
return;
|
|
9148
9147
|
}
|
|
9149
|
-
h.disableDefaultLocation === "yes" &&
|
|
9148
|
+
h.disableDefaultLocation === "yes" && Ft === !1 ? (Xt.value = void 0, v.value = void 0) : si();
|
|
9150
9149
|
}
|
|
9151
|
-
return (E,
|
|
9150
|
+
return (E, F) => (T(), lt(Ur, { styling: E.styling }, {
|
|
9152
9151
|
default: tt(() => [
|
|
9153
|
-
(T(), lt(Ir, { onResolve:
|
|
9152
|
+
(T(), lt(Ir, { onResolve: Ne }, {
|
|
9154
9153
|
default: tt(() => [
|
|
9155
9154
|
B(d(u), {
|
|
9156
9155
|
id: "konnectio-hotel-module",
|
|
9157
9156
|
"access-token": E.accessToken,
|
|
9158
|
-
callback: d(
|
|
9157
|
+
callback: d(bn)
|
|
9159
9158
|
}, {
|
|
9160
9159
|
default: tt(() => [
|
|
9161
|
-
ke(B(Ja, { onCallback:
|
|
9162
|
-
[
|
|
9160
|
+
ke(B(Ja, { onCallback: Ne }, null, 512), [
|
|
9161
|
+
[ze, E.requireGuestDiscountId === "yes" && !d(it)]
|
|
9163
9162
|
]),
|
|
9164
9163
|
ke(B(Kr, {
|
|
9165
9164
|
layout: E.headerLayout,
|
|
9166
|
-
steps:
|
|
9167
|
-
onReset: d(
|
|
9165
|
+
steps: wn.value,
|
|
9166
|
+
onReset: d(Ei)
|
|
9168
9167
|
}, {
|
|
9169
|
-
availability: tt(({ next:
|
|
9168
|
+
availability: tt(({ next: yt }) => [
|
|
9170
9169
|
B(oo, null, {
|
|
9171
9170
|
form: tt(() => [
|
|
9172
9171
|
k("div", Ul, [
|
|
@@ -9180,21 +9179,21 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9180
9179
|
]),
|
|
9181
9180
|
d(it) ? (T(), A("div", Wl, [
|
|
9182
9181
|
k("span", {
|
|
9183
|
-
innerHTML: d(p)("guestDiscount.displayMessage", { name: `<b>${d(
|
|
9182
|
+
innerHTML: d(p)("guestDiscount.displayMessage", { name: `<b>${d(Rt) ? d(Rt) : d(X)}</b>` })
|
|
9184
9183
|
}, null, 8, ql)
|
|
9185
9184
|
])) : N("", !0),
|
|
9186
|
-
d(
|
|
9185
|
+
d(ei) ? (T(), A("div", jl, [
|
|
9187
9186
|
k("span", null, [
|
|
9188
9187
|
ys(I(d(p)("general.filteredListingNotice")) + " ", 1),
|
|
9189
9188
|
k("button", {
|
|
9190
9189
|
class: "link",
|
|
9191
|
-
onClick:
|
|
9190
|
+
onClick: F[0] || (F[0] = (J) => Ni())
|
|
9192
9191
|
}, I(d(p)("general.filteredListingShowAll")), 1)
|
|
9193
9192
|
])
|
|
9194
9193
|
])) : N("", !0),
|
|
9195
9194
|
N("", !0),
|
|
9196
9195
|
!d(f) && d(mt) ? (T(), A("div", Yl, [
|
|
9197
|
-
|
|
9196
|
+
ee.value.camping && ee.value.camping.length > 0 && E.onlyShow !== "non-camping" || ee.value.rooms && ee.value.rooms.length > 0 || d(Y).templates.length > 0 || d(Y).specialTemplates.length > 0 ? (T(), A("div", Kl, [
|
|
9198
9197
|
d(Y).templates.length > 0 && E.onlyShow !== "rooms" && E.onlyShow !== "camping" ? (T(), A("div", Xl, [
|
|
9199
9198
|
E.onlyShow !== "packages" ? (T(), A("h2", Jl, [
|
|
9200
9199
|
B(Mt, {
|
|
@@ -9208,25 +9207,25 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9208
9207
|
(T(!0), A(dt, null, St(d(Y).templates, ({
|
|
9209
9208
|
id: J,
|
|
9210
9209
|
name: ht,
|
|
9211
|
-
templateRoomGroups:
|
|
9212
|
-
images:
|
|
9213
|
-
description:
|
|
9214
|
-
weekendFee:
|
|
9210
|
+
templateRoomGroups: $,
|
|
9211
|
+
images: Zt,
|
|
9212
|
+
description: ft,
|
|
9213
|
+
weekendFee: Ut
|
|
9215
9214
|
}) => (T(), lt(Sl, {
|
|
9216
9215
|
key: J,
|
|
9217
9216
|
id: J,
|
|
9218
|
-
description:
|
|
9217
|
+
description: ft,
|
|
9219
9218
|
name: ht,
|
|
9220
|
-
images:
|
|
9221
|
-
weekendFee:
|
|
9222
|
-
"room-groups":
|
|
9223
|
-
callback:
|
|
9219
|
+
images: Zt,
|
|
9220
|
+
weekendFee: Ut,
|
|
9221
|
+
"room-groups": $,
|
|
9222
|
+
callback: yt,
|
|
9224
9223
|
"hide-addons": E.hideAddons === "yes" || E.hideAddons === "packages"
|
|
9225
9224
|
}, null, 8, ["id", "description", "name", "images", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
9226
9225
|
])
|
|
9227
9226
|
])) : N("", !0),
|
|
9228
9227
|
d(Y).roomGroups.length > 0 && E.onlyShow !== "packages" ? (T(), A("div", tu, [
|
|
9229
|
-
|
|
9228
|
+
ee.value.rooms && E.onlyShow !== "camping" ? (T(), A(dt, { key: 0 }, [
|
|
9230
9229
|
d(Y).templates.length > 0 && E.onlyShow !== "rooms" ? (T(), A("h2", eu, [
|
|
9231
9230
|
B(Mt, {
|
|
9232
9231
|
icon: "house",
|
|
@@ -9236,14 +9235,14 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9236
9235
|
k("span", null, I(d(p)("booking.availability.roomsTitle")), 1)
|
|
9237
9236
|
])) : N("", !0),
|
|
9238
9237
|
k("ul", iu, [
|
|
9239
|
-
(T(!0), A(dt, null, St(
|
|
9238
|
+
(T(!0), A(dt, null, St(ee.value.rooms, (J, ht) => (T(), lt(cs, {
|
|
9240
9239
|
room: J,
|
|
9241
9240
|
key: ht,
|
|
9242
|
-
callback:
|
|
9241
|
+
callback: yt
|
|
9243
9242
|
}, null, 8, ["room", "callback"]))), 128))
|
|
9244
9243
|
])
|
|
9245
9244
|
], 64)) : N("", !0),
|
|
9246
|
-
|
|
9245
|
+
ee.value.camping && E.onlyShow !== "rooms" && E.onlyShow !== "non-camping" ? (T(), A(dt, { key: 1 }, [
|
|
9247
9246
|
d(Y).templates.length > 0 && E.onlyShow !== "camping" ? (T(), A("h2", nu, [
|
|
9248
9247
|
B(Mt, {
|
|
9249
9248
|
icon: "house",
|
|
@@ -9253,15 +9252,15 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9253
9252
|
k("span", null, I(d(p)("booking.availability.campingTitle")), 1)
|
|
9254
9253
|
])) : N("", !0),
|
|
9255
9254
|
k("ul", ou, [
|
|
9256
|
-
(T(!0), A(dt, null, St(
|
|
9255
|
+
(T(!0), A(dt, null, St(ee.value.camping, (J, ht) => (T(), lt(cs, {
|
|
9257
9256
|
room: J,
|
|
9258
9257
|
key: ht,
|
|
9259
|
-
callback:
|
|
9258
|
+
callback: yt
|
|
9260
9259
|
}, null, 8, ["room", "callback"]))), 128))
|
|
9261
9260
|
])
|
|
9262
9261
|
], 64)) : N("", !0)
|
|
9263
9262
|
])) : N("", !0),
|
|
9264
|
-
d(
|
|
9263
|
+
d(ei) ? N("", !0) : (T(), A(dt, { key: 2 }, [
|
|
9265
9264
|
d(Y).specialTemplates.length > 0 && E.onlyShow !== "rooms" ? (T(), A("div", su, [
|
|
9266
9265
|
k("h2", ru, [
|
|
9267
9266
|
B(Mt, {
|
|
@@ -9275,22 +9274,22 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9275
9274
|
(T(!0), A(dt, null, St(d(Y).specialTemplates, ({
|
|
9276
9275
|
id: J,
|
|
9277
9276
|
name: ht,
|
|
9278
|
-
templateRoomGroups:
|
|
9279
|
-
images:
|
|
9280
|
-
description:
|
|
9281
|
-
weekendFee:
|
|
9282
|
-
fromDate:
|
|
9283
|
-
toDate:
|
|
9277
|
+
templateRoomGroups: $,
|
|
9278
|
+
images: Zt,
|
|
9279
|
+
description: ft,
|
|
9280
|
+
weekendFee: Ut,
|
|
9281
|
+
fromDate: Ft,
|
|
9282
|
+
toDate: Jt
|
|
9284
9283
|
}) => (T(), lt(zl, {
|
|
9285
9284
|
key: J,
|
|
9286
9285
|
id: J,
|
|
9287
|
-
description:
|
|
9286
|
+
description: ft,
|
|
9288
9287
|
name: ht,
|
|
9289
|
-
images:
|
|
9290
|
-
fromDate:
|
|
9291
|
-
toDate:
|
|
9292
|
-
weekendFee:
|
|
9293
|
-
"room-groups":
|
|
9288
|
+
images: Zt,
|
|
9289
|
+
fromDate: Ft,
|
|
9290
|
+
toDate: Jt,
|
|
9291
|
+
weekendFee: Ut,
|
|
9292
|
+
"room-groups": $
|
|
9294
9293
|
}, null, 8, ["id", "description", "name", "images", "fromDate", "toDate", "weekendFee", "room-groups"]))), 128))
|
|
9295
9294
|
])
|
|
9296
9295
|
])) : N("", !0)
|
|
@@ -9331,13 +9330,13 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9331
9330
|
type: "fal",
|
|
9332
9331
|
color: "header"
|
|
9333
9332
|
}),
|
|
9334
|
-
k("span", null, I(d(p)("booking.availability.pricesFrom")) + ": " + I(d(ae)(J.priceStartFrom, d(
|
|
9333
|
+
k("span", null, I(d(p)("booking.availability.pricesFrom")) + ": " + I(d(ae)(J.priceStartFrom, d(Be))), 1)
|
|
9335
9334
|
])
|
|
9336
9335
|
]),
|
|
9337
9336
|
B(re, {
|
|
9338
9337
|
label: d(p)("booking.availability.selectDates"),
|
|
9339
9338
|
"full-width": "",
|
|
9340
|
-
onClickEvent: (
|
|
9339
|
+
onClickEvent: ($) => d(Ti)(new Date(J.fromDate), new Date(J.toDate))
|
|
9341
9340
|
}, null, 8, ["label", "onClickEvent"])
|
|
9342
9341
|
]))), 128))
|
|
9343
9342
|
])
|
|
@@ -9352,18 +9351,18 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9352
9351
|
])
|
|
9353
9352
|
]),
|
|
9354
9353
|
navigation: tt(() => [
|
|
9355
|
-
d(
|
|
9354
|
+
d(Bt) ? (T(), lt(re, {
|
|
9356
9355
|
key: 0,
|
|
9357
9356
|
label: isNaN(d(v)) ? d(p)("availability.buttonLabel") : d(p)("general.searchAgain"),
|
|
9358
9357
|
"is-loading": d(f),
|
|
9359
9358
|
"full-width": "",
|
|
9360
|
-
onClickEvent:
|
|
9359
|
+
onClickEvent: F[2] || (F[2] = (J) => Di())
|
|
9361
9360
|
}, null, 8, ["label", "is-loading"])) : (T(), lt(re, {
|
|
9362
9361
|
key: 1,
|
|
9363
|
-
label: d(
|
|
9362
|
+
label: d(kt) || ai.value ? d(p)("booking.availability.nextButton") : d(p)("general.chooseAddons"),
|
|
9364
9363
|
disabled: !d(et),
|
|
9365
9364
|
"full-width": "",
|
|
9366
|
-
onClickEvent: (J) =>
|
|
9365
|
+
onClickEvent: (J) => Ri(yt)
|
|
9367
9366
|
}, null, 8, ["label", "disabled", "onClickEvent"])),
|
|
9368
9367
|
ke(k("span", gu, [
|
|
9369
9368
|
B(Mt, {
|
|
@@ -9372,25 +9371,25 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9372
9371
|
}),
|
|
9373
9372
|
k("span", null, I(d(p)("hotel.mismatchingAdults", { searchAdults: d(vt), selectedAdults: d(ot) })), 1)
|
|
9374
9373
|
], 512), [
|
|
9375
|
-
[
|
|
9374
|
+
[ze, d(K)]
|
|
9376
9375
|
]),
|
|
9377
9376
|
ke(k("span", vu, [
|
|
9378
9377
|
B(Mt, {
|
|
9379
9378
|
icon: "exclamation-triangle",
|
|
9380
9379
|
type: "fas"
|
|
9381
9380
|
}),
|
|
9382
|
-
k("span", null, I(d(p)("hotel.mismatchingChildren", { searchChildren: d(le), selectedChildren: d(
|
|
9381
|
+
k("span", null, I(d(p)("hotel.mismatchingChildren", { searchChildren: d(le), selectedChildren: d(pt) })), 1)
|
|
9383
9382
|
], 512), [
|
|
9384
|
-
[
|
|
9383
|
+
[ze, d(wt)]
|
|
9385
9384
|
])
|
|
9386
9385
|
]),
|
|
9387
9386
|
_: 2
|
|
9388
9387
|
}, 1024)
|
|
9389
9388
|
]),
|
|
9390
|
-
addons: tt(({ next:
|
|
9389
|
+
addons: tt(({ next: yt, prev: J }) => [
|
|
9391
9390
|
d(mt) ? (T(), lt(oo, {
|
|
9392
9391
|
key: 0,
|
|
9393
|
-
"prev-callback": () =>
|
|
9392
|
+
"prev-callback": () => Vt(J)
|
|
9394
9393
|
}, {
|
|
9395
9394
|
form: tt(() => [
|
|
9396
9395
|
k("form", yu, [
|
|
@@ -9402,21 +9401,21 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9402
9401
|
(T(!0), A(dt, null, St(d(at), (ht) => (T(), A(dt, {
|
|
9403
9402
|
key: ht.roomGroupID
|
|
9404
9403
|
}, [
|
|
9405
|
-
d(
|
|
9406
|
-
(T(!0), A(dt, null, St(ht.variants, (
|
|
9407
|
-
key:
|
|
9404
|
+
d(Ln)(ht) ? (T(), A("ul", Lu, [
|
|
9405
|
+
(T(!0), A(dt, null, St(ht.variants, ($, Zt) => (T(), A("li", {
|
|
9406
|
+
key: $.ratePlanID
|
|
9408
9407
|
}, [
|
|
9409
9408
|
k("h4", null, [
|
|
9410
|
-
k("span", null, I(d(
|
|
9409
|
+
k("span", null, I(d(pe)(ht.title)), 1)
|
|
9411
9410
|
]),
|
|
9412
|
-
(T(!0), A(dt, null, St(
|
|
9413
|
-
key:
|
|
9411
|
+
(T(!0), A(dt, null, St($.rooms, (ft, Ut) => (T(), A("table", {
|
|
9412
|
+
key: Ut,
|
|
9414
9413
|
class: "konnectio-table with-lines without-header"
|
|
9415
9414
|
}, [
|
|
9416
9415
|
k("thead", null, [
|
|
9417
9416
|
k("tr", null, [
|
|
9418
9417
|
k("th", null, [
|
|
9419
|
-
k("span", null, I(d(
|
|
9418
|
+
k("span", null, I(d(pe)($.name)), 1)
|
|
9420
9419
|
]),
|
|
9421
9420
|
N("", !0),
|
|
9422
9421
|
k("th", ku, [
|
|
@@ -9426,63 +9425,63 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9426
9425
|
type: "fas",
|
|
9427
9426
|
color: "font"
|
|
9428
9427
|
}),
|
|
9429
|
-
k("span", null, I(
|
|
9430
|
-
|
|
9428
|
+
k("span", null, I(ft.adultsCount), 1),
|
|
9429
|
+
ft.childrenCount > 0 ? (T(), lt(Mt, {
|
|
9431
9430
|
key: 0,
|
|
9432
9431
|
icon: "child",
|
|
9433
9432
|
type: "fas",
|
|
9434
9433
|
color: "font"
|
|
9435
9434
|
})) : N("", !0),
|
|
9436
|
-
|
|
9435
|
+
ft.childrenCount > 0 ? (T(), A("span", wu, I(ft.childrenCount), 1)) : N("", !0)
|
|
9437
9436
|
])
|
|
9438
9437
|
])
|
|
9439
9438
|
])
|
|
9440
9439
|
]),
|
|
9441
9440
|
k("tbody", null, [
|
|
9442
|
-
(T(!0), A(dt, null, St(d(
|
|
9443
|
-
cardinality:
|
|
9444
|
-
quantityStrategy:
|
|
9445
|
-
maximumNumber:
|
|
9446
|
-
id:
|
|
9447
|
-
name:
|
|
9448
|
-
price:
|
|
9449
|
-
image:
|
|
9450
|
-
description:
|
|
9451
|
-
}) => (T(), A("tr", { key:
|
|
9441
|
+
(T(!0), A(dt, null, St(d(Zi)($.addons, ft.childrenCount), ({
|
|
9442
|
+
cardinality: Ft,
|
|
9443
|
+
quantityStrategy: Jt,
|
|
9444
|
+
maximumNumber: Re,
|
|
9445
|
+
id: li,
|
|
9446
|
+
name: Cn,
|
|
9447
|
+
price: Tn,
|
|
9448
|
+
image: xe,
|
|
9449
|
+
description: ge
|
|
9450
|
+
}) => (T(), A("tr", { key: li }, [
|
|
9452
9451
|
k("td", {
|
|
9453
|
-
class: we(["konnectio-table-addons-information", { "has-image":
|
|
9452
|
+
class: we(["konnectio-table-addons-information", { "has-image": xe }])
|
|
9454
9453
|
}, [
|
|
9455
|
-
|
|
9454
|
+
xe ? (T(), A("div", Pu, [
|
|
9456
9455
|
B(d(Sa), {
|
|
9457
|
-
src:
|
|
9456
|
+
src: xe,
|
|
9458
9457
|
"zoom-scale": 1
|
|
9459
9458
|
}, null, 8, ["src"])
|
|
9460
9459
|
])) : N("", !0),
|
|
9461
9460
|
k("div", null, [
|
|
9462
|
-
k("b", null, I(d(
|
|
9463
|
-
k("span", null, I(d(ae)(
|
|
9464
|
-
|
|
9461
|
+
k("b", null, I(d(pe)(Cn)), 1),
|
|
9462
|
+
k("span", null, I(d(ae)(Tn, d(Be))) + " " + I(d(ns)(Jt)), 1),
|
|
9463
|
+
ge ? (T(), A("p", {
|
|
9465
9464
|
key: 0,
|
|
9466
|
-
innerHTML: d(Gr)(
|
|
9465
|
+
innerHTML: d(Gr)(ge)
|
|
9467
9466
|
}, null, 8, Cu)) : N("", !0)
|
|
9468
9467
|
])
|
|
9469
9468
|
], 2),
|
|
9470
9469
|
k("td", Tu, [
|
|
9471
|
-
d(V)[ht.roomGroupID][
|
|
9472
|
-
|
|
9470
|
+
d(V)[ht.roomGroupID][Zt].config[ft.configIdx].addons[ft.roomIdx] ? (T(), A(dt, { key: 0 }, [
|
|
9471
|
+
Ft === d(os).Mandatory ? (T(), lt(Li, {
|
|
9473
9472
|
key: 0,
|
|
9474
9473
|
"model-value": 1,
|
|
9475
9474
|
small: !0,
|
|
9476
9475
|
"min-value": 1,
|
|
9477
9476
|
"max-value": 1,
|
|
9478
9477
|
readonly: ""
|
|
9479
|
-
})) : (T(), lt(
|
|
9478
|
+
})) : (T(), lt(Li, {
|
|
9480
9479
|
key: 1,
|
|
9481
|
-
modelValue: d(V)[ht.roomGroupID][
|
|
9482
|
-
"onUpdate:modelValue": (
|
|
9480
|
+
modelValue: d(V)[ht.roomGroupID][Zt].config[ft.configIdx].addons[ft.roomIdx][li],
|
|
9481
|
+
"onUpdate:modelValue": (Vi) => d(V)[ht.roomGroupID][Zt].config[ft.configIdx].addons[ft.roomIdx][li] = Vi,
|
|
9483
9482
|
small: !0,
|
|
9484
9483
|
"min-value": 0,
|
|
9485
|
-
"max-value":
|
|
9484
|
+
"max-value": Re || 1 / 0
|
|
9486
9485
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"]))
|
|
9487
9486
|
], 64)) : N("", !0)
|
|
9488
9487
|
])
|
|
@@ -9501,40 +9500,40 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9501
9500
|
k("thead", null, [
|
|
9502
9501
|
k("tr", null, [
|
|
9503
9502
|
k("th", null, [
|
|
9504
|
-
k("span", null, I(d(
|
|
9503
|
+
k("span", null, I(d(pe)(d(zt).title)), 1)
|
|
9505
9504
|
]),
|
|
9506
9505
|
N("", !0),
|
|
9507
|
-
|
|
9506
|
+
F[20] || (F[20] = k("th", { class: "konnectio-event-addons-price" }, null, -1))
|
|
9508
9507
|
])
|
|
9509
9508
|
]),
|
|
9510
9509
|
k("tbody", null, [
|
|
9511
|
-
(T(!0), A(dt, null, St(d(
|
|
9510
|
+
(T(!0), A(dt, null, St(d(Zi)(d(zt).addons, d(U)), ({
|
|
9512
9511
|
cardinality: ht,
|
|
9513
|
-
quantityStrategy:
|
|
9514
|
-
maximumNumber:
|
|
9515
|
-
id:
|
|
9516
|
-
name:
|
|
9517
|
-
price:
|
|
9518
|
-
}) => (T(), A("tr", { key:
|
|
9512
|
+
quantityStrategy: $,
|
|
9513
|
+
maximumNumber: Zt,
|
|
9514
|
+
id: ft,
|
|
9515
|
+
name: Ut,
|
|
9516
|
+
price: Ft
|
|
9517
|
+
}) => (T(), A("tr", { key: ft }, [
|
|
9519
9518
|
k("td", Su, [
|
|
9520
|
-
k("b", null, I(d(
|
|
9521
|
-
k("span", null, I(d(ae)(
|
|
9519
|
+
k("b", null, I(d(pe)(Ut)), 1),
|
|
9520
|
+
k("span", null, I(d(ae)(Ft, d(Be))) + " " + I(d(ns)($)), 1)
|
|
9522
9521
|
]),
|
|
9523
9522
|
k("td", Au, [
|
|
9524
|
-
ht === d(os).Mandatory ? (T(), lt(
|
|
9523
|
+
ht === d(os).Mandatory ? (T(), lt(Li, {
|
|
9525
9524
|
key: 0,
|
|
9526
9525
|
"model-value": 1,
|
|
9527
9526
|
small: !0,
|
|
9528
9527
|
"min-value": 1,
|
|
9529
9528
|
"max-value": 1,
|
|
9530
9529
|
readonly: ""
|
|
9531
|
-
})) : (T(), lt(
|
|
9530
|
+
})) : (T(), lt(Li, {
|
|
9532
9531
|
key: 1,
|
|
9533
|
-
modelValue: d(r)[
|
|
9534
|
-
"onUpdate:modelValue": (
|
|
9532
|
+
modelValue: d(r)[ft],
|
|
9533
|
+
"onUpdate:modelValue": (Jt) => d(r)[ft] = Jt,
|
|
9535
9534
|
small: !0,
|
|
9536
9535
|
"min-value": 0,
|
|
9537
|
-
"max-value":
|
|
9536
|
+
"max-value": Zt || 1 / 0
|
|
9538
9537
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"]))
|
|
9539
9538
|
])
|
|
9540
9539
|
]))), 128))
|
|
@@ -9549,16 +9548,16 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9549
9548
|
B(re, {
|
|
9550
9549
|
label: d(p)("general.startReservation"),
|
|
9551
9550
|
"full-width": "",
|
|
9552
|
-
onClickEvent:
|
|
9551
|
+
onClickEvent: yt
|
|
9553
9552
|
}, null, 8, ["label", "onClickEvent"])
|
|
9554
9553
|
]),
|
|
9555
9554
|
_: 2
|
|
9556
9555
|
}, 1032, ["prev-callback"])) : N("", !0)
|
|
9557
9556
|
]),
|
|
9558
|
-
reservation: tt(({ next:
|
|
9557
|
+
reservation: tt(({ next: yt, prev: J, reset: ht }) => [
|
|
9559
9558
|
d(mt) ? (T(), lt(oo, {
|
|
9560
9559
|
key: 0,
|
|
9561
|
-
"prev-callback": () =>
|
|
9560
|
+
"prev-callback": () => Vt(J),
|
|
9562
9561
|
"show-terms-notice": !0,
|
|
9563
9562
|
"show-gift-card": !0
|
|
9564
9563
|
}, {
|
|
@@ -9567,39 +9566,39 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9567
9566
|
k("h2", null, [
|
|
9568
9567
|
k("span", null, I(d(p)("booking.reservation.detailsTitle")), 1)
|
|
9569
9568
|
]),
|
|
9570
|
-
d(
|
|
9569
|
+
d(Ii)(d(v)) && d(De)(d(v)) && d(ni)(d(v)) ? (T(), A("ul", {
|
|
9571
9570
|
key: 0,
|
|
9572
|
-
class: we(["konnectio-reservation-timepicker", { "konnectio-split-inputs": d(
|
|
9571
|
+
class: we(["konnectio-reservation-timepicker", { "konnectio-split-inputs": d(De)(d(v)) && d(ni)(d(v)) }])
|
|
9573
9572
|
}, [
|
|
9574
|
-
d(
|
|
9573
|
+
d(De)(d(v)) ? (T(), A("li", Ou, [
|
|
9575
9574
|
B(ds, {
|
|
9576
9575
|
modelValue: d(w),
|
|
9577
|
-
"onUpdate:modelValue":
|
|
9576
|
+
"onUpdate:modelValue": F[3] || (F[3] = ($) => It(w) ? w.value = $ : null),
|
|
9578
9577
|
label: d(p)("booking.reservation.arrivalTime"),
|
|
9579
9578
|
icon: "hourglass-start",
|
|
9580
|
-
"min-time": d(
|
|
9581
|
-
"max-time": d(
|
|
9579
|
+
"min-time": d(Oi)(d(v)),
|
|
9580
|
+
"max-time": d(oi)(d(v)),
|
|
9582
9581
|
required: ""
|
|
9583
9582
|
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
9584
9583
|
])) : N("", !0),
|
|
9585
|
-
d(
|
|
9584
|
+
d(ni)(d(v)) ? (T(), A("li", zu, [
|
|
9586
9585
|
B(ds, {
|
|
9587
9586
|
modelValue: d(P),
|
|
9588
|
-
"onUpdate:modelValue":
|
|
9587
|
+
"onUpdate:modelValue": F[4] || (F[4] = ($) => It(P) ? P.value = $ : null),
|
|
9589
9588
|
label: d(p)("booking.reservation.departureTime"),
|
|
9590
9589
|
icon: "hourglass-end",
|
|
9591
|
-
"min-time": d(
|
|
9592
|
-
"max-time": d(
|
|
9590
|
+
"min-time": d(zi)(d(v)),
|
|
9591
|
+
"max-time": d(mn)(d(v)),
|
|
9593
9592
|
required: ""
|
|
9594
9593
|
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
9595
9594
|
])) : N("", !0)
|
|
9596
9595
|
], 2)) : N("", !0),
|
|
9597
9596
|
B(Nl, {
|
|
9598
9597
|
modelValue: d(S),
|
|
9599
|
-
"onUpdate:modelValue":
|
|
9598
|
+
"onUpdate:modelValue": F[5] || (F[5] = ($) => It(S) ? S.value = $ : null),
|
|
9600
9599
|
title: d(x),
|
|
9601
|
-
"onUpdate:title":
|
|
9602
|
-
"exclude-title": d(
|
|
9600
|
+
"onUpdate:title": F[6] || (F[6] = ($) => It(x) ? x.value = $ : null),
|
|
9601
|
+
"exclude-title": d(Ze),
|
|
9603
9602
|
label: d(p)("booking.reservation.name"),
|
|
9604
9603
|
icon: "user-alt",
|
|
9605
9604
|
placeholder: d(p)("booking.reservation.namePlaceholder"),
|
|
@@ -9607,7 +9606,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9607
9606
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
9608
9607
|
B(be, {
|
|
9609
9608
|
modelValue: d(H),
|
|
9610
|
-
"onUpdate:modelValue":
|
|
9609
|
+
"onUpdate:modelValue": F[7] || (F[7] = ($) => It(H) ? H.value = $ : null),
|
|
9611
9610
|
type: "email",
|
|
9612
9611
|
name: "email",
|
|
9613
9612
|
autocomplete: "email",
|
|
@@ -9617,19 +9616,19 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9617
9616
|
placeholder: d(p)("booking.reservation.emailPlaceholder"),
|
|
9618
9617
|
required: ""
|
|
9619
9618
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9620
|
-
d(
|
|
9619
|
+
d(Ai) ? N("", !0) : (T(), A("div", Eu, [
|
|
9621
9620
|
B(ro, {
|
|
9622
9621
|
modelValue: d(R),
|
|
9623
|
-
"onUpdate:modelValue":
|
|
9622
|
+
"onUpdate:modelValue": F[8] || (F[8] = ($) => It(R) ? R.value = $ : null),
|
|
9624
9623
|
type: "checkbox",
|
|
9625
9624
|
name: "newsletter",
|
|
9626
9625
|
label: d(p)("booking.reservation.newsletterSignUp")
|
|
9627
9626
|
}, null, 8, ["modelValue", "label"])
|
|
9628
9627
|
])),
|
|
9629
|
-
d(
|
|
9628
|
+
d(Je) ? N("", !0) : (T(), lt(be, {
|
|
9630
9629
|
key: 2,
|
|
9631
9630
|
modelValue: d(z),
|
|
9632
|
-
"onUpdate:modelValue":
|
|
9631
|
+
"onUpdate:modelValue": F[9] || (F[9] = ($) => It(z) ? z.value = $ : null),
|
|
9633
9632
|
type: "text",
|
|
9634
9633
|
name: "firm",
|
|
9635
9634
|
autocomplete: "firm",
|
|
@@ -9639,7 +9638,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9639
9638
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
9640
9639
|
B(sa, {
|
|
9641
9640
|
modelValue: d(Z),
|
|
9642
|
-
"onUpdate:modelValue":
|
|
9641
|
+
"onUpdate:modelValue": F[10] || (F[10] = ($) => It(Z) ? Z.value = $ : null),
|
|
9643
9642
|
icon: "phone-office",
|
|
9644
9643
|
label: d(p)("booking.reservation.phone"),
|
|
9645
9644
|
placeholder: d(p)("booking.reservation.phonePlaceholder"),
|
|
@@ -9647,7 +9646,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9647
9646
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9648
9647
|
B(Zl, {
|
|
9649
9648
|
modelValue: d(xt),
|
|
9650
|
-
"onUpdate:modelValue":
|
|
9649
|
+
"onUpdate:modelValue": F[11] || (F[11] = ($) => It(xt) ? xt.value = $ : null),
|
|
9651
9650
|
label: d(p)("booking.reservation.country"),
|
|
9652
9651
|
placeholder: d(p)("booking.reservation.countryPlaceholder"),
|
|
9653
9652
|
options: d(c),
|
|
@@ -9655,7 +9654,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9655
9654
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
9656
9655
|
B(be, {
|
|
9657
9656
|
modelValue: d(st),
|
|
9658
|
-
"onUpdate:modelValue":
|
|
9657
|
+
"onUpdate:modelValue": F[12] || (F[12] = ($) => It(st) ? st.value = $ : null),
|
|
9659
9658
|
type: "textarea",
|
|
9660
9659
|
name: "address",
|
|
9661
9660
|
autocomplete: "street-address",
|
|
@@ -9668,7 +9667,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9668
9667
|
k("li", null, [
|
|
9669
9668
|
B(be, {
|
|
9670
9669
|
modelValue: d(W),
|
|
9671
|
-
"onUpdate:modelValue":
|
|
9670
|
+
"onUpdate:modelValue": F[13] || (F[13] = ($) => It(W) ? W.value = $ : null),
|
|
9672
9671
|
type: "text",
|
|
9673
9672
|
name: "postal",
|
|
9674
9673
|
autocomplete: "postal-code",
|
|
@@ -9681,7 +9680,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9681
9680
|
k("li", null, [
|
|
9682
9681
|
B(be, {
|
|
9683
9682
|
modelValue: d(ut),
|
|
9684
|
-
"onUpdate:modelValue":
|
|
9683
|
+
"onUpdate:modelValue": F[14] || (F[14] = ($) => It(ut) ? ut.value = $ : null),
|
|
9685
9684
|
type: "text",
|
|
9686
9685
|
name: "city",
|
|
9687
9686
|
autocomplete: "address-level2",
|
|
@@ -9693,8 +9692,8 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9693
9692
|
])
|
|
9694
9693
|
]),
|
|
9695
9694
|
B(be, {
|
|
9696
|
-
modelValue: d(
|
|
9697
|
-
"onUpdate:modelValue":
|
|
9695
|
+
modelValue: d(Lt),
|
|
9696
|
+
"onUpdate:modelValue": F[15] || (F[15] = ($) => It(Lt) ? Lt.value = $ : null),
|
|
9698
9697
|
type: "textarea",
|
|
9699
9698
|
label: d(p)("booking.reservation.remark"),
|
|
9700
9699
|
icon: "info-circle",
|
|
@@ -9703,37 +9702,37 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9703
9702
|
E.hideAllergies !== "yes" ? (T(), lt(be, {
|
|
9704
9703
|
key: 3,
|
|
9705
9704
|
modelValue: d(Ot),
|
|
9706
|
-
"onUpdate:modelValue":
|
|
9705
|
+
"onUpdate:modelValue": F[16] || (F[16] = ($) => It(Ot) ? Ot.value = $ : null),
|
|
9707
9706
|
type: "textarea",
|
|
9708
9707
|
label: d(p)("booking.reservation.allergies"),
|
|
9709
9708
|
icon: "allergies",
|
|
9710
9709
|
placeholder: d(p)("booking.reservation.allergiesPlaceholder")
|
|
9711
9710
|
}, null, 8, ["modelValue", "label", "placeholder"])) : N("", !0),
|
|
9712
|
-
d(
|
|
9711
|
+
d(pn) ? N("", !0) : (T(), lt(Jr, {
|
|
9713
9712
|
key: 4,
|
|
9714
9713
|
modelValue: d(g),
|
|
9715
|
-
"onUpdate:modelValue":
|
|
9714
|
+
"onUpdate:modelValue": F[17] || (F[17] = ($) => It(g) ? g.value = $ : null),
|
|
9716
9715
|
label: d(p)("booking.reservation.purposeOfStay"),
|
|
9717
9716
|
name: "travelingFor",
|
|
9718
|
-
checkboxes:
|
|
9717
|
+
checkboxes: Pn.value
|
|
9719
9718
|
}, null, 8, ["modelValue", "label", "checkboxes"]))
|
|
9720
9719
|
])
|
|
9721
9720
|
]),
|
|
9722
9721
|
navigation: tt(() => [
|
|
9723
9722
|
k("div", null, [
|
|
9724
9723
|
B(re, {
|
|
9725
|
-
label: d(
|
|
9724
|
+
label: d(Mi) ? d(p)("booking.reservation.nextButton") : d(p)("general.confirmReservation"),
|
|
9726
9725
|
disabled: !d(y),
|
|
9727
9726
|
"is-loading": d(m),
|
|
9728
9727
|
"full-width": "",
|
|
9729
|
-
onClickEvent: (
|
|
9728
|
+
onClickEvent: ($) => D(yt, ht)
|
|
9730
9729
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
9731
9730
|
])
|
|
9732
9731
|
]),
|
|
9733
9732
|
_: 2
|
|
9734
9733
|
}, 1032, ["prev-callback"])) : N("", !0)
|
|
9735
9734
|
]),
|
|
9736
|
-
payment: tt(({ prev:
|
|
9735
|
+
payment: tt(({ prev: yt }) => [
|
|
9737
9736
|
B(oa),
|
|
9738
9737
|
N("", !0)
|
|
9739
9738
|
]),
|
|
@@ -9744,7 +9743,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9744
9743
|
]),
|
|
9745
9744
|
_: 1
|
|
9746
9745
|
}, 8, ["layout", "steps", "onReset"]), [
|
|
9747
|
-
[
|
|
9746
|
+
[ze, E.requireGuestDiscountId === "no" || E.requireGuestDiscountId === "yes" && d(it)]
|
|
9748
9747
|
])
|
|
9749
9748
|
]),
|
|
9750
9749
|
_: 1
|
|
@@ -9759,7 +9758,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9759
9758
|
_: 1
|
|
9760
9759
|
}, 8, ["styling"]));
|
|
9761
9760
|
}
|
|
9762
|
-
}), fs = /* @__PURE__ */
|
|
9761
|
+
}), fs = /* @__PURE__ */ Kt(Zu, [["__scopeId", "data-v-e208dbce"]]), Du = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]), an = /* @__PURE__ */ new Set([
|
|
9763
9762
|
"base",
|
|
9764
9763
|
"meta",
|
|
9765
9764
|
"link",
|
|
@@ -9779,7 +9778,7 @@ const Zu = /* @__PURE__ */ Rt({
|
|
|
9779
9778
|
"script",
|
|
9780
9779
|
"noscript"
|
|
9781
9780
|
]), Ru = /* @__PURE__ */ new Set(["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"]), xs = /* @__PURE__ */ new Set(["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"]), Hu = typeof window < "u";
|
|
9782
|
-
function
|
|
9781
|
+
function un(a) {
|
|
9783
9782
|
let u = 9;
|
|
9784
9783
|
for (let h = 0; h < a.length; )
|
|
9785
9784
|
u = Math.imul(u ^ a.charCodeAt(h++), 9 ** 9);
|
|
@@ -9789,11 +9788,11 @@ function lo(a) {
|
|
|
9789
9788
|
if (a._h)
|
|
9790
9789
|
return a._h;
|
|
9791
9790
|
if (a._d)
|
|
9792
|
-
return
|
|
9791
|
+
return un(a._d);
|
|
9793
9792
|
let u = `${a.tag}:${a.textContent || a.innerHTML || ""}:`;
|
|
9794
9793
|
for (const h in a.props)
|
|
9795
9794
|
u += `${h}:${String(a.props[h])},`;
|
|
9796
|
-
return
|
|
9795
|
+
return un(u);
|
|
9797
9796
|
}
|
|
9798
9797
|
function Vu(a, u) {
|
|
9799
9798
|
return a instanceof Promise ? a.then(u) : u(a);
|
|
@@ -9879,7 +9878,7 @@ const ps = /* @__PURE__ */ new Set(["onload", "onerror", "onabort", "onprogress"
|
|
|
9879
9878
|
high: -10,
|
|
9880
9879
|
low: 20
|
|
9881
9880
|
};
|
|
9882
|
-
function
|
|
9881
|
+
function hn(a) {
|
|
9883
9882
|
const u = a.tagPriority;
|
|
9884
9883
|
if (typeof u == "number")
|
|
9885
9884
|
return u;
|
|
@@ -9916,7 +9915,7 @@ function qu(a, u, h = !1) {
|
|
|
9916
9915
|
return h ? (p || "").replace(/"/g, '\\"') : p || "";
|
|
9917
9916
|
}
|
|
9918
9917
|
const ju = new RegExp(`${Le}(?:\\s*${Le})*`, "g");
|
|
9919
|
-
function
|
|
9918
|
+
function rn(a, u, h, p = !1) {
|
|
9920
9919
|
if (typeof a != "string" || !a.includes("%"))
|
|
9921
9920
|
return a;
|
|
9922
9921
|
let v = a;
|
|
@@ -9947,7 +9946,7 @@ async function Yu(a, u = {}) {
|
|
|
9947
9946
|
return a._domUpdatePromise || (a._domUpdatePromise = new Promise(async (v) => {
|
|
9948
9947
|
const o = (await a.resolveTags()).map((g) => ({
|
|
9949
9948
|
tag: g,
|
|
9950
|
-
id:
|
|
9949
|
+
id: an.has(g.tag) ? lo(g) : g.tag,
|
|
9951
9950
|
shouldRender: !0
|
|
9952
9951
|
}));
|
|
9953
9952
|
let r = a._dom;
|
|
@@ -9960,7 +9959,7 @@ async function Yu(a, u = {}) {
|
|
|
9960
9959
|
const P = h[w]?.children;
|
|
9961
9960
|
for (const S of P) {
|
|
9962
9961
|
const x = S.tagName.toLowerCase();
|
|
9963
|
-
if (!
|
|
9962
|
+
if (!an.has(x))
|
|
9964
9963
|
continue;
|
|
9965
9964
|
const H = {
|
|
9966
9965
|
tag: x,
|
|
@@ -10026,7 +10025,7 @@ async function Yu(a, u = {}) {
|
|
|
10026
10025
|
h.title = w.textContent;
|
|
10027
10026
|
continue;
|
|
10028
10027
|
}
|
|
10029
|
-
g.$el = g.$el || r.elMap[S], g.$el ? f(g) :
|
|
10028
|
+
g.$el = g.$el || r.elMap[S], g.$el ? f(g) : an.has(w.tag) && m.push(g);
|
|
10030
10029
|
}
|
|
10031
10030
|
}
|
|
10032
10031
|
for (const g of m) {
|
|
@@ -10088,10 +10087,10 @@ const Ju = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
10088
10087
|
} else if (p._e === o._e) {
|
|
10089
10088
|
o._duped = o._duped || [], p._d = `${o._d}:${o._duped.length + 1}`, o._duped.push(p);
|
|
10090
10089
|
continue;
|
|
10091
|
-
} else if (
|
|
10090
|
+
} else if (hn(p) > hn(o))
|
|
10092
10091
|
continue;
|
|
10093
10092
|
}
|
|
10094
|
-
if (!(p.innerHTML || p.textContent || Object.keys(p.props).length !== 0) &&
|
|
10093
|
+
if (!(p.innerHTML || p.textContent || Object.keys(p.props).length !== 0) && an.has(p.tag)) {
|
|
10095
10094
|
delete u[v];
|
|
10096
10095
|
continue;
|
|
10097
10096
|
}
|
|
@@ -10118,7 +10117,7 @@ const Ju = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
10118
10117
|
const o = p[v];
|
|
10119
10118
|
typeof o == "function" && (a.ssr && ps.has(v) ? p[v] = `this.dataset.${v}fired = true` : delete p[v], h._eventHandlers = h._eventHandlers || {}, h._eventHandlers[v] = o);
|
|
10120
10119
|
}
|
|
10121
|
-
a.ssr && h._eventHandlers && (h.props.src || h.props.href) && (h.key = h.key ||
|
|
10120
|
+
a.ssr && h._eventHandlers && (h.props.src || h.props.href) && (h.key = h.key || un(h.props.src || h.props.href));
|
|
10122
10121
|
}
|
|
10123
10122
|
},
|
|
10124
10123
|
"dom:renderTag": ({ $el: u, tag: h }) => {
|
|
@@ -10135,7 +10134,7 @@ const Ju = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
10135
10134
|
}), ih = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), nh = {
|
|
10136
10135
|
hooks: {
|
|
10137
10136
|
"tag:normalise": ({ tag: a }) => {
|
|
10138
|
-
a.key && ih.has(a.tag) && (a.props["data-hid"] = a._h =
|
|
10137
|
+
a.key && ih.has(a.tag) && (a.props["data-hid"] = a._h = un(a.key));
|
|
10139
10138
|
}
|
|
10140
10139
|
}
|
|
10141
10140
|
}, oh = {
|
|
@@ -10168,7 +10167,7 @@ const Ju = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
10168
10167
|
}
|
|
10169
10168
|
}
|
|
10170
10169
|
a.tags.sort((u, h) => {
|
|
10171
|
-
const p =
|
|
10170
|
+
const p = hn(u), v = hn(h);
|
|
10172
10171
|
return p < v ? -1 : p > v ? 1 : u._p - h._p;
|
|
10173
10172
|
});
|
|
10174
10173
|
}
|
|
@@ -10185,7 +10184,7 @@ const Ju = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
10185
10184
|
for (let r = 0; r < h.length; r += 1)
|
|
10186
10185
|
h[r].tag === "templateParams" && (p = u.tags.splice(r, 1)[0].props, r -= 1);
|
|
10187
10186
|
const v = p || {}, o = v.separator || "|";
|
|
10188
|
-
delete v.separator, v.pageTitle =
|
|
10187
|
+
delete v.separator, v.pageTitle = rn(
|
|
10189
10188
|
// find templateParams
|
|
10190
10189
|
v.pageTitle || h.find((r) => r.tag === "title")?.textContent || "",
|
|
10191
10190
|
v,
|
|
@@ -10196,10 +10195,10 @@ const Ju = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
10196
10195
|
continue;
|
|
10197
10196
|
const c = rh[r.tag];
|
|
10198
10197
|
if (c && typeof r.props[c] == "string")
|
|
10199
|
-
r.props[c] =
|
|
10198
|
+
r.props[c] = rn(r.props[c], v, o);
|
|
10200
10199
|
else if (r.processTemplateParams || r.tag === "titleTemplate" || r.tag === "title")
|
|
10201
10200
|
for (const f of ah)
|
|
10202
|
-
typeof r[f] == "string" && (r[f] =
|
|
10201
|
+
typeof r[f] == "string" && (r[f] = rn(r[f], v, o, r.tag === "script" && r.props.type.endsWith("json")));
|
|
10203
10202
|
}
|
|
10204
10203
|
a._templateParams = v, a._separator = o;
|
|
10205
10204
|
},
|
|
@@ -10209,7 +10208,7 @@ const Ju = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
10209
10208
|
const v = u[p];
|
|
10210
10209
|
v.tag === "title" && v.processTemplateParams !== !1 && (h = v);
|
|
10211
10210
|
}
|
|
10212
|
-
h?.textContent && (h.textContent =
|
|
10211
|
+
h?.textContent && (h.textContent = rn(h.textContent, a._templateParams, a._separator));
|
|
10213
10212
|
}
|
|
10214
10213
|
}
|
|
10215
10214
|
}), uh = {
|