@konnectio/core 4.3.18 → 4.4.0
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/README.md +274 -274
- package/dist/{ActionField-Bg0yFXyo.js → ActionField-CMFQS0Tu.js} +4 -4
- package/dist/ActionField-CMFQS0Tu.js.br +0 -0
- package/dist/ActionField-CMFQS0Tu.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-DLjqFg6U.js → AvailabilitySkeleton-Bxse3JWw.js} +8 -8
- package/dist/AvailabilitySkeleton-Bxse3JWw.js.br +0 -0
- package/dist/AvailabilitySkeleton-Bxse3JWw.js.gz +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CWKhedpA.js +10189 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CWKhedpA.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CWKhedpA.js.gz +0 -0
- package/dist/{CheckoutWindow-BMdnoHy9.js → CheckoutWindow-DbyK9q3i.js} +13 -13
- package/dist/CheckoutWindow-DbyK9q3i.js.br +0 -0
- package/dist/CheckoutWindow-DbyK9q3i.js.gz +0 -0
- package/dist/{ErrorMessage-jEofs6LL.js → ErrorMessage-CHJAgZQF.js} +4 -4
- package/dist/ErrorMessage-CHJAgZQF.js.br +0 -0
- package/dist/ErrorMessage-CHJAgZQF.js.gz +0 -0
- package/dist/{EventAvailabilityForm-DP2s7m8v.js → EventAvailabilityForm-C12USIHw.js} +5 -5
- package/dist/EventAvailabilityForm-C12USIHw.js.br +0 -0
- package/dist/EventAvailabilityForm-C12USIHw.js.gz +0 -0
- package/dist/{Field-3KNgiKPM.js → Field-DeO4xsFg.js} +7 -7
- package/dist/Field-DeO4xsFg.js.br +0 -0
- package/dist/Field-DeO4xsFg.js.gz +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BBxnIROf.js +21 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BBxnIROf.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BBxnIROf.js.gz +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-k2xp8Gqw.js → SelectField.vue_vue_type_style_index_0_lang-6_UBtMyv.js} +4834 -4233
- package/dist/SelectField.vue_vue_type_style_index_0_lang-6_UBtMyv.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-6_UBtMyv.js.gz +0 -0
- package/dist/{TermsOfService-CAwgDlMG.js → TermsOfService-DSR9-slK.js} +8 -8
- package/dist/TermsOfService-DSR9-slK.js.br +0 -0
- package/dist/TermsOfService-DSR9-slK.js.gz +0 -0
- package/dist/_-PjpC4p-e.js +5 -0
- package/dist/_-PjpC4p-e.js.br +0 -0
- package/dist/_-PjpC4p-e.js.gz +0 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-Bp4LTg7i.js → _.vue_vue_type_style_index_0_lang-C_u0UT6W.js} +3 -3
- package/dist/_.vue_vue_type_style_index_0_lang-C_u0UT6W.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-C_u0UT6W.js.gz +0 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.gz +0 -0
- package/dist/availability.js +9 -9
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +7 -7
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/event.js +186 -192
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +14 -14
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +14 -14
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-CrwgJ6Fm.js → giftCard-D1GA4BA0.js} +3 -3
- package/dist/giftCard-D1GA4BA0.js.br +0 -0
- package/dist/giftCard-D1GA4BA0.js.gz +0 -0
- package/dist/hotel.js +523 -518
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{index-DR2Ax4hj.js → index-D4nA_tEk.js} +5 -4
- package/dist/index-D4nA_tEk.js.br +0 -0
- package/dist/index-D4nA_tEk.js.gz +0 -0
- package/dist/{masonry.plugin-CKPCoYcs.js → masonry.plugin-DDRglIja.js} +121 -158
- package/dist/masonry.plugin-DDRglIja.js.br +0 -0
- package/dist/masonry.plugin-DDRglIja.js.gz +0 -0
- package/dist/{mitt-CqW9zFaX.js → mitt-CvmiLPAX.js} +4643 -4431
- package/dist/mitt-CvmiLPAX.js.br +0 -0
- package/dist/mitt-CvmiLPAX.js.gz +0 -0
- package/dist/polyfill.js +5965 -5688
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/style-DijlEV9B.js +1750 -0
- package/dist/style-DijlEV9B.js.br +0 -0
- package/dist/style-DijlEV9B.js.gz +0 -0
- package/package.json +118 -118
- package/dist/ActionField-Bg0yFXyo.js.br +0 -0
- package/dist/ActionField-Bg0yFXyo.js.gz +0 -0
- package/dist/AvailabilitySkeleton-DLjqFg6U.js.br +0 -0
- package/dist/AvailabilitySkeleton-DLjqFg6U.js.gz +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-CgMThV2A.js +0 -9324
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-CgMThV2A.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-CgMThV2A.js.gz +0 -0
- package/dist/CheckoutWindow-BMdnoHy9.js.br +0 -0
- package/dist/CheckoutWindow-BMdnoHy9.js.gz +0 -0
- package/dist/ErrorMessage-jEofs6LL.js.br +0 -0
- package/dist/ErrorMessage-jEofs6LL.js.gz +0 -0
- package/dist/EventAvailabilityForm-DP2s7m8v.js.br +0 -0
- package/dist/EventAvailabilityForm-DP2s7m8v.js.gz +0 -0
- package/dist/Field-3KNgiKPM.js.br +0 -0
- package/dist/Field-3KNgiKPM.js.gz +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B5c8ufB9.js +0 -21
- package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B5c8ufB9.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B5c8ufB9.js.gz +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-k2xp8Gqw.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-k2xp8Gqw.js.gz +0 -0
- package/dist/TermsOfService-CAwgDlMG.js.br +0 -0
- package/dist/TermsOfService-CAwgDlMG.js.gz +0 -0
- package/dist/_-DQD4tHzx.js +0 -5
- package/dist/_-DQD4tHzx.js.br +0 -0
- package/dist/_-DQD4tHzx.js.gz +0 -2
- package/dist/_.vue_vue_type_style_index_0_lang-Bp4LTg7i.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-Bp4LTg7i.js.gz +0 -0
- package/dist/giftCard-CrwgJ6Fm.js.br +0 -0
- package/dist/giftCard-CrwgJ6Fm.js.gz +0 -0
- package/dist/index-DR2Ax4hj.js.br +0 -0
- package/dist/index-DR2Ax4hj.js.gz +0 -0
- package/dist/masonry.plugin-CKPCoYcs.js.br +0 -0
- package/dist/masonry.plugin-CKPCoYcs.js.gz +0 -0
- package/dist/mitt-CqW9zFaX.js.br +0 -0
- package/dist/mitt-CqW9zFaX.js.gz +0 -0
- package/dist/style-Tyu_krEp.js +0 -2340
- package/dist/style-Tyu_krEp.js.br +0 -0
- package/dist/style-Tyu_krEp.js.gz +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { d as Bt, h as A, b as M, e as y, i as
|
|
2
|
-
import { f as Er } from "./index-
|
|
3
|
-
import { G as Br } from "./style-
|
|
4
|
-
import { R as Zr, B as ln, L as Dr, S as Nr, M as Rr, T as
|
|
5
|
-
import { _ as Xt, f as Ze, b as de, u as Ti, I as xt, s as ce, m as wi, l as Kn, r as ye, p as oe, t as eo, a as ao, d as un, F as Gr, h as lo, e as ne, i as Pi, B as ys, H as Qo, x as Ur, T as ie, J as $r, M as ts, q as es, K as Wr, N as is, C as qr, v as ns } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { A as jr, H as Yr } from "./AvailabilitySkeleton-
|
|
7
|
-
import { S as Xr } from "./TermsOfService-
|
|
8
|
-
import { a as io, B as bs, C as Kr, P as Jr } from "./CheckoutWindow-
|
|
9
|
-
import { A as Qr } from "./ActionField-
|
|
1
|
+
import { d as Bt, h as A, b as M, e as y, i as B, F as ht, v as Tt, J as Xe, K as qn, a as rt, L as jn, j as Ke, n as Pe, M as wr, u as Yt, s as Gt, r as jt, N as Pr, g as l, z as Lt, A as Cr, w as nt, t as O, E as we, G as Be, f as Z, q as Yn, C as xr, c as yt, x as vs, O as Ko, o as ro, D as an, S as Tr, P as Mr, k as Sr, _ as Ar, l as Ir, m as Or, p as zr } from "./mitt-CvmiLPAX.js";
|
|
2
|
+
import { f as Er } from "./index-D4nA_tEk.js";
|
|
3
|
+
import { G as Br } from "./style-DijlEV9B.js";
|
|
4
|
+
import { R as Zr, B as ln, L as Dr, S as Nr, M as Rr, T as Hr, C as Jo, b as Xn, V as Vr, a as Fr } from "./masonry.plugin-DDRglIja.js";
|
|
5
|
+
import { _ as Xt, f as Ze, b as de, u as Ti, I as xt, s as ce, m as wi, l as Kn, r as ye, p as oe, t as eo, a as ao, d as un, F as Gr, h as lo, e as ne, i as Pi, B as ys, H as Qo, x as Ur, T as ie, J as $r, M as ts, q as es, K as Wr, N as is, C as qr, v as ns } from "./SelectField.vue_vue_type_style_index_0_lang-6_UBtMyv.js";
|
|
6
|
+
import { A as jr, H as Yr } from "./AvailabilitySkeleton-Bxse3JWw.js";
|
|
7
|
+
import { S as Xr } from "./TermsOfService-DSR9-slK.js";
|
|
8
|
+
import { a as io, B as bs, C as Kr, P as Jr } from "./CheckoutWindow-DbyK9q3i.js";
|
|
9
|
+
import { A as Qr } from "./ActionField-CMFQS0Tu.js";
|
|
10
10
|
import { g as ta } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
11
|
-
import { _ as Ls } from "./AvailabilitySkeleton.
|
|
11
|
+
import { _ as Ls } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CWKhedpA.js";
|
|
12
12
|
function no(r, d = {}, c) {
|
|
13
13
|
for (const p in r) {
|
|
14
|
-
const
|
|
15
|
-
typeof
|
|
14
|
+
const k = r[p], o = c ? `${c}:${p}` : p;
|
|
15
|
+
typeof k == "object" && k !== null ? no(k, d, o) : typeof k == "function" && (d[o] = k);
|
|
16
16
|
}
|
|
17
17
|
return d;
|
|
18
18
|
}
|
|
@@ -20,13 +20,13 @@ const ea = { run: (r) => r() }, ia = () => ea, ks = typeof console.createTask <
|
|
|
20
20
|
function na(r, d) {
|
|
21
21
|
const c = d.shift(), p = ks(c);
|
|
22
22
|
return r.reduce(
|
|
23
|
-
(
|
|
23
|
+
(k, o) => k.then(() => p.run(() => o(...d))),
|
|
24
24
|
Promise.resolve()
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
27
|
function oa(r, d) {
|
|
28
28
|
const c = d.shift(), p = ks(c);
|
|
29
|
-
return Promise.all(r.map((
|
|
29
|
+
return Promise.all(r.map((k) => p.run(() => k(...d))));
|
|
30
30
|
}
|
|
31
31
|
function Jn(r, d) {
|
|
32
32
|
for (const c of [...r])
|
|
@@ -40,13 +40,13 @@ class sa {
|
|
|
40
40
|
if (!d || typeof c != "function")
|
|
41
41
|
return () => {
|
|
42
42
|
};
|
|
43
|
-
const
|
|
43
|
+
const k = d;
|
|
44
44
|
let o;
|
|
45
45
|
for (; this._deprecatedHooks[d]; )
|
|
46
46
|
o = this._deprecatedHooks[d], d = o.to;
|
|
47
47
|
if (o && !p.allowDeprecated) {
|
|
48
48
|
let a = o.message;
|
|
49
|
-
a || (a = `${
|
|
49
|
+
a || (a = `${k} hook has been deprecated` + (o.to ? `, please use ${o.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(a) || (console.warn(a), this._deprecatedMessages.add(a));
|
|
50
50
|
}
|
|
51
51
|
if (!c.name)
|
|
52
52
|
try {
|
|
@@ -61,8 +61,8 @@ class sa {
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
hookOnce(d, c) {
|
|
64
|
-
let p,
|
|
65
|
-
return p = this.hook(d,
|
|
64
|
+
let p, k = (...o) => (typeof p == "function" && p(), p = void 0, k = void 0, c(...o));
|
|
65
|
+
return p = this.hook(d, k), p;
|
|
66
66
|
}
|
|
67
67
|
removeHook(d, c) {
|
|
68
68
|
if (this._hooks[d]) {
|
|
@@ -74,8 +74,8 @@ class sa {
|
|
|
74
74
|
this._deprecatedHooks[d] = typeof c == "string" ? { to: c } : c;
|
|
75
75
|
const p = this._hooks[d] || [];
|
|
76
76
|
delete this._hooks[d];
|
|
77
|
-
for (const
|
|
78
|
-
this.hook(d,
|
|
77
|
+
for (const k of p)
|
|
78
|
+
this.hook(d, k);
|
|
79
79
|
}
|
|
80
80
|
deprecateHooks(d) {
|
|
81
81
|
Object.assign(this._deprecatedHooks, d);
|
|
@@ -84,11 +84,11 @@ class sa {
|
|
|
84
84
|
}
|
|
85
85
|
addHooks(d) {
|
|
86
86
|
const c = no(d), p = Object.keys(c).map(
|
|
87
|
-
(
|
|
87
|
+
(k) => this.hook(k, c[k])
|
|
88
88
|
);
|
|
89
89
|
return () => {
|
|
90
|
-
for (const
|
|
91
|
-
|
|
90
|
+
for (const k of p.splice(0, p.length))
|
|
91
|
+
k();
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
removeHooks(d) {
|
|
@@ -107,15 +107,15 @@ class sa {
|
|
|
107
107
|
return c.unshift(d), this.callHookWith(oa, d, ...c);
|
|
108
108
|
}
|
|
109
109
|
callHookWith(d, c, ...p) {
|
|
110
|
-
const
|
|
111
|
-
this._before && Jn(this._before,
|
|
110
|
+
const k = this._before || this._after ? { name: c, args: p, context: {} } : void 0;
|
|
111
|
+
this._before && Jn(this._before, k);
|
|
112
112
|
const o = d(
|
|
113
113
|
c in this._hooks ? [...this._hooks[c]] : [],
|
|
114
114
|
p
|
|
115
115
|
);
|
|
116
116
|
return o instanceof Promise ? o.finally(() => {
|
|
117
|
-
this._after &&
|
|
118
|
-
}) : (this._after &&
|
|
117
|
+
this._after && k && Jn(this._after, k);
|
|
118
|
+
}) : (this._after && k && Jn(this._after, k), o);
|
|
119
119
|
}
|
|
120
120
|
beforeEach(d) {
|
|
121
121
|
return this._before = this._before || [], this._before.push(d), () => {
|
|
@@ -183,10 +183,10 @@ function ws(r) {
|
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
function ua(r, d, c) {
|
|
186
|
-
const p = (r.pageX - (window.pageXOffset + d.bounds.left)) * -d.ratios.x,
|
|
186
|
+
const p = (r.pageX - (window.pageXOffset + d.bounds.left)) * -d.ratios.x, k = (r.pageY - (window.pageYOffset + d.bounds.top)) * -d.ratios.y;
|
|
187
187
|
return {
|
|
188
188
|
pageX: p + (c ? (window.innerWidth - d.bounds.width) / 2 : 0),
|
|
189
|
-
pageY:
|
|
189
|
+
pageY: k + (c ? (window.innerHeight - d.bounds.height) / 2 : 0)
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
192
|
function ha(r, d) {
|
|
@@ -364,7 +364,7 @@ const fa = Bt({
|
|
|
364
364
|
key: 1,
|
|
365
365
|
class: "iiz__btn iiz__hint"
|
|
366
366
|
};
|
|
367
|
-
function La(r, d, c, p,
|
|
367
|
+
function La(r, d, c, p, k, o) {
|
|
368
368
|
return M(), A("figure", Xe({
|
|
369
369
|
class: ["iiz", {
|
|
370
370
|
...r.className && { [r.className]: r.className },
|
|
@@ -444,7 +444,7 @@ function La(r, d, c, p, w, o) {
|
|
|
444
444
|
transition: `linear ${r.isFullscreen ? 0 : r.fadeDuration}ms opacity, linear ${r.isFullscreen ? 0 : r.fadeDuration}ms visibility`
|
|
445
445
|
}),
|
|
446
446
|
onClick: d[0] || (d[0] = Ke((...a) => r.handleClose && r.handleClose(...a), ["stop"]))
|
|
447
|
-
}, null, 6)) :
|
|
447
|
+
}, null, 6)) : B("", !0)
|
|
448
448
|
])
|
|
449
449
|
])) : (M(), A(ht, { key: 1 }, [
|
|
450
450
|
y("img", Xe({
|
|
@@ -473,10 +473,10 @@ function La(r, d, c, p, w, o) {
|
|
|
473
473
|
transition: `linear ${r.isFullscreen ? 0 : r.fadeDuration}ms opacity, linear ${r.isFullscreen ? 0 : r.fadeDuration}ms visibility`
|
|
474
474
|
}),
|
|
475
475
|
onClick: d[1] || (d[1] = Ke((...a) => r.handleClose && r.handleClose(...a), ["stop"]))
|
|
476
|
-
}, null, 6)) :
|
|
476
|
+
}, null, 6)) : B("", !0)
|
|
477
477
|
], 64))
|
|
478
|
-
], 64)) :
|
|
479
|
-
!r.isZoomed && !r.hideHint ? (M(), A("span", ba)) :
|
|
478
|
+
], 64)) : B("", !0),
|
|
479
|
+
!r.isZoomed && !r.hideHint ? (M(), A("span", ba)) : B("", !0)
|
|
480
480
|
], 16);
|
|
481
481
|
}
|
|
482
482
|
const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8af"]]), wa = { key: 0 }, Pa = { class: "konnectio-hotel-reservation-warning" }, Ca = { class: "konnectio-hotel-reservation-warning" }, xa = { class: "konnectio-hotel-reservation-warning" }, Ta = { key: 1 }, Ma = { class: "konnectio-hotel-reservation-title" }, Sa = { class: "konnectio-hotel-reservation-information" }, Aa = { class: "konnectio-hotel-reservation-guests" }, Ia = { key: 0 }, Oa = {
|
|
@@ -488,11 +488,12 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
488
488
|
}, Ra = {
|
|
489
489
|
key: 1,
|
|
490
490
|
class: "konnectio-accept-terms"
|
|
491
|
-
},
|
|
491
|
+
}, Ha = { class: "konnectio-hotel-reservation-tooltip" }, Va = /* @__PURE__ */ Bt({
|
|
492
492
|
__name: "HotelReservationForm",
|
|
493
493
|
props: {
|
|
494
494
|
forceArrivalTime: {},
|
|
495
495
|
forceDepartureTime: {},
|
|
496
|
+
showRemoveRoom: { type: Boolean, default: !1 },
|
|
496
497
|
showGiftCard: { type: Boolean, default: !1 },
|
|
497
498
|
showTermsNotice: { type: Boolean, default: !1 },
|
|
498
499
|
prevCallback: {}
|
|
@@ -502,7 +503,7 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
502
503
|
disableNewsletterSignup: c,
|
|
503
504
|
currency: p
|
|
504
505
|
} = Gt(Ze()), {
|
|
505
|
-
hasArrivalDepartureInputs:
|
|
506
|
+
hasArrivalDepartureInputs: k
|
|
506
507
|
} = Ze(), {
|
|
507
508
|
arrivalTime: o,
|
|
508
509
|
departureTime: a,
|
|
@@ -567,7 +568,7 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
567
568
|
y("span", Sa, [
|
|
568
569
|
y("span", Aa, [
|
|
569
570
|
y("span", null, [
|
|
570
|
-
|
|
571
|
+
Z(xt, {
|
|
571
572
|
icon: "male",
|
|
572
573
|
type: "fas",
|
|
573
574
|
color: "font"
|
|
@@ -575,37 +576,38 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
575
576
|
y("span", null, O(wt.adultsCount), 1)
|
|
576
577
|
]),
|
|
577
578
|
wt.childrenCount > 0 ? (M(), A("span", Ia, [
|
|
578
|
-
|
|
579
|
+
Z(xt, {
|
|
579
580
|
icon: "child",
|
|
580
581
|
type: "fas",
|
|
581
582
|
color: "font"
|
|
582
583
|
}),
|
|
583
584
|
y("span", null, O(wt.childrenCount), 1)
|
|
584
|
-
])) :
|
|
585
|
+
])) : B("", !0)
|
|
585
586
|
]),
|
|
586
|
-
wt.roomName ? (M(), A("span", Oa, "(" + O(wt.roomName) + ")", 1)) :
|
|
587
|
+
wt.roomName ? (M(), A("span", Oa, "(" + O(wt.roomName) + ")", 1)) : B("", !0)
|
|
587
588
|
]),
|
|
588
589
|
y("b", null, [
|
|
589
590
|
y("span", null, O(l(oe)(wt.totalPrice, l(p))), 1),
|
|
590
|
-
|
|
591
|
+
r.showRemoveRoom ? (M(), A("span", {
|
|
592
|
+
key: 0,
|
|
591
593
|
class: "konnectio-hotel-reservation-remove",
|
|
592
594
|
onClick: Ke((se) => l(ct)(G, xe, wt.configIdx), ["prevent"])
|
|
593
595
|
}, [
|
|
594
|
-
|
|
596
|
+
Z(xt, {
|
|
595
597
|
icon: "times",
|
|
596
598
|
type: "fas",
|
|
597
599
|
"icon-color": "#ff0000"
|
|
598
600
|
})
|
|
599
|
-
], 8, za)
|
|
601
|
+
], 8, za)) : B("", !0)
|
|
600
602
|
])
|
|
601
603
|
]),
|
|
602
604
|
dt(wt.roomAddons) > 0 ? (M(), A("li", Ea, [
|
|
603
605
|
y("span", null, O(l(d)("general.addons")), 1),
|
|
604
606
|
y("b", null, O(l(oe)(dt(wt.roomAddons), l(p))), 1)
|
|
605
|
-
])) :
|
|
607
|
+
])) : B("", !0)
|
|
606
608
|
]))), 128))
|
|
607
609
|
]))), 128))
|
|
608
|
-
]))), 128)) :
|
|
610
|
+
]))), 128)) : B("", !0),
|
|
609
611
|
l(v) && l(P) ? (M(), A("div", Ba, [
|
|
610
612
|
y("h6", null, [
|
|
611
613
|
y("span", null, O(l(ye)(l(P).name)), 1)
|
|
@@ -624,20 +626,20 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
624
626
|
y("b", null, [
|
|
625
627
|
y("span", null, O(l(oe)(G.price, l(p))), 1)
|
|
626
628
|
])
|
|
627
|
-
], 64))), 256)) :
|
|
629
|
+
], 64))), 256)) : B("", !0)
|
|
628
630
|
]),
|
|
629
631
|
l(St) ? (M(), A("li", Za, [
|
|
630
632
|
y("span", null, O(l(d)("general.addons")), 1),
|
|
631
633
|
y("b", null, O(l(oe)(l(St), l(p))), 1)
|
|
632
|
-
])) :
|
|
634
|
+
])) : B("", !0)
|
|
633
635
|
])
|
|
634
636
|
])
|
|
635
|
-
])) :
|
|
637
|
+
])) : B("", !0)
|
|
636
638
|
]),
|
|
637
639
|
actions: nt(() => [
|
|
638
640
|
y("ul", Da, [
|
|
639
|
-
l(c) ?
|
|
640
|
-
|
|
641
|
+
l(c) ? B("", !0) : (M(), A("div", Na, [
|
|
642
|
+
Z(io, {
|
|
641
643
|
modelValue: l(N),
|
|
642
644
|
"onUpdate:modelValue": ft[0] || (ft[0] = (G) => Lt(N) ? N.value = G : null),
|
|
643
645
|
type: "checkbox",
|
|
@@ -646,14 +648,14 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
646
648
|
}, null, 8, ["modelValue", "label"])
|
|
647
649
|
])),
|
|
648
650
|
l(kt) ? (M(), A("div", Ra, [
|
|
649
|
-
|
|
651
|
+
Z(io, {
|
|
650
652
|
modelValue: l(Mt),
|
|
651
653
|
"onUpdate:modelValue": ft[2] || (ft[2] = (G) => Lt(Mt) ? Mt.value = G : null),
|
|
652
654
|
type: "checkbox",
|
|
653
655
|
name: "terms"
|
|
654
656
|
}, {
|
|
655
657
|
default: nt(() => [
|
|
656
|
-
|
|
658
|
+
Z(l(xr), {
|
|
657
659
|
keypath: "general.termsAndConditionsCheckbox",
|
|
658
660
|
tag: "span",
|
|
659
661
|
scope: "global"
|
|
@@ -671,9 +673,9 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
671
673
|
]),
|
|
672
674
|
_: 1
|
|
673
675
|
}, 8, ["modelValue"])
|
|
674
|
-
])) :
|
|
676
|
+
])) : B("", !0),
|
|
675
677
|
Yn(bt.$slots, "actions", {}, void 0, !0),
|
|
676
|
-
|
|
678
|
+
Z(Xr, {
|
|
677
679
|
modelValue: U.value,
|
|
678
680
|
"onUpdate:modelValue": ft[3] || (ft[3] = (G) => U.value = G),
|
|
679
681
|
description: l(ot)
|
|
@@ -686,8 +688,8 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
686
688
|
"mobile-under-price": nt(() => [
|
|
687
689
|
y("span", null, O(l(d)("general.for")) + ": ", 1),
|
|
688
690
|
y("b", null, O(l(wi)(l(T), l(C))) + " " + O(l(Kn)(l(wi)(l(T), l(C)) === 1 ? l(d)("booking.reservation.night") : l(d)("booking.reservation.nights"))), 1),
|
|
689
|
-
we((M(), A("span",
|
|
690
|
-
|
|
691
|
+
we((M(), A("span", Ha, [
|
|
692
|
+
Z(xt, {
|
|
691
693
|
icon: "circle-info",
|
|
692
694
|
type: "fas"
|
|
693
695
|
})
|
|
@@ -714,7 +716,7 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
714
716
|
y("b", null, [
|
|
715
717
|
y("span", null, O(l(Ce)(l(I))), 1),
|
|
716
718
|
we(y("span", Pa, [
|
|
717
|
-
|
|
719
|
+
Z(xt, {
|
|
718
720
|
icon: "exclamation-triangle",
|
|
719
721
|
type: "fas"
|
|
720
722
|
})
|
|
@@ -722,13 +724,13 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
722
724
|
[Be, l(z)]
|
|
723
725
|
])
|
|
724
726
|
])
|
|
725
|
-
])) :
|
|
727
|
+
])) : B("", !0),
|
|
726
728
|
y("li", null, [
|
|
727
729
|
y("span", null, O(l(d)("booking.reservation.arrival")), 1),
|
|
728
730
|
y("b", null, [
|
|
729
|
-
y("span", null, O(l(
|
|
731
|
+
y("span", null, O(l(k)(l(I)) ? `${l(ce)(l(T))}, ${l(o)}` : l(ce)(l(T))), 1),
|
|
730
732
|
we(y("span", Ca, [
|
|
731
|
-
|
|
733
|
+
Z(xt, {
|
|
732
734
|
icon: "exclamation-triangle",
|
|
733
735
|
type: "fas"
|
|
734
736
|
})
|
|
@@ -740,9 +742,9 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
740
742
|
y("li", null, [
|
|
741
743
|
y("span", null, O(l(d)("booking.reservation.departure")), 1),
|
|
742
744
|
y("b", null, [
|
|
743
|
-
y("span", null, O(l(
|
|
745
|
+
y("span", null, O(l(k)(l(I)) ? `${l(ce)(l(C))}, ${l(a)}` : l(ce)(l(C))), 1),
|
|
744
746
|
we(y("span", xa, [
|
|
745
|
-
|
|
747
|
+
Z(xt, {
|
|
746
748
|
icon: "exclamation-triangle",
|
|
747
749
|
type: "fas"
|
|
748
750
|
})
|
|
@@ -758,33 +760,33 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
758
760
|
l(lt) && l(lt).providesDiscount ? (M(), A("li", Ta, [
|
|
759
761
|
y("span", null, O(l(lt).shortDescription), 1),
|
|
760
762
|
y("b", null, "-" + O(l(lt).discountPercent) + "%", 1)
|
|
761
|
-
])) :
|
|
763
|
+
])) : B("", !0),
|
|
762
764
|
l(_) ? (M(!0), A(ht, { key: 2 }, Tt(l(_), (G) => (M(), A("li", {
|
|
763
765
|
key: G.id
|
|
764
766
|
}, [
|
|
765
767
|
y("span", null, O(`${l(d)("general.discountCode")} (${G.value})`), 1),
|
|
766
768
|
y("b", null, O(G.key), 1)
|
|
767
|
-
]))), 128)) :
|
|
769
|
+
]))), 128)) : B("", !0)
|
|
768
770
|
]),
|
|
769
771
|
key: "0"
|
|
770
772
|
}
|
|
771
773
|
]), 1032, ["discount-code", "validate-discount-code", "total-price", "weekend-fee", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice", "prev-callback"]);
|
|
772
774
|
};
|
|
773
775
|
}
|
|
774
|
-
}), to = /* @__PURE__ */ Xt(
|
|
776
|
+
}), to = /* @__PURE__ */ Xt(Va, [["__scopeId", "data-v-0b85dfa9"]]), Fa = { id: "konnectio-hotel-guest-discount" }, Ga = { class: "konnectio-panel" }, Ua = { id: "konnectio-hotel-guest-discount-title" }, $a = ["innerHTML"], Wa = /* @__PURE__ */ Bt({
|
|
775
777
|
__name: "GuestDiscountForm",
|
|
776
778
|
setup(r) {
|
|
777
|
-
const { t: d } = Yt(), c = eo("history"), p = de(), { display:
|
|
779
|
+
const { t: d } = Yt(), c = eo("history"), p = de(), { display: k } = ao(), o = jt();
|
|
778
780
|
async function a() {
|
|
779
781
|
if (!o.value) {
|
|
780
|
-
|
|
782
|
+
k({
|
|
781
783
|
message: d("alert.error.guestDiscountEmpty"),
|
|
782
784
|
type: "error"
|
|
783
785
|
});
|
|
784
786
|
return;
|
|
785
787
|
}
|
|
786
788
|
if (isNaN(o.value)) {
|
|
787
|
-
|
|
789
|
+
k({
|
|
788
790
|
message: d("alert.error.guestDiscountNan"),
|
|
789
791
|
type: "error"
|
|
790
792
|
});
|
|
@@ -800,7 +802,7 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
800
802
|
y("p", {
|
|
801
803
|
innerHTML: l(d)("guestDiscount.description")
|
|
802
804
|
}, null, 8, $a),
|
|
803
|
-
|
|
805
|
+
Z(Qr, {
|
|
804
806
|
modelValue: o.value,
|
|
805
807
|
"onUpdate:modelValue": f[0] || (f[0] = (g) => o.value = g),
|
|
806
808
|
label: l(d)("guestDiscount.guestDiscountCode"),
|
|
@@ -815,7 +817,7 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
815
817
|
])
|
|
816
818
|
]));
|
|
817
819
|
}
|
|
818
|
-
}), qa = /* @__PURE__ */ Xt(Wa, [["__scopeId", "data-v-
|
|
820
|
+
}), qa = /* @__PURE__ */ Xt(Wa, [["__scopeId", "data-v-8c6e1f7e"]]), ja = { class: "konnectio-room-config-option" }, Ya = { key: 0 }, Xa = { class: "konnectio-selected-room-config" }, Ka = { class: "konnectio-selected-room-config-people" }, Ja = { key: 0 }, Qa = { class: "konnectio-selected-room-config-price" }, tl = /* @__PURE__ */ Bt({
|
|
819
821
|
__name: "RoomConfigField",
|
|
820
822
|
props: {
|
|
821
823
|
modelValue: {},
|
|
@@ -826,9 +828,9 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
826
828
|
},
|
|
827
829
|
emits: ["update:modelValue"],
|
|
828
830
|
setup(r, { emit: d }) {
|
|
829
|
-
const { t: c } = Yt(), { currency: p } = Gt(Ze()),
|
|
831
|
+
const { t: c } = Yt(), { currency: p } = Gt(Ze()), k = d, o = r;
|
|
830
832
|
function a(f) {
|
|
831
|
-
|
|
833
|
+
k("update:modelValue", f);
|
|
832
834
|
}
|
|
833
835
|
const h = yt({
|
|
834
836
|
get: () => o.modelValue,
|
|
@@ -850,20 +852,20 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
850
852
|
option: nt(({ data: b }) => [
|
|
851
853
|
y("span", ja, [
|
|
852
854
|
y("div", null, [
|
|
853
|
-
|
|
855
|
+
Z(xt, {
|
|
854
856
|
icon: "male",
|
|
855
857
|
type: "fas",
|
|
856
858
|
color: "font"
|
|
857
859
|
}),
|
|
858
860
|
y("span", null, O(`${b.adults}`), 1),
|
|
859
861
|
b.children > 0 ? (M(), A("span", Ya, [
|
|
860
|
-
|
|
862
|
+
Z(xt, {
|
|
861
863
|
icon: "child",
|
|
862
864
|
type: "fas",
|
|
863
865
|
color: "font"
|
|
864
866
|
}),
|
|
865
867
|
y("span", null, O(`${b.children}`), 1)
|
|
866
|
-
])) :
|
|
868
|
+
])) : B("", !0)
|
|
867
869
|
]),
|
|
868
870
|
y("span", null, O(`(${l(oe)(b.price, l(p))})`), 1)
|
|
869
871
|
])
|
|
@@ -872,13 +874,13 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
872
874
|
y("div", Xa, [
|
|
873
875
|
y("div", Ka, [
|
|
874
876
|
y("div", null, [
|
|
875
|
-
|
|
877
|
+
B("", !0),
|
|
876
878
|
y("span", null, O(`${b.adults} ${b.adults === 1 ? l(c)("general.adult") : l(c)("general.adults")}`), 1)
|
|
877
879
|
]),
|
|
878
880
|
b.children > 0 ? (M(), A("div", Ja, [
|
|
879
|
-
|
|
881
|
+
B("", !0),
|
|
880
882
|
y("span", null, O(`& ${b.children} ${b.children === 1 ? l(c)("general.child") : l(c)("general.children")}`), 1)
|
|
881
|
-
])) :
|
|
883
|
+
])) : B("", !0)
|
|
882
884
|
]),
|
|
883
885
|
y("div", Qa, [
|
|
884
886
|
g[1] || (g[1] = y("span", null, null, -1)),
|
|
@@ -889,12 +891,8 @@ const ka = /* @__PURE__ */ Xt(fa, [["render", La], ["__scopeId", "data-v-71b2d8a
|
|
|
889
891
|
_: 1
|
|
890
892
|
}, 8, ["modelValue", "label", "options", "readonly", "required"]));
|
|
891
893
|
}
|
|
892
|
-
}), el = /* @__PURE__ */ Xt(tl, [["__scopeId", "data-v-
|
|
894
|
+
}), el = /* @__PURE__ */ Xt(tl, [["__scopeId", "data-v-c4045bfc"]]);
|
|
893
895
|
var Ci = { exports: {} };
|
|
894
|
-
/* @preserve
|
|
895
|
-
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
896
|
-
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
897
|
-
*/
|
|
898
896
|
var il = Ci.exports, as;
|
|
899
897
|
function nl() {
|
|
900
898
|
return as || (as = 1, (function(r, d) {
|
|
@@ -902,7 +900,7 @@ function nl() {
|
|
|
902
900
|
p(d);
|
|
903
901
|
})(il, (function(c) {
|
|
904
902
|
var p = "1.9.4";
|
|
905
|
-
function
|
|
903
|
+
function k(t) {
|
|
906
904
|
var e, i, n, s;
|
|
907
905
|
for (i = 1, n = arguments.length; i < n; i++) {
|
|
908
906
|
s = arguments[i];
|
|
@@ -1011,7 +1009,7 @@ function nl() {
|
|
|
1011
1009
|
}
|
|
1012
1010
|
var It = {
|
|
1013
1011
|
__proto__: null,
|
|
1014
|
-
extend:
|
|
1012
|
+
extend: k,
|
|
1015
1013
|
create: o,
|
|
1016
1014
|
bind: a,
|
|
1017
1015
|
get lastId() {
|
|
@@ -1044,7 +1042,7 @@ function nl() {
|
|
|
1044
1042
|
n.constructor = e, e.prototype = n;
|
|
1045
1043
|
for (var s in this)
|
|
1046
1044
|
Object.prototype.hasOwnProperty.call(this, s) && s !== "prototype" && s !== "__super__" && (e[s] = this[s]);
|
|
1047
|
-
return t.statics &&
|
|
1045
|
+
return t.statics && k(e, t.statics), t.includes && (Dt(t.includes), k.apply(null, [n].concat(t.includes))), k(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? o(i.options) : {}, k(n.options, t.options)), n._initHooks = [], n.callInitHooks = function() {
|
|
1048
1046
|
if (!this._initHooksCalled) {
|
|
1049
1047
|
i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
|
|
1050
1048
|
for (var u = 0, m = n._initHooks.length; u < m; u++)
|
|
@@ -1053,9 +1051,9 @@ function nl() {
|
|
|
1053
1051
|
}, e;
|
|
1054
1052
|
}, lt.include = function(t) {
|
|
1055
1053
|
var e = this.prototype.options;
|
|
1056
|
-
return
|
|
1054
|
+
return k(this.prototype, t), t.options && (this.prototype.options = e, this.mergeOptions(t.options)), this;
|
|
1057
1055
|
}, lt.mergeOptions = function(t) {
|
|
1058
|
-
return
|
|
1056
|
+
return k(this.prototype.options, t), this;
|
|
1059
1057
|
}, lt.addInitHook = function(t) {
|
|
1060
1058
|
var e = Array.prototype.slice.call(arguments, 1), i = typeof t == "function" ? t : function() {
|
|
1061
1059
|
this[t].apply(this, e);
|
|
@@ -1140,8 +1138,8 @@ function nl() {
|
|
|
1140
1138
|
}
|
|
1141
1139
|
var m = this._listens(t, e, i);
|
|
1142
1140
|
if (m !== !1) {
|
|
1143
|
-
var
|
|
1144
|
-
this._firingCount && (
|
|
1141
|
+
var w = n[m];
|
|
1142
|
+
this._firingCount && (w.fn = v, this._events[t] = n = n.slice()), n.splice(m, 1);
|
|
1145
1143
|
}
|
|
1146
1144
|
}
|
|
1147
1145
|
},
|
|
@@ -1152,7 +1150,7 @@ function nl() {
|
|
|
1152
1150
|
fire: function(t, e, i) {
|
|
1153
1151
|
if (!this.listens(t, i))
|
|
1154
1152
|
return this;
|
|
1155
|
-
var n =
|
|
1153
|
+
var n = k({}, e, {
|
|
1156
1154
|
type: t,
|
|
1157
1155
|
target: this,
|
|
1158
1156
|
sourceTarget: e && e.sourceTarget || this
|
|
@@ -1162,8 +1160,8 @@ function nl() {
|
|
|
1162
1160
|
if (s) {
|
|
1163
1161
|
this._firingCount = this._firingCount + 1 || 1;
|
|
1164
1162
|
for (var u = 0, m = s.length; u < m; u++) {
|
|
1165
|
-
var
|
|
1166
|
-
|
|
1163
|
+
var w = s[u], x = w.fn;
|
|
1164
|
+
w.once && this.off(t, x, w.ctx), x.call(w.ctx || this, n);
|
|
1167
1165
|
}
|
|
1168
1166
|
this._firingCount--;
|
|
1169
1167
|
}
|
|
@@ -1226,7 +1224,7 @@ function nl() {
|
|
|
1226
1224
|
},
|
|
1227
1225
|
_propagateEvent: function(t) {
|
|
1228
1226
|
for (var e in this._eventParents)
|
|
1229
|
-
this._eventParents[e].fire(t.type,
|
|
1227
|
+
this._eventParents[e].fire(t.type, k({
|
|
1230
1228
|
layer: t.target,
|
|
1231
1229
|
propagatedFrom: t.target
|
|
1232
1230
|
}, t), !0);
|
|
@@ -1707,10 +1705,10 @@ function nl() {
|
|
|
1707
1705
|
var e = t.getCenter(), i = this.wrapLatLng(e), n = e.lat - i.lat, s = e.lng - i.lng;
|
|
1708
1706
|
if (n === 0 && s === 0)
|
|
1709
1707
|
return t;
|
|
1710
|
-
var u = t.getSouthWest(), m = t.getNorthEast(),
|
|
1711
|
-
return new ft(
|
|
1708
|
+
var u = t.getSouthWest(), m = t.getNorthEast(), w = new G(u.lat - n, u.lng - s), x = new G(m.lat - n, m.lng - s);
|
|
1709
|
+
return new ft(w, x);
|
|
1712
1710
|
}
|
|
1713
|
-
}, Ft =
|
|
1711
|
+
}, Ft = k({}, Rt, {
|
|
1714
1712
|
wrapLng: [-180, 180],
|
|
1715
1713
|
// Mean Earth Radius, as recommended for use by
|
|
1716
1714
|
// the International Union of Geodesy and Geophysics,
|
|
@@ -1718,7 +1716,7 @@ function nl() {
|
|
|
1718
1716
|
R: 6371e3,
|
|
1719
1717
|
// distance between two geographical points using spherical law of cosines approximation
|
|
1720
1718
|
distance: function(t, e) {
|
|
1721
|
-
var i = Math.PI / 180, n = t.lat * i, s = e.lat * i, u = Math.sin((e.lat - t.lat) * i / 2), m = Math.sin((e.lng - t.lng) * i / 2),
|
|
1719
|
+
var i = Math.PI / 180, n = t.lat * i, s = e.lat * i, u = Math.sin((e.lat - t.lat) * i / 2), m = Math.sin((e.lng - t.lng) * i / 2), w = u * u + Math.cos(n) * Math.cos(s) * m * m, x = 2 * Math.atan2(Math.sqrt(w), Math.sqrt(1 - w));
|
|
1722
1720
|
return this.R * x;
|
|
1723
1721
|
}
|
|
1724
1722
|
}), xe = 6378137, wt = {
|
|
@@ -1774,25 +1772,25 @@ function nl() {
|
|
|
1774
1772
|
function se(t, e, i, n) {
|
|
1775
1773
|
return new fe(t, e, i, n);
|
|
1776
1774
|
}
|
|
1777
|
-
var be =
|
|
1775
|
+
var be = k({}, Ft, {
|
|
1778
1776
|
code: "EPSG:3857",
|
|
1779
1777
|
projection: wt,
|
|
1780
1778
|
transformation: (function() {
|
|
1781
1779
|
var t = 0.5 / (Math.PI * wt.R);
|
|
1782
1780
|
return se(t, 0.5, -t, 0.5);
|
|
1783
1781
|
})()
|
|
1784
|
-
}), Mi =
|
|
1782
|
+
}), Mi = k({}, be, {
|
|
1785
1783
|
code: "EPSG:900913"
|
|
1786
1784
|
});
|
|
1787
1785
|
function Te(t) {
|
|
1788
1786
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
1789
1787
|
}
|
|
1790
1788
|
function Me(t, e) {
|
|
1791
|
-
var i = "", n, s, u, m,
|
|
1789
|
+
var i = "", n, s, u, m, w, x;
|
|
1792
1790
|
for (n = 0, u = t.length; n < u; n++) {
|
|
1793
|
-
for (
|
|
1794
|
-
x =
|
|
1795
|
-
i += e ?
|
|
1791
|
+
for (w = t[n], s = 0, m = w.length; s < m; s++)
|
|
1792
|
+
x = w[s], i += (s ? "L" : "M") + x.x + " " + x.y;
|
|
1793
|
+
i += e ? H.svg ? "z" : "x" : "";
|
|
1796
1794
|
}
|
|
1797
1795
|
return i || "M0 0";
|
|
1798
1796
|
}
|
|
@@ -1826,7 +1824,7 @@ function nl() {
|
|
|
1826
1824
|
function Ut(t) {
|
|
1827
1825
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
1828
1826
|
}
|
|
1829
|
-
var
|
|
1827
|
+
var H = {
|
|
1830
1828
|
ie: De,
|
|
1831
1829
|
ielt9: hn,
|
|
1832
1830
|
edge: Si,
|
|
@@ -1862,17 +1860,17 @@ function nl() {
|
|
|
1862
1860
|
inlineSvg: yn,
|
|
1863
1861
|
mac: li,
|
|
1864
1862
|
linux: Di
|
|
1865
|
-
}, Ni =
|
|
1863
|
+
}, Ni = H.msPointer ? "MSPointerDown" : "pointerdown", Ri = H.msPointer ? "MSPointerMove" : "pointermove", He = H.msPointer ? "MSPointerUp" : "pointerup", Hi = H.msPointer ? "MSPointerCancel" : "pointercancel", ui = {
|
|
1866
1864
|
touchstart: Ni,
|
|
1867
1865
|
touchmove: Ri,
|
|
1868
|
-
touchend:
|
|
1869
|
-
touchcancel:
|
|
1866
|
+
touchend: He,
|
|
1867
|
+
touchcancel: Hi
|
|
1870
1868
|
}, Kt = {
|
|
1871
1869
|
touchstart: Pn,
|
|
1872
|
-
touchmove:
|
|
1873
|
-
touchend:
|
|
1874
|
-
touchcancel:
|
|
1875
|
-
}, Jt = {},
|
|
1870
|
+
touchmove: Ve,
|
|
1871
|
+
touchend: Ve,
|
|
1872
|
+
touchcancel: Ve
|
|
1873
|
+
}, Jt = {}, Vi = !1;
|
|
1876
1874
|
function Ln(t, e, i) {
|
|
1877
1875
|
return e === "touchstart" && wn(), Kt[e] ? (i = Kt[e].bind(this, i), t.addEventListener(ui[e], i, !1), i) : (console.warn("wrong event specified:", e), v);
|
|
1878
1876
|
}
|
|
@@ -1893,9 +1891,9 @@ function nl() {
|
|
|
1893
1891
|
delete Jt[t.pointerId];
|
|
1894
1892
|
}
|
|
1895
1893
|
function wn() {
|
|
1896
|
-
|
|
1894
|
+
Vi || (document.addEventListener(Ni, Fi, !0), document.addEventListener(Ri, kn, !0), document.addEventListener(He, Gi, !0), document.addEventListener(Hi, Gi, !0), Vi = !0);
|
|
1897
1895
|
}
|
|
1898
|
-
function
|
|
1896
|
+
function Ve(t, e) {
|
|
1899
1897
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
1900
1898
|
e.touches = [];
|
|
1901
1899
|
for (var i in Jt)
|
|
@@ -1904,7 +1902,7 @@ function nl() {
|
|
|
1904
1902
|
}
|
|
1905
1903
|
}
|
|
1906
1904
|
function Pn(t, e) {
|
|
1907
|
-
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && Ot(e),
|
|
1905
|
+
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && Ot(e), Ve(t, e);
|
|
1908
1906
|
}
|
|
1909
1907
|
function Ui(t) {
|
|
1910
1908
|
var e = {}, i, n;
|
|
@@ -1928,8 +1926,8 @@ function nl() {
|
|
|
1928
1926
|
}) && !m.some(function(x) {
|
|
1929
1927
|
return x instanceof HTMLInputElement || x instanceof HTMLSelectElement;
|
|
1930
1928
|
}))) {
|
|
1931
|
-
var
|
|
1932
|
-
|
|
1929
|
+
var w = Date.now();
|
|
1930
|
+
w - i <= W ? (n++, n === 2 && e(Ui(u))) : n = 1, i = w;
|
|
1933
1931
|
}
|
|
1934
1932
|
}
|
|
1935
1933
|
}
|
|
@@ -1945,7 +1943,7 @@ function nl() {
|
|
|
1945
1943
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
|
1946
1944
|
), it = $i(
|
|
1947
1945
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
|
1948
|
-
),
|
|
1946
|
+
), V = it === "webkitTransition" || it === "OTransition" ? it + "End" : "transitionend";
|
|
1949
1947
|
function zt(t) {
|
|
1950
1948
|
return typeof t == "string" ? document.getElementById(t) : t;
|
|
1951
1949
|
}
|
|
@@ -1965,7 +1963,7 @@ function nl() {
|
|
|
1965
1963
|
var e = t.parentNode;
|
|
1966
1964
|
e && e.removeChild(t);
|
|
1967
1965
|
}
|
|
1968
|
-
function
|
|
1966
|
+
function Ht(t) {
|
|
1969
1967
|
for (; t.firstChild; )
|
|
1970
1968
|
t.removeChild(t.firstChild);
|
|
1971
1969
|
}
|
|
@@ -2022,10 +2020,10 @@ function nl() {
|
|
|
2022
2020
|
}
|
|
2023
2021
|
function Ae(t, e, i) {
|
|
2024
2022
|
var n = e || new F(0, 0);
|
|
2025
|
-
t.style[q] = (
|
|
2023
|
+
t.style[q] = (H.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
|
|
2026
2024
|
}
|
|
2027
2025
|
function Pt(t, e) {
|
|
2028
|
-
t._leaflet_pos = e,
|
|
2026
|
+
t._leaflet_pos = e, H.any3d ? Ae(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
|
2029
2027
|
}
|
|
2030
2028
|
function Ie(t) {
|
|
2031
2029
|
return t._leaflet_pos || new F(0, 0);
|
|
@@ -2083,12 +2081,12 @@ function nl() {
|
|
|
2083
2081
|
__proto__: null,
|
|
2084
2082
|
TRANSFORM: q,
|
|
2085
2083
|
TRANSITION: it,
|
|
2086
|
-
TRANSITION_END:
|
|
2084
|
+
TRANSITION_END: V,
|
|
2087
2085
|
get: zt,
|
|
2088
2086
|
getStyle: mt,
|
|
2089
2087
|
create: X,
|
|
2090
2088
|
remove: at,
|
|
2091
|
-
empty:
|
|
2089
|
+
empty: Ht,
|
|
2092
2090
|
toFront: Qt,
|
|
2093
2091
|
toBack: ae,
|
|
2094
2092
|
hasClass: ci,
|
|
@@ -2133,8 +2131,8 @@ function nl() {
|
|
|
2133
2131
|
for (var s in e)
|
|
2134
2132
|
zn(t, s, e[s], i);
|
|
2135
2133
|
else if (e = T(e), arguments.length === 2)
|
|
2136
|
-
co(t, function(
|
|
2137
|
-
return ot(e,
|
|
2134
|
+
co(t, function(w) {
|
|
2135
|
+
return ot(e, w) !== -1;
|
|
2138
2136
|
});
|
|
2139
2137
|
else
|
|
2140
2138
|
for (var u = 0, m = e.length; u < m; u++)
|
|
@@ -2156,11 +2154,11 @@ function nl() {
|
|
|
2156
2154
|
var s = e + f(i) + (n ? "_" + f(n) : "");
|
|
2157
2155
|
if (t[le] && t[le][s])
|
|
2158
2156
|
return this;
|
|
2159
|
-
var u = function(
|
|
2160
|
-
return i.call(n || t,
|
|
2157
|
+
var u = function(w) {
|
|
2158
|
+
return i.call(n || t, w || window.event);
|
|
2161
2159
|
}, m = u;
|
|
2162
|
-
!
|
|
2163
|
-
|
|
2160
|
+
!H.touchNative && H.pointer && e.indexOf("touch") === 0 ? u = Ln(t, e, u) : H.touch && e === "dblclick" ? u = R(t, u) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(In[e] || e, u, H.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (u = function(w) {
|
|
2161
|
+
w = w || window.event, Bn(t, w) && m(w);
|
|
2164
2162
|
}, t.addEventListener(In[e], u, !1)) : t.addEventListener(e, m, !1) : t.attachEvent("on" + e, u), t[le] = t[le] || {}, t[le][s] = u;
|
|
2165
2163
|
}
|
|
2166
2164
|
function zn(t, e, i, n, s) {
|
|
@@ -2168,7 +2166,7 @@ function nl() {
|
|
|
2168
2166
|
var u = t[le] && t[le][s];
|
|
2169
2167
|
if (!u)
|
|
2170
2168
|
return this;
|
|
2171
|
-
!
|
|
2169
|
+
!H.touchNative && H.pointer && e.indexOf("touch") === 0 ? hi(t, e, u) : H.touch && e === "dblclick" ? _t(t, u) : "removeEventListener" in t ? t.removeEventListener(In[e] || e, u, !1) : t.detachEvent("on" + e, u), t[le][s] = null;
|
|
2172
2170
|
}
|
|
2173
2171
|
function Oe(t) {
|
|
2174
2172
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
|
@@ -2203,9 +2201,9 @@ function nl() {
|
|
|
2203
2201
|
(t.clientY - n.top) / i.y - e.clientTop
|
|
2204
2202
|
);
|
|
2205
2203
|
}
|
|
2206
|
-
var As =
|
|
2204
|
+
var As = H.linux && H.chrome ? window.devicePixelRatio : H.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
|
|
2207
2205
|
function po(t) {
|
|
2208
|
-
return
|
|
2206
|
+
return H.edge ? t.wheelDeltaY / 2 : (
|
|
2209
2207
|
// Don't trust window-geometry-based delta
|
|
2210
2208
|
t.deltaY && t.deltaMode === 0 ? -t.deltaY / As : (
|
|
2211
2209
|
// Pixels
|
|
@@ -2367,7 +2365,7 @@ function nl() {
|
|
|
2367
2365
|
trackResize: !0
|
|
2368
2366
|
},
|
|
2369
2367
|
initialize: function(t, e) {
|
|
2370
|
-
e = C(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = a(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(Q(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = it &&
|
|
2368
|
+
e = C(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = a(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(Q(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = it && H.any3d && !H.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), J(this._proxy, V, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
2371
2369
|
},
|
|
2372
2370
|
// @section Methods for modifying map state
|
|
2373
2371
|
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
|
|
@@ -2375,7 +2373,7 @@ function nl() {
|
|
|
2375
2373
|
// animation options.
|
|
2376
2374
|
setView: function(t, e, i) {
|
|
2377
2375
|
if (e = e === void 0 ? this._zoom : this._limitZoom(e), t = this._limitCenter(Q(t), e, this.options.maxBounds), i = i || {}, this._stop(), this._loaded && !i.reset && i !== !0) {
|
|
2378
|
-
i.animate !== void 0 && (i.zoom =
|
|
2376
|
+
i.animate !== void 0 && (i.zoom = k({ animate: i.animate }, i.zoom), i.pan = k({ animate: i.animate, duration: i.duration }, i.pan));
|
|
2379
2377
|
var n = this._zoom !== e ? this._tryAnimatedZoom && this._tryAnimatedZoom(t, e, i.zoom) : this._tryAnimatedPan(t, i.pan);
|
|
2380
2378
|
if (n)
|
|
2381
2379
|
return clearTimeout(this._sizeTimer), this;
|
|
@@ -2390,12 +2388,12 @@ function nl() {
|
|
|
2390
2388
|
// @method zoomIn(delta?: Number, options?: Zoom options): this
|
|
2391
2389
|
// Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
|
|
2392
2390
|
zoomIn: function(t, e) {
|
|
2393
|
-
return t = t || (
|
|
2391
|
+
return t = t || (H.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom + t, e);
|
|
2394
2392
|
},
|
|
2395
2393
|
// @method zoomOut(delta?: Number, options?: Zoom options): this
|
|
2396
2394
|
// Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
|
|
2397
2395
|
zoomOut: function(t, e) {
|
|
2398
|
-
return t = t || (
|
|
2396
|
+
return t = t || (H.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom - t, e);
|
|
2399
2397
|
},
|
|
2400
2398
|
// @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this
|
|
2401
2399
|
// Zooms the map while keeping a specified geographical point on the map
|
|
@@ -2404,8 +2402,8 @@ function nl() {
|
|
|
2404
2402
|
// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
|
|
2405
2403
|
// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
|
|
2406
2404
|
setZoomAround: function(t, e, i) {
|
|
2407
|
-
var n = this.getZoomScale(e), s = this.getSize().divideBy(2), u = t instanceof F ? t : this.latLngToContainerPoint(t), m = u.subtract(s).multiplyBy(1 - 1 / n),
|
|
2408
|
-
return this.setView(
|
|
2405
|
+
var n = this.getZoomScale(e), s = this.getSize().divideBy(2), u = t instanceof F ? t : this.latLngToContainerPoint(t), m = u.subtract(s).multiplyBy(1 - 1 / n), w = this.containerPointToLatLng(s.add(m));
|
|
2406
|
+
return this.setView(w, e, { zoom: i });
|
|
2409
2407
|
},
|
|
2410
2408
|
_getBoundsCenterZoom: function(t, e) {
|
|
2411
2409
|
e = e || {}, t = t.getBounds ? t.getBounds() : pt(t);
|
|
@@ -2415,7 +2413,7 @@ function nl() {
|
|
|
2415
2413
|
center: t.getCenter(),
|
|
2416
2414
|
zoom: s
|
|
2417
2415
|
};
|
|
2418
|
-
var u = n.subtract(i).divideBy(2), m = this.project(t.getSouthWest(), s),
|
|
2416
|
+
var u = n.subtract(i).divideBy(2), m = this.project(t.getSouthWest(), s), w = this.project(t.getNorthEast(), s), x = this.unproject(m.add(w).divideBy(2).add(u), s);
|
|
2419
2417
|
return {
|
|
2420
2418
|
center: x,
|
|
2421
2419
|
zoom: s
|
|
@@ -2463,14 +2461,14 @@ function nl() {
|
|
|
2463
2461
|
// Sets the view of the map (geographical center and zoom) performing a smooth
|
|
2464
2462
|
// pan-zoom animation.
|
|
2465
2463
|
flyTo: function(t, e, i) {
|
|
2466
|
-
if (i = i || {}, i.animate === !1 || !
|
|
2464
|
+
if (i = i || {}, i.animate === !1 || !H.any3d)
|
|
2467
2465
|
return this.setView(t, e, i);
|
|
2468
2466
|
this._stop();
|
|
2469
2467
|
var n = this.project(this.getCenter()), s = this.project(t), u = this.getSize(), m = this._zoom;
|
|
2470
2468
|
t = Q(t), e = e === void 0 ? m : e;
|
|
2471
|
-
var
|
|
2469
|
+
var w = Math.max(u.x, u.y), x = w * this.getZoomScale(m, e), S = s.distanceTo(n) || 1, E = 1.42, $ = E * E;
|
|
2472
2470
|
function tt(Ct) {
|
|
2473
|
-
var rn = Ct ? -1 : 1, yr = Ct ? x :
|
|
2471
|
+
var rn = Ct ? -1 : 1, yr = Ct ? x : w, br = x * x - w * w + rn * $ * $ * S * S, Lr = 2 * yr * $ * S, Wn = br / Lr, Xo = Math.sqrt(Wn * Wn + 1) - Wn, kr = Xo < 1e-9 ? -18 : Math.log(Xo);
|
|
2474
2472
|
return kr;
|
|
2475
2473
|
}
|
|
2476
2474
|
function Et(Ct) {
|
|
@@ -2482,22 +2480,22 @@ function nl() {
|
|
|
2482
2480
|
function qt(Ct) {
|
|
2483
2481
|
return Et(Ct) / At(Ct);
|
|
2484
2482
|
}
|
|
2485
|
-
var
|
|
2483
|
+
var Vt = tt(0);
|
|
2486
2484
|
function Ye(Ct) {
|
|
2487
|
-
return
|
|
2485
|
+
return w * (At(Vt) / At(Vt + E * Ct));
|
|
2488
2486
|
}
|
|
2489
2487
|
function pr(Ct) {
|
|
2490
|
-
return
|
|
2488
|
+
return w * (At(Vt) * qt(Vt + E * Ct) - Et(Vt)) / $;
|
|
2491
2489
|
}
|
|
2492
2490
|
function _r(Ct) {
|
|
2493
2491
|
return 1 - Math.pow(1 - Ct, 1.5);
|
|
2494
2492
|
}
|
|
2495
|
-
var gr = Date.now(), jo = (tt(1) -
|
|
2493
|
+
var gr = Date.now(), jo = (tt(1) - Vt) / E, vr = i.duration ? 1e3 * i.duration : 1e3 * jo * 0.8;
|
|
2496
2494
|
function Yo() {
|
|
2497
2495
|
var Ct = (Date.now() - gr) / vr, rn = _r(Ct) * jo;
|
|
2498
2496
|
Ct <= 1 ? (this._flyToFrame = Y(Yo, this), this._move(
|
|
2499
2497
|
this.unproject(n.add(s.subtract(n).multiplyBy(pr(rn) / S)), m),
|
|
2500
|
-
this.getScaleZoom(
|
|
2498
|
+
this.getScaleZoom(w / Ye(rn), m),
|
|
2501
2499
|
{ flyTo: !0 }
|
|
2502
2500
|
)) : this._move(t, e)._moveEnd(!0);
|
|
2503
2501
|
}
|
|
@@ -2541,10 +2539,10 @@ function nl() {
|
|
|
2541
2539
|
// the map will not be panned.
|
|
2542
2540
|
panInside: function(t, e) {
|
|
2543
2541
|
e = e || {};
|
|
2544
|
-
var i = U(e.paddingTopLeft || e.padding || [0, 0]), n = U(e.paddingBottomRight || e.padding || [0, 0]), s = this.project(this.getCenter()), u = this.project(t), m = this.getPixelBounds(),
|
|
2545
|
-
if (!
|
|
2542
|
+
var i = U(e.paddingTopLeft || e.padding || [0, 0]), n = U(e.paddingBottomRight || e.padding || [0, 0]), s = this.project(this.getCenter()), u = this.project(t), m = this.getPixelBounds(), w = bt([m.min.add(i), m.max.subtract(n)]), x = w.getSize();
|
|
2543
|
+
if (!w.contains(u)) {
|
|
2546
2544
|
this._enforcingBounds = !0;
|
|
2547
|
-
var S = u.subtract(
|
|
2545
|
+
var S = u.subtract(w.getCenter()), E = w.extend(u).getSize().subtract(x);
|
|
2548
2546
|
s.x += S.x < 0 ? -E.x : E.x, s.y += S.y < 0 ? -E.y : E.y, this.panTo(this.unproject(s), e), this._enforcingBounds = !1;
|
|
2549
2547
|
}
|
|
2550
2548
|
return this;
|
|
@@ -2564,7 +2562,7 @@ function nl() {
|
|
|
2564
2562
|
invalidateSize: function(t) {
|
|
2565
2563
|
if (!this._loaded)
|
|
2566
2564
|
return this;
|
|
2567
|
-
t =
|
|
2565
|
+
t = k({
|
|
2568
2566
|
animate: !1,
|
|
2569
2567
|
pan: !0
|
|
2570
2568
|
}, t === !0 ? { animate: !0 } : t);
|
|
@@ -2592,7 +2590,7 @@ function nl() {
|
|
|
2592
2590
|
// modern browsers ([Chrome 50 and newer](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins))
|
|
2593
2591
|
// See `Locate options` for more details.
|
|
2594
2592
|
locate: function(t) {
|
|
2595
|
-
if (t = this._locateOptions =
|
|
2593
|
+
if (t = this._locateOptions = k({
|
|
2596
2594
|
timeout: 1e4,
|
|
2597
2595
|
watch: !1
|
|
2598
2596
|
// setView: false
|
|
@@ -2630,14 +2628,14 @@ function nl() {
|
|
|
2630
2628
|
var m = this.getBoundsZoom(s);
|
|
2631
2629
|
this.setView(n, u.maxZoom ? Math.min(m, u.maxZoom) : m);
|
|
2632
2630
|
}
|
|
2633
|
-
var
|
|
2631
|
+
var w = {
|
|
2634
2632
|
latlng: n,
|
|
2635
2633
|
bounds: s,
|
|
2636
2634
|
timestamp: t.timestamp
|
|
2637
2635
|
};
|
|
2638
2636
|
for (var x in t.coords)
|
|
2639
|
-
typeof t.coords[x] == "number" && (
|
|
2640
|
-
this.fire("locationfound",
|
|
2637
|
+
typeof t.coords[x] == "number" && (w[x] = t.coords[x]);
|
|
2638
|
+
this.fire("locationfound", w);
|
|
2641
2639
|
}
|
|
2642
2640
|
},
|
|
2643
2641
|
// TODO Appropriate docs section?
|
|
@@ -2711,7 +2709,7 @@ function nl() {
|
|
|
2711
2709
|
// the given bounds in its entirety.
|
|
2712
2710
|
getBoundsZoom: function(t, e, i) {
|
|
2713
2711
|
t = pt(t), i = U(i || [0, 0]);
|
|
2714
|
-
var n = this.getZoom() || 0, s = this.getMinZoom(), u = this.getMaxZoom(), m = t.getNorthWest(),
|
|
2712
|
+
var n = this.getZoom() || 0, s = this.getMinZoom(), u = this.getMaxZoom(), m = t.getNorthWest(), w = t.getSouthEast(), x = this.getSize().subtract(i), S = bt(this.project(w, n), this.project(m, n)).getSize(), E = H.any3d ? this.options.zoomSnap : 1, $ = x.x / S.x, tt = x.y / S.y, Et = e ? Math.max($, tt) : Math.min($, tt);
|
|
2715
2713
|
return n = this.getScaleZoom(Et, n), E && (n = Math.round(n / (E / 100)) * (E / 100), n = e ? Math.ceil(n / E) * E : Math.floor(n / E) * E), Math.max(s, Math.min(u, n));
|
|
2716
2714
|
},
|
|
2717
2715
|
// @method getSize(): Point
|
|
@@ -2884,7 +2882,7 @@ function nl() {
|
|
|
2884
2882
|
},
|
|
2885
2883
|
_initLayout: function() {
|
|
2886
2884
|
var t = this._container;
|
|
2887
|
-
this._fadeAnimated = this.options.fadeAnimation &&
|
|
2885
|
+
this._fadeAnimated = this.options.fadeAnimation && H.any3d, K(t, "leaflet-container" + (H.touch ? " leaflet-touch" : "") + (H.retina ? " leaflet-retina" : "") + (H.ielt9 ? " leaflet-oldie" : "") + (H.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
|
|
2888
2886
|
var e = mt(t, "position");
|
|
2889
2887
|
e !== "absolute" && e !== "relative" && e !== "fixed" && e !== "sticky" && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
|
|
2890
2888
|
},
|
|
@@ -2933,7 +2931,7 @@ function nl() {
|
|
|
2933
2931
|
_initEvents: function(t) {
|
|
2934
2932
|
this._targets = {}, this._targets[f(this._container)] = this;
|
|
2935
2933
|
var e = t ? gt : J;
|
|
2936
|
-
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),
|
|
2934
|
+
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), H.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
|
|
2937
2935
|
},
|
|
2938
2936
|
_onResize: function() {
|
|
2939
2937
|
j(this._resizeRequest), this._resizeRequest = Y(
|
|
@@ -2979,7 +2977,7 @@ function nl() {
|
|
|
2979
2977
|
_mouseEvents: ["click", "dblclick", "mouseover", "mouseout", "contextmenu"],
|
|
2980
2978
|
_fireDOMEvent: function(t, e, i) {
|
|
2981
2979
|
if (t.type === "click") {
|
|
2982
|
-
var n =
|
|
2980
|
+
var n = k({}, t);
|
|
2983
2981
|
n.type = "preclick", this._fireDOMEvent(n, n.type, i);
|
|
2984
2982
|
}
|
|
2985
2983
|
var s = this._findEventTargets(t, e);
|
|
@@ -2990,12 +2988,12 @@ function nl() {
|
|
|
2990
2988
|
}
|
|
2991
2989
|
if (s.length) {
|
|
2992
2990
|
e === "contextmenu" && Ot(t);
|
|
2993
|
-
var
|
|
2991
|
+
var w = s[0], x = {
|
|
2994
2992
|
originalEvent: t
|
|
2995
2993
|
};
|
|
2996
2994
|
if (t.type !== "keypress" && t.type !== "keydown" && t.type !== "keyup") {
|
|
2997
|
-
var S =
|
|
2998
|
-
x.containerPoint = S ? this.latLngToContainerPoint(
|
|
2995
|
+
var S = w.getLatLng && (!w._radius || w._radius <= 10);
|
|
2996
|
+
x.containerPoint = S ? this.latLngToContainerPoint(w.getLatLng()) : this.mouseEventToContainerPoint(t), x.layerPoint = this.containerPointToLayerPoint(x.containerPoint), x.latlng = S ? w.getLatLng() : this.layerPointToLatLng(x.layerPoint);
|
|
2999
2997
|
}
|
|
3000
2998
|
for (m = 0; m < s.length; m++)
|
|
3001
2999
|
if (s[m].fire(e, x, !0), x.originalEvent._stopped || s[m].options.bubblingMouseEvents === !1 && ot(this._mouseEvents, e) !== -1)
|
|
@@ -3073,14 +3071,14 @@ function nl() {
|
|
|
3073
3071
|
var n = bt(
|
|
3074
3072
|
this.project(e.getNorthEast(), i),
|
|
3075
3073
|
this.project(e.getSouthWest(), i)
|
|
3076
|
-
), s = n.min.subtract(t.min), u = n.max.subtract(t.max), m = this._rebound(s.x, -u.x),
|
|
3077
|
-
return new F(m,
|
|
3074
|
+
), s = n.min.subtract(t.min), u = n.max.subtract(t.max), m = this._rebound(s.x, -u.x), w = this._rebound(s.y, -u.y);
|
|
3075
|
+
return new F(m, w);
|
|
3078
3076
|
},
|
|
3079
3077
|
_rebound: function(t, e) {
|
|
3080
3078
|
return t + e > 0 ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e));
|
|
3081
3079
|
},
|
|
3082
3080
|
_limitZoom: function(t) {
|
|
3083
|
-
var e = this.getMinZoom(), i = this.getMaxZoom(), n =
|
|
3081
|
+
var e = this.getMinZoom(), i = this.getMaxZoom(), n = H.any3d ? this.options.zoomSnap : 1;
|
|
3084
3082
|
return n && (t = Math.round(t / n) * n), Math.max(e, Math.min(i, t));
|
|
3085
3083
|
},
|
|
3086
3084
|
_onPanTransitionStep: function() {
|
|
@@ -3326,7 +3324,7 @@ function nl() {
|
|
|
3326
3324
|
_update: function() {
|
|
3327
3325
|
if (!this._container)
|
|
3328
3326
|
return this;
|
|
3329
|
-
|
|
3327
|
+
Ht(this._baseLayersList), Ht(this._overlaysList), this._layerControlInputs = [];
|
|
3330
3328
|
var t, e, i, n, s = 0;
|
|
3331
3329
|
for (i = 0; i < this._layers.length; i++)
|
|
3332
3330
|
n = this._layers[i], this._addItem(n), e = e || n.overlay, t = t || !n.overlay, s += n.overlay ? 0 : 1;
|
|
@@ -3508,7 +3506,7 @@ function nl() {
|
|
|
3508
3506
|
position: "bottomright",
|
|
3509
3507
|
// @option prefix: String|false = 'Leaflet'
|
|
3510
3508
|
// The HTML text shown before the attributions. Pass `false` to disable.
|
|
3511
|
-
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (
|
|
3509
|
+
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (H.inlineSvg ? Zs + " " : "") + "Leaflet</a>"
|
|
3512
3510
|
},
|
|
3513
3511
|
initialize: function(t) {
|
|
3514
3512
|
C(this, t), this._attributions = {};
|
|
@@ -3590,7 +3588,7 @@ function nl() {
|
|
|
3590
3588
|
ue.addTo = function(t, e) {
|
|
3591
3589
|
return t.addHandler(e, this), this;
|
|
3592
3590
|
};
|
|
3593
|
-
var Ns = { Events: ct }, yo =
|
|
3591
|
+
var Ns = { Events: ct }, yo = H.touch ? "touchstart mousedown" : "mousedown", Le = Nt.extend({
|
|
3594
3592
|
options: {
|
|
3595
3593
|
// @section
|
|
3596
3594
|
// @aka Draggable options
|
|
@@ -3656,18 +3654,18 @@ function nl() {
|
|
|
3656
3654
|
}
|
|
3657
3655
|
});
|
|
3658
3656
|
function bo(t, e, i) {
|
|
3659
|
-
var n, s = [1, 4, 2, 8], u, m,
|
|
3657
|
+
var n, s = [1, 4, 2, 8], u, m, w, x, S, E, $, tt;
|
|
3660
3658
|
for (u = 0, E = t.length; u < E; u++)
|
|
3661
3659
|
t[u]._code = Ee(t[u], e);
|
|
3662
|
-
for (
|
|
3663
|
-
for ($ = s[
|
|
3660
|
+
for (w = 0; w < 4; w++) {
|
|
3661
|
+
for ($ = s[w], n = [], u = 0, E = t.length, m = E - 1; u < E; m = u++)
|
|
3664
3662
|
x = t[u], S = t[m], x._code & $ ? S._code & $ || (tt = ji(S, x, $, e, i), tt._code = Ee(tt, e), n.push(tt)) : (S._code & $ && (tt = ji(S, x, $, e, i), tt._code = Ee(tt, e), n.push(tt)), n.push(x));
|
|
3665
3663
|
t = n;
|
|
3666
3664
|
}
|
|
3667
3665
|
return t;
|
|
3668
3666
|
}
|
|
3669
3667
|
function Lo(t, e) {
|
|
3670
|
-
var i, n, s, u, m,
|
|
3668
|
+
var i, n, s, u, m, w, x, S, E;
|
|
3671
3669
|
if (!t || t.length === 0)
|
|
3672
3670
|
throw new Error("latlngs not passed");
|
|
3673
3671
|
Wt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
@@ -3675,12 +3673,12 @@ function nl() {
|
|
|
3675
3673
|
Et < 1700 && ($ = Nn(t));
|
|
3676
3674
|
var At = t.length, qt = [];
|
|
3677
3675
|
for (i = 0; i < At; i++) {
|
|
3678
|
-
var
|
|
3679
|
-
qt.push(e.project(Q([
|
|
3676
|
+
var Vt = Q(t[i]);
|
|
3677
|
+
qt.push(e.project(Q([Vt.lat - $.lat, Vt.lng - $.lng])));
|
|
3680
3678
|
}
|
|
3681
|
-
for (
|
|
3682
|
-
s = qt[i], u = qt[n], m = s.y * u.x - u.y * s.x, x += (s.x + u.x) * m, S += (s.y + u.y) * m,
|
|
3683
|
-
|
|
3679
|
+
for (w = x = S = 0, i = 0, n = At - 1; i < At; n = i++)
|
|
3680
|
+
s = qt[i], u = qt[n], m = s.y * u.x - u.y * s.x, x += (s.x + u.x) * m, S += (s.y + u.y) * m, w += m * 3;
|
|
3681
|
+
w === 0 ? E = qt[0] : E = [x / w, S / w];
|
|
3684
3682
|
var Ye = e.unproject(U(E));
|
|
3685
3683
|
return Q([Ye.lat + $.lat, Ye.lng + $.lng]);
|
|
3686
3684
|
}
|
|
@@ -3701,15 +3699,15 @@ function nl() {
|
|
|
3701
3699
|
if (!e || !t.length)
|
|
3702
3700
|
return t.slice();
|
|
3703
3701
|
var i = e * e;
|
|
3704
|
-
return t = Fs(t, i), t =
|
|
3702
|
+
return t = Fs(t, i), t = Vs(t, i), t;
|
|
3705
3703
|
}
|
|
3706
3704
|
function wo(t, e, i) {
|
|
3707
3705
|
return Math.sqrt(gi(t, e, i, !0));
|
|
3708
3706
|
}
|
|
3709
|
-
function
|
|
3707
|
+
function Hs(t, e, i) {
|
|
3710
3708
|
return gi(t, e, i);
|
|
3711
3709
|
}
|
|
3712
|
-
function
|
|
3710
|
+
function Vs(t, e) {
|
|
3713
3711
|
var i = t.length, n = typeof Uint8Array < "u" ? Uint8Array : Array, s = new n(i);
|
|
3714
3712
|
s[0] = s[i - 1] = 1, Rn(t, s, e, 0, i - 1);
|
|
3715
3713
|
var u, m = [];
|
|
@@ -3718,9 +3716,9 @@ function nl() {
|
|
|
3718
3716
|
return m;
|
|
3719
3717
|
}
|
|
3720
3718
|
function Rn(t, e, i, n, s) {
|
|
3721
|
-
var u = 0, m,
|
|
3722
|
-
for (
|
|
3723
|
-
x = gi(t[
|
|
3719
|
+
var u = 0, m, w, x;
|
|
3720
|
+
for (w = n + 1; w <= s - 1; w++)
|
|
3721
|
+
x = gi(t[w], t[n], t[s], !0), x > u && (m = w, u = x);
|
|
3724
3722
|
u > i && (e[m] = 1, Rn(t, e, i, n, m), Rn(t, e, i, m, s));
|
|
3725
3723
|
}
|
|
3726
3724
|
function Fs(t, e) {
|
|
@@ -3730,18 +3728,18 @@ function nl() {
|
|
|
3730
3728
|
}
|
|
3731
3729
|
var Po;
|
|
3732
3730
|
function Co(t, e, i, n, s) {
|
|
3733
|
-
var u = n ? Po : Ee(t, i), m = Ee(e, i),
|
|
3731
|
+
var u = n ? Po : Ee(t, i), m = Ee(e, i), w, x, S;
|
|
3734
3732
|
for (Po = m; ; ) {
|
|
3735
3733
|
if (!(u | m))
|
|
3736
3734
|
return [t, e];
|
|
3737
3735
|
if (u & m)
|
|
3738
3736
|
return !1;
|
|
3739
|
-
|
|
3737
|
+
w = u || m, x = ji(t, e, w, i, s), S = Ee(x, i), w === u ? (t = x, u = S) : (e = x, m = S);
|
|
3740
3738
|
}
|
|
3741
3739
|
}
|
|
3742
3740
|
function ji(t, e, i, n, s) {
|
|
3743
|
-
var u = e.x - t.x, m = e.y - t.y,
|
|
3744
|
-
return i & 8 ? (S = t.x + u * (x.y - t.y) / m, E = x.y) : i & 4 ? (S = t.x + u * (
|
|
3741
|
+
var u = e.x - t.x, m = e.y - t.y, w = n.min, x = n.max, S, E;
|
|
3742
|
+
return i & 8 ? (S = t.x + u * (x.y - t.y) / m, E = x.y) : i & 4 ? (S = t.x + u * (w.y - t.y) / m, E = w.y) : i & 2 ? (S = x.x, E = t.y + m * (x.x - t.x) / u) : i & 1 && (S = w.x, E = t.y + m * (w.x - t.x) / u), new F(S, E, s);
|
|
3745
3743
|
}
|
|
3746
3744
|
function Ee(t, e) {
|
|
3747
3745
|
var i = 0;
|
|
@@ -3752,8 +3750,8 @@ function nl() {
|
|
|
3752
3750
|
return i * i + n * n;
|
|
3753
3751
|
}
|
|
3754
3752
|
function gi(t, e, i, n) {
|
|
3755
|
-
var s = e.x, u = e.y, m = i.x - s,
|
|
3756
|
-
return x > 0 && (S = ((t.x - s) * m + (t.y - u) *
|
|
3753
|
+
var s = e.x, u = e.y, m = i.x - s, w = i.y - u, x = m * m + w * w, S;
|
|
3754
|
+
return x > 0 && (S = ((t.x - s) * m + (t.y - u) * w) / x, S > 1 ? (s = i.x, u = i.y) : S > 0 && (s += m * S, u += w * S)), m = t.x - s, w = t.y - u, n ? m * m + w * w : new F(s, u);
|
|
3757
3755
|
}
|
|
3758
3756
|
function Wt(t) {
|
|
3759
3757
|
return !N(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
|
@@ -3762,7 +3760,7 @@ function nl() {
|
|
|
3762
3760
|
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), Wt(t);
|
|
3763
3761
|
}
|
|
3764
3762
|
function To(t, e) {
|
|
3765
|
-
var i, n, s, u, m,
|
|
3763
|
+
var i, n, s, u, m, w, x, S;
|
|
3766
3764
|
if (!t || t.length === 0)
|
|
3767
3765
|
throw new Error("latlngs not passed");
|
|
3768
3766
|
Wt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
@@ -3779,21 +3777,21 @@ function nl() {
|
|
|
3779
3777
|
S = At[0];
|
|
3780
3778
|
else
|
|
3781
3779
|
for (i = 0, u = 0; i < Et - 1; i++)
|
|
3782
|
-
if (m = At[i],
|
|
3780
|
+
if (m = At[i], w = At[i + 1], s = m.distanceTo(w), u += s, u > n) {
|
|
3783
3781
|
x = (u - n) / s, S = [
|
|
3784
|
-
|
|
3785
|
-
|
|
3782
|
+
w.x - x * (w.x - m.x),
|
|
3783
|
+
w.y - x * (w.y - m.y)
|
|
3786
3784
|
];
|
|
3787
3785
|
break;
|
|
3788
3786
|
}
|
|
3789
|
-
var
|
|
3790
|
-
return Q([
|
|
3787
|
+
var Vt = e.unproject(U(S));
|
|
3788
|
+
return Q([Vt.lat + E.lat, Vt.lng + E.lng]);
|
|
3791
3789
|
}
|
|
3792
3790
|
var Us = {
|
|
3793
3791
|
__proto__: null,
|
|
3794
3792
|
simplify: ko,
|
|
3795
3793
|
pointToSegmentDistance: wo,
|
|
3796
|
-
closestPointOnSegment:
|
|
3794
|
+
closestPointOnSegment: Hs,
|
|
3797
3795
|
clipSegment: Co,
|
|
3798
3796
|
_getEdgeIntersection: ji,
|
|
3799
3797
|
_getBitCode: Ee,
|
|
@@ -3801,7 +3799,7 @@ function nl() {
|
|
|
3801
3799
|
isFlat: Wt,
|
|
3802
3800
|
_flat: xo,
|
|
3803
3801
|
polylineCenter: To
|
|
3804
|
-
},
|
|
3802
|
+
}, Hn = {
|
|
3805
3803
|
project: function(t) {
|
|
3806
3804
|
return new F(t.lng, t.lat);
|
|
3807
3805
|
},
|
|
@@ -3809,37 +3807,37 @@ function nl() {
|
|
|
3809
3807
|
return new G(t.y, t.x);
|
|
3810
3808
|
},
|
|
3811
3809
|
bounds: new dt([-180, -90], [180, 90])
|
|
3812
|
-
},
|
|
3810
|
+
}, Vn = {
|
|
3813
3811
|
R: 6378137,
|
|
3814
3812
|
R_MINOR: 6356752314245179e-9,
|
|
3815
3813
|
bounds: new dt([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
3816
3814
|
project: function(t) {
|
|
3817
|
-
var e = Math.PI / 180, i = this.R, n = t.lat * e, s = this.R_MINOR / i, u = Math.sqrt(1 - s * s), m = u * Math.sin(n),
|
|
3818
|
-
return n = -i * Math.log(Math.max(
|
|
3815
|
+
var e = Math.PI / 180, i = this.R, n = t.lat * e, s = this.R_MINOR / i, u = Math.sqrt(1 - s * s), m = u * Math.sin(n), w = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - m) / (1 + m), u / 2);
|
|
3816
|
+
return n = -i * Math.log(Math.max(w, 1e-10)), new F(t.lng * e * i, n);
|
|
3819
3817
|
},
|
|
3820
3818
|
unproject: function(t) {
|
|
3821
|
-
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, s = Math.sqrt(1 - n * n), u = Math.exp(-t.y / i), m = Math.PI / 2 - 2 * Math.atan(u),
|
|
3819
|
+
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, s = Math.sqrt(1 - n * n), u = Math.exp(-t.y / i), m = Math.PI / 2 - 2 * Math.atan(u), w = 0, x = 0.1, S; w < 15 && Math.abs(x) > 1e-7; w++)
|
|
3822
3820
|
S = s * Math.sin(m), S = Math.pow((1 - S) / (1 + S), s / 2), x = Math.PI / 2 - 2 * Math.atan(u * S) - m, m += x;
|
|
3823
3821
|
return new G(m * e, t.x * e / i);
|
|
3824
3822
|
}
|
|
3825
3823
|
}, $s = {
|
|
3826
3824
|
__proto__: null,
|
|
3827
|
-
LonLat:
|
|
3828
|
-
Mercator:
|
|
3825
|
+
LonLat: Hn,
|
|
3826
|
+
Mercator: Vn,
|
|
3829
3827
|
SphericalMercator: wt
|
|
3830
|
-
}, Ws =
|
|
3828
|
+
}, Ws = k({}, Ft, {
|
|
3831
3829
|
code: "EPSG:3395",
|
|
3832
|
-
projection:
|
|
3830
|
+
projection: Vn,
|
|
3833
3831
|
transformation: (function() {
|
|
3834
|
-
var t = 0.5 / (Math.PI *
|
|
3832
|
+
var t = 0.5 / (Math.PI * Vn.R);
|
|
3835
3833
|
return se(t, 0.5, -t, 0.5);
|
|
3836
3834
|
})()
|
|
3837
|
-
}), Mo =
|
|
3835
|
+
}), Mo = k({}, Ft, {
|
|
3838
3836
|
code: "EPSG:4326",
|
|
3839
|
-
projection:
|
|
3837
|
+
projection: Hn,
|
|
3840
3838
|
transformation: se(1 / 180, 1, -1 / 180, 0.5)
|
|
3841
|
-
}), qs =
|
|
3842
|
-
projection:
|
|
3839
|
+
}), qs = k({}, Rt, {
|
|
3840
|
+
projection: Hn,
|
|
3843
3841
|
transformation: se(1, 0, -1, 0),
|
|
3844
3842
|
scale: function(t) {
|
|
3845
3843
|
return Math.pow(2, t);
|
|
@@ -4176,7 +4174,7 @@ function nl() {
|
|
|
4176
4174
|
return e = e || document.createElement("img"), e.src = t, e;
|
|
4177
4175
|
},
|
|
4178
4176
|
_getIconUrl: function(t) {
|
|
4179
|
-
return
|
|
4177
|
+
return H.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
|
|
4180
4178
|
}
|
|
4181
4179
|
});
|
|
4182
4180
|
function Xs(t) {
|
|
@@ -4235,9 +4233,9 @@ function nl() {
|
|
|
4235
4233
|
return this._draggable && this._draggable._moved;
|
|
4236
4234
|
},
|
|
4237
4235
|
_adjustPan: function(t) {
|
|
4238
|
-
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, s = this._marker.options.autoPanPadding, u = Ie(e._icon), m = i.getPixelBounds(),
|
|
4239
|
-
m.min._subtract(
|
|
4240
|
-
m.max._subtract(
|
|
4236
|
+
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, s = this._marker.options.autoPanPadding, u = Ie(e._icon), m = i.getPixelBounds(), w = i.getPixelOrigin(), x = bt(
|
|
4237
|
+
m.min._subtract(w).add(s),
|
|
4238
|
+
m.max._subtract(w).subtract(s)
|
|
4241
4239
|
);
|
|
4242
4240
|
if (!x.contains(u)) {
|
|
4243
4241
|
var S = U(
|
|
@@ -4597,7 +4595,7 @@ function nl() {
|
|
|
4597
4595
|
}
|
|
4598
4596
|
var Fn = Xi.extend({
|
|
4599
4597
|
initialize: function(t, e, i) {
|
|
4600
|
-
if (typeof e == "number" && (e =
|
|
4598
|
+
if (typeof e == "number" && (e = k({}, i, { radius: e })), C(this, e), this._latlng = Q(t), isNaN(this.options.radius))
|
|
4601
4599
|
throw new Error("Circle radius cannot be NaN");
|
|
4602
4600
|
this._mRadius = this.options.radius;
|
|
4603
4601
|
},
|
|
@@ -4624,7 +4622,7 @@ function nl() {
|
|
|
4624
4622
|
_project: function() {
|
|
4625
4623
|
var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
|
|
4626
4624
|
if (n.distance === Ft.distance) {
|
|
4627
|
-
var s = Math.PI / 180, u = this._mRadius / Ft.R / s, m = i.project([e + u, t]),
|
|
4625
|
+
var s = Math.PI / 180, u = this._mRadius / Ft.R / s, m = i.project([e + u, t]), w = i.project([e - u, t]), x = m.add(w).divideBy(2), S = i.unproject(x).lat, E = Math.acos((Math.cos(u * s) - Math.sin(e * s) * Math.sin(S * s)) / (Math.cos(e * s) * Math.cos(S * s))) / s;
|
|
4628
4626
|
(isNaN(E) || E === 0) && (E = u / Math.cos(Math.PI / 180 * e)), this._point = x.subtract(i.getPixelOrigin()), this._radius = isNaN(E) ? 0 : x.x - i.project([S, t - E]).x, this._radiusY = x.y - m.y;
|
|
4629
4627
|
} else {
|
|
4630
4628
|
var $ = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
|
|
@@ -4669,7 +4667,7 @@ function nl() {
|
|
|
4669
4667
|
// @method closestLayerPoint(p: Point): Point
|
|
4670
4668
|
// Returns the point closest to `p` on the Polyline.
|
|
4671
4669
|
closestLayerPoint: function(t) {
|
|
4672
|
-
for (var e = 1 / 0, i = null, n = gi, s, u, m = 0,
|
|
4670
|
+
for (var e = 1 / 0, i = null, n = gi, s, u, m = 0, w = this._parts.length; m < w; m++)
|
|
4673
4671
|
for (var x = this._parts[m], S = 1, E = x.length; S < E; S++) {
|
|
4674
4672
|
s = x[S - 1], u = x[S];
|
|
4675
4673
|
var $ = n(t, s, u, !0);
|
|
@@ -4738,10 +4736,10 @@ function nl() {
|
|
|
4738
4736
|
this._parts = this._rings;
|
|
4739
4737
|
return;
|
|
4740
4738
|
}
|
|
4741
|
-
var e = this._parts, i, n, s, u, m,
|
|
4739
|
+
var e = this._parts, i, n, s, u, m, w, x;
|
|
4742
4740
|
for (i = 0, s = 0, u = this._rings.length; i < u; i++)
|
|
4743
4741
|
for (x = this._rings[i], n = 0, m = x.length; n < m - 1; n++)
|
|
4744
|
-
|
|
4742
|
+
w = Co(x[n], x[n + 1], t, n, !0), w && (e[s] = e[s] || [], e[s].push(w[0]), (w[1] !== x[n + 1] || n === m - 2) && (e[s].push(w[1]), s++));
|
|
4745
4743
|
}
|
|
4746
4744
|
},
|
|
4747
4745
|
// simplify each clipped part of the polyline for performance
|
|
@@ -4757,12 +4755,12 @@ function nl() {
|
|
|
4757
4755
|
},
|
|
4758
4756
|
// Needed by the `Canvas` renderer for interactivity
|
|
4759
4757
|
_containsPoint: function(t, e) {
|
|
4760
|
-
var i, n, s, u, m,
|
|
4758
|
+
var i, n, s, u, m, w, x = this._clickTolerance();
|
|
4761
4759
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
4762
4760
|
return !1;
|
|
4763
4761
|
for (i = 0, u = this._parts.length; i < u; i++)
|
|
4764
|
-
for (
|
|
4765
|
-
if (!(!e && n === 0) && wo(t,
|
|
4762
|
+
for (w = this._parts[i], n = 0, m = w.length, s = m - 1; n < m; s = n++)
|
|
4763
|
+
if (!(!e && n === 0) && wo(t, w[s], w[n]) <= x)
|
|
4766
4764
|
return !0;
|
|
4767
4765
|
return !1;
|
|
4768
4766
|
}
|
|
@@ -4811,12 +4809,12 @@ function nl() {
|
|
|
4811
4809
|
},
|
|
4812
4810
|
// Needed by the `Canvas` renderer for interactivity
|
|
4813
4811
|
_containsPoint: function(t) {
|
|
4814
|
-
var e = !1, i, n, s, u, m,
|
|
4812
|
+
var e = !1, i, n, s, u, m, w, x, S;
|
|
4815
4813
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
4816
4814
|
return !1;
|
|
4817
4815
|
for (u = 0, x = this._parts.length; u < x; u++)
|
|
4818
|
-
for (i = this._parts[u], m = 0, S = i.length,
|
|
4819
|
-
n = i[m], s = i[
|
|
4816
|
+
for (i = this._parts[u], m = 0, S = i.length, w = S - 1; m < S; w = m++)
|
|
4817
|
+
n = i[m], s = i[w], 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);
|
|
4820
4818
|
return e || pe.prototype._containsPoint.call(this, t, !0);
|
|
4821
4819
|
}
|
|
4822
4820
|
});
|
|
@@ -4895,7 +4893,7 @@ function nl() {
|
|
|
4895
4893
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
|
4896
4894
|
// If `layer` is omitted, the style of all features in the current layer is reset.
|
|
4897
4895
|
resetStyle: function(t) {
|
|
4898
|
-
return t === void 0 ? this.eachLayer(this.resetStyle, this) : (t.options =
|
|
4896
|
+
return t === void 0 ? this.eachLayer(this.resetStyle, this) : (t.options = k({}, t.defaultOptions), this._setLayerStyle(t, this.options.style), this);
|
|
4899
4897
|
},
|
|
4900
4898
|
// @method setStyle( <Function> style ): this
|
|
4901
4899
|
// Changes styles of GeoJSON vector layers with the given style function.
|
|
@@ -4909,15 +4907,15 @@ function nl() {
|
|
|
4909
4907
|
}
|
|
4910
4908
|
});
|
|
4911
4909
|
function Ki(t, e) {
|
|
4912
|
-
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, s = [], u = e && e.pointToLayer, m = e && e.coordsToLatLng || Gn,
|
|
4910
|
+
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, s = [], u = e && e.pointToLayer, m = e && e.coordsToLatLng || Gn, w, x, S, E;
|
|
4913
4911
|
if (!n && !i)
|
|
4914
4912
|
return null;
|
|
4915
4913
|
switch (i.type) {
|
|
4916
4914
|
case "Point":
|
|
4917
|
-
return
|
|
4915
|
+
return w = m(n), Ao(u, t, w, e);
|
|
4918
4916
|
case "MultiPoint":
|
|
4919
4917
|
for (S = 0, E = n.length; S < E; S++)
|
|
4920
|
-
|
|
4918
|
+
w = m(n[S]), s.push(Ao(u, t, w, e));
|
|
4921
4919
|
return new me(s);
|
|
4922
4920
|
case "LineString":
|
|
4923
4921
|
case "MultiLineString":
|
|
@@ -4965,7 +4963,7 @@ function nl() {
|
|
|
4965
4963
|
return !e && i && s.length > 0 && s.push(s[0].slice()), s;
|
|
4966
4964
|
}
|
|
4967
4965
|
function qe(t, e) {
|
|
4968
|
-
return t.feature ?
|
|
4966
|
+
return t.feature ? k({}, t.feature, { geometry: e }) : tn(e);
|
|
4969
4967
|
}
|
|
4970
4968
|
function tn(t) {
|
|
4971
4969
|
return t.type === "Feature" || t.type === "FeatureCollection" ? t : {
|
|
@@ -5494,8 +5492,8 @@ function nl() {
|
|
|
5494
5492
|
}
|
|
5495
5493
|
var t = this._map, e = parseInt(mt(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, s = new F(this._containerLeft, -i - this._containerBottom);
|
|
5496
5494
|
s._add(Ie(this._container));
|
|
5497
|
-
var u = t.layerPointToContainerPoint(s), m = U(this.options.autoPanPadding),
|
|
5498
|
-
u.x + n + x.x > S.x && (E = u.x + n - S.x + x.x), u.x - E -
|
|
5495
|
+
var u = t.layerPointToContainerPoint(s), m = U(this.options.autoPanPadding), w = U(this.options.autoPanPaddingTopLeft || m), x = U(this.options.autoPanPaddingBottomRight || m), S = t.getSize(), E = 0, $ = 0;
|
|
5496
|
+
u.x + n + x.x > S.x && (E = u.x + n - S.x + x.x), u.x - E - w.x < 0 && (E = u.x - w.x), u.y + i + x.y > S.y && ($ = u.y + i - S.y + x.y), u.y - $ - w.y < 0 && ($ = u.y - w.y), (E || $) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([E, $]));
|
|
5499
5497
|
}
|
|
5500
5498
|
},
|
|
5501
5499
|
_getAnchor: function() {
|
|
@@ -5636,8 +5634,8 @@ function nl() {
|
|
|
5636
5634
|
_adjustPan: function() {
|
|
5637
5635
|
},
|
|
5638
5636
|
_setPosition: function(t) {
|
|
5639
|
-
var e, i, n = this._map, s = this._container, u = n.latLngToContainerPoint(n.getCenter()), m = n.layerPointToContainerPoint(t),
|
|
5640
|
-
|
|
5637
|
+
var e, i, n = this._map, s = this._container, u = n.latLngToContainerPoint(n.getCenter()), m = n.layerPointToContainerPoint(t), w = this.options.direction, x = s.offsetWidth, S = s.offsetHeight, E = U(this.options.offset), $ = this._getAnchor();
|
|
5638
|
+
w === "top" ? (e = x / 2, i = S) : w === "bottom" ? (e = x / 2, i = 0) : w === "center" ? (e = x / 2, i = S / 2) : w === "right" ? (e = 0, i = S / 2) : w === "left" ? (e = x, i = S / 2) : m.x < u.x ? (w = "right", e = 0, i = S / 2) : (w = "left", e = x + (E.x + $.x) * 2, i = S / 2), t = t.subtract(U(e, i, !0)).add(E).add($), vt(s, "leaflet-tooltip-right"), vt(s, "leaflet-tooltip-left"), vt(s, "leaflet-tooltip-top"), vt(s, "leaflet-tooltip-bottom"), K(s, "leaflet-tooltip-" + w), Pt(s, t);
|
|
5641
5639
|
},
|
|
5642
5640
|
_updatePosition: function() {
|
|
5643
5641
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
|
@@ -5773,7 +5771,7 @@ function nl() {
|
|
|
5773
5771
|
},
|
|
5774
5772
|
createIcon: function(t) {
|
|
5775
5773
|
var e = t && t.tagName === "DIV" ? t : document.createElement("div"), i = this.options;
|
|
5776
|
-
if (i.html instanceof Element ? (
|
|
5774
|
+
if (i.html instanceof Element ? (Ht(e), e.appendChild(i.html)) : e.innerHTML = i.html !== !1 ? i.html : "", i.bgPos) {
|
|
5777
5775
|
var n = U(i.bgPos);
|
|
5778
5776
|
e.style.backgroundPosition = -n.x + "px " + -n.y + "px";
|
|
5779
5777
|
}
|
|
@@ -5802,7 +5800,7 @@ function nl() {
|
|
|
5802
5800
|
// `true` by default on mobile browsers, in order to avoid too many requests and keep smooth navigation.
|
|
5803
5801
|
// `false` otherwise in order to display new tiles _during_ panning, since it is easy to pan outside the
|
|
5804
5802
|
// [`keepBuffer`](#gridlayer-keepbuffer) option in desktop browsers.
|
|
5805
|
-
updateWhenIdle:
|
|
5803
|
+
updateWhenIdle: H.mobile,
|
|
5806
5804
|
// @option updateWhenZooming: Boolean = true
|
|
5807
5805
|
// By default, a smooth zoom animation (during a [touch zoom](#map-touchzoom) or a [`flyTo()`](#map-flyto)) will update grid layers every integer zoom level. Setting this option to `false` will update the grid layer only when the smooth animation ends.
|
|
5808
5806
|
updateWhenZooming: !0,
|
|
@@ -5934,7 +5932,7 @@ function nl() {
|
|
|
5934
5932
|
isFinite(i) && (this.options.zIndex = i + t(-1, 1), this._updateZIndex());
|
|
5935
5933
|
},
|
|
5936
5934
|
_updateOpacity: function() {
|
|
5937
|
-
if (this._map && !
|
|
5935
|
+
if (this._map && !H.ielt9) {
|
|
5938
5936
|
$t(this._container, this.options.opacity);
|
|
5939
5937
|
var t = +/* @__PURE__ */ new Date(), e = !1, i = !1;
|
|
5940
5938
|
for (var n in this._tiles) {
|
|
@@ -5995,9 +5993,9 @@ function nl() {
|
|
|
5995
5993
|
this._removeAllTiles(), this._tileZoom = void 0;
|
|
5996
5994
|
},
|
|
5997
5995
|
_retainParent: function(t, e, i, n) {
|
|
5998
|
-
var s = Math.floor(t / 2), u = Math.floor(e / 2), m = i - 1,
|
|
5999
|
-
|
|
6000
|
-
var x = this._tileCoordsToKey(
|
|
5996
|
+
var s = Math.floor(t / 2), u = Math.floor(e / 2), m = i - 1, w = new F(+s, +u);
|
|
5997
|
+
w.z = +m;
|
|
5998
|
+
var x = this._tileCoordsToKey(w), S = this._tiles[x];
|
|
6001
5999
|
return S && S.active ? (S.retain = !0, !0) : (S && S.loaded && (S.retain = !0), m > n ? this._retainParent(s, u, m, n) : !1);
|
|
6002
6000
|
},
|
|
6003
6001
|
_retainChildren: function(t, e, i, n) {
|
|
@@ -6005,7 +6003,7 @@ function nl() {
|
|
|
6005
6003
|
for (var u = 2 * e; u < 2 * e + 2; u++) {
|
|
6006
6004
|
var m = new F(s, u);
|
|
6007
6005
|
m.z = i + 1;
|
|
6008
|
-
var
|
|
6006
|
+
var w = this._tileCoordsToKey(m), x = this._tiles[w];
|
|
6009
6007
|
if (x && x.active) {
|
|
6010
6008
|
x.retain = !0;
|
|
6011
6009
|
continue;
|
|
@@ -6036,7 +6034,7 @@ function nl() {
|
|
|
6036
6034
|
},
|
|
6037
6035
|
_setZoomTransform: function(t, e, i) {
|
|
6038
6036
|
var n = this._map.getZoomScale(i, t.zoom), s = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
|
|
6039
|
-
|
|
6037
|
+
H.any3d ? Ae(t.el, s, n) : Pt(t.el, s);
|
|
6040
6038
|
},
|
|
6041
6039
|
_resetGrid: function() {
|
|
6042
6040
|
var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), n = this._tileZoom, s = this._map.getPixelWorldBounds(this._tileZoom);
|
|
@@ -6061,9 +6059,9 @@ function nl() {
|
|
|
6061
6059
|
if (e) {
|
|
6062
6060
|
var i = this._clampZoom(e.getZoom());
|
|
6063
6061
|
if (t === void 0 && (t = e.getCenter()), this._tileZoom !== void 0) {
|
|
6064
|
-
var n = this._getTiledPixelBounds(t), s = this._pxBoundsToTileRange(n), u = s.getCenter(), m = [],
|
|
6065
|
-
s.getBottomLeft().subtract([
|
|
6066
|
-
s.getTopRight().add([
|
|
6062
|
+
var n = this._getTiledPixelBounds(t), s = this._pxBoundsToTileRange(n), u = s.getCenter(), m = [], w = this.options.keepBuffer, x = new dt(
|
|
6063
|
+
s.getBottomLeft().subtract([w, -w]),
|
|
6064
|
+
s.getTopRight().add([w, -w])
|
|
6067
6065
|
);
|
|
6068
6066
|
if (!(isFinite(s.min.x) && isFinite(s.min.y) && isFinite(s.max.x) && isFinite(s.max.y)))
|
|
6069
6067
|
throw new Error("Attempted to load an infinite number of tiles");
|
|
@@ -6083,8 +6081,8 @@ function nl() {
|
|
|
6083
6081
|
At ? At.current = !0 : m.push(Et);
|
|
6084
6082
|
}
|
|
6085
6083
|
}
|
|
6086
|
-
if (m.sort(function(
|
|
6087
|
-
return
|
|
6084
|
+
if (m.sort(function(Vt, Ye) {
|
|
6085
|
+
return Vt.distanceTo(u) - Ye.distanceTo(u);
|
|
6088
6086
|
}), m.length !== 0) {
|
|
6089
6087
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
6090
6088
|
var qt = document.createDocumentFragment();
|
|
@@ -6138,7 +6136,7 @@ function nl() {
|
|
|
6138
6136
|
_initTile: function(t) {
|
|
6139
6137
|
K(t, "leaflet-tile");
|
|
6140
6138
|
var e = this.getTileSize();
|
|
6141
|
-
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = v, t.onmousemove = v,
|
|
6139
|
+
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = v, t.onmousemove = v, H.ielt9 && this.options.opacity < 1 && $t(t, this.options.opacity);
|
|
6142
6140
|
},
|
|
6143
6141
|
_addTile: function(t, e) {
|
|
6144
6142
|
var i = this._getTilePos(t), n = this._tileCoordsToKey(t), s = this.createTile(this._wrapCoords(t), a(this._tileReady, this, t));
|
|
@@ -6161,7 +6159,7 @@ function nl() {
|
|
|
6161
6159
|
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? ($t(i.el, 0), j(this._fadeFrame), this._fadeFrame = Y(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (K(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
|
6162
6160
|
tile: i.el,
|
|
6163
6161
|
coords: t
|
|
6164
|
-
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"),
|
|
6162
|
+
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), H.ielt9 || !this._map._fadeAnimated ? Y(this._pruneTiles, this) : setTimeout(a(this._pruneTiles, this), 250)));
|
|
6165
6163
|
},
|
|
6166
6164
|
_getTilePos: function(t) {
|
|
6167
6165
|
return t.scaleBy(this.getTileSize()).subtract(this._level.origin);
|
|
@@ -6232,7 +6230,7 @@ function nl() {
|
|
|
6232
6230
|
referrerPolicy: !1
|
|
6233
6231
|
},
|
|
6234
6232
|
initialize: function(t, e) {
|
|
6235
|
-
this._url = t, e = C(this, e), e.detectRetina &&
|
|
6233
|
+
this._url = t, e = C(this, e), e.detectRetina && H.retina && e.maxZoom > 0 ? (e.tileSize = Math.floor(e.tileSize / 2), e.zoomReverse ? (e.zoomOffset--, e.minZoom = Math.min(e.maxZoom, e.minZoom + 1)) : (e.zoomOffset++, e.maxZoom = Math.max(e.minZoom, e.maxZoom - 1)), e.minZoom = Math.max(0, e.minZoom)) : e.zoomReverse ? e.minZoom = Math.min(e.maxZoom, e.minZoom) : e.maxZoom = Math.max(e.minZoom, e.maxZoom), typeof e.subdomains == "string" && (e.subdomains = e.subdomains.split("")), this.on("tileunload", this._onTileRemove);
|
|
6236
6234
|
},
|
|
6237
6235
|
// @method setUrl(url: String, noRedraw?: Boolean): this
|
|
6238
6236
|
// Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).
|
|
@@ -6257,7 +6255,7 @@ function nl() {
|
|
|
6257
6255
|
// Classes extending `TileLayer` can override this function to provide custom tile URL naming schemes.
|
|
6258
6256
|
getTileUrl: function(t) {
|
|
6259
6257
|
var e = {
|
|
6260
|
-
r:
|
|
6258
|
+
r: H.retina ? "@2x" : "",
|
|
6261
6259
|
s: this._getSubdomain(t),
|
|
6262
6260
|
x: t.x,
|
|
6263
6261
|
y: t.y,
|
|
@@ -6267,10 +6265,10 @@ function nl() {
|
|
|
6267
6265
|
var i = this._globalTileRange.max.y - t.y;
|
|
6268
6266
|
this.options.tms && (e.y = i), e["-y"] = i;
|
|
6269
6267
|
}
|
|
6270
|
-
return z(this._url,
|
|
6268
|
+
return z(this._url, k(e, this.options));
|
|
6271
6269
|
},
|
|
6272
6270
|
_tileOnLoad: function(t, e) {
|
|
6273
|
-
|
|
6271
|
+
H.ielt9 ? setTimeout(a(t, this, null, e), 0) : t(null, e);
|
|
6274
6272
|
},
|
|
6275
6273
|
_tileOnError: function(t, e, i) {
|
|
6276
6274
|
var n = this.options.errorTileUrl;
|
|
@@ -6349,11 +6347,11 @@ function nl() {
|
|
|
6349
6347
|
},
|
|
6350
6348
|
initialize: function(t, e) {
|
|
6351
6349
|
this._url = t;
|
|
6352
|
-
var i =
|
|
6350
|
+
var i = k({}, this.defaultWmsParams);
|
|
6353
6351
|
for (var n in e)
|
|
6354
6352
|
n in this.options || (i[n] = e[n]);
|
|
6355
6353
|
e = C(this, e);
|
|
6356
|
-
var s = e.detectRetina &&
|
|
6354
|
+
var s = e.detectRetina && H.retina ? 2 : 1, u = this.getTileSize();
|
|
6357
6355
|
i.width = u.x * s, i.height = u.y * s, this.wmsParams = i;
|
|
6358
6356
|
},
|
|
6359
6357
|
onAdd: function(t) {
|
|
@@ -6362,13 +6360,13 @@ function nl() {
|
|
|
6362
6360
|
this.wmsParams[e] = this._crs.code, je.prototype.onAdd.call(this, t);
|
|
6363
6361
|
},
|
|
6364
6362
|
getTileUrl: function(t) {
|
|
6365
|
-
var e = this._tileCoordsToNwSe(t), i = this._crs, n = bt(i.project(e[0]), i.project(e[1])), s = n.min, u = n.max, m = (this._wmsVersion >= 1.3 && this._crs === Mo ? [s.y, s.x, u.y, u.x] : [s.x, s.y, u.x, u.y]).join(","),
|
|
6366
|
-
return
|
|
6363
|
+
var e = this._tileCoordsToNwSe(t), i = this._crs, n = bt(i.project(e[0]), i.project(e[1])), s = n.min, u = n.max, m = (this._wmsVersion >= 1.3 && this._crs === Mo ? [s.y, s.x, u.y, u.x] : [s.x, s.y, u.x, u.y]).join(","), w = je.prototype.getTileUrl.call(this, t);
|
|
6364
|
+
return w + D(this.wmsParams, w, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + m;
|
|
6367
6365
|
},
|
|
6368
6366
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
6369
6367
|
// Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
|
|
6370
6368
|
setParams: function(t, e) {
|
|
6371
|
-
return
|
|
6369
|
+
return k(this.wmsParams, t), e || this.redraw(), this;
|
|
6372
6370
|
}
|
|
6373
6371
|
});
|
|
6374
6372
|
function hr(t, e) {
|
|
@@ -6410,7 +6408,7 @@ function nl() {
|
|
|
6410
6408
|
},
|
|
6411
6409
|
_updateTransform: function(t, e) {
|
|
6412
6410
|
var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), s = this._map.project(this._center, e), u = n.multiplyBy(-i).add(s).subtract(this._map._getNewPixelOrigin(t, e));
|
|
6413
|
-
|
|
6411
|
+
H.any3d ? Ae(this._container, u, i) : Pt(this._container, u);
|
|
6414
6412
|
},
|
|
6415
6413
|
_reset: function() {
|
|
6416
6414
|
this._update(), this._updateTransform(this._center, this._zoom);
|
|
@@ -6466,8 +6464,8 @@ function nl() {
|
|
|
6466
6464
|
_update: function() {
|
|
6467
6465
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
6468
6466
|
ge.prototype._update.call(this);
|
|
6469
|
-
var t = this._bounds, e = this._container, i = t.getSize(), n =
|
|
6470
|
-
Pt(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px",
|
|
6467
|
+
var t = this._bounds, e = this._container, i = t.getSize(), n = H.retina ? 2 : 1;
|
|
6468
|
+
Pt(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", H.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update");
|
|
6471
6469
|
}
|
|
6472
6470
|
},
|
|
6473
6471
|
_reset: function() {
|
|
@@ -6540,9 +6538,9 @@ function nl() {
|
|
|
6540
6538
|
},
|
|
6541
6539
|
_updatePoly: function(t, e) {
|
|
6542
6540
|
if (this._drawing) {
|
|
6543
|
-
var i, n, s, u, m = t._parts,
|
|
6544
|
-
if (
|
|
6545
|
-
for (x.beginPath(), i = 0; i <
|
|
6541
|
+
var i, n, s, u, m = t._parts, w = m.length, x = this._ctx;
|
|
6542
|
+
if (w) {
|
|
6543
|
+
for (x.beginPath(), i = 0; i < w; i++) {
|
|
6546
6544
|
for (n = 0, s = m[i].length; n < s; n++)
|
|
6547
6545
|
u = m[i][n], x[n ? "lineTo" : "moveTo"](u.x, u.y);
|
|
6548
6546
|
e && x.closePath();
|
|
@@ -6614,7 +6612,7 @@ function nl() {
|
|
|
6614
6612
|
}
|
|
6615
6613
|
});
|
|
6616
6614
|
function No(t) {
|
|
6617
|
-
return
|
|
6615
|
+
return H.canvas ? new Do(t) : null;
|
|
6618
6616
|
}
|
|
6619
6617
|
var bi = (function() {
|
|
6620
6618
|
try {
|
|
@@ -6662,7 +6660,7 @@ function nl() {
|
|
|
6662
6660
|
_bringToBack: function(t) {
|
|
6663
6661
|
ae(t._container);
|
|
6664
6662
|
}
|
|
6665
|
-
}, sn =
|
|
6663
|
+
}, sn = H.vml ? bi : Te, Li = ge.extend({
|
|
6666
6664
|
_initContainer: function() {
|
|
6667
6665
|
this._container = sn("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = sn("g"), this._container.appendChild(this._rootGroup);
|
|
6668
6666
|
},
|
|
@@ -6712,9 +6710,9 @@ function nl() {
|
|
|
6712
6710
|
ae(t._path);
|
|
6713
6711
|
}
|
|
6714
6712
|
});
|
|
6715
|
-
|
|
6713
|
+
H.vml && Li.include(cr);
|
|
6716
6714
|
function Ro(t) {
|
|
6717
|
-
return
|
|
6715
|
+
return H.svg || H.vml ? new Li(t) : null;
|
|
6718
6716
|
}
|
|
6719
6717
|
st.include({
|
|
6720
6718
|
// @namespace Map; @method getRenderer(layer: Path): Renderer
|
|
@@ -6735,7 +6733,7 @@ function nl() {
|
|
|
6735
6733
|
return this.options.preferCanvas && No(t) || Ro(t);
|
|
6736
6734
|
}
|
|
6737
6735
|
});
|
|
6738
|
-
var
|
|
6736
|
+
var Ho = We.extend({
|
|
6739
6737
|
initialize: function(t, e) {
|
|
6740
6738
|
We.prototype.initialize.call(this, this._boundsToLatLngs(t), e);
|
|
6741
6739
|
},
|
|
@@ -6754,7 +6752,7 @@ function nl() {
|
|
|
6754
6752
|
}
|
|
6755
6753
|
});
|
|
6756
6754
|
function dr(t, e) {
|
|
6757
|
-
return new
|
|
6755
|
+
return new Ho(t, e);
|
|
6758
6756
|
}
|
|
6759
6757
|
Li.create = sn, Li.pointsToPath = Me, _e.geometryToLayer = Ki, _e.coordsToLatLng = Gn, _e.coordsToLatLngs = Ji, _e.latLngToCoords = Un, _e.latLngsToCoords = Qi, _e.getFeature = qe, _e.asFeature = tn, st.mergeOptions({
|
|
6760
6758
|
// @option boxZoom: Boolean = true
|
|
@@ -6762,7 +6760,7 @@ function nl() {
|
|
|
6762
6760
|
// dragging the mouse while pressing the shift key.
|
|
6763
6761
|
boxZoom: !0
|
|
6764
6762
|
});
|
|
6765
|
-
var
|
|
6763
|
+
var Vo = ue.extend({
|
|
6766
6764
|
initialize: function(t) {
|
|
6767
6765
|
this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this);
|
|
6768
6766
|
},
|
|
@@ -6821,7 +6819,7 @@ function nl() {
|
|
|
6821
6819
|
t.keyCode === 27 && (this._finish(), this._clearDeferredResetState(), this._resetState());
|
|
6822
6820
|
}
|
|
6823
6821
|
});
|
|
6824
|
-
st.addInitHook("addHandler", "boxZoom",
|
|
6822
|
+
st.addInitHook("addHandler", "boxZoom", Vo), st.mergeOptions({
|
|
6825
6823
|
// @option doubleClickZoom: Boolean|String = true
|
|
6826
6824
|
// Whether the map can be zoomed in by double clicking on it and
|
|
6827
6825
|
// zoomed out by double clicking while holding shift. If passed
|
|
@@ -6943,7 +6941,7 @@ function nl() {
|
|
|
6943
6941
|
e.fire("moveend");
|
|
6944
6942
|
else {
|
|
6945
6943
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
6946
|
-
var s = this._lastPos.subtract(this._positions[0]), u = (this._lastTime - this._times[0]) / 1e3, m = i.easeLinearity,
|
|
6944
|
+
var s = this._lastPos.subtract(this._positions[0]), u = (this._lastTime - this._times[0]) / 1e3, m = i.easeLinearity, w = s.multiplyBy(m / u), x = w.distanceTo([0, 0]), S = Math.min(i.inertiaMaxSpeed, x), E = w.multiplyBy(S / x), $ = S / (i.inertiaDeceleration * m), tt = E.multiplyBy(-$ / 2).round();
|
|
6947
6945
|
!tt.x && !tt.y ? e.fire("moveend") : (tt = e._limitOffset(tt, e.options.maxBounds), Y(function() {
|
|
6948
6946
|
e.panBy(tt, {
|
|
6949
6947
|
duration: $,
|
|
@@ -7095,7 +7093,7 @@ function nl() {
|
|
|
7095
7093
|
// @section Touch interaction options
|
|
7096
7094
|
// @option tapHold: Boolean
|
|
7097
7095
|
// Enables simulation of `contextmenu` event, default is `true` for mobile Safari.
|
|
7098
|
-
tapHold:
|
|
7096
|
+
tapHold: H.touchNative && H.safari && H.mobile,
|
|
7099
7097
|
// @option tapTolerance: Number = 15
|
|
7100
7098
|
// The max number of pixels a user can shift his finger during touch
|
|
7101
7099
|
// for it to be considered a valid tap.
|
|
@@ -7152,7 +7150,7 @@ function nl() {
|
|
|
7152
7150
|
// passed `'center'`, it will zoom to the center of the view regardless of
|
|
7153
7151
|
// where the touch events (fingers) were. Enabled for touch-capable web
|
|
7154
7152
|
// browsers.
|
|
7155
|
-
touchZoom:
|
|
7153
|
+
touchZoom: H.touch,
|
|
7156
7154
|
// @option bounceAtZoomLimits: Boolean = true
|
|
7157
7155
|
// Set it to false if you don't want the map to zoom beyond min/max zoom
|
|
7158
7156
|
// and then bounce back when pinch-zooming.
|
|
@@ -7197,7 +7195,7 @@ function nl() {
|
|
|
7197
7195
|
this._zooming = !1, j(this._animRequest), gt(document, "touchmove", this._onTouchMove, this), gt(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));
|
|
7198
7196
|
}
|
|
7199
7197
|
});
|
|
7200
|
-
st.addInitHook("addHandler", "touchZoom", qo), st.BoxZoom =
|
|
7198
|
+
st.addInitHook("addHandler", "touchZoom", qo), st.BoxZoom = Vo, st.DoubleClickZoom = Fo, st.Drag = Go, st.Keyboard = Uo, st.ScrollWheelZoom = $o, st.TapHold = Wo, st.TouchZoom = qo, c.Bounds = dt, c.Browser = H, c.CRS = Rt, c.Canvas = Do, c.Circle = Fn, c.CircleMarker = Xi, c.Class = lt, c.Control = te, c.DivIcon = Eo, c.DivOverlay = he, c.DomEvent = Is, c.DomUtil = Ss, c.Draggable = Le, c.Evented = Nt, c.FeatureGroup = me, c.GeoJSON = _e, c.GridLayer = yi, c.Handler = ue, c.Icon = $e, c.ImageOverlay = en, c.LatLng = G, c.LatLngBounds = ft, c.Layer = ee, c.LayerGroup = Ue, c.LineUtil = Us, c.Map = st, c.Marker = Yi, c.Mixin = Ns, c.Path = ke, c.Point = F, c.PolyUtil = Rs, c.Polygon = We, c.Polyline = pe, c.Popup = nn, c.PosAnimation = _o, c.Projection = $s, c.Rectangle = Ho, c.Renderer = ge, c.SVG = Li, c.SVGOverlay = zo, c.TileLayer = je, c.Tooltip = on, c.Transformation = fe, c.Util = It, c.VideoOverlay = Oo, c.bind = a, c.bounds = bt, c.canvas = No, c.circle = Qs, c.circleMarker = Js, c.control = _i, c.divIcon = lr, c.extend = k, c.featureGroup = Ys, c.geoJSON = Io, c.geoJson = ir, c.gridLayer = ur, c.icon = Xs, c.imageOverlay = nr, c.latLng = Q, c.latLngBounds = pt, c.layerGroup = js, c.map = Os, c.marker = Ks, c.point = U, c.polygon = er, c.polyline = tr, c.popup = rr, c.rectangle = dr, c.setOptions = C, c.stamp = f, c.svg = Ro, c.svgOverlay = sr, c.tileLayer = Bo, c.tooltip = ar, c.transformation = se, c.version = p, c.videoOverlay = or;
|
|
7201
7199
|
var mr = window.L;
|
|
7202
7200
|
c.noConflict = function() {
|
|
7203
7201
|
return window.L = mr, this;
|
|
@@ -7748,7 +7746,7 @@ function rl() {
|
|
|
7748
7746
|
}), L.markerClusterGroup = function(o) {
|
|
7749
7747
|
return new L.MarkerClusterGroup(o);
|
|
7750
7748
|
};
|
|
7751
|
-
var
|
|
7749
|
+
var k = L.MarkerCluster = L.Marker.extend({
|
|
7752
7750
|
options: L.Icon.prototype.options,
|
|
7753
7751
|
initialize: function(o, a, h, f) {
|
|
7754
7752
|
L.Marker.prototype.initialize.call(
|
|
@@ -8218,7 +8216,7 @@ function rl() {
|
|
|
8218
8216
|
var h = this.options.icon;
|
|
8219
8217
|
return L.setOptions(h, o), this.setIcon(h), a && this.__parent && this.__parent._group.refreshClusters(this), this;
|
|
8220
8218
|
}
|
|
8221
|
-
}), c.MarkerClusterGroup = p, c.MarkerCluster =
|
|
8219
|
+
}), c.MarkerClusterGroup = p, c.MarkerCluster = k, Object.defineProperty(c, "__esModule", { value: !0 });
|
|
8222
8220
|
});
|
|
8223
8221
|
})(xi, xi.exports)), xi.exports;
|
|
8224
8222
|
}
|
|
@@ -8231,7 +8229,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8231
8229
|
},
|
|
8232
8230
|
emits: ["update:modelValue", "callback"],
|
|
8233
8231
|
setup(r, { emit: d }) {
|
|
8234
|
-
const { t: c } = Yt(), p = d,
|
|
8232
|
+
const { t: c } = Yt(), p = d, k = r, { hotelMapImage: o } = Gt(de()), a = ve.Util.extend(ve.CRS.Simple, {
|
|
8235
8233
|
transformation: new ve.Transformation(1, 0, 1, 0)
|
|
8236
8234
|
}), h = jt(), f = yt(() => o.value?.url), g = yt(() => o.value?.height), b = yt(() => o.value?.width), v = ve.icon({
|
|
8237
8235
|
iconUrl: al,
|
|
@@ -8273,9 +8271,9 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8273
8271
|
const { stop: _ } = Gr(h, ([{ isIntersecting: z }]) => {
|
|
8274
8272
|
z && (_(), P());
|
|
8275
8273
|
}), T = yt({
|
|
8276
|
-
get: () =>
|
|
8274
|
+
get: () => k.modelValue,
|
|
8277
8275
|
set: (z) => D(z)
|
|
8278
|
-
}), C = yt(() =>
|
|
8276
|
+
}), C = yt(() => k.rooms.map((z) => ({
|
|
8279
8277
|
id: z.id,
|
|
8280
8278
|
name: z.name,
|
|
8281
8279
|
x: z.mapImageX,
|
|
@@ -8293,7 +8291,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8293
8291
|
class: "konnectio-leaflet-map"
|
|
8294
8292
|
}, null, 512)).cacheIndex = 0, Ko(1), N[0]);
|
|
8295
8293
|
}
|
|
8296
|
-
}), ul = /* @__PURE__ */ Xt(ll, [["__scopeId", "data-v-
|
|
8294
|
+
}), ul = /* @__PURE__ */ Xt(ll, [["__scopeId", "data-v-bdbc420d"]]), hl = { style: { height: "100%", width: "100%" } }, cl = /* @__PURE__ */ Bt({
|
|
8297
8295
|
__name: "MapSelector",
|
|
8298
8296
|
props: {
|
|
8299
8297
|
roomList: {},
|
|
@@ -8301,16 +8299,16 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8301
8299
|
callback: { type: Function }
|
|
8302
8300
|
},
|
|
8303
8301
|
setup(r) {
|
|
8304
|
-
const { t: d } = Yt(), c = jt(NaN), p = yt(() => !isNaN(c.value)),
|
|
8302
|
+
const { t: d } = Yt(), c = jt(NaN), p = yt(() => !isNaN(c.value)), k = r;
|
|
8305
8303
|
function o() {
|
|
8306
|
-
p.value && (
|
|
8304
|
+
p.value && (k.config.units = 1, k.config.roomId = c.value, k.callback());
|
|
8307
8305
|
}
|
|
8308
8306
|
return (a, h) => (M(), rt(bs, {
|
|
8309
8307
|
title: l(d)("hotel.selectRoomOnMapTitle")
|
|
8310
8308
|
}, {
|
|
8311
8309
|
default: nt(() => [
|
|
8312
8310
|
y("div", hl, [
|
|
8313
|
-
|
|
8311
|
+
Z(ul, {
|
|
8314
8312
|
modelValue: c.value,
|
|
8315
8313
|
"onUpdate:modelValue": h[0] || (h[0] = (f) => c.value = f),
|
|
8316
8314
|
rooms: r.roomList,
|
|
@@ -8348,7 +8346,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8348
8346
|
function p(et) {
|
|
8349
8347
|
o.callback(et), d.value = !1;
|
|
8350
8348
|
}
|
|
8351
|
-
const { t:
|
|
8349
|
+
const { t: k } = Yt(), o = r, a = jt([]);
|
|
8352
8350
|
function h() {
|
|
8353
8351
|
const et = a.value.length;
|
|
8354
8352
|
St(et);
|
|
@@ -8437,25 +8435,25 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8437
8435
|
class: "konnectio-hotel-room"
|
|
8438
8436
|
}, [
|
|
8439
8437
|
kt.value ? (M(), A("div", dl, [
|
|
8440
|
-
|
|
8438
|
+
Z(un, {
|
|
8441
8439
|
modelValue: j.id,
|
|
8442
8440
|
"onUpdate:modelValue": (lt) => j.id = lt,
|
|
8443
|
-
label: l(
|
|
8444
|
-
placeholder: l(
|
|
8441
|
+
label: l(k)("hotel.roomVariant"),
|
|
8442
|
+
placeholder: l(k)("hotel.chooseARoomVariant"),
|
|
8445
8443
|
options: g.value,
|
|
8446
8444
|
searchable: !1,
|
|
8447
8445
|
onChanged: (lt) => Mt(It, lt)
|
|
8448
8446
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options", "onChanged"]),
|
|
8449
8447
|
a.value.length > 1 ? (M(), A("div", fl, [
|
|
8450
|
-
|
|
8448
|
+
Z(ne, {
|
|
8451
8449
|
style: { "--buttonBackground": "var(--dangerColor)" },
|
|
8452
8450
|
icon: "trash-alt",
|
|
8453
8451
|
"icon-type": "fas",
|
|
8454
8452
|
onClickEvent: (lt) => f(It),
|
|
8455
8453
|
secondary: ""
|
|
8456
8454
|
}, null, 8, ["onClickEvent"])
|
|
8457
|
-
])) :
|
|
8458
|
-
])) :
|
|
8455
|
+
])) : B("", !0)
|
|
8456
|
+
])) : B("", !0),
|
|
8459
8457
|
j.id ? (M(), A("div", ml, [
|
|
8460
8458
|
(M(!0), A(ht, null, Tt(r.room.rates, ({
|
|
8461
8459
|
id: lt,
|
|
@@ -8469,26 +8467,26 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8469
8467
|
class: "konnectio-listing-action-selective"
|
|
8470
8468
|
}, [
|
|
8471
8469
|
y("ul", pl, [
|
|
8472
|
-
|
|
8470
|
+
Z(el, {
|
|
8473
8471
|
modelValue: ct.id,
|
|
8474
8472
|
"onUpdate:modelValue": (F) => ct.id = F,
|
|
8475
8473
|
icon: "male",
|
|
8476
8474
|
"icon-type": "fas",
|
|
8477
|
-
label: l(
|
|
8478
|
-
description: Dt === 0 ? void 0 : `${l(
|
|
8475
|
+
label: l(k)("general.guests"),
|
|
8476
|
+
description: Dt === 0 ? void 0 : `${l(k)("general.maximumGuests")}: ${Dt}`,
|
|
8479
8477
|
options: ut(lt),
|
|
8480
8478
|
readonly: !(ut(lt).length > 1)
|
|
8481
8479
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
|
|
8482
8480
|
]),
|
|
8483
8481
|
z.value ? (M(), A("div", gl, [
|
|
8484
|
-
|
|
8482
|
+
Z(ne, {
|
|
8485
8483
|
onClickEvent: c,
|
|
8486
|
-
label: l(
|
|
8484
|
+
label: l(k)("hotel.selectRoomOnMap"),
|
|
8487
8485
|
secondary: "",
|
|
8488
8486
|
"full-width": "",
|
|
8489
8487
|
disabled: l(T)
|
|
8490
8488
|
}, null, 8, ["label", "disabled"]),
|
|
8491
|
-
|
|
8489
|
+
Z(cl, {
|
|
8492
8490
|
modelValue: d.value,
|
|
8493
8491
|
"onUpdate:modelValue": Y[0] || (Y[0] = (F) => d.value = F),
|
|
8494
8492
|
"room-list": r.room.roomList,
|
|
@@ -8496,35 +8494,35 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8496
8494
|
callback: p
|
|
8497
8495
|
}, null, 8, ["modelValue", "room-list", "config"])
|
|
8498
8496
|
])) : (M(), A("ul", _l, [
|
|
8499
|
-
|
|
8497
|
+
Z(Pi, {
|
|
8500
8498
|
modelValue: ct.units,
|
|
8501
8499
|
"onUpdate:modelValue": (F) => ct.units = F,
|
|
8502
|
-
description: l(b) ? void 0 : `${l(
|
|
8500
|
+
description: l(b) ? void 0 : `${l(k)("booking.availability.availableUnits")}: ${ot(j.id, ct.id)}`,
|
|
8503
8501
|
icon: "house",
|
|
8504
8502
|
"icon-type": "fas",
|
|
8505
8503
|
"icon-placement": "label",
|
|
8506
|
-
label: l(
|
|
8504
|
+
label: l(k)("booking.availability.units"),
|
|
8507
8505
|
minValue: 0,
|
|
8508
8506
|
"max-value": ot(lt, ct.id) || 1 / 0
|
|
8509
8507
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
|
|
8510
8508
|
]))
|
|
8511
|
-
]))), 128)) :
|
|
8509
|
+
]))), 128)) : B("", !0)
|
|
8512
8510
|
]))), 128))
|
|
8513
|
-
])) :
|
|
8511
|
+
])) : B("", !0)
|
|
8514
8512
|
]))), 128)),
|
|
8515
8513
|
l(P) && kt.value ? (M(), A("button", {
|
|
8516
8514
|
key: 0,
|
|
8517
8515
|
class: "konnectio-hotel-add-extra-room link",
|
|
8518
8516
|
onClick: Ke(h, ["prevent"])
|
|
8519
8517
|
}, [
|
|
8520
|
-
y("span", null, O(l(
|
|
8521
|
-
])) :
|
|
8518
|
+
y("span", null, O(l(k)("hotel.addExtraVariant")), 1)
|
|
8519
|
+
])) : B("", !0)
|
|
8522
8520
|
], 2)
|
|
8523
8521
|
]),
|
|
8524
8522
|
_: 1
|
|
8525
8523
|
}, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
|
|
8526
8524
|
}
|
|
8527
|
-
}), us = /* @__PURE__ */ Xt(vl, [["__scopeId", "data-v-
|
|
8525
|
+
}), us = /* @__PURE__ */ Xt(vl, [["__scopeId", "data-v-a4489b39"]]), yl = { class: "konnectio-template-side-panel" }, bl = { class: "konnectio-template-side-panel-listings" }, Ll = /* @__PURE__ */ Bt({
|
|
8528
8526
|
__name: "Template",
|
|
8529
8527
|
props: {
|
|
8530
8528
|
title: {},
|
|
@@ -8535,7 +8533,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8535
8533
|
callback: { type: Function }
|
|
8536
8534
|
},
|
|
8537
8535
|
setup(r) {
|
|
8538
|
-
const { t: d } = Yt(), { templateID: c, roomGroupID: p, selectionHasNoAddons:
|
|
8536
|
+
const { t: d } = Yt(), { templateID: c, roomGroupID: p, selectionHasNoAddons: k } = Gt(de()), { currency: o } = Gt(Ze()), { clearRoomSelection: a } = de(), { addToCart: h } = lo(), f = r, g = jt(!1), b = yt(() => {
|
|
8539
8537
|
function P(_, T) {
|
|
8540
8538
|
return g.value === !0 ? _.extraPrice > T.extraPrice ? -1 : 1 : _.extraPrice > T.extraPrice ? 1 : -1;
|
|
8541
8539
|
}
|
|
@@ -8548,7 +8546,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8548
8546
|
id: _.id,
|
|
8549
8547
|
name: _.title,
|
|
8550
8548
|
value: _.extraPrice
|
|
8551
|
-
}), f.hideAddons === !1 &&
|
|
8549
|
+
}), f.hideAddons === !1 && k.value == !1) {
|
|
8552
8550
|
f.callback(1);
|
|
8553
8551
|
return;
|
|
8554
8552
|
}
|
|
@@ -8581,7 +8579,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8581
8579
|
}, {
|
|
8582
8580
|
action: nt(() => [
|
|
8583
8581
|
y("div", null, [
|
|
8584
|
-
|
|
8582
|
+
Z(ne, {
|
|
8585
8583
|
onClickEvent: (ot) => v(T),
|
|
8586
8584
|
label: `${l(d)("booking.availability.selectThisRoom")} (${l(oe)(N + r.weekendFee, l(o))})`,
|
|
8587
8585
|
"full-width": ""
|
|
@@ -8596,7 +8594,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8596
8594
|
_: 1
|
|
8597
8595
|
}, 8, ["title", "subtitle"]));
|
|
8598
8596
|
}
|
|
8599
|
-
}), kl = /* @__PURE__ */ Xt(Ll, [["__scopeId", "data-v-
|
|
8597
|
+
}), kl = /* @__PURE__ */ Xt(Ll, [["__scopeId", "data-v-d1a45a23"]]), wl = { class: "konnectio-template-select-package" }, Pl = /* @__PURE__ */ Bt({
|
|
8600
8598
|
__name: "Template",
|
|
8601
8599
|
props: {
|
|
8602
8600
|
id: {},
|
|
@@ -8609,7 +8607,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8609
8607
|
callback: { type: Function }
|
|
8610
8608
|
},
|
|
8611
8609
|
setup(r) {
|
|
8612
|
-
const { t: d } = Yt(), c = r, { isSearchOutdated: p } = Gt(de()),
|
|
8610
|
+
const { t: d } = Yt(), c = r, { isSearchOutdated: p } = Gt(de()), k = yt(() => c.roomGroups.reduce(
|
|
8613
8611
|
(g, b) => g < b.extraPrice ? g : b.extraPrice,
|
|
8614
8612
|
1 / 0
|
|
8615
8613
|
) + c.weekendFee), o = jt(!1);
|
|
@@ -8628,11 +8626,11 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8628
8626
|
layout: l(ys).Template,
|
|
8629
8627
|
"includes-breakfast": !1,
|
|
8630
8628
|
"hide-info-button": !1,
|
|
8631
|
-
"prices-from":
|
|
8629
|
+
"prices-from": k.value
|
|
8632
8630
|
}, {
|
|
8633
8631
|
action: nt(() => [
|
|
8634
8632
|
y("div", wl, [
|
|
8635
|
-
|
|
8633
|
+
Z(ne, {
|
|
8636
8634
|
onClickEvent: a,
|
|
8637
8635
|
label: l(d)("booking.availability.selectPackage"),
|
|
8638
8636
|
"full-width": "",
|
|
@@ -8641,7 +8639,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8641
8639
|
])
|
|
8642
8640
|
]),
|
|
8643
8641
|
default: nt(() => [
|
|
8644
|
-
|
|
8642
|
+
Z(kl, {
|
|
8645
8643
|
modelValue: o.value,
|
|
8646
8644
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b),
|
|
8647
8645
|
title: r.name,
|
|
@@ -8668,7 +8666,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8668
8666
|
roomGroups: {}
|
|
8669
8667
|
},
|
|
8670
8668
|
setup(r) {
|
|
8671
|
-
const { t: d } = Yt(), { updateDates: c } = Ti(), { display: p } = ao(),
|
|
8669
|
+
const { t: d } = Yt(), { updateDates: c } = Ti(), { display: p } = ao(), k = r, o = jt([]), a = yt(() => wi(k.fromDate, k.toDate) === 1);
|
|
8672
8670
|
function h() {
|
|
8673
8671
|
o.value.length > 0 ? c(o.value[0], o.value[1]) : p({
|
|
8674
8672
|
message: d("alert.error.selectDates"),
|
|
@@ -8676,7 +8674,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8676
8674
|
});
|
|
8677
8675
|
}
|
|
8678
8676
|
return ro(() => {
|
|
8679
|
-
a.value && (o.value = [new Date(
|
|
8677
|
+
a.value && (o.value = [new Date(k.fromDate), new Date(k.toDate)]);
|
|
8680
8678
|
}), (f, g) => (M(), rt(ln, {
|
|
8681
8679
|
type: "template",
|
|
8682
8680
|
"listing-id": r.id,
|
|
@@ -8692,7 +8690,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8692
8690
|
}, {
|
|
8693
8691
|
action: nt(() => [
|
|
8694
8692
|
y("div", Cl, [
|
|
8695
|
-
|
|
8693
|
+
Z(Ls, {
|
|
8696
8694
|
modelValue: o.value,
|
|
8697
8695
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b),
|
|
8698
8696
|
label: l(d)("availability.checkInOut"),
|
|
@@ -8707,7 +8705,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8707
8705
|
range: ""
|
|
8708
8706
|
}, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
|
|
8709
8707
|
y("div", xl, [
|
|
8710
|
-
|
|
8708
|
+
Z(ne, {
|
|
8711
8709
|
label: l(d)("availability.buttonLabel"),
|
|
8712
8710
|
onClick: Ke(h, ["prevent"])
|
|
8713
8711
|
}, null, 8, ["label"])
|
|
@@ -8717,7 +8715,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8717
8715
|
_: 1
|
|
8718
8716
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
|
|
8719
8717
|
}
|
|
8720
|
-
}), Ml = /* @__PURE__ */ Xt(Tl, [["__scopeId", "data-v-
|
|
8718
|
+
}), Ml = /* @__PURE__ */ Xt(Tl, [["__scopeId", "data-v-47edd09f"]]), hs = /* @__PURE__ */ Bt({
|
|
8721
8719
|
__name: "TimeField",
|
|
8722
8720
|
props: {
|
|
8723
8721
|
modelValue: {},
|
|
@@ -8736,12 +8734,12 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8736
8734
|
emits: ["update:modelValue"],
|
|
8737
8735
|
setup(r, { emit: d }) {
|
|
8738
8736
|
const c = d, p = r;
|
|
8739
|
-
function
|
|
8737
|
+
function k(a) {
|
|
8740
8738
|
c("update:modelValue", a);
|
|
8741
8739
|
}
|
|
8742
8740
|
const o = jt(p.modelValue);
|
|
8743
8741
|
return an(o, (a) => {
|
|
8744
|
-
|
|
8742
|
+
k(a);
|
|
8745
8743
|
}), (a, h) => (M(), rt(Ls, {
|
|
8746
8744
|
modelValue: o.value,
|
|
8747
8745
|
"onUpdate:modelValue": h[0] || (h[0] = (f) => o.value = f),
|
|
@@ -8771,12 +8769,12 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8771
8769
|
},
|
|
8772
8770
|
emits: ["update:modelValue"],
|
|
8773
8771
|
setup(r, { emit: d }) {
|
|
8774
|
-
const { t: c } = Yt(), p = d,
|
|
8772
|
+
const { t: c } = Yt(), p = d, k = r;
|
|
8775
8773
|
function o(h) {
|
|
8776
8774
|
p("update:modelValue", h);
|
|
8777
8775
|
}
|
|
8778
8776
|
const a = yt({
|
|
8779
|
-
get: () =>
|
|
8777
|
+
get: () => k.modelValue,
|
|
8780
8778
|
set: (h) => o(h)
|
|
8781
8779
|
});
|
|
8782
8780
|
return (h, f) => (M(), rt(un, {
|
|
@@ -8806,7 +8804,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8806
8804
|
_: 1
|
|
8807
8805
|
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
8808
8806
|
}
|
|
8809
|
-
}), Il = /* @__PURE__ */ Xt(Al, [["__scopeId", "data-v-
|
|
8807
|
+
}), Il = /* @__PURE__ */ Xt(Al, [["__scopeId", "data-v-a94e1728"]]), Ol = /* @__PURE__ */ Bt({
|
|
8810
8808
|
__name: "NameField",
|
|
8811
8809
|
props: {
|
|
8812
8810
|
modelValue: {},
|
|
@@ -8827,7 +8825,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8827
8825
|
},
|
|
8828
8826
|
emits: ["update:modelValue", "update:title"],
|
|
8829
8827
|
setup(r, { emit: d }) {
|
|
8830
|
-
const c = r, p = d,
|
|
8828
|
+
const c = r, p = d, k = c.id || Qo(), o = jt(""), a = jt(2);
|
|
8831
8829
|
function h() {
|
|
8832
8830
|
p("update:modelValue", o.value);
|
|
8833
8831
|
}
|
|
@@ -8839,7 +8837,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8839
8837
|
c.modelValue && (o.value = c.modelValue), c.title && (a.value = c.title);
|
|
8840
8838
|
}), (g, b) => (M(), rt(Ur, {
|
|
8841
8839
|
label: r.label,
|
|
8842
|
-
id: l(
|
|
8840
|
+
id: l(k),
|
|
8843
8841
|
required: r.required,
|
|
8844
8842
|
type: "konnectio-name-field",
|
|
8845
8843
|
readonly: r.readonly,
|
|
@@ -8852,7 +8850,7 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8852
8850
|
{ "no-title": r.excludeTitle }
|
|
8853
8851
|
])
|
|
8854
8852
|
}, [
|
|
8855
|
-
r.excludeTitle ?
|
|
8853
|
+
r.excludeTitle ? B("", !0) : (M(), rt(un, {
|
|
8856
8854
|
key: 0,
|
|
8857
8855
|
modelValue: a.value,
|
|
8858
8856
|
"onUpdate:modelValue": b[0] || (b[0] = (v) => a.value = v),
|
|
@@ -8886,13 +8884,13 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8886
8884
|
"hide-button": "",
|
|
8887
8885
|
searchable: !1
|
|
8888
8886
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly"])),
|
|
8889
|
-
|
|
8887
|
+
Z(ie, {
|
|
8890
8888
|
modelValue: o.value,
|
|
8891
8889
|
"onUpdate:modelValue": b[1] || (b[1] = (v) => o.value = v),
|
|
8892
8890
|
type: "text",
|
|
8893
8891
|
name: "name",
|
|
8894
8892
|
autocomplete: "name",
|
|
8895
|
-
id: l(
|
|
8893
|
+
id: l(k),
|
|
8896
8894
|
icon: r.excludeTitle ? r.icon : void 0,
|
|
8897
8895
|
"icon-color": r.iconColor,
|
|
8898
8896
|
"icon-type": r.iconType,
|
|
@@ -8907,20 +8905,20 @@ const al = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
8907
8905
|
_: 1
|
|
8908
8906
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
8909
8907
|
}
|
|
8910
|
-
}), zl = /* @__PURE__ */ Xt(Ol, [["__scopeId", "data-v-
|
|
8908
|
+
}), zl = /* @__PURE__ */ Xt(Ol, [["__scopeId", "data-v-9d27a2bc"]]), El = { class: "hotel-skeleton" }, Bl = { class: "hotel-skeleton-content" }, Zl = { class: "hotel-skeleton-sidebar" }, Dl = /* @__PURE__ */ Bt({
|
|
8911
8909
|
__name: "HotelSkeleton",
|
|
8912
8910
|
setup(r) {
|
|
8913
8911
|
return (d, c) => (M(), A("div", El, [
|
|
8914
8912
|
y("div", Bl, [
|
|
8915
|
-
|
|
8916
|
-
|
|
8913
|
+
Z(jr, { hotel: "" }),
|
|
8914
|
+
Z(Dr)
|
|
8917
8915
|
]),
|
|
8918
8916
|
y("div", Zl, [
|
|
8919
|
-
|
|
8917
|
+
Z(Nr)
|
|
8920
8918
|
])
|
|
8921
8919
|
]));
|
|
8922
8920
|
}
|
|
8923
|
-
}), Nl = /* @__PURE__ */ Xt(Dl, [["__scopeId", "data-v-
|
|
8921
|
+
}), Nl = /* @__PURE__ */ Xt(Dl, [["__scopeId", "data-v-1bb21da4"]]), Rl = { id: "booking-availability-container" }, Hl = { id: "booking-availability-controls" }, Vl = {
|
|
8924
8922
|
key: 0,
|
|
8925
8923
|
class: "konnectio-panel konnectio-filter-notice"
|
|
8926
8924
|
}, Fl = ["innerHTML"], Gl = {
|
|
@@ -8982,7 +8980,7 @@ const Mu = { class: "konnectio-table-addons-information" }, Su = { class: "konne
|
|
|
8982
8980
|
}, Zu = { class: "konnectio-split-inputs" }, Du = {
|
|
8983
8981
|
key: 0,
|
|
8984
8982
|
class: "konnectio-hotel-member-card-mockup"
|
|
8985
|
-
}, Nu = ["src"], Ru = { class: "konnectio-hotel-member-card-details" },
|
|
8983
|
+
}, Nu = ["src"], Ru = { class: "konnectio-hotel-member-card-details" }, Hu = { key: 0 }, Vu = { key: 0 };
|
|
8986
8984
|
const Fu = /* @__PURE__ */ Bt({
|
|
8987
8985
|
name: "HotelLayout",
|
|
8988
8986
|
__name: "Hotel",
|
|
@@ -9004,8 +9002,8 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9004
9002
|
styling: {}
|
|
9005
9003
|
},
|
|
9006
9004
|
setup(r) {
|
|
9007
|
-
const d = Mr(() => import("./_-
|
|
9008
|
-
currentLocation:
|
|
9005
|
+
const d = Mr(() => import("./_-PjpC4p-e.js")), c = r, { t: p } = Yt(), {
|
|
9006
|
+
currentLocation: k,
|
|
9009
9007
|
templateID: o,
|
|
9010
9008
|
templateAddons: a,
|
|
9011
9009
|
countries: h,
|
|
@@ -9092,10 +9090,10 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9092
9090
|
fetchAvailabilityData: li,
|
|
9093
9091
|
filterAddons: Di,
|
|
9094
9092
|
hasAvailableRoomAddons: Ut,
|
|
9095
|
-
checkGuestDiscount:
|
|
9093
|
+
checkGuestDiscount: H,
|
|
9096
9094
|
validateMemberCard: Ni,
|
|
9097
9095
|
onOverviewReset: Ri
|
|
9098
|
-
} = de(),
|
|
9096
|
+
} = de(), He = yt(() => c.sortOrder === "desc"), Hi = yt(() => [
|
|
9099
9097
|
{
|
|
9100
9098
|
id: "availability",
|
|
9101
9099
|
label: p("booking.availability.title"),
|
|
@@ -9138,24 +9136,24 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9138
9136
|
}), Kt = yt(() => {
|
|
9139
9137
|
let W = j.value.roomGroups.slice();
|
|
9140
9138
|
function R(_t, q) {
|
|
9141
|
-
return
|
|
9139
|
+
return He.value === !0 ? _t.pricesFrom > q.pricesFrom ? -1 : 1 : _t.pricesFrom > q.pricesFrom ? 1 : -1;
|
|
9142
9140
|
}
|
|
9143
9141
|
return c.sortBy === "price" && (W = W.sort(R)), Object.groupBy(W, (_t) => _t.roomList.some((q) => q.mapImageX && q.mapImageY) ? "camping" : "rooms");
|
|
9144
9142
|
});
|
|
9145
9143
|
function Jt(W) {
|
|
9146
9144
|
return (W.templateRoomGroups.length > 0 ? Math.min(...W.templateRoomGroups.map((_t) => _t.totalPrice)) : 0) + W.weekendFee;
|
|
9147
9145
|
}
|
|
9148
|
-
const
|
|
9146
|
+
const Vi = yt(() => {
|
|
9149
9147
|
const W = j.value.templates.slice();
|
|
9150
9148
|
return c.sortBy === "price" && W.sort((R, _t) => {
|
|
9151
9149
|
const q = Jt(R), it = Jt(_t);
|
|
9152
|
-
return
|
|
9150
|
+
return He.value ? it - q : q - it;
|
|
9153
9151
|
}), W;
|
|
9154
9152
|
}), Ln = yt(() => {
|
|
9155
9153
|
const W = j.value.specialTemplates.slice();
|
|
9156
9154
|
return c.sortBy === "price" && W.sort((R, _t) => {
|
|
9157
9155
|
const q = Jt(R), it = Jt(_t);
|
|
9158
|
-
return
|
|
9156
|
+
return He.value ? it - q : q - it;
|
|
9159
9157
|
}), W;
|
|
9160
9158
|
}), hi = yt(() => c.hideAddons === "yes" || Ce.value && c.hideAddons === "packages" || !Ce.value && c.hideAddons === "rooms");
|
|
9161
9159
|
function Fi(W) {
|
|
@@ -9180,7 +9178,7 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9180
9178
|
});
|
|
9181
9179
|
gn(), W.id = void 0, li();
|
|
9182
9180
|
}
|
|
9183
|
-
function
|
|
9181
|
+
function Ve(W) {
|
|
9184
9182
|
cn.value && vn(), hi.value || It.value ? W(2) : W();
|
|
9185
9183
|
}
|
|
9186
9184
|
function Pn() {
|
|
@@ -9190,15 +9188,15 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9190
9188
|
Pn();
|
|
9191
9189
|
const W = eo("history", {
|
|
9192
9190
|
removeNullishValues: !0
|
|
9193
|
-
}), R = parseInt(W.a), _t = parseInt(W.c), q = parseInt(W.hid), it = parseInt(W.n),
|
|
9191
|
+
}), R = parseInt(W.a), _t = parseInt(W.c), q = parseInt(W.hid), it = parseInt(W.n), V = W.ci, zt = W.co, mt = W.id, X = parseInt(W.gid);
|
|
9194
9192
|
let at = !1;
|
|
9195
9193
|
if (isNaN(R) || (R > ti.value ? Te.value = ti.value : Te.value = R, Te.value === mn.value && (W.a = void 0)), isNaN(_t) || (_t > ei.value ? Me.value = ei.value : Me.value = _t, Me.value === zi.value && (W.c = void 0)), isNaN(it) || it > 0 && (W.n = void 0), isNaN(q) || (Je(q) ? (re.value = q, at = !0) : (W.hid = void 0, Re({
|
|
9196
9194
|
message: p("alert.error.hotelIdNotFound"),
|
|
9197
9195
|
type: "error"
|
|
9198
|
-
}))),
|
|
9199
|
-
if (ns(
|
|
9200
|
-
const
|
|
9201
|
-
|
|
9196
|
+
}))), V && zt)
|
|
9197
|
+
if (ns(V) && ns(zt)) {
|
|
9198
|
+
const Ht = new Date(V), Qt = new Date(zt);
|
|
9199
|
+
Ht <= Qt ? (De.value = Ht, hn.value = Qt) : (W.ci = void 0, W.co = void 0, Re({
|
|
9202
9200
|
message: p("alert.error.invalidDateRange"),
|
|
9203
9201
|
type: "error"
|
|
9204
9202
|
}));
|
|
@@ -9208,46 +9206,46 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9208
9206
|
type: "error"
|
|
9209
9207
|
});
|
|
9210
9208
|
if (mt && _n(mt), X) {
|
|
9211
|
-
await
|
|
9209
|
+
await H(X) || (W.gid = void 0);
|
|
9212
9210
|
return;
|
|
9213
9211
|
}
|
|
9214
|
-
c.disableDefaultLocation === "yes" && at === !1 ? (re.value = void 0,
|
|
9212
|
+
c.disableDefaultLocation === "yes" && at === !1 ? (re.value = void 0, k.value = void 0) : li();
|
|
9215
9213
|
}
|
|
9216
9214
|
return (W, R) => (M(), rt(qr, { styling: r.styling }, {
|
|
9217
9215
|
default: nt(() => [
|
|
9218
9216
|
(M(), rt(Tr, { onResolve: Ui }, {
|
|
9219
9217
|
default: nt(() => [
|
|
9220
|
-
|
|
9218
|
+
Z(l(d), {
|
|
9221
9219
|
id: "konnectio-hotel-module",
|
|
9222
9220
|
"access-token": r.accessToken,
|
|
9223
9221
|
callback: l(bn)
|
|
9224
9222
|
}, {
|
|
9225
9223
|
default: nt(() => [
|
|
9226
|
-
we(
|
|
9224
|
+
we(Z(qa, { onCallback: Ui }, null, 512), [
|
|
9227
9225
|
[Be, r.requireGuestDiscountId === "yes" && !l(G)]
|
|
9228
9226
|
]),
|
|
9229
|
-
we(
|
|
9227
|
+
we(Z(Rr, {
|
|
9230
9228
|
layout: r.headerLayout,
|
|
9231
|
-
steps:
|
|
9229
|
+
steps: Hi.value,
|
|
9232
9230
|
onReset: l(Ri)
|
|
9233
9231
|
}, {
|
|
9234
9232
|
availability: nt(({ next: _t }) => [
|
|
9235
|
-
|
|
9233
|
+
Z(to, { "show-remove-room": !0 }, {
|
|
9236
9234
|
form: nt(() => [
|
|
9237
9235
|
y("div", Rl, [
|
|
9238
|
-
y("div",
|
|
9239
|
-
|
|
9236
|
+
y("div", Hl, [
|
|
9237
|
+
Z(Yr, {
|
|
9240
9238
|
booking: !0,
|
|
9241
9239
|
"selected-location": Number(r.selectedLocation),
|
|
9242
9240
|
"disable-default-location": r.disableDefaultLocation === "yes",
|
|
9243
9241
|
"hide-locations": r.hideLocations === "yes"
|
|
9244
9242
|
}, null, 8, ["selected-location", "disable-default-location", "hide-locations"])
|
|
9245
9243
|
]),
|
|
9246
|
-
l(G) ? (M(), A("div",
|
|
9244
|
+
l(G) ? (M(), A("div", Vl, [
|
|
9247
9245
|
y("span", {
|
|
9248
9246
|
innerHTML: l(p)("guestDiscount.displayMessage", { name: `<b>${l(Rt) ? l(Rt) : l(Q)}</b>` })
|
|
9249
9247
|
}, null, 8, Fl)
|
|
9250
|
-
])) :
|
|
9248
|
+
])) : B("", !0),
|
|
9251
9249
|
l(ni) ? (M(), A("div", Gl, [
|
|
9252
9250
|
y("span", null, [
|
|
9253
9251
|
vs(O(l(p)("general.filteredListingNotice")) + " ", 1),
|
|
@@ -9256,24 +9254,24 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9256
9254
|
onClick: R[0] || (R[0] = (q) => wn())
|
|
9257
9255
|
}, O(l(p)("general.filteredListingShowAll")), 1)
|
|
9258
9256
|
])
|
|
9259
|
-
])) :
|
|
9260
|
-
|
|
9257
|
+
])) : B("", !0),
|
|
9258
|
+
B("", !0),
|
|
9261
9259
|
!l(f) && l(lt) ? (M(), A("div", Ul, [
|
|
9262
9260
|
Kt.value.camping && Kt.value.camping.length > 0 && r.onlyShow !== "non-camping" || Kt.value.rooms && Kt.value.rooms.length > 0 || l(j).templates.length > 0 || l(j).specialTemplates.length > 0 ? (M(), A("div", $l, [
|
|
9263
9261
|
l(j).templates.length > 0 && r.onlyShow !== "rooms" && r.onlyShow !== "camping" ? (M(), A("div", Wl, [
|
|
9264
9262
|
r.onlyShow !== "packages" ? (M(), A("h2", ql, [
|
|
9265
|
-
|
|
9263
|
+
Z(xt, {
|
|
9266
9264
|
icon: "box",
|
|
9267
9265
|
type: "fal",
|
|
9268
9266
|
color: "header"
|
|
9269
9267
|
}),
|
|
9270
9268
|
y("span", null, O(l(p)("booking.availability.packagesTitle")), 1)
|
|
9271
|
-
])) :
|
|
9269
|
+
])) : B("", !0),
|
|
9272
9270
|
y("ul", jl, [
|
|
9273
|
-
(M(!0), A(ht, null, Tt(
|
|
9271
|
+
(M(!0), A(ht, null, Tt(Vi.value, ({
|
|
9274
9272
|
id: q,
|
|
9275
9273
|
name: it,
|
|
9276
|
-
templateRoomGroups:
|
|
9274
|
+
templateRoomGroups: V,
|
|
9277
9275
|
images: zt,
|
|
9278
9276
|
description: mt,
|
|
9279
9277
|
weekendFee: X
|
|
@@ -9284,22 +9282,22 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9284
9282
|
name: it,
|
|
9285
9283
|
images: zt,
|
|
9286
9284
|
weekendFee: X,
|
|
9287
|
-
"room-groups":
|
|
9285
|
+
"room-groups": V,
|
|
9288
9286
|
callback: _t,
|
|
9289
9287
|
"hide-addons": r.hideAddons === "yes" || r.hideAddons === "packages"
|
|
9290
9288
|
}, null, 8, ["id", "description", "name", "images", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
9291
9289
|
])
|
|
9292
|
-
])) :
|
|
9290
|
+
])) : B("", !0),
|
|
9293
9291
|
l(j).roomGroups.length > 0 && r.onlyShow !== "packages" ? (M(), A("div", Yl, [
|
|
9294
9292
|
Kt.value.rooms && r.onlyShow !== "camping" ? (M(), A(ht, { key: 0 }, [
|
|
9295
9293
|
l(j).templates.length > 0 && r.onlyShow !== "rooms" ? (M(), A("h2", Xl, [
|
|
9296
|
-
|
|
9294
|
+
Z(xt, {
|
|
9297
9295
|
icon: "house",
|
|
9298
9296
|
type: "fal",
|
|
9299
9297
|
color: "header"
|
|
9300
9298
|
}),
|
|
9301
9299
|
y("span", null, O(l(p)("booking.availability.roomsTitle")), 1)
|
|
9302
|
-
])) :
|
|
9300
|
+
])) : B("", !0),
|
|
9303
9301
|
y("ul", Kl, [
|
|
9304
9302
|
(M(!0), A(ht, null, Tt(Kt.value.rooms, (q, it) => (M(), rt(us, {
|
|
9305
9303
|
room: q,
|
|
@@ -9307,16 +9305,16 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9307
9305
|
callback: _t
|
|
9308
9306
|
}, null, 8, ["room", "callback"]))), 128))
|
|
9309
9307
|
])
|
|
9310
|
-
], 64)) :
|
|
9308
|
+
], 64)) : B("", !0),
|
|
9311
9309
|
Kt.value.camping && r.onlyShow !== "rooms" && r.onlyShow !== "non-camping" ? (M(), A(ht, { key: 1 }, [
|
|
9312
9310
|
l(j).templates.length > 0 && r.onlyShow !== "camping" ? (M(), A("h2", Jl, [
|
|
9313
|
-
|
|
9311
|
+
Z(xt, {
|
|
9314
9312
|
icon: "map-location-dot",
|
|
9315
9313
|
type: "fal",
|
|
9316
9314
|
color: "header"
|
|
9317
9315
|
}),
|
|
9318
9316
|
y("span", null, O(l(p)("booking.availability.campingTitle")), 1)
|
|
9319
|
-
])) :
|
|
9317
|
+
])) : B("", !0),
|
|
9320
9318
|
y("ul", Ql, [
|
|
9321
9319
|
(M(!0), A(ht, null, Tt(Kt.value.camping, (q, it) => (M(), rt(us, {
|
|
9322
9320
|
room: q,
|
|
@@ -9324,12 +9322,12 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9324
9322
|
callback: _t
|
|
9325
9323
|
}, null, 8, ["room", "callback"]))), 128))
|
|
9326
9324
|
])
|
|
9327
|
-
], 64)) :
|
|
9328
|
-
])) :
|
|
9329
|
-
l(ni) ?
|
|
9325
|
+
], 64)) : B("", !0)
|
|
9326
|
+
])) : B("", !0),
|
|
9327
|
+
l(ni) ? B("", !0) : (M(), A(ht, { key: 2 }, [
|
|
9330
9328
|
l(j).specialTemplates.length > 0 && r.onlyShow !== "rooms" ? (M(), A("div", tu, [
|
|
9331
9329
|
y("h2", eu, [
|
|
9332
|
-
|
|
9330
|
+
Z(xt, {
|
|
9333
9331
|
icon: "sparkles",
|
|
9334
9332
|
type: "fal",
|
|
9335
9333
|
color: "header"
|
|
@@ -9340,12 +9338,12 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9340
9338
|
(M(!0), A(ht, null, Tt(Ln.value, ({
|
|
9341
9339
|
id: q,
|
|
9342
9340
|
name: it,
|
|
9343
|
-
templateRoomGroups:
|
|
9341
|
+
templateRoomGroups: V,
|
|
9344
9342
|
images: zt,
|
|
9345
9343
|
description: mt,
|
|
9346
9344
|
weekendFee: X,
|
|
9347
9345
|
fromDate: at,
|
|
9348
|
-
toDate:
|
|
9346
|
+
toDate: Ht
|
|
9349
9347
|
}) => (M(), rt(Ml, {
|
|
9350
9348
|
key: q,
|
|
9351
9349
|
id: q,
|
|
@@ -9353,16 +9351,16 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9353
9351
|
name: it,
|
|
9354
9352
|
images: zt,
|
|
9355
9353
|
fromDate: at,
|
|
9356
|
-
toDate:
|
|
9354
|
+
toDate: Ht,
|
|
9357
9355
|
weekendFee: X,
|
|
9358
|
-
"room-groups":
|
|
9356
|
+
"room-groups": V
|
|
9359
9357
|
}, null, 8, ["id", "description", "name", "images", "fromDate", "toDate", "weekendFee", "room-groups"]))), 128))
|
|
9360
9358
|
])
|
|
9361
|
-
])) :
|
|
9359
|
+
])) : B("", !0)
|
|
9362
9360
|
], 64)),
|
|
9363
9361
|
(l(j).templates.length === 0 && r.onlyShow !== "rooms" || l(j).roomGroups.length === 0 && r.onlyShow !== "packages") && (r.onlyShow === "rooms" || r.onlyShow === "packages") ? (M(), A("div", nu, [
|
|
9364
9362
|
y("span", null, O(l(p)("booking.availability.nothingAvailable")), 1)
|
|
9365
|
-
])) :
|
|
9363
|
+
])) : B("", !0)
|
|
9366
9364
|
])) : l(j).nextAvailableDates.length > 0 ? (M(), A("div", ou, [
|
|
9367
9365
|
y("div", su, [
|
|
9368
9366
|
y("span", {
|
|
@@ -9370,7 +9368,7 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9370
9368
|
}, null, 8, ru)
|
|
9371
9369
|
]),
|
|
9372
9370
|
y("h2", au, [
|
|
9373
|
-
|
|
9371
|
+
Z(xt, {
|
|
9374
9372
|
icon: "calendar-circle-exclamation",
|
|
9375
9373
|
type: "fal",
|
|
9376
9374
|
color: "header"
|
|
@@ -9385,8 +9383,8 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9385
9383
|
y("span", null, O(`${l(ce)(q.fromDate, 0, !0)} - ${l(ce)(q.toDate, 0, !0)}`), 1)
|
|
9386
9384
|
], 8, uu),
|
|
9387
9385
|
y("ul", null, [
|
|
9388
|
-
isNaN(q.roomCount) ?
|
|
9389
|
-
|
|
9386
|
+
isNaN(q.roomCount) ? B("", !0) : (M(), A("li", hu, [
|
|
9387
|
+
Z(xt, {
|
|
9390
9388
|
icon: "house",
|
|
9391
9389
|
type: "fal",
|
|
9392
9390
|
color: "header"
|
|
@@ -9394,7 +9392,7 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9394
9392
|
y("span", null, O(l(p)("booking.availability.units")) + ": " + O(q.roomCount), 1)
|
|
9395
9393
|
])),
|
|
9396
9394
|
y("li", null, [
|
|
9397
|
-
|
|
9395
|
+
Z(xt, {
|
|
9398
9396
|
icon: "money-bill",
|
|
9399
9397
|
type: "fal",
|
|
9400
9398
|
color: "header"
|
|
@@ -9402,29 +9400,29 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9402
9400
|
y("span", null, O(l(p)("booking.availability.pricesFrom")) + ": " + O(l(oe)(q.priceStartFrom, l(Ne))), 1)
|
|
9403
9401
|
])
|
|
9404
9402
|
]),
|
|
9405
|
-
|
|
9403
|
+
Z(ne, {
|
|
9406
9404
|
label: l(p)("booking.availability.selectDates"),
|
|
9407
9405
|
"full-width": "",
|
|
9408
|
-
onClickEvent: (
|
|
9406
|
+
onClickEvent: (V) => l(Ai)(new Date(q.fromDate), new Date(q.toDate))
|
|
9409
9407
|
}, null, 8, ["label", "onClickEvent"])
|
|
9410
9408
|
]))), 128))
|
|
9411
9409
|
])
|
|
9412
9410
|
])) : (M(), A("div", cu, [
|
|
9413
9411
|
y("span", null, O(l(p)("booking.availability.nothingAvailable")), 1)
|
|
9414
9412
|
]))
|
|
9415
|
-
])) : isNaN(l(
|
|
9413
|
+
])) : isNaN(l(k)) && !l(f) ? (M(), A("div", du, [
|
|
9416
9414
|
y("span", null, O(l(p)("alert.info.selectHotelToStart")), 1)
|
|
9417
9415
|
])) : (M(), A("div", fu, [
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9416
|
+
Z(Xn),
|
|
9417
|
+
Z(Xn),
|
|
9418
|
+
Z(Xn)
|
|
9421
9419
|
]))
|
|
9422
9420
|
])
|
|
9423
9421
|
]),
|
|
9424
9422
|
navigation: nt(() => [
|
|
9425
9423
|
l(Nt) ? (M(), rt(ne, {
|
|
9426
9424
|
key: 0,
|
|
9427
|
-
label: isNaN(l(
|
|
9425
|
+
label: isNaN(l(k)) ? l(p)("availability.buttonLabel") : l(p)("general.searchAgain"),
|
|
9428
9426
|
"is-loading": l(f),
|
|
9429
9427
|
"full-width": "",
|
|
9430
9428
|
onClickEvent: R[2] || (R[2] = (q) => Gi())
|
|
@@ -9433,10 +9431,10 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9433
9431
|
label: l(It) || hi.value ? l(p)("booking.availability.nextButton") : l(p)("general.chooseAddons"),
|
|
9434
9432
|
disabled: !l(Y),
|
|
9435
9433
|
"full-width": "",
|
|
9436
|
-
onClickEvent: (q) =>
|
|
9434
|
+
onClickEvent: (q) => Ve(_t)
|
|
9437
9435
|
}, null, 8, ["label", "disabled", "onClickEvent"])),
|
|
9438
9436
|
we(y("span", mu, [
|
|
9439
|
-
|
|
9437
|
+
Z(xt, {
|
|
9440
9438
|
icon: "exclamation-triangle",
|
|
9441
9439
|
type: "fas"
|
|
9442
9440
|
}),
|
|
@@ -9445,7 +9443,7 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9445
9443
|
[Be, l(dt)]
|
|
9446
9444
|
]),
|
|
9447
9445
|
we(y("span", pu, [
|
|
9448
|
-
|
|
9446
|
+
Z(xt, {
|
|
9449
9447
|
icon: "exclamation-triangle",
|
|
9450
9448
|
type: "fas"
|
|
9451
9449
|
}),
|
|
@@ -9472,32 +9470,32 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9472
9470
|
innerHTML: l(p)("hotel.addonTopNotice"),
|
|
9473
9471
|
class: "konnectio-wysiwyg"
|
|
9474
9472
|
}, null, 8, vu)
|
|
9475
|
-
])) :
|
|
9473
|
+
])) : B("", !0),
|
|
9476
9474
|
y("div", null, [
|
|
9477
9475
|
isNaN(l(o)) ? (M(), A("div", yu, [
|
|
9478
9476
|
(M(!0), A(ht, null, Tt(l(et), (it) => (M(), A(ht, {
|
|
9479
9477
|
key: it.roomGroupID
|
|
9480
9478
|
}, [
|
|
9481
9479
|
l(Ut)(it) ? (M(), A("ul", bu, [
|
|
9482
|
-
(M(!0), A(ht, null, Tt(it.variants, (
|
|
9483
|
-
key:
|
|
9480
|
+
(M(!0), A(ht, null, Tt(it.variants, (V, zt) => (M(), A("li", {
|
|
9481
|
+
key: V.ratePlanID
|
|
9484
9482
|
}, [
|
|
9485
9483
|
y("h4", null, [
|
|
9486
9484
|
y("span", null, O(l(ye)(it.title)), 1)
|
|
9487
9485
|
]),
|
|
9488
|
-
(M(!0), A(ht, null, Tt(
|
|
9486
|
+
(M(!0), A(ht, null, Tt(V.rooms, (mt, X) => (M(), A("table", {
|
|
9489
9487
|
key: X,
|
|
9490
9488
|
class: "konnectio-table with-lines without-header"
|
|
9491
9489
|
}, [
|
|
9492
9490
|
y("thead", null, [
|
|
9493
9491
|
y("tr", null, [
|
|
9494
9492
|
y("th", null, [
|
|
9495
|
-
y("span", null, O(l(ye)(
|
|
9493
|
+
y("span", null, O(l(ye)(V.name)), 1)
|
|
9496
9494
|
]),
|
|
9497
|
-
|
|
9495
|
+
B("", !0),
|
|
9498
9496
|
y("th", Lu, [
|
|
9499
9497
|
y("b", null, [
|
|
9500
|
-
|
|
9498
|
+
Z(xt, {
|
|
9501
9499
|
icon: "male",
|
|
9502
9500
|
type: "fas",
|
|
9503
9501
|
color: "font"
|
|
@@ -9508,16 +9506,16 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9508
9506
|
icon: "child",
|
|
9509
9507
|
type: "fas",
|
|
9510
9508
|
color: "font"
|
|
9511
|
-
})) :
|
|
9512
|
-
mt.childrenCount > 0 ? (M(), A("span", ku, O(mt.childrenCount), 1)) :
|
|
9509
|
+
})) : B("", !0),
|
|
9510
|
+
mt.childrenCount > 0 ? (M(), A("span", ku, O(mt.childrenCount), 1)) : B("", !0)
|
|
9513
9511
|
])
|
|
9514
9512
|
])
|
|
9515
9513
|
])
|
|
9516
9514
|
]),
|
|
9517
9515
|
y("tbody", null, [
|
|
9518
|
-
(M(!0), A(ht, null, Tt(l(Di)(
|
|
9516
|
+
(M(!0), A(ht, null, Tt(l(Di)(V.addons, mt.childrenCount), ({
|
|
9519
9517
|
cardinality: at,
|
|
9520
|
-
quantityStrategy:
|
|
9518
|
+
quantityStrategy: Ht,
|
|
9521
9519
|
maximumNumber: Qt,
|
|
9522
9520
|
id: ae,
|
|
9523
9521
|
name: ci,
|
|
@@ -9529,18 +9527,18 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9529
9527
|
class: Pe(["konnectio-table-addons-information", { "has-image": vt }])
|
|
9530
9528
|
}, [
|
|
9531
9529
|
vt ? (M(), A("div", wu, [
|
|
9532
|
-
|
|
9530
|
+
Z(l(ka), {
|
|
9533
9531
|
src: vt,
|
|
9534
9532
|
"zoom-scale": 1
|
|
9535
9533
|
}, null, 8, ["src"])
|
|
9536
|
-
])) :
|
|
9534
|
+
])) : B("", !0),
|
|
9537
9535
|
y("div", null, [
|
|
9538
9536
|
y("b", null, O(l(ye)(ci)), 1),
|
|
9539
|
-
y("span", null, O(l(oe)(K, l(Ne))) + " " + O(l(es)(
|
|
9537
|
+
y("span", null, O(l(oe)(K, l(Ne))) + " " + O(l(es)(Ht)), 1),
|
|
9540
9538
|
Fe ? (M(), A("p", {
|
|
9541
9539
|
key: 0,
|
|
9542
9540
|
innerHTML: l(Wr)(Fe)
|
|
9543
|
-
}, null, 8, Pu)) :
|
|
9541
|
+
}, null, 8, Pu)) : B("", !0)
|
|
9544
9542
|
])
|
|
9545
9543
|
], 2),
|
|
9546
9544
|
y("td", Cu, [
|
|
@@ -9560,13 +9558,13 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9560
9558
|
"min-value": 0,
|
|
9561
9559
|
"max-value": Qt || 1 / 0
|
|
9562
9560
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"]))
|
|
9563
|
-
], 64)) :
|
|
9561
|
+
], 64)) : B("", !0)
|
|
9564
9562
|
])
|
|
9565
9563
|
]))), 128))
|
|
9566
9564
|
])
|
|
9567
9565
|
]))), 128))
|
|
9568
9566
|
]))), 128))
|
|
9569
|
-
])) :
|
|
9567
|
+
])) : B("", !0)
|
|
9570
9568
|
], 64))), 128))
|
|
9571
9569
|
])) : l(Dt) ? (M(), A("div", xu, [
|
|
9572
9570
|
y("div", null, [
|
|
@@ -9579,14 +9577,14 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9579
9577
|
y("th", null, [
|
|
9580
9578
|
y("span", null, O(l(ye)(l(Dt).title)), 1)
|
|
9581
9579
|
]),
|
|
9582
|
-
|
|
9580
|
+
B("", !0),
|
|
9583
9581
|
R[24] || (R[24] = y("th", { class: "konnectio-event-addons-price" }, null, -1))
|
|
9584
9582
|
])
|
|
9585
9583
|
]),
|
|
9586
9584
|
y("tbody", null, [
|
|
9587
9585
|
(M(!0), A(ht, null, Tt(l(Di)(l(Dt).addons, l(F)), ({
|
|
9588
9586
|
cardinality: it,
|
|
9589
|
-
quantityStrategy:
|
|
9587
|
+
quantityStrategy: V,
|
|
9590
9588
|
maximumNumber: zt,
|
|
9591
9589
|
id: mt,
|
|
9592
9590
|
name: X,
|
|
@@ -9594,7 +9592,7 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9594
9592
|
}) => (M(), A("tr", { key: mt }, [
|
|
9595
9593
|
y("td", Mu, [
|
|
9596
9594
|
y("b", null, O(l(ye)(X)), 1),
|
|
9597
|
-
y("span", null, O(l(oe)(at, l(Ne))) + " " + O(l(es)(
|
|
9595
|
+
y("span", null, O(l(oe)(at, l(Ne))) + " " + O(l(es)(V)), 1)
|
|
9598
9596
|
]),
|
|
9599
9597
|
y("td", Su, [
|
|
9600
9598
|
it === l(is).Mandatory ? (M(), rt(Pi, {
|
|
@@ -9607,7 +9605,7 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9607
9605
|
})) : (M(), rt(Pi, {
|
|
9608
9606
|
key: 1,
|
|
9609
9607
|
modelValue: l(a)[mt],
|
|
9610
|
-
"onUpdate:modelValue": (
|
|
9608
|
+
"onUpdate:modelValue": (Ht) => l(a)[mt] = Ht,
|
|
9611
9609
|
small: !0,
|
|
9612
9610
|
"min-value": 0,
|
|
9613
9611
|
"max-value": zt || 1 / 0
|
|
@@ -9617,19 +9615,19 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9617
9615
|
])
|
|
9618
9616
|
])
|
|
9619
9617
|
])
|
|
9620
|
-
])) :
|
|
9618
|
+
])) : B("", !0)
|
|
9621
9619
|
])
|
|
9622
9620
|
])
|
|
9623
9621
|
]),
|
|
9624
9622
|
navigation: nt(() => [
|
|
9625
|
-
|
|
9623
|
+
Z(ne, {
|
|
9626
9624
|
label: l(p)("general.startReservation"),
|
|
9627
9625
|
"full-width": "",
|
|
9628
9626
|
onClickEvent: _t
|
|
9629
9627
|
}, null, 8, ["label", "onClickEvent"])
|
|
9630
9628
|
]),
|
|
9631
9629
|
_: 2
|
|
9632
|
-
}, 1032, ["prev-callback"])) :
|
|
9630
|
+
}, 1032, ["prev-callback"])) : B("", !0)
|
|
9633
9631
|
]),
|
|
9634
9632
|
reservation: nt(({ next: _t, prev: q, reset: it }) => [
|
|
9635
9633
|
l(lt) ? (M(), rt(to, {
|
|
@@ -9648,48 +9646,48 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9648
9646
|
innerHTML: l(p)("hotel.reservationTopNotice"),
|
|
9649
9647
|
class: "konnectio-wysiwyg"
|
|
9650
9648
|
}, null, 8, Ou)
|
|
9651
|
-
])) :
|
|
9652
|
-
l(Se)(l(
|
|
9649
|
+
])) : B("", !0),
|
|
9650
|
+
l(Se)(l(k)) && l(si)(l(k)) && l(ri)(l(k)) ? (M(), A("ul", {
|
|
9653
9651
|
key: 1,
|
|
9654
|
-
class: Pe(["konnectio-reservation-timepicker", { "konnectio-split-inputs": l(si)(l(
|
|
9652
|
+
class: Pe(["konnectio-reservation-timepicker", { "konnectio-split-inputs": l(si)(l(k)) && l(ri)(l(k)) }])
|
|
9655
9653
|
}, [
|
|
9656
|
-
l(si)(l(
|
|
9657
|
-
|
|
9654
|
+
l(si)(l(k)) ? (M(), A("li", zu, [
|
|
9655
|
+
Z(hs, {
|
|
9658
9656
|
modelValue: l(P),
|
|
9659
|
-
"onUpdate:modelValue": R[3] || (R[3] = (
|
|
9657
|
+
"onUpdate:modelValue": R[3] || (R[3] = (V) => Lt(P) ? P.value = V : null),
|
|
9660
9658
|
label: l(p)("booking.reservation.arrivalTime"),
|
|
9661
9659
|
icon: "hourglass-start",
|
|
9662
|
-
"min-time": l(Ei)(l(
|
|
9663
|
-
"max-time": l(Bi)(l(
|
|
9660
|
+
"min-time": l(Ei)(l(k)),
|
|
9661
|
+
"max-time": l(Bi)(l(k)),
|
|
9664
9662
|
required: ""
|
|
9665
9663
|
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
9666
|
-
])) :
|
|
9667
|
-
l(ri)(l(
|
|
9668
|
-
|
|
9664
|
+
])) : B("", !0),
|
|
9665
|
+
l(ri)(l(k)) ? (M(), A("li", Eu, [
|
|
9666
|
+
Z(hs, {
|
|
9669
9667
|
modelValue: l(_),
|
|
9670
|
-
"onUpdate:modelValue": R[4] || (R[4] = (
|
|
9668
|
+
"onUpdate:modelValue": R[4] || (R[4] = (V) => Lt(_) ? _.value = V : null),
|
|
9671
9669
|
label: l(p)("booking.reservation.departureTime"),
|
|
9672
9670
|
icon: "hourglass-end",
|
|
9673
|
-
"min-time": l(Zi)(l(
|
|
9674
|
-
"max-time": l(pn)(l(
|
|
9671
|
+
"min-time": l(Zi)(l(k)),
|
|
9672
|
+
"max-time": l(pn)(l(k)),
|
|
9675
9673
|
required: ""
|
|
9676
9674
|
}, null, 8, ["modelValue", "label", "min-time", "max-time"])
|
|
9677
|
-
])) :
|
|
9678
|
-
], 2)) :
|
|
9679
|
-
|
|
9675
|
+
])) : B("", !0)
|
|
9676
|
+
], 2)) : B("", !0),
|
|
9677
|
+
Z(zl, {
|
|
9680
9678
|
modelValue: l(T),
|
|
9681
|
-
"onUpdate:modelValue": R[5] || (R[5] = (
|
|
9679
|
+
"onUpdate:modelValue": R[5] || (R[5] = (V) => Lt(T) ? T.value = V : null),
|
|
9682
9680
|
title: l(C),
|
|
9683
|
-
"onUpdate:title": R[6] || (R[6] = (
|
|
9681
|
+
"onUpdate:title": R[6] || (R[6] = (V) => Lt(C) ? C.value = V : null),
|
|
9684
9682
|
"exclude-title": l(dn),
|
|
9685
9683
|
label: l(p)("booking.reservation.name"),
|
|
9686
9684
|
icon: "user-alt",
|
|
9687
9685
|
placeholder: l(p)("booking.reservation.namePlaceholder"),
|
|
9688
9686
|
required: ""
|
|
9689
9687
|
}, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
|
|
9690
|
-
|
|
9688
|
+
Z(ie, {
|
|
9691
9689
|
modelValue: l(D),
|
|
9692
|
-
"onUpdate:modelValue": R[7] || (R[7] = (
|
|
9690
|
+
"onUpdate:modelValue": R[7] || (R[7] = (V) => Lt(D) ? D.value = V : null),
|
|
9693
9691
|
type: "email",
|
|
9694
9692
|
name: "email",
|
|
9695
9693
|
autocomplete: "email",
|
|
@@ -9699,19 +9697,19 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9699
9697
|
placeholder: l(p)("booking.reservation.emailPlaceholder"),
|
|
9700
9698
|
required: ""
|
|
9701
9699
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9702
|
-
l(ii) ?
|
|
9703
|
-
|
|
9700
|
+
l(ii) ? B("", !0) : (M(), A("div", Bu, [
|
|
9701
|
+
Z(io, {
|
|
9704
9702
|
modelValue: l(U),
|
|
9705
|
-
"onUpdate:modelValue": R[8] || (R[8] = (
|
|
9703
|
+
"onUpdate:modelValue": R[8] || (R[8] = (V) => Lt(U) ? U.value = V : null),
|
|
9706
9704
|
type: "checkbox",
|
|
9707
9705
|
name: "newsletter",
|
|
9708
9706
|
label: l(p)("booking.reservation.newsletterSignUp")
|
|
9709
9707
|
}, null, 8, ["modelValue", "label"])
|
|
9710
9708
|
])),
|
|
9711
|
-
l(Oi) ?
|
|
9709
|
+
l(Oi) ? B("", !0) : (M(), rt(ie, {
|
|
9712
9710
|
key: 3,
|
|
9713
9711
|
modelValue: l(z),
|
|
9714
|
-
"onUpdate:modelValue": R[9] || (R[9] = (
|
|
9712
|
+
"onUpdate:modelValue": R[9] || (R[9] = (V) => Lt(z) ? z.value = V : null),
|
|
9715
9713
|
type: "text",
|
|
9716
9714
|
name: "firm",
|
|
9717
9715
|
autocomplete: "firm",
|
|
@@ -9719,25 +9717,25 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9719
9717
|
icon: "id-card",
|
|
9720
9718
|
placeholder: l(p)("booking.reservation.companyNamePlaceholder")
|
|
9721
9719
|
}, null, 8, ["modelValue", "label", "placeholder"])),
|
|
9722
|
-
|
|
9720
|
+
Z(Jr, {
|
|
9723
9721
|
modelValue: l(I),
|
|
9724
|
-
"onUpdate:modelValue": R[10] || (R[10] = (
|
|
9722
|
+
"onUpdate:modelValue": R[10] || (R[10] = (V) => Lt(I) ? I.value = V : null),
|
|
9725
9723
|
icon: "phone-office",
|
|
9726
9724
|
label: l(p)("booking.reservation.phone"),
|
|
9727
9725
|
placeholder: l(p)("booking.reservation.phonePlaceholder"),
|
|
9728
9726
|
required: ""
|
|
9729
9727
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9730
|
-
|
|
9728
|
+
Z(Il, {
|
|
9731
9729
|
modelValue: l(kt),
|
|
9732
|
-
"onUpdate:modelValue": R[11] || (R[11] = (
|
|
9730
|
+
"onUpdate:modelValue": R[11] || (R[11] = (V) => Lt(kt) ? kt.value = V : null),
|
|
9733
9731
|
label: l(p)("booking.reservation.country"),
|
|
9734
9732
|
placeholder: l(p)("booking.reservation.countryPlaceholder"),
|
|
9735
9733
|
options: l(h),
|
|
9736
9734
|
required: ""
|
|
9737
9735
|
}, null, 8, ["modelValue", "label", "placeholder", "options"]),
|
|
9738
|
-
|
|
9736
|
+
Z(ie, {
|
|
9739
9737
|
modelValue: l(ut),
|
|
9740
|
-
"onUpdate:modelValue": R[12] || (R[12] = (
|
|
9738
|
+
"onUpdate:modelValue": R[12] || (R[12] = (V) => Lt(ut) ? ut.value = V : null),
|
|
9741
9739
|
type: "textarea",
|
|
9742
9740
|
name: "address",
|
|
9743
9741
|
autocomplete: "street-address",
|
|
@@ -9748,9 +9746,9 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9748
9746
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
9749
9747
|
y("ul", Zu, [
|
|
9750
9748
|
y("li", null, [
|
|
9751
|
-
|
|
9749
|
+
Z(ie, {
|
|
9752
9750
|
modelValue: l(N),
|
|
9753
|
-
"onUpdate:modelValue": R[13] || (R[13] = (
|
|
9751
|
+
"onUpdate:modelValue": R[13] || (R[13] = (V) => Lt(N) ? N.value = V : null),
|
|
9754
9752
|
type: "text",
|
|
9755
9753
|
name: "postal",
|
|
9756
9754
|
autocomplete: "postal-code",
|
|
@@ -9761,9 +9759,9 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9761
9759
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
9762
9760
|
]),
|
|
9763
9761
|
y("li", null, [
|
|
9764
|
-
|
|
9762
|
+
Z(ie, {
|
|
9765
9763
|
modelValue: l(ot),
|
|
9766
|
-
"onUpdate:modelValue": R[14] || (R[14] = (
|
|
9764
|
+
"onUpdate:modelValue": R[14] || (R[14] = (V) => Lt(ot) ? ot.value = V : null),
|
|
9767
9765
|
type: "text",
|
|
9768
9766
|
name: "city",
|
|
9769
9767
|
autocomplete: "address-level2",
|
|
@@ -9777,25 +9775,25 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9777
9775
|
r.hideRemarks !== "yes" ? (M(), rt(ie, {
|
|
9778
9776
|
key: 4,
|
|
9779
9777
|
modelValue: l(Mt),
|
|
9780
|
-
"onUpdate:modelValue": R[15] || (R[15] = (
|
|
9778
|
+
"onUpdate:modelValue": R[15] || (R[15] = (V) => Lt(Mt) ? Mt.value = V : null),
|
|
9781
9779
|
type: "textarea",
|
|
9782
9780
|
label: l(p)("booking.reservation.remark"),
|
|
9783
9781
|
icon: "info-circle",
|
|
9784
9782
|
placeholder: l(p)("booking.reservation.remarkPlaceholder")
|
|
9785
|
-
}, null, 8, ["modelValue", "label", "placeholder"])) :
|
|
9783
|
+
}, null, 8, ["modelValue", "label", "placeholder"])) : B("", !0),
|
|
9786
9784
|
r.hideAllergies !== "yes" ? (M(), rt(ie, {
|
|
9787
9785
|
key: 5,
|
|
9788
9786
|
modelValue: l(St),
|
|
9789
|
-
"onUpdate:modelValue": R[16] || (R[16] = (
|
|
9787
|
+
"onUpdate:modelValue": R[16] || (R[16] = (V) => Lt(St) ? St.value = V : null),
|
|
9790
9788
|
type: "textarea",
|
|
9791
9789
|
label: l(p)("booking.reservation.allergies"),
|
|
9792
9790
|
icon: "allergies",
|
|
9793
9791
|
placeholder: l(p)("booking.reservation.allergiesPlaceholder")
|
|
9794
|
-
}, null, 8, ["modelValue", "label", "placeholder"])) :
|
|
9795
|
-
l(Qe) ?
|
|
9792
|
+
}, null, 8, ["modelValue", "label", "placeholder"])) : B("", !0),
|
|
9793
|
+
l(Qe) ? B("", !0) : (M(), rt(Jo, {
|
|
9796
9794
|
key: 6,
|
|
9797
9795
|
modelValue: l(v),
|
|
9798
|
-
"onUpdate:modelValue": R[17] || (R[17] = (
|
|
9796
|
+
"onUpdate:modelValue": R[17] || (R[17] = (V) => Lt(v) ? v.value = V : null),
|
|
9799
9797
|
label: l(p)("booking.reservation.purposeOfStay"),
|
|
9800
9798
|
name: "travelingFor",
|
|
9801
9799
|
checkboxes: ui.value
|
|
@@ -9815,22 +9813,22 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9815
9813
|
y("li", null, [
|
|
9816
9814
|
y("span", null, O(l(p)("hotel.memberCards.cardNumber")) + ": " + O(l(be).cardNumber), 1)
|
|
9817
9815
|
]),
|
|
9818
|
-
l(be).controlNr ? (M(), A("li",
|
|
9816
|
+
l(be).controlNr ? (M(), A("li", Hu, [
|
|
9819
9817
|
y("span", null, O(l(p)("hotel.memberCards.controlNumber")) + ": " + O(l(be).controlNr), 1)
|
|
9820
|
-
])) :
|
|
9818
|
+
])) : B("", !0)
|
|
9821
9819
|
])
|
|
9822
9820
|
])) : (M(), A(ht, { key: 1 }, [
|
|
9823
|
-
|
|
9821
|
+
Z(Jo, {
|
|
9824
9822
|
modelValue: l(wt),
|
|
9825
|
-
"onUpdate:modelValue": R[18] || (R[18] = (
|
|
9823
|
+
"onUpdate:modelValue": R[18] || (R[18] = (V) => Lt(wt) ? wt.value = V : null),
|
|
9826
9824
|
label: l(p)("hotel.memberCards.selectCard"),
|
|
9827
9825
|
name: "memberCard",
|
|
9828
9826
|
checkboxes: l(xe)
|
|
9829
9827
|
}, null, 8, ["modelValue", "label", "checkboxes"]),
|
|
9830
|
-
l(wt) ? (M(), A("form",
|
|
9831
|
-
|
|
9828
|
+
l(wt) ? (M(), A("form", Vu, [
|
|
9829
|
+
Z(ie, {
|
|
9832
9830
|
modelValue: l(se),
|
|
9833
|
-
"onUpdate:modelValue": R[19] || (R[19] = (
|
|
9831
|
+
"onUpdate:modelValue": R[19] || (R[19] = (V) => Lt(se) ? se.value = V : null),
|
|
9834
9832
|
type: "number",
|
|
9835
9833
|
label: l(p)("hotel.memberCards.cardNumber"),
|
|
9836
9834
|
icon: "credit-card",
|
|
@@ -9840,17 +9838,17 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9840
9838
|
l(wt) === l(ts).FirmaCard ? (M(), rt(ie, {
|
|
9841
9839
|
key: 0,
|
|
9842
9840
|
modelValue: l(fe),
|
|
9843
|
-
"onUpdate:modelValue": R[20] || (R[20] = (
|
|
9841
|
+
"onUpdate:modelValue": R[20] || (R[20] = (V) => Lt(fe) ? fe.value = V : null),
|
|
9844
9842
|
type: "text",
|
|
9845
9843
|
label: l(p)("hotel.memberCards.cardControlNumber"),
|
|
9846
9844
|
icon: "id-card",
|
|
9847
9845
|
placeholder: l(p)("hotel.memberCards.cardControlNumberPlaceholder"),
|
|
9848
9846
|
required: ""
|
|
9849
|
-
}, null, 8, ["modelValue", "label", "placeholder"])) :
|
|
9847
|
+
}, null, 8, ["modelValue", "label", "placeholder"])) : B("", !0),
|
|
9850
9848
|
l(wt) === l(ts).DaneAge ? (M(), rt(ie, {
|
|
9851
9849
|
key: 1,
|
|
9852
9850
|
modelValue: l(N),
|
|
9853
|
-
"onUpdate:modelValue": R[21] || (R[21] = (
|
|
9851
|
+
"onUpdate:modelValue": R[21] || (R[21] = (V) => Lt(N) ? N.value = V : null),
|
|
9854
9852
|
type: "text",
|
|
9855
9853
|
name: "postal",
|
|
9856
9854
|
autocomplete: "postal-code",
|
|
@@ -9858,37 +9856,37 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9858
9856
|
icon: "mailbox",
|
|
9859
9857
|
placeholder: l(p)("booking.reservation.postalPlaceholder"),
|
|
9860
9858
|
required: ""
|
|
9861
|
-
}, null, 8, ["modelValue", "label", "placeholder"])) :
|
|
9862
|
-
|
|
9859
|
+
}, null, 8, ["modelValue", "label", "placeholder"])) : B("", !0),
|
|
9860
|
+
Z(ne, {
|
|
9863
9861
|
label: l(p)("hotel.memberCards.validateAndSelectCard"),
|
|
9864
9862
|
"full-width": "",
|
|
9865
9863
|
onClickEvent: l(Ni)
|
|
9866
9864
|
}, null, 8, ["label", "onClickEvent"])
|
|
9867
|
-
])) :
|
|
9865
|
+
])) : B("", !0)
|
|
9868
9866
|
], 64))
|
|
9869
|
-
], 64)) :
|
|
9867
|
+
], 64)) : B("", !0)
|
|
9870
9868
|
])
|
|
9871
9869
|
]),
|
|
9872
9870
|
navigation: nt(() => [
|
|
9873
9871
|
y("div", null, [
|
|
9874
|
-
|
|
9872
|
+
Z(ne, {
|
|
9875
9873
|
label: l(fn) ? l(p)("booking.reservation.nextButton") : l(p)("general.confirmReservation"),
|
|
9876
9874
|
disabled: !l(b),
|
|
9877
9875
|
"is-loading": l(g),
|
|
9878
9876
|
"full-width": "",
|
|
9879
|
-
onClickEvent: (
|
|
9877
|
+
onClickEvent: (V) => kn(_t, it)
|
|
9880
9878
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
9881
9879
|
])
|
|
9882
9880
|
]),
|
|
9883
9881
|
_: 2
|
|
9884
|
-
}, 1032, ["prev-callback"])) :
|
|
9882
|
+
}, 1032, ["prev-callback"])) : B("", !0)
|
|
9885
9883
|
]),
|
|
9886
9884
|
payment: nt(({ prev: _t }) => [
|
|
9887
|
-
|
|
9888
|
-
|
|
9885
|
+
Z(Kr),
|
|
9886
|
+
B("", !0)
|
|
9889
9887
|
]),
|
|
9890
9888
|
confirmation: nt(() => [
|
|
9891
|
-
|
|
9889
|
+
Z(Hr, {
|
|
9892
9890
|
message: l(p)("booking.confirmation.thankYou")
|
|
9893
9891
|
}, null, 8, ["message"])
|
|
9894
9892
|
]),
|
|
@@ -9901,7 +9899,7 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9901
9899
|
}, 8, ["access-token", "callback"])
|
|
9902
9900
|
]),
|
|
9903
9901
|
fallback: nt(() => [
|
|
9904
|
-
|
|
9902
|
+
Z(Nl)
|
|
9905
9903
|
]),
|
|
9906
9904
|
_: 1
|
|
9907
9905
|
}))
|
|
@@ -9909,7 +9907,7 @@ const Fu = /* @__PURE__ */ Bt({
|
|
|
9909
9907
|
_: 1
|
|
9910
9908
|
}, 8, ["styling"]));
|
|
9911
9909
|
}
|
|
9912
|
-
}), cs = /* @__PURE__ */ Xt(Fu, [["__scopeId", "data-v-
|
|
9910
|
+
}), cs = /* @__PURE__ */ Xt(Fu, [["__scopeId", "data-v-f533826a"]]), Gu = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), Uu = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]), ds = /* @__PURE__ */ new Set([
|
|
9913
9911
|
"base",
|
|
9914
9912
|
"meta",
|
|
9915
9913
|
"link",
|
|
@@ -9956,8 +9954,8 @@ function oo(r) {
|
|
|
9956
9954
|
if (r.tag === "meta") {
|
|
9957
9955
|
for (const p of Xu)
|
|
9958
9956
|
if (d[p] !== void 0) {
|
|
9959
|
-
const
|
|
9960
|
-
return `${c}:${
|
|
9957
|
+
const k = d[p], o = k && typeof k == "string" && k.includes(":"), a = k && Ku.has(k), f = !(o || a) && r.key ? `:key:${r.key}` : "";
|
|
9958
|
+
return `${c}:${k}${f}`;
|
|
9961
9959
|
}
|
|
9962
9960
|
}
|
|
9963
9961
|
if (r.key)
|
|
@@ -9975,34 +9973,36 @@ function fs(r) {
|
|
|
9975
9973
|
if (d)
|
|
9976
9974
|
return d;
|
|
9977
9975
|
const c = r.textContent || r.innerHTML;
|
|
9978
|
-
return c || `${r.tag}:${Object.entries(r.props).map(([p,
|
|
9976
|
+
return c || `${r.tag}:${Object.entries(r.props).map(([p, k]) => `${p}:${String(k)}`).join(",")}`;
|
|
9979
9977
|
}
|
|
9980
9978
|
function so(r, d, c) {
|
|
9981
9979
|
typeof r === "function" && (!c || c !== "titleTemplate" && !(c[0] === "o" && c[1] === "n")) && (r = r());
|
|
9982
|
-
|
|
9983
|
-
if (
|
|
9984
|
-
return
|
|
9985
|
-
if (
|
|
9980
|
+
const k = d ? d(c, r) : r;
|
|
9981
|
+
if (Array.isArray(k))
|
|
9982
|
+
return k.map((o) => so(o, d));
|
|
9983
|
+
if (k?.constructor === Object) {
|
|
9986
9984
|
const o = {};
|
|
9987
|
-
for (const a of Object.keys(
|
|
9988
|
-
o[a] = so(
|
|
9985
|
+
for (const a of Object.keys(k))
|
|
9986
|
+
o[a] = so(k[a], d, a);
|
|
9989
9987
|
return o;
|
|
9990
9988
|
}
|
|
9991
|
-
return
|
|
9989
|
+
return k;
|
|
9992
9990
|
}
|
|
9993
9991
|
function Ju(r, d) {
|
|
9994
9992
|
const c = r === "style" ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set();
|
|
9995
|
-
function p(
|
|
9996
|
-
|
|
9993
|
+
function p(k) {
|
|
9994
|
+
if (k == null || k === void 0)
|
|
9995
|
+
return;
|
|
9996
|
+
const o = String(k).trim();
|
|
9997
9997
|
if (o)
|
|
9998
9998
|
if (r === "style") {
|
|
9999
|
-
const [a, ...h] = o.split(":").map((f) => f.trim());
|
|
9999
|
+
const [a, ...h] = o.split(":").map((f) => f ? f.trim() : "");
|
|
10000
10000
|
a && h.length && c.set(a, h.join(":"));
|
|
10001
10001
|
} else
|
|
10002
10002
|
o.split(" ").filter(Boolean).forEach((a) => c.add(a));
|
|
10003
10003
|
}
|
|
10004
|
-
return typeof d == "string" ? r === "style" ? d.split(";").forEach(p) : p(d) : Array.isArray(d) ? d.forEach((
|
|
10005
|
-
o && o !== "false" && (r === "style" ? c.set(
|
|
10004
|
+
return typeof d == "string" ? r === "style" ? d.split(";").forEach(p) : p(d) : Array.isArray(d) ? d.forEach((k) => p(k)) : d && typeof d == "object" && Object.entries(d).forEach(([k, o]) => {
|
|
10005
|
+
o && o !== "false" && (r === "style" ? c.set(String(k).trim(), String(o)) : p(k));
|
|
10006
10006
|
}), c;
|
|
10007
10007
|
}
|
|
10008
10008
|
function xs(r, d) {
|
|
@@ -10017,37 +10017,37 @@ function xs(r, d) {
|
|
|
10017
10017
|
}
|
|
10018
10018
|
if (qu.has(c)) {
|
|
10019
10019
|
if (["textContent", "innerHTML"].includes(c) && typeof p == "object") {
|
|
10020
|
-
let
|
|
10021
|
-
if (d.type || (
|
|
10020
|
+
let h = d.type;
|
|
10021
|
+
if (d.type || (h = "application/json"), !h?.endsWith("json") && h !== "speculationrules")
|
|
10022
10022
|
return;
|
|
10023
|
-
d.type =
|
|
10023
|
+
d.type = h, r.props.type = h, r[c] = JSON.stringify(p);
|
|
10024
10024
|
} else
|
|
10025
10025
|
r[c] = p;
|
|
10026
10026
|
return;
|
|
10027
10027
|
}
|
|
10028
|
-
const
|
|
10029
|
-
|
|
10028
|
+
const k = String(p), o = c.startsWith("data-"), a = r.tag === "meta" && c === "content";
|
|
10029
|
+
k === "true" || k === "" ? r.props[c] = o || a ? k : !0 : !p && o && k === "false" ? r.props[c] = "false" : p !== void 0 && (r.props[c] = p);
|
|
10030
10030
|
}), r) : r;
|
|
10031
10031
|
}
|
|
10032
10032
|
function Qu(r, d) {
|
|
10033
10033
|
const c = typeof d == "object" && typeof d != "function" ? d : { [r === "script" || r === "noscript" || r === "style" ? "innerHTML" : "textContent"]: d }, p = xs({ tag: r, props: {} }, c);
|
|
10034
|
-
return p.key && Gu.has(p.tag) && (p.props["data-hid"] = p._h = p.key), p.tag === "script" && typeof p.innerHTML == "object" && (p.innerHTML = JSON.stringify(p.innerHTML), p.props.type = p.props.type || "application/json"), Array.isArray(p.props.content) ? p.props.content.map((
|
|
10034
|
+
return p.key && Gu.has(p.tag) && (p.props["data-hid"] = p._h = p.key), p.tag === "script" && typeof p.innerHTML == "object" && (p.innerHTML = JSON.stringify(p.innerHTML), p.props.type = p.props.type || "application/json"), Array.isArray(p.props.content) ? p.props.content.map((k) => ({ ...p, props: { ...p.props, content: k } })) : p;
|
|
10035
10035
|
}
|
|
10036
10036
|
function th(r, d) {
|
|
10037
10037
|
if (!r)
|
|
10038
10038
|
return [];
|
|
10039
10039
|
typeof r == "function" && (r = r());
|
|
10040
|
-
const c = (
|
|
10040
|
+
const c = (k, o) => {
|
|
10041
10041
|
for (let a = 0; a < d.length; a++)
|
|
10042
|
-
o = d[a](
|
|
10042
|
+
o = d[a](k, o);
|
|
10043
10043
|
return o;
|
|
10044
10044
|
};
|
|
10045
10045
|
r = c(void 0, r);
|
|
10046
10046
|
const p = [];
|
|
10047
|
-
return r = so(r, c), Object.entries(r || {}).forEach(([
|
|
10047
|
+
return r = so(r, c), Object.entries(r || {}).forEach(([k, o]) => {
|
|
10048
10048
|
if (o !== void 0)
|
|
10049
10049
|
for (const a of Array.isArray(o) ? o : [o])
|
|
10050
|
-
p.push(Qu(
|
|
10050
|
+
p.push(Qu(k, a));
|
|
10051
10051
|
}), p.flat();
|
|
10052
10052
|
}
|
|
10053
10053
|
const ms = (r, d) => r._w === d._w ? r._p - d._p : r._w - d._w, ps = {
|
|
@@ -10086,7 +10086,7 @@ function nh(r, d) {
|
|
|
10086
10086
|
if (typeof d.tagPriority == "number")
|
|
10087
10087
|
return d.tagPriority;
|
|
10088
10088
|
let c = 100;
|
|
10089
|
-
const p = eh[d.tagPriority] || 0,
|
|
10089
|
+
const p = eh[d.tagPriority] || 0, k = r.resolvedOptions.disableCapoSorting ? {
|
|
10090
10090
|
link: {},
|
|
10091
10091
|
script: {},
|
|
10092
10092
|
style: {}
|
|
@@ -10096,7 +10096,12 @@ function nh(r, d) {
|
|
|
10096
10096
|
else if (d.tag === "meta") {
|
|
10097
10097
|
const o = d.props["http-equiv"] === "content-security-policy" ? "content-security-policy" : d.props.charset ? "charset" : d.props.name === "viewport" ? "viewport" : null;
|
|
10098
10098
|
o && (c = _s.meta[o]);
|
|
10099
|
-
} else d.tag === "link" && d.props.rel
|
|
10099
|
+
} else if (d.tag === "link" && d.props.rel)
|
|
10100
|
+
c = k.link[d.props.rel];
|
|
10101
|
+
else if (d.tag === "script") {
|
|
10102
|
+
const o = String(d.props.type);
|
|
10103
|
+
ki(d.props.async) ? c = k.script.async : d.props.src && !ki(d.props.defer) && !ki(d.props.async) && o !== "module" && !o.endsWith("json") || d.innerHTML && !o.endsWith("json") ? c = k.script.sync : (ki(d.props.defer) && d.props.src && !ki(d.props.async) || o === "module") && (c = k.script.defer);
|
|
10104
|
+
} else d.tag === "style" && (c = d.innerHTML && ih.test(d.innerHTML) ? k.style.imported : k.style.sync);
|
|
10100
10105
|
return (c || 100) + p;
|
|
10101
10106
|
}
|
|
10102
10107
|
function gs(r, d) {
|
|
@@ -10107,10 +10112,10 @@ function gs(r, d) {
|
|
|
10107
10112
|
function oh(r = {}) {
|
|
10108
10113
|
const d = ra();
|
|
10109
10114
|
d.addHooks(r.hooks || {});
|
|
10110
|
-
const c = !r.document, p = /* @__PURE__ */ new Map(),
|
|
10115
|
+
const c = !r.document, p = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), a = {
|
|
10111
10116
|
_entryCount: 1,
|
|
10112
10117
|
// 0 is reserved for internal use
|
|
10113
|
-
plugins:
|
|
10118
|
+
plugins: k,
|
|
10114
10119
|
dirty: !1,
|
|
10115
10120
|
resolvedOptions: r,
|
|
10116
10121
|
hooks: d,
|
|
@@ -10184,7 +10189,7 @@ function oh(r = {}) {
|
|
|
10184
10189
|
const { innerHTML: _, tag: T, props: C } = P;
|
|
10185
10190
|
if ($u.has(T) && !(Object.keys(C).length === 0 && !P.innerHTML && !P.textContent) && !(T === "meta" && !C.content && !C["http-equiv"] && !C.charset)) {
|
|
10186
10191
|
if (T === "script" && _) {
|
|
10187
|
-
if (C.type
|
|
10192
|
+
if (String(C.type).endsWith("json")) {
|
|
10188
10193
|
const D = typeof _ == "string" ? _ : JSON.stringify(_);
|
|
10189
10194
|
P.innerHTML = D.replace(/</g, "\\u003C");
|
|
10190
10195
|
} else typeof _ == "string" && (P.innerHTML = _.replace(new RegExp(`</${T}`, "g"), `<\\/${T}`));
|
|
@@ -10209,7 +10214,7 @@ async function Ts(r, d = {}) {
|
|
|
10209
10214
|
return;
|
|
10210
10215
|
const p = { shouldRender: !0, tags: [] };
|
|
10211
10216
|
if (await r.hooks.callHook("dom:beforeRender", p), !!p.shouldRender)
|
|
10212
|
-
return r._domUpdatePromise || (r._domUpdatePromise = new Promise(async (
|
|
10217
|
+
return r._domUpdatePromise || (r._domUpdatePromise = new Promise(async (k) => {
|
|
10213
10218
|
const o = /* @__PURE__ */ new Map(), a = new Promise((_) => {
|
|
10214
10219
|
r.resolveTags().then((T) => {
|
|
10215
10220
|
_(
|
|
@@ -10317,7 +10322,7 @@ async function Ts(r, d = {}) {
|
|
|
10317
10322
|
v.head && c.head.appendChild(v.head), v.bodyOpen && c.body.insertBefore(v.bodyOpen, c.body.firstChild), v.bodyClose && c.body.appendChild(v.bodyClose);
|
|
10318
10323
|
for (const _ in h.pendingSideEffects)
|
|
10319
10324
|
h.pendingSideEffects[_]();
|
|
10320
|
-
r._dom = h, await r.hooks.callHook("dom:rendered", { renders: P }),
|
|
10325
|
+
r._dom = h, await r.hooks.callHook("dom:rendered", { renders: P }), k();
|
|
10321
10326
|
}).finally(() => {
|
|
10322
10327
|
r._domUpdatePromise = void 0, r.dirty = !1;
|
|
10323
10328
|
})), r._domUpdatePromise;
|
|
@@ -10382,7 +10387,7 @@ class mh extends HTMLElement {
|
|
|
10382
10387
|
}
|
|
10383
10388
|
connectedCallback() {
|
|
10384
10389
|
const d = Ir(cs, this.attributes);
|
|
10385
|
-
this.vueApp = Or(cs, d), this.vueApp.provide("emitter", fh), this.vueApp.use(Er), this.vueApp.use(ch), this.vueApp.use(hh), this.vueApp.use(
|
|
10390
|
+
this.vueApp = Or(cs, d), this.vueApp.provide("emitter", fh), this.vueApp.use(Er), this.vueApp.use(ch), this.vueApp.use(hh), this.vueApp.use(Vr), this.vueApp.use(zr), this.vueApp.use(Fr), this.vueApp.use(Br);
|
|
10386
10391
|
const c = document.createElement("div");
|
|
10387
10392
|
this.vueApp.mount(c), this.appendChild(c.children[0]);
|
|
10388
10393
|
}
|