@konnectio/core 4.2.2 → 4.2.3
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-D4-xFqsi.js → ActionField-ChwuAgLp.js} +2 -2
- package/dist/ActionField-ChwuAgLp.js.br +0 -0
- package/dist/{AvailabilitySkeleton-PECkwtXv.js → AvailabilitySkeleton-CmfuXV5e.js} +5 -5
- package/dist/AvailabilitySkeleton-CmfuXV5e.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DlWMMo5k.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CXCRXBBP.js} +2 -2
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CXCRXBBP.js.br +0 -0
- package/dist/{CheckoutWindow-BiVijMff.js → CheckoutWindow-CCMbdkjy.js} +2 -2
- package/dist/CheckoutWindow-CCMbdkjy.js.br +0 -0
- package/dist/{ErrorMessage-CA9UHGeN.js → ErrorMessage-BWHyPLZV.js} +2 -2
- package/dist/ErrorMessage-BWHyPLZV.js.br +0 -0
- package/dist/{EventAvailabilityForm-BegeTLnc.js → EventAvailabilityForm-AvKNrraX.js} +3 -3
- package/dist/EventAvailabilityForm-AvKNrraX.js.br +0 -0
- package/dist/{Field-BkQsgaIV.js → Field-Dneudqqn.js} +3 -3
- package/dist/Field-Dneudqqn.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-ysPyDXQ-.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DKhC2t2f.js} +2 -2
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-DejTF4Fr.js → SelectField.vue_vue_type_style_index_0_lang-CU0cj5r5.js} +753 -752
- package/dist/SelectField.vue_vue_type_style_index_0_lang-CU0cj5r5.js.br +0 -0
- package/dist/{TermsOfService-DEMDueQM.js → TermsOfService-C7fH6ogL.js} +3 -3
- package/dist/_-CfgSgpLg.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-CqZnPVm4.js → _.vue_vue_type_style_index_0_lang-BNuZUEaD.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-DsZ5JsJN.js → giftCard-CzjO4RBK.js} +2 -2
- package/dist/giftCard-CzjO4RBK.js.br +0 -0
- package/dist/hotel.js +726 -716
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-B7soNeYB.js → masonry.plugin-D1y1ETKT.js} +196 -188
- package/dist/masonry.plugin-D1y1ETKT.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-D4-xFqsi.js.br +0 -0
- package/dist/AvailabilitySkeleton-PECkwtXv.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DlWMMo5k.js.br +0 -0
- package/dist/CheckoutWindow-BiVijMff.js.br +0 -0
- package/dist/ErrorMessage-CA9UHGeN.js.br +0 -0
- package/dist/EventAvailabilityForm-BegeTLnc.js.br +0 -0
- package/dist/Field-BkQsgaIV.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DejTF4Fr.js.br +0 -0
- package/dist/_-DXRM8SN0.js +0 -5
- package/dist/giftCard-DsZ5JsJN.js.br +0 -0
- package/dist/masonry.plugin-B7soNeYB.js.br +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as Zt, h as A, b as T, e as k, i as R, F as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { d as Zt, h as A, b as T, e as k, i as R, F as ft, v as St, J as We, K as Xn, a as rt, L as Jn, j as Ci, n as Oe, M as xr, u as Wt, s as $t, r as Vt, N as Mr, g as c, z as It, A as Sr, w as tt, t as I, E as ke, G as Ie, f as Z, q as Qn, C as Ar, c as Ct, x as ys, O as es, o as co, D as un, 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-CgrYtI2g.js";
|
|
2
|
+
import { _ as qt, f as ze, b as me, u as Ti, I as Mt, s as oe, k as Li, l as to, q as pe, o as se, r as so, a as fo, d as cn, F as Hr, H as bs, h as ki, e as _e, 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-CU0cj5r5.js";
|
|
3
3
|
import { G as Wr } from "./style-B_8a8HvR.js";
|
|
4
|
-
import { R as qr, B as fn, 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-
|
|
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 fn, 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-D1y1ETKT.js";
|
|
5
|
+
import { A as ea, H as ia } from "./AvailabilitySkeleton-CmfuXV5e.js";
|
|
6
|
+
import { S as na } from "./TermsOfService-C7fH6ogL.js";
|
|
7
|
+
import { a as ro, B as ks, C as oa, P as sa } from "./CheckoutWindow-CCMbdkjy.js";
|
|
8
|
+
import { A as ra } from "./ActionField-ChwuAgLp.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-CXCRXBBP.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;
|
|
@@ -390,7 +390,7 @@ function Ma(a, u, h, p, v, o) {
|
|
|
390
390
|
})
|
|
391
391
|
}, [
|
|
392
392
|
a.validSources ? (T(), A("picture", La, [
|
|
393
|
-
(T(!0), A(
|
|
393
|
+
(T(!0), A(ft, null, St(a.validSources, (r, d) => (T(), A("source", We({
|
|
394
394
|
key: d,
|
|
395
395
|
ref_for: !0
|
|
396
396
|
}, r), null, 16))), 128)),
|
|
@@ -413,7 +413,7 @@ function Ma(a, u, h, p, v, o) {
|
|
|
413
413
|
height: a.height
|
|
414
414
|
}), null, 16, wa))
|
|
415
415
|
], 4),
|
|
416
|
-
a.isActive ? (T(), A(
|
|
416
|
+
a.isActive ? (T(), A(ft, { key: 0 }, [
|
|
417
417
|
a.isFullscreen ? (T(), rt(xr, {
|
|
418
418
|
key: 0,
|
|
419
419
|
to: "body"
|
|
@@ -448,7 +448,7 @@ function Ma(a, u, h, p, v, o) {
|
|
|
448
448
|
onClick: u[0] || (u[0] = Ci((...r) => a.handleClose && a.handleClose(...r), ["stop"]))
|
|
449
449
|
}, null, 6)) : R("", !0)
|
|
450
450
|
])
|
|
451
|
-
])) : (T(), A(
|
|
451
|
+
])) : (T(), A(ft, { key: 1 }, [
|
|
452
452
|
k("img", We({
|
|
453
453
|
class: ["iiz__zoom-img", { "iiz__zoom-img--visible": a.isZoomed }],
|
|
454
454
|
alt: "",
|
|
@@ -481,7 +481,7 @@ function Ma(a, u, h, p, v, o) {
|
|
|
481
481
|
!a.isZoomed && !a.hideHint ? (T(), A("span", xa)) : R("", !0)
|
|
482
482
|
], 16);
|
|
483
483
|
}
|
|
484
|
-
const Sa = /* @__PURE__ */
|
|
484
|
+
const Sa = /* @__PURE__ */ qt(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 = {
|
|
485
485
|
key: 0,
|
|
486
486
|
class: "konnectio-hotel-reservation-room-name"
|
|
487
487
|
};
|
|
@@ -501,10 +501,10 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
501
501
|
prevCallback: {}
|
|
502
502
|
},
|
|
503
503
|
setup(a) {
|
|
504
|
-
const { t: u } =
|
|
504
|
+
const { t: u } = Wt(), {
|
|
505
505
|
disableNewsletterSignup: h,
|
|
506
506
|
currency: p
|
|
507
|
-
} =
|
|
507
|
+
} = $t(ze()), {
|
|
508
508
|
hasArrivalDepartureInputs: v
|
|
509
509
|
} = ze(), {
|
|
510
510
|
arrivalTime: o,
|
|
@@ -520,30 +520,30 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
520
520
|
currentDepartureDate: x,
|
|
521
521
|
datesMismatch: H,
|
|
522
522
|
currentLocation: B,
|
|
523
|
-
locationMismatch:
|
|
523
|
+
locationMismatch: O,
|
|
524
524
|
newsMails: W,
|
|
525
525
|
termsOfService: lt,
|
|
526
|
-
discountCode:
|
|
527
|
-
hasTermOfService:
|
|
528
|
-
acceptTerms:
|
|
529
|
-
totalTemplateAddonPrice:
|
|
530
|
-
totalRooms:
|
|
531
|
-
totalAdults:
|
|
532
|
-
totalChildren:
|
|
526
|
+
discountCode: at,
|
|
527
|
+
hasTermOfService: Tt,
|
|
528
|
+
acceptTerms: xt,
|
|
529
|
+
totalTemplateAddonPrice: V,
|
|
530
|
+
totalRooms: nt,
|
|
531
|
+
totalAdults: mt,
|
|
532
|
+
totalChildren: ut,
|
|
533
533
|
templateRoomTotalPrice: j,
|
|
534
|
-
weekendFee:
|
|
535
|
-
} =
|
|
536
|
-
function
|
|
537
|
-
return N.reduce((Lt, { totalPrice:
|
|
534
|
+
weekendFee: Dt
|
|
535
|
+
} = $t(me()), { hasHotelLocations: ht } = $t(Ti()), { removeRoom: jt, validateDiscountCode: gt } = me(), { getHotelLocationName: re } = Ti(), G = Vt(!1);
|
|
536
|
+
function ge(N) {
|
|
537
|
+
return N.reduce((Lt, { totalPrice: ot }) => Lt + ot, 0);
|
|
538
538
|
}
|
|
539
539
|
return (N, K) => {
|
|
540
540
|
const Lt = Mr("tooltip");
|
|
541
541
|
return T(), rt(qr, {
|
|
542
|
-
"discount-code": c(
|
|
543
|
-
"onUpdate:discountCode": K[4] || (K[4] = (
|
|
544
|
-
"validate-discount-code": c(
|
|
542
|
+
"discount-code": c(at),
|
|
543
|
+
"onUpdate:discountCode": K[4] || (K[4] = (ot) => It(at) ? at.value = ot : null),
|
|
544
|
+
"validate-discount-code": c(gt),
|
|
545
545
|
"total-price": c(m),
|
|
546
|
-
"weekend-fee": c(
|
|
546
|
+
"weekend-fee": c(Dt),
|
|
547
547
|
"show-gift-card": N.showGiftCard,
|
|
548
548
|
"show-terms-notice": N.showTermsNotice,
|
|
549
549
|
"is-sidebar-loading": c(y),
|
|
@@ -554,22 +554,22 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
554
554
|
Qn(N.$slots, "form", {}, void 0, !0)
|
|
555
555
|
]),
|
|
556
556
|
"price-summary": tt(() => [
|
|
557
|
-
isNaN(c(f)) && c(d).length > 0 ? (T(!0), A(
|
|
558
|
-
roomGroupID:
|
|
559
|
-
title:
|
|
557
|
+
isNaN(c(f)) && c(d).length > 0 ? (T(!0), A(ft, { key: 0 }, St(c(d), ({
|
|
558
|
+
roomGroupID: ot,
|
|
559
|
+
title: pt,
|
|
560
560
|
variants: et
|
|
561
|
-
}) => (T(), A("div", { key:
|
|
561
|
+
}) => (T(), A("div", { key: ot }, [
|
|
562
562
|
k("h6", null, [
|
|
563
|
-
k("span", null, I(c(
|
|
563
|
+
k("span", null, I(c(pe)(pt)), 1)
|
|
564
564
|
]),
|
|
565
|
-
(T(!0), A(
|
|
566
|
-
(T(!0), A(
|
|
565
|
+
(T(!0), A(ft, null, St(et, (X, Nt) => (T(), A("div", { key: Nt }, [
|
|
566
|
+
(T(!0), A(ft, null, St(X.rooms, (yt, ae) => (T(), A("ul", { key: ae }, [
|
|
567
567
|
k("li", null, [
|
|
568
|
-
k("span", Ea, I(c(
|
|
568
|
+
k("span", Ea, I(c(pe)(X.name)), 1),
|
|
569
569
|
k("span", Ba, [
|
|
570
570
|
k("span", Za, [
|
|
571
571
|
k("span", null, [
|
|
572
|
-
Z(
|
|
572
|
+
Z(Mt, {
|
|
573
573
|
icon: "male",
|
|
574
574
|
type: "fas",
|
|
575
575
|
color: "font"
|
|
@@ -577,7 +577,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
577
577
|
k("span", null, I(yt.adultsCount), 1)
|
|
578
578
|
]),
|
|
579
579
|
yt.childrenCount > 0 ? (T(), A("span", Da, [
|
|
580
|
-
Z(
|
|
580
|
+
Z(Mt, {
|
|
581
581
|
icon: "child",
|
|
582
582
|
type: "fas",
|
|
583
583
|
color: "font"
|
|
@@ -588,34 +588,34 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
588
588
|
yt.roomName ? (T(), A("span", Na, "(" + I(yt.roomName) + ")", 1)) : R("", !0)
|
|
589
589
|
]),
|
|
590
590
|
k("b", null, [
|
|
591
|
-
k("span", null, I(c(
|
|
591
|
+
k("span", null, I(c(se)(yt.totalPrice, c(p))), 1),
|
|
592
592
|
R("", !0)
|
|
593
593
|
])
|
|
594
594
|
]),
|
|
595
|
-
|
|
595
|
+
ge(yt.roomAddons) > 0 ? (T(), A("li", Ra, [
|
|
596
596
|
k("span", null, I(c(u)("general.addons")), 1),
|
|
597
|
-
k("b", null, I(c(
|
|
597
|
+
k("b", null, I(c(se)(ge(yt.roomAddons), c(p))), 1)
|
|
598
598
|
])) : R("", !0)
|
|
599
599
|
]))), 128))
|
|
600
600
|
]))), 128))
|
|
601
601
|
]))), 128)) : R("", !0),
|
|
602
602
|
c(g) && c(w) ? (T(), A("div", Ha, [
|
|
603
603
|
k("h6", null, [
|
|
604
|
-
k("span", null, I(c(
|
|
604
|
+
k("span", null, I(c(pe)(c(w).name)), 1)
|
|
605
605
|
]),
|
|
606
606
|
k("div", null, [
|
|
607
607
|
k("ul", null, [
|
|
608
608
|
k("li", null, [
|
|
609
609
|
k("span", null, [
|
|
610
|
-
k("span", null, I(c(
|
|
610
|
+
k("span", null, I(c(pe)(c(g).title)), 1)
|
|
611
611
|
]),
|
|
612
612
|
k("b", null, [
|
|
613
|
-
k("span", null, I(c(
|
|
613
|
+
k("span", null, I(c(se)(c(j), c(p))), 1)
|
|
614
614
|
])
|
|
615
615
|
]),
|
|
616
|
-
c(
|
|
616
|
+
c(V) ? (T(), A("li", Va, [
|
|
617
617
|
k("span", null, I(c(u)("general.addons")), 1),
|
|
618
|
-
k("b", null, I(c(
|
|
618
|
+
k("b", null, I(c(se)(c(V), c(p))), 1)
|
|
619
619
|
])) : R("", !0)
|
|
620
620
|
])
|
|
621
621
|
])
|
|
@@ -626,16 +626,16 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
626
626
|
c(h) ? R("", !0) : (T(), A("div", Ga, [
|
|
627
627
|
Z(ro, {
|
|
628
628
|
modelValue: c(W),
|
|
629
|
-
"onUpdate:modelValue": K[0] || (K[0] = (
|
|
629
|
+
"onUpdate:modelValue": K[0] || (K[0] = (ot) => It(W) ? W.value = ot : null),
|
|
630
630
|
type: "checkbox",
|
|
631
631
|
name: "newsletter",
|
|
632
632
|
label: c(u)("booking.reservation.newsletterSignUp")
|
|
633
633
|
}, null, 8, ["modelValue", "label"])
|
|
634
634
|
])),
|
|
635
|
-
c(
|
|
635
|
+
c(Tt) ? (T(), A("div", Ua, [
|
|
636
636
|
Z(ro, {
|
|
637
|
-
modelValue: c(
|
|
638
|
-
"onUpdate:modelValue": K[2] || (K[2] = (
|
|
637
|
+
modelValue: c(xt),
|
|
638
|
+
"onUpdate:modelValue": K[2] || (K[2] = (ot) => It(xt) ? xt.value = ot : null),
|
|
639
639
|
type: "checkbox",
|
|
640
640
|
name: "terms"
|
|
641
641
|
}, {
|
|
@@ -648,7 +648,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
648
648
|
terms: tt(() => [
|
|
649
649
|
k("a", {
|
|
650
650
|
class: "konnectio-accept-terms-link",
|
|
651
|
-
onClick: K[1] || (K[1] = Ci((
|
|
651
|
+
onClick: K[1] || (K[1] = Ci((ot) => G.value = !0, ["prevent"]))
|
|
652
652
|
}, [
|
|
653
653
|
k("span", null, I(c(to)(c(u)("general.termsAndConditions"))), 1)
|
|
654
654
|
])
|
|
@@ -661,8 +661,8 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
661
661
|
])) : R("", !0),
|
|
662
662
|
Qn(N.$slots, "actions", {}, void 0, !0),
|
|
663
663
|
Z(na, {
|
|
664
|
-
modelValue:
|
|
665
|
-
"onUpdate:modelValue": K[3] || (K[3] = (
|
|
664
|
+
modelValue: G.value,
|
|
665
|
+
"onUpdate:modelValue": K[3] || (K[3] = (ot) => G.value = ot),
|
|
666
666
|
description: c(lt)
|
|
667
667
|
}, null, 8, ["modelValue", "description"])
|
|
668
668
|
])
|
|
@@ -674,48 +674,48 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
674
674
|
K[5] || (K[5] = k("span", null, "For ", -1)),
|
|
675
675
|
k("b", null, I(c(Li)(c(S), c(x))) + " " + I(c(to)(c(Li)(c(S), c(x)) === 1 ? c(u)("booking.reservation.night") : c(u)("booking.reservation.nights"))), 1),
|
|
676
676
|
ke((T(), A("span", $a, [
|
|
677
|
-
Z(
|
|
677
|
+
Z(Mt, {
|
|
678
678
|
icon: "circle-info",
|
|
679
679
|
type: "fas"
|
|
680
680
|
})
|
|
681
681
|
])), [
|
|
682
682
|
[Lt, {
|
|
683
|
-
content: `<span>(${c(
|
|
683
|
+
content: `<span>(${c(oe)(c(S))} - ${c(oe)(c(x))})</span>`,
|
|
684
684
|
classes: ["tooltip", "konnectio-tooltip"],
|
|
685
685
|
html: !0
|
|
686
686
|
}]
|
|
687
687
|
])
|
|
688
688
|
]),
|
|
689
689
|
"mobile-summary": tt(() => [
|
|
690
|
-
k("span", null, I(`${c(
|
|
691
|
-
k("span", null, I(`${c(
|
|
692
|
-
k("span", null, I(`${c(
|
|
690
|
+
k("span", null, I(`${c(mt)} ${c(mt) === 1 ? c(u)("general.adult") : c(u)("general.adults")}`), 1),
|
|
691
|
+
k("span", null, I(`${c(ut)} ${c(ut) === 1 ? c(u)("general.child") : c(u)("general.children")}`), 1),
|
|
692
|
+
k("span", null, I(`${c(nt)} ${c(nt) === 1 ? c(u)("booking.reservation.room") : c(u)("booking.reservation.rooms")}`), 1)
|
|
693
693
|
]),
|
|
694
694
|
_: 2
|
|
695
695
|
}, [
|
|
696
696
|
isNaN(c(B)) ? void 0 : {
|
|
697
697
|
name: "reservation-summary",
|
|
698
698
|
fn: tt(() => [
|
|
699
|
-
c(
|
|
699
|
+
c(ht) ? (T(), A("li", Aa, [
|
|
700
700
|
k("span", null, I(c(u)("general.location")), 1),
|
|
701
701
|
k("b", null, [
|
|
702
|
-
k("span", null, I(c(
|
|
702
|
+
k("span", null, I(c(re)(c(B))), 1),
|
|
703
703
|
ke(k("span", Ia, [
|
|
704
|
-
Z(
|
|
704
|
+
Z(Mt, {
|
|
705
705
|
icon: "exclamation-triangle",
|
|
706
706
|
type: "fas"
|
|
707
707
|
})
|
|
708
708
|
], 512), [
|
|
709
|
-
[Ie, c(
|
|
709
|
+
[Ie, c(O)]
|
|
710
710
|
])
|
|
711
711
|
])
|
|
712
712
|
])) : R("", !0),
|
|
713
713
|
k("li", null, [
|
|
714
714
|
k("span", null, I(c(u)("booking.reservation.arrival")), 1),
|
|
715
715
|
k("b", null, [
|
|
716
|
-
k("span", null, I(c(v)(c(B)) ? `${c(
|
|
716
|
+
k("span", null, I(c(v)(c(B)) ? `${c(oe)(c(S))}, ${c(o)}` : c(oe)(c(S))), 1),
|
|
717
717
|
ke(k("span", Oa, [
|
|
718
|
-
Z(
|
|
718
|
+
Z(Mt, {
|
|
719
719
|
icon: "exclamation-triangle",
|
|
720
720
|
type: "fas"
|
|
721
721
|
})
|
|
@@ -727,9 +727,9 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
727
727
|
k("li", null, [
|
|
728
728
|
k("span", null, I(c(u)("booking.reservation.departure")), 1),
|
|
729
729
|
k("b", null, [
|
|
730
|
-
k("span", null, I(c(v)(c(B)) ? `${c(
|
|
730
|
+
k("span", null, I(c(v)(c(B)) ? `${c(oe)(c(x))}, ${c(r)}` : c(oe)(c(x))), 1),
|
|
731
731
|
ke(k("span", za, [
|
|
732
|
-
Z(
|
|
732
|
+
Z(Mt, {
|
|
733
733
|
icon: "exclamation-triangle",
|
|
734
734
|
type: "fas"
|
|
735
735
|
})
|
|
@@ -742,11 +742,11 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
742
742
|
k("span", null, I(c(u)("booking.reservation.nights")), 1),
|
|
743
743
|
k("b", null, I(c(Li)(c(S), c(x))) + " " + I(c(to)(c(Li)(c(S), c(x)) === 1 ? c(u)("booking.reservation.night") : c(u)("booking.reservation.nights"))), 1)
|
|
744
744
|
]),
|
|
745
|
-
c(P) ? (T(!0), A(
|
|
746
|
-
key:
|
|
745
|
+
c(P) ? (T(!0), A(ft, { key: 1 }, St(c(P), (ot) => (T(), A("li", {
|
|
746
|
+
key: ot.id
|
|
747
747
|
}, [
|
|
748
|
-
k("span", null, I(`${c(u)("general.discountCode")} (${
|
|
749
|
-
k("b", null, I(
|
|
748
|
+
k("span", null, I(`${c(u)("general.discountCode")} (${ot.value})`), 1),
|
|
749
|
+
k("b", null, I(ot.key), 1)
|
|
750
750
|
]))), 128)) : R("", !0)
|
|
751
751
|
]),
|
|
752
752
|
key: "0"
|
|
@@ -754,10 +754,10 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
754
754
|
]), 1032, ["discount-code", "validate-discount-code", "total-price", "weekend-fee", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice", "prev-callback"]);
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
|
-
}), oo = /* @__PURE__ */
|
|
757
|
+
}), oo = /* @__PURE__ */ qt(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__ */ Zt({
|
|
758
758
|
__name: "GuestDiscountForm",
|
|
759
759
|
setup(a) {
|
|
760
|
-
const { t: u } =
|
|
760
|
+
const { t: u } = Wt(), h = so("history"), p = me(), { display: v } = fo(), o = Vt();
|
|
761
761
|
async function r() {
|
|
762
762
|
if (!o.value) {
|
|
763
763
|
v({
|
|
@@ -798,7 +798,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
798
798
|
])
|
|
799
799
|
]));
|
|
800
800
|
}
|
|
801
|
-
}), Ja = /* @__PURE__ */
|
|
801
|
+
}), Ja = /* @__PURE__ */ qt(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__ */ Zt({
|
|
802
802
|
__name: "RoomConfigField",
|
|
803
803
|
props: {
|
|
804
804
|
modelValue: {},
|
|
@@ -809,7 +809,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
809
809
|
},
|
|
810
810
|
emits: ["update:modelValue"],
|
|
811
811
|
setup(a, { emit: u }) {
|
|
812
|
-
const { t: h } =
|
|
812
|
+
const { t: h } = Wt(), { currency: p } = $t(ze()), v = u, o = a;
|
|
813
813
|
function r(f) {
|
|
814
814
|
v("update:modelValue", f);
|
|
815
815
|
}
|
|
@@ -833,14 +833,14 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
833
833
|
option: tt(({ data: y }) => [
|
|
834
834
|
k("span", Qa, [
|
|
835
835
|
k("div", null, [
|
|
836
|
-
Z(
|
|
836
|
+
Z(Mt, {
|
|
837
837
|
icon: "male",
|
|
838
838
|
type: "fas",
|
|
839
839
|
color: "font"
|
|
840
840
|
}),
|
|
841
841
|
k("span", null, I(`${y.adults}`), 1),
|
|
842
842
|
y.children > 0 ? (T(), A("span", tl, [
|
|
843
|
-
Z(
|
|
843
|
+
Z(Mt, {
|
|
844
844
|
icon: "child",
|
|
845
845
|
type: "fas",
|
|
846
846
|
color: "font"
|
|
@@ -848,7 +848,7 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
848
848
|
k("span", null, I(`${y.children}`), 1)
|
|
849
849
|
])) : R("", !0)
|
|
850
850
|
]),
|
|
851
|
-
k("span", null, I(`(${c(
|
|
851
|
+
k("span", null, I(`(${c(se)(y.price, c(p))})`), 1)
|
|
852
852
|
])
|
|
853
853
|
]),
|
|
854
854
|
"selected-option": tt(({ data: y }) => [
|
|
@@ -865,14 +865,14 @@ const Ra = { key: 0 }, Ha = { key: 1 }, Va = { key: 0 }, Fa = { class: "konnecti
|
|
|
865
865
|
]),
|
|
866
866
|
k("div", ol, [
|
|
867
867
|
m[1] || (m[1] = k("span", null, null, -1)),
|
|
868
|
-
ys(" " + I(`(${c(
|
|
868
|
+
ys(" " + I(`(${c(se)(y.price, c(p))})`), 1)
|
|
869
869
|
])
|
|
870
870
|
])
|
|
871
871
|
]),
|
|
872
872
|
_: 1
|
|
873
873
|
}, 8, ["modelValue", "label", "options", "readonly", "required"]));
|
|
874
874
|
}
|
|
875
|
-
}), rl = /* @__PURE__ */
|
|
875
|
+
}), rl = /* @__PURE__ */ qt(sl, [["__scopeId", "data-v-c4045bfc"]]);
|
|
876
876
|
var wi = { exports: {} };
|
|
877
877
|
/* @preserve
|
|
878
878
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
@@ -954,7 +954,7 @@ function ll() {
|
|
|
954
954
|
return (!e || e.indexOf("?") === -1 ? "?" : "&") + n.join("&");
|
|
955
955
|
}
|
|
956
956
|
var B = /\{ *([\w_ -]+) *\}/g;
|
|
957
|
-
function
|
|
957
|
+
function O(t, e) {
|
|
958
958
|
return t.replace(B, function(i, n) {
|
|
959
959
|
var s = e[n];
|
|
960
960
|
if (s === void 0)
|
|
@@ -971,28 +971,28 @@ function ll() {
|
|
|
971
971
|
return i;
|
|
972
972
|
return -1;
|
|
973
973
|
}
|
|
974
|
-
var
|
|
975
|
-
function
|
|
974
|
+
var at = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
|
975
|
+
function Tt(t) {
|
|
976
976
|
return window["webkit" + t] || window["moz" + t] || window["ms" + t];
|
|
977
977
|
}
|
|
978
|
-
var
|
|
979
|
-
function
|
|
980
|
-
var e = +/* @__PURE__ */ new Date(), i = Math.max(0, 16 - (e -
|
|
981
|
-
return
|
|
978
|
+
var xt = 0;
|
|
979
|
+
function V(t) {
|
|
980
|
+
var e = +/* @__PURE__ */ new Date(), i = Math.max(0, 16 - (e - xt));
|
|
981
|
+
return xt = e + i, window.setTimeout(t, i);
|
|
982
982
|
}
|
|
983
|
-
var
|
|
983
|
+
var nt = window.requestAnimationFrame || Tt("RequestAnimationFrame") || V, mt = window.cancelAnimationFrame || Tt("CancelAnimationFrame") || Tt("CancelRequestAnimationFrame") || function(t) {
|
|
984
984
|
window.clearTimeout(t);
|
|
985
985
|
};
|
|
986
|
-
function
|
|
987
|
-
if (i &&
|
|
986
|
+
function ut(t, e, i) {
|
|
987
|
+
if (i && nt === V)
|
|
988
988
|
t.call(e);
|
|
989
989
|
else
|
|
990
|
-
return
|
|
990
|
+
return nt.call(window, r(t, e));
|
|
991
991
|
}
|
|
992
992
|
function j(t) {
|
|
993
|
-
t &&
|
|
993
|
+
t && mt.call(window, t);
|
|
994
994
|
}
|
|
995
|
-
var
|
|
995
|
+
var Dt = {
|
|
996
996
|
__proto__: null,
|
|
997
997
|
extend: v,
|
|
998
998
|
create: o,
|
|
@@ -1009,50 +1009,50 @@ function ll() {
|
|
|
1009
1009
|
splitWords: S,
|
|
1010
1010
|
setOptions: x,
|
|
1011
1011
|
getParamString: H,
|
|
1012
|
-
template:
|
|
1012
|
+
template: O,
|
|
1013
1013
|
isArray: W,
|
|
1014
1014
|
indexOf: lt,
|
|
1015
|
-
emptyImageUrl:
|
|
1016
|
-
requestFn:
|
|
1017
|
-
cancelFn:
|
|
1018
|
-
requestAnimFrame:
|
|
1015
|
+
emptyImageUrl: at,
|
|
1016
|
+
requestFn: nt,
|
|
1017
|
+
cancelFn: mt,
|
|
1018
|
+
requestAnimFrame: ut,
|
|
1019
1019
|
cancelAnimFrame: j
|
|
1020
1020
|
};
|
|
1021
|
-
function
|
|
1021
|
+
function ht() {
|
|
1022
1022
|
}
|
|
1023
|
-
|
|
1023
|
+
ht.extend = function(t) {
|
|
1024
1024
|
var e = function() {
|
|
1025
1025
|
x(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
|
|
1026
1026
|
}, i = e.__super__ = this.prototype, n = o(i);
|
|
1027
1027
|
n.constructor = e, e.prototype = n;
|
|
1028
1028
|
for (var s in this)
|
|
1029
1029
|
Object.prototype.hasOwnProperty.call(this, s) && s !== "prototype" && s !== "__super__" && (e[s] = this[s]);
|
|
1030
|
-
return t.statics && v(e, t.statics), t.includes && (
|
|
1030
|
+
return t.statics && v(e, t.statics), t.includes && (jt(t.includes), v.apply(null, [n].concat(t.includes))), v(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? o(i.options) : {}, v(n.options, t.options)), n._initHooks = [], n.callInitHooks = function() {
|
|
1031
1031
|
if (!this._initHooksCalled) {
|
|
1032
1032
|
i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
|
|
1033
1033
|
for (var l = 0, _ = n._initHooks.length; l < _; l++)
|
|
1034
1034
|
n._initHooks[l].call(this);
|
|
1035
1035
|
}
|
|
1036
1036
|
}, e;
|
|
1037
|
-
},
|
|
1037
|
+
}, ht.include = function(t) {
|
|
1038
1038
|
var e = this.prototype.options;
|
|
1039
1039
|
return v(this.prototype, t), t.options && (this.prototype.options = e, this.mergeOptions(t.options)), this;
|
|
1040
|
-
},
|
|
1040
|
+
}, ht.mergeOptions = function(t) {
|
|
1041
1041
|
return v(this.prototype.options, t), this;
|
|
1042
|
-
},
|
|
1042
|
+
}, ht.addInitHook = function(t) {
|
|
1043
1043
|
var e = Array.prototype.slice.call(arguments, 1), i = typeof t == "function" ? t : function() {
|
|
1044
1044
|
this[t].apply(this, e);
|
|
1045
1045
|
};
|
|
1046
1046
|
return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(i), this;
|
|
1047
1047
|
};
|
|
1048
|
-
function
|
|
1048
|
+
function jt(t) {
|
|
1049
1049
|
if (!(typeof L > "u" || !L || !L.Mixin)) {
|
|
1050
1050
|
t = W(t) ? t : [t];
|
|
1051
1051
|
for (var e = 0; e < t.length; e++)
|
|
1052
1052
|
t[e] === L.Mixin.Events && console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.", new Error().stack);
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
|
-
var
|
|
1055
|
+
var gt = {
|
|
1056
1056
|
/* @method on(type: String, fn: Function, context?: Object): this
|
|
1057
1057
|
* Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).
|
|
1058
1058
|
*
|
|
@@ -1215,19 +1215,19 @@ function ll() {
|
|
|
1215
1215
|
}, t), !0);
|
|
1216
1216
|
}
|
|
1217
1217
|
};
|
|
1218
|
-
|
|
1219
|
-
var
|
|
1220
|
-
function
|
|
1218
|
+
gt.addEventListener = gt.on, gt.removeEventListener = gt.clearAllEventListeners = gt.off, gt.addOneTimeEventListener = gt.once, gt.fireEvent = gt.fire, gt.hasEventListeners = gt.listens;
|
|
1219
|
+
var re = ht.extend(gt);
|
|
1220
|
+
function G(t, e, i) {
|
|
1221
1221
|
this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e;
|
|
1222
1222
|
}
|
|
1223
|
-
var
|
|
1223
|
+
var ge = Math.trunc || function(t) {
|
|
1224
1224
|
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
1225
1225
|
};
|
|
1226
|
-
|
|
1226
|
+
G.prototype = {
|
|
1227
1227
|
// @method clone(): Point
|
|
1228
1228
|
// Returns a copy of the current point.
|
|
1229
1229
|
clone: function() {
|
|
1230
|
-
return new
|
|
1230
|
+
return new G(this.x, this.y);
|
|
1231
1231
|
},
|
|
1232
1232
|
// @method add(otherPoint: Point): Point
|
|
1233
1233
|
// Returns the result of addition of the current and the given points.
|
|
@@ -1267,13 +1267,13 @@ function ll() {
|
|
|
1267
1267
|
// [scaling matrix](https://en.wikipedia.org/wiki/Scaling_%28geometry%29#Matrix_representation)
|
|
1268
1268
|
// defined by `scale`.
|
|
1269
1269
|
scaleBy: function(t) {
|
|
1270
|
-
return new
|
|
1270
|
+
return new G(this.x * t.x, this.y * t.y);
|
|
1271
1271
|
},
|
|
1272
1272
|
// @method unscaleBy(scale: Point): Point
|
|
1273
1273
|
// Inverse of `scaleBy`. Divide each coordinate of the current point by
|
|
1274
1274
|
// each coordinate of `scale`.
|
|
1275
1275
|
unscaleBy: function(t) {
|
|
1276
|
-
return new
|
|
1276
|
+
return new G(this.x / t.x, this.y / t.y);
|
|
1277
1277
|
},
|
|
1278
1278
|
// @method round(): Point
|
|
1279
1279
|
// Returns a copy of the current point with rounded coordinates.
|
|
@@ -1305,7 +1305,7 @@ function ll() {
|
|
|
1305
1305
|
return this.clone()._trunc();
|
|
1306
1306
|
},
|
|
1307
1307
|
_trunc: function() {
|
|
1308
|
-
return this.x =
|
|
1308
|
+
return this.x = ge(this.x), this.y = ge(this.y), this;
|
|
1309
1309
|
},
|
|
1310
1310
|
// @method distanceTo(otherPoint: Point): Number
|
|
1311
1311
|
// Returns the cartesian distance between the current and the given points.
|
|
@@ -1331,7 +1331,7 @@ function ll() {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
};
|
|
1333
1333
|
function N(t, e, i) {
|
|
1334
|
-
return t instanceof
|
|
1334
|
+
return t instanceof G ? t : W(t) ? new G(t[0], t[1]) : t == null ? t : typeof t == "object" && "x" in t && "y" in t ? new G(t.x, t.y) : new G(t, e, i);
|
|
1335
1335
|
}
|
|
1336
1336
|
function K(t, e) {
|
|
1337
1337
|
if (t)
|
|
@@ -1348,7 +1348,7 @@ function ll() {
|
|
|
1348
1348
|
var e, i;
|
|
1349
1349
|
if (!t)
|
|
1350
1350
|
return this;
|
|
1351
|
-
if (t instanceof
|
|
1351
|
+
if (t instanceof G || typeof t[0] == "number" || "x" in t)
|
|
1352
1352
|
e = i = N(t);
|
|
1353
1353
|
else if (t = Lt(t), e = t.min, i = t.max, !e || !i)
|
|
1354
1354
|
return this;
|
|
@@ -1395,7 +1395,7 @@ function ll() {
|
|
|
1395
1395
|
// Returns `true` if the rectangle contains the given point.
|
|
1396
1396
|
contains: function(t) {
|
|
1397
1397
|
var e, i;
|
|
1398
|
-
return typeof t[0] == "number" || t instanceof
|
|
1398
|
+
return typeof t[0] == "number" || t instanceof G ? t = N(t) : t = Lt(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;
|
|
1399
1399
|
},
|
|
1400
1400
|
// @method intersects(otherBounds: Bounds): Boolean
|
|
1401
1401
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds
|
|
@@ -1438,12 +1438,12 @@ function ll() {
|
|
|
1438
1438
|
function Lt(t, e) {
|
|
1439
1439
|
return !t || t instanceof K ? t : new K(t, e);
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function ot(t, e) {
|
|
1442
1442
|
if (t)
|
|
1443
1443
|
for (var i = e ? [t, e] : t, n = 0, s = i.length; n < s; n++)
|
|
1444
1444
|
this.extend(i[n]);
|
|
1445
1445
|
}
|
|
1446
|
-
|
|
1446
|
+
ot.prototype = {
|
|
1447
1447
|
// @method extend(latlng: LatLng): this
|
|
1448
1448
|
// Extend the bounds to contain the given point
|
|
1449
1449
|
// @alternative
|
|
@@ -1453,11 +1453,11 @@ function ll() {
|
|
|
1453
1453
|
var e = this._southWest, i = this._northEast, n, s;
|
|
1454
1454
|
if (t instanceof et)
|
|
1455
1455
|
n = t, s = t;
|
|
1456
|
-
else if (t instanceof
|
|
1456
|
+
else if (t instanceof ot) {
|
|
1457
1457
|
if (n = t._southWest, s = t._northEast, !n || !s)
|
|
1458
1458
|
return this;
|
|
1459
1459
|
} else
|
|
1460
|
-
return t ? this.extend(X(t) ||
|
|
1460
|
+
return t ? this.extend(X(t) || pt(t)) : this;
|
|
1461
1461
|
return !e && !i ? (this._southWest = new et(n.lat, n.lng), this._northEast = new et(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;
|
|
1462
1462
|
},
|
|
1463
1463
|
// @method pad(bufferRatio: Number): LatLngBounds
|
|
@@ -1466,7 +1466,7 @@ function ll() {
|
|
|
1466
1466
|
// Negative values will retract the bounds.
|
|
1467
1467
|
pad: function(t) {
|
|
1468
1468
|
var e = this._southWest, i = this._northEast, n = Math.abs(e.lat - i.lat) * t, s = Math.abs(e.lng - i.lng) * t;
|
|
1469
|
-
return new
|
|
1469
|
+
return new ot(
|
|
1470
1470
|
new et(e.lat - n, e.lng - s),
|
|
1471
1471
|
new et(i.lat + n, i.lng + s)
|
|
1472
1472
|
);
|
|
@@ -1525,21 +1525,21 @@ function ll() {
|
|
|
1525
1525
|
// @method contains (latlng: LatLng): Boolean
|
|
1526
1526
|
// Returns `true` if the rectangle contains the given point.
|
|
1527
1527
|
contains: function(t) {
|
|
1528
|
-
typeof t[0] == "number" || t instanceof et || "lat" in t ? t = X(t) : t =
|
|
1528
|
+
typeof t[0] == "number" || t instanceof et || "lat" in t ? t = X(t) : t = pt(t);
|
|
1529
1529
|
var e = this._southWest, i = this._northEast, n, s;
|
|
1530
|
-
return t instanceof
|
|
1530
|
+
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;
|
|
1531
1531
|
},
|
|
1532
1532
|
// @method intersects(otherBounds: LatLngBounds): Boolean
|
|
1533
1533
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
|
|
1534
1534
|
intersects: function(t) {
|
|
1535
|
-
t =
|
|
1535
|
+
t = pt(t);
|
|
1536
1536
|
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;
|
|
1537
1537
|
return l && _;
|
|
1538
1538
|
},
|
|
1539
1539
|
// @method overlaps(otherBounds: LatLngBounds): Boolean
|
|
1540
1540
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
|
|
1541
1541
|
overlaps: function(t) {
|
|
1542
|
-
t =
|
|
1542
|
+
t = pt(t);
|
|
1543
1543
|
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;
|
|
1544
1544
|
return l && _;
|
|
1545
1545
|
},
|
|
@@ -1551,7 +1551,7 @@ function ll() {
|
|
|
1551
1551
|
// @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean
|
|
1552
1552
|
// 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.
|
|
1553
1553
|
equals: function(t, e) {
|
|
1554
|
-
return t ? (t =
|
|
1554
|
+
return t ? (t = pt(t), this._southWest.equals(t.getSouthWest(), e) && this._northEast.equals(t.getNorthEast(), e)) : !1;
|
|
1555
1555
|
},
|
|
1556
1556
|
// @method isValid(): Boolean
|
|
1557
1557
|
// Returns `true` if the bounds are properly initialized.
|
|
@@ -1559,8 +1559,8 @@ function ll() {
|
|
|
1559
1559
|
return !!(this._southWest && this._northEast);
|
|
1560
1560
|
}
|
|
1561
1561
|
};
|
|
1562
|
-
function
|
|
1563
|
-
return t instanceof
|
|
1562
|
+
function pt(t, e) {
|
|
1563
|
+
return t instanceof ot ? t : new ot(t, e);
|
|
1564
1564
|
}
|
|
1565
1565
|
function et(t, e, i) {
|
|
1566
1566
|
if (isNaN(t) || isNaN(e))
|
|
@@ -1599,7 +1599,7 @@ function ll() {
|
|
|
1599
1599
|
// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
|
|
1600
1600
|
toBounds: function(t) {
|
|
1601
1601
|
var e = 180 * t / 40075017, i = e / Math.cos(Math.PI / 180 * this.lat);
|
|
1602
|
-
return
|
|
1602
|
+
return pt(
|
|
1603
1603
|
[this.lat - e, this.lng - i],
|
|
1604
1604
|
[this.lat + e, this.lng + i]
|
|
1605
1605
|
);
|
|
@@ -1611,7 +1611,7 @@ function ll() {
|
|
|
1611
1611
|
function X(t, e, i) {
|
|
1612
1612
|
return t instanceof et ? t : W(t) && typeof t[0] != "object" ? t.length === 3 ? new et(t[0], t[1], t[2]) : t.length === 2 ? new et(t[0], t[1]) : null : t == null ? t : typeof t == "object" && "lat" in t ? new et(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : e === void 0 ? null : new et(t, e, i);
|
|
1613
1613
|
}
|
|
1614
|
-
var
|
|
1614
|
+
var Nt = {
|
|
1615
1615
|
// @method latLngToPoint(latlng: LatLng, zoom: Number): Point
|
|
1616
1616
|
// Projects geographical coordinates into pixel coordinates for a given zoom.
|
|
1617
1617
|
latLngToPoint: function(t, e) {
|
|
@@ -1691,9 +1691,9 @@ function ll() {
|
|
|
1691
1691
|
if (n === 0 && s === 0)
|
|
1692
1692
|
return t;
|
|
1693
1693
|
var l = t.getSouthWest(), _ = t.getNorthEast(), b = new et(l.lat - n, l.lng - s), C = new et(_.lat - n, _.lng - s);
|
|
1694
|
-
return new
|
|
1694
|
+
return new ot(b, C);
|
|
1695
1695
|
}
|
|
1696
|
-
}, yt = v({},
|
|
1696
|
+
}, yt = v({}, Nt, {
|
|
1697
1697
|
wrapLng: [-180, 180],
|
|
1698
1698
|
// Mean Earth Radius, as recommended for use by
|
|
1699
1699
|
// the International Union of Geodesy and Geophysics,
|
|
@@ -1704,12 +1704,12 @@ function ll() {
|
|
|
1704
1704
|
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));
|
|
1705
1705
|
return this.R * C;
|
|
1706
1706
|
}
|
|
1707
|
-
}),
|
|
1708
|
-
R:
|
|
1707
|
+
}), ae = 6378137, Yt = {
|
|
1708
|
+
R: ae,
|
|
1709
1709
|
MAX_LATITUDE: 85.0511287798,
|
|
1710
1710
|
project: function(t) {
|
|
1711
1711
|
var e = Math.PI / 180, i = this.MAX_LATITUDE, n = Math.max(Math.min(i, t.lat), -i), s = Math.sin(n * e);
|
|
1712
|
-
return new
|
|
1712
|
+
return new G(
|
|
1713
1713
|
this.R * t.lng * e,
|
|
1714
1714
|
this.R * Math.log((1 + s) / (1 - s)) / 2
|
|
1715
1715
|
);
|
|
@@ -1722,7 +1722,7 @@ function ll() {
|
|
|
1722
1722
|
);
|
|
1723
1723
|
},
|
|
1724
1724
|
bounds: function() {
|
|
1725
|
-
var t =
|
|
1725
|
+
var t = ae * Math.PI;
|
|
1726
1726
|
return new K([-t, -t], [t, t]);
|
|
1727
1727
|
}()
|
|
1728
1728
|
};
|
|
@@ -1748,7 +1748,7 @@ function ll() {
|
|
|
1748
1748
|
// Returns the reverse transformation of the given point, optionally divided
|
|
1749
1749
|
// by the given scale. Only accepts actual `L.Point` instances, not arrays.
|
|
1750
1750
|
untransform: function(t, e) {
|
|
1751
|
-
return e = e || 1, new
|
|
1751
|
+
return e = e || 1, new G(
|
|
1752
1752
|
(t.x / e - this._b) / this._a,
|
|
1753
1753
|
(t.y / e - this._d) / this._c
|
|
1754
1754
|
);
|
|
@@ -1759,9 +1759,9 @@ function ll() {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
var je = v({}, yt, {
|
|
1761
1761
|
code: "EPSG:3857",
|
|
1762
|
-
projection:
|
|
1762
|
+
projection: Yt,
|
|
1763
1763
|
transformation: function() {
|
|
1764
|
-
var t = 0.5 / (Math.PI *
|
|
1764
|
+
var t = 0.5 / (Math.PI * Yt.R);
|
|
1765
1765
|
return we(t, 0.5, -t, 0.5);
|
|
1766
1766
|
}()
|
|
1767
1767
|
}), pn = v({}, je, {
|
|
@@ -1779,7 +1779,7 @@ function ll() {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
return i || "M0 0";
|
|
1781
1781
|
}
|
|
1782
|
-
var Ye = document.documentElement.style, Be = "ActiveXObject" in window, _n = Be && !document.addEventListener, Mi = "msLaunchUri" in navigator && !("documentMode" in document), Ke =
|
|
1782
|
+
var Ye = document.documentElement.style, Be = "ActiveXObject" in window, _n = Be && !document.addEventListener, Mi = "msLaunchUri" in navigator && !("documentMode" in document), Ke = Rt("webkit"), Si = Rt("android"), Xe = Rt("android 2") || Rt("android 3"), Ai = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), mn = Si && Rt("Google") && Ai < 537 && !("AudioNode" in window), Je = !!window.opera, Ii = !Mi && Rt("chrome"), Qe = Rt("gecko") && !Ke && !Je && !Be, ti = !Ii && Rt("safari"), Oi = Rt("phantom"), Ze = "OTransition" in Ye, ei = navigator.platform.indexOf("Win") === 0, zi = Be && "transition" in Ye, ii = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Xe, Ei = "MozPerspective" in Ye, gn = !window.L_DISABLE_3D && (zi || ii || Ei) && !Ze && !Oi, Pe = typeof orientation < "u" || Rt("mobile"), vn = Pe && Ke, yn = Pe && ii, Ce = !window.PointerEvent && window.MSPointerEvent, Bi = !!(window.PointerEvent || Ce), Zi = "ontouchstart" in window || !!window.TouchEvent, bn = !window.L_NO_TOUCH && (Zi || Bi), Ln = Pe && Je, ni = Pe && Qe, Di = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, kn = function() {
|
|
1783
1783
|
var t = !1;
|
|
1784
1784
|
try {
|
|
1785
1785
|
var e = Object.defineProperty({}, "passive", {
|
|
@@ -1805,8 +1805,8 @@ function ll() {
|
|
|
1805
1805
|
} catch {
|
|
1806
1806
|
return !1;
|
|
1807
1807
|
}
|
|
1808
|
-
}(), Cn = navigator.platform.indexOf("Mac") === 0,
|
|
1809
|
-
function
|
|
1808
|
+
}(), Cn = navigator.platform.indexOf("Mac") === 0, Qt = navigator.platform.indexOf("Linux") === 0;
|
|
1809
|
+
function Rt(t) {
|
|
1810
1810
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
1811
1811
|
}
|
|
1812
1812
|
var D = {
|
|
@@ -1844,20 +1844,20 @@ function ll() {
|
|
|
1844
1844
|
vml: Pn,
|
|
1845
1845
|
inlineSvg: wn,
|
|
1846
1846
|
mac: Cn,
|
|
1847
|
-
linux:
|
|
1847
|
+
linux: Qt
|
|
1848
1848
|
}, Ni = D.msPointer ? "MSPointerDown" : "pointerdown", Ri = D.msPointer ? "MSPointerMove" : "pointermove", Hi = D.msPointer ? "MSPointerUp" : "pointerup", Vi = D.msPointer ? "MSPointerCancel" : "pointercancel", si = {
|
|
1849
1849
|
touchstart: Ni,
|
|
1850
1850
|
touchmove: Ri,
|
|
1851
1851
|
touchend: Hi,
|
|
1852
1852
|
touchcancel: Vi
|
|
1853
1853
|
}, ri = {
|
|
1854
|
-
touchstart:
|
|
1854
|
+
touchstart: te,
|
|
1855
1855
|
touchmove: Et,
|
|
1856
1856
|
touchend: Et,
|
|
1857
1857
|
touchcancel: Et
|
|
1858
1858
|
}, E = {}, $ = !1;
|
|
1859
1859
|
function kt(t, e, i) {
|
|
1860
|
-
return e === "touchstart" &&
|
|
1860
|
+
return e === "touchstart" && _t(), ri[e] ? (i = ri[e].bind(this, i), t.addEventListener(si[e], i, !1), i) : (console.warn("wrong event specified:", e), g);
|
|
1861
1861
|
}
|
|
1862
1862
|
function J(t, e, i) {
|
|
1863
1863
|
if (!si[e]) {
|
|
@@ -1866,17 +1866,17 @@ function ll() {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
t.removeEventListener(si[e], i, !1);
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function dt(t) {
|
|
1870
1870
|
E[t.pointerId] = t;
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1872
|
+
function U(t) {
|
|
1873
1873
|
E[t.pointerId] && (E[t.pointerId] = t);
|
|
1874
1874
|
}
|
|
1875
1875
|
function zt(t) {
|
|
1876
1876
|
delete E[t.pointerId];
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1879
|
-
$ || (document.addEventListener(Ni,
|
|
1878
|
+
function _t() {
|
|
1879
|
+
$ || (document.addEventListener(Ni, dt, !0), document.addEventListener(Ri, U, !0), document.addEventListener(Hi, zt, !0), document.addEventListener(Vi, zt, !0), $ = !0);
|
|
1880
1880
|
}
|
|
1881
1881
|
function Et(t, e) {
|
|
1882
1882
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
@@ -1886,10 +1886,10 @@ function ll() {
|
|
|
1886
1886
|
e.changedTouches = [e], t(e);
|
|
1887
1887
|
}
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function te(t, e) {
|
|
1890
1890
|
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && Ot(e), Et(t, e);
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function Kt(t) {
|
|
1893
1893
|
var e = {}, i, n;
|
|
1894
1894
|
for (n in t)
|
|
1895
1895
|
i = t[n], e[n] = i && i.bind ? i.bind(t) : i;
|
|
@@ -1912,7 +1912,7 @@ function ll() {
|
|
|
1912
1912
|
return C instanceof HTMLInputElement || C instanceof HTMLSelectElement;
|
|
1913
1913
|
}))) {
|
|
1914
1914
|
var b = Date.now();
|
|
1915
|
-
b - i <= De ? (n++, n === 2 && e(
|
|
1915
|
+
b - i <= De ? (n++, n === 2 && e(Kt(l))) : n = 1, i = b;
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
@@ -1926,9 +1926,9 @@ function ll() {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
var li = $i(
|
|
1928
1928
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
|
1929
|
-
),
|
|
1929
|
+
), le = $i(
|
|
1930
1930
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
|
1931
|
-
), ui =
|
|
1931
|
+
), ui = le === "webkitTransition" || le === "OTransition" ? le + "End" : "transitionend";
|
|
1932
1932
|
function Fi(t) {
|
|
1933
1933
|
return typeof t == "string" ? document.getElementById(t) : t;
|
|
1934
1934
|
}
|
|
@@ -1944,7 +1944,7 @@ function ll() {
|
|
|
1944
1944
|
var n = document.createElement(t);
|
|
1945
1945
|
return n.className = e || "", i && i.appendChild(n), n;
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function vt(t) {
|
|
1948
1948
|
var e = t.parentNode;
|
|
1949
1949
|
e && e.removeChild(t);
|
|
1950
1950
|
}
|
|
@@ -1984,7 +1984,7 @@ function ll() {
|
|
|
1984
1984
|
function Ui(t) {
|
|
1985
1985
|
return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function Ft(t, e) {
|
|
1988
1988
|
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style && Os(t, e);
|
|
1989
1989
|
}
|
|
1990
1990
|
function Os(t, e) {
|
|
@@ -2004,21 +2004,21 @@ function ll() {
|
|
|
2004
2004
|
return !1;
|
|
2005
2005
|
}
|
|
2006
2006
|
function Te(t, e, i) {
|
|
2007
|
-
var n = e || new
|
|
2007
|
+
var n = e || new G(0, 0);
|
|
2008
2008
|
t.style[li] = (D.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
|
|
2009
2009
|
}
|
|
2010
2010
|
function wt(t, e) {
|
|
2011
2011
|
t._leaflet_pos = e, D.any3d ? Te(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
|
2012
2012
|
}
|
|
2013
2013
|
function xe(t) {
|
|
2014
|
-
return t._leaflet_pos || new
|
|
2014
|
+
return t._leaflet_pos || new G(0, 0);
|
|
2015
2015
|
}
|
|
2016
2016
|
var di, ci, Sn;
|
|
2017
2017
|
if ("onselectstart" in document)
|
|
2018
2018
|
di = function() {
|
|
2019
2019
|
q(window, "selectstart", Ot);
|
|
2020
2020
|
}, ci = function() {
|
|
2021
|
-
|
|
2021
|
+
ct(window, "selectstart", Ot);
|
|
2022
2022
|
};
|
|
2023
2023
|
else {
|
|
2024
2024
|
var fi = $i(
|
|
@@ -2037,7 +2037,7 @@ function ll() {
|
|
|
2037
2037
|
q(window, "dragstart", Ot);
|
|
2038
2038
|
}
|
|
2039
2039
|
function In() {
|
|
2040
|
-
|
|
2040
|
+
ct(window, "dragstart", Ot);
|
|
2041
2041
|
}
|
|
2042
2042
|
var Wi, On;
|
|
2043
2043
|
function zn(t) {
|
|
@@ -2046,7 +2046,7 @@ function ll() {
|
|
|
2046
2046
|
t.style && (qi(), Wi = t, On = t.style.outlineStyle, t.style.outlineStyle = "none", q(window, "keydown", qi));
|
|
2047
2047
|
}
|
|
2048
2048
|
function qi() {
|
|
2049
|
-
Wi && (Wi.style.outlineStyle = On, Wi = void 0, On = void 0,
|
|
2049
|
+
Wi && (Wi.style.outlineStyle = On, Wi = void 0, On = void 0, ct(window, "keydown", qi));
|
|
2050
2050
|
}
|
|
2051
2051
|
function _o(t) {
|
|
2052
2052
|
do
|
|
@@ -2065,12 +2065,12 @@ function ll() {
|
|
|
2065
2065
|
var zs = {
|
|
2066
2066
|
__proto__: null,
|
|
2067
2067
|
TRANSFORM: li,
|
|
2068
|
-
TRANSITION:
|
|
2068
|
+
TRANSITION: le,
|
|
2069
2069
|
TRANSITION_END: ui,
|
|
2070
2070
|
get: Fi,
|
|
2071
2071
|
getStyle: hi,
|
|
2072
2072
|
create: st,
|
|
2073
|
-
remove:
|
|
2073
|
+
remove: vt,
|
|
2074
2074
|
empty: Gi,
|
|
2075
2075
|
toFront: Ne,
|
|
2076
2076
|
toBack: Re,
|
|
@@ -2079,7 +2079,7 @@ function ll() {
|
|
|
2079
2079
|
removeClass: bt,
|
|
2080
2080
|
setClass: Mn,
|
|
2081
2081
|
getClass: Ui,
|
|
2082
|
-
setOpacity:
|
|
2082
|
+
setOpacity: Ft,
|
|
2083
2083
|
testProp: $i,
|
|
2084
2084
|
setTransform: Te,
|
|
2085
2085
|
setPosition: wt,
|
|
@@ -2108,10 +2108,10 @@ function ll() {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
return this;
|
|
2110
2110
|
}
|
|
2111
|
-
var
|
|
2112
|
-
function
|
|
2111
|
+
var ee = "_leaflet_events";
|
|
2112
|
+
function ct(t, e, i, n) {
|
|
2113
2113
|
if (arguments.length === 1)
|
|
2114
|
-
mo(t), delete t[
|
|
2114
|
+
mo(t), delete t[ee];
|
|
2115
2115
|
else if (e && typeof e == "object")
|
|
2116
2116
|
for (var s in e)
|
|
2117
2117
|
Dn(t, s, e[s], i);
|
|
@@ -2125,7 +2125,7 @@ function ll() {
|
|
|
2125
2125
|
return this;
|
|
2126
2126
|
}
|
|
2127
2127
|
function mo(t, e) {
|
|
2128
|
-
for (var i in t[
|
|
2128
|
+
for (var i in t[ee]) {
|
|
2129
2129
|
var n = i.split(/\d/)[0];
|
|
2130
2130
|
(!e || e(n)) && Dn(t, n, null, null, i);
|
|
2131
2131
|
}
|
|
@@ -2137,21 +2137,21 @@ function ll() {
|
|
|
2137
2137
|
};
|
|
2138
2138
|
function Zn(t, e, i, n) {
|
|
2139
2139
|
var s = e + f(i) + (n ? "_" + f(n) : "");
|
|
2140
|
-
if (t[
|
|
2140
|
+
if (t[ee] && t[ee][s])
|
|
2141
2141
|
return this;
|
|
2142
2142
|
var l = function(b) {
|
|
2143
2143
|
return i.call(n || t, b || window.event);
|
|
2144
2144
|
}, _ = l;
|
|
2145
2145
|
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ? l = kt(t, e, l) : D.touch && e === "dblclick" ? l = ai(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) {
|
|
2146
2146
|
b = b || window.event, Rn(t, b) && _(b);
|
|
2147
|
-
}, t.addEventListener(Bn[e], l, !1)) : t.addEventListener(e, _, !1) : t.attachEvent("on" + e, l), t[
|
|
2147
|
+
}, t.addEventListener(Bn[e], l, !1)) : t.addEventListener(e, _, !1) : t.attachEvent("on" + e, l), t[ee] = t[ee] || {}, t[ee][s] = l;
|
|
2148
2148
|
}
|
|
2149
2149
|
function Dn(t, e, i, n, s) {
|
|
2150
2150
|
s = s || e + f(i) + (n ? "_" + f(n) : "");
|
|
2151
|
-
var l = t[
|
|
2151
|
+
var l = t[ee] && t[ee][s];
|
|
2152
2152
|
if (!l)
|
|
2153
2153
|
return this;
|
|
2154
|
-
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ? J(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[
|
|
2154
|
+
!D.touchNative && D.pointer && e.indexOf("touch") === 0 ? J(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[ee][s] = null;
|
|
2155
2155
|
}
|
|
2156
2156
|
function Me(t) {
|
|
2157
2157
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
|
@@ -2177,9 +2177,9 @@ function ll() {
|
|
|
2177
2177
|
}
|
|
2178
2178
|
function vo(t, e) {
|
|
2179
2179
|
if (!e)
|
|
2180
|
-
return new
|
|
2180
|
+
return new G(t.clientX, t.clientY);
|
|
2181
2181
|
var i = En(e), n = i.boundingClientRect;
|
|
2182
|
-
return new
|
|
2182
|
+
return new G(
|
|
2183
2183
|
// offset.left/top values are in page scale (like clientX/Y),
|
|
2184
2184
|
// whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).
|
|
2185
2185
|
(t.clientX - n.left) / i.x - e.clientLeft,
|
|
@@ -2229,7 +2229,7 @@ function ll() {
|
|
|
2229
2229
|
var Bs = {
|
|
2230
2230
|
__proto__: null,
|
|
2231
2231
|
on: q,
|
|
2232
|
-
off:
|
|
2232
|
+
off: ct,
|
|
2233
2233
|
stopPropagation: Me,
|
|
2234
2234
|
disableScrollPropagation: Nn,
|
|
2235
2235
|
disableClickPropagation: pi,
|
|
@@ -2240,8 +2240,8 @@ function ll() {
|
|
|
2240
2240
|
getWheelDelta: yo,
|
|
2241
2241
|
isExternalTarget: Rn,
|
|
2242
2242
|
addListener: q,
|
|
2243
|
-
removeListener:
|
|
2244
|
-
}, bo =
|
|
2243
|
+
removeListener: ct
|
|
2244
|
+
}, bo = re.extend({
|
|
2245
2245
|
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
|
|
2246
2246
|
// Run an animation of a given element to a new position, optionally setting
|
|
2247
2247
|
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
|
|
@@ -2256,7 +2256,7 @@ function ll() {
|
|
|
2256
2256
|
this._inProgress && (this._step(!0), this._complete());
|
|
2257
2257
|
},
|
|
2258
2258
|
_animate: function() {
|
|
2259
|
-
this._animId =
|
|
2259
|
+
this._animId = ut(this._animate, this), this._step();
|
|
2260
2260
|
},
|
|
2261
2261
|
_step: function(t) {
|
|
2262
2262
|
var e = +/* @__PURE__ */ new Date() - this._startTime, i = this._duration * 1e3;
|
|
@@ -2272,7 +2272,7 @@ function ll() {
|
|
|
2272
2272
|
_easeOut: function(t) {
|
|
2273
2273
|
return 1 - Math.pow(1 - t, this._easeOutPower);
|
|
2274
2274
|
}
|
|
2275
|
-
}), it =
|
|
2275
|
+
}), it = re.extend({
|
|
2276
2276
|
options: {
|
|
2277
2277
|
// @section Map State Options
|
|
2278
2278
|
// @option crs: CRS = L.CRS.EPSG3857
|
|
@@ -2350,7 +2350,7 @@ function ll() {
|
|
|
2350
2350
|
trackResize: !0
|
|
2351
2351
|
},
|
|
2352
2352
|
initialize: function(t, e) {
|
|
2353
|
-
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 =
|
|
2353
|
+
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 = le && D.any3d && !D.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), q(this._proxy, ui, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
2354
2354
|
},
|
|
2355
2355
|
// @section Methods for modifying map state
|
|
2356
2356
|
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
|
|
@@ -2387,11 +2387,11 @@ function ll() {
|
|
|
2387
2387
|
// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
|
|
2388
2388
|
// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
|
|
2389
2389
|
setZoomAround: function(t, e, i) {
|
|
2390
|
-
var n = this.getZoomScale(e), s = this.getSize().divideBy(2), l = t instanceof
|
|
2390
|
+
var n = this.getZoomScale(e), s = this.getSize().divideBy(2), l = t instanceof G ? t : this.latLngToContainerPoint(t), _ = l.subtract(s).multiplyBy(1 - 1 / n), b = this.containerPointToLatLng(s.add(_));
|
|
2391
2391
|
return this.setView(b, e, { zoom: i });
|
|
2392
2392
|
},
|
|
2393
2393
|
_getBoundsCenterZoom: function(t, e) {
|
|
2394
|
-
e = e || {}, t = t.getBounds ? t.getBounds() :
|
|
2394
|
+
e = e || {}, t = t.getBounds ? t.getBounds() : pt(t);
|
|
2395
2395
|
var i = N(e.paddingTopLeft || e.padding || [0, 0]), n = N(e.paddingBottomRight || e.padding || [0, 0]), s = this.getBoundsZoom(t, !1, i.add(n));
|
|
2396
2396
|
if (s = typeof e.maxZoom == "number" ? Math.min(e.maxZoom, s) : s, s === 1 / 0)
|
|
2397
2397
|
return {
|
|
@@ -2408,7 +2408,7 @@ function ll() {
|
|
|
2408
2408
|
// Sets a map view that contains the given geographical bounds with the
|
|
2409
2409
|
// maximum zoom level possible.
|
|
2410
2410
|
fitBounds: function(t, e) {
|
|
2411
|
-
if (t =
|
|
2411
|
+
if (t = pt(t), !t.isValid())
|
|
2412
2412
|
throw new Error("Bounds are not valid.");
|
|
2413
2413
|
var i = this._getBoundsCenterZoom(t, e);
|
|
2414
2414
|
return this.setView(i.center, i.zoom, e);
|
|
@@ -2451,9 +2451,9 @@ function ll() {
|
|
|
2451
2451
|
this._stop();
|
|
2452
2452
|
var n = this.project(this.getCenter()), s = this.project(t), l = this.getSize(), _ = this._zoom;
|
|
2453
2453
|
t = X(t), e = e === void 0 ? _ : e;
|
|
2454
|
-
var b = Math.max(l.x, l.y), C = b * this.getZoomScale(_, e), M = s.distanceTo(n) || 1,
|
|
2454
|
+
var b = Math.max(l.x, l.y), C = b * this.getZoomScale(_, e), M = s.distanceTo(n) || 1, z = 1.42, F = z * z;
|
|
2455
2455
|
function Q(Pt) {
|
|
2456
|
-
var rn = Pt ? -1 : 1, wr = Pt ? C : b, Pr = C * C - b * b + rn *
|
|
2456
|
+
var rn = Pt ? -1 : 1, wr = Pt ? C : b, Pr = C * C - b * b + rn * F * F * M * M, Cr = 2 * wr * F * M, Kn = Pr / Cr, ts = Math.sqrt(Kn * Kn + 1) - Kn, Tr = ts < 1e-9 ? -18 : Math.log(ts);
|
|
2457
2457
|
return Tr;
|
|
2458
2458
|
}
|
|
2459
2459
|
function Bt(Pt) {
|
|
@@ -2462,23 +2462,23 @@ function ll() {
|
|
|
2462
2462
|
function At(Pt) {
|
|
2463
2463
|
return (Math.exp(Pt) + Math.exp(-Pt)) / 2;
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function Ut(Pt) {
|
|
2466
2466
|
return Bt(Pt) / At(Pt);
|
|
2467
2467
|
}
|
|
2468
|
-
var
|
|
2468
|
+
var Ht = Q(0);
|
|
2469
2469
|
function $e(Pt) {
|
|
2470
|
-
return b * (At(
|
|
2470
|
+
return b * (At(Ht) / At(Ht + z * Pt));
|
|
2471
2471
|
}
|
|
2472
2472
|
function yr(Pt) {
|
|
2473
|
-
return b * (At(
|
|
2473
|
+
return b * (At(Ht) * Ut(Ht + z * Pt) - Bt(Ht)) / F;
|
|
2474
2474
|
}
|
|
2475
2475
|
function br(Pt) {
|
|
2476
2476
|
return 1 - Math.pow(1 - Pt, 1.5);
|
|
2477
2477
|
}
|
|
2478
|
-
var Lr = Date.now(), Jo = (Q(1) -
|
|
2478
|
+
var Lr = Date.now(), Jo = (Q(1) - Ht) / z, kr = i.duration ? 1e3 * i.duration : 1e3 * Jo * 0.8;
|
|
2479
2479
|
function Qo() {
|
|
2480
2480
|
var Pt = (Date.now() - Lr) / kr, rn = br(Pt) * Jo;
|
|
2481
|
-
Pt <= 1 ? (this._flyToFrame =
|
|
2481
|
+
Pt <= 1 ? (this._flyToFrame = ut(Qo, this), this._move(
|
|
2482
2482
|
this.unproject(n.add(s.subtract(n).multiplyBy(yr(rn) / M)), _),
|
|
2483
2483
|
this.getScaleZoom(b / $e(rn), _),
|
|
2484
2484
|
{ flyTo: !0 }
|
|
@@ -2496,7 +2496,7 @@ function ll() {
|
|
|
2496
2496
|
// @method setMaxBounds(bounds: LatLngBounds): this
|
|
2497
2497
|
// Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).
|
|
2498
2498
|
setMaxBounds: function(t) {
|
|
2499
|
-
return t =
|
|
2499
|
+
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);
|
|
2500
2500
|
},
|
|
2501
2501
|
// @method setMinZoom(zoom: Number): this
|
|
2502
2502
|
// Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).
|
|
@@ -2514,7 +2514,7 @@ function ll() {
|
|
|
2514
2514
|
// 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.
|
|
2515
2515
|
panInsideBounds: function(t, e) {
|
|
2516
2516
|
this._enforcingBounds = !0;
|
|
2517
|
-
var i = this.getCenter(), n = this._limitCenter(i, this._zoom,
|
|
2517
|
+
var i = this.getCenter(), n = this._limitCenter(i, this._zoom, pt(t));
|
|
2518
2518
|
return i.equals(n) || this.panTo(n, e), this._enforcingBounds = !1, this;
|
|
2519
2519
|
},
|
|
2520
2520
|
// @method panInside(latlng: LatLng, options?: padding options): this
|
|
@@ -2527,8 +2527,8 @@ function ll() {
|
|
|
2527
2527
|
var i = N(e.paddingTopLeft || e.padding || [0, 0]), n = N(e.paddingBottomRight || e.padding || [0, 0]), s = this.project(this.getCenter()), l = this.project(t), _ = this.getPixelBounds(), b = Lt([_.min.add(i), _.max.subtract(n)]), C = b.getSize();
|
|
2528
2528
|
if (!b.contains(l)) {
|
|
2529
2529
|
this._enforcingBounds = !0;
|
|
2530
|
-
var M = l.subtract(b.getCenter()),
|
|
2531
|
-
s.x += M.x < 0 ? -
|
|
2530
|
+
var M = l.subtract(b.getCenter()), z = b.extend(l).getSize().subtract(C);
|
|
2531
|
+
s.x += M.x < 0 ? -z.x : z.x, s.y += M.y < 0 ? -z.y : z.y, this.panTo(this.unproject(s), e), this._enforcingBounds = !1;
|
|
2532
2532
|
}
|
|
2533
2533
|
return this;
|
|
2534
2534
|
},
|
|
@@ -2643,12 +2643,12 @@ function ll() {
|
|
|
2643
2643
|
} catch {
|
|
2644
2644
|
this._container._leaflet_id = void 0, this._containerId = void 0;
|
|
2645
2645
|
}
|
|
2646
|
-
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(),
|
|
2646
|
+
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), vt(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (j(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
|
|
2647
2647
|
var t;
|
|
2648
2648
|
for (t in this._layers)
|
|
2649
2649
|
this._layers[t].remove();
|
|
2650
2650
|
for (t in this._panes)
|
|
2651
|
-
|
|
2651
|
+
vt(this._panes[t]);
|
|
2652
2652
|
return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer, this;
|
|
2653
2653
|
},
|
|
2654
2654
|
// @section Other Methods
|
|
@@ -2675,7 +2675,7 @@ function ll() {
|
|
|
2675
2675
|
// Returns the geographical bounds visible in the current map view
|
|
2676
2676
|
getBounds: function() {
|
|
2677
2677
|
var t = this.getPixelBounds(), e = this.unproject(t.getBottomLeft()), i = this.unproject(t.getTopRight());
|
|
2678
|
-
return new
|
|
2678
|
+
return new ot(e, i);
|
|
2679
2679
|
},
|
|
2680
2680
|
// @method getMinZoom(): Number
|
|
2681
2681
|
// Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.
|
|
@@ -2693,14 +2693,14 @@ function ll() {
|
|
|
2693
2693
|
// instead returns the minimum zoom level on which the map view fits into
|
|
2694
2694
|
// the given bounds in its entirety.
|
|
2695
2695
|
getBoundsZoom: function(t, e, i) {
|
|
2696
|
-
t =
|
|
2697
|
-
var n = this.getZoom() || 0, s = this.getMinZoom(), l = this.getMaxZoom(), _ = t.getNorthWest(), b = t.getSouthEast(), C = this.getSize().subtract(i), M = Lt(this.project(b, n), this.project(_, n)).getSize(),
|
|
2698
|
-
return n = this.getScaleZoom(Bt, n),
|
|
2696
|
+
t = pt(t), i = N(i || [0, 0]);
|
|
2697
|
+
var n = this.getZoom() || 0, s = this.getMinZoom(), l = this.getMaxZoom(), _ = t.getNorthWest(), b = t.getSouthEast(), C = this.getSize().subtract(i), M = Lt(this.project(b, n), this.project(_, n)).getSize(), z = D.any3d ? this.options.zoomSnap : 1, F = C.x / M.x, Q = C.y / M.y, Bt = e ? Math.max(F, Q) : Math.min(F, Q);
|
|
2698
|
+
return n = this.getScaleZoom(Bt, n), z && (n = Math.round(n / (z / 100)) * (z / 100), n = e ? Math.ceil(n / z) * z : Math.floor(n / z) * z), Math.max(s, Math.min(l, n));
|
|
2699
2699
|
},
|
|
2700
2700
|
// @method getSize(): Point
|
|
2701
2701
|
// Returns the current size of the map container (in pixels).
|
|
2702
2702
|
getSize: function() {
|
|
2703
|
-
return (!this._size || this._sizeChanged) && (this._size = new
|
|
2703
|
+
return (!this._size || this._sizeChanged) && (this._size = new G(
|
|
2704
2704
|
this._container.clientWidth || 0,
|
|
2705
2705
|
this._container.clientHeight || 0
|
|
2706
2706
|
), this._sizeChanged = !1), this._size.clone();
|
|
@@ -2805,7 +2805,7 @@ function ll() {
|
|
|
2805
2805
|
// value is between -180 and +180 degrees, and the majority of the bounds
|
|
2806
2806
|
// overlaps the CRS's bounds.
|
|
2807
2807
|
wrapLatLngBounds: function(t) {
|
|
2808
|
-
return this.options.crs.wrapLatLngBounds(
|
|
2808
|
+
return this.options.crs.wrapLatLngBounds(pt(t));
|
|
2809
2809
|
},
|
|
2810
2810
|
// @method distance(latlng1: LatLng, latlng2: LatLng): Number
|
|
2811
2811
|
// Returns the distance between two geographical coordinates according to
|
|
@@ -2873,12 +2873,12 @@ function ll() {
|
|
|
2873
2873
|
},
|
|
2874
2874
|
_initPanes: function() {
|
|
2875
2875
|
var t = this._panes = {};
|
|
2876
|
-
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), wt(this._mapPane, new
|
|
2876
|
+
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), wt(this._mapPane, new G(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (Y(t.markerPane, "leaflet-zoom-hide"), Y(t.shadowPane, "leaflet-zoom-hide"));
|
|
2877
2877
|
},
|
|
2878
2878
|
// private methods that modify map state
|
|
2879
2879
|
// @section Map state change events
|
|
2880
2880
|
_resetView: function(t, e, i) {
|
|
2881
|
-
wt(this._mapPane, new
|
|
2881
|
+
wt(this._mapPane, new G(0, 0));
|
|
2882
2882
|
var n = !this._loaded;
|
|
2883
2883
|
this._loaded = !0, e = this._limitZoom(e), this.fire("viewprereset");
|
|
2884
2884
|
var s = this._zoom !== e;
|
|
@@ -2915,11 +2915,11 @@ function ll() {
|
|
|
2915
2915
|
// @section Interaction events
|
|
2916
2916
|
_initEvents: function(t) {
|
|
2917
2917
|
this._targets = {}, this._targets[f(this._container)] = this;
|
|
2918
|
-
var e = t ?
|
|
2918
|
+
var e = t ? ct : q;
|
|
2919
2919
|
e(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && e(window, "resize", this._onResize, this), D.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
|
|
2920
2920
|
},
|
|
2921
2921
|
_onResize: function() {
|
|
2922
|
-
j(this._resizeRequest), this._resizeRequest =
|
|
2922
|
+
j(this._resizeRequest), this._resizeRequest = ut(
|
|
2923
2923
|
function() {
|
|
2924
2924
|
this.invalidateSize({ debounceMoveend: !0 });
|
|
2925
2925
|
},
|
|
@@ -3002,7 +3002,7 @@ function ll() {
|
|
|
3002
3002
|
},
|
|
3003
3003
|
// private methods for getting map state
|
|
3004
3004
|
_getMapPanePos: function() {
|
|
3005
|
-
return xe(this._mapPane) || new
|
|
3005
|
+
return xe(this._mapPane) || new G(0, 0);
|
|
3006
3006
|
},
|
|
3007
3007
|
_moved: function() {
|
|
3008
3008
|
var t = this._getMapPanePos();
|
|
@@ -3057,7 +3057,7 @@ function ll() {
|
|
|
3057
3057
|
this.project(e.getNorthEast(), i),
|
|
3058
3058
|
this.project(e.getSouthWest(), i)
|
|
3059
3059
|
), 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);
|
|
3060
|
-
return new
|
|
3060
|
+
return new G(_, b);
|
|
3061
3061
|
},
|
|
3062
3062
|
_rebound: function(t, e) {
|
|
3063
3063
|
return t + e > 0 ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e));
|
|
@@ -3084,7 +3084,7 @@ function ll() {
|
|
|
3084
3084
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
|
3085
3085
|
},
|
|
3086
3086
|
_destroyAnimProxy: function() {
|
|
3087
|
-
|
|
3087
|
+
vt(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy;
|
|
3088
3088
|
},
|
|
3089
3089
|
_animMoveEnd: function() {
|
|
3090
3090
|
var t = this.getCenter(), e = this.getZoom();
|
|
@@ -3102,7 +3102,7 @@ function ll() {
|
|
|
3102
3102
|
if (i = i || {}, !this._zoomAnimated || i.animate === !1 || this._nothingToAnimate() || Math.abs(e - this._zoom) > this.options.zoomAnimationThreshold)
|
|
3103
3103
|
return !1;
|
|
3104
3104
|
var n = this.getZoomScale(e), s = this._getCenterOffset(t)._divideBy(1 - 1 / n);
|
|
3105
|
-
return i.animate !== !0 && !this.getSize().contains(s) ? !1 : (
|
|
3105
|
+
return i.animate !== !0 && !this.getSize().contains(s) ? !1 : (ut(function() {
|
|
3106
3106
|
this._moveStart(!0, i.noMoveStart || !1)._animateZoom(t, e, !0);
|
|
3107
3107
|
}, this), !0);
|
|
3108
3108
|
},
|
|
@@ -3120,7 +3120,7 @@ function ll() {
|
|
|
3120
3120
|
function Zs(t, e) {
|
|
3121
3121
|
return new it(t, e);
|
|
3122
3122
|
}
|
|
3123
|
-
var
|
|
3123
|
+
var Xt = ht.extend({
|
|
3124
3124
|
// @section
|
|
3125
3125
|
// @aka Control Options
|
|
3126
3126
|
options: {
|
|
@@ -3162,13 +3162,13 @@ function ll() {
|
|
|
3162
3162
|
// @method remove: this
|
|
3163
3163
|
// Removes the control from the map it is currently active on.
|
|
3164
3164
|
remove: function() {
|
|
3165
|
-
return this._map ? (
|
|
3165
|
+
return this._map ? (vt(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this;
|
|
3166
3166
|
},
|
|
3167
3167
|
_refocusOnMap: function(t) {
|
|
3168
3168
|
this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
|
|
3169
3169
|
}
|
|
3170
3170
|
}), _i = function(t) {
|
|
3171
|
-
return new
|
|
3171
|
+
return new Xt(t);
|
|
3172
3172
|
};
|
|
3173
3173
|
it.include({
|
|
3174
3174
|
// @method addControl(control: Control): this
|
|
@@ -3191,11 +3191,11 @@ function ll() {
|
|
|
3191
3191
|
},
|
|
3192
3192
|
_clearControlPos: function() {
|
|
3193
3193
|
for (var t in this._controlCorners)
|
|
3194
|
-
|
|
3195
|
-
|
|
3194
|
+
vt(this._controlCorners[t]);
|
|
3195
|
+
vt(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
3196
3196
|
}
|
|
3197
3197
|
});
|
|
3198
|
-
var Lo =
|
|
3198
|
+
var Lo = Xt.extend({
|
|
3199
3199
|
// @section
|
|
3200
3200
|
// @aka Control.Layers options
|
|
3201
3201
|
options: {
|
|
@@ -3237,7 +3237,7 @@ function ll() {
|
|
|
3237
3237
|
return this._container;
|
|
3238
3238
|
},
|
|
3239
3239
|
addTo: function(t) {
|
|
3240
|
-
return
|
|
3240
|
+
return Xt.prototype.addTo.call(this, t), this._expandIfNotCollapsed();
|
|
3241
3241
|
},
|
|
3242
3242
|
onRemove: function() {
|
|
3243
3243
|
this._map.off("zoomend", this._checkDisabledLayers, this);
|
|
@@ -3360,12 +3360,12 @@ function ll() {
|
|
|
3360
3360
|
this._preventClick = !0, q(t, "click", Ot), this.expand();
|
|
3361
3361
|
var e = this;
|
|
3362
3362
|
setTimeout(function() {
|
|
3363
|
-
|
|
3363
|
+
ct(t, "click", Ot), e._preventClick = !1;
|
|
3364
3364
|
});
|
|
3365
3365
|
}
|
|
3366
3366
|
}), Ds = function(t, e, i) {
|
|
3367
3367
|
return new Lo(t, e, i);
|
|
3368
|
-
}, Hn =
|
|
3368
|
+
}, Hn = Xt.extend({
|
|
3369
3369
|
// @section
|
|
3370
3370
|
// @aka Control.Zoom options
|
|
3371
3371
|
options: {
|
|
@@ -3430,7 +3430,7 @@ function ll() {
|
|
|
3430
3430
|
});
|
|
3431
3431
|
var Ns = function(t) {
|
|
3432
3432
|
return new Hn(t);
|
|
3433
|
-
}, ko =
|
|
3433
|
+
}, ko = Xt.extend({
|
|
3434
3434
|
// @section
|
|
3435
3435
|
// @aka Control.Scale options
|
|
3436
3436
|
options: {
|
|
@@ -3484,7 +3484,7 @@ function ll() {
|
|
|
3484
3484
|
}
|
|
3485
3485
|
}), Rs = function(t) {
|
|
3486
3486
|
return new ko(t);
|
|
3487
|
-
}, 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 =
|
|
3487
|
+
}, 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 = Xt.extend({
|
|
3488
3488
|
// @section
|
|
3489
3489
|
// @aka Control.Attribution options
|
|
3490
3490
|
options: {
|
|
@@ -3543,8 +3543,8 @@ function ll() {
|
|
|
3543
3543
|
var Vs = function(t) {
|
|
3544
3544
|
return new Vn(t);
|
|
3545
3545
|
};
|
|
3546
|
-
|
|
3547
|
-
var
|
|
3546
|
+
Xt.Layers = Lo, Xt.Zoom = Hn, Xt.Scale = ko, Xt.Attribution = Vn, _i.layers = Ds, _i.zoom = Ns, _i.scale = Rs, _i.attribution = Vs;
|
|
3547
|
+
var ie = ht.extend({
|
|
3548
3548
|
initialize: function(t) {
|
|
3549
3549
|
this._map = t;
|
|
3550
3550
|
},
|
|
@@ -3570,10 +3570,10 @@ function ll() {
|
|
|
3570
3570
|
// @method removeHooks()
|
|
3571
3571
|
// Called when the handler is disabled, should remove the event hooks added previously.
|
|
3572
3572
|
});
|
|
3573
|
-
|
|
3573
|
+
ie.addTo = function(t, e) {
|
|
3574
3574
|
return t.addHandler(e, this), this;
|
|
3575
3575
|
};
|
|
3576
|
-
var Fs = { Events:
|
|
3576
|
+
var Fs = { Events: gt }, wo = D.touch ? "touchstart mousedown" : "mousedown", ve = re.extend({
|
|
3577
3577
|
options: {
|
|
3578
3578
|
// @section
|
|
3579
3579
|
// @aka Draggable options
|
|
@@ -3595,18 +3595,18 @@ function ll() {
|
|
|
3595
3595
|
// @method disable()
|
|
3596
3596
|
// Disables the dragging ability
|
|
3597
3597
|
disable: function() {
|
|
3598
|
-
this._enabled && (
|
|
3598
|
+
this._enabled && (ve._dragging === this && this.finishDrag(!0), ct(this._dragStartTarget, wo, this._onDown, this), this._enabled = !1, this._moved = !1);
|
|
3599
3599
|
},
|
|
3600
3600
|
_onDown: function(t) {
|
|
3601
3601
|
if (this._enabled && (this._moved = !1, !xn(this._element, "leaflet-zoom-anim"))) {
|
|
3602
3602
|
if (t.touches && t.touches.length !== 1) {
|
|
3603
|
-
|
|
3603
|
+
ve._dragging === this && this.finishDrag();
|
|
3604
3604
|
return;
|
|
3605
3605
|
}
|
|
3606
|
-
if (!(
|
|
3606
|
+
if (!(ve._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (ve._dragging = this, this._preventOutline && zn(this._element), An(), di(), !this._moving)) {
|
|
3607
3607
|
this.fire("down");
|
|
3608
3608
|
var e = t.touches ? t.touches[0] : t, i = _o(this._element);
|
|
3609
|
-
this._startPoint = new
|
|
3609
|
+
this._startPoint = new G(e.clientX, e.clientY), this._startPos = xe(this._element), this._parentScale = En(i);
|
|
3610
3610
|
var n = t.type === "mousedown";
|
|
3611
3611
|
q(document, n ? "mousemove" : "touchmove", this._onMove, this), q(document, n ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
|
3612
3612
|
}
|
|
@@ -3618,7 +3618,7 @@ function ll() {
|
|
|
3618
3618
|
this._moved = !0;
|
|
3619
3619
|
return;
|
|
3620
3620
|
}
|
|
3621
|
-
var e = t.touches && t.touches.length === 1 ? t.touches[0] : t, i = new
|
|
3621
|
+
var e = t.touches && t.touches.length === 1 ? t.touches[0] : t, i = new G(e.clientX, e.clientY)._subtract(this._startPoint);
|
|
3622
3622
|
!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, Ot(t), this._moved || (this.fire("dragstart"), this._moved = !0, Y(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), Y(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(i), this._moving = !0, this._lastEvent = t, this._updatePosition());
|
|
3623
3623
|
}
|
|
3624
3624
|
},
|
|
@@ -3630,42 +3630,42 @@ function ll() {
|
|
|
3630
3630
|
this._enabled && this.finishDrag();
|
|
3631
3631
|
},
|
|
3632
3632
|
finishDrag: function(t) {
|
|
3633
|
-
bt(document.body, "leaflet-dragging"), this._lastTarget && (bt(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null),
|
|
3633
|
+
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();
|
|
3634
3634
|
var e = this._moved && this._moving;
|
|
3635
|
-
this._moving = !1,
|
|
3635
|
+
this._moving = !1, ve._dragging = !1, e && this.fire("dragend", {
|
|
3636
3636
|
noInertia: t,
|
|
3637
3637
|
distance: this._newPos.distanceTo(this._startPos)
|
|
3638
3638
|
});
|
|
3639
3639
|
}
|
|
3640
3640
|
});
|
|
3641
3641
|
function Po(t, e, i) {
|
|
3642
|
-
var n, s = [1, 4, 2, 8], l, _, b, C, M,
|
|
3643
|
-
for (l = 0,
|
|
3642
|
+
var n, s = [1, 4, 2, 8], l, _, b, C, M, z, F, Q;
|
|
3643
|
+
for (l = 0, z = t.length; l < z; l++)
|
|
3644
3644
|
t[l]._code = Ae(t[l], e);
|
|
3645
3645
|
for (b = 0; b < 4; b++) {
|
|
3646
|
-
for (
|
|
3647
|
-
C = t[l], M = t[_], C._code &
|
|
3646
|
+
for (F = s[b], n = [], l = 0, z = t.length, _ = z - 1; l < z; _ = l++)
|
|
3647
|
+
C = t[l], M = t[_], C._code & F ? M._code & F || (Q = ji(M, C, F, e, i), Q._code = Ae(Q, e), n.push(Q)) : (M._code & F && (Q = ji(M, C, F, e, i), Q._code = Ae(Q, e), n.push(Q)), n.push(C));
|
|
3648
3648
|
t = n;
|
|
3649
3649
|
}
|
|
3650
3650
|
return t;
|
|
3651
3651
|
}
|
|
3652
3652
|
function Co(t, e) {
|
|
3653
|
-
var i, n, s, l, _, b, C, M,
|
|
3653
|
+
var i, n, s, l, _, b, C, M, z;
|
|
3654
3654
|
if (!t || t.length === 0)
|
|
3655
3655
|
throw new Error("latlngs not passed");
|
|
3656
|
-
|
|
3657
|
-
var
|
|
3658
|
-
Bt < 1700 && (
|
|
3659
|
-
var At = t.length,
|
|
3656
|
+
Gt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
3657
|
+
var F = X([0, 0]), Q = pt(t), Bt = Q.getNorthWest().distanceTo(Q.getSouthWest()) * Q.getNorthEast().distanceTo(Q.getNorthWest());
|
|
3658
|
+
Bt < 1700 && (F = Fn(t));
|
|
3659
|
+
var At = t.length, Ut = [];
|
|
3660
3660
|
for (i = 0; i < At; i++) {
|
|
3661
|
-
var
|
|
3662
|
-
|
|
3661
|
+
var Ht = X(t[i]);
|
|
3662
|
+
Ut.push(e.project(X([Ht.lat - F.lat, Ht.lng - F.lng])));
|
|
3663
3663
|
}
|
|
3664
3664
|
for (b = C = M = 0, i = 0, n = At - 1; i < At; n = i++)
|
|
3665
|
-
s =
|
|
3666
|
-
b === 0 ?
|
|
3667
|
-
var $e = e.unproject(N(
|
|
3668
|
-
return X([$e.lat +
|
|
3665
|
+
s = Ut[i], l = Ut[n], _ = s.y * l.x - l.y * s.x, C += (s.x + l.x) * _, M += (s.y + l.y) * _, b += _ * 3;
|
|
3666
|
+
b === 0 ? z = Ut[0] : z = [C / b, M / b];
|
|
3667
|
+
var $e = e.unproject(N(z));
|
|
3668
|
+
return X([$e.lat + F.lat, $e.lng + F.lng]);
|
|
3669
3669
|
}
|
|
3670
3670
|
function Fn(t) {
|
|
3671
3671
|
for (var e = 0, i = 0, n = 0, s = 0; s < t.length; s++) {
|
|
@@ -3723,8 +3723,8 @@ function ll() {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
}
|
|
3725
3725
|
function ji(t, e, i, n, s) {
|
|
3726
|
-
var l = e.x - t.x, _ = e.y - t.y, b = n.min, C = n.max, M,
|
|
3727
|
-
return i & 8 ? (M = t.x + l * (C.y - t.y) / _,
|
|
3726
|
+
var l = e.x - t.x, _ = e.y - t.y, b = n.min, C = n.max, M, z;
|
|
3727
|
+
return i & 8 ? (M = t.x + l * (C.y - t.y) / _, z = C.y) : i & 4 ? (M = t.x + l * (b.y - t.y) / _, z = b.y) : i & 2 ? (M = C.x, z = t.y + _ * (C.x - t.x) / l) : i & 1 && (M = b.x, z = t.y + _ * (b.x - t.x) / l), new G(M, z, s);
|
|
3728
3728
|
}
|
|
3729
3729
|
function Ae(t, e) {
|
|
3730
3730
|
var i = 0;
|
|
@@ -3736,25 +3736,25 @@ function ll() {
|
|
|
3736
3736
|
}
|
|
3737
3737
|
function mi(t, e, i, n) {
|
|
3738
3738
|
var s = e.x, l = e.y, _ = i.x - s, b = i.y - l, C = _ * _ + b * b, M;
|
|
3739
|
-
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
|
|
3739
|
+
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 G(s, l);
|
|
3740
3740
|
}
|
|
3741
|
-
function
|
|
3741
|
+
function Gt(t) {
|
|
3742
3742
|
return !W(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
|
3743
3743
|
}
|
|
3744
3744
|
function Ao(t) {
|
|
3745
|
-
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),
|
|
3745
|
+
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), Gt(t);
|
|
3746
3746
|
}
|
|
3747
3747
|
function Io(t, e) {
|
|
3748
3748
|
var i, n, s, l, _, b, C, M;
|
|
3749
3749
|
if (!t || t.length === 0)
|
|
3750
3750
|
throw new Error("latlngs not passed");
|
|
3751
|
-
|
|
3752
|
-
var
|
|
3753
|
-
Q < 1700 && (
|
|
3751
|
+
Gt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
3752
|
+
var z = X([0, 0]), F = pt(t), Q = F.getNorthWest().distanceTo(F.getSouthWest()) * F.getNorthEast().distanceTo(F.getNorthWest());
|
|
3753
|
+
Q < 1700 && (z = Fn(t));
|
|
3754
3754
|
var Bt = t.length, At = [];
|
|
3755
3755
|
for (i = 0; i < Bt; i++) {
|
|
3756
|
-
var
|
|
3757
|
-
At.push(e.project(X([
|
|
3756
|
+
var Ut = X(t[i]);
|
|
3757
|
+
At.push(e.project(X([Ut.lat - z.lat, Ut.lng - z.lng])));
|
|
3758
3758
|
}
|
|
3759
3759
|
for (i = 0, n = 0; i < Bt - 1; i++)
|
|
3760
3760
|
n += At[i].distanceTo(At[i + 1]) / 2;
|
|
@@ -3769,8 +3769,8 @@ function ll() {
|
|
|
3769
3769
|
];
|
|
3770
3770
|
break;
|
|
3771
3771
|
}
|
|
3772
|
-
var
|
|
3773
|
-
return X([
|
|
3772
|
+
var Ht = e.unproject(N(M));
|
|
3773
|
+
return X([Ht.lat + z.lat, Ht.lng + z.lng]);
|
|
3774
3774
|
}
|
|
3775
3775
|
var js = {
|
|
3776
3776
|
__proto__: null,
|
|
@@ -3781,12 +3781,12 @@ function ll() {
|
|
|
3781
3781
|
_getEdgeIntersection: ji,
|
|
3782
3782
|
_getBitCode: Ae,
|
|
3783
3783
|
_sqClosestPointOnSegment: mi,
|
|
3784
|
-
isFlat:
|
|
3784
|
+
isFlat: Gt,
|
|
3785
3785
|
_flat: Ao,
|
|
3786
3786
|
polylineCenter: Io
|
|
3787
3787
|
}, Un = {
|
|
3788
3788
|
project: function(t) {
|
|
3789
|
-
return new
|
|
3789
|
+
return new G(t.lng, t.lat);
|
|
3790
3790
|
},
|
|
3791
3791
|
unproject: function(t) {
|
|
3792
3792
|
return new et(t.y, t.x);
|
|
@@ -3798,7 +3798,7 @@ function ll() {
|
|
|
3798
3798
|
bounds: new K([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
3799
3799
|
project: function(t) {
|
|
3800
3800
|
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);
|
|
3801
|
-
return n = -i * Math.log(Math.max(b, 1e-10)), new
|
|
3801
|
+
return n = -i * Math.log(Math.max(b, 1e-10)), new G(t.lng * e * i, n);
|
|
3802
3802
|
},
|
|
3803
3803
|
unproject: function(t) {
|
|
3804
3804
|
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++)
|
|
@@ -3809,7 +3809,7 @@ function ll() {
|
|
|
3809
3809
|
__proto__: null,
|
|
3810
3810
|
LonLat: Un,
|
|
3811
3811
|
Mercator: $n,
|
|
3812
|
-
SphericalMercator:
|
|
3812
|
+
SphericalMercator: Yt
|
|
3813
3813
|
}, Ks = v({}, yt, {
|
|
3814
3814
|
code: "EPSG:3395",
|
|
3815
3815
|
projection: $n,
|
|
@@ -3821,7 +3821,7 @@ function ll() {
|
|
|
3821
3821
|
code: "EPSG:4326",
|
|
3822
3822
|
projection: Un,
|
|
3823
3823
|
transformation: we(1 / 180, 1, -1 / 180, 0.5)
|
|
3824
|
-
}), Xs = v({},
|
|
3824
|
+
}), Xs = v({}, Nt, {
|
|
3825
3825
|
projection: Un,
|
|
3826
3826
|
transformation: we(1, 0, -1, 0),
|
|
3827
3827
|
scale: function(t) {
|
|
@@ -3836,8 +3836,8 @@ function ll() {
|
|
|
3836
3836
|
},
|
|
3837
3837
|
infinite: !0
|
|
3838
3838
|
});
|
|
3839
|
-
|
|
3840
|
-
var
|
|
3839
|
+
Nt.Earth = yt, Nt.EPSG3395 = Ks, Nt.EPSG3857 = je, Nt.EPSG900913 = pn, Nt.EPSG4326 = Oo, Nt.Simple = Xs;
|
|
3840
|
+
var Jt = re.extend({
|
|
3841
3841
|
// Classes extending `L.Layer` will inherit the following options:
|
|
3842
3842
|
options: {
|
|
3843
3843
|
// @option pane: String = 'overlayPane'
|
|
@@ -3954,7 +3954,7 @@ function ll() {
|
|
|
3954
3954
|
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);
|
|
3955
3955
|
}
|
|
3956
3956
|
});
|
|
3957
|
-
var He =
|
|
3957
|
+
var He = Jt.extend({
|
|
3958
3958
|
initialize: function(t, e) {
|
|
3959
3959
|
x(this, e), this._layers = {};
|
|
3960
3960
|
var i, n;
|
|
@@ -4042,7 +4042,7 @@ function ll() {
|
|
|
4042
4042
|
}
|
|
4043
4043
|
}), Js = function(t, e) {
|
|
4044
4044
|
return new He(t, e);
|
|
4045
|
-
},
|
|
4045
|
+
}, ue = He.extend({
|
|
4046
4046
|
addLayer: function(t) {
|
|
4047
4047
|
return this.hasLayer(t) ? this : (t.addEventParent(this), He.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t }));
|
|
4048
4048
|
},
|
|
@@ -4067,7 +4067,7 @@ function ll() {
|
|
|
4067
4067
|
// @method getBounds(): LatLngBounds
|
|
4068
4068
|
// Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
|
|
4069
4069
|
getBounds: function() {
|
|
4070
|
-
var t = new
|
|
4070
|
+
var t = new ot();
|
|
4071
4071
|
for (var e in this._layers) {
|
|
4072
4072
|
var i = this._layers[e];
|
|
4073
4073
|
t.extend(i.getBounds ? i.getBounds() : i.getLatLng());
|
|
@@ -4075,8 +4075,8 @@ function ll() {
|
|
|
4075
4075
|
return t;
|
|
4076
4076
|
}
|
|
4077
4077
|
}), Qs = function(t, e) {
|
|
4078
|
-
return new
|
|
4079
|
-
}, Ve =
|
|
4078
|
+
return new ue(t, e);
|
|
4079
|
+
}, Ve = ht.extend({
|
|
4080
4080
|
/* @section
|
|
4081
4081
|
* @aka Icon options
|
|
4082
4082
|
*
|
|
@@ -4193,13 +4193,13 @@ function ll() {
|
|
|
4193
4193
|
var i = document.querySelector('link[href$="leaflet.css"]');
|
|
4194
4194
|
return i ? i.href.substring(0, i.href.length - 11 - 1) : "";
|
|
4195
4195
|
}
|
|
4196
|
-
}), zo =
|
|
4196
|
+
}), zo = ie.extend({
|
|
4197
4197
|
initialize: function(t) {
|
|
4198
4198
|
this._marker = t;
|
|
4199
4199
|
},
|
|
4200
4200
|
addHooks: function() {
|
|
4201
4201
|
var t = this._marker._icon;
|
|
4202
|
-
this._draggable || (this._draggable = new
|
|
4202
|
+
this._draggable || (this._draggable = new ve(t, t, !0)), this._draggable.on({
|
|
4203
4203
|
dragstart: this._onDragStart,
|
|
4204
4204
|
predrag: this._onPreDrag,
|
|
4205
4205
|
drag: this._onDrag,
|
|
@@ -4227,14 +4227,14 @@ function ll() {
|
|
|
4227
4227
|
(Math.max(C.max.x, l.x) - C.max.x) / (_.max.x - C.max.x) - (Math.min(C.min.x, l.x) - C.min.x) / (_.min.x - C.min.x),
|
|
4228
4228
|
(Math.max(C.max.y, l.y) - C.max.y) / (_.max.y - C.max.y) - (Math.min(C.min.y, l.y) - C.min.y) / (_.min.y - C.min.y)
|
|
4229
4229
|
).multiplyBy(n);
|
|
4230
|
-
i.panBy(M, { animate: !1 }), this._draggable._newPos._add(M), this._draggable._startPos._add(M), wt(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest =
|
|
4230
|
+
i.panBy(M, { animate: !1 }), this._draggable._newPos._add(M), this._draggable._startPos._add(M), wt(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = ut(this._adjustPan.bind(this, t));
|
|
4231
4231
|
}
|
|
4232
4232
|
},
|
|
4233
4233
|
_onDragStart: function() {
|
|
4234
4234
|
this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup && this._marker.closePopup(), this._marker.fire("movestart").fire("dragstart");
|
|
4235
4235
|
},
|
|
4236
4236
|
_onPreDrag: function(t) {
|
|
4237
|
-
this._marker.options.autoPan && (j(this._panRequest), this._panRequest =
|
|
4237
|
+
this._marker.options.autoPan && (j(this._panRequest), this._panRequest = ut(this._adjustPan.bind(this, t)));
|
|
4238
4238
|
},
|
|
4239
4239
|
_onDrag: function(t) {
|
|
4240
4240
|
var e = this._marker, i = e._shadow, n = xe(e._icon), s = e._map.layerPointToLatLng(n);
|
|
@@ -4243,7 +4243,7 @@ function ll() {
|
|
|
4243
4243
|
_onDragEnd: function(t) {
|
|
4244
4244
|
j(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
|
|
4245
4245
|
}
|
|
4246
|
-
}), Yi =
|
|
4246
|
+
}), Yi = Jt.extend({
|
|
4247
4247
|
// @section
|
|
4248
4248
|
// @aka Marker options
|
|
4249
4249
|
options: {
|
|
@@ -4375,10 +4375,10 @@ function ll() {
|
|
|
4375
4375
|
this.options.riseOnHover && this.off({
|
|
4376
4376
|
mouseover: this._bringToFront,
|
|
4377
4377
|
mouseout: this._resetZIndex
|
|
4378
|
-
}), this.options.autoPanOnFocus &&
|
|
4378
|
+
}), this.options.autoPanOnFocus && ct(this._icon, "focus", this._panOnFocus, this), vt(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null;
|
|
4379
4379
|
},
|
|
4380
4380
|
_removeShadow: function() {
|
|
4381
|
-
this._shadow &&
|
|
4381
|
+
this._shadow && vt(this._shadow), this._shadow = null;
|
|
4382
4382
|
},
|
|
4383
4383
|
_setPos: function(t) {
|
|
4384
4384
|
this._icon && wt(this._icon, t), this._shadow && wt(this._shadow, t), this._zIndex = t.y + this.options.zIndexOffset, this._resetZIndex();
|
|
@@ -4403,7 +4403,7 @@ function ll() {
|
|
|
4403
4403
|
},
|
|
4404
4404
|
_updateOpacity: function() {
|
|
4405
4405
|
var t = this.options.opacity;
|
|
4406
|
-
this._icon &&
|
|
4406
|
+
this._icon && Ft(this._icon, t), this._shadow && Ft(this._shadow, t);
|
|
4407
4407
|
},
|
|
4408
4408
|
_bringToFront: function() {
|
|
4409
4409
|
this._updateZIndex(this.options.riseOffset);
|
|
@@ -4431,7 +4431,7 @@ function ll() {
|
|
|
4431
4431
|
function er(t, e) {
|
|
4432
4432
|
return new Yi(t, e);
|
|
4433
4433
|
}
|
|
4434
|
-
var
|
|
4434
|
+
var ye = Jt.extend({
|
|
4435
4435
|
// @section
|
|
4436
4436
|
// @aka Path options
|
|
4437
4437
|
options: {
|
|
@@ -4517,7 +4517,7 @@ function ll() {
|
|
|
4517
4517
|
_clickTolerance: function() {
|
|
4518
4518
|
return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
|
|
4519
4519
|
}
|
|
4520
|
-
}), Ki =
|
|
4520
|
+
}), Ki = ye.extend({
|
|
4521
4521
|
// @section
|
|
4522
4522
|
// @aka CircleMarker options
|
|
4523
4523
|
options: {
|
|
@@ -4552,7 +4552,7 @@ function ll() {
|
|
|
4552
4552
|
},
|
|
4553
4553
|
setStyle: function(t) {
|
|
4554
4554
|
var e = t && t.radius || this._radius;
|
|
4555
|
-
return
|
|
4555
|
+
return ye.prototype.setStyle.call(this, t), this.setRadius(e), this;
|
|
4556
4556
|
},
|
|
4557
4557
|
_project: function() {
|
|
4558
4558
|
this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds();
|
|
@@ -4598,20 +4598,20 @@ function ll() {
|
|
|
4598
4598
|
// Returns the `LatLngBounds` of the path.
|
|
4599
4599
|
getBounds: function() {
|
|
4600
4600
|
var t = [this._radius, this._radiusY || this._radius];
|
|
4601
|
-
return new
|
|
4601
|
+
return new ot(
|
|
4602
4602
|
this._map.layerPointToLatLng(this._point.subtract(t)),
|
|
4603
4603
|
this._map.layerPointToLatLng(this._point.add(t))
|
|
4604
4604
|
);
|
|
4605
4605
|
},
|
|
4606
|
-
setStyle:
|
|
4606
|
+
setStyle: ye.prototype.setStyle,
|
|
4607
4607
|
_project: function() {
|
|
4608
4608
|
var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
|
|
4609
4609
|
if (n.distance === yt.distance) {
|
|
4610
|
-
var s = Math.PI / 180, l = this._mRadius / yt.R / s, _ = i.project([e + l, t]), b = i.project([e - l, t]), C = _.add(b).divideBy(2), M = i.unproject(C).lat,
|
|
4611
|
-
(isNaN(
|
|
4610
|
+
var s = Math.PI / 180, l = this._mRadius / yt.R / s, _ = i.project([e + l, t]), b = i.project([e - l, t]), C = _.add(b).divideBy(2), M = i.unproject(C).lat, z = Math.acos((Math.cos(l * s) - Math.sin(e * s) * Math.sin(M * s)) / (Math.cos(e * s) * Math.cos(M * s))) / s;
|
|
4611
|
+
(isNaN(z) || z === 0) && (z = l / Math.cos(Math.PI / 180 * e)), this._point = C.subtract(i.getPixelOrigin()), this._radius = isNaN(z) ? 0 : C.x - i.project([M, t - z]).x, this._radiusY = C.y - _.y;
|
|
4612
4612
|
} else {
|
|
4613
|
-
var
|
|
4614
|
-
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(
|
|
4613
|
+
var F = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
|
|
4614
|
+
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(F).x;
|
|
4615
4615
|
}
|
|
4616
4616
|
this._updateBounds();
|
|
4617
4617
|
}
|
|
@@ -4619,7 +4619,7 @@ function ll() {
|
|
|
4619
4619
|
function nr(t, e, i) {
|
|
4620
4620
|
return new Wn(t, e, i);
|
|
4621
4621
|
}
|
|
4622
|
-
var
|
|
4622
|
+
var he = ye.extend({
|
|
4623
4623
|
// @section
|
|
4624
4624
|
// @aka Polyline options
|
|
4625
4625
|
options: {
|
|
@@ -4653,10 +4653,10 @@ function ll() {
|
|
|
4653
4653
|
// Returns the point closest to `p` on the Polyline.
|
|
4654
4654
|
closestLayerPoint: function(t) {
|
|
4655
4655
|
for (var e = 1 / 0, i = null, n = mi, s, l, _ = 0, b = this._parts.length; _ < b; _++)
|
|
4656
|
-
for (var C = this._parts[_], M = 1,
|
|
4656
|
+
for (var C = this._parts[_], M = 1, z = C.length; M < z; M++) {
|
|
4657
4657
|
s = C[M - 1], l = C[M];
|
|
4658
|
-
var
|
|
4659
|
-
|
|
4658
|
+
var F = n(t, s, l, !0);
|
|
4659
|
+
F < e && (e = F, i = n(t, s, l));
|
|
4660
4660
|
}
|
|
4661
4661
|
return i && (i.distance = Math.sqrt(e)), i;
|
|
4662
4662
|
},
|
|
@@ -4680,14 +4680,14 @@ function ll() {
|
|
|
4680
4680
|
return e = e || this._defaultShape(), t = X(t), e.push(t), this._bounds.extend(t), this.redraw();
|
|
4681
4681
|
},
|
|
4682
4682
|
_setLatLngs: function(t) {
|
|
4683
|
-
this._bounds = new
|
|
4683
|
+
this._bounds = new ot(), this._latlngs = this._convertLatLngs(t);
|
|
4684
4684
|
},
|
|
4685
4685
|
_defaultShape: function() {
|
|
4686
|
-
return
|
|
4686
|
+
return Gt(this._latlngs) ? this._latlngs : this._latlngs[0];
|
|
4687
4687
|
},
|
|
4688
4688
|
// recursively convert latlngs input into actual LatLng instances; calculate bounds along the way
|
|
4689
4689
|
_convertLatLngs: function(t) {
|
|
4690
|
-
for (var e = [], i =
|
|
4690
|
+
for (var e = [], i = Gt(t), n = 0, s = t.length; n < s; n++)
|
|
4691
4691
|
i ? (e[n] = X(t[n]), this._bounds.extend(e[n])) : e[n] = this._convertLatLngs(t[n]);
|
|
4692
4692
|
return e;
|
|
4693
4693
|
},
|
|
@@ -4696,7 +4696,7 @@ function ll() {
|
|
|
4696
4696
|
this._rings = [], this._projectLatlngs(this._latlngs, this._rings, t), this._bounds.isValid() && t.isValid() && (this._rawPxBounds = t, this._updateBounds());
|
|
4697
4697
|
},
|
|
4698
4698
|
_updateBounds: function() {
|
|
4699
|
-
var t = this._clickTolerance(), e = new
|
|
4699
|
+
var t = this._clickTolerance(), e = new G(t, t);
|
|
4700
4700
|
this._rawPxBounds && (this._pxBounds = new K([
|
|
4701
4701
|
this._rawPxBounds.min.subtract(e),
|
|
4702
4702
|
this._rawPxBounds.max.add(e)
|
|
@@ -4751,10 +4751,10 @@ function ll() {
|
|
|
4751
4751
|
}
|
|
4752
4752
|
});
|
|
4753
4753
|
function or(t, e) {
|
|
4754
|
-
return new
|
|
4754
|
+
return new he(t, e);
|
|
4755
4755
|
}
|
|
4756
|
-
|
|
4757
|
-
var Fe =
|
|
4756
|
+
he._flat = Ao;
|
|
4757
|
+
var Fe = he.extend({
|
|
4758
4758
|
options: {
|
|
4759
4759
|
fill: !0
|
|
4760
4760
|
},
|
|
@@ -4769,17 +4769,17 @@ function ll() {
|
|
|
4769
4769
|
return Co(this._defaultShape(), this._map.options.crs);
|
|
4770
4770
|
},
|
|
4771
4771
|
_convertLatLngs: function(t) {
|
|
4772
|
-
var e =
|
|
4772
|
+
var e = he.prototype._convertLatLngs.call(this, t), i = e.length;
|
|
4773
4773
|
return i >= 2 && e[0] instanceof et && e[0].equals(e[i - 1]) && e.pop(), e;
|
|
4774
4774
|
},
|
|
4775
4775
|
_setLatLngs: function(t) {
|
|
4776
|
-
|
|
4776
|
+
he.prototype._setLatLngs.call(this, t), Gt(this._latlngs) && (this._latlngs = [this._latlngs]);
|
|
4777
4777
|
},
|
|
4778
4778
|
_defaultShape: function() {
|
|
4779
|
-
return
|
|
4779
|
+
return Gt(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
|
|
4780
4780
|
},
|
|
4781
4781
|
_clipPoints: function() {
|
|
4782
|
-
var t = this._renderer._bounds, e = this.options.weight, i = new
|
|
4782
|
+
var t = this._renderer._bounds, e = this.options.weight, i = new G(e, e);
|
|
4783
4783
|
if (t = new K(t.min.subtract(i), t.max.add(i)), this._parts = [], !(!this._pxBounds || !this._pxBounds.intersects(t))) {
|
|
4784
4784
|
if (this.options.noClip) {
|
|
4785
4785
|
this._parts = this._rings;
|
|
@@ -4800,13 +4800,13 @@ function ll() {
|
|
|
4800
4800
|
for (l = 0, C = this._parts.length; l < C; l++)
|
|
4801
4801
|
for (i = this._parts[l], _ = 0, M = i.length, b = M - 1; _ < M; b = _++)
|
|
4802
4802
|
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);
|
|
4803
|
-
return e ||
|
|
4803
|
+
return e || he.prototype._containsPoint.call(this, t, !0);
|
|
4804
4804
|
}
|
|
4805
4805
|
});
|
|
4806
4806
|
function sr(t, e) {
|
|
4807
4807
|
return new Fe(t, e);
|
|
4808
4808
|
}
|
|
4809
|
-
var
|
|
4809
|
+
var de = ue.extend({
|
|
4810
4810
|
/* @section
|
|
4811
4811
|
* @aka GeoJSON options
|
|
4812
4812
|
*
|
|
@@ -4892,38 +4892,38 @@ function ll() {
|
|
|
4892
4892
|
}
|
|
4893
4893
|
});
|
|
4894
4894
|
function Xi(t, e) {
|
|
4895
|
-
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,
|
|
4895
|
+
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, z;
|
|
4896
4896
|
if (!n && !i)
|
|
4897
4897
|
return null;
|
|
4898
4898
|
switch (i.type) {
|
|
4899
4899
|
case "Point":
|
|
4900
4900
|
return b = _(n), Eo(l, t, b, e);
|
|
4901
4901
|
case "MultiPoint":
|
|
4902
|
-
for (M = 0,
|
|
4902
|
+
for (M = 0, z = n.length; M < z; M++)
|
|
4903
4903
|
b = _(n[M]), s.push(Eo(l, t, b, e));
|
|
4904
|
-
return new
|
|
4904
|
+
return new ue(s);
|
|
4905
4905
|
case "LineString":
|
|
4906
4906
|
case "MultiLineString":
|
|
4907
|
-
return C = Ji(n, i.type === "LineString" ? 0 : 1, _), new
|
|
4907
|
+
return C = Ji(n, i.type === "LineString" ? 0 : 1, _), new he(C, e);
|
|
4908
4908
|
case "Polygon":
|
|
4909
4909
|
case "MultiPolygon":
|
|
4910
4910
|
return C = Ji(n, i.type === "Polygon" ? 1 : 2, _), new Fe(C, e);
|
|
4911
4911
|
case "GeometryCollection":
|
|
4912
|
-
for (M = 0,
|
|
4913
|
-
var
|
|
4912
|
+
for (M = 0, z = i.geometries.length; M < z; M++) {
|
|
4913
|
+
var F = Xi({
|
|
4914
4914
|
geometry: i.geometries[M],
|
|
4915
4915
|
type: "Feature",
|
|
4916
4916
|
properties: t.properties
|
|
4917
4917
|
}, e);
|
|
4918
|
-
|
|
4918
|
+
F && s.push(F);
|
|
4919
4919
|
}
|
|
4920
|
-
return new
|
|
4920
|
+
return new ue(s);
|
|
4921
4921
|
case "FeatureCollection":
|
|
4922
|
-
for (M = 0,
|
|
4922
|
+
for (M = 0, z = i.features.length; M < z; M++) {
|
|
4923
4923
|
var Q = Xi(i.features[M], e);
|
|
4924
4924
|
Q && s.push(Q);
|
|
4925
4925
|
}
|
|
4926
|
-
return new
|
|
4926
|
+
return new ue(s);
|
|
4927
4927
|
default:
|
|
4928
4928
|
throw new Error("Invalid GeoJSON object.");
|
|
4929
4929
|
}
|
|
@@ -4944,7 +4944,7 @@ function ll() {
|
|
|
4944
4944
|
}
|
|
4945
4945
|
function Qi(t, e, i, n) {
|
|
4946
4946
|
for (var s = [], l = 0, _ = t.length; l < _; l++)
|
|
4947
|
-
s.push(e ? Qi(t[l],
|
|
4947
|
+
s.push(e ? Qi(t[l], Gt(t[l]) ? 0 : e - 1, i, n) : jn(t[l], n));
|
|
4948
4948
|
return !e && i && s.length > 0 && s.push(s[0].slice()), s;
|
|
4949
4949
|
}
|
|
4950
4950
|
function Ge(t, e) {
|
|
@@ -4965,9 +4965,9 @@ function ll() {
|
|
|
4965
4965
|
});
|
|
4966
4966
|
}
|
|
4967
4967
|
};
|
|
4968
|
-
Yi.include(Yn), Wn.include(Yn), Ki.include(Yn),
|
|
4968
|
+
Yi.include(Yn), Wn.include(Yn), Ki.include(Yn), he.include({
|
|
4969
4969
|
toGeoJSON: function(t) {
|
|
4970
|
-
var e = !
|
|
4970
|
+
var e = !Gt(this._latlngs), i = Qi(this._latlngs, e ? 1 : 0, !1, t);
|
|
4971
4971
|
return Ge(this, {
|
|
4972
4972
|
type: (e ? "Multi" : "") + "LineString",
|
|
4973
4973
|
coordinates: i
|
|
@@ -4975,7 +4975,7 @@ function ll() {
|
|
|
4975
4975
|
}
|
|
4976
4976
|
}), Fe.include({
|
|
4977
4977
|
toGeoJSON: function(t) {
|
|
4978
|
-
var e = !
|
|
4978
|
+
var e = !Gt(this._latlngs), i = e && !Gt(this._latlngs[0]), n = Qi(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
|
|
4979
4979
|
return e || (n = [n]), Ge(this, {
|
|
4980
4980
|
type: (i ? "Multi" : "") + "Polygon",
|
|
4981
4981
|
coordinates: n
|
|
@@ -5019,9 +5019,9 @@ function ll() {
|
|
|
5019
5019
|
}
|
|
5020
5020
|
});
|
|
5021
5021
|
function Bo(t, e) {
|
|
5022
|
-
return new
|
|
5022
|
+
return new de(t, e);
|
|
5023
5023
|
}
|
|
5024
|
-
var rr = Bo, en =
|
|
5024
|
+
var rr = Bo, en = Jt.extend({
|
|
5025
5025
|
// @section
|
|
5026
5026
|
// @aka ImageOverlay options
|
|
5027
5027
|
options: {
|
|
@@ -5050,13 +5050,13 @@ function ll() {
|
|
|
5050
5050
|
className: ""
|
|
5051
5051
|
},
|
|
5052
5052
|
initialize: function(t, e, i) {
|
|
5053
|
-
this._url = t, this._bounds =
|
|
5053
|
+
this._url = t, this._bounds = pt(e), x(this, i);
|
|
5054
5054
|
},
|
|
5055
5055
|
onAdd: function() {
|
|
5056
5056
|
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (Y(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
|
|
5057
5057
|
},
|
|
5058
5058
|
onRemove: function() {
|
|
5059
|
-
|
|
5059
|
+
vt(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
|
|
5060
5060
|
},
|
|
5061
5061
|
// @method setOpacity(opacity: Number): this
|
|
5062
5062
|
// Sets the opacity of the overlay.
|
|
@@ -5084,7 +5084,7 @@ function ll() {
|
|
|
5084
5084
|
// @method setBounds(bounds: LatLngBounds): this
|
|
5085
5085
|
// Update the bounds that this ImageOverlay covers
|
|
5086
5086
|
setBounds: function(t) {
|
|
5087
|
-
return this._bounds =
|
|
5087
|
+
return this._bounds = pt(t), this._map && this._reset(), this;
|
|
5088
5088
|
},
|
|
5089
5089
|
getEvents: function() {
|
|
5090
5090
|
var t = {
|
|
@@ -5129,7 +5129,7 @@ function ll() {
|
|
|
5129
5129
|
wt(t, e.min), t.style.width = i.x + "px", t.style.height = i.y + "px";
|
|
5130
5130
|
},
|
|
5131
5131
|
_updateOpacity: function() {
|
|
5132
|
-
|
|
5132
|
+
Ft(this._image, this.options.opacity);
|
|
5133
5133
|
},
|
|
5134
5134
|
_updateZIndex: function() {
|
|
5135
5135
|
this._image && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._image.style.zIndex = this.options.zIndex);
|
|
@@ -5201,7 +5201,7 @@ function ll() {
|
|
|
5201
5201
|
function ur(t, e, i) {
|
|
5202
5202
|
return new Do(t, e, i);
|
|
5203
5203
|
}
|
|
5204
|
-
var
|
|
5204
|
+
var ne = Jt.extend({
|
|
5205
5205
|
// @section
|
|
5206
5206
|
// @aka DivOverlay options
|
|
5207
5207
|
options: {
|
|
@@ -5246,10 +5246,10 @@ function ll() {
|
|
|
5246
5246
|
return this._map ? this.close() : (arguments.length ? this._source = t : t = this._source, this._prepareOpen(), this.openOn(t._map)), this;
|
|
5247
5247
|
},
|
|
5248
5248
|
onAdd: function(t) {
|
|
5249
|
-
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated &&
|
|
5249
|
+
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && Ft(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && Ft(this._container, 1), this.bringToFront(), this.options.interactive && (Y(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
|
|
5250
5250
|
},
|
|
5251
5251
|
onRemove: function(t) {
|
|
5252
|
-
t._fadeAnimated ? (
|
|
5252
|
+
t._fadeAnimated ? (Ft(this._container, 0), this._removeTimeout = setTimeout(r(vt, void 0, this._container), 200)) : vt(this._container), this.options.interactive && (bt(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
|
|
5253
5253
|
},
|
|
5254
5254
|
// @namespace DivOverlay
|
|
5255
5255
|
// @method getLatLng: LatLng
|
|
@@ -5310,7 +5310,7 @@ function ll() {
|
|
|
5310
5310
|
var e = this._source;
|
|
5311
5311
|
if (!e._map)
|
|
5312
5312
|
return !1;
|
|
5313
|
-
if (e instanceof
|
|
5313
|
+
if (e instanceof ue) {
|
|
5314
5314
|
e = null;
|
|
5315
5315
|
var i = this._source._layers;
|
|
5316
5316
|
for (var n in i)
|
|
@@ -5363,13 +5363,13 @@ function ll() {
|
|
|
5363
5363
|
var s = e;
|
|
5364
5364
|
return s instanceof t || (s = new t(n).setContent(e)), i && s.setLatLng(i), s;
|
|
5365
5365
|
}
|
|
5366
|
-
}),
|
|
5366
|
+
}), Jt.include({
|
|
5367
5367
|
_initOverlay: function(t, e, i, n) {
|
|
5368
5368
|
var s = i;
|
|
5369
5369
|
return s instanceof t ? (x(s, n), s._source = this) : (s = e && !n ? e : new t(n, this), s.setContent(i)), s;
|
|
5370
5370
|
}
|
|
5371
5371
|
});
|
|
5372
|
-
var nn =
|
|
5372
|
+
var nn = ne.extend({
|
|
5373
5373
|
// @section
|
|
5374
5374
|
// @aka Popup options
|
|
5375
5375
|
options: {
|
|
@@ -5433,16 +5433,16 @@ function ll() {
|
|
|
5433
5433
|
// Alternative to `map.openPopup(popup)`.
|
|
5434
5434
|
// Adds the popup to the map and closes the previous one.
|
|
5435
5435
|
openOn: function(t) {
|
|
5436
|
-
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this,
|
|
5436
|
+
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, ne.prototype.openOn.call(this, t);
|
|
5437
5437
|
},
|
|
5438
5438
|
onAdd: function(t) {
|
|
5439
|
-
|
|
5439
|
+
ne.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", Me));
|
|
5440
5440
|
},
|
|
5441
5441
|
onRemove: function(t) {
|
|
5442
|
-
|
|
5442
|
+
ne.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", Me));
|
|
5443
5443
|
},
|
|
5444
5444
|
getEvents: function() {
|
|
5445
|
-
var t =
|
|
5445
|
+
var t = ne.prototype.getEvents.call(this);
|
|
5446
5446
|
return (this.options.closeOnClick !== void 0 ? this.options.closeOnClick : this._map.options.closePopupOnClick) && (t.preclick = this.close), this.options.keepInView && (t.moveend = this._adjustPan), t;
|
|
5447
5447
|
},
|
|
5448
5448
|
_initLayout: function() {
|
|
@@ -5475,10 +5475,10 @@ function ll() {
|
|
|
5475
5475
|
this._autopanning = !1;
|
|
5476
5476
|
return;
|
|
5477
5477
|
}
|
|
5478
|
-
var t = this._map, e = parseInt(hi(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, s = new
|
|
5478
|
+
var t = this._map, e = parseInt(hi(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, s = new G(this._containerLeft, -i - this._containerBottom);
|
|
5479
5479
|
s._add(xe(this._container));
|
|
5480
|
-
var l = t.layerPointToContainerPoint(s), _ = N(this.options.autoPanPadding), b = N(this.options.autoPanPaddingTopLeft || _), C = N(this.options.autoPanPaddingBottomRight || _), M = t.getSize(),
|
|
5481
|
-
l.x + n + C.x > M.x && (
|
|
5480
|
+
var l = t.layerPointToContainerPoint(s), _ = N(this.options.autoPanPadding), b = N(this.options.autoPanPaddingTopLeft || _), C = N(this.options.autoPanPaddingBottomRight || _), M = t.getSize(), z = 0, F = 0;
|
|
5481
|
+
l.x + n + C.x > M.x && (z = l.x + n - M.x + C.x), l.x - z - b.x < 0 && (z = l.x - b.x), l.y + i + C.y > M.y && (F = l.y + i - M.y + C.y), l.y - F - b.y < 0 && (F = l.y - b.y), (z || F) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([z, F]));
|
|
5482
5482
|
}
|
|
5483
5483
|
},
|
|
5484
5484
|
_getAnchor: function() {
|
|
@@ -5503,7 +5503,7 @@ function ll() {
|
|
|
5503
5503
|
closePopup: function(t) {
|
|
5504
5504
|
return t = arguments.length ? t : this._popup, t && t.close(), this;
|
|
5505
5505
|
}
|
|
5506
|
-
}),
|
|
5506
|
+
}), Jt.include({
|
|
5507
5507
|
// @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
|
|
5508
5508
|
// Binds a popup to the layer with the passed `content` and sets up the
|
|
5509
5509
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
@@ -5529,7 +5529,7 @@ function ll() {
|
|
|
5529
5529
|
// @method openPopup(latlng?: LatLng): this
|
|
5530
5530
|
// Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
|
|
5531
5531
|
openPopup: function(t) {
|
|
5532
|
-
return this._popup && (this instanceof
|
|
5532
|
+
return this._popup && (this instanceof ue || (this._popup._source = this), this._popup._prepareOpen(t || this._latlng) && this._popup.openOn(this._map)), this;
|
|
5533
5533
|
},
|
|
5534
5534
|
// @method closePopup(): this
|
|
5535
5535
|
// Closes the popup bound to this layer if it is open.
|
|
@@ -5560,7 +5560,7 @@ function ll() {
|
|
|
5560
5560
|
if (!(!this._popup || !this._map)) {
|
|
5561
5561
|
Se(t);
|
|
5562
5562
|
var e = t.layer || t.target;
|
|
5563
|
-
if (this._popup._source === e && !(e instanceof
|
|
5563
|
+
if (this._popup._source === e && !(e instanceof ye)) {
|
|
5564
5564
|
this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(t.latlng);
|
|
5565
5565
|
return;
|
|
5566
5566
|
}
|
|
@@ -5574,7 +5574,7 @@ function ll() {
|
|
|
5574
5574
|
t.originalEvent.keyCode === 13 && this._openPopup(t);
|
|
5575
5575
|
}
|
|
5576
5576
|
});
|
|
5577
|
-
var on =
|
|
5577
|
+
var on = ne.extend({
|
|
5578
5578
|
// @section
|
|
5579
5579
|
// @aka Tooltip options
|
|
5580
5580
|
options: {
|
|
@@ -5601,13 +5601,13 @@ function ll() {
|
|
|
5601
5601
|
opacity: 0.9
|
|
5602
5602
|
},
|
|
5603
5603
|
onAdd: function(t) {
|
|
5604
|
-
|
|
5604
|
+
ne.prototype.onAdd.call(this, t), this.setOpacity(this.options.opacity), t.fire("tooltipopen", { tooltip: this }), this._source && (this.addEventParent(this._source), this._source.fire("tooltipopen", { tooltip: this }, !0));
|
|
5605
5605
|
},
|
|
5606
5606
|
onRemove: function(t) {
|
|
5607
|
-
|
|
5607
|
+
ne.prototype.onRemove.call(this, t), t.fire("tooltipclose", { tooltip: this }), this._source && (this.removeEventParent(this._source), this._source.fire("tooltipclose", { tooltip: this }, !0));
|
|
5608
5608
|
},
|
|
5609
5609
|
getEvents: function() {
|
|
5610
|
-
var t =
|
|
5610
|
+
var t = ne.prototype.getEvents.call(this);
|
|
5611
5611
|
return this.options.permanent || (t.preclick = this.close), t;
|
|
5612
5612
|
},
|
|
5613
5613
|
_initLayout: function() {
|
|
@@ -5619,15 +5619,15 @@ function ll() {
|
|
|
5619
5619
|
_adjustPan: function() {
|
|
5620
5620
|
},
|
|
5621
5621
|
_setPosition: function(t) {
|
|
5622
|
-
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,
|
|
5623
|
-
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 + (
|
|
5622
|
+
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, z = N(this.options.offset), F = this._getAnchor();
|
|
5623
|
+
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 + (z.x + F.x) * 2, i = M / 2), t = t.subtract(N(e, i, !0)).add(z).add(F), bt(s, "leaflet-tooltip-right"), bt(s, "leaflet-tooltip-left"), bt(s, "leaflet-tooltip-top"), bt(s, "leaflet-tooltip-bottom"), Y(s, "leaflet-tooltip-" + b), wt(s, t);
|
|
5624
5624
|
},
|
|
5625
5625
|
_updatePosition: function() {
|
|
5626
5626
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
|
5627
5627
|
this._setPosition(t);
|
|
5628
5628
|
},
|
|
5629
5629
|
setOpacity: function(t) {
|
|
5630
|
-
this.options.opacity = t, this._container &&
|
|
5630
|
+
this.options.opacity = t, this._container && Ft(this._container, t);
|
|
5631
5631
|
},
|
|
5632
5632
|
_animateZoom: function(t) {
|
|
5633
5633
|
var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center);
|
|
@@ -5653,7 +5653,7 @@ function ll() {
|
|
|
5653
5653
|
closeTooltip: function(t) {
|
|
5654
5654
|
return t.close(), this;
|
|
5655
5655
|
}
|
|
5656
|
-
}),
|
|
5656
|
+
}), Jt.include({
|
|
5657
5657
|
// @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
|
|
5658
5658
|
// Binds a tooltip to the layer with the passed `content` and sets up the
|
|
5659
5659
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
@@ -5678,7 +5678,7 @@ function ll() {
|
|
|
5678
5678
|
// @method openTooltip(latlng?: LatLng): this
|
|
5679
5679
|
// Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.
|
|
5680
5680
|
openTooltip: function(t) {
|
|
5681
|
-
return this._tooltip && (this instanceof
|
|
5681
|
+
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;
|
|
5682
5682
|
},
|
|
5683
5683
|
// @method closeTooltip(): this
|
|
5684
5684
|
// Closes the tooltip bound to this layer if it is open.
|
|
@@ -5770,7 +5770,7 @@ function ll() {
|
|
|
5770
5770
|
return new No(t);
|
|
5771
5771
|
}
|
|
5772
5772
|
Ve.Default = gi;
|
|
5773
|
-
var vi =
|
|
5773
|
+
var vi = Jt.extend({
|
|
5774
5774
|
// @section
|
|
5775
5775
|
// @aka GridLayer options
|
|
5776
5776
|
options: {
|
|
@@ -5841,7 +5841,7 @@ function ll() {
|
|
|
5841
5841
|
t._addZoomLimit(this);
|
|
5842
5842
|
},
|
|
5843
5843
|
onRemove: function(t) {
|
|
5844
|
-
this._removeAllTiles(),
|
|
5844
|
+
this._removeAllTiles(), vt(this._container), t._removeZoomLimit(this), this._container = null, this._tileZoom = void 0;
|
|
5845
5845
|
},
|
|
5846
5846
|
// @method bringToFront: this
|
|
5847
5847
|
// Brings the tile layer to the top of all tile layers.
|
|
@@ -5906,7 +5906,7 @@ function ll() {
|
|
|
5906
5906
|
// Normalizes the [tileSize option](#gridlayer-tilesize) into a point. Used by the `createTile()` method.
|
|
5907
5907
|
getTileSize: function() {
|
|
5908
5908
|
var t = this.options.tileSize;
|
|
5909
|
-
return t instanceof
|
|
5909
|
+
return t instanceof G ? t : new G(t, t);
|
|
5910
5910
|
},
|
|
5911
5911
|
_updateZIndex: function() {
|
|
5912
5912
|
this._container && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._container.style.zIndex = this.options.zIndex);
|
|
@@ -5918,16 +5918,16 @@ function ll() {
|
|
|
5918
5918
|
},
|
|
5919
5919
|
_updateOpacity: function() {
|
|
5920
5920
|
if (this._map && !D.ielt9) {
|
|
5921
|
-
|
|
5921
|
+
Ft(this._container, this.options.opacity);
|
|
5922
5922
|
var t = +/* @__PURE__ */ new Date(), e = !1, i = !1;
|
|
5923
5923
|
for (var n in this._tiles) {
|
|
5924
5924
|
var s = this._tiles[n];
|
|
5925
5925
|
if (!(!s.current || !s.loaded)) {
|
|
5926
5926
|
var l = Math.min(1, (t - s.loaded) / 200);
|
|
5927
|
-
|
|
5927
|
+
Ft(s.el, l), l < 1 ? e = !0 : (s.active ? i = !0 : this._onOpaqueTile(s), s.active = !0);
|
|
5928
5928
|
}
|
|
5929
5929
|
}
|
|
5930
|
-
i && !this._noPrune && this._pruneTiles(), e && (j(this._fadeFrame), this._fadeFrame =
|
|
5930
|
+
i && !this._noPrune && this._pruneTiles(), e && (j(this._fadeFrame), this._fadeFrame = ut(this._updateOpacity, this));
|
|
5931
5931
|
}
|
|
5932
5932
|
},
|
|
5933
5933
|
_onOpaqueTile: g,
|
|
@@ -5938,7 +5938,7 @@ function ll() {
|
|
|
5938
5938
|
var t = this._tileZoom, e = this.options.maxZoom;
|
|
5939
5939
|
if (t !== void 0) {
|
|
5940
5940
|
for (var i in this._levels)
|
|
5941
|
-
i = Number(i), this._levels[i].el.children.length || i === t ? (this._levels[i].el.style.zIndex = e - Math.abs(t - i), this._onUpdateLevel(i)) : (
|
|
5941
|
+
i = Number(i), this._levels[i].el.children.length || i === t ? (this._levels[i].el.style.zIndex = e - Math.abs(t - i), this._onUpdateLevel(i)) : (vt(this._levels[i].el), this._removeTilesAtZoom(i), this._onRemoveLevel(i), delete this._levels[i]);
|
|
5942
5942
|
var n = this._levels[t], s = this._map;
|
|
5943
5943
|
return n || (n = this._levels[t] = {}, n.el = st("div", "leaflet-tile-container leaflet-zoom-animated", this._container), n.el.style.zIndex = e, n.origin = s.project(s.unproject(s.getPixelOrigin()), t).round(), n.zoom = t, this._setZoomTransform(n, s.getCenter(), s.getZoom()), g(n.el.offsetWidth), this._onCreateLevel(n)), this._level = n, n;
|
|
5944
5944
|
}
|
|
@@ -5974,11 +5974,11 @@ function ll() {
|
|
|
5974
5974
|
},
|
|
5975
5975
|
_invalidateAll: function() {
|
|
5976
5976
|
for (var t in this._levels)
|
|
5977
|
-
|
|
5977
|
+
vt(this._levels[t].el), this._onRemoveLevel(Number(t)), delete this._levels[t];
|
|
5978
5978
|
this._removeAllTiles(), this._tileZoom = void 0;
|
|
5979
5979
|
},
|
|
5980
5980
|
_retainParent: function(t, e, i, n) {
|
|
5981
|
-
var s = Math.floor(t / 2), l = Math.floor(e / 2), _ = i - 1, b = new
|
|
5981
|
+
var s = Math.floor(t / 2), l = Math.floor(e / 2), _ = i - 1, b = new G(+s, +l);
|
|
5982
5982
|
b.z = +_;
|
|
5983
5983
|
var C = this._tileCoordsToKey(b), M = this._tiles[C];
|
|
5984
5984
|
return M && M.active ? (M.retain = !0, !0) : (M && M.loaded && (M.retain = !0), _ > n ? this._retainParent(s, l, _, n) : !1);
|
|
@@ -5986,7 +5986,7 @@ function ll() {
|
|
|
5986
5986
|
_retainChildren: function(t, e, i, n) {
|
|
5987
5987
|
for (var s = 2 * t; s < 2 * t + 2; s++)
|
|
5988
5988
|
for (var l = 2 * e; l < 2 * e + 2; l++) {
|
|
5989
|
-
var _ = new
|
|
5989
|
+
var _ = new G(s, l);
|
|
5990
5990
|
_.z = i + 1;
|
|
5991
5991
|
var b = this._tileCoordsToKey(_), C = this._tiles[b];
|
|
5992
5992
|
if (C && C.active) {
|
|
@@ -6051,29 +6051,29 @@ function ll() {
|
|
|
6051
6051
|
if (!(isFinite(s.min.x) && isFinite(s.min.y) && isFinite(s.max.x) && isFinite(s.max.y)))
|
|
6052
6052
|
throw new Error("Attempted to load an infinite number of tiles");
|
|
6053
6053
|
for (var M in this._tiles) {
|
|
6054
|
-
var
|
|
6055
|
-
(
|
|
6054
|
+
var z = this._tiles[M].coords;
|
|
6055
|
+
(z.z !== this._tileZoom || !C.contains(new G(z.x, z.y))) && (this._tiles[M].current = !1);
|
|
6056
6056
|
}
|
|
6057
6057
|
if (Math.abs(i - this._tileZoom) > 1) {
|
|
6058
6058
|
this._setView(t, i);
|
|
6059
6059
|
return;
|
|
6060
6060
|
}
|
|
6061
|
-
for (var
|
|
6061
|
+
for (var F = s.min.y; F <= s.max.y; F++)
|
|
6062
6062
|
for (var Q = s.min.x; Q <= s.max.x; Q++) {
|
|
6063
|
-
var Bt = new
|
|
6063
|
+
var Bt = new G(Q, F);
|
|
6064
6064
|
if (Bt.z = this._tileZoom, !!this._isValidTile(Bt)) {
|
|
6065
6065
|
var At = this._tiles[this._tileCoordsToKey(Bt)];
|
|
6066
6066
|
At ? At.current = !0 : _.push(Bt);
|
|
6067
6067
|
}
|
|
6068
6068
|
}
|
|
6069
|
-
if (_.sort(function(
|
|
6070
|
-
return
|
|
6069
|
+
if (_.sort(function(Ht, $e) {
|
|
6070
|
+
return Ht.distanceTo(l) - $e.distanceTo(l);
|
|
6071
6071
|
}), _.length !== 0) {
|
|
6072
6072
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
6073
|
-
var
|
|
6073
|
+
var Ut = document.createDocumentFragment();
|
|
6074
6074
|
for (Q = 0; Q < _.length; Q++)
|
|
6075
|
-
this._addTile(_[Q],
|
|
6076
|
-
this._level.el.appendChild(
|
|
6075
|
+
this._addTile(_[Q], Ut);
|
|
6076
|
+
this._level.el.appendChild(Ut);
|
|
6077
6077
|
}
|
|
6078
6078
|
}
|
|
6079
6079
|
}
|
|
@@ -6088,7 +6088,7 @@ function ll() {
|
|
|
6088
6088
|
if (!this.options.bounds)
|
|
6089
6089
|
return !0;
|
|
6090
6090
|
var n = this._tileCoordsToBounds(t);
|
|
6091
|
-
return
|
|
6091
|
+
return pt(this.options.bounds).overlaps(n);
|
|
6092
6092
|
},
|
|
6093
6093
|
_keyToBounds: function(t) {
|
|
6094
6094
|
return this._tileCoordsToBounds(this._keyToTileCoords(t));
|
|
@@ -6099,7 +6099,7 @@ function ll() {
|
|
|
6099
6099
|
},
|
|
6100
6100
|
// converts tile coordinates to its geographical bounds
|
|
6101
6101
|
_tileCoordsToBounds: function(t) {
|
|
6102
|
-
var e = this._tileCoordsToNwSe(t), i = new
|
|
6102
|
+
var e = this._tileCoordsToNwSe(t), i = new ot(e[0], e[1]);
|
|
6103
6103
|
return this.options.noWrap || (i = this._map.wrapLatLngBounds(i)), i;
|
|
6104
6104
|
},
|
|
6105
6105
|
// converts tile coordinates to key for the tile cache
|
|
@@ -6108,12 +6108,12 @@ function ll() {
|
|
|
6108
6108
|
},
|
|
6109
6109
|
// converts tile cache key to coordinates
|
|
6110
6110
|
_keyToTileCoords: function(t) {
|
|
6111
|
-
var e = t.split(":"), i = new
|
|
6111
|
+
var e = t.split(":"), i = new G(+e[0], +e[1]);
|
|
6112
6112
|
return i.z = +e[2], i;
|
|
6113
6113
|
},
|
|
6114
6114
|
_removeTile: function(t) {
|
|
6115
6115
|
var e = this._tiles[t];
|
|
6116
|
-
e && (
|
|
6116
|
+
e && (vt(e.el), delete this._tiles[t], this.fire("tileunload", {
|
|
6117
6117
|
tile: e.el,
|
|
6118
6118
|
coords: this._keyToTileCoords(t)
|
|
6119
6119
|
}));
|
|
@@ -6121,11 +6121,11 @@ function ll() {
|
|
|
6121
6121
|
_initTile: function(t) {
|
|
6122
6122
|
Y(t, "leaflet-tile");
|
|
6123
6123
|
var e = this.getTileSize();
|
|
6124
|
-
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = g, t.onmousemove = g, D.ielt9 && this.options.opacity < 1 &&
|
|
6124
|
+
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = g, t.onmousemove = g, D.ielt9 && this.options.opacity < 1 && Ft(t, this.options.opacity);
|
|
6125
6125
|
},
|
|
6126
6126
|
_addTile: function(t, e) {
|
|
6127
6127
|
var i = this._getTilePos(t), n = this._tileCoordsToKey(t), s = this.createTile(this._wrapCoords(t), r(this._tileReady, this, t));
|
|
6128
|
-
this._initTile(s), this.createTile.length < 2 &&
|
|
6128
|
+
this._initTile(s), this.createTile.length < 2 && ut(r(this._tileReady, this, t, null, s)), wt(s, i), this._tiles[n] = {
|
|
6129
6129
|
el: s,
|
|
6130
6130
|
coords: t,
|
|
6131
6131
|
current: !0
|
|
@@ -6141,16 +6141,16 @@ function ll() {
|
|
|
6141
6141
|
coords: t
|
|
6142
6142
|
});
|
|
6143
6143
|
var n = this._tileCoordsToKey(t);
|
|
6144
|
-
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (
|
|
6144
|
+
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (Ft(i.el, 0), j(this._fadeFrame), this._fadeFrame = ut(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (Y(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
|
6145
6145
|
tile: i.el,
|
|
6146
6146
|
coords: t
|
|
6147
|
-
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), D.ielt9 || !this._map._fadeAnimated ?
|
|
6147
|
+
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), D.ielt9 || !this._map._fadeAnimated ? ut(this._pruneTiles, this) : setTimeout(r(this._pruneTiles, this), 250)));
|
|
6148
6148
|
},
|
|
6149
6149
|
_getTilePos: function(t) {
|
|
6150
6150
|
return t.scaleBy(this.getTileSize()).subtract(this._level.origin);
|
|
6151
6151
|
},
|
|
6152
6152
|
_wrapCoords: function(t) {
|
|
6153
|
-
var e = new
|
|
6153
|
+
var e = new G(
|
|
6154
6154
|
this._wrapX ? y(t.x, this._wrapX) : t.x,
|
|
6155
6155
|
this._wrapY ? y(t.y, this._wrapY) : t.y
|
|
6156
6156
|
);
|
|
@@ -6250,7 +6250,7 @@ function ll() {
|
|
|
6250
6250
|
var i = this._globalTileRange.max.y - t.y;
|
|
6251
6251
|
this.options.tms && (e.y = i), e["-y"] = i;
|
|
6252
6252
|
}
|
|
6253
|
-
return
|
|
6253
|
+
return O(this._url, v(e, this.options));
|
|
6254
6254
|
},
|
|
6255
6255
|
_tileOnLoad: function(t, e) {
|
|
6256
6256
|
D.ielt9 ? setTimeout(r(t, this, null, e), 0) : t(null, e);
|
|
@@ -6275,9 +6275,9 @@ function ll() {
|
|
|
6275
6275
|
var t, e;
|
|
6276
6276
|
for (t in this._tiles)
|
|
6277
6277
|
if (this._tiles[t].coords.z !== this._tileZoom && (e = this._tiles[t].el, e.onload = g, e.onerror = g, !e.complete)) {
|
|
6278
|
-
e.src =
|
|
6278
|
+
e.src = at;
|
|
6279
6279
|
var i = this._tiles[t].coords;
|
|
6280
|
-
|
|
6280
|
+
vt(e), delete this._tiles[t], this.fire("tileabort", {
|
|
6281
6281
|
tile: e,
|
|
6282
6282
|
coords: i
|
|
6283
6283
|
});
|
|
@@ -6286,10 +6286,10 @@ function ll() {
|
|
|
6286
6286
|
_removeTile: function(t) {
|
|
6287
6287
|
var e = this._tiles[t];
|
|
6288
6288
|
if (e)
|
|
6289
|
-
return e.el.setAttribute("src",
|
|
6289
|
+
return e.el.setAttribute("src", at), vi.prototype._removeTile.call(this, t);
|
|
6290
6290
|
},
|
|
6291
6291
|
_tileReady: function(t, e, i) {
|
|
6292
|
-
if (!(!this._map || i && i.getAttribute("src") ===
|
|
6292
|
+
if (!(!this._map || i && i.getAttribute("src") === at))
|
|
6293
6293
|
return vi.prototype._tileReady.call(this, t, e, i);
|
|
6294
6294
|
}
|
|
6295
6295
|
});
|
|
@@ -6358,7 +6358,7 @@ function ll() {
|
|
|
6358
6358
|
return new Ho(t, e);
|
|
6359
6359
|
}
|
|
6360
6360
|
Ue.WMS = Ho, Ro.wms = pr;
|
|
6361
|
-
var
|
|
6361
|
+
var ce = Jt.extend({
|
|
6362
6362
|
// @section
|
|
6363
6363
|
// @aka Renderer options
|
|
6364
6364
|
options: {
|
|
@@ -6412,7 +6412,7 @@ function ll() {
|
|
|
6412
6412
|
var t = this.options.padding, e = this._map.getSize(), i = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();
|
|
6413
6413
|
this._bounds = new K(i, i.add(e.multiplyBy(1 + t * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
|
|
6414
6414
|
}
|
|
6415
|
-
}), Vo =
|
|
6415
|
+
}), Vo = ce.extend({
|
|
6416
6416
|
// @section
|
|
6417
6417
|
// @aka Canvas options
|
|
6418
6418
|
options: {
|
|
@@ -6421,21 +6421,21 @@ function ll() {
|
|
|
6421
6421
|
tolerance: 0
|
|
6422
6422
|
},
|
|
6423
6423
|
getEvents: function() {
|
|
6424
|
-
var t =
|
|
6424
|
+
var t = ce.prototype.getEvents.call(this);
|
|
6425
6425
|
return t.viewprereset = this._onViewPreReset, t;
|
|
6426
6426
|
},
|
|
6427
6427
|
_onViewPreReset: function() {
|
|
6428
6428
|
this._postponeUpdatePaths = !0;
|
|
6429
6429
|
},
|
|
6430
6430
|
onAdd: function() {
|
|
6431
|
-
|
|
6431
|
+
ce.prototype.onAdd.call(this), this._draw();
|
|
6432
6432
|
},
|
|
6433
6433
|
_initContainer: function() {
|
|
6434
6434
|
var t = this._container = document.createElement("canvas");
|
|
6435
6435
|
q(t, "mousemove", this._onMouseMove, this), q(t, "click dblclick mousedown mouseup contextmenu", this._onClick, this), q(t, "mouseout", this._handleMouseOut, this), t._leaflet_disable_events = !0, this._ctx = t.getContext("2d");
|
|
6436
6436
|
},
|
|
6437
6437
|
_destroyContainer: function() {
|
|
6438
|
-
j(this._redrawRequest), delete this._ctx,
|
|
6438
|
+
j(this._redrawRequest), delete this._ctx, vt(this._container), ct(this._container), delete this._container;
|
|
6439
6439
|
},
|
|
6440
6440
|
_updatePaths: function() {
|
|
6441
6441
|
if (!this._postponeUpdatePaths) {
|
|
@@ -6448,13 +6448,13 @@ function ll() {
|
|
|
6448
6448
|
},
|
|
6449
6449
|
_update: function() {
|
|
6450
6450
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
6451
|
-
|
|
6451
|
+
ce.prototype._update.call(this);
|
|
6452
6452
|
var t = this._bounds, e = this._container, i = t.getSize(), n = D.retina ? 2 : 1;
|
|
6453
6453
|
wt(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");
|
|
6454
6454
|
}
|
|
6455
6455
|
},
|
|
6456
6456
|
_reset: function() {
|
|
6457
|
-
|
|
6457
|
+
ce.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths());
|
|
6458
6458
|
},
|
|
6459
6459
|
_initPath: function(t) {
|
|
6460
6460
|
this._updateDashArray(t), this._layers[f(t)] = t;
|
|
@@ -6491,7 +6491,7 @@ function ll() {
|
|
|
6491
6491
|
t.options._dashArray = t.options.dashArray;
|
|
6492
6492
|
},
|
|
6493
6493
|
_requestRedraw: function(t) {
|
|
6494
|
-
this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest ||
|
|
6494
|
+
this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest || ut(this._redraw, this));
|
|
6495
6495
|
},
|
|
6496
6496
|
_extendRedrawBounds: function(t) {
|
|
6497
6497
|
if (t._pxBounds) {
|
|
@@ -6614,7 +6614,7 @@ function ll() {
|
|
|
6614
6614
|
this._container = st("div", "leaflet-vml-container");
|
|
6615
6615
|
},
|
|
6616
6616
|
_update: function() {
|
|
6617
|
-
this._map._animatingZoom || (
|
|
6617
|
+
this._map._animatingZoom || (ce.prototype._update.call(this), this.fire("update"));
|
|
6618
6618
|
},
|
|
6619
6619
|
_initPath: function(t) {
|
|
6620
6620
|
var e = t._container = yi("shape");
|
|
@@ -6626,7 +6626,7 @@ function ll() {
|
|
|
6626
6626
|
},
|
|
6627
6627
|
_removePath: function(t) {
|
|
6628
6628
|
var e = t._container;
|
|
6629
|
-
|
|
6629
|
+
vt(e), t.removeInteractiveTarget(e), delete this._layers[f(t)];
|
|
6630
6630
|
},
|
|
6631
6631
|
_updateStyle: function(t) {
|
|
6632
6632
|
var e = t._stroke, i = t._fill, n = t.options, s = t._container;
|
|
@@ -6645,16 +6645,16 @@ function ll() {
|
|
|
6645
6645
|
_bringToBack: function(t) {
|
|
6646
6646
|
Re(t._container);
|
|
6647
6647
|
}
|
|
6648
|
-
}, sn = D.vml ? yi : xi, bi =
|
|
6648
|
+
}, sn = D.vml ? yi : xi, bi = ce.extend({
|
|
6649
6649
|
_initContainer: function() {
|
|
6650
6650
|
this._container = sn("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = sn("g"), this._container.appendChild(this._rootGroup);
|
|
6651
6651
|
},
|
|
6652
6652
|
_destroyContainer: function() {
|
|
6653
|
-
|
|
6653
|
+
vt(this._container), ct(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
|
6654
6654
|
},
|
|
6655
6655
|
_update: function() {
|
|
6656
6656
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
6657
|
-
|
|
6657
|
+
ce.prototype._update.call(this);
|
|
6658
6658
|
var t = this._bounds, e = t.getSize(), i = this._container;
|
|
6659
6659
|
(!this._svgSize || !this._svgSize.equals(e)) && (this._svgSize = e, i.setAttribute("width", e.x), i.setAttribute("height", e.y)), wt(i, t.min), i.setAttribute("viewBox", [t.min.x, t.min.y, e.x, e.y].join(" ")), this.fire("update");
|
|
6660
6660
|
}
|
|
@@ -6668,7 +6668,7 @@ function ll() {
|
|
|
6668
6668
|
this._rootGroup || this._initContainer(), this._rootGroup.appendChild(t._path), t.addInteractiveTarget(t._path);
|
|
6669
6669
|
},
|
|
6670
6670
|
_removePath: function(t) {
|
|
6671
|
-
|
|
6671
|
+
vt(t._path), t.removeInteractiveTarget(t._path), delete this._layers[f(t)];
|
|
6672
6672
|
},
|
|
6673
6673
|
_updatePath: function(t) {
|
|
6674
6674
|
t._project(), t._update();
|
|
@@ -6728,7 +6728,7 @@ function ll() {
|
|
|
6728
6728
|
return this.setLatLngs(this._boundsToLatLngs(t));
|
|
6729
6729
|
},
|
|
6730
6730
|
_boundsToLatLngs: function(t) {
|
|
6731
|
-
return t =
|
|
6731
|
+
return t = pt(t), [
|
|
6732
6732
|
t.getSouthWest(),
|
|
6733
6733
|
t.getNorthWest(),
|
|
6734
6734
|
t.getNorthEast(),
|
|
@@ -6739,13 +6739,13 @@ function ll() {
|
|
|
6739
6739
|
function mr(t, e) {
|
|
6740
6740
|
return new Uo(t, e);
|
|
6741
6741
|
}
|
|
6742
|
-
bi.create = sn, bi.pointsToPath = Ee,
|
|
6742
|
+
bi.create = sn, bi.pointsToPath = Ee, de.geometryToLayer = Xi, de.coordsToLatLng = qn, de.coordsToLatLngs = Ji, de.latLngToCoords = jn, de.latLngsToCoords = Qi, de.getFeature = Ge, de.asFeature = tn, it.mergeOptions({
|
|
6743
6743
|
// @option boxZoom: Boolean = true
|
|
6744
6744
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
6745
6745
|
// dragging the mouse while pressing the shift key.
|
|
6746
6746
|
boxZoom: !0
|
|
6747
6747
|
});
|
|
6748
|
-
var $o =
|
|
6748
|
+
var $o = ie.extend({
|
|
6749
6749
|
initialize: function(t) {
|
|
6750
6750
|
this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this);
|
|
6751
6751
|
},
|
|
@@ -6753,13 +6753,13 @@ function ll() {
|
|
|
6753
6753
|
q(this._container, "mousedown", this._onMouseDown, this);
|
|
6754
6754
|
},
|
|
6755
6755
|
removeHooks: function() {
|
|
6756
|
-
|
|
6756
|
+
ct(this._container, "mousedown", this._onMouseDown, this);
|
|
6757
6757
|
},
|
|
6758
6758
|
moved: function() {
|
|
6759
6759
|
return this._moved;
|
|
6760
6760
|
},
|
|
6761
6761
|
_destroy: function() {
|
|
6762
|
-
|
|
6762
|
+
vt(this._pane), delete this._pane;
|
|
6763
6763
|
},
|
|
6764
6764
|
_resetState: function() {
|
|
6765
6765
|
this._resetStateTimeout = 0, this._moved = !1;
|
|
@@ -6783,7 +6783,7 @@ function ll() {
|
|
|
6783
6783
|
wt(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
|
|
6784
6784
|
},
|
|
6785
6785
|
_finish: function() {
|
|
6786
|
-
this._moved && (
|
|
6786
|
+
this._moved && (vt(this._box), bt(this._container, "leaflet-crosshair")), ci(), In(), ct(document, {
|
|
6787
6787
|
contextmenu: Se,
|
|
6788
6788
|
mousemove: this._onMouseMove,
|
|
6789
6789
|
mouseup: this._onMouseUp,
|
|
@@ -6793,7 +6793,7 @@ function ll() {
|
|
|
6793
6793
|
_onMouseUp: function(t) {
|
|
6794
6794
|
if (!(t.which !== 1 && t.button !== 1) && (this._finish(), !!this._moved)) {
|
|
6795
6795
|
this._clearDeferredResetState(), this._resetStateTimeout = setTimeout(r(this._resetState, this), 0);
|
|
6796
|
-
var e = new
|
|
6796
|
+
var e = new ot(
|
|
6797
6797
|
this._map.containerPointToLatLng(this._startPoint),
|
|
6798
6798
|
this._map.containerPointToLatLng(this._point)
|
|
6799
6799
|
);
|
|
@@ -6812,7 +6812,7 @@ function ll() {
|
|
|
6812
6812
|
// view regardless of where the mouse was.
|
|
6813
6813
|
doubleClickZoom: !0
|
|
6814
6814
|
});
|
|
6815
|
-
var Wo =
|
|
6815
|
+
var Wo = ie.extend({
|
|
6816
6816
|
addHooks: function() {
|
|
6817
6817
|
this._map.on("dblclick", this._onDoubleClick, this);
|
|
6818
6818
|
},
|
|
@@ -6859,11 +6859,11 @@ function ll() {
|
|
|
6859
6859
|
// solid, preventing the user from dragging outside the bounds.
|
|
6860
6860
|
maxBoundsViscosity: 0
|
|
6861
6861
|
});
|
|
6862
|
-
var qo =
|
|
6862
|
+
var qo = ie.extend({
|
|
6863
6863
|
addHooks: function() {
|
|
6864
6864
|
if (!this._draggable) {
|
|
6865
6865
|
var t = this._map;
|
|
6866
|
-
this._draggable = new
|
|
6866
|
+
this._draggable = new ve(t._mapPane, t._container), this._draggable.on({
|
|
6867
6867
|
dragstart: this._onDragStart,
|
|
6868
6868
|
drag: this._onDrag,
|
|
6869
6869
|
dragend: this._onDragEnd
|
|
@@ -6883,7 +6883,7 @@ function ll() {
|
|
|
6883
6883
|
_onDragStart: function() {
|
|
6884
6884
|
var t = this._map;
|
|
6885
6885
|
if (t._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
|
|
6886
|
-
var e =
|
|
6886
|
+
var e = pt(this._map.options.maxBounds);
|
|
6887
6887
|
this._offsetLimit = Lt(
|
|
6888
6888
|
this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),
|
|
6889
6889
|
this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())
|
|
@@ -6926,10 +6926,10 @@ function ll() {
|
|
|
6926
6926
|
e.fire("moveend");
|
|
6927
6927
|
else {
|
|
6928
6928
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
6929
|
-
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),
|
|
6930
|
-
!Q.x && !Q.y ? e.fire("moveend") : (Q = e._limitOffset(Q, e.options.maxBounds),
|
|
6929
|
+
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), z = b.multiplyBy(M / C), F = M / (i.inertiaDeceleration * _), Q = z.multiplyBy(-F / 2).round();
|
|
6930
|
+
!Q.x && !Q.y ? e.fire("moveend") : (Q = e._limitOffset(Q, e.options.maxBounds), ut(function() {
|
|
6931
6931
|
e.panBy(Q, {
|
|
6932
|
-
duration:
|
|
6932
|
+
duration: F,
|
|
6933
6933
|
easeLinearity: _,
|
|
6934
6934
|
noMoveStart: !0,
|
|
6935
6935
|
animate: !0
|
|
@@ -6947,7 +6947,7 @@ function ll() {
|
|
|
6947
6947
|
// Amount of pixels to pan when pressing an arrow key.
|
|
6948
6948
|
keyboardPanDelta: 80
|
|
6949
6949
|
});
|
|
6950
|
-
var jo =
|
|
6950
|
+
var jo = ie.extend({
|
|
6951
6951
|
keyCodes: {
|
|
6952
6952
|
left: [37],
|
|
6953
6953
|
right: [39],
|
|
@@ -6971,7 +6971,7 @@ function ll() {
|
|
|
6971
6971
|
}, this);
|
|
6972
6972
|
},
|
|
6973
6973
|
removeHooks: function() {
|
|
6974
|
-
this._removeHooks(),
|
|
6974
|
+
this._removeHooks(), ct(this._map._container, {
|
|
6975
6975
|
focus: this._onFocus,
|
|
6976
6976
|
blur: this._onBlur,
|
|
6977
6977
|
mousedown: this._onMouseDown
|
|
@@ -7014,7 +7014,7 @@ function ll() {
|
|
|
7014
7014
|
q(document, "keydown", this._onKeyDown, this);
|
|
7015
7015
|
},
|
|
7016
7016
|
_removeHooks: function() {
|
|
7017
|
-
|
|
7017
|
+
ct(document, "keydown", this._onKeyDown, this);
|
|
7018
7018
|
},
|
|
7019
7019
|
_onKeyDown: function(t) {
|
|
7020
7020
|
if (!(t.altKey || t.ctrlKey || t.metaKey)) {
|
|
@@ -7052,12 +7052,12 @@ function ll() {
|
|
|
7052
7052
|
// faster (and vice versa).
|
|
7053
7053
|
wheelPxPerZoomLevel: 60
|
|
7054
7054
|
});
|
|
7055
|
-
var Yo =
|
|
7055
|
+
var Yo = ie.extend({
|
|
7056
7056
|
addHooks: function() {
|
|
7057
7057
|
q(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0;
|
|
7058
7058
|
},
|
|
7059
7059
|
removeHooks: function() {
|
|
7060
|
-
|
|
7060
|
+
ct(this._map._container, "wheel", this._onWheelScroll, this);
|
|
7061
7061
|
},
|
|
7062
7062
|
_onWheelScroll: function(t) {
|
|
7063
7063
|
var e = yo(t), i = this._map.options.wheelDebounceTime;
|
|
@@ -7084,30 +7084,30 @@ function ll() {
|
|
|
7084
7084
|
// for it to be considered a valid tap.
|
|
7085
7085
|
tapTolerance: 15
|
|
7086
7086
|
});
|
|
7087
|
-
var Ko =
|
|
7087
|
+
var Ko = ie.extend({
|
|
7088
7088
|
addHooks: function() {
|
|
7089
7089
|
q(this._map._container, "touchstart", this._onDown, this);
|
|
7090
7090
|
},
|
|
7091
7091
|
removeHooks: function() {
|
|
7092
|
-
|
|
7092
|
+
ct(this._map._container, "touchstart", this._onDown, this);
|
|
7093
7093
|
},
|
|
7094
7094
|
_onDown: function(t) {
|
|
7095
7095
|
if (clearTimeout(this._holdTimeout), t.touches.length === 1) {
|
|
7096
7096
|
var e = t.touches[0];
|
|
7097
|
-
this._startPos = this._newPos = new
|
|
7097
|
+
this._startPos = this._newPos = new G(e.clientX, e.clientY), this._holdTimeout = setTimeout(r(function() {
|
|
7098
7098
|
this._cancel(), this._isTapValid() && (q(document, "touchend", Ot), q(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
|
|
7099
7099
|
}, this), gr), q(document, "touchend touchcancel contextmenu", this._cancel, this), q(document, "touchmove", this._onMove, this);
|
|
7100
7100
|
}
|
|
7101
7101
|
},
|
|
7102
7102
|
_cancelClickPrevent: function t() {
|
|
7103
|
-
|
|
7103
|
+
ct(document, "touchend", Ot), ct(document, "touchend touchcancel", t);
|
|
7104
7104
|
},
|
|
7105
7105
|
_cancel: function() {
|
|
7106
|
-
clearTimeout(this._holdTimeout),
|
|
7106
|
+
clearTimeout(this._holdTimeout), ct(document, "touchend touchcancel contextmenu", this._cancel, this), ct(document, "touchmove", this._onMove, this);
|
|
7107
7107
|
},
|
|
7108
7108
|
_onMove: function(t) {
|
|
7109
7109
|
var e = t.touches[0];
|
|
7110
|
-
this._newPos = new
|
|
7110
|
+
this._newPos = new G(e.clientX, e.clientY);
|
|
7111
7111
|
},
|
|
7112
7112
|
_isTapValid: function() {
|
|
7113
7113
|
return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance;
|
|
@@ -7141,12 +7141,12 @@ function ll() {
|
|
|
7141
7141
|
// and then bounce back when pinch-zooming.
|
|
7142
7142
|
bounceAtZoomLimits: !0
|
|
7143
7143
|
});
|
|
7144
|
-
var Xo =
|
|
7144
|
+
var Xo = ie.extend({
|
|
7145
7145
|
addHooks: function() {
|
|
7146
7146
|
Y(this._map._container, "leaflet-touch-zoom"), q(this._map._container, "touchstart", this._onTouchStart, this);
|
|
7147
7147
|
},
|
|
7148
7148
|
removeHooks: function() {
|
|
7149
|
-
bt(this._map._container, "leaflet-touch-zoom"),
|
|
7149
|
+
bt(this._map._container, "leaflet-touch-zoom"), ct(this._map._container, "touchstart", this._onTouchStart, this);
|
|
7150
7150
|
},
|
|
7151
7151
|
_onTouchStart: function(t) {
|
|
7152
7152
|
var e = this._map;
|
|
@@ -7169,7 +7169,7 @@ function ll() {
|
|
|
7169
7169
|
}
|
|
7170
7170
|
this._moved || (e._moveStart(!0, !1), this._moved = !0), j(this._animRequest);
|
|
7171
7171
|
var _ = r(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
|
|
7172
|
-
this._animRequest =
|
|
7172
|
+
this._animRequest = ut(_, this, !0), Ot(t);
|
|
7173
7173
|
}
|
|
7174
7174
|
},
|
|
7175
7175
|
_onTouchEnd: function() {
|
|
@@ -7177,10 +7177,10 @@ function ll() {
|
|
|
7177
7177
|
this._zooming = !1;
|
|
7178
7178
|
return;
|
|
7179
7179
|
}
|
|
7180
|
-
this._zooming = !1, j(this._animRequest),
|
|
7180
|
+
this._zooming = !1, j(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));
|
|
7181
7181
|
}
|
|
7182
7182
|
});
|
|
7183
|
-
it.addInitHook("addHandler", "touchZoom", Xo), it.BoxZoom = $o, it.DoubleClickZoom = Wo, it.Drag = qo, it.Keyboard = jo, it.ScrollWheelZoom = Yo, it.TapHold = Ko, it.TouchZoom = Xo, h.Bounds = K, h.Browser = D, h.CRS =
|
|
7183
|
+
it.addInitHook("addHandler", "touchZoom", Xo), it.BoxZoom = $o, it.DoubleClickZoom = Wo, it.Drag = qo, it.Keyboard = jo, it.ScrollWheelZoom = Yo, it.TapHold = Ko, it.TouchZoom = Xo, h.Bounds = K, h.Browser = D, h.CRS = Nt, h.Canvas = Vo, h.Circle = Wn, h.CircleMarker = Ki, h.Class = ht, h.Control = Xt, h.DivIcon = No, h.DivOverlay = ne, h.DomEvent = Bs, h.DomUtil = zs, h.Draggable = ve, h.Evented = re, h.FeatureGroup = ue, h.GeoJSON = de, h.GridLayer = vi, h.Handler = ie, h.Icon = Ve, h.ImageOverlay = en, h.LatLng = et, h.LatLngBounds = ot, h.Layer = Jt, h.LayerGroup = He, h.LineUtil = js, h.Map = it, h.Marker = Yi, h.Mixin = Fs, h.Path = ye, h.Point = G, h.PolyUtil = Gs, h.Polygon = Fe, h.Polyline = he, h.Popup = nn, h.PosAnimation = bo, h.Projection = Ys, h.Rectangle = Uo, h.Renderer = ce, h.SVG = bi, h.SVGOverlay = Do, h.TileLayer = Ue, h.Tooltip = on, h.Transformation = qe, h.Util = Dt, h.VideoOverlay = Zo, h.bind = r, h.bounds = Lt, h.canvas = Fo, h.circle = nr, h.circleMarker = ir, h.control = _i, h.divIcon = cr, 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 = N, 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 = dr, h.transformation = we, h.version = p, h.videoOverlay = lr;
|
|
7184
7184
|
var vr = window.L;
|
|
7185
7185
|
h.noConflict = function() {
|
|
7186
7186
|
return window.L = vr, this;
|
|
@@ -7189,7 +7189,7 @@ function ll() {
|
|
|
7189
7189
|
}(wi, wi.exports)), wi.exports;
|
|
7190
7190
|
}
|
|
7191
7191
|
var ul = ll();
|
|
7192
|
-
const
|
|
7192
|
+
const fe = /* @__PURE__ */ aa(ul);
|
|
7193
7193
|
var Pi = { exports: {} }, hl = Pi.exports, hs;
|
|
7194
7194
|
function dl() {
|
|
7195
7195
|
return hs || (hs = 1, function(a, u) {
|
|
@@ -7286,15 +7286,15 @@ function dl() {
|
|
|
7286
7286
|
continue;
|
|
7287
7287
|
}
|
|
7288
7288
|
if (!this.hasLayer(x) && (this._addLayer(x, this._maxZoom), r || this.fire("layeradd", { layer: x }), x.__parent && x.__parent.getChildCount() === 2)) {
|
|
7289
|
-
var
|
|
7290
|
-
d.removeLayer(
|
|
7289
|
+
var at = x.__parent.getAllChildMarkers(), Tt = at[0] === x ? at[1] : at[0];
|
|
7290
|
+
d.removeLayer(Tt);
|
|
7291
7291
|
}
|
|
7292
7292
|
}
|
|
7293
7293
|
g && g(P, w, (/* @__PURE__ */ new Date()).getTime() - H), P === w ? (this._topClusterLevel._recalculateBounds(), this._refreshClustersIcons(), this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds)) : setTimeout(B, this.options.chunkDelay);
|
|
7294
7294
|
}, this);
|
|
7295
7295
|
B();
|
|
7296
7296
|
} else
|
|
7297
|
-
for (var
|
|
7297
|
+
for (var O = this._needsClustering; P < w; P++) {
|
|
7298
7298
|
if (x = o[P], x instanceof L.LayerGroup) {
|
|
7299
7299
|
S && (o = o.slice(), S = !1), this._extractNonGroupLayers(x, o), w = o.length;
|
|
7300
7300
|
continue;
|
|
@@ -7303,7 +7303,7 @@ function dl() {
|
|
|
7303
7303
|
f.addLayer(x);
|
|
7304
7304
|
continue;
|
|
7305
7305
|
}
|
|
7306
|
-
this.hasLayer(x) ||
|
|
7306
|
+
this.hasLayer(x) || O.push(x);
|
|
7307
7307
|
}
|
|
7308
7308
|
return this;
|
|
7309
7309
|
},
|
|
@@ -7946,15 +7946,15 @@ function dl() {
|
|
|
7946
7946
|
}
|
|
7947
7947
|
},
|
|
7948
7948
|
getNearObject: function(o) {
|
|
7949
|
-
var r = this._getCoord(o.x), d = this._getCoord(o.y), f, m, y, g, w, P, S, x, H = this._objectPoint, B = this._sqCellSize,
|
|
7949
|
+
var r = this._getCoord(o.x), d = this._getCoord(o.y), f, m, y, g, w, P, S, x, H = this._objectPoint, B = this._sqCellSize, O = null;
|
|
7950
7950
|
for (f = d - 1; f <= d + 1; f++)
|
|
7951
7951
|
if (g = this._grid[f], g) {
|
|
7952
7952
|
for (m = r - 1; m <= r + 1; m++)
|
|
7953
7953
|
if (w = g[m], w)
|
|
7954
7954
|
for (y = 0, P = w.length; y < P; y++)
|
|
7955
|
-
S = w[y], x = this._sqDist(H[L.Util.stamp(S)], o), (x < B || x <= B &&
|
|
7955
|
+
S = w[y], x = this._sqDist(H[L.Util.stamp(S)], o), (x < B || x <= B && O === null) && (B = x, O = S);
|
|
7956
7956
|
}
|
|
7957
|
-
return
|
|
7957
|
+
return O;
|
|
7958
7958
|
},
|
|
7959
7959
|
_getCoord: function(o) {
|
|
7960
7960
|
var r = Math.floor(o / this._cellSize);
|
|
@@ -8023,11 +8023,11 @@ function dl() {
|
|
|
8023
8023
|
(r === !1 || B.lat > r) && (y = B, r = B.lat), (d === !1 || B.lat < d) && (g = B, d = B.lat), (f === !1 || B.lng > f) && (w = B, f = B.lng), (m === !1 || B.lng < m) && (P = B, m = B.lng);
|
|
8024
8024
|
}
|
|
8025
8025
|
d !== r ? (x = g, S = y) : (x = P, S = w);
|
|
8026
|
-
var
|
|
8026
|
+
var O = [].concat(
|
|
8027
8027
|
this.buildConvexHull([x, S], o),
|
|
8028
8028
|
this.buildConvexHull([S, x], o)
|
|
8029
8029
|
);
|
|
8030
|
-
return
|
|
8030
|
+
return O;
|
|
8031
8031
|
}
|
|
8032
8032
|
};
|
|
8033
8033
|
}(), L.MarkerCluster.include({
|
|
@@ -8094,11 +8094,11 @@ function dl() {
|
|
|
8094
8094
|
}
|
|
8095
8095
|
}), L.MarkerCluster.include({
|
|
8096
8096
|
_animationSpiderfy: function(o, r) {
|
|
8097
|
-
var d = this, f = this._group, m = f._map, y = f._featureGroup, g = this._latlng, w = m.latLngToLayerPoint(g), P = L.Path.SVG, S = L.extend({}, this._group.options.spiderLegPolylineOptions), x = S.opacity, H, B,
|
|
8097
|
+
var d = this, f = this._group, m = f._map, y = f._featureGroup, g = this._latlng, w = m.latLngToLayerPoint(g), P = L.Path.SVG, S = L.extend({}, this._group.options.spiderLegPolylineOptions), x = S.opacity, H, B, O, W, lt, at;
|
|
8098
8098
|
for (x === void 0 && (x = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity), P ? (S.opacity = 0, S.className = (S.className || "") + " leaflet-cluster-spider-leg") : S.opacity = x, f._ignoreMove = !0, H = 0; H < o.length; H++)
|
|
8099
|
-
B = o[H],
|
|
8099
|
+
B = o[H], at = m.layerPointToLatLng(r[H]), O = new L.Polyline([g, at], S), m.addLayer(O), B._spiderLeg = O, P && (W = O._path, lt = W.getTotalLength() + 0.1, W.style.strokeDasharray = lt, W.style.strokeDashoffset = lt), B.setZIndexOffset && B.setZIndexOffset(1e6), B.clusterHide && B.clusterHide(), y.addLayer(B), B._setPos && B._setPos(w);
|
|
8100
8100
|
for (f._forceLayout(), f._animationStart(), H = o.length - 1; H >= 0; H--)
|
|
8101
|
-
|
|
8101
|
+
at = m.layerPointToLatLng(r[H]), B = o[H], B._preSpiderfyLatlng = B._latlng, B.setLatLng(at), B.clusterShow && B.clusterShow(), P && (O = B._spiderLeg, W = O._path, W.style.strokeDashoffset = 0, O.setStyle({ opacity: x }));
|
|
8102
8102
|
this.setOpacity(0.3), f._ignoreMove = !1, setTimeout(function() {
|
|
8103
8103
|
f._animationEnd(), f.fire("spiderfied", {
|
|
8104
8104
|
cluster: d,
|
|
@@ -8107,9 +8107,9 @@ function dl() {
|
|
|
8107
8107
|
}, 200);
|
|
8108
8108
|
},
|
|
8109
8109
|
_animationUnspiderfy: function(o) {
|
|
8110
|
-
var r = this, d = this._group, f = d._map, m = d._featureGroup, y = o ? f._latLngToNewLayerPoint(this._latlng, o.zoom, o.center) : f.latLngToLayerPoint(this._latlng), g = this.getAllChildMarkers(null, !0), w = L.Path.SVG, P, S, x, H, B,
|
|
8110
|
+
var r = this, d = this._group, f = d._map, m = d._featureGroup, y = o ? f._latLngToNewLayerPoint(this._latlng, o.zoom, o.center) : f.latLngToLayerPoint(this._latlng), g = this.getAllChildMarkers(null, !0), w = L.Path.SVG, P, S, x, H, B, O;
|
|
8111
8111
|
for (d._ignoreMove = !0, d._animationStart(), this.setOpacity(1), S = g.length - 1; S >= 0; S--)
|
|
8112
|
-
P = g[S], P._preSpiderfyLatlng && (P.closePopup(), P.setLatLng(P._preSpiderfyLatlng), delete P._preSpiderfyLatlng,
|
|
8112
|
+
P = g[S], P._preSpiderfyLatlng && (P.closePopup(), P.setLatLng(P._preSpiderfyLatlng), delete P._preSpiderfyLatlng, O = !0, P._setPos && (P._setPos(y), O = !1), P.clusterHide && (P.clusterHide(), O = !1), O && m.removeLayer(P), w && (x = P._spiderLeg, H = x._path, B = H.getTotalLength() + 0.1, H.style.strokeDashoffset = B, x.setStyle({ opacity: 0 })));
|
|
8113
8113
|
d._ignoreMove = !1, setTimeout(function() {
|
|
8114
8114
|
var W = 0;
|
|
8115
8115
|
for (S = g.length - 1; S >= 0; S--)
|
|
@@ -8214,15 +8214,15 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8214
8214
|
},
|
|
8215
8215
|
emits: ["update:modelValue", "callback"],
|
|
8216
8216
|
setup(a, { emit: u }) {
|
|
8217
|
-
const { t: h } =
|
|
8218
|
-
transformation: new
|
|
8219
|
-
}), d =
|
|
8217
|
+
const { t: h } = Wt(), p = u, v = a, { hotelMapImage: o } = $t(me()), r = fe.Util.extend(fe.CRS.Simple, {
|
|
8218
|
+
transformation: new fe.Transformation(1, 0, 1, 0)
|
|
8219
|
+
}), d = Vt(), f = Ct(() => o.value?.url), m = Ct(() => o.value?.height), y = Ct(() => o.value?.width), g = fe.icon({
|
|
8220
8220
|
iconUrl: cl,
|
|
8221
8221
|
iconSize: [32, 37],
|
|
8222
8222
|
iconAnchor: [16, 37]
|
|
8223
8223
|
});
|
|
8224
8224
|
function w() {
|
|
8225
|
-
const
|
|
8225
|
+
const O = fe.map(d.value, {
|
|
8226
8226
|
attributionControl: !1,
|
|
8227
8227
|
zoomControl: !0,
|
|
8228
8228
|
smoothWheelZoom: !0,
|
|
@@ -8233,50 +8233,50 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8233
8233
|
maxZoom: 3,
|
|
8234
8234
|
crs: r
|
|
8235
8235
|
}), W = [[0, 0], [m.value, y.value]];
|
|
8236
|
-
|
|
8237
|
-
const lt =
|
|
8236
|
+
fe.imageOverlay(f.value, W).addTo(O);
|
|
8237
|
+
const lt = fe.markerClusterGroup({
|
|
8238
8238
|
showCoverageOnHover: !1
|
|
8239
|
-
});
|
|
8240
|
-
x.value.forEach(({ y:
|
|
8241
|
-
lt.addLayer(
|
|
8239
|
+
}), at = new fe.LatLngBounds(x.value.map(({ y: Tt, x: xt }) => [Tt, xt]));
|
|
8240
|
+
x.value.forEach(({ y: Tt, x: xt, name: V, id: nt }) => {
|
|
8241
|
+
lt.addLayer(fe.marker([Tt, xt], {
|
|
8242
8242
|
icon: g,
|
|
8243
|
-
title:
|
|
8244
|
-
alt:
|
|
8243
|
+
title: V,
|
|
8244
|
+
alt: V,
|
|
8245
8245
|
riseOnHover: !0,
|
|
8246
8246
|
autoPanOnFocus: !0
|
|
8247
|
-
}).bindPopup(`<h3 class="konnectio-leaflet-map-popup-title"><span>${
|
|
8248
|
-
}),
|
|
8249
|
-
const
|
|
8250
|
-
|
|
8251
|
-
const
|
|
8252
|
-
B(
|
|
8247
|
+
}).bindPopup(`<h3 class="konnectio-leaflet-map-popup-title"><span>${V}</span></h3><button class="konnectio-leaflet-map-popup-button" data-id="${nt}">${h("hotel.selectRoomOnMap")}</button>`));
|
|
8248
|
+
}), O.addLayer(lt), O.invalidateSize(), O.fitBounds(at), O.on("popupopen", (Tt) => {
|
|
8249
|
+
const xt = Tt.popup._contentNode.querySelector(".konnectio-leaflet-map-popup-button");
|
|
8250
|
+
xt?.addEventListener("click", () => {
|
|
8251
|
+
const V = parseInt(xt.getAttribute("data-id"));
|
|
8252
|
+
B(V);
|
|
8253
8253
|
});
|
|
8254
8254
|
});
|
|
8255
8255
|
}
|
|
8256
|
-
const { stop: P } = Hr(d, ([{ isIntersecting:
|
|
8257
|
-
|
|
8256
|
+
const { stop: P } = Hr(d, ([{ isIntersecting: O }]) => {
|
|
8257
|
+
O && (P(), w());
|
|
8258
8258
|
}), S = Ct({
|
|
8259
8259
|
get: () => v.modelValue,
|
|
8260
|
-
set: (
|
|
8261
|
-
}), x = Ct(() => v.rooms.map((
|
|
8262
|
-
id:
|
|
8263
|
-
name:
|
|
8264
|
-
x:
|
|
8265
|
-
y:
|
|
8260
|
+
set: (O) => H(O)
|
|
8261
|
+
}), x = Ct(() => v.rooms.map((O) => ({
|
|
8262
|
+
id: O.id,
|
|
8263
|
+
name: O.name,
|
|
8264
|
+
x: O.mapImageX,
|
|
8265
|
+
y: O.mapImageY
|
|
8266
8266
|
})));
|
|
8267
|
-
function H(
|
|
8268
|
-
p("update:modelValue",
|
|
8267
|
+
function H(O) {
|
|
8268
|
+
p("update:modelValue", O);
|
|
8269
8269
|
}
|
|
8270
|
-
function B(
|
|
8271
|
-
S.value =
|
|
8270
|
+
function B(O) {
|
|
8271
|
+
S.value = O, p("callback");
|
|
8272
8272
|
}
|
|
8273
|
-
return (
|
|
8273
|
+
return (O, W) => W[0] || (es(-1, !0), (W[0] = k("div", {
|
|
8274
8274
|
ref_key: "mapContainer",
|
|
8275
8275
|
ref: d,
|
|
8276
8276
|
class: "konnectio-leaflet-map"
|
|
8277
8277
|
}, null, 512)).cacheIndex = 0, es(1), W[0]);
|
|
8278
8278
|
}
|
|
8279
|
-
}), pl = /* @__PURE__ */
|
|
8279
|
+
}), pl = /* @__PURE__ */ qt(fl, [["__scopeId", "data-v-428b57e9"]]), _l = { style: { height: "100%", width: "100%" } }, ml = /* @__PURE__ */ Zt({
|
|
8280
8280
|
__name: "MapSelector",
|
|
8281
8281
|
props: {
|
|
8282
8282
|
roomList: {},
|
|
@@ -8284,7 +8284,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8284
8284
|
callback: { type: Function }
|
|
8285
8285
|
},
|
|
8286
8286
|
setup(a) {
|
|
8287
|
-
const { t: u } =
|
|
8287
|
+
const { t: u } = Wt(), h = Vt(NaN), p = Ct(() => !isNaN(h.value)), v = a;
|
|
8288
8288
|
function o() {
|
|
8289
8289
|
p.value && (v.config.units = 1, v.config.roomId = h.value, v.callback());
|
|
8290
8290
|
}
|
|
@@ -8318,17 +8318,17 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8318
8318
|
callback: { type: Function }
|
|
8319
8319
|
},
|
|
8320
8320
|
setup(a) {
|
|
8321
|
-
const u =
|
|
8321
|
+
const u = Vt(!1);
|
|
8322
8322
|
function h() {
|
|
8323
8323
|
u.value = !0;
|
|
8324
8324
|
}
|
|
8325
|
-
function p(
|
|
8326
|
-
o.callback(
|
|
8325
|
+
function p(V) {
|
|
8326
|
+
o.callback(V), u.value = !1;
|
|
8327
8327
|
}
|
|
8328
|
-
const { t: v } =
|
|
8328
|
+
const { t: v } = Wt(), o = a, r = Vt([]);
|
|
8329
8329
|
function d() {
|
|
8330
|
-
const
|
|
8331
|
-
console.log(
|
|
8330
|
+
const V = r.value.length;
|
|
8331
|
+
console.log(V), r.value[V] = {
|
|
8332
8332
|
id: void 0,
|
|
8333
8333
|
config: [{
|
|
8334
8334
|
id: NaN,
|
|
@@ -8337,24 +8337,24 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8337
8337
|
}]
|
|
8338
8338
|
}, console.log(r.value);
|
|
8339
8339
|
}
|
|
8340
|
-
const f = Ct(() => o.room.rates.map((
|
|
8341
|
-
label:
|
|
8342
|
-
value:
|
|
8343
|
-
}))), { hideAvailableRoomAmount: m, autoSelectRateId: y, enableMultipleConfigurations: g } =
|
|
8344
|
-
value:
|
|
8345
|
-
price:
|
|
8346
|
-
adults:
|
|
8347
|
-
children:
|
|
8348
|
-
hasBreakfast:
|
|
8340
|
+
const f = Ct(() => o.room.rates.map((V) => ({
|
|
8341
|
+
label: V.name,
|
|
8342
|
+
value: V.id
|
|
8343
|
+
}))), { hideAvailableRoomAmount: m, autoSelectRateId: y, enableMultipleConfigurations: g } = $t(ze()), { roomSelect: w } = $t(me()), { addToCart: P, removeFromCart: S } = bs(), x = (V, nt) => o.room.rates.find((mt) => mt.id === V)?.occupantRates.find((mt) => mt.index === nt), H = Ct(() => o.room.roomList.some((V) => V.mapImageX && V.mapImageY)), B = Ct(() => o.room.rates.every((V) => V.isBreakfastIncluded === !0)), O = (V, nt) => x(V, nt) ? x(V, nt)?.rooms : null, W = (V) => o.room.rates.length > 0 ? o.room.rates.find((nt) => nt.id === V)?.occupantRates.map((nt) => ({
|
|
8344
|
+
value: nt.index,
|
|
8345
|
+
price: nt.totalPrice,
|
|
8346
|
+
adults: nt.adultsCount,
|
|
8347
|
+
children: nt.childrenCount,
|
|
8348
|
+
hasBreakfast: nt.hasBreakfast
|
|
8349
8349
|
})) || [] : [], lt = Ct(() => o.room.rates.length > 1);
|
|
8350
|
-
function
|
|
8351
|
-
r.value[
|
|
8350
|
+
function at(V, nt) {
|
|
8351
|
+
r.value[V].config[0].id = o.room.rates.find((mt) => mt.id === nt.value)?.occupantRateIndex || NaN;
|
|
8352
8352
|
}
|
|
8353
|
-
function
|
|
8353
|
+
function Tt() {
|
|
8354
8354
|
lt.value ? y.value ? r.value.push({
|
|
8355
8355
|
id: o.room.bestRateMatch || void 0,
|
|
8356
8356
|
config: [{
|
|
8357
|
-
id: o.room.bestRateMatch && !isNaN(o.room.bestRateMatch) ? o.room.rates.find((
|
|
8357
|
+
id: o.room.bestRateMatch && !isNaN(o.room.bestRateMatch) ? o.room.rates.find((V) => V.id === o.room.bestRateMatch)?.occupantRateIndex : NaN,
|
|
8358
8358
|
units: 0,
|
|
8359
8359
|
addons: []
|
|
8360
8360
|
}]
|
|
@@ -8375,69 +8375,79 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8375
8375
|
});
|
|
8376
8376
|
}
|
|
8377
8377
|
co(() => {
|
|
8378
|
-
|
|
8378
|
+
Tt();
|
|
8379
8379
|
});
|
|
8380
|
-
const
|
|
8381
|
-
return un(
|
|
8382
|
-
|
|
8383
|
-
|
|
8380
|
+
const xt = Ct(() => JSON.parse(JSON.stringify(r.value)));
|
|
8381
|
+
return un(xt, (V, nt) => {
|
|
8382
|
+
nt.length > 0 && V.forEach((mt, ut) => {
|
|
8383
|
+
mt.config.forEach((j, Dt) => {
|
|
8384
|
+
const ht = j.units, jt = nt[ut].config[Dt].units;
|
|
8385
|
+
ht !== jt && (ht > jt ? (r.value[ut].config[Dt].addons.push({}), P({
|
|
8386
|
+
id: o.room.id,
|
|
8387
|
+
name: o.room.title,
|
|
8388
|
+
value: o.room.rates[ut].rackRate
|
|
8389
|
+
})) : (r.value[ut].config[Dt].addons.pop(), S({
|
|
8390
|
+
id: o.room.id,
|
|
8391
|
+
name: o.room.title,
|
|
8392
|
+
value: o.room.rates[ut].rackRate
|
|
8393
|
+
})));
|
|
8384
8394
|
});
|
|
8385
8395
|
});
|
|
8386
8396
|
}, { deep: !0 }), un(r, () => {
|
|
8387
8397
|
w.value[o.room.id] = r.value;
|
|
8388
|
-
}, { deep: !0 }), (
|
|
8398
|
+
}, { deep: !0 }), (V, nt) => (T(), rt(fn, {
|
|
8389
8399
|
type: "hotel",
|
|
8390
|
-
"listing-id":
|
|
8391
|
-
gallery:
|
|
8392
|
-
name:
|
|
8393
|
-
description:
|
|
8394
|
-
layout:
|
|
8395
|
-
facilities:
|
|
8396
|
-
"prices-from":
|
|
8400
|
+
"listing-id": V.room.id,
|
|
8401
|
+
gallery: V.room.images,
|
|
8402
|
+
name: V.room.title,
|
|
8403
|
+
description: V.room.description,
|
|
8404
|
+
layout: V.layout,
|
|
8405
|
+
facilities: V.room.facilities,
|
|
8406
|
+
"prices-from": V.room.pricesFrom,
|
|
8397
8407
|
"includes-breakfast": B.value
|
|
8398
8408
|
}, {
|
|
8399
8409
|
action: tt(() => [
|
|
8400
8410
|
k("div", gl, [
|
|
8401
|
-
(T(!0), A(
|
|
8402
|
-
key:
|
|
8411
|
+
(T(!0), A(ft, null, St(r.value, (mt, ut) => (T(), A("div", {
|
|
8412
|
+
key: mt.id,
|
|
8403
8413
|
class: "konnectio-hotel-room"
|
|
8404
8414
|
}, [
|
|
8405
8415
|
lt.value ? (T(), rt(cn, {
|
|
8406
8416
|
key: 0,
|
|
8407
|
-
modelValue:
|
|
8408
|
-
"onUpdate:modelValue": (j) =>
|
|
8417
|
+
modelValue: mt.id,
|
|
8418
|
+
"onUpdate:modelValue": (j) => mt.id = j,
|
|
8409
8419
|
label: c(v)("hotel.roomVariant"),
|
|
8410
8420
|
placeholder: c(v)("hotel.chooseARoomVariant"),
|
|
8411
8421
|
options: f.value,
|
|
8412
8422
|
searchable: !1,
|
|
8413
|
-
onChanged: (j) =>
|
|
8423
|
+
onChanged: (j) => at(ut, j)
|
|
8414
8424
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options", "onChanged"])) : R("", !0),
|
|
8415
|
-
|
|
8416
|
-
(T(!0), A(
|
|
8425
|
+
mt.id ? (T(), A("div", vl, [
|
|
8426
|
+
(T(!0), A(ft, null, St(V.room.rates, ({
|
|
8417
8427
|
id: j,
|
|
8418
|
-
maximumOccupants:
|
|
8428
|
+
maximumOccupants: Dt
|
|
8419
8429
|
}) => (T(), A("div", {
|
|
8420
8430
|
key: j,
|
|
8421
8431
|
class: "konnectio-listing-action-selective-i"
|
|
8422
8432
|
}, [
|
|
8423
|
-
|
|
8424
|
-
key:
|
|
8433
|
+
mt.id === j ? (T(!0), A(ft, { key: 0 }, St(mt.config, (ht, jt) => (T(), A("div", {
|
|
8434
|
+
key: jt,
|
|
8425
8435
|
class: "konnectio-listing-action-selective"
|
|
8426
8436
|
}, [
|
|
8427
8437
|
k("ul", yl, [
|
|
8428
8438
|
Z(rl, {
|
|
8429
|
-
modelValue:
|
|
8430
|
-
"onUpdate:modelValue": (
|
|
8439
|
+
modelValue: ht.id,
|
|
8440
|
+
"onUpdate:modelValue": (gt) => ht.id = gt,
|
|
8431
8441
|
icon: "male",
|
|
8432
8442
|
"icon-type": "fas",
|
|
8433
8443
|
label: c(v)("general.guests"),
|
|
8434
|
-
description:
|
|
8444
|
+
description: Dt === 0 ? void 0 : `${c(v)("general.maximumGuests")}: ${Dt}`,
|
|
8435
8445
|
options: W(j),
|
|
8436
8446
|
readonly: !(W(j).length > 1)
|
|
8437
8447
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
|
|
8438
8448
|
]),
|
|
8439
8449
|
H.value ? (T(), A("div", Ll, [
|
|
8440
|
-
Z(
|
|
8450
|
+
Z(_e, {
|
|
8441
8451
|
onClickEvent: h,
|
|
8442
8452
|
label: c(v)("hotel.selectRoomOnMap"),
|
|
8443
8453
|
secondary: "",
|
|
@@ -8445,22 +8455,22 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8445
8455
|
}, null, 8, ["label"]),
|
|
8446
8456
|
Z(ml, {
|
|
8447
8457
|
modelValue: u.value,
|
|
8448
|
-
"onUpdate:modelValue":
|
|
8449
|
-
"room-list":
|
|
8450
|
-
config:
|
|
8458
|
+
"onUpdate:modelValue": nt[0] || (nt[0] = (gt) => u.value = gt),
|
|
8459
|
+
"room-list": V.room.roomList,
|
|
8460
|
+
config: ht,
|
|
8451
8461
|
callback: p
|
|
8452
8462
|
}, null, 8, ["modelValue", "room-list", "config"])
|
|
8453
8463
|
])) : (T(), A("ul", bl, [
|
|
8454
8464
|
Z(ki, {
|
|
8455
|
-
modelValue:
|
|
8456
|
-
"onUpdate:modelValue": (
|
|
8457
|
-
description: c(m) ? void 0 : `${c(v)("booking.availability.availableUnits")}: ${
|
|
8465
|
+
modelValue: ht.units,
|
|
8466
|
+
"onUpdate:modelValue": (gt) => ht.units = gt,
|
|
8467
|
+
description: c(m) ? void 0 : `${c(v)("booking.availability.availableUnits")}: ${O(mt.id, ht.id)}`,
|
|
8458
8468
|
icon: "house",
|
|
8459
8469
|
"icon-type": "fas",
|
|
8460
8470
|
"icon-placement": "label",
|
|
8461
8471
|
label: c(v)("booking.availability.units"),
|
|
8462
8472
|
minValue: 0,
|
|
8463
|
-
"max-value":
|
|
8473
|
+
"max-value": O(j, ht.id) || 1 / 0
|
|
8464
8474
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
|
|
8465
8475
|
]))
|
|
8466
8476
|
]))), 128)) : R("", !0)
|
|
@@ -8479,7 +8489,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8479
8489
|
_: 1
|
|
8480
8490
|
}, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
|
|
8481
8491
|
}
|
|
8482
|
-
}), ds = /* @__PURE__ */
|
|
8492
|
+
}), ds = /* @__PURE__ */ qt(kl, [["__scopeId", "data-v-515169b8"]]), wl = { class: "konnectio-template-side-panel" }, Pl = { class: "konnectio-template-side-panel-listings" }, Cl = /* @__PURE__ */ Zt({
|
|
8483
8493
|
__name: "Template",
|
|
8484
8494
|
props: {
|
|
8485
8495
|
title: {},
|
|
@@ -8489,7 +8499,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8489
8499
|
callback: { type: Function }
|
|
8490
8500
|
},
|
|
8491
8501
|
setup(a) {
|
|
8492
|
-
const { t: u } =
|
|
8502
|
+
const { t: u } = Wt(), { templateID: h, roomGroupID: p, selectionHasNoAddons: v } = $t(me()), { currency: o } = $t(ze()), { clearRoomSelection: r } = me(), d = a, f = Vt(!0), m = Ct(() => {
|
|
8493
8503
|
function g(w, P) {
|
|
8494
8504
|
return f.value === !0 ? w.extraPrice > P.extraPrice ? -1 : 1 : w.extraPrice > P.extraPrice ? 1 : -1;
|
|
8495
8505
|
}
|
|
@@ -8509,13 +8519,13 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8509
8519
|
default: tt(() => [
|
|
8510
8520
|
k("div", wl, [
|
|
8511
8521
|
k("div", Pl, [
|
|
8512
|
-
(T(!0), A(
|
|
8522
|
+
(T(!0), A(ft, null, St(m.value, ({
|
|
8513
8523
|
id: P,
|
|
8514
8524
|
title: S,
|
|
8515
8525
|
description: x,
|
|
8516
8526
|
images: H,
|
|
8517
8527
|
facilities: B,
|
|
8518
|
-
extraPrice:
|
|
8528
|
+
extraPrice: O
|
|
8519
8529
|
}) => (T(), rt(fn, {
|
|
8520
8530
|
type: "hotel",
|
|
8521
8531
|
key: P,
|
|
@@ -8529,9 +8539,9 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8529
8539
|
}, {
|
|
8530
8540
|
action: tt(() => [
|
|
8531
8541
|
k("div", null, [
|
|
8532
|
-
Z(
|
|
8542
|
+
Z(_e, {
|
|
8533
8543
|
onClickEvent: (W) => y(P),
|
|
8534
|
-
label: `${c(u)("booking.availability.selectThisRoom")} (${c(
|
|
8544
|
+
label: `${c(u)("booking.availability.selectThisRoom")} (${c(se)(O, c(o))})`,
|
|
8535
8545
|
"full-width": ""
|
|
8536
8546
|
}, null, 8, ["onClickEvent", "label"])
|
|
8537
8547
|
])
|
|
@@ -8544,7 +8554,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8544
8554
|
_: 1
|
|
8545
8555
|
}, 8, ["title", "subtitle"]));
|
|
8546
8556
|
}
|
|
8547
|
-
}), Tl = /* @__PURE__ */
|
|
8557
|
+
}), Tl = /* @__PURE__ */ qt(Cl, [["__scopeId", "data-v-a323d25a"]]), xl = { class: "konnectio-template-select-package" }, Ml = /* @__PURE__ */ Zt({
|
|
8548
8558
|
__name: "Template",
|
|
8549
8559
|
props: {
|
|
8550
8560
|
id: {},
|
|
@@ -8557,10 +8567,10 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8557
8567
|
callback: { type: Function }
|
|
8558
8568
|
},
|
|
8559
8569
|
setup(a) {
|
|
8560
|
-
const { t: u } =
|
|
8570
|
+
const { t: u } = Wt(), h = a, p = Ct(() => h.roomGroups.reduce(
|
|
8561
8571
|
(d, f) => d < f.extraPrice ? d : f.extraPrice,
|
|
8562
8572
|
1 / 0
|
|
8563
|
-
)), v =
|
|
8573
|
+
)), v = Vt(!1);
|
|
8564
8574
|
function o() {
|
|
8565
8575
|
v.value = !0;
|
|
8566
8576
|
}
|
|
@@ -8580,7 +8590,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8580
8590
|
}, {
|
|
8581
8591
|
action: tt(() => [
|
|
8582
8592
|
k("div", xl, [
|
|
8583
|
-
Z(
|
|
8593
|
+
Z(_e, {
|
|
8584
8594
|
onClickEvent: o,
|
|
8585
8595
|
label: c(u)("booking.availability.selectPackage"),
|
|
8586
8596
|
"full-width": ""
|
|
@@ -8614,7 +8624,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8614
8624
|
roomGroups: {}
|
|
8615
8625
|
},
|
|
8616
8626
|
setup(a) {
|
|
8617
|
-
const { t: u } =
|
|
8627
|
+
const { t: u } = Wt(), { updateDates: h } = Ti(), { display: p } = fo(), v = a, o = Vt([]), r = Ct(() => Li(v.fromDate, v.toDate) === 1);
|
|
8618
8628
|
function d() {
|
|
8619
8629
|
o.value.length > 0 ? h(o.value[0], o.value[1]) : p({
|
|
8620
8630
|
message: u("alert.error.selectDates"),
|
|
@@ -8653,7 +8663,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8653
8663
|
range: ""
|
|
8654
8664
|
}, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
|
|
8655
8665
|
k("div", Al, [
|
|
8656
|
-
Z(
|
|
8666
|
+
Z(_e, {
|
|
8657
8667
|
label: c(u)("availability.buttonLabel"),
|
|
8658
8668
|
onClick: Ci(d, ["prevent"])
|
|
8659
8669
|
}, null, 8, ["label"])
|
|
@@ -8663,7 +8673,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8663
8673
|
_: 1
|
|
8664
8674
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
|
|
8665
8675
|
}
|
|
8666
|
-
}), Ol = /* @__PURE__ */
|
|
8676
|
+
}), Ol = /* @__PURE__ */ qt(Il, [["__scopeId", "data-v-47edd09f"]]), cs = /* @__PURE__ */ Zt({
|
|
8667
8677
|
__name: "TimeField",
|
|
8668
8678
|
props: {
|
|
8669
8679
|
modelValue: {},
|
|
@@ -8685,7 +8695,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8685
8695
|
function v(r) {
|
|
8686
8696
|
h("update:modelValue", r);
|
|
8687
8697
|
}
|
|
8688
|
-
const o =
|
|
8698
|
+
const o = Vt(p.modelValue);
|
|
8689
8699
|
return un(o, (r) => {
|
|
8690
8700
|
v(r);
|
|
8691
8701
|
}), (r, d) => (T(), rt(ws, {
|
|
@@ -8717,7 +8727,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8717
8727
|
},
|
|
8718
8728
|
emits: ["update:modelValue"],
|
|
8719
8729
|
setup(a, { emit: u }) {
|
|
8720
|
-
const { t: h } =
|
|
8730
|
+
const { t: h } = Wt(), p = u, v = a;
|
|
8721
8731
|
function o(d) {
|
|
8722
8732
|
p("update:modelValue", d);
|
|
8723
8733
|
}
|
|
@@ -8752,7 +8762,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8752
8762
|
_: 1
|
|
8753
8763
|
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
8754
8764
|
}
|
|
8755
|
-
}), Bl = /* @__PURE__ */
|
|
8765
|
+
}), Bl = /* @__PURE__ */ qt(El, [["__scopeId", "data-v-a94e1728"]]), Zl = /* @__PURE__ */ Zt({
|
|
8756
8766
|
__name: "NameField",
|
|
8757
8767
|
props: {
|
|
8758
8768
|
modelValue: {},
|
|
@@ -8773,14 +8783,14 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8773
8783
|
},
|
|
8774
8784
|
emits: ["update:modelValue", "update:title"],
|
|
8775
8785
|
setup(a, { emit: u }) {
|
|
8776
|
-
const h = a, p = u, v = h.id || is(), o =
|
|
8786
|
+
const h = a, p = u, v = h.id || is(), o = Vt(""), r = Vt(2);
|
|
8777
8787
|
function d() {
|
|
8778
8788
|
p("update:modelValue", o.value);
|
|
8779
8789
|
}
|
|
8780
8790
|
un(r, (m) => {
|
|
8781
8791
|
p("update:title", m);
|
|
8782
8792
|
});
|
|
8783
|
-
const { t: f } =
|
|
8793
|
+
const { t: f } = Wt();
|
|
8784
8794
|
return co(() => {
|
|
8785
8795
|
h.modelValue && (o.value = h.modelValue), h.title && (r.value = h.title);
|
|
8786
8796
|
}), (m, y) => (T(), rt(Vr, {
|
|
@@ -8853,7 +8863,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8853
8863
|
_: 1
|
|
8854
8864
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
8855
8865
|
}
|
|
8856
|
-
}), Dl = /* @__PURE__ */
|
|
8866
|
+
}), Dl = /* @__PURE__ */ qt(Zl, [["__scopeId", "data-v-9d27a2bc"]]), Nl = { class: "hotel-skeleton" }, Rl = { class: "hotel-skeleton-content" }, Hl = { class: "hotel-skeleton-sidebar" }, Vl = /* @__PURE__ */ Zt({
|
|
8857
8867
|
__name: "HotelSkeleton",
|
|
8858
8868
|
setup(a) {
|
|
8859
8869
|
return (u, h) => (T(), A("div", Nl, [
|
|
@@ -8866,7 +8876,7 @@ const cl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8866
8876
|
])
|
|
8867
8877
|
]));
|
|
8868
8878
|
}
|
|
8869
|
-
}), Fl = /* @__PURE__ */
|
|
8879
|
+
}), Fl = /* @__PURE__ */ qt(Vl, [["__scopeId", "data-v-1bb21da4"]]), Gl = { id: "booking-availability-container" }, Ul = { id: "booking-availability-controls" }, $l = {
|
|
8870
8880
|
key: 0,
|
|
8871
8881
|
class: "konnectio-panel konnectio-filter-notice"
|
|
8872
8882
|
}, Wl = ["innerHTML"], ql = {
|
|
@@ -8939,7 +8949,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
8939
8949
|
styling: {}
|
|
8940
8950
|
},
|
|
8941
8951
|
setup(a) {
|
|
8942
|
-
const u = Or(() => import("./_-
|
|
8952
|
+
const u = Or(() => import("./_-CfgSgpLg.js")), h = a, { t: p } = Wt(), {
|
|
8943
8953
|
currentLocation: v,
|
|
8944
8954
|
templateID: o,
|
|
8945
8955
|
templateAddons: r,
|
|
@@ -8954,40 +8964,40 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
8954
8964
|
nameTitle: x,
|
|
8955
8965
|
email: H,
|
|
8956
8966
|
phone: B,
|
|
8957
|
-
firmName:
|
|
8967
|
+
firmName: O,
|
|
8958
8968
|
postal: W,
|
|
8959
8969
|
city: lt,
|
|
8960
|
-
address:
|
|
8961
|
-
country:
|
|
8962
|
-
remark:
|
|
8963
|
-
allergies:
|
|
8964
|
-
roomSelect:
|
|
8965
|
-
roomDisplay:
|
|
8966
|
-
hasValidRoomSelection:
|
|
8970
|
+
address: at,
|
|
8971
|
+
country: Tt,
|
|
8972
|
+
remark: xt,
|
|
8973
|
+
allergies: V,
|
|
8974
|
+
roomSelect: nt,
|
|
8975
|
+
roomDisplay: mt,
|
|
8976
|
+
hasValidRoomSelection: ut,
|
|
8967
8977
|
availabilityData: j,
|
|
8968
|
-
selectionHasNoAddons:
|
|
8969
|
-
isAvailabilityDataAvailable:
|
|
8970
|
-
getSelectedPackageRoom:
|
|
8971
|
-
selectedPackage:
|
|
8972
|
-
isSearchOutdated:
|
|
8973
|
-
currentChildren:
|
|
8974
|
-
isTemplateReservation:
|
|
8978
|
+
selectionHasNoAddons: Dt,
|
|
8979
|
+
isAvailabilityDataAvailable: ht,
|
|
8980
|
+
getSelectedPackageRoom: jt,
|
|
8981
|
+
selectedPackage: gt,
|
|
8982
|
+
isSearchOutdated: re,
|
|
8983
|
+
currentChildren: G,
|
|
8984
|
+
isTemplateReservation: ge,
|
|
8975
8985
|
newsMails: N,
|
|
8976
8986
|
adultsMismatch: K,
|
|
8977
8987
|
childrenMismatch: Lt,
|
|
8978
|
-
totalAdults:
|
|
8979
|
-
totalChildren:
|
|
8988
|
+
totalAdults: ot,
|
|
8989
|
+
totalChildren: pt,
|
|
8980
8990
|
hasGuestDiscountId: et,
|
|
8981
8991
|
guestDiscountId: X,
|
|
8982
|
-
guestDiscountName:
|
|
8983
|
-
} =
|
|
8992
|
+
guestDiscountName: Nt
|
|
8993
|
+
} = $t(me()), {
|
|
8984
8994
|
adults: yt,
|
|
8985
|
-
children:
|
|
8986
|
-
location:
|
|
8995
|
+
children: ae,
|
|
8996
|
+
location: Yt,
|
|
8987
8997
|
arrivalDate: qe,
|
|
8988
8998
|
departureDate: we,
|
|
8989
8999
|
hasHotelLocations: je
|
|
8990
|
-
} =
|
|
9000
|
+
} = $t(Ti()), { isValidHotelId: pn, updateDates: xi } = Ti(), {
|
|
8991
9001
|
currency: Ee,
|
|
8992
9002
|
enableTracking: Ye,
|
|
8993
9003
|
disableNamePrefix: Be,
|
|
@@ -9002,7 +9012,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9002
9012
|
disableNewsletterSignup: Ii,
|
|
9003
9013
|
hasActiveIdFilter: Qe,
|
|
9004
9014
|
hotelSettings: ti
|
|
9005
|
-
} =
|
|
9015
|
+
} = $t(ze()), {
|
|
9006
9016
|
hasArrivalDepartureInputs: Oi,
|
|
9007
9017
|
hasUserArrivalSelection: Ze,
|
|
9008
9018
|
hasUserDepartureSelection: ei,
|
|
@@ -9022,7 +9032,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9022
9032
|
hasAvailableRoomAddons: kn,
|
|
9023
9033
|
clearGuestDiscountId: po,
|
|
9024
9034
|
checkGuestDiscount: oi
|
|
9025
|
-
} =
|
|
9035
|
+
} = me(), wn = Vt(!0), Pn = Ct(() => [
|
|
9026
9036
|
{
|
|
9027
9037
|
id: "availability",
|
|
9028
9038
|
label: p("booking.availability.title"),
|
|
@@ -9062,21 +9072,21 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9062
9072
|
label: p("booking.reservation.bleasure"),
|
|
9063
9073
|
value: "Bleasure"
|
|
9064
9074
|
}), E;
|
|
9065
|
-
}),
|
|
9075
|
+
}), Qt = Ct(() => {
|
|
9066
9076
|
let E = j.value.roomGroups.slice();
|
|
9067
9077
|
function $(kt, J) {
|
|
9068
9078
|
return wn.value === !0 ? kt.pricesFrom > J.pricesFrom ? -1 : 1 : kt.pricesFrom > J.pricesFrom ? 1 : -1;
|
|
9069
9079
|
}
|
|
9070
9080
|
return h.sortBy === "price" && (E = E.sort($)), Object.groupBy(E, (kt) => kt.roomList.some((J) => J.mapImageX && J.mapImageY) ? "camping" : "rooms");
|
|
9071
|
-
}),
|
|
9081
|
+
}), Rt = Ct(() => h.hideAddons === "yes" || ge.value && h.hideAddons === "packages" || !ge.value && h.hideAddons === "rooms");
|
|
9072
9082
|
function D(E) {
|
|
9073
|
-
|
|
9083
|
+
Rt.value || Dt.value ? E(2) : E(), Zi();
|
|
9074
9084
|
}
|
|
9075
9085
|
async function Ni(E, $) {
|
|
9076
9086
|
await bn(E, $);
|
|
9077
9087
|
}
|
|
9078
9088
|
function Ri() {
|
|
9079
|
-
if (isNaN(
|
|
9089
|
+
if (isNaN(Yt.value) && je.value) {
|
|
9080
9090
|
Ce({
|
|
9081
9091
|
message: p("alert.error.selectHotelId"),
|
|
9082
9092
|
type: "error"
|
|
@@ -9092,24 +9102,24 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9092
9102
|
vn(), E.id = void 0, ni();
|
|
9093
9103
|
}
|
|
9094
9104
|
function Vi(E) {
|
|
9095
|
-
Ye.value && yn(),
|
|
9105
|
+
Ye.value && yn(), Rt.value || Dt.value ? E(2) : E();
|
|
9096
9106
|
}
|
|
9097
9107
|
function si() {
|
|
9098
|
-
h.forceArrivalTime && h.forceDepartureTime && (ti.value[
|
|
9108
|
+
h.forceArrivalTime && h.forceDepartureTime && (ti.value[Yt.value].disableArrivalUserSelection = !0, h.forceArrivalTime && (ti.value[Yt.value].arrivalDefault = h.forceArrivalTime), h.forceDepartureTime && (ti.value[Yt.value].departureDefault = h.forceDepartureTime));
|
|
9099
9109
|
}
|
|
9100
9110
|
async function ri() {
|
|
9101
9111
|
si();
|
|
9102
9112
|
const E = so("history", {
|
|
9103
9113
|
removeNullishValues: !0
|
|
9104
|
-
}), $ = parseInt(E.a), kt = parseInt(E.c), J = parseInt(E.hid),
|
|
9105
|
-
let
|
|
9106
|
-
if (isNaN($) || ($ > Xe.value ? yt.value = Xe.value : yt.value = $, yt.value === mn.value && (E.a = void 0)), isNaN(kt) || (kt > Ai.value ?
|
|
9114
|
+
}), $ = parseInt(E.a), kt = parseInt(E.c), J = parseInt(E.hid), dt = parseInt(E.n), U = E.ci, zt = E.co, _t = E.id, Et = parseInt(E.gid);
|
|
9115
|
+
let te = !1;
|
|
9116
|
+
if (isNaN($) || ($ > Xe.value ? yt.value = Xe.value : yt.value = $, yt.value === mn.value && (E.a = void 0)), isNaN(kt) || (kt > Ai.value ? ae.value = Ai.value : ae.value = kt, ae.value === Je.value && (E.c = void 0)), isNaN(dt) || dt > 0 && (E.n = void 0), isNaN(J) || (pn(J) ? (Yt.value = J, te = !0) : (E.hid = void 0, Ce({
|
|
9107
9117
|
message: p("alert.error.hotelIdNotFound"),
|
|
9108
9118
|
type: "error"
|
|
9109
|
-
}))),
|
|
9110
|
-
if (ss(
|
|
9111
|
-
const
|
|
9112
|
-
|
|
9119
|
+
}))), U && zt)
|
|
9120
|
+
if (ss(U) && ss(zt)) {
|
|
9121
|
+
const Kt = new Date(U), De = new Date(zt);
|
|
9122
|
+
Kt <= De ? (qe.value = Kt, we.value = De) : (E.ci = void 0, E.co = void 0, Ce({
|
|
9113
9123
|
message: p("alert.error.invalidDateRange"),
|
|
9114
9124
|
type: "error"
|
|
9115
9125
|
}));
|
|
@@ -9118,11 +9128,11 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9118
9128
|
message: p("alert.error.wrongDateFormat"),
|
|
9119
9129
|
type: "error"
|
|
9120
9130
|
});
|
|
9121
|
-
if (
|
|
9131
|
+
if (_t && Pe(_t), Et) {
|
|
9122
9132
|
await oi(Et) || (E.gid = void 0);
|
|
9123
9133
|
return;
|
|
9124
9134
|
}
|
|
9125
|
-
h.disableDefaultLocation === "yes" &&
|
|
9135
|
+
h.disableDefaultLocation === "yes" && te === !1 ? (Yt.value = void 0, v.value = void 0) : ni();
|
|
9126
9136
|
}
|
|
9127
9137
|
return (E, $) => (T(), rt(Ur, { styling: E.styling }, {
|
|
9128
9138
|
default: tt(() => [
|
|
@@ -9156,7 +9166,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9156
9166
|
]),
|
|
9157
9167
|
c(et) ? (T(), A("div", $l, [
|
|
9158
9168
|
k("span", {
|
|
9159
|
-
innerHTML: c(p)("guestDiscount.displayMessage", { name: `<b>${c(
|
|
9169
|
+
innerHTML: c(p)("guestDiscount.displayMessage", { name: `<b>${c(Nt) ? c(Nt) : c(X)}</b>` })
|
|
9160
9170
|
}, null, 8, Wl)
|
|
9161
9171
|
])) : R("", !0),
|
|
9162
9172
|
c(Qe) ? (T(), A("div", ql, [
|
|
@@ -9169,11 +9179,11 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9169
9179
|
])
|
|
9170
9180
|
])) : R("", !0),
|
|
9171
9181
|
R("", !0),
|
|
9172
|
-
!c(f) && c(
|
|
9173
|
-
|
|
9182
|
+
!c(f) && c(ht) ? (T(), A("div", jl, [
|
|
9183
|
+
Qt.value.camping && Qt.value.camping.length > 0 && E.onlyShow !== "non-camping" || Qt.value.rooms && Qt.value.rooms.length > 0 || c(j).templates.length > 0 || c(j).specialTemplates.length > 0 ? (T(), A("div", Yl, [
|
|
9174
9184
|
c(j).templates.length > 0 && E.onlyShow !== "rooms" && E.onlyShow !== "camping" ? (T(), A("div", Kl, [
|
|
9175
9185
|
E.onlyShow !== "packages" ? (T(), A("h2", Xl, [
|
|
9176
|
-
Z(
|
|
9186
|
+
Z(Mt, {
|
|
9177
9187
|
icon: "box",
|
|
9178
9188
|
type: "fal",
|
|
9179
9189
|
color: "header"
|
|
@@ -9181,30 +9191,30 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9181
9191
|
k("span", null, I(c(p)("booking.availability.packagesTitle")), 1)
|
|
9182
9192
|
])) : R("", !0),
|
|
9183
9193
|
k("ul", Jl, [
|
|
9184
|
-
(T(!0), A(
|
|
9194
|
+
(T(!0), A(ft, null, St(c(j).templates, ({
|
|
9185
9195
|
id: J,
|
|
9186
|
-
name:
|
|
9187
|
-
templateRoomGroups:
|
|
9196
|
+
name: dt,
|
|
9197
|
+
templateRoomGroups: U,
|
|
9188
9198
|
images: zt,
|
|
9189
|
-
description:
|
|
9199
|
+
description: _t,
|
|
9190
9200
|
weekendFee: Et
|
|
9191
9201
|
}) => (T(), rt(Ml, {
|
|
9192
9202
|
key: J,
|
|
9193
9203
|
id: J,
|
|
9194
|
-
description:
|
|
9195
|
-
name:
|
|
9204
|
+
description: _t,
|
|
9205
|
+
name: dt,
|
|
9196
9206
|
images: zt,
|
|
9197
9207
|
weekendFee: Et,
|
|
9198
|
-
"room-groups":
|
|
9208
|
+
"room-groups": U,
|
|
9199
9209
|
callback: kt,
|
|
9200
9210
|
"hide-addons": E.hideAddons === "yes" || E.hideAddons === "packages"
|
|
9201
9211
|
}, null, 8, ["id", "description", "name", "images", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
9202
9212
|
])
|
|
9203
9213
|
])) : R("", !0),
|
|
9204
9214
|
c(j).roomGroups.length > 0 && E.onlyShow !== "packages" ? (T(), A("div", Ql, [
|
|
9205
|
-
|
|
9215
|
+
Qt.value.rooms && E.onlyShow !== "camping" ? (T(), A(ft, { key: 0 }, [
|
|
9206
9216
|
c(j).templates.length > 0 && E.onlyShow !== "rooms" ? (T(), A("h2", tu, [
|
|
9207
|
-
Z(
|
|
9217
|
+
Z(Mt, {
|
|
9208
9218
|
icon: "house",
|
|
9209
9219
|
type: "fal",
|
|
9210
9220
|
color: "header"
|
|
@@ -9212,16 +9222,16 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9212
9222
|
k("span", null, I(c(p)("booking.availability.roomsTitle")), 1)
|
|
9213
9223
|
])) : R("", !0),
|
|
9214
9224
|
k("ul", eu, [
|
|
9215
|
-
(T(!0), A(
|
|
9225
|
+
(T(!0), A(ft, null, St(Qt.value.rooms, (J, dt) => (T(), rt(ds, {
|
|
9216
9226
|
room: J,
|
|
9217
|
-
key:
|
|
9227
|
+
key: dt,
|
|
9218
9228
|
callback: kt
|
|
9219
9229
|
}, null, 8, ["room", "callback"]))), 128))
|
|
9220
9230
|
])
|
|
9221
9231
|
], 64)) : R("", !0),
|
|
9222
|
-
|
|
9232
|
+
Qt.value.camping && E.onlyShow !== "rooms" && E.onlyShow !== "non-camping" ? (T(), A(ft, { key: 1 }, [
|
|
9223
9233
|
c(j).templates.length > 0 && E.onlyShow !== "camping" ? (T(), A("h2", iu, [
|
|
9224
|
-
Z(
|
|
9234
|
+
Z(Mt, {
|
|
9225
9235
|
icon: "house",
|
|
9226
9236
|
type: "fal",
|
|
9227
9237
|
color: "header"
|
|
@@ -9229,18 +9239,18 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9229
9239
|
k("span", null, I(c(p)("booking.availability.campingTitle")), 1)
|
|
9230
9240
|
])) : R("", !0),
|
|
9231
9241
|
k("ul", nu, [
|
|
9232
|
-
(T(!0), A(
|
|
9242
|
+
(T(!0), A(ft, null, St(Qt.value.camping, (J, dt) => (T(), rt(ds, {
|
|
9233
9243
|
room: J,
|
|
9234
|
-
key:
|
|
9244
|
+
key: dt,
|
|
9235
9245
|
callback: kt
|
|
9236
9246
|
}, null, 8, ["room", "callback"]))), 128))
|
|
9237
9247
|
])
|
|
9238
9248
|
], 64)) : R("", !0)
|
|
9239
9249
|
])) : R("", !0),
|
|
9240
|
-
c(Qe) ? R("", !0) : (T(), A(
|
|
9250
|
+
c(Qe) ? R("", !0) : (T(), A(ft, { key: 2 }, [
|
|
9241
9251
|
c(j).specialTemplates.length > 0 && E.onlyShow !== "rooms" ? (T(), A("div", ou, [
|
|
9242
9252
|
k("h2", su, [
|
|
9243
|
-
Z(
|
|
9253
|
+
Z(Mt, {
|
|
9244
9254
|
icon: "sparkles",
|
|
9245
9255
|
type: "fal",
|
|
9246
9256
|
color: "header"
|
|
@@ -9248,25 +9258,25 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9248
9258
|
k("span", null, I(c(p)("hotel.specialOffers")), 1)
|
|
9249
9259
|
]),
|
|
9250
9260
|
k("ul", ru, [
|
|
9251
|
-
(T(!0), A(
|
|
9261
|
+
(T(!0), A(ft, null, St(c(j).specialTemplates, ({
|
|
9252
9262
|
id: J,
|
|
9253
|
-
name:
|
|
9254
|
-
templateRoomGroups:
|
|
9263
|
+
name: dt,
|
|
9264
|
+
templateRoomGroups: U,
|
|
9255
9265
|
images: zt,
|
|
9256
|
-
description:
|
|
9266
|
+
description: _t,
|
|
9257
9267
|
weekendFee: Et,
|
|
9258
|
-
fromDate:
|
|
9259
|
-
toDate:
|
|
9268
|
+
fromDate: te,
|
|
9269
|
+
toDate: Kt
|
|
9260
9270
|
}) => (T(), rt(Ol, {
|
|
9261
9271
|
key: J,
|
|
9262
9272
|
id: J,
|
|
9263
|
-
description:
|
|
9264
|
-
name:
|
|
9273
|
+
description: _t,
|
|
9274
|
+
name: dt,
|
|
9265
9275
|
images: zt,
|
|
9266
|
-
fromDate:
|
|
9267
|
-
toDate:
|
|
9276
|
+
fromDate: te,
|
|
9277
|
+
toDate: Kt,
|
|
9268
9278
|
weekendFee: Et,
|
|
9269
|
-
"room-groups":
|
|
9279
|
+
"room-groups": U
|
|
9270
9280
|
}, null, 8, ["id", "description", "name", "images", "fromDate", "toDate", "weekendFee", "room-groups"]))), 128))
|
|
9271
9281
|
])
|
|
9272
9282
|
])) : R("", !0)
|
|
@@ -9278,7 +9288,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9278
9288
|
k("span", null, I(c(p)("booking.availability.nothingAvailable")), 1)
|
|
9279
9289
|
])) : (T(), A("div", uu, [
|
|
9280
9290
|
k("h2", hu, [
|
|
9281
|
-
Z(
|
|
9291
|
+
Z(Mt, {
|
|
9282
9292
|
icon: "calendar-circle-exclamation",
|
|
9283
9293
|
type: "fal",
|
|
9284
9294
|
color: "header"
|
|
@@ -9286,15 +9296,15 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9286
9296
|
k("span", null, I(c(p)("booking.availability.nextAvailableDates")), 1)
|
|
9287
9297
|
]),
|
|
9288
9298
|
k("ul", du, [
|
|
9289
|
-
(T(!0), A(
|
|
9299
|
+
(T(!0), A(ft, null, St(c(j).nextAvailableDates, (J, dt) => (T(), A("li", { key: dt }, [
|
|
9290
9300
|
k("h3", {
|
|
9291
|
-
title: `${c(
|
|
9301
|
+
title: `${c(oe)(J.fromDate, 0, !0)} - ${c(oe)(J.toDate, 0, !0)}`
|
|
9292
9302
|
}, [
|
|
9293
|
-
k("span", null, I(`${c(
|
|
9303
|
+
k("span", null, I(`${c(oe)(J.fromDate, 0, !0)} - ${c(oe)(J.toDate, 0, !0)}`), 1)
|
|
9294
9304
|
], 8, cu),
|
|
9295
9305
|
k("ul", null, [
|
|
9296
9306
|
isNaN(J.roomCount) ? R("", !0) : (T(), A("li", fu, [
|
|
9297
|
-
Z(
|
|
9307
|
+
Z(Mt, {
|
|
9298
9308
|
icon: "house",
|
|
9299
9309
|
type: "fal",
|
|
9300
9310
|
color: "header"
|
|
@@ -9302,18 +9312,18 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9302
9312
|
k("span", null, I(c(p)("booking.availability.units")) + ": " + I(J.roomCount), 1)
|
|
9303
9313
|
])),
|
|
9304
9314
|
k("li", null, [
|
|
9305
|
-
Z(
|
|
9315
|
+
Z(Mt, {
|
|
9306
9316
|
icon: "money-bill",
|
|
9307
9317
|
type: "fal",
|
|
9308
9318
|
color: "header"
|
|
9309
9319
|
}),
|
|
9310
|
-
k("span", null, I(c(p)("booking.availability.pricesFrom")) + ": " + I(c(
|
|
9320
|
+
k("span", null, I(c(p)("booking.availability.pricesFrom")) + ": " + I(c(se)(J.priceStartFrom, c(Ee))), 1)
|
|
9311
9321
|
])
|
|
9312
9322
|
]),
|
|
9313
|
-
Z(
|
|
9323
|
+
Z(_e, {
|
|
9314
9324
|
label: c(p)("booking.availability.selectDates"),
|
|
9315
9325
|
"full-width": "",
|
|
9316
|
-
onClickEvent: (
|
|
9326
|
+
onClickEvent: (U) => c(xi)(new Date(J.fromDate), new Date(J.toDate))
|
|
9317
9327
|
}, null, 8, ["label", "onClickEvent"])
|
|
9318
9328
|
]))), 128))
|
|
9319
9329
|
])
|
|
@@ -9328,34 +9338,34 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9328
9338
|
])
|
|
9329
9339
|
]),
|
|
9330
9340
|
navigation: tt(() => [
|
|
9331
|
-
c(
|
|
9341
|
+
c(re) ? (T(), rt(_e, {
|
|
9332
9342
|
key: 0,
|
|
9333
9343
|
label: isNaN(c(v)) ? c(p)("availability.buttonLabel") : c(p)("general.searchAgain"),
|
|
9334
9344
|
"is-loading": c(f),
|
|
9335
9345
|
"full-width": "",
|
|
9336
9346
|
onClickEvent: $[2] || ($[2] = (J) => Ri())
|
|
9337
|
-
}, null, 8, ["label", "is-loading"])) : (T(), rt(
|
|
9347
|
+
}, null, 8, ["label", "is-loading"])) : (T(), rt(_e, {
|
|
9338
9348
|
key: 1,
|
|
9339
|
-
label: c(
|
|
9340
|
-
disabled: !c(
|
|
9349
|
+
label: c(Dt) || Rt.value ? c(p)("booking.availability.nextButton") : c(p)("general.chooseAddons"),
|
|
9350
|
+
disabled: !c(ut),
|
|
9341
9351
|
"full-width": "",
|
|
9342
9352
|
onClickEvent: (J) => Vi(kt)
|
|
9343
9353
|
}, null, 8, ["label", "disabled", "onClickEvent"])),
|
|
9344
9354
|
ke(k("span", mu, [
|
|
9345
|
-
Z(
|
|
9355
|
+
Z(Mt, {
|
|
9346
9356
|
icon: "exclamation-triangle",
|
|
9347
9357
|
type: "fas"
|
|
9348
9358
|
}),
|
|
9349
|
-
k("span", null, I(c(p)("hotel.mismatchingAdults", { searchAdults: c(yt), selectedAdults: c(
|
|
9359
|
+
k("span", null, I(c(p)("hotel.mismatchingAdults", { searchAdults: c(yt), selectedAdults: c(ot) })), 1)
|
|
9350
9360
|
], 512), [
|
|
9351
9361
|
[Ie, c(K)]
|
|
9352
9362
|
]),
|
|
9353
9363
|
ke(k("span", gu, [
|
|
9354
|
-
Z(
|
|
9364
|
+
Z(Mt, {
|
|
9355
9365
|
icon: "exclamation-triangle",
|
|
9356
9366
|
type: "fas"
|
|
9357
9367
|
}),
|
|
9358
|
-
k("span", null, I(c(p)("hotel.mismatchingChildren", { searchChildren: c(
|
|
9368
|
+
k("span", null, I(c(p)("hotel.mismatchingChildren", { searchChildren: c(ae), selectedChildren: c(pt) })), 1)
|
|
9359
9369
|
], 512), [
|
|
9360
9370
|
[Ie, c(Lt)]
|
|
9361
9371
|
])
|
|
@@ -9364,7 +9374,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9364
9374
|
}, 1024)
|
|
9365
9375
|
]),
|
|
9366
9376
|
addons: tt(({ next: kt, prev: J }) => [
|
|
9367
|
-
c(
|
|
9377
|
+
c(ht) ? (T(), rt(oo, {
|
|
9368
9378
|
key: 0,
|
|
9369
9379
|
"prev-callback": () => D(J)
|
|
9370
9380
|
}, {
|
|
@@ -9375,68 +9385,68 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9375
9385
|
]),
|
|
9376
9386
|
k("div", null, [
|
|
9377
9387
|
isNaN(c(o)) ? (T(), A("div", yu, [
|
|
9378
|
-
(T(!0), A(
|
|
9379
|
-
key:
|
|
9388
|
+
(T(!0), A(ft, null, St(c(mt), (dt) => (T(), A(ft, {
|
|
9389
|
+
key: dt.roomGroupID
|
|
9380
9390
|
}, [
|
|
9381
|
-
c(kn)(
|
|
9382
|
-
(T(!0), A(
|
|
9383
|
-
key:
|
|
9391
|
+
c(kn)(dt) ? (T(), A("ul", bu, [
|
|
9392
|
+
(T(!0), A(ft, null, St(dt.variants, (U, zt) => (T(), A("li", {
|
|
9393
|
+
key: U.ratePlanID
|
|
9384
9394
|
}, [
|
|
9385
9395
|
k("h4", null, [
|
|
9386
|
-
k("span", null, I(c(
|
|
9396
|
+
k("span", null, I(c(pe)(dt.title)), 1)
|
|
9387
9397
|
]),
|
|
9388
|
-
(T(!0), A(
|
|
9398
|
+
(T(!0), A(ft, null, St(U.rooms, (_t, Et) => (T(), A("table", {
|
|
9389
9399
|
key: Et,
|
|
9390
9400
|
class: "konnectio-table with-lines without-header"
|
|
9391
9401
|
}, [
|
|
9392
9402
|
k("thead", null, [
|
|
9393
9403
|
k("tr", null, [
|
|
9394
9404
|
k("th", null, [
|
|
9395
|
-
k("span", null, I(c(
|
|
9405
|
+
k("span", null, I(c(pe)(U.name)), 1)
|
|
9396
9406
|
]),
|
|
9397
9407
|
R("", !0),
|
|
9398
9408
|
k("th", Lu, [
|
|
9399
9409
|
k("b", null, [
|
|
9400
|
-
Z(
|
|
9410
|
+
Z(Mt, {
|
|
9401
9411
|
icon: "male",
|
|
9402
9412
|
type: "fas",
|
|
9403
9413
|
color: "font"
|
|
9404
9414
|
}),
|
|
9405
|
-
k("span", null, I(
|
|
9406
|
-
|
|
9415
|
+
k("span", null, I(_t.adultsCount), 1),
|
|
9416
|
+
_t.childrenCount > 0 ? (T(), rt(Mt, {
|
|
9407
9417
|
key: 0,
|
|
9408
9418
|
icon: "child",
|
|
9409
9419
|
type: "fas",
|
|
9410
9420
|
color: "font"
|
|
9411
9421
|
})) : R("", !0),
|
|
9412
|
-
|
|
9422
|
+
_t.childrenCount > 0 ? (T(), A("span", ku, I(_t.childrenCount), 1)) : R("", !0)
|
|
9413
9423
|
])
|
|
9414
9424
|
])
|
|
9415
9425
|
])
|
|
9416
9426
|
]),
|
|
9417
9427
|
k("tbody", null, [
|
|
9418
|
-
(T(!0), A(
|
|
9419
|
-
cardinality:
|
|
9420
|
-
quantityStrategy:
|
|
9428
|
+
(T(!0), A(ft, null, St(c(Di)(U.addons, _t.childrenCount), ({
|
|
9429
|
+
cardinality: te,
|
|
9430
|
+
quantityStrategy: Kt,
|
|
9421
9431
|
maximumNumber: De,
|
|
9422
9432
|
id: ai,
|
|
9423
9433
|
name: Tn,
|
|
9424
9434
|
price: li,
|
|
9425
|
-
image:
|
|
9435
|
+
image: le,
|
|
9426
9436
|
description: ui
|
|
9427
9437
|
}) => (T(), A("tr", { key: ai }, [
|
|
9428
9438
|
k("td", {
|
|
9429
|
-
class: Oe(["konnectio-table-addons-information", { "has-image":
|
|
9439
|
+
class: Oe(["konnectio-table-addons-information", { "has-image": le }])
|
|
9430
9440
|
}, [
|
|
9431
|
-
|
|
9441
|
+
le ? (T(), A("div", wu, [
|
|
9432
9442
|
Z(c(Sa), {
|
|
9433
|
-
src:
|
|
9443
|
+
src: le,
|
|
9434
9444
|
"zoom-scale": 1
|
|
9435
9445
|
}, null, 8, ["src"])
|
|
9436
9446
|
])) : R("", !0),
|
|
9437
9447
|
k("div", null, [
|
|
9438
|
-
k("b", null, I(c(
|
|
9439
|
-
k("span", null, I(c(
|
|
9448
|
+
k("b", null, I(c(pe)(Tn)), 1),
|
|
9449
|
+
k("span", null, I(c(se)(li, c(Ee))) + " " + I(c(ns)(Kt)), 1),
|
|
9440
9450
|
ui ? (T(), A("p", {
|
|
9441
9451
|
key: 0,
|
|
9442
9452
|
innerHTML: c(Gr)(ui)
|
|
@@ -9444,8 +9454,8 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9444
9454
|
])
|
|
9445
9455
|
], 2),
|
|
9446
9456
|
k("td", Cu, [
|
|
9447
|
-
c(
|
|
9448
|
-
|
|
9457
|
+
c(nt)[dt.roomGroupID][zt].config[_t.configIdx].addons[_t.roomIdx] ? (T(), A(ft, { key: 0 }, [
|
|
9458
|
+
te === c(os).Mandatory ? (T(), rt(ki, {
|
|
9449
9459
|
key: 0,
|
|
9450
9460
|
"model-value": 1,
|
|
9451
9461
|
small: !0,
|
|
@@ -9454,8 +9464,8 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9454
9464
|
readonly: ""
|
|
9455
9465
|
})) : (T(), rt(ki, {
|
|
9456
9466
|
key: 1,
|
|
9457
|
-
modelValue: c(
|
|
9458
|
-
"onUpdate:modelValue": (Fi) => c(
|
|
9467
|
+
modelValue: c(nt)[dt.roomGroupID][zt].config[_t.configIdx].addons[_t.roomIdx][ai],
|
|
9468
|
+
"onUpdate:modelValue": (Fi) => c(nt)[dt.roomGroupID][zt].config[_t.configIdx].addons[_t.roomIdx][ai] = Fi,
|
|
9459
9469
|
small: !0,
|
|
9460
9470
|
"min-value": 0,
|
|
9461
9471
|
"max-value": De || 1 / 0
|
|
@@ -9468,36 +9478,36 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9468
9478
|
]))), 128))
|
|
9469
9479
|
])) : R("", !0)
|
|
9470
9480
|
], 64))), 128))
|
|
9471
|
-
])) : c(
|
|
9481
|
+
])) : c(jt) ? (T(), A("div", Tu, [
|
|
9472
9482
|
k("div", null, [
|
|
9473
9483
|
k("h4", null, [
|
|
9474
|
-
k("span", null, I(c(
|
|
9484
|
+
k("span", null, I(c(gt).name), 1)
|
|
9475
9485
|
]),
|
|
9476
9486
|
k("table", xu, [
|
|
9477
9487
|
k("thead", null, [
|
|
9478
9488
|
k("tr", null, [
|
|
9479
9489
|
k("th", null, [
|
|
9480
|
-
k("span", null, I(c(
|
|
9490
|
+
k("span", null, I(c(pe)(c(jt).title)), 1)
|
|
9481
9491
|
]),
|
|
9482
9492
|
R("", !0),
|
|
9483
9493
|
$[20] || ($[20] = k("th", { class: "konnectio-event-addons-price" }, null, -1))
|
|
9484
9494
|
])
|
|
9485
9495
|
]),
|
|
9486
9496
|
k("tbody", null, [
|
|
9487
|
-
(T(!0), A(
|
|
9488
|
-
cardinality:
|
|
9489
|
-
quantityStrategy:
|
|
9497
|
+
(T(!0), A(ft, null, St(c(Di)(c(jt).addons, c(G)), ({
|
|
9498
|
+
cardinality: dt,
|
|
9499
|
+
quantityStrategy: U,
|
|
9490
9500
|
maximumNumber: zt,
|
|
9491
|
-
id:
|
|
9501
|
+
id: _t,
|
|
9492
9502
|
name: Et,
|
|
9493
|
-
price:
|
|
9494
|
-
}) => (T(), A("tr", { key:
|
|
9503
|
+
price: te
|
|
9504
|
+
}) => (T(), A("tr", { key: _t }, [
|
|
9495
9505
|
k("td", Mu, [
|
|
9496
|
-
k("b", null, I(c(
|
|
9497
|
-
k("span", null, I(c(
|
|
9506
|
+
k("b", null, I(c(pe)(Et)), 1),
|
|
9507
|
+
k("span", null, I(c(se)(te, c(Ee))) + " " + I(c(ns)(U)), 1)
|
|
9498
9508
|
]),
|
|
9499
9509
|
k("td", Su, [
|
|
9500
|
-
|
|
9510
|
+
dt === c(os).Mandatory ? (T(), rt(ki, {
|
|
9501
9511
|
key: 0,
|
|
9502
9512
|
"model-value": 1,
|
|
9503
9513
|
small: !0,
|
|
@@ -9506,8 +9516,8 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9506
9516
|
readonly: ""
|
|
9507
9517
|
})) : (T(), rt(ki, {
|
|
9508
9518
|
key: 1,
|
|
9509
|
-
modelValue: c(r)[
|
|
9510
|
-
"onUpdate:modelValue": (
|
|
9519
|
+
modelValue: c(r)[_t],
|
|
9520
|
+
"onUpdate:modelValue": (Kt) => c(r)[_t] = Kt,
|
|
9511
9521
|
small: !0,
|
|
9512
9522
|
"min-value": 0,
|
|
9513
9523
|
"max-value": zt || 1 / 0
|
|
@@ -9522,7 +9532,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9522
9532
|
])
|
|
9523
9533
|
]),
|
|
9524
9534
|
navigation: tt(() => [
|
|
9525
|
-
Z(
|
|
9535
|
+
Z(_e, {
|
|
9526
9536
|
label: c(p)("general.startReservation"),
|
|
9527
9537
|
"full-width": "",
|
|
9528
9538
|
onClickEvent: kt
|
|
@@ -9531,8 +9541,8 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9531
9541
|
_: 2
|
|
9532
9542
|
}, 1032, ["prev-callback"])) : R("", !0)
|
|
9533
9543
|
]),
|
|
9534
|
-
reservation: tt(({ next: kt, prev: J, reset:
|
|
9535
|
-
c(
|
|
9544
|
+
reservation: tt(({ next: kt, prev: J, reset: dt }) => [
|
|
9545
|
+
c(ht) ? (T(), rt(oo, {
|
|
9536
9546
|
key: 0,
|
|
9537
9547
|
"prev-callback": () => D(J),
|
|
9538
9548
|
"show-terms-notice": !0,
|
|
@@ -9550,7 +9560,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9550
9560
|
c(Ze)(c(v)) ? (T(), A("li", Iu, [
|
|
9551
9561
|
Z(cs, {
|
|
9552
9562
|
modelValue: c(w),
|
|
9553
|
-
"onUpdate:modelValue": $[3] || ($[3] = (
|
|
9563
|
+
"onUpdate:modelValue": $[3] || ($[3] = (U) => It(w) ? w.value = U : null),
|
|
9554
9564
|
label: c(p)("booking.reservation.arrivalTime"),
|
|
9555
9565
|
icon: "hourglass-start",
|
|
9556
9566
|
"min-time": c(zi)(c(v)),
|
|
@@ -9561,7 +9571,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9561
9571
|
c(ei)(c(v)) ? (T(), A("li", Ou, [
|
|
9562
9572
|
Z(cs, {
|
|
9563
9573
|
modelValue: c(P),
|
|
9564
|
-
"onUpdate:modelValue": $[4] || ($[4] = (
|
|
9574
|
+
"onUpdate:modelValue": $[4] || ($[4] = (U) => It(P) ? P.value = U : null),
|
|
9565
9575
|
label: c(p)("booking.reservation.departureTime"),
|
|
9566
9576
|
icon: "hourglass-end",
|
|
9567
9577
|
"min-time": c(Ei)(c(v)),
|
|
@@ -9572,9 +9582,9 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9572
9582
|
], 2)) : R("", !0),
|
|
9573
9583
|
Z(Dl, {
|
|
9574
9584
|
modelValue: c(S),
|
|
9575
|
-
"onUpdate:modelValue": $[5] || ($[5] = (
|
|
9585
|
+
"onUpdate:modelValue": $[5] || ($[5] = (U) => It(S) ? S.value = U : null),
|
|
9576
9586
|
title: c(x),
|
|
9577
|
-
"onUpdate:title": $[6] || ($[6] = (
|
|
9587
|
+
"onUpdate:title": $[6] || ($[6] = (U) => It(x) ? x.value = U : null),
|
|
9578
9588
|
"exclude-title": c(Be),
|
|
9579
9589
|
label: c(p)("booking.reservation.name"),
|
|
9580
9590
|
icon: "user-alt",
|
|
@@ -9583,7 +9593,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9583
9593
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
9584
9594
|
Z(be, {
|
|
9585
9595
|
modelValue: c(H),
|
|
9586
|
-
"onUpdate:modelValue": $[7] || ($[7] = (
|
|
9596
|
+
"onUpdate:modelValue": $[7] || ($[7] = (U) => It(H) ? H.value = U : null),
|
|
9587
9597
|
type: "email",
|
|
9588
9598
|
name: "email",
|
|
9589
9599
|
autocomplete: "email",
|
|
@@ -9596,7 +9606,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9596
9606
|
c(Ii) ? R("", !0) : (T(), A("div", zu, [
|
|
9597
9607
|
Z(ro, {
|
|
9598
9608
|
modelValue: c(N),
|
|
9599
|
-
"onUpdate:modelValue": $[8] || ($[8] = (
|
|
9609
|
+
"onUpdate:modelValue": $[8] || ($[8] = (U) => It(N) ? N.value = U : null),
|
|
9600
9610
|
type: "checkbox",
|
|
9601
9611
|
name: "newsletter",
|
|
9602
9612
|
label: c(p)("booking.reservation.newsletterSignUp")
|
|
@@ -9604,8 +9614,8 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9604
9614
|
])),
|
|
9605
9615
|
c(Ke) ? R("", !0) : (T(), rt(be, {
|
|
9606
9616
|
key: 2,
|
|
9607
|
-
modelValue: c(
|
|
9608
|
-
"onUpdate:modelValue": $[9] || ($[9] = (
|
|
9617
|
+
modelValue: c(O),
|
|
9618
|
+
"onUpdate:modelValue": $[9] || ($[9] = (U) => It(O) ? O.value = U : null),
|
|
9609
9619
|
type: "text",
|
|
9610
9620
|
name: "firm",
|
|
9611
9621
|
autocomplete: "firm",
|
|
@@ -9615,23 +9625,23 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9615
9625
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
9616
9626
|
Z(sa, {
|
|
9617
9627
|
modelValue: c(B),
|
|
9618
|
-
"onUpdate:modelValue": $[10] || ($[10] = (
|
|
9628
|
+
"onUpdate:modelValue": $[10] || ($[10] = (U) => It(B) ? B.value = U : null),
|
|
9619
9629
|
icon: "phone-office",
|
|
9620
9630
|
label: c(p)("booking.reservation.phone"),
|
|
9621
9631
|
placeholder: c(p)("booking.reservation.phonePlaceholder"),
|
|
9622
9632
|
required: ""
|
|
9623
9633
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9624
9634
|
Z(Bl, {
|
|
9625
|
-
modelValue: c(
|
|
9626
|
-
"onUpdate:modelValue": $[11] || ($[11] = (
|
|
9635
|
+
modelValue: c(Tt),
|
|
9636
|
+
"onUpdate:modelValue": $[11] || ($[11] = (U) => It(Tt) ? Tt.value = U : null),
|
|
9627
9637
|
label: c(p)("booking.reservation.country"),
|
|
9628
9638
|
placeholder: c(p)("booking.reservation.countryPlaceholder"),
|
|
9629
9639
|
options: c(d),
|
|
9630
9640
|
required: ""
|
|
9631
9641
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
9632
9642
|
Z(be, {
|
|
9633
|
-
modelValue: c(
|
|
9634
|
-
"onUpdate:modelValue": $[12] || ($[12] = (
|
|
9643
|
+
modelValue: c(at),
|
|
9644
|
+
"onUpdate:modelValue": $[12] || ($[12] = (U) => It(at) ? at.value = U : null),
|
|
9635
9645
|
type: "textarea",
|
|
9636
9646
|
name: "address",
|
|
9637
9647
|
autocomplete: "street-address",
|
|
@@ -9644,7 +9654,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9644
9654
|
k("li", null, [
|
|
9645
9655
|
Z(be, {
|
|
9646
9656
|
modelValue: c(W),
|
|
9647
|
-
"onUpdate:modelValue": $[13] || ($[13] = (
|
|
9657
|
+
"onUpdate:modelValue": $[13] || ($[13] = (U) => It(W) ? W.value = U : null),
|
|
9648
9658
|
type: "text",
|
|
9649
9659
|
name: "postal",
|
|
9650
9660
|
autocomplete: "postal-code",
|
|
@@ -9657,7 +9667,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9657
9667
|
k("li", null, [
|
|
9658
9668
|
Z(be, {
|
|
9659
9669
|
modelValue: c(lt),
|
|
9660
|
-
"onUpdate:modelValue": $[14] || ($[14] = (
|
|
9670
|
+
"onUpdate:modelValue": $[14] || ($[14] = (U) => It(lt) ? lt.value = U : null),
|
|
9661
9671
|
type: "text",
|
|
9662
9672
|
name: "city",
|
|
9663
9673
|
autocomplete: "address-level2",
|
|
@@ -9669,8 +9679,8 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9669
9679
|
])
|
|
9670
9680
|
]),
|
|
9671
9681
|
Z(be, {
|
|
9672
|
-
modelValue: c(
|
|
9673
|
-
"onUpdate:modelValue": $[15] || ($[15] = (
|
|
9682
|
+
modelValue: c(xt),
|
|
9683
|
+
"onUpdate:modelValue": $[15] || ($[15] = (U) => It(xt) ? xt.value = U : null),
|
|
9674
9684
|
type: "textarea",
|
|
9675
9685
|
label: c(p)("booking.reservation.remark"),
|
|
9676
9686
|
icon: "info-circle",
|
|
@@ -9678,8 +9688,8 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9678
9688
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9679
9689
|
E.hideAllergies !== "yes" ? (T(), rt(be, {
|
|
9680
9690
|
key: 3,
|
|
9681
|
-
modelValue: c(
|
|
9682
|
-
"onUpdate:modelValue": $[16] || ($[16] = (
|
|
9691
|
+
modelValue: c(V),
|
|
9692
|
+
"onUpdate:modelValue": $[16] || ($[16] = (U) => It(V) ? V.value = U : null),
|
|
9683
9693
|
type: "textarea",
|
|
9684
9694
|
label: c(p)("booking.reservation.allergies"),
|
|
9685
9695
|
icon: "allergies",
|
|
@@ -9688,7 +9698,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9688
9698
|
c(_n) ? R("", !0) : (T(), rt(Jr, {
|
|
9689
9699
|
key: 4,
|
|
9690
9700
|
modelValue: c(g),
|
|
9691
|
-
"onUpdate:modelValue": $[17] || ($[17] = (
|
|
9701
|
+
"onUpdate:modelValue": $[17] || ($[17] = (U) => It(g) ? g.value = U : null),
|
|
9692
9702
|
label: c(p)("booking.reservation.purposeOfStay"),
|
|
9693
9703
|
name: "travelingFor",
|
|
9694
9704
|
checkboxes: Cn.value
|
|
@@ -9697,12 +9707,12 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9697
9707
|
]),
|
|
9698
9708
|
navigation: tt(() => [
|
|
9699
9709
|
k("div", null, [
|
|
9700
|
-
Z(
|
|
9710
|
+
Z(_e, {
|
|
9701
9711
|
label: c(Si) ? c(p)("booking.reservation.nextButton") : c(p)("general.confirmReservation"),
|
|
9702
9712
|
disabled: !c(y),
|
|
9703
9713
|
"is-loading": c(m),
|
|
9704
9714
|
"full-width": "",
|
|
9705
|
-
onClickEvent: (
|
|
9715
|
+
onClickEvent: (U) => Ni(kt, dt)
|
|
9706
9716
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
9707
9717
|
])
|
|
9708
9718
|
]),
|
|
@@ -9735,7 +9745,7 @@ const Bu = /* @__PURE__ */ Zt({
|
|
|
9735
9745
|
_: 1
|
|
9736
9746
|
}, 8, ["styling"]));
|
|
9737
9747
|
}
|
|
9738
|
-
}), fs = /* @__PURE__ */
|
|
9748
|
+
}), fs = /* @__PURE__ */ qt(Bu, [["__scopeId", "data-v-bb7a2db5"]]), Zu = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]), ln = /* @__PURE__ */ new Set([
|
|
9739
9749
|
"base",
|
|
9740
9750
|
"meta",
|
|
9741
9751
|
"link",
|
|
@@ -9941,14 +9951,14 @@ async function ju(a, u = {}) {
|
|
|
9941
9951
|
const H = {
|
|
9942
9952
|
tag: x,
|
|
9943
9953
|
props: await Ss(
|
|
9944
|
-
S.getAttributeNames().reduce((lt,
|
|
9954
|
+
S.getAttributeNames().reduce((lt, at) => ({ ...lt, [at]: S.getAttribute(at) }), {})
|
|
9945
9955
|
),
|
|
9946
9956
|
innerHTML: S.innerHTML
|
|
9947
9957
|
}, B = Is(H);
|
|
9948
|
-
let
|
|
9949
|
-
for (;
|
|
9950
|
-
|
|
9951
|
-
|
|
9958
|
+
let O = B, W = 1;
|
|
9959
|
+
for (; O && g.has(O); )
|
|
9960
|
+
O = `${B}:${W++}`;
|
|
9961
|
+
O && (H._d = O, g.add(O)), r.elMap[S.getAttribute("data-hid") || lo(H)] = S;
|
|
9952
9962
|
}
|
|
9953
9963
|
}
|
|
9954
9964
|
}
|
|
@@ -9975,16 +9985,16 @@ async function ju(a, u = {}) {
|
|
|
9975
9985
|
if (x === "class") {
|
|
9976
9986
|
if (!H)
|
|
9977
9987
|
continue;
|
|
9978
|
-
for (const
|
|
9979
|
-
S && d(g, `${B}:${
|
|
9988
|
+
for (const O of H.split(" "))
|
|
9989
|
+
S && d(g, `${B}:${O}`, () => w.classList.remove(O)), !w.classList.contains(O) && w.classList.add(O);
|
|
9980
9990
|
} else if (x === "style") {
|
|
9981
9991
|
if (!H)
|
|
9982
9992
|
continue;
|
|
9983
|
-
for (const
|
|
9984
|
-
const W =
|
|
9993
|
+
for (const O of H.split(";")) {
|
|
9994
|
+
const W = O.indexOf(":"), lt = O.substring(0, W).trim(), at = O.substring(W + 1).trim();
|
|
9985
9995
|
d(g, `${B}:${lt}`, () => {
|
|
9986
9996
|
w.style.removeProperty(lt);
|
|
9987
|
-
}), w.style.setProperty(lt,
|
|
9997
|
+
}), w.style.setProperty(lt, at);
|
|
9988
9998
|
}
|
|
9989
9999
|
} else
|
|
9990
10000
|
w.getAttribute(x) !== H && w.setAttribute(x, H === !0 ? "" : String(H)), S && d(g, B, () => w.removeAttribute(x));
|