@expofp/floorplan 3.2.13 → 3.2.15
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/browser/CookieConsent-Dae_Y5BJ.js +71 -0
- package/dist/browser/{Debug-DGpD6gi3.js → Debug-bswylrH2.js} +7 -7
- package/dist/browser/{Demo-D58NFoyc.js → Demo-Bk-80OvM.js} +9 -9
- package/dist/browser/{Free-0cQAwFKa.js → Free-BpAyC_92.js} +9 -9
- package/dist/browser/{Gallery-CPVZPQ00.js → Gallery-Cbp4RpXi.js} +608 -642
- package/dist/browser/{GpsLoader-qwW4aTNa.js → GpsLoader-eZj9tBQe.js} +41 -40
- package/dist/browser/{KioskStore-IujhAAGe.js → KioskStore-_SCgPIgh.js} +62 -62
- package/dist/browser/{Mapbox-BEIVuKI-.js → Mapbox-BGYasjkn.js} +38 -38
- package/dist/browser/Modal-vg_G_kdG.js +105 -0
- package/dist/browser/{SetKioskMode-DlUxPyq5.js → SetKioskMode-BLpVUtjo.js} +8 -8
- package/dist/browser/{ShowKiosk-DzPcuttS.js → ShowKiosk-DtkYNvwf.js} +10 -10
- package/dist/browser/{ThreeComponent-D7GyVwct.js → ThreeComponent-Dj2UW0ZG.js} +251 -251
- package/dist/browser/{TouchHand-DUyEIum1.js → TouchHand-BRrA4ToI.js} +15 -14
- package/dist/browser/{ViewerMenuPanel-DQds_0Se.js → ViewerMenuPanel-D_mwk9-v.js} +21 -21
- package/dist/browser/{add-debug-secret-listener-BoLrZL18.js → add-debug-secret-listener-lt3Ldih0.js} +1 -1
- package/dist/browser/{boolean-editor-D439oELN.js → boolean-editor-P2t_i735.js} +12 -12
- package/dist/browser/{bootIntercom-C0fIuZrS.js → bootIntercom-Y7Rt9tpe.js} +3 -3
- package/dist/browser/{box-DQ37DLtr.js → box-BVQN1PiO.js} +16 -16
- package/dist/browser/{browser-BWeq0ALX.js → browser-KjAO0dHT.js} +2 -2
- package/dist/browser/bundle.json +65 -53
- package/dist/browser/{classnames-BqhGxx8b.js → classnames-BqJalg-Q.js} +2 -2
- package/dist/browser/{client-DpMmqnL3.js → client-BGPoeGx3.js} +5 -5
- package/dist/browser/{CookieConsent-l5gCtFOx.js → components-CgzWABt2.js} +1904 -1994
- package/dist/browser/{data-BGGzJSZ3.js → data-skwk1u79.js} +53 -55
- package/dist/browser/{debug-overlay-DyHs08sf.js → debug-overlay-DCbIKiXk.js} +26 -26
- package/dist/browser/{debug-ui-Ds2r10P8.js → debug-ui-D-W370eg.js} +7 -7
- package/dist/browser/{dist-C8-R05Uf.js → dist-DCpIeA0L.js} +11 -11
- package/dist/browser/{dist-CXnrXk8a.js → dist-DNiyzclY.js} +5 -5
- package/dist/browser/{dist-DeJCQ-ni.js → dist-DlflAB4U.js} +6 -6
- package/dist/browser/{efp-debug-init-BAaVZ-Sv.js → efp-debug-init-DhEyPlIF.js} +3 -3
- package/dist/browser/{enum-editor-bO-7z_65.js → enum-editor-Lkwuqlnb.js} +14 -14
- package/dist/browser/{exports-DuxaY9F1.js → exports-CcL9FNnp.js} +254 -197
- package/dist/browser/{favicon-BiX13mYV.js → favicon-COEqU9sn.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BxHhVEQ9.js → fetch-retry.umd-BZuDHgV0.js} +2 -2
- package/dist/browser/{flex-DznufWy4.js → flex-BY1B51-2.js} +8 -8
- package/dist/browser/{flex.props-CBBCApDT.js → flex.props-Dv-tEl54.js} +4 -4
- package/dist/browser/{floorplan.loader-CYCz53F2.js → floorplan.loader-DLVjZBwm.js} +998 -829
- package/dist/browser/{floorplan.ready-t0OqKoP2.js → floorplan.ready-DuwKXwkl.js} +105 -105
- package/dist/browser/{fuse-2x0Yl6bu.js → fuse-CYDYMWQ6.js} +2 -2
- package/dist/browser/{is-debug-Dj3mKaHR.js → i18n-CP_v4NP8.js} +774 -883
- package/dist/browser/index.js +12 -12
- package/dist/browser/is-debug-DX-JKVOb.js +122 -0
- package/dist/browser/{jsx-runtime-DS_WWXud.js → jsx-runtime-GedjzT5I.js} +2 -2
- package/dist/browser/{lib-Bt7PWtNh.js → lib-BC_h9VBA.js} +5 -5
- package/dist/browser/{main-DK2hJr48.js → main-n6nfwV4g.js} +1 -1
- package/dist/browser/{mobx-BcjkYuCb.js → mobx-CekPL2_6.js} +5 -5
- package/dist/browser/{particles.min-BGHzdrAw.js → particles.min-DJ82z7qx.js} +2 -2
- package/dist/browser/{prop-types-DwnAO0Yi.js → prop-types-DkApiaaC.js} +2 -2
- package/dist/browser/{react-dom-D8AyYBO2.js → react-dom-DkrEia96.js} +3 -3
- package/dist/browser/{react-DddeiwYl.js → react-rZ_JGNQ0.js} +2 -2
- package/dist/browser/{reset-all-settings-BMiI_ZFm.js → reset-all-settings-B_HmwZyi.js} +8 -8
- package/dist/browser/{rolldown-runtime-DaP-Mfpn.js → rolldown-runtime-CjpvzON0.js} +1 -1
- package/dist/browser/{settings-Bbym8GNQ.js → settings-DhK6N0bU.js} +2 -2
- package/dist/browser/{settings-item-D8MTM1Pj.js → settings-item-B2U6kpeM.js} +8 -8
- package/dist/browser/{store-nbxV99WZ.js → store-Bu3dElQ9.js} +5559 -5554
- package/dist/browser/{string-editor-BSj1Zdr7.js → string-editor-DB2Bv9YQ.js} +10 -10
- package/dist/browser/{theme-Bo2UyA3Q.js → theme-ybZBBTOS.js} +29 -29
- package/dist/browser/{ui-C5q_HiUr.js → ui-CU_2TUl4.js} +9 -9
- package/dist/browser/useRenderTarget-CakmKdKK.js +48 -0
- package/dist/esm/components/AlertContainer.d.ts +5 -0
- package/dist/esm/components/AlertContainer.js +1 -0
- package/dist/esm/components/Booth/Booth.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/EntityItem.d.ts +1 -0
- package/dist/esm/components/EntityItem.js +1 -1
- package/dist/esm/components/EntityItemContainer.d.ts +5 -0
- package/dist/esm/components/EntityItemContainer.js +1 -0
- package/dist/esm/components/EntityList.js +1 -1
- package/dist/esm/components/EntityListRow.js +1 -1
- package/dist/esm/components/Event.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/GlobalErrorMessage.js +1 -1
- package/dist/esm/components/HighlightTextContainer.d.ts +6 -0
- package/dist/esm/components/HighlightTextContainer.js +1 -0
- package/dist/esm/components/Kiosk/KioskStore.d.ts +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +2 -2
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/LanguageRow.js +1 -1
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/List.js +1 -1
- package/dist/esm/components/LogoOverlay.d.ts +0 -1
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/components/Modal.d.ts +2 -1
- package/dist/esm/components/Modal.js +1 -1
- package/dist/esm/components/Overlay.d.ts +1 -0
- package/dist/esm/components/Overlay.js +1 -1
- package/dist/esm/components/OverlayContainer.js +1 -1
- package/dist/esm/components/PermissionNotice/PermissionNotice.js +1 -1
- package/dist/esm/components/RebookingNotes.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
- package/dist/esm/components/SidebarActions.js +1 -1
- package/dist/esm/components/SimpleRow.js +1 -1
- package/dist/esm/components/Speakers.js +1 -1
- package/dist/esm/components/ToursList.js +1 -1
- package/dist/esm/components/Wayfinding.js +1 -1
- package/dist/esm/components/WayfindingFloorSelectorContainer.d.ts +5 -0
- package/dist/esm/components/WayfindingFloorSelectorContainer.js +1 -0
- package/dist/esm/components/WayfindingTemplate.d.ts +6 -8
- package/dist/esm/components/WayfindingTemplate.js +1 -1
- package/dist/esm/components/index.d.ts +22 -22
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/stories/CookieConsent.stories.js +1 -1
- package/dist/esm/components/stories/Modal.stories.d.ts +5 -0
- package/dist/esm/components/stories/Modal.stories.js +1 -0
- package/dist/esm/components/stories/Share.stories.d.ts +5 -0
- package/dist/esm/components/stories/Share.stories.js +1 -0
- package/dist/esm/components/stories/{CheckboxButton.stories.d.ts → WayInformation.stories.d.ts} +1 -1
- package/dist/esm/components/stories/WayfindingTemplate.stories.d.ts +5 -0
- package/dist/esm/components/stories/WayfindingTemplate.stories.js +1 -0
- package/dist/esm/store/RoutePlannerStore.d.ts +1 -1
- package/dist/esm/store/RoutePlannerStore.js +1 -1
- package/dist/esm/store/ToursStore.js +1 -1
- package/dist/esm/storybook/store/index.stub.d.ts +4 -0
- package/dist/esm/storybook/store/index.stub.js +1 -1
- package/dist/esm/{components → ui/Alert}/Alert.d.ts +3 -3
- package/dist/esm/ui/Alert/Alert.js +1 -0
- package/dist/esm/{components/stories → ui/Alert}/Alert.stories.d.ts +1 -1
- package/dist/esm/ui/Alert/Alert.stories.js +1 -0
- package/dist/esm/ui/Alert/index.d.ts +3 -0
- package/dist/esm/ui/Alert/index.js +1 -0
- package/dist/esm/{components → ui/Badge}/Badge.d.ts +1 -2
- package/dist/esm/ui/Badge/Badge.stories.d.ts +5 -0
- package/dist/esm/ui/Badge/Badge.stories.js +1 -0
- package/dist/esm/ui/Badge/index.d.ts +3 -0
- package/dist/esm/ui/Badge/index.js +1 -0
- package/dist/esm/{components → ui/Button}/Button.d.ts +2 -2
- package/dist/esm/ui/Button/Button.js +1 -0
- package/dist/esm/ui/Button/Button.stories.d.ts +5 -0
- package/dist/esm/ui/Button/Button.stories.js +1 -0
- package/dist/esm/ui/Button/index.d.ts +3 -0
- package/dist/esm/ui/Button/index.js +1 -0
- package/dist/esm/ui/Checkbox/Checkbox.d.ts +18 -0
- package/dist/esm/ui/Checkbox/Checkbox.js +1 -0
- package/dist/esm/ui/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/esm/ui/Checkbox/Checkbox.stories.js +1 -0
- package/dist/esm/ui/Checkbox/index.d.ts +3 -0
- package/dist/esm/ui/Checkbox/index.js +1 -0
- package/dist/esm/ui/CheckboxButton/CheckboxButton.d.ts +11 -0
- package/dist/esm/ui/CheckboxButton/CheckboxButton.js +1 -0
- package/dist/esm/ui/CheckboxButton/CheckboxButton.stories.d.ts +5 -0
- package/dist/esm/ui/CheckboxButton/CheckboxButton.stories.js +1 -0
- package/dist/esm/ui/CheckboxButton/index.d.ts +3 -0
- package/dist/esm/ui/CheckboxButton/index.js +1 -0
- package/dist/esm/ui/HighlightText/HighlightText.d.ts +6 -0
- package/dist/esm/ui/HighlightText/HighlightText.js +1 -0
- package/dist/esm/ui/HighlightText/HighlightText.stories.d.ts +7 -0
- package/dist/esm/ui/HighlightText/HighlightText.stories.js +1 -0
- package/dist/esm/ui/HighlightText/index.d.ts +2 -0
- package/dist/esm/ui/HighlightText/index.js +1 -0
- package/dist/esm/ui/Radio/Radio.d.ts +14 -0
- package/dist/esm/ui/Radio/Radio.js +1 -0
- package/dist/esm/ui/Radio/Radio.stories.d.ts +18 -0
- package/dist/esm/ui/Radio/Radio.stories.js +1 -0
- package/dist/esm/ui/Radio/index.d.ts +3 -0
- package/dist/esm/ui/Radio/index.js +1 -0
- package/dist/esm/ui/Spinner/Spinner.d.ts +8 -0
- package/dist/esm/ui/Spinner/Spinner.js +1 -0
- package/dist/esm/ui/Spinner/Spinner.stories.d.ts +5 -0
- package/dist/esm/ui/Spinner/Spinner.stories.js +1 -0
- package/dist/esm/ui/Spinner/index.d.ts +3 -0
- package/dist/esm/ui/Spinner/index.js +1 -0
- package/dist/esm/ui/ToggleButton/ToggleButton.d.ts +16 -0
- package/dist/esm/ui/ToggleButton/ToggleButton.js +1 -0
- package/dist/esm/ui/ToggleButton/ToggleButton.stories.d.ts +5 -0
- package/dist/esm/ui/ToggleButton/ToggleButton.stories.js +1 -0
- package/dist/esm/ui/ToggleButton/index.d.ts +3 -0
- package/dist/esm/ui/ToggleButton/index.js +1 -0
- package/dist/esm/ui/ToggleSwitch/ToggleSwitch.d.ts +17 -0
- package/dist/esm/ui/ToggleSwitch/ToggleSwitch.js +1 -0
- package/dist/esm/ui/ToggleSwitch/ToggleSwitch.stories.d.ts +5 -0
- package/dist/esm/ui/ToggleSwitch/ToggleSwitch.stories.js +1 -0
- package/dist/esm/ui/ToggleSwitch/index.d.ts +3 -0
- package/dist/esm/ui/ToggleSwitch/index.js +1 -0
- package/dist/esm/ui/TouchHand/TouchHand.d.ts +4 -0
- package/dist/esm/ui/TouchHand/TouchHand.js +1 -0
- package/dist/esm/ui/TouchHand/TouchHand.stories.d.ts +5 -0
- package/dist/esm/ui/TouchHand/TouchHand.stories.js +1 -0
- package/dist/esm/ui/TouchHand/index.d.ts +2 -0
- package/dist/esm/ui/TouchHand/index.js +1 -0
- package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.d.ts +23 -0
- package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.js +1 -0
- package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.stories.d.ts +5 -0
- package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.stories.js +1 -0
- package/dist/esm/ui/WayfindingFloorSelector/index.d.ts +3 -0
- package/dist/esm/ui/WayfindingFloorSelector/index.js +1 -0
- package/package.json +10 -10
- package/dist/esm/components/Alert.js +0 -1
- package/dist/esm/components/Button.js +0 -1
- package/dist/esm/components/Checkbox.d.ts +0 -13
- package/dist/esm/components/Checkbox.js +0 -1
- package/dist/esm/components/CheckboxButton.d.ts +0 -11
- package/dist/esm/components/CheckboxButton.js +0 -1
- package/dist/esm/components/HighlightText.d.ts +0 -6
- package/dist/esm/components/HighlightText.js +0 -1
- package/dist/esm/components/LayersLoading.d.ts +0 -9
- package/dist/esm/components/LayersLoading.js +0 -1
- package/dist/esm/components/Radio.d.ts +0 -12
- package/dist/esm/components/Radio.js +0 -1
- package/dist/esm/components/ToggleButton.d.ts +0 -11
- package/dist/esm/components/ToggleButton.js +0 -1
- package/dist/esm/components/ToggleSwitch.d.ts +0 -12
- package/dist/esm/components/ToggleSwitch.js +0 -1
- package/dist/esm/components/TouchHand.d.ts +0 -4
- package/dist/esm/components/TouchHand.js +0 -1
- package/dist/esm/components/WayfindingFloorSelector.d.ts +0 -21
- package/dist/esm/components/WayfindingFloorSelector.js +0 -1
- package/dist/esm/components/stories/Alert.stories.js +0 -1
- package/dist/esm/components/stories/Badge.stories.d.ts +0 -5
- package/dist/esm/components/stories/Badge.stories.js +0 -1
- package/dist/esm/components/stories/Button.stories.d.ts +0 -5
- package/dist/esm/components/stories/Button.stories.js +0 -1
- package/dist/esm/components/stories/Checkbox.stories.d.ts +0 -5
- package/dist/esm/components/stories/Checkbox.stories.js +0 -1
- package/dist/esm/components/stories/CheckboxButton.stories.js +0 -1
- package/dist/esm/components/stories/Loading.stories.d.ts +0 -5
- package/dist/esm/components/stories/Loading.stories.js +0 -1
- package/dist/esm/components/stories/Modal.storiesss.d.ts +0 -5
- package/dist/esm/components/stories/Modal.storiesss.js +0 -1
- package/dist/esm/components/stories/Radio.stories.d.ts +0 -10
- package/dist/esm/components/stories/Radio.stories.js +0 -1
- package/dist/esm/components/stories/Share.storiesSS.d.ts +0 -5
- package/dist/esm/components/stories/Share.storiesSS.js +0 -1
- package/dist/esm/components/stories/ToggleButton.stories.d.ts +0 -5
- package/dist/esm/components/stories/ToggleButton.stories.js +0 -1
- package/dist/esm/components/stories/ToggleSwitch.stories.d.ts +0 -5
- package/dist/esm/components/stories/ToggleSwitch.stories.js +0 -1
- package/dist/esm/components/stories/TouchHand.stories.d.ts +0 -5
- package/dist/esm/components/stories/TouchHand.stories.js +0 -1
- package/dist/esm/components/stories/WayInformation.storiesss.d.ts +0 -5
- package/dist/esm/components/stories/WayfindingFloorSelector.storiesss.d.ts +0 -5
- package/dist/esm/components/stories/WayfindingFloorSelector.storiesss.js +0 -1
- package/dist/esm/components/stories/WayfindingTemplate.storiesss.d.ts +0 -5
- package/dist/esm/components/stories/WayfindingTemplate.storiesss.js +0 -1
- /package/dist/esm/components/stories/{WayInformation.storiesss.js → WayInformation.stories.js} +0 -0
- /package/dist/esm/{components → ui/Badge}/Badge.js +0 -0
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.2.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.2.15" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "2f32bf94-22a1-4907-9dd5-c75a15fcf2a2", e._sentryDebugIdIdentifier = "sentry-dbid-2f32bf94-22a1-4907-9dd5-c75a15fcf2a2");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { n as d } from "./CookieConsent-
|
|
15
|
-
import { r as f } from "./mobx-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-CjpvzON0.js";
|
|
10
|
+
import { t } from "./react-rZ_JGNQ0.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-GedjzT5I.js";
|
|
12
|
+
import { K as r, s as i, st as a } from "./i18n-CP_v4NP8.js";
|
|
13
|
+
import { Qn as o, St as s, j as c, o as l, ot as u } from "./store-Bu3dElQ9.js";
|
|
14
|
+
import { n as d } from "./CookieConsent-Dae_Y5BJ.js";
|
|
15
|
+
import { r as f } from "./mobx-CekPL2_6.js";
|
|
16
|
+
import "./components-CgzWABt2.js";
|
|
16
17
|
//#region src/components/gps/utils.ts
|
|
17
18
|
var p = /* @__PURE__ */ e(t(), 1);
|
|
18
19
|
function m(e) {
|
|
@@ -25,30 +26,30 @@ function h(e, t) {
|
|
|
25
26
|
//#region src/components/gps/useUserLocationAndHeading.ts
|
|
26
27
|
var g = 120, _ = 3e3, v = 360;
|
|
27
28
|
function y(e) {
|
|
28
|
-
let t = (0, p.useRef)(null), n = (0, p.useRef)(null),
|
|
29
|
+
let t = (0, p.useRef)(null), n = (0, p.useRef)(null), r = (0, p.useRef)(0), i = (0, p.useRef)(null), o = (0, p.useRef)(!1), s = (0, p.useRef)(null), c = (0, p.useRef)(!1), l = (0, p.useRef)(null), d = (t) => e(t), f = (e) => {
|
|
29
30
|
let t = Date.now();
|
|
30
|
-
if (t -
|
|
31
|
-
let n =
|
|
31
|
+
if (t - r.current < g) return;
|
|
32
|
+
let n = i.current;
|
|
32
33
|
if (!s.current) {
|
|
33
|
-
s.current = e,
|
|
34
|
+
s.current = e, r.current = t, i.current = e, d(e);
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
|
-
let
|
|
37
|
-
c.current ?
|
|
37
|
+
let a = u(s.current.lat, s.current.lng, e.lat, e.lng), o;
|
|
38
|
+
c.current ? a <= 3 ? (c.current = !1, s.current = e, o = {
|
|
38
39
|
...s.current,
|
|
39
40
|
heading: e.heading
|
|
40
|
-
}) : (s.current = e, o = e) :
|
|
41
|
+
}) : (s.current = e, o = e) : a >= 3 ? (c.current = !0, s.current = e, l.current = null, o = e) : (l.current == null && (l.current = t), t - l.current > _ && (s.current = e), o = {
|
|
41
42
|
...s.current,
|
|
42
43
|
heading: e.heading
|
|
43
|
-
}), !(n && !h(n, o)) && (
|
|
44
|
+
}), !(n && !h(n, o)) && (r.current = t, i.current = o, d(o));
|
|
44
45
|
}, y = (0, p.useCallback)((e) => {
|
|
45
46
|
var t;
|
|
46
47
|
let r = (t = e.webkitCompassHeading) == null ? e.alpha == null ? null : v - e.alpha : t;
|
|
47
48
|
if (r == null) return;
|
|
48
|
-
let
|
|
49
|
-
n.current !==
|
|
50
|
-
...
|
|
51
|
-
heading:
|
|
49
|
+
let a = m(r);
|
|
50
|
+
n.current !== a && (n.current = a, i.current && f({
|
|
51
|
+
...i.current,
|
|
52
|
+
heading: a
|
|
52
53
|
}));
|
|
53
54
|
}, [e]);
|
|
54
55
|
return {
|
|
@@ -59,7 +60,7 @@ function y(e) {
|
|
|
59
60
|
lng: e.coords.longitude,
|
|
60
61
|
heading: n.current
|
|
61
62
|
});
|
|
62
|
-
}, (e) =>
|
|
63
|
+
}, (e) => a.warn("Geolocation watch error:", e), {
|
|
63
64
|
enableHighAccuracy: !0,
|
|
64
65
|
maximumAge: 0
|
|
65
66
|
}));
|
|
@@ -77,24 +78,24 @@ function y(e) {
|
|
|
77
78
|
}
|
|
78
79
|
//#endregion
|
|
79
80
|
//#region src/components/gps/GpsPermissionRequest.tsx
|
|
80
|
-
var b = n(), x =
|
|
81
|
+
var b = n(), x = o(function({ isOpen: e, onAllow: t, onCancel: n }) {
|
|
81
82
|
return e ? /* @__PURE__ */ (0, b.jsx)(d, {
|
|
82
|
-
title:
|
|
83
|
-
acceptText:
|
|
84
|
-
rejectText:
|
|
83
|
+
title: i("Show your position on the map"),
|
|
84
|
+
acceptText: i("Allow compass access"),
|
|
85
|
+
rejectText: i("Not now"),
|
|
85
86
|
onClickAccept: t,
|
|
86
87
|
onClickReject: n,
|
|
87
|
-
children:
|
|
88
|
+
children: i("To display your current position and orient the map around you, we’ll ask for permission to access your device orientation")
|
|
88
89
|
}) : null;
|
|
89
90
|
});
|
|
90
91
|
//#endregion
|
|
91
92
|
//#region src/components/gps/GpsManager.tsx
|
|
92
|
-
function S({ onPositionUpdate: e, onAllowCompass: t, onRejectCompass: n, orientationStorageKey:
|
|
93
|
+
function S({ onPositionUpdate: e, onAllowCompass: t, onRejectCompass: n, orientationStorageKey: r = "compass-permission-granted", requestCompass: i = !0, requestCompassAllowed: o = !0 }) {
|
|
93
94
|
let { startOrientation: c, startGeolocation: l, stopOrientation: u, stopGeolocation: d } = y(e), [f, m] = (0, p.useState)(!1), [h, g] = (0, p.useState)(!1);
|
|
94
95
|
(0, p.useEffect)(() => (navigator.geolocation.getCurrentPosition(() => {
|
|
95
96
|
m(!0), l();
|
|
96
97
|
}, (e) => {
|
|
97
|
-
|
|
98
|
+
a.warn("Geolocation error:", e), m(!1);
|
|
98
99
|
}), () => {
|
|
99
100
|
u(), d();
|
|
100
101
|
}), [
|
|
@@ -103,22 +104,22 @@ function S({ onPositionUpdate: e, onAllowCompass: t, onRejectCompass: n, orienta
|
|
|
103
104
|
u
|
|
104
105
|
]);
|
|
105
106
|
let _ = async () => {
|
|
106
|
-
typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(
|
|
107
|
+
typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(r, "true"), c(), g(!1), t == null || t());
|
|
107
108
|
}, v = (0, p.useCallback)(() => {
|
|
108
|
-
localStorage.setItem(
|
|
109
|
+
localStorage.setItem(r, "false"), g(!1), n == null || n();
|
|
109
110
|
}, [n]);
|
|
110
111
|
return (0, p.useEffect)(() => {
|
|
111
|
-
if (!f || !
|
|
112
|
-
let e = localStorage.getItem(
|
|
113
|
-
if (!e ||
|
|
112
|
+
if (!f || !o || typeof navigator > "u" || !s) return;
|
|
113
|
+
let e = localStorage.getItem(r);
|
|
114
|
+
if (!e || i) {
|
|
114
115
|
g(!0);
|
|
115
116
|
return;
|
|
116
117
|
}
|
|
117
118
|
e === "true" && _();
|
|
118
119
|
}, [
|
|
119
120
|
f,
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
i,
|
|
122
|
+
o,
|
|
122
123
|
_
|
|
123
124
|
]), /* @__PURE__ */ (0, b.jsx)(x, {
|
|
124
125
|
isOpen: h,
|
|
@@ -129,8 +130,8 @@ function S({ onPositionUpdate: e, onAllowCompass: t, onRejectCompass: n, orienta
|
|
|
129
130
|
//#endregion
|
|
130
131
|
//#region src/components/GpsLoader.tsx
|
|
131
132
|
function C({ requestCompassAllowed: e }) {
|
|
132
|
-
let [t, n] = (0, p.useState)(!1),
|
|
133
|
-
l.routeStore.selectCurrentPosition(new
|
|
133
|
+
let [t, n] = (0, p.useState)(!1), i = (0, p.useCallback)(({ lat: e, lng: t, angle: n, heading: r }) => {
|
|
134
|
+
l.routeStore.selectCurrentPosition(new c(0, 0, 0, n || r, e, t), !1);
|
|
134
135
|
}, []), a = (0, p.useCallback)(() => {
|
|
135
136
|
l.routeStore.requestCompass = void 0, n(!1);
|
|
136
137
|
}, [n]), o = (0, p.useCallback)(() => {
|
|
@@ -145,8 +146,8 @@ function C({ requestCompassAllowed: e }) {
|
|
|
145
146
|
requestCompassAllowed: e,
|
|
146
147
|
onRejectCompass: a,
|
|
147
148
|
onAllowCompass: o,
|
|
148
|
-
orientationStorageKey:
|
|
149
|
-
onPositionUpdate:
|
|
149
|
+
orientationStorageKey: r,
|
|
150
|
+
onPositionUpdate: i
|
|
150
151
|
});
|
|
151
152
|
}
|
|
152
153
|
//#endregion
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.2.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.2.15" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "f4e2f61e-d13c-4ac6-ba84-bdce8bae792d", e._sentryDebugIdIdentifier = "sentry-dbid-f4e2f61e-d13c-4ac6-ba84-bdce8bae792d");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import {
|
|
10
|
-
import { D as o, E as s,
|
|
9
|
+
import { _ as e, f as t, h as n, s as r, u as i, y as a } from "./i18n-CP_v4NP8.js";
|
|
10
|
+
import { D as o, E as s, O as c, Pt as l, ht as u, o as d } from "./store-Bu3dElQ9.js";
|
|
11
11
|
//#region src/components/Map/pointInConvexQuad.ts
|
|
12
12
|
function f(e, t) {
|
|
13
13
|
let n = 0;
|
|
@@ -24,31 +24,31 @@ function f(e, t) {
|
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/components/Map/visibleArea.ts
|
|
26
26
|
function p(e) {
|
|
27
|
-
let t =
|
|
27
|
+
let t = l(e.viewport.canvasToSvg({
|
|
28
28
|
x: 0,
|
|
29
29
|
y: 0
|
|
30
|
-
})), n =
|
|
30
|
+
})), n = l(e.viewport.canvasToSvg({
|
|
31
31
|
x: e.canvas.clientWidth,
|
|
32
32
|
y: 0
|
|
33
|
-
})), r =
|
|
33
|
+
})), r = l(e.viewport.canvasToSvg({
|
|
34
34
|
x: 0,
|
|
35
35
|
y: e.canvas.clientHeight
|
|
36
|
-
})), i =
|
|
36
|
+
})), i = l(e.viewport.canvasToSvg({
|
|
37
37
|
x: e.canvas.clientWidth,
|
|
38
38
|
y: e.canvas.clientHeight
|
|
39
|
-
})), a = Math.min(t.x, n.x, r.x, i.x), o = Math.max(t.x, n.x, r.x, i.x), s = Math.min(t.y, n.y, r.y, i.y),
|
|
39
|
+
})), a = Math.min(t.x, n.x, r.x, i.x), o = Math.max(t.x, n.x, r.x, i.x), s = Math.min(t.y, n.y, r.y, i.y), c = Math.max(t.y, n.y, r.y, i.y);
|
|
40
40
|
return {
|
|
41
41
|
x: a,
|
|
42
42
|
y: s,
|
|
43
43
|
width: o - a,
|
|
44
|
-
height:
|
|
44
|
+
height: c - s,
|
|
45
45
|
left: a,
|
|
46
46
|
right: o,
|
|
47
|
-
top:
|
|
47
|
+
top: c,
|
|
48
48
|
bottom: s,
|
|
49
49
|
center: {
|
|
50
50
|
x: (a + o) / 2,
|
|
51
|
-
y: (s +
|
|
51
|
+
y: (s + c) / 2
|
|
52
52
|
},
|
|
53
53
|
corners: [
|
|
54
54
|
t,
|
|
@@ -105,11 +105,11 @@ var b = new (h = class {
|
|
|
105
105
|
} : {};
|
|
106
106
|
}
|
|
107
107
|
get hasUnsavedChanges() {
|
|
108
|
-
let
|
|
109
|
-
if (!
|
|
110
|
-
let
|
|
111
|
-
if (
|
|
112
|
-
for (let
|
|
108
|
+
let e = this.savedKiosk, t = a(this.kiosk);
|
|
109
|
+
if (!t || !e) return !!t != !!e;
|
|
110
|
+
let n = Object.keys(e), r = Object.keys(t);
|
|
111
|
+
if (n.length !== r.length) return !0;
|
|
112
|
+
for (let r of n) if (!(r in t) || e[r] !== t[r]) return !0;
|
|
113
113
|
return !1;
|
|
114
114
|
}
|
|
115
115
|
addStatusMessage(e) {
|
|
@@ -125,14 +125,14 @@ var b = new (h = class {
|
|
|
125
125
|
clearTimeout(this.statusMessageTimer), this.statusMessageTimer = window.setTimeout(() => this.clearStatusMessages(), 1e3);
|
|
126
126
|
}
|
|
127
127
|
async resetCamera() {
|
|
128
|
-
let { z:
|
|
128
|
+
let { z: t, mapRollDegrees: n, mapInitialPtScale: r, mapPtScale: i, mapCenterX: a, mapCenterY: o } = this.kiosk || {};
|
|
129
129
|
await this.renderer.controls.resetCamera({
|
|
130
130
|
pan: !0,
|
|
131
131
|
zoom: !0,
|
|
132
132
|
roll: !0,
|
|
133
133
|
pitch: !0
|
|
134
|
-
}, !0),
|
|
135
|
-
Number.isFinite(r) && Number.isFinite(i) && i > 0 && this.renderer.controls.zoomBy(r / i, !0), Number.isFinite(a) && Number.isFinite(o) && this.renderer.controls.panTo(a, o, !0), Number.isFinite(n) && this.renderer.controls.rollTo(n, !0),
|
|
134
|
+
}, !0), e(() => {
|
|
135
|
+
Number.isFinite(r) && Number.isFinite(i) && i > 0 && this.renderer.controls.zoomBy(r / i, !0), Number.isFinite(a) && Number.isFinite(o) && this.renderer.controls.panTo(a, o, !0), Number.isFinite(n) && this.renderer.controls.rollTo(n, !0), t && d.fp.activateFloor({ name: t });
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
restoreData() {
|
|
@@ -148,84 +148,84 @@ var b = new (h = class {
|
|
|
148
148
|
handleDelete() {
|
|
149
149
|
o(), this.setKiosk(null), d.uiState.resetMapSettings(), d.uiState.resetUIScale(), this.resetCamera(), this.addStatusMessage({
|
|
150
150
|
variant: "success",
|
|
151
|
-
title:
|
|
151
|
+
title: r("Deleted")
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
handleSave() {
|
|
155
|
-
let
|
|
156
|
-
...
|
|
157
|
-
...
|
|
155
|
+
let e = a(this.kiosk), t = this.getCameraState(), n = {
|
|
156
|
+
...e,
|
|
157
|
+
...t
|
|
158
158
|
};
|
|
159
|
-
if (!m(this.renderer,
|
|
159
|
+
if (!m(this.renderer, n)) {
|
|
160
160
|
this.addStatusMessage({
|
|
161
161
|
variant: "error",
|
|
162
|
-
title:
|
|
162
|
+
title: r("Kiosk not visible")
|
|
163
163
|
});
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
|
-
this.setKiosk(
|
|
166
|
+
this.setKiosk(n), c(n), d.uiState.setUIScale(n.uiScale, !0), this.addStatusMessage({
|
|
167
167
|
variant: "success",
|
|
168
|
-
title:
|
|
169
|
-
}), this.savedKiosk =
|
|
168
|
+
title: r("Saved")
|
|
169
|
+
}), this.savedKiosk = n;
|
|
170
170
|
}
|
|
171
171
|
delayChange(e) {
|
|
172
172
|
requestAnimationFrame(() => e == null ? void 0 : e());
|
|
173
173
|
}
|
|
174
|
-
handleChange(
|
|
175
|
-
let
|
|
176
|
-
|
|
177
|
-
...
|
|
178
|
-
heading:
|
|
179
|
-
}), Number.isFinite(
|
|
180
|
-
...
|
|
181
|
-
uiScale:
|
|
182
|
-
}), this.delayChange(() => d.uiState.setUIScale(
|
|
183
|
-
...
|
|
184
|
-
iconSizePercent:
|
|
174
|
+
handleChange(e) {
|
|
175
|
+
let t = a(this.kiosk);
|
|
176
|
+
t && (Number.isFinite(e.angle) && this.setKiosk({
|
|
177
|
+
...t,
|
|
178
|
+
heading: e.angle
|
|
179
|
+
}), Number.isFinite(e.scale) && (this.setKiosk({
|
|
180
|
+
...t,
|
|
181
|
+
uiScale: e.scale
|
|
182
|
+
}), this.delayChange(() => d.uiState.setUIScale(e.scale, !1))), Number.isFinite(e.percent) && this.setKiosk({
|
|
183
|
+
...t,
|
|
184
|
+
iconSizePercent: e.percent
|
|
185
185
|
}));
|
|
186
186
|
}
|
|
187
|
-
setInitialPtScale(
|
|
187
|
+
setInitialPtScale(e) {
|
|
188
188
|
if (this.initialPtScale) return;
|
|
189
|
-
this.initialPtScale =
|
|
190
|
-
let
|
|
191
|
-
|
|
192
|
-
...
|
|
193
|
-
mapInitialPtScale:
|
|
189
|
+
this.initialPtScale = e;
|
|
190
|
+
let t = a(this.kiosk);
|
|
191
|
+
t && this.setKiosk({
|
|
192
|
+
...t,
|
|
193
|
+
mapInitialPtScale: e
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
handleClick(
|
|
197
|
-
var
|
|
198
|
-
let
|
|
196
|
+
handleClick(e) {
|
|
197
|
+
var t;
|
|
198
|
+
let n = a(this.kiosk), r = d.fp.getFloors(), i = u() ? (t = r.find((e) => e.active)) == null ? void 0 : t.name : null, o = d.uiState.uiScale;
|
|
199
199
|
this.setKiosk({
|
|
200
|
-
...
|
|
201
|
-
x:
|
|
202
|
-
y:
|
|
203
|
-
z:
|
|
204
|
-
uiScale: (
|
|
205
|
-
heading: (
|
|
206
|
-
iconSizePercent: (
|
|
200
|
+
...n,
|
|
201
|
+
x: e.x,
|
|
202
|
+
y: e.y,
|
|
203
|
+
z: i,
|
|
204
|
+
uiScale: (n == null ? void 0 : n.uiScale) || o,
|
|
205
|
+
heading: (n == null ? void 0 : n.heading) || 0,
|
|
206
|
+
iconSizePercent: (n == null ? void 0 : n.iconSizePercent) || 100,
|
|
207
207
|
...this.getCameraState()
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
handleNavigationChange() {
|
|
211
|
-
let
|
|
212
|
-
|
|
213
|
-
...
|
|
211
|
+
let e = a(this.kiosk);
|
|
212
|
+
e && this.setKiosk({
|
|
213
|
+
...e,
|
|
214
214
|
...this.getCameraState()
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
}, y(h.prototype, "kiosk", [
|
|
217
|
+
}, y(h.prototype, "kiosk", [t], Object.getOwnPropertyDescriptor(h.prototype, "kiosk"), h.prototype), y(h.prototype, "setKiosk", [i], Object.getOwnPropertyDescriptor(h.prototype, "setKiosk"), h.prototype), y(h.prototype, "renderer", [t], Object.getOwnPropertyDescriptor(h.prototype, "renderer"), h.prototype), g = y(h.prototype, "savedKiosk", [n], {
|
|
218
218
|
configurable: !0,
|
|
219
219
|
enumerable: !0,
|
|
220
220
|
writable: !0,
|
|
221
221
|
initializer: null
|
|
222
|
-
}), y(h.prototype, "hasUnsavedChanges", [
|
|
222
|
+
}), y(h.prototype, "hasUnsavedChanges", [t], Object.getOwnPropertyDescriptor(h.prototype, "hasUnsavedChanges"), h.prototype), _ = y(h.prototype, "statusMessages", [n], {
|
|
223
223
|
configurable: !0,
|
|
224
224
|
enumerable: !0,
|
|
225
225
|
writable: !0,
|
|
226
226
|
initializer: function() {
|
|
227
227
|
return [];
|
|
228
228
|
}
|
|
229
|
-
}), y(h.prototype, "addStatusMessage", [
|
|
229
|
+
}), y(h.prototype, "addStatusMessage", [i], Object.getOwnPropertyDescriptor(h.prototype, "addStatusMessage"), h.prototype), y(h.prototype, "clearStatusMessages", [i], Object.getOwnPropertyDescriptor(h.prototype, "clearStatusMessages"), h.prototype), y(h.prototype, "startCleanupMessages", [i], Object.getOwnPropertyDescriptor(h.prototype, "startCleanupMessages"), h.prototype), y(h.prototype, "resetCamera", [i], Object.getOwnPropertyDescriptor(h.prototype, "resetCamera"), h.prototype), y(h.prototype, "restoreData", [i], Object.getOwnPropertyDescriptor(h.prototype, "restoreData"), h.prototype), y(h.prototype, "handleSetupReady", [i], Object.getOwnPropertyDescriptor(h.prototype, "handleSetupReady"), h.prototype), y(h.prototype, "handleClose", [i], Object.getOwnPropertyDescriptor(h.prototype, "handleClose"), h.prototype), y(h.prototype, "handleDelete", [i], Object.getOwnPropertyDescriptor(h.prototype, "handleDelete"), h.prototype), y(h.prototype, "handleSave", [i], Object.getOwnPropertyDescriptor(h.prototype, "handleSave"), h.prototype), y(h.prototype, "handleChange", [i], Object.getOwnPropertyDescriptor(h.prototype, "handleChange"), h.prototype), y(h.prototype, "setInitialPtScale", [i], Object.getOwnPropertyDescriptor(h.prototype, "setInitialPtScale"), h.prototype), y(h.prototype, "handleClick", [i], Object.getOwnPropertyDescriptor(h.prototype, "handleClick"), h.prototype), y(h.prototype, "handleNavigationChange", [i], Object.getOwnPropertyDescriptor(h.prototype, "handleNavigationChange"), h.prototype), h)();
|
|
230
230
|
//#endregion
|
|
231
231
|
export { b as t };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.2.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.2.15" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e063d492-8473-41c7-a0a4-d52e4927e636", e._sentryDebugIdIdentifier = "sentry-dbid-e063d492-8473-41c7-a0a4-d52e4927e636");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { t as r } from "./classnames-
|
|
13
|
-
import { $n as i,
|
|
14
|
-
import { r as d } from "./mobx-
|
|
15
|
-
import { _ as f, a as p, c as m, d as h, f as g, h as _, i as v, l as y, m as b, o as x, p as S, r as C, s as w, u as T } from "./data-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-CjpvzON0.js";
|
|
10
|
+
import { t } from "./react-rZ_JGNQ0.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-GedjzT5I.js";
|
|
12
|
+
import { t as r } from "./classnames-BqJalg-Q.js";
|
|
13
|
+
import { $n as i, Kn as a, Yn as o, er as s, o as c, s as l, t as u } from "./store-Bu3dElQ9.js";
|
|
14
|
+
import { r as d } from "./mobx-CekPL2_6.js";
|
|
15
|
+
import { _ as f, a as p, c as m, d as h, f as g, h as _, i as v, l as y, m as b, o as x, p as S, r as C, s as w, u as T } from "./data-skwk1u79.js";
|
|
16
16
|
//#region src/components/Mapbox/Mapbox.tsx
|
|
17
17
|
var E = /* @__PURE__ */ e(r(), 1), D = /* @__PURE__ */ e(f(), 1), O = /* @__PURE__ */ e(t(), 1), k = n();
|
|
18
18
|
function A() {
|
|
@@ -21,8 +21,8 @@ function A() {
|
|
|
21
21
|
return ![...l.selectedBooths].filter((e) => e.rect);
|
|
22
22
|
},
|
|
23
23
|
get actualCurrentPosition() {
|
|
24
|
-
let e =
|
|
25
|
-
return !(e != null && e.z) ||
|
|
24
|
+
let e = c.routeStore.currentPosition;
|
|
25
|
+
return !(e != null && e.z) || c.layerStore.visible.indexOf(c.layerStore.findLayer(e.z)) > -1 ? e : null;
|
|
26
26
|
},
|
|
27
27
|
get style() {
|
|
28
28
|
return { left: 0 };
|
|
@@ -43,28 +43,28 @@ function A() {
|
|
|
43
43
|
accessToken: x.token
|
|
44
44
|
}), T(t.current), t.current.on("load", async () => {
|
|
45
45
|
var e;
|
|
46
|
-
setTimeout(() => p(f.initselected ?
|
|
46
|
+
setTimeout(() => p(f.initselected ? o.fromMultiple([...l.selectedBooths].filter((e) => e.rect).map((e) => e.rect)) : a, 15, 4e3), 1500), t.current.setLight({
|
|
47
47
|
anchor: "viewport",
|
|
48
48
|
color: "white",
|
|
49
49
|
intensity: 0
|
|
50
50
|
});
|
|
51
|
-
let n = await C(
|
|
52
|
-
m(
|
|
53
|
-
x:
|
|
54
|
-
y:
|
|
55
|
-
} : null), h("cp", f.actualCurrentPosition), r = y(
|
|
51
|
+
let n = await C(c.boothStore.booths);
|
|
52
|
+
m(c.boothStore.booths, n), h("yah", (e = c.routeStore.defaultFrom) != null && e.rect ? {
|
|
53
|
+
x: c.routeStore.defaultFrom.rect.cx,
|
|
54
|
+
y: c.routeStore.defaultFrom.rect.cy
|
|
55
|
+
} : null), h("cp", f.actualCurrentPosition), r = y(c.layerStore.layers);
|
|
56
56
|
let i = r.filter((e) => e.indexOf("--") === -1);
|
|
57
|
-
b(
|
|
58
|
-
let n = [[e.point.x - 5, e.point.y - 5], [e.point.x + 5, e.point.y + 5]], i = t.current.queryRenderedFeatures(n, { layers: r })[0], a =
|
|
57
|
+
b(c.routeStore), w(), t.current.on("mouseenter", i, () => t.current.getCanvas().style.cursor = "pointer"), t.current.on("mouseleave", i, () => t.current.getCanvas().style.cursor = ""), t.current.on("click", (e) => {
|
|
58
|
+
let n = [[e.point.x - 5, e.point.y - 5], [e.point.x + 5, e.point.y + 5]], i = t.current.queryRenderedFeatures(n, { layers: r })[0], a = c.boothStore.booths.find((e) => {
|
|
59
59
|
var t;
|
|
60
60
|
return e.name === (i == null || (t = i.properties) == null ? void 0 : t.id);
|
|
61
61
|
});
|
|
62
|
-
|
|
62
|
+
c.clickBooth(a);
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
}), d(() => l.zoomBy, () => {
|
|
67
|
-
if (!l.zoomBy || !
|
|
67
|
+
if (!l.zoomBy || !c.mapboxStore.showMapbox) return;
|
|
68
68
|
let e = l.zoomBy;
|
|
69
69
|
l.zoomBy = null, t.current.flyTo({
|
|
70
70
|
zoom: t.current.getZoom() + (e > 1 ? .5 : -.5),
|
|
@@ -73,43 +73,43 @@ function A() {
|
|
|
73
73
|
essential: !0
|
|
74
74
|
});
|
|
75
75
|
}), d(() => [
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
c.layerStore.loaded,
|
|
77
|
+
c.layerStore.visible,
|
|
78
78
|
l.selectedRoute
|
|
79
79
|
], () => {
|
|
80
80
|
var e, n;
|
|
81
81
|
r.forEach((e) => {
|
|
82
|
-
let n = e.split("--")[0], r =
|
|
82
|
+
let n = e.split("--")[0], r = c.layerStore.layers.find((e) => e.name === n);
|
|
83
83
|
(r.visible || t.current.getLayoutProperty(e, "visibility") !== "none") && t.current.setLayoutProperty(e, "visibility", r.visible ? "visible" : "none");
|
|
84
|
-
}), _([...l.selectedBooths],
|
|
85
|
-
x:
|
|
86
|
-
y:
|
|
84
|
+
}), _([...l.selectedBooths], c.boothStore.booths), h("yah", (e = c.routeStore.defaultFrom) != null && e.rect && !((n = c.routeStore.defaultFrom) == null || (n = n.layer) == null) && n.visible ? {
|
|
85
|
+
x: c.routeStore.defaultFrom.rect.cx,
|
|
86
|
+
y: c.routeStore.defaultFrom.rect.cy
|
|
87
87
|
} : null), h("cp", f.actualCurrentPosition);
|
|
88
88
|
}), d(() => l.hoveredBooths, () => {
|
|
89
89
|
n && (clearTimeout(n), n = null), n = setTimeout(() => {
|
|
90
90
|
n = null, S([...l.hoveredBooths].filter((e) => {
|
|
91
91
|
var t, n;
|
|
92
92
|
return (t = (n = e.layer) == null ? void 0 : n.visible) == null ? !0 : t;
|
|
93
|
-
}),
|
|
93
|
+
}), c.boothStore.booths);
|
|
94
94
|
}, 50);
|
|
95
95
|
}), d(() => [l.selectedBooths, l.listBooths], () => {
|
|
96
96
|
var e = [];
|
|
97
|
-
l.selectedBooths.size ? e = [...l.selectedBooths] : l.listBooths.size && (l.activeListIndex === 0 || l.list.type === "bookmarks" || l.list.type === "category") && (e = [...l.listBooths]), _(e,
|
|
98
|
-
}), d(() =>
|
|
99
|
-
g(
|
|
97
|
+
l.selectedBooths.size ? e = [...l.selectedBooths] : l.listBooths.size && (l.activeListIndex === 0 || l.list.type === "bookmarks" || l.list.type === "category") && (e = [...l.listBooths]), _(e, c.boothStore.booths);
|
|
98
|
+
}), d(() => c.mapboxStore.showMapbox, () => {
|
|
99
|
+
g(c.mapboxStore.showMapbox);
|
|
100
100
|
}), d(() => l.moveToBooths, () => {
|
|
101
|
-
if (!l.moveToBooths || !
|
|
102
|
-
let e = l.moveToBooths.filter((e) => e.rect).map((e) => e.rect), t =
|
|
101
|
+
if (!l.moveToBooths || !c.mapboxStore.showMapbox) return;
|
|
102
|
+
let e = l.moveToBooths.filter((e) => e.rect).map((e) => e.rect), t = o.fromMultiple(e);
|
|
103
103
|
e.length && p(t), l.moveToBooths = null;
|
|
104
104
|
}), d(() => l.moveToRect, () => {
|
|
105
|
-
!l.moveToRect || !
|
|
105
|
+
!l.moveToRect || !c.mapboxStore.showMapbox || (p(l.moveToRect, 15), l.moveToRect = null);
|
|
106
106
|
}), d(() => l.moveToLocation, () => {
|
|
107
|
-
!l.moveToLocation || !
|
|
107
|
+
!l.moveToLocation || !c.mapboxStore.showMapbox || v();
|
|
108
108
|
}), d(() => l.centerMap, () => {
|
|
109
|
-
!l.centerMap || !
|
|
110
|
-
}), d(() =>
|
|
109
|
+
!l.centerMap || !c.mapboxStore.showMapbox || (p(o.fromMultiple(u.booths.map((e) => e.rect)), 15), l.centerMap = !1);
|
|
110
|
+
}), d(() => c.routeStore.routeLines, () => b(c.routeStore)), d(() => f.actualCurrentPosition, () => h("cp", f.actualCurrentPosition)), s(() => /* @__PURE__ */ (0, k.jsx)("div", {
|
|
111
111
|
style: f.style,
|
|
112
|
-
className: (0, E.default)("map-container", { hidden: !
|
|
112
|
+
className: (0, E.default)("map-container", { hidden: !c.mapboxStore.showMapbox }),
|
|
113
113
|
children: /* @__PURE__ */ (0, k.jsx)("div", {
|
|
114
114
|
ref: e,
|
|
115
115
|
className: (0, E.default)("map-wrapper", "mapboxgl-map")
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='undefined') return; var shadow=!forceLightDom&&typeof window!=='undefined'&&window.__efpShadowDOMStyleParent; var parent=shadow||document.head; var s=document.createElement('style'); s.setAttribute('data-chunk-style', id); s.appendChild(document.createTextNode(css)); parent.appendChild(s);}
|
|
2
|
+
(function() {
|
|
3
|
+
try {
|
|
4
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.2.15" };
|
|
6
|
+
var t = new e.Error().stack;
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "76060991-bd3d-4f5b-b33e-f3546313814d", e._sentryDebugIdIdentifier = "sentry-dbid-76060991-bd3d-4f5b-b33e-f3546313814d");
|
|
8
|
+
} catch {}
|
|
9
|
+
})();
|
|
10
|
+
import { n as e, r as t } from "./rolldown-runtime-CjpvzON0.js";
|
|
11
|
+
import { t as n } from "./react-rZ_JGNQ0.js";
|
|
12
|
+
import { t as r } from "./jsx-runtime-GedjzT5I.js";
|
|
13
|
+
import { s as i } from "./i18n-CP_v4NP8.js";
|
|
14
|
+
import { t as a } from "./react-dom-DkrEia96.js";
|
|
15
|
+
import { t as o } from "./classnames-BqJalg-Q.js";
|
|
16
|
+
import { Zn as s } from "./store-Bu3dElQ9.js";
|
|
17
|
+
import { t as c } from "./useRenderTarget-CakmKdKK.js";
|
|
18
|
+
//#region src/components/Modal.scss
|
|
19
|
+
var l = /* @__PURE__ */ t(n(), 1), u = /* @__PURE__ */ t(a(), 1), d = /* @__PURE__ */ t(o(), 1), f = /* @__PURE__ */ e({ default: () => m }), p = r(), m = ({ open: e, className: t, type: n = "default", title: r, badge: a, maxWidth: o, children: f, closeLabel: m, footerLeft: h = [], footerRight: g = [], onClickClose: _ }) => {
|
|
20
|
+
let v = c(), y = (0, l.useRef)(null), [b, x] = (0, l.useState)(e), [S, C] = (0, l.useState)(e);
|
|
21
|
+
if ((0, l.useEffect)(() => {
|
|
22
|
+
if (e) C(!0), setTimeout(() => {
|
|
23
|
+
x(!0);
|
|
24
|
+
}, 10), document.body.style.overflow = "hidden", setTimeout(() => {
|
|
25
|
+
var e;
|
|
26
|
+
return (e = y.current) == null ? void 0 : e.focus();
|
|
27
|
+
}, 0);
|
|
28
|
+
else {
|
|
29
|
+
x(!1);
|
|
30
|
+
let e = setTimeout(() => {
|
|
31
|
+
C(!1);
|
|
32
|
+
}, 200);
|
|
33
|
+
return () => clearTimeout(e);
|
|
34
|
+
}
|
|
35
|
+
let t = (e) => {
|
|
36
|
+
e.key === "Escape" && _();
|
|
37
|
+
};
|
|
38
|
+
return document.addEventListener("keydown", t), () => {
|
|
39
|
+
document.removeEventListener("keydown", t), document.body.style.overflow = "";
|
|
40
|
+
};
|
|
41
|
+
}, [e, _]), !S || !v) return null;
|
|
42
|
+
let w = m == null ? i("Close") : m, T = (e) => e == null ? void 0 : e.map(({ label: e, onClick: t, variant: n = "primary", disabled: r, withBadge: i }, a) => /* @__PURE__ */ (0, p.jsx)(s, {
|
|
43
|
+
onClick: t,
|
|
44
|
+
variant: n,
|
|
45
|
+
size: "md",
|
|
46
|
+
inline: !0,
|
|
47
|
+
disabled: r,
|
|
48
|
+
withBadge: i,
|
|
49
|
+
children: e
|
|
50
|
+
}, a));
|
|
51
|
+
return (0, u.createPortal)(/* @__PURE__ */ (0, p.jsx)("div", {
|
|
52
|
+
className: (0, d.default)("modal", `modal--${n}`, { isOpen: b }, t),
|
|
53
|
+
role: "dialog",
|
|
54
|
+
"aria-modal": "true",
|
|
55
|
+
ref: y,
|
|
56
|
+
tabIndex: -1,
|
|
57
|
+
onClick: _,
|
|
58
|
+
children: /* @__PURE__ */ (0, p.jsxs)("div", {
|
|
59
|
+
className: "modal__box",
|
|
60
|
+
style: o ? { maxWidth: `${o}px` } : void 0,
|
|
61
|
+
onClick: (e) => e.stopPropagation(),
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ (0, p.jsxs)("div", {
|
|
64
|
+
className: "modal__header",
|
|
65
|
+
children: [/* @__PURE__ */ (0, p.jsx)("div", {
|
|
66
|
+
className: "modal__title-container",
|
|
67
|
+
children: /* @__PURE__ */ (0, p.jsx)("div", {
|
|
68
|
+
className: "modal__title",
|
|
69
|
+
children: r
|
|
70
|
+
})
|
|
71
|
+
}), /* @__PURE__ */ (0, p.jsx)("button", {
|
|
72
|
+
type: "button",
|
|
73
|
+
className: "modal__close",
|
|
74
|
+
onClick: _,
|
|
75
|
+
"aria-label": w,
|
|
76
|
+
title: w,
|
|
77
|
+
children: /* @__PURE__ */ (0, p.jsx)("i", {
|
|
78
|
+
className: "icon-close",
|
|
79
|
+
"aria-hidden": "true"
|
|
80
|
+
})
|
|
81
|
+
})]
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ (0, p.jsx)("div", {
|
|
84
|
+
className: "modal__body",
|
|
85
|
+
children: f
|
|
86
|
+
}),
|
|
87
|
+
(h.length > 0 || g.length > 0) && /* @__PURE__ */ (0, p.jsxs)("div", {
|
|
88
|
+
className: "modal__footer",
|
|
89
|
+
children: [/* @__PURE__ */ (0, p.jsx)("div", {
|
|
90
|
+
className: "modal__footer-left",
|
|
91
|
+
children: h.length > 0 && T(h)
|
|
92
|
+
}), g.length > 0 && /* @__PURE__ */ (0, p.jsx)("div", {
|
|
93
|
+
className: "modal__footer-right",
|
|
94
|
+
children: T(g)
|
|
95
|
+
})]
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
})
|
|
99
|
+
}), v);
|
|
100
|
+
};
|
|
101
|
+
//#endregion
|
|
102
|
+
export { f as n, m as t };
|
|
103
|
+
|
|
104
|
+
;/* vite-per-chunk-css */
|
|
105
|
+
__vite_inject_css__(".modal{z-index:999;width:100%;height:100%;padding:calc(1.25rem * var(--ui-scale));opacity:0;visibility:hidden;background:#a3a8afcc;justify-content:center;align-items:center;transition:opacity .2s,visibility .2s;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.modal__box{width:100%;max-height:94vh;background:var(--color-white);border-radius:var(--border-radius-xl);max-height:94dvh;box-shadow:var(--shadow-md);opacity:0;flex-direction:column;transition:opacity .1s,transform .2s;display:flex;position:relative;overflow:hidden;transform:translateY(100px)}.modal__header{width:100%;min-height:calc(3.75rem * var(--ui-scale));padding:calc(.625rem * var(--ui-scale)) calc(3.125rem * var(--ui-scale)) calc(.625rem * var(--ui-scale)) calc(1.5rem * var(--ui-scale));border-bottom:1px solid var(--color-gray-200);flex-shrink:0;align-items:center;display:flex}.modal__title-container{align-items:center;gap:calc(1.25rem * var(--ui-scale));display:flex}.modal__title{align-items:center;gap:calc(.625rem * var(--ui-scale));font-size:var(--font-size-xxl);font-weight:var(--font-weight-bold);display:flex}.modal__badge{min-width:calc(1.625rem * var(--ui-scale));height:calc(1.625rem * var(--ui-scale));background:var(--color-primary-ultra-light);border-radius:var(--border-radius-full);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-primary);justify-content:center;align-items:center;display:flex}.modal__close{top:calc(.5rem * var(--ui-scale));right:calc(.5rem * var(--ui-scale));width:calc(2.5rem * var(--ui-scale));height:calc(2.5rem * var(--ui-scale));border-radius:var(--border-radius-md);opacity:.6;color:var(--color-gray-700);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;transition:opacity .1s,background-color .1s;display:flex;position:absolute}.modal__close:hover{background-color:var(--color-gray-100);opacity:1;color:var(--color-black)}.modal__body{padding:calc(1.5rem * var(--ui-scale)) calc(1.25rem * var(--ui-scale));flex:1;min-height:0;overflow:auto}.modal__footer{justify-content:space-between;gap:calc(.625rem * var(--ui-scale));padding:calc(1.25rem * var(--ui-scale));border-top:1px solid var(--color-gray-200);flex-flow:wrap;flex-shrink:0;display:flex}@media (max-width:480px){.modal__footer{padding:calc(.875rem * var(--ui-scale)) calc(1.25rem * var(--ui-scale));gap:calc(.875rem * var(--ui-scale))}.modal__footer .efp-button{width:100%;max-width:100%}}.modal__footer-left,.modal__footer-right{align-items:center;gap:calc(0rem * var(--ui-scale));display:flex}.modal__footer-right{flex:1;justify-content:flex-end}@media (max-width:480px){.modal__footer-right{align-self:flex-end}}.modal--default .modal__box{max-width:900px}.modal--share .modal__box{max-width:420px}.modal.isOpen{opacity:1;visibility:visible}.modal.isOpen .modal__box{opacity:1;transform:translateY(0)}@media (max-width:768px){.modal{padding:calc(1.25rem * var(--ui-scale)) 0 0 0;align-items:flex-end}.modal .modal__box{border-radius:0;border-top-left-radius:var(--border-radius-xl);border-top-right-radius:var(--border-radius-xl)}}.layout[dir=rtl] .modal__close{right:unset;left:0}\n/*$vite$:1*/", "Modal.css", false);
|