@eyeon/threejs-map 1.1.34 → 1.1.35

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.
@@ -2,7 +2,7 @@ import { jsx as V, jsxs as x1, Fragment as T4 } from "react/jsx-runtime";
2
2
  import * as s1 from "react";
3
3
  import J1, { useState as u1, useEffect as g1, useMemo as V1, useCallback as o1, createContext as y6, useContext as e4, useRef as v1, forwardRef as B4, useImperativeHandle as I6, useLayoutEffect as G9, cloneElement as C6, Component as ne, Fragment as t6, useTransition as D9 } from "react";
4
4
  import { useLoader as re, useThree as E6, useFrame as k9, Canvas as oe } from "@react-three/fiber";
5
- import { Loader as ie, FileLoader as ae, Matrix3 as W4, Vector2 as w1, Vector3 as M1, Box2 as qe, ShapeUtils as se, Shape as V9, Path as C3, BufferGeometry as A6, Float32BufferAttribute as E3, SRGBColorSpace as ce, ShapePath as I4, Color as c2, Group as ue, BufferAttribute as me, ExtrudeGeometry as S6, MeshBasicMaterial as y4, DoubleSide as u2, ShapeGeometry as A3, Mesh as j2, CanvasTexture as H9, CurvePath as de, LineCurve3 as fe, TubeGeometry as xe, Raycaster as he, PlaneGeometry as pe, Box3 as W9, PerspectiveCamera as P2, SpriteMaterial as ge, Texture as be, MeshPhongMaterial as _e } from "three";
5
+ import { Loader as ie, FileLoader as ae, Matrix3 as W4, Vector2 as w1, Vector3 as M1, Box2 as qe, ShapeUtils as se, Shape as V9, Path as C3, BufferGeometry as A6, Float32BufferAttribute as E3, SRGBColorSpace as ce, ShapePath as C4, Color as c2, Group as ue, BufferAttribute as me, ExtrudeGeometry as S6, MeshBasicMaterial as I4, DoubleSide as u2, ShapeGeometry as A3, Mesh as j2, CanvasTexture as H9, CurvePath as de, LineCurve3 as fe, TubeGeometry as xe, Raycaster as he, PlaneGeometry as pe, Box3 as W9, PerspectiveCamera as P2, SpriteMaterial as ge, Texture as be, MeshPhongMaterial as _e } from "three";
6
6
  import { useFont as j9, Html as R6, MapControls as ve, Stats as ye } from "@react-three/drei";
7
7
  import U4, { createPortal as Ie } from "react-dom";
8
8
  const Ce = ce;
@@ -96,7 +96,7 @@ class O6 extends ie {
96
96
  g && ($.pop(), $.length > 0 ? M.copy($[$.length - 1]) : M.identity());
97
97
  }
