@mapsindoors/map-template 1.95.9 → 1.95.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{GoogleMapsMap-CV6Wgkhg.mjs → GoogleMapsMap-CwUKio6U.mjs} +2 -2
- package/dist/{MapboxMap-EuKWsGtq.mjs → MapboxMap-C5oy5rc4.mjs} +2 -2
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +3 -3
- package/dist/mapsindoors-webcomponent.es.js +6 -6
- package/dist/{reactcomponent-DcNpL3XF.mjs → reactcomponent-Dyc_LGHg.mjs} +8 -8
- package/package.json +1 -1
|
@@ -24781,8 +24781,8 @@ function tL(t, o) {
|
|
|
24781
24781
|
}, [o]);
|
|
24782
24782
|
function M(D, z, B, V) {
|
|
24783
24783
|
const W = (J) => {
|
|
24784
|
-
|
|
24785
|
-
z
|
|
24784
|
+
const ae = z.getMap().queryRenderedFeatures(J.point);
|
|
24785
|
+
!ae.length && z?.getHighlight()?.length > 0 && z.highlight([]), B && (ae.length ? V(!1) : V(!0));
|
|
24786
24786
|
};
|
|
24787
24787
|
return D.on("click", W), () => {
|
|
24788
24788
|
D.off("click", W);
|
|
@@ -24792,7 +24792,7 @@ function tL(t, o) {
|
|
|
24792
24792
|
const W = () => {
|
|
24793
24793
|
B && V(!1);
|
|
24794
24794
|
}, J = () => {
|
|
24795
|
-
B && V(!0);
|
|
24795
|
+
z.highlight([]), B && V(!0);
|
|
24796
24796
|
};
|
|
24797
24797
|
z.addListener("click", W);
|
|
24798
24798
|
const ae = D.addListener("click", J);
|
|
@@ -30010,7 +30010,7 @@ Y5.propTypes = {
|
|
|
30010
30010
|
function Y5({ onSetSize: t, isOpen: o, onOpenChat: s }) {
|
|
30011
30011
|
const c = Yn(um), { t: p } = Xa(), v = De.useRef(), M = De.useRef(), i = De.useRef(), D = De.useRef(), z = De.useRef(), B = 100, [V, W] = Li(z2), J = Yn(Wy), ae = Yn(Ud), xe = Yn(vL), [Se, _e] = De.useState(!1), [te, se] = Li(H5), Ie = r1(), [ke, le] = De.useState(), je = Yn(Uc), [, Ae] = Li($y), [, Ge] = Li(og), [, Ee] = Li(Ky), [Pe, He] = Li(_p), Fe = Yn(Km), ct = Ou(), Ot = Yn(vp), [nn, de] = De.useState(!1), we = Yn(F5), { setInitialMessage: N } = gL(), { enabled: j } = _L(), X = cm(), [, $] = Li(O2), [Z, ye] = De.useState(!1), ve = Yn(bL), ue = Yn(E2), Ce = Yn(qy), Oe = Yn(Q5), [st, nt] = De.useState(!1), [lt, gt] = De.useState(!1), Tt = De.useRef([]), [Pt, xt] = De.useState([]), [on, Nn] = De.useState(!1);
|
|
30012
30012
|
function Gt() {
|
|
30013
|
-
Tt.current.length ===
|
|
30013
|
+
Tt.current.length === 0 ? (se(null), W([]), Ae([]), In(io.FIT), nt(!0), D.current?.getValue()?.trim() ? D.current.triggerSearch() : D.current?.clear(), Tt.current.pop()) : (Tt.current.pop(), se(Tt.current[0]));
|
|
30014
30014
|
}
|
|
30015
30015
|
function fn($n) {
|
|
30016
30016
|
Tt.current.includes($n) || Tt.current.push($n), te && (se([]), W([]), Ae([])), se($n), window.mapsindoors.services.LocationsService.getLocations({
|
|
@@ -41557,8 +41557,8 @@ function Uk({ apiKey: t, gmApiKey: o, mapboxAccessToken: s, venue: c, locationId
|
|
|
41557
41557
|
window.mapsindoors.services.AppConfigService.getConfig().then((Yi) => (at(Yi), Yi)),
|
|
41558
41558
|
// Fetch solution info in order to see what modules are enabled
|
|
41559
41559
|
window.mapsindoors.services.SolutionsService.getSolution().then((Yi) => (it(Yi), Yi)),
|
|
41560
|
-
// Ensure a minimum waiting time of
|
|
41561
|
-
new Promise((Yi) => setTimeout(Yi,
|
|
41560
|
+
// Ensure a minimum waiting time of 1 second
|
|
41561
|
+
new Promise((Yi) => setTimeout(Yi, 1e3))
|
|
41562
41562
|
]).then(([Yi, vs]) => {
|
|
41563
41563
|
Yi = Yi.map((fa) => (fa.image = vs.venueImages[fa.name.toLowerCase()], fa)), Oe(Yi);
|
|
41564
41564
|
}), ue(!1));
|
|
@@ -17526,7 +17526,7 @@ function wv({ mapType: e, mapsIndoorsInstance: t, mapInstance: n, onPositionCont
|
|
|
17526
17526
|
const Dz = Dy(wv), Ln = {
|
|
17527
17527
|
Google: "google",
|
|
17528
17528
|
Mapbox: "mapbox"
|
|
17529
|
-
}, Iz = Iy(() => import("./MapboxMap-
|
|
17529
|
+
}, Iz = Iy(() => import("./MapboxMap-C5oy5rc4.mjs")), Cz = Iy(() => import("./GoogleMapsMap-CwUKio6U.mjs"));
|
|
17530
17530
|
xv.propTypes = {
|
|
17531
17531
|
apiKey: te.string.isRequired,
|
|
17532
17532
|
mapType: te.string.isRequired,
|
|
@@ -20769,8 +20769,8 @@ function qv(e, t) {
|
|
|
20769
20769
|
}, [t]);
|
|
20770
20770
|
function s(u, f, g, p) {
|
|
20771
20771
|
const v = (w) => {
|
|
20772
|
-
|
|
20773
|
-
f
|
|
20772
|
+
const I = f.getMap().queryRenderedFeatures(w.point);
|
|
20773
|
+
!I.length && f?.getHighlight()?.length > 0 && f.highlight([]), g && (I.length ? p(!1) : p(!0));
|
|
20774
20774
|
};
|
|
20775
20775
|
return u.on("click", v), () => {
|
|
20776
20776
|
u.off("click", v);
|
|
@@ -20780,7 +20780,7 @@ function qv(e, t) {
|
|
|
20780
20780
|
const v = () => {
|
|
20781
20781
|
g && p(!1);
|
|
20782
20782
|
}, w = () => {
|
|
20783
|
-
g && p(!0);
|
|
20783
|
+
f.highlight([]), g && p(!0);
|
|
20784
20784
|
};
|
|
20785
20785
|
f.addListener("click", v);
|
|
20786
20786
|
const I = u.addListener("click", w);
|
|
@@ -25998,7 +25998,7 @@ Rp.propTypes = {
|
|
|
25998
25998
|
function Rp({ onSetSize: e, isOpen: t, onOpenChat: n }) {
|
|
25999
25999
|
const r = Se(Bi), { t: i } = In(), o = st(), s = st(), l = st(), u = st(), f = st(), g = 100, [p, v] = Ge(Rc), w = Se(Sa), I = Se(jr), _ = Se(p6), [U, E] = Ze(!1), [x, N] = Ge(zp), k = ps(), [L, D] = Ze(), B = Se(rr), [, P] = Ge(Ca), [, Z] = Ge(ui), [, R] = Ge(ka), [$, V] = Ge(qr), H = Se(vo), ee = $n(), fe = Se(Jr), [xe, A] = Ze(!1), z = Se(Ep), { setInitialMessage: d } = d6(), { enabled: h } = g6(), b = Yi(), [, y] = Ge(Pc), [M, S] = Ze(!1), T = Se(y6), C = Se(Lc), O = Se(Ta), Q = Se(_p), [K, W] = Ze(!1), [q, G] = Ze(!1), re = st([]), [ue, oe] = Ze([]), [pe, De] = Ze(!1);
|
|
26000
26000
|
function he() {
|
|
26001
|
-
re.current.length ===
|
|
26001
|
+
re.current.length === 0 ? (N(null), v([]), P([]), Ne(Dt.FIT), W(!0), u.current?.getValue()?.trim() ? u.current.triggerSearch() : u.current?.clear(), re.current.pop()) : (re.current.pop(), N(re.current[0]));
|
|
26002
26002
|
}
|
|
26003
26003
|
function be(ke) {
|
|
26004
26004
|
re.current.includes(ke) || re.current.push(ke), x && (N([]), v([]), P([])), N(ke), window.mapsindoors.services.LocationsService.getLocations({
|
|
@@ -37545,8 +37545,8 @@ function Rb({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: r, locationId
|
|
|
37545
37545
|
window.mapsindoors.services.AppConfigService.getConfig().then((ht) => (qt(ht), ht)),
|
|
37546
37546
|
// Fetch solution info in order to see what modules are enabled
|
|
37547
37547
|
window.mapsindoors.services.SolutionsService.getSolution().then((ht) => (zn(ht), ht)),
|
|
37548
|
-
// Ensure a minimum waiting time of
|
|
37549
|
-
new Promise((ht) => setTimeout(ht,
|
|
37548
|
+
// Ensure a minimum waiting time of 1 second
|
|
37549
|
+
new Promise((ht) => setTimeout(ht, 1e3))
|
|
37550
37550
|
]).then(([ht, Sn]) => {
|
|
37551
37551
|
ht = ht.map((Fn) => (Fn.image = Sn.venueImages[Fn.name.toLowerCase()], Fn)), Q(ht);
|
|
37552
37552
|
}), C(!1));
|
|
@@ -37838,4 +37838,4 @@ export {
|
|
|
37838
37838
|
F as j,
|
|
37839
37839
|
Ea as u
|
|
37840
37840
|
};
|
|
37841
|
-
//# sourceMappingURL=reactcomponent-
|
|
37841
|
+
//# sourceMappingURL=reactcomponent-Dyc_LGHg.mjs.map
|