@mapsindoors/map-template 1.95.9 → 1.96.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/dist/{GoogleMapsMap-CV6Wgkhg.mjs → GoogleMapsMap-Djc1ikuk.mjs} +2 -2
- package/dist/{MapboxMap-EuKWsGtq.mjs → MapboxMap-DAaxTaPv.mjs} +2 -2
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +4 -4
- package/dist/mapsindoors-webcomponent.es.js +10 -8
- package/dist/{reactcomponent-DcNpL3XF.mjs → reactcomponent-BrKMIlVj.mjs} +12 -10
- 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({
|
|
@@ -39221,12 +39221,14 @@ function JD(t, o) {
|
|
|
39221
39221
|
}), s;
|
|
39222
39222
|
}
|
|
39223
39223
|
function dI({ isVisible: t, onClose: o, onSearchResults: s, onShowRoute: c }) {
|
|
39224
|
-
const { t: p } = Xa(), v = Yn(Ud), M = Yn(w2), i = Yn(t1), D = Yn(_p), z = Yn(Uc), B = Ou(), V = De.useRef(null), { getInitialMessage: W, clearInitialMessage: J } = gL(), [ae, xe] = De.useState(!1), Se = dY(B), _e = Se > 0, { generateResponse: te, isLoading: se, searchResults: Ie, directionsLocationIds: ke } = _L(), [le, je] = Li(ML), [Ae, Ge] = Li(fY), [Ee, Pe] = De.useState(
|
|
39224
|
+
const { t: p } = Xa(), v = Yn(Ud), M = Yn(w2), i = Yn(t1), D = Yn(_p), z = Yn(Uc), B = Ou(), V = De.useRef(null), { getInitialMessage: W, clearInitialMessage: J } = gL(), [ae, xe] = De.useState(!1), Se = dY(B), _e = Se > 0, { generateResponse: te, isLoading: se, searchResults: Ie, directionsLocationIds: ke } = _L(), [le, je] = Li(ML), [Ae, Ge] = Li(fY), [Ee, Pe] = De.useState(
|
|
39225
|
+
() => sessionStorage.getItem("chatUsageConsentAccepted") === "true"
|
|
39226
|
+
), [He, Fe] = De.useState(null), [ct, Ot] = De.useState(""), nn = De.useRef(null), de = i && Ae === null && He !== null, we = De.useCallback(() => {
|
|
39225
39227
|
Ge("granted");
|
|
39226
39228
|
}, [Ge]), N = De.useCallback(() => {
|
|
39227
39229
|
Ge("denied");
|
|
39228
39230
|
}, [Ge]), j = De.useCallback(() => {
|
|
39229
|
-
Pe(!0);
|
|
39231
|
+
sessionStorage.setItem("chatUsageConsentAccepted", "true"), Pe(!0);
|
|
39230
39232
|
}, [Pe]), X = De.useCallback(async (ve) => {
|
|
39231
39233
|
try {
|
|
39232
39234
|
console.log("ChatWindow: Fetching full location objects for IDs:", ve);
|
|
@@ -41557,8 +41559,8 @@ function Uk({ apiKey: t, gmApiKey: o, mapboxAccessToken: s, venue: c, locationId
|
|
|
41557
41559
|
window.mapsindoors.services.AppConfigService.getConfig().then((Yi) => (at(Yi), Yi)),
|
|
41558
41560
|
// Fetch solution info in order to see what modules are enabled
|
|
41559
41561
|
window.mapsindoors.services.SolutionsService.getSolution().then((Yi) => (it(Yi), Yi)),
|
|
41560
|
-
// Ensure a minimum waiting time of
|
|
41561
|
-
new Promise((Yi) => setTimeout(Yi,
|
|
41562
|
+
// Ensure a minimum waiting time of 1 second
|
|
41563
|
+
new Promise((Yi) => setTimeout(Yi, 1e3))
|
|
41562
41564
|
]).then(([Yi, vs]) => {
|
|
41563
41565
|
Yi = Yi.map((fa) => (fa.image = vs.venueImages[fa.name.toLowerCase()], fa)), Oe(Yi);
|
|
41564
41566
|
}), 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-DAaxTaPv.mjs")), Cz = Iy(() => import("./GoogleMapsMap-Djc1ikuk.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({
|
|
@@ -35209,12 +35209,14 @@ function ZM(e, t) {
|
|
|
35209
35209
|
}), n;
|
|
35210
35210
|
}
|
|
35211
35211
|
function i0({ isVisible: e, onClose: t, onSearchResults: n, onShowRoute: r }) {
|
|
35212
|
-
const { t: i } = In(), o = Se(jr), s = Se(Dc), l = Se(hs), u = Se(qr), f = Se(rr), g = $n(), p = st(null), { getInitialMessage: v, clearInitialMessage: w } = d6(), [I, _] = Ze(!1), U = W_(g), E = U > 0, { generateResponse: x, isLoading: N, searchResults: k, directionsLocationIds: L } = g6(), [D, B] = Ge(v6), [P, Z] = Ge(G_), [R, $] = Ze(
|
|
35212
|
+
const { t: i } = In(), o = Se(jr), s = Se(Dc), l = Se(hs), u = Se(qr), f = Se(rr), g = $n(), p = st(null), { getInitialMessage: v, clearInitialMessage: w } = d6(), [I, _] = Ze(!1), U = W_(g), E = U > 0, { generateResponse: x, isLoading: N, searchResults: k, directionsLocationIds: L } = g6(), [D, B] = Ge(v6), [P, Z] = Ge(G_), [R, $] = Ze(
|
|
35213
|
+
() => sessionStorage.getItem("chatUsageConsentAccepted") === "true"
|
|
35214
|
+
), [V, H] = Ze(null), [ee, fe] = Ze(""), xe = st(null), A = l && P === null && V !== null, z = vn(() => {
|
|
35213
35215
|
Z("granted");
|
|
35214
35216
|
}, [Z]), d = vn(() => {
|
|
35215
35217
|
Z("denied");
|
|
35216
35218
|
}, [Z]), h = vn(() => {
|
|
35217
|
-
$(!0);
|
|
35219
|
+
sessionStorage.setItem("chatUsageConsentAccepted", "true"), $(!0);
|
|
35218
35220
|
}, [$]), b = vn(async (T) => {
|
|
35219
35221
|
try {
|
|
35220
35222
|
console.log("ChatWindow: Fetching full location objects for IDs:", T);
|
|
@@ -37545,8 +37547,8 @@ function Rb({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: r, locationId
|
|
|
37545
37547
|
window.mapsindoors.services.AppConfigService.getConfig().then((ht) => (qt(ht), ht)),
|
|
37546
37548
|
// Fetch solution info in order to see what modules are enabled
|
|
37547
37549
|
window.mapsindoors.services.SolutionsService.getSolution().then((ht) => (zn(ht), ht)),
|
|
37548
|
-
// Ensure a minimum waiting time of
|
|
37549
|
-
new Promise((ht) => setTimeout(ht,
|
|
37550
|
+
// Ensure a minimum waiting time of 1 second
|
|
37551
|
+
new Promise((ht) => setTimeout(ht, 1e3))
|
|
37550
37552
|
]).then(([ht, Sn]) => {
|
|
37551
37553
|
ht = ht.map((Fn) => (Fn.image = Sn.venueImages[Fn.name.toLowerCase()], Fn)), Q(ht);
|
|
37552
37554
|
}), C(!1));
|
|
@@ -37838,4 +37840,4 @@ export {
|
|
|
37838
37840
|
F as j,
|
|
37839
37841
|
Ea as u
|
|
37840
37842
|
};
|
|
37841
|
-
//# sourceMappingURL=reactcomponent-
|
|
37843
|
+
//# sourceMappingURL=reactcomponent-BrKMIlVj.mjs.map
|