98
98
  function n(R) {
99
- const E = new I4(), g = new w1(), x = new w1(), O = new w1();
99
+ const E = new C4(), g = new w1(), x = new w1(), O = new w1();
100
100
  let X = !0, B = !1;
101
101
  const K = R.getAttribute("d");
102
102
  if (K === "" || K === "none") return null;
@@ -325,7 +325,7 @@ class O6 extends ie {
325
325
  return R * x - E * g < 0 && (B = -B), B;
326
326
  }
327
327
  function a(R) {
328
- const E = f(R.getAttribute("x") || 0), g = f(R.getAttribute("y") || 0), x = f(R.getAttribute("rx") || R.getAttribute("ry") || 0), O = f(R.getAttribute("ry") || R.getAttribute("rx") || 0), X = f(R.getAttribute("width")), B = f(R.getAttribute("height")), K = 1 - 0.551915024494, z = new I4();
328
+ const E = f(R.getAttribute("x") || 0), g = f(R.getAttribute("y") || 0), x = f(R.getAttribute("rx") || R.getAttribute("ry") || 0), O = f(R.getAttribute("ry") || R.getAttribute("rx") || 0), X = f(R.getAttribute("width")), B = f(R.getAttribute("height")), K = 1 - 0.551915024494, z = new C4();
329
329
  return z.moveTo(E + x, g), z.lineTo(E + X - x, g), (x !== 0 || O !== 0) && z.bezierCurveTo(
330
330
  E + X - x * K,
331
331
  g,
@@ -354,7 +354,7 @@ class O6 extends ie {
354
354
  const z = f(B), t1 = f(K);
355
355
  O === 0 ? x.moveTo(z, t1) : x.lineTo(z, t1), O++;
356
356
  }
357
- const g = /([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g, x = new I4();
357
+ const g = /([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g, x = new C4();
358
358
  let O = 0;
359
359
  return R.getAttribute("points").replace(g, E), x.currentPath.autoClose = !0, x;
360
360
  }
@@ -363,24 +363,24 @@ class O6 extends ie {
363
363
  const z = f(B), t1 = f(K);
364
364
  O === 0 ? x.moveTo(z, t1) : x.lineTo(z, t1), O++;
365
365
  }
366
- const g = /([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g, x = new I4();
366
+ const g = /([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g, x = new C4();
367
367
  let O = 0;
368
368
  return R.getAttribute("points").replace(g, E), x.currentPath.autoClose = !1, x;
369
369
  }
370
370
  function u(R) {
371
371
  const E = f(R.getAttribute("cx") || 0), g = f(R.getAttribute("cy") || 0), x = f(R.getAttribute("r") || 0), O = new C3();
372
372
  O.absarc(E, g, x, 0, Math.PI * 2);
373
- const X = new I4();
373
+ const X = new C4();
374
374
  return X.subPaths.push(O), X;
375
375
  }
376
376
  function _(R) {
377
377
  const E = f(R.getAttribute("cx") || 0), g = f(R.getAttribute("cy") || 0), x = f(R.getAttribute("rx") || 0), O = f(R.getAttribute("ry") || 0), X = new C3();
378
378
  X.absellipse(E, g, x, O, 0, Math.PI * 2);
379
- const B = new I4();
379
+ const B = new C4();
380
380
  return B.subPaths.push(X), B;
381
381
  }
382
382
  function A(R) {
383
- const E = f(R.getAttribute("x1") || 0), g = f(R.getAttribute("y1") || 0), x = f(R.getAttribute("x2") || 0), O = f(R.getAttribute("y2") || 0), X = new I4();
383
+ const E = f(R.getAttribute("x1") || 0), g = f(R.getAttribute("y1") || 0), x = f(R.getAttribute("x2") || 0), O = f(R.getAttribute("y2") || 0), X = new C4();
384
384
  return X.moveTo(E, g), X.lineTo(x, O), X.currentPath.autoClose = !1, X;
385
385
  }
386
386
  function v(R, E) {
@@ -6999,16 +6999,17 @@ const Te = {
6999
6999
  SELECTED_ZOOM_LIMIT: 1200,
7000
7000
  CAMERA_MAX_DISTANCE: 2e3,
7001
7001
  CAMERA_MIN_DISTANCE: 300
7002
- }, A4 = {
7002
+ }, _4 = {
7003
7003
  PARKING_LINE_THICKNESS: 0.6,
7004
7004
  PARKING_LINE_COLOR: N1("#DDDDDD"),
7005
7005
  PARKING_ICON_COLOR: N1("#CCCCCC"),
7006
7006
  PARKING_LANE_COLOR: N1("#F6F6F6"),
7007
- GREEN_AREA_COLOR: N1("#C4DDAB")
7007
+ GREEN_AREA_COLOR: N1("#C4DDAB"),
7008
+ WATER_AREA_COLOR: N1("#5cc0f9")
7008
7009
  }, S3 = (e) => ({
7009
7010
  ...e,
7010
- ...A4
7011
- }), v4 = {
7011
+ ..._4
7012
+ }), y4 = {
7012
7013
  MAP_BACKGROUND_COLOR: N1(k1.MAP_BACKGROUND_COLOR),
7013
7014
  HOST: "WEBSITE",
7014
7015
  DEVICE: "desktop",
@@ -7023,7 +7024,7 @@ const Te = {
7023
7024
  STORE_HEIGHT: k1.STORE_HEIGHT,
7024
7025
  WALL_THICKNESS: k1.WALL_THICKNESS,
7025
7026
  BOUNDARY_THICKNESS: k1.BOUNDARY_THICKNESS,
7026
- ...A4,
7027
+ ..._4,
7027
7028
  WALL_COLOR: N1(k1.WALL_COLOR),
7028
7029
  BOUNDARY_COLOR: N1(k1.BOUNDARY_COLOR),
7029
7030
  BASE_COLOR: N1(k1.BASE_COLOR),
@@ -10334,26 +10335,26 @@ const {
10334
10335
  getMapSettings: () => new Promise((i, q) => {
10335
10336
  e("/v1/mapit2/settings").then((a) => {
10336
10337
  var _, A;
10337
- const s = { ...v4 };
10338
+ const s = { ...y4 };
10338
10339
  let c = k1;
10339
10340
  (_ = a == null ? void 0 : a.data) != null && _.settings && (c = (A = a == null ? void 0 : a.data) == null ? void 0 : A.settings, c.MAP_BACKGROUND_COLOR && (s.MAP_BACKGROUND_COLOR = N1(c.MAP_BACKGROUND_COLOR)), c.STORE_DEFAULT_COLOR && (s.STORE_DEFAULT_COLOR = N1(c.STORE_DEFAULT_COLOR)), c.ACCENT_COLOR && (s.ACCENT_COLOR = N1(c.ACCENT_COLOR)), c.BASE_COLOR && (s.BASE_COLOR = N1(c.BASE_COLOR)), c.BOUNDARY_COLOR && (s.BOUNDARY_COLOR = N1(c.BOUNDARY_COLOR)), c.BASE_COLOR && (s.BASE_COLOR = N1(c.BASE_COLOR)), c.WALL_COLOR && (s.WALL_COLOR = N1(c.WALL_COLOR)), c.STORE_TEXT_COLOR && (s.STORE_TEXT_COLOR = N1(c.STORE_TEXT_COLOR)), c.OVERLAY_COLOR && (s.OVERLAY_COLOR = N1(c.OVERLAY_COLOR)), c.BOUNDARY_THICKNESS && (s.BOUNDARY_THICKNESS = c.BOUNDARY_THICKNESS), c.WALL_THICKNESS && (s.WALL_THICKNESS = c.WALL_THICKNESS), c.OVERLAY_OPACITY && (s.OVERLAY_OPACITY = c.OVERLAY_OPACITY), c.KIOSK_SIZE && (s.KIOSK_SIZE = c.KIOSK_SIZE), c.ZOOM_STEP && (s.ZOOM_STEP = c.ZOOM_STEP), c.SELECTED_ZOOM_LIMIT && (s.SELECTED_ZOOM_LIMIT = c.SELECTED_ZOOM_LIMIT), s.CAMERA.minDistance = c.CAMERA_MIN_DISTANCE ? c.CAMERA_MIN_DISTANCE : s.CAMERA.minDistance, s.CAMERA.maxDistance = c.CAMERA_MAX_DISTANCE ? c.CAMERA_MAX_DISTANCE : s.CAMERA.maxDistance, s.CAMERA = { ...s.CAMERA });
10340
10341
  const u = { ...s };
10341
- delete u.DEVICE, delete u.HOST, delete u.PARKING_LINE_COLOR, delete u.PARKING_ICON_COLOR, delete u.PARKING_LANE_COLOR, delete u.GREEN_AREA_COLOR, delete u.PARKING_LINE_THICKNESS, i({
10342
+ delete u.DEVICE, delete u.HOST, delete u.PARKING_LINE_COLOR, delete u.PARKING_ICON_COLOR, delete u.PARKING_LANE_COLOR, delete u.GREEN_AREA_COLOR, delete u.WATER_AREA_COLOR, delete u.PARKING_LINE_THICKNESS, i({
10342
10343
  apiResponse: c,
10343
10344
  responseConfig: u
10344
10345
  });
10345
10346
  }).catch((a) => {
10346
10347
  console.error("Error mapApiService:getMapSettings()", a);
10347
- const { DEVICE: s, HOST: c, PARKING_LINE_COLOR: u, PARKING_ICON_COLOR: _, PARKING_LANE_COLOR: A, GREEN_AREA_COLOR: v, PARKING_LINE_THICKNESS: b, ...h } = v4;
10348
+ const { DEVICE: s, HOST: c, PARKING_LINE_COLOR: u, PARKING_ICON_COLOR: _, PARKING_LANE_COLOR: A, GREEN_AREA_COLOR: v, WATER_AREA_COLOR: b, PARKING_LINE_THICKNESS: h, ...d } = y4;
10348
10349
  i({
10349
10350
  apiResponse: k1,
10350
- responseConfig: h
10351
+ responseConfig: d
10351
10352
  });
10352
10353
  });
10353
10354
  }),
10354
10355
  getMapResponsiveSettings: () => new Promise((i, q) => {
10355
10356
  e("/v1/mapit2/responsive").then((a) => {
10356
- const s = { ...v4.CAMERA_CONTROLS_STATES };
10357
+ const s = { ...y4.CAMERA_CONTROLS_STATES };
10357
10358
  if (a.data)
10358
10359
  if (Array.isArray(a.data)) {
10359
10360
  s.perFloor = s.perFloor || {};
@@ -10363,7 +10364,7 @@ const {
10363
10364
  a.data.display_app && (s.display_app = a.data.display_app), a.data.desktop && (s.desktop = a.data.desktop), a.data.tablet && (s.tablet = a.data.tablet), a.data.mobile && (s.mobile = a.data.mobile), a.data.perFloor && (s.perFloor = a.data.perFloor);
10364
10365
  i(s);
10365
10366
  }).catch((a) => {
10366
- console.error("Error mapApiService:getMapResponsiveSettings()", a), i({ ...v4.CAMERA_CONTROLS_STATES });
10367
+ console.error("Error mapApiService:getMapResponsiveSettings()", a), i({ ...y4.CAMERA_CONTROLS_STATES });
10367
10368
  });
10368
10369
  })
10369
10370
  }), Al = (e) => ({
@@ -10447,7 +10448,7 @@ const {
10447
10448
  };
10448
10449
  }, I5 = y6(void 0), Rl = ({ children: e, initialData: t, mapApiResponseRef: l, cachedMapApiResponse: r, onNewMapApiResponse: n = void 0, rerenderMapOnNewMapApiResponse: o = !1 }) => {
10449
10450
  const i = t.webApiBaseUrl, [q, a] = u1(!1), [s, c] = u1(
10450
- S3({ ...v4, ...t.config })
10451
+ S3({ ...y4, ...t.config })
10451
10452
  ), [u, _] = u1({
10452
10453
  retailers: [],
10453
10454
  globalRetailerIds: [],
@@ -10455,7 +10456,7 @@ const {
10455
10456
  kiosks: [],
10456
10457
  map_objs: [],
10457
10458
  mapSettings: { apiResponse: k1, responseConfig: {} },
10458
- responsiveSettings: v4.CAMERA_CONTROLS_STATES
10459
+ responsiveSettings: y4.CAMERA_CONTROLS_STATES
10459
10460
  });
10460
10461
  l && (l.current = u), g1(() => {
10461
10462
  r && _(r);
@@ -10880,6 +10881,7 @@ const t4 = {
10880
10881
  "building-base": 1,
10881
10882
  base: 2,
10882
10883
  "green-area": 2,
10884
+ "water-area": 2,
10883
10885
  "parking-lane": 2,
10884
10886
  store: 3,
10885
10887
  "big-store": 4,
@@ -10905,7 +10907,7 @@ const t4 = {
10905
10907
  opacity: 1
10906
10908
  };
10907
10909
  (e.STYLE === "2D" || s === "base" || s == null) && s !== "boundary" && (A.depthWrite = !1, A.depthTest = !1), s === "overlay" && (A.color = e.OVERLAY_COLOR, A.opacity = e.OVERLAY_OPACITY), s && ["store", "big-store", "kiosk"].includes(s) && e.HOST !== "PORTAL" && l[c] && l[c].transparent && (A.opacity = 0);
10908
- var v = new y4(A);
10910
+ var v = new I4(A);
10909
10911
  return s && ["store", "big-store", "kiosk", "amenity"].includes(s) && (v.colorDefault = v.color.clone(), l[c] && l[c].bg_color !== "" && (v.color = N1(l[c].bg_color), v.colorDefault = v.color.clone()), v.active = !1), e.HOST !== "PORTAL" && _ && (v.opacity = 0, v.transparent = !0), v.transparent = v.opacity !== 1, v;
10910
10912
  }, [l, e.OVERLAY_COLOR, e.OVERLAY_OPACITY, e.HOST, e.STYLE]), q = o1((s, c, u, _, A) => {
10911
10913
  const v = "MaterialAndGeometry";
@@ -10999,7 +11001,7 @@ const t4 = {
10999
11001
  }
11000
11002
  var S = new xe(C, 400, 6, 8);
11001
11003
  S = new A6().copy(S);
11002
- var N = new y4({
11004
+ var N = new I4({
11003
11005
  map: s(p, y, f),
11004
11006
  transparent: !0,
11005
11007
  side: u2,
@@ -11221,7 +11223,7 @@ const Pl = () => {
11221
11223
  node: new M1(L.x, L.y, 1)
11222
11224
  }), l[j] = q), r.addNode(k, { ...N }), r.addNode(j, { ...L }), r.addLink(k, j, { weight: N.distanceTo(L) }), r.addLink(j, k, { weight: N.distanceTo(L) });
11223
11225
  });
11224
- })) : f.startsWith("escalator-") ? (c = "escalator", v = !1, h = !0) : f.startsWith("kiosk-") ? (c = "kiosk", h = !0) : f.startsWith("amenity-") ? (c = "amenity", h = !0, A = 1) : f.startsWith("overlay") ? c = "overlay" : f.startsWith("special-shape") ? c = "special-shape" : f.startsWith("parking-lane") ? (c = "parking-lane", u = A4.PARKING_LANE_COLOR, e.STYLE === "3D" && (_ = 1)) : f.startsWith("parking-line") ? (c = "parking-line", u = A4.PARKING_LINE_COLOR, d = A4.PARKING_LINE_THICKNESS, e.STYLE === "3D" && (_ = 0.5)) : f.startsWith("parking-icon") ? (c = "parking-icon", u = A4.PARKING_ICON_COLOR, e.STYLE === "3D" && (_ = 1)) : f.startsWith("green-area") ? (c = "green-area", u = A4.GREEN_AREA_COLOR, e.STYLE === "3D" && (_ = 1)) : _ = 1 : console.warn(s + "Layer name is undefined, path", o), {
11226
+ })) : f.startsWith("escalator-") ? (c = "escalator", v = !1, h = !0) : f.startsWith("kiosk-") ? (c = "kiosk", h = !0) : f.startsWith("amenity-") ? (c = "amenity", h = !0, A = 1) : f.startsWith("overlay") ? c = "overlay" : f.startsWith("special-shape") ? c = "special-shape" : f.startsWith("parking-lane") ? (c = "parking-lane", u = _4.PARKING_LANE_COLOR, e.STYLE === "3D" && (_ = 1)) : f.startsWith("parking-line") ? (c = "parking-line", u = _4.PARKING_LINE_COLOR, d = _4.PARKING_LINE_THICKNESS, e.STYLE === "3D" && (_ = 0.5)) : f.startsWith("parking-icon") ? (c = "parking-icon", u = _4.PARKING_ICON_COLOR, e.STYLE === "3D" && (_ = 1)) : f.startsWith("green-area") ? (c = "green-area", u = _4.GREEN_AREA_COLOR, e.STYLE === "3D" && (_ = 1)) : f.startsWith("water-area") ? (c = "water-area", u = _4.WATER_AREA_COLOR, e.STYLE === "3D" && (_ = 1)) : _ = 1 : console.warn(s + "Layer name is undefined, path", o), {
11225
11227
  mesh_type: c,
11226
11228
  layer_color: u,
11227
11229
  extrude: _,
@@ -11362,7 +11364,7 @@ const Ll = (e) => {
11362
11364
  f.width = d.width * d8, f.height = d.height * d8, m == null || m.drawImage(d, 0, 0, f.width, f.height);
11363
11365
  let p = new H9(f);
11364
11366
  p.colorSpace = "srgb";
11365
- const C = new pe(b.size, b.size * d.height / d.width), S = new y4({
11367
+ const C = new pe(b.size, b.size * d.height / d.width), S = new I4({
11366
11368
  map: p,
11367
11369
  transparent: !0,
11368
11370
  side: u2,
@@ -11405,7 +11407,7 @@ const Ll = (e) => {
11405
11407
  depthWrite: !1,
11406
11408
  depthTest: !1
11407
11409
  };
11408
- let l1 = new y4(j), $ = new C5(k, {
11410
+ let l1 = new I4(j), $ = new C5(k, {
11409
11411
  font: y,
11410
11412
  size: parseInt(L.size),
11411
11413
  height: 0.01,
@@ -11516,7 +11518,7 @@ function Dl({ mesh: e }) {
11516
11518
  console.log("NO ROUTE TUBE GEOMETRY INDEX COUNT");
11517
11519
  return;
11518
11520
  }
11519
- if (!(e.material instanceof y4))
11521
+ if (!(e.material instanceof I4))
11520
11522
  return;
11521
11523
  if (!e.material.map) {
11522
11524
  console.log("NO ROUTE TEXTURE");
@@ -11530,7 +11532,7 @@ function Dl({ mesh: e }) {
11530
11532
  a >= 1 && (t.current = n), e.geometry.setDrawRange(0, s);
11531
11533
  };
11532
11534
  })(), n = (() => {
11533
- if (!(e.material instanceof y4) || !e.material.map)
11535
+ if (!(e.material instanceof I4) || !e.material.map)
11534
11536
  return null;
11535
11537
  const i = e.material.map.offset, q = 2e3, a = 0.1, s = 1 + a, c = performance.now();
11536
11538
  return () => {
@@ -11539,7 +11541,7 @@ function Dl({ mesh: e }) {
11539
11541
  };
11540
11542
  })();
11541
11543
  return t.current = r, () => {
11542
- t.current = null, e.removeFromParent(), e.material instanceof y4 && e.material.dispose(), e.geometry && e.geometry.dispose();
11544
+ t.current = null, e.removeFromParent(), e.material instanceof I4 && e.material.dispose(), e.geometry && e.geometry.dispose();
11543
11545
  };
11544
11546
  }, [e]), k9(() => {
11545
11547
  if (t.current)
@@ -11599,7 +11601,7 @@ const kl = "_escalator_elems_1kqb9_1", Vl = "_element_1kqb9_4", Hl = "_svgIcon_1
11599
11601
  f == null ? void 0 : f.map((S) => {
11600
11602
  if (!S.mesh) return null;
11601
11603
  const N = q && S.mesh.visible && v.interactiveObjs && v.interactiveObjs.includes(S.mesh), L = i && S.mesh.object_id === i, k = o && S.mesh.object_id === o;
11602
- if (N && S.mesh.material instanceof y4) {
11604
+ if (N && S.mesh.material instanceof I4) {
11603
11605
  const Q = S.mesh.material.colorDefault;
11604
11606
  if (Q) {
11605
11607
  const j = k ? s.ACCENT_COLOR : Q;
@@ -11868,11 +11870,11 @@ const Jl = B4((e, t) => {
11868
11870
  onChange: Z,
11869
11871
  ref: H,
11870
11872
  maxPolarAngle: Math.PI / 2,
11871
- minDistance: X ? v4.CAMERA.minDistance : J.min,
11872
- maxDistance: X ? v4.CAMERA.maxDistance : J.max,
11873
+ minDistance: X ? y4.CAMERA.minDistance : J.min,
11874
+ maxDistance: X ? y4.CAMERA.maxDistance : J.max,
11873
11875
  enableZoom: l.HOST === "PORTAL" || l.HOST === "DISPLAY_APP" || l.HOST === "WEBSITE" && ["mobile", "tablet"].includes(Y),
11874
11876
  enableRotate: l.HOST !== "WEBSITE" && l.HOST !== "PORTAL_RESPONSIVE" && l.HOST !== "DISPLAY_APP",
11875
- dampingFactor: 0.3
11877
+ enableDamping: !1
11876
11878
  }
11877
11879
  ),
11878
11880
  s && s.map((G, T) => /* @__PURE__ */ V(
@@ -11937,7 +11939,7 @@ const Jl = B4((e, t) => {
11937
11939
  `amenity-${b.name}-${h}`
11938
11940
  ) : null) })
11939
11941
  ] }) });
11940
- }, on = "_mapBoxSidebar_kftp4_1", an = "_active_kftp4_6", qn = "_sidebarWrapper_kftp4_10", sn = "_sidebarBox_kftp4_15", cn = "_mapBox_kftp4_1", un = "_storeNamePlaceholder_kftp4_29", mn = "_stats_kftp4_41", C4 = {
11942
+ }, on = "_mapBoxSidebar_kftp4_1", an = "_active_kftp4_6", qn = "_sidebarWrapper_kftp4_10", sn = "_sidebarBox_kftp4_15", cn = "_mapBox_kftp4_1", un = "_storeNamePlaceholder_kftp4_29", mn = "_stats_kftp4_41", E4 = {
11941
11943
  mapBoxSidebar: on,
11942
11944
  active: an,
11943
11945
  sidebarWrapper: qn,
@@ -12756,20 +12758,20 @@ process.env.NODE_ENV !== "production" && d1.oneOfType([d1.string, d1.shape({
12756
12758
  const z5 = J1.createContext(null);
12757
12759
  var Fn = function(t) {
12758
12760
  return t.scrollTop;
12759
- }, q2 = "unmounted", E4 = "exited", _4 = "entering", S4 = "entered", a6 = "exiting", p4 = /* @__PURE__ */ function(e) {
12761
+ }, q2 = "unmounted", A4 = "exited", v4 = "entering", S4 = "entered", a6 = "exiting", p4 = /* @__PURE__ */ function(e) {
12760
12762
  fn(t, e);
12761
12763
  function t(r, n) {
12762
12764
  var o;
12763
12765
  o = e.call(this, r, n) || this;
12764
12766
  var i = n, q = i && !i.isMounting ? r.enter : r.appear, a;
12765
- return o.appearStatus = null, r.in ? q ? (a = E4, o.appearStatus = _4) : a = S4 : r.unmountOnExit || r.mountOnEnter ? a = q2 : a = E4, o.state = {
12767
+ return o.appearStatus = null, r.in ? q ? (a = A4, o.appearStatus = v4) : a = S4 : r.unmountOnExit || r.mountOnEnter ? a = q2 : a = A4, o.state = {
12766
12768
  status: a
12767
12769
  }, o.nextCallback = null, o;
12768
12770
  }
12769
12771
  t.getDerivedStateFromProps = function(n, o) {
12770
12772
  var i = n.in;
12771
12773
  return i && o.status === q2 ? {
12772
- status: E4
12774
+ status: A4
12773
12775
  } : null;
12774
12776
  };
12775
12777
  var l = t.prototype;
@@ -12779,7 +12781,7 @@ var Fn = function(t) {
12779
12781
  var o = null;
12780
12782
  if (n !== this.props) {
12781
12783
  var i = this.state.status;
12782
- this.props.in ? i !== _4 && i !== S4 && (o = _4) : (i === _4 || i === S4) && (o = a6);
12784
+ this.props.in ? i !== v4 && i !== S4 && (o = v4) : (i === v4 || i === S4) && (o = a6);
12783
12785
  }
12784
12786
  this.updateStatus(!1, o);
12785
12787
  }, l.componentWillUnmount = function() {
@@ -12793,7 +12795,7 @@ var Fn = function(t) {
12793
12795
  };
12794
12796
  }, l.updateStatus = function(n, o) {
12795
12797
  if (n === void 0 && (n = !1), o !== null)
12796
- if (this.cancelNextCallback(), o === _4) {
12798
+ if (this.cancelNextCallback(), o === v4) {
12797
12799
  if (this.props.unmountOnExit || this.props.mountOnEnter) {
12798
12800
  var i = this.props.nodeRef ? this.props.nodeRef.current : U4.findDOMNode(this);
12799
12801
  i && Fn(i);
@@ -12801,7 +12803,7 @@ var Fn = function(t) {
12801
12803
  this.performEnter(n);
12802
12804
  } else
12803
12805
  this.performExit();
12804
- else this.props.unmountOnExit && this.state.status === E4 && this.setState({
12806
+ else this.props.unmountOnExit && this.state.status === A4 && this.setState({
12805
12807
  status: q2
12806
12808
  });
12807
12809
  }, l.performEnter = function(n) {
@@ -12815,7 +12817,7 @@ var Fn = function(t) {
12815
12817
  return;
12816
12818
  }
12817
12819
  this.props.onEnter(s, c), this.safeSetState({
12818
- status: _4
12820
+ status: v4
12819
12821
  }, function() {
12820
12822
  o.props.onEntering(s, c), o.onTransitionEnd(_, function() {
12821
12823
  o.safeSetState({
@@ -12829,7 +12831,7 @@ var Fn = function(t) {
12829
12831
  var n = this, o = this.props.exit, i = this.getTimeouts(), q = this.props.nodeRef ? void 0 : U4.findDOMNode(this);
12830
12832
  if (!o || Q8.disabled) {
12831
12833
  this.safeSetState({
12832
- status: E4
12834
+ status: A4
12833
12835
  }, function() {
12834
12836
  n.props.onExited(q);
12835
12837
  });
@@ -12840,7 +12842,7 @@ var Fn = function(t) {
12840
12842
  }, function() {
12841
12843
  n.props.onExiting(q), n.onTransitionEnd(i.exit, function() {
12842
12844
  n.safeSetState({
12843
- status: E4
12845
+ status: A4
12844
12846
  }, function() {
12845
12847
  n.props.onExited(q);
12846
12848
  });
@@ -13071,8 +13073,8 @@ p4.defaultProps = {
13071
13073
  onExited: X4
13072
13074
  };
13073
13075
  p4.UNMOUNTED = q2;
13074
- p4.EXITED = E4;
13075
- p4.ENTERING = _4;
13076
+ p4.EXITED = A4;
13077
+ p4.ENTERING = v4;
13076
13078
  p4.ENTERED = S4;
13077
13079
  p4.EXITING = a6;
13078
13080
  function Bn(e) {
@@ -13270,7 +13272,7 @@ function $n(e) {
13270
13272
  const Qn = typeof global < "u" && // @ts-ignore
13271
13273
  global.navigator && // @ts-ignore
13272
13274
  global.navigator.product === "ReactNative", Kn = typeof document < "u", t9 = Kn || Qn ? G9 : g1, er = {
13273
- [_4]: "show",
13275
+ [v4]: "show",
13274
13276
  [S4]: "show"
13275
13277
  }, W6 = /* @__PURE__ */ s1.forwardRef(({
13276
13278
  className: e,
@@ -19468,7 +19470,7 @@ const ns = "_sidebarComp_1b6ud_1", rs = "_sidebarFields_1b6ud_2", os = "_tabOpti
19468
19470
  const te = U;
19469
19471
  let I3 = n1, u8 = "";
19470
19472
  return I3 && I3.object_id && (u8 = I3.object_id), /* @__PURE__ */ x1(T4, { children: [
19471
- O.HOST === "PORTAL" && /* @__PURE__ */ V("div", { className: `mapBoxSidebar ${C4.mapBoxSidebar} ${l ? C4.active : ""}`, children: /* @__PURE__ */ V("div", { className: `sidebarWrapper ${C4.sidebarWrapper}`, children: /* @__PURE__ */ V("div", { className: `sidebarBox ${C4.sidebarBox}`, children: l ? /* @__PURE__ */ V(
19473
+ O.HOST === "PORTAL" && /* @__PURE__ */ V("div", { className: `mapBoxSidebar ${E4.mapBoxSidebar} ${l ? E4.active : ""}`, children: /* @__PURE__ */ V("div", { className: `sidebarWrapper ${E4.sidebarWrapper}`, children: /* @__PURE__ */ V("div", { className: `sidebarBox ${E4.sidebarBox}`, children: l ? /* @__PURE__ */ V(
19472
19474
  Es,
19473
19475
  {
19474
19476
  floorIndex: X1,
@@ -19482,7 +19484,7 @@ const ns = "_sidebarComp_1b6ud_1", rs = "_sidebarFields_1b6ud_2", os = "_tabOpti
19482
19484
  triggerSceneUpdate: I1
19483
19485
  }
19484
19486
  ) : null }) }) }),
19485
- /* @__PURE__ */ x1("div", { ref: M, className: `mapBox ${C4.mapBox}`, children: [
19487
+ /* @__PURE__ */ x1("div", { ref: M, className: `mapBox ${E4.mapBox}`, children: [
19486
19488
  /* @__PURE__ */ V(
19487
19489
  rn,
19488
19490
  {
@@ -19497,7 +19499,7 @@ const ns = "_sidebarComp_1b6ud_1", rs = "_sidebarFields_1b6ud_2", os = "_tabOpti
19497
19499
  }
19498
19500
  ),
19499
19501
  /* @__PURE__ */ x1(oe, { style: { position: "absolute", top: 0, left: 0 }, flat: !0, children: [
19500
- Number(O.STATS) ? /* @__PURE__ */ V(ye, { className: C4.stats }) : null,
19502
+ Number(O.STATS) ? /* @__PURE__ */ V(ye, { className: E4.stats }) : null,
19501
19503
  /* @__PURE__ */ V(Bl, { background: O.MAP_BACKGROUND_COLOR }),
19502
19504
  /* @__PURE__ */ V(Gl, { near: 1, far: O.CAMERA.far, fov: O.CAMERA.fov }),
19503
19505
  /* @__PURE__ */ V("ambientLight", { intensity: 4, color: "#c4c4c4" }),
@@ -19539,7 +19541,7 @@ const ns = "_sidebarComp_1b6ud_1", rs = "_sidebarFields_1b6ud_2", os = "_tabOpti
19539
19541
  "div",
19540
19542
  {
19541
19543
  ref: I,
19542
- className: `store-name-placeholder ${C4.storeNamePlaceholder}`,
19544
+ className: `store-name-placeholder ${E4.storeNamePlaceholder}`,
19543
19545
  style: { display: n1 ? "block" : "none" },
19544
19546
  children: n1 && n1.userData.storeName
19545
19547
  